Class: Plutonium::UI::Modal::Centered

Inherits:
Base show all
Defined in:
lib/plutonium/ui/modal/centered.rb

Constant Summary collapse

SIZE_CLASSES =

Width tokens for each VALID_SIZES key. ‘:md` reproduces the historical default (`w-full max-w-xl`); `:auto` drops `w-full` so the dialog hugs its content, with a floor that keeps tiny confirm dialogs from collapsing and a cap to stay on-screen.

{
  sm: "w-full max-w-md",
  md: "w-full max-w-xl",
  lg: "w-full max-w-2xl",
  xl: "w-full max-w-4xl",
  auto: "w-fit max-w-[90vw] min-w-[400px]",
  full: "w-full max-w-[95vw]"
}.freeze

Constants inherited from Base

Base::VALID_SIZES

Method Summary

Methods inherited from Base

class_for_mode, #initialize, #view_template

Methods included from Component::Behaviour

#around_template

Methods included from Component::Tokens

#classes, #tokens

Methods included from Component::Kit

#BuildActionButton, #BuildActionsDropdown, #BuildAvatar, #BuildBlock, #BuildBreadcrumbs, #BuildBulkActionsToolbar, #BuildColorModeSelector, #BuildDynaFrameContent, #BuildDynaFrameHost, #BuildEmptyCard, #BuildFrameNavigatorPanel, #BuildModalCentered, #BuildModalSlideover, #BuildPageHeader, #BuildPanel, #BuildRowActionsDropdown, #BuildSkeletonTable, #BuildTabList, #BuildTableFilterPills, #BuildTableInfo, #BuildTablePagination, #BuildTableScopesBar, #BuildTableScopesPills, #BuildTableSearchBar, #BuildTableToolbar, #BuildTableViewSwitcher, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from Plutonium::UI::Modal::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Plutonium::UI::Component::Kit