@pingux/astro 1.41.0-alpha.5 → 1.42.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +1 -2
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +6 -6
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +28 -5
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +8 -8
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +4 -4
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +4 -4
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +8 -6
- package/lib/cjs/components/AccordionGroup/AccordionGroup.js +3 -3
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +7 -7
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +15 -15
- package/lib/cjs/components/AccordionItem/AccordionItem.js +10 -8
- package/lib/cjs/components/ArrayField/ArrayField.js +20 -18
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +4 -4
- package/lib/cjs/components/ArrayField/ArrayFieldItem.js +50 -0
- package/lib/cjs/components/Box/Box.js +2 -2
- package/lib/cjs/components/Bracket/Bracket.js +1 -1
- package/lib/cjs/components/Bracket/Bracket.stories.js +6 -7
- package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +6 -4
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +7 -5
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +6 -6
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +6 -6
- package/lib/cjs/components/Button/Button.js +18 -5
- package/lib/cjs/components/Button/Button.stories.js +1 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.js +19 -14
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +18 -5
- package/lib/cjs/components/{Badge → Chip}/Badge.js +1 -1
- package/lib/cjs/components/{Badge → Chip}/Badge.stories.js +26 -29
- package/lib/cjs/components/{Badge → Chip}/Badge.test.js +6 -6
- package/lib/cjs/components/Chip/Chip.js +58 -0
- package/lib/cjs/components/{Badge → Chip}/index.js +2 -2
- package/lib/cjs/components/CodeView/CodeView.js +2 -2
- package/lib/cjs/components/CodeView/CodeView.stories.js +1 -1
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +9 -7
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +2 -2
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +2 -2
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +4 -4
- package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.js +1 -1
- package/lib/cjs/components/ColorField/ColorField.js +31 -23
- package/lib/cjs/components/ColorField/ColorField.stories.js +17 -4
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +24 -20
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +14 -10
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +3 -3
- package/lib/cjs/components/CopyText/CopyButton.js +3 -2
- package/lib/cjs/components/CopyText/CopyText.js +10 -8
- package/lib/cjs/components/DataTable/DataTable.js +26 -46
- package/lib/cjs/components/DataTable/DataTable.stories.js +7 -7
- package/lib/cjs/components/DataTable/DataTable.styles.js +3 -3
- package/lib/cjs/components/DataTable/DataTable.test.js +8 -8
- package/lib/cjs/components/DataTable/{DataTableBadge.js → DataTableChip.js} +4 -4
- package/lib/cjs/components/DataTable/{DataTableBadge.test.js → DataTableChip.test.js} +1 -1
- package/lib/cjs/components/DataTable/index.js +3 -3
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +18 -14
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +23 -23
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +5 -3
- package/lib/cjs/components/FieldHelperText/FieldHelperText.js +1 -1
- package/lib/cjs/components/FileInputField/FileInputField.js +13 -16
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +2 -4
- package/lib/cjs/components/FileInputField/FileItem.js +7 -7
- package/lib/cjs/components/FileInputField/FileSelect.js +1 -1
- package/lib/cjs/components/HelpHint/HelpHint.js +4 -3
- package/lib/cjs/components/IconButton/IconButton.js +11 -9
- package/lib/cjs/components/IconButton/IconButton.stories.js +2 -2
- package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +8 -6
- package/lib/cjs/components/ImageUploadField/ImageUploadField.js +2 -4
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +2 -4
- package/lib/cjs/components/ImageUploadField/ImageUploadFieldBase.js +7 -8
- package/lib/cjs/components/Link/Link.js +9 -5
- package/lib/cjs/components/Link/Link.stories.js +2 -2
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +19 -10
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +9 -10
- package/lib/cjs/{styles/themeOverrides/withUiLibraryCss.js → components/List/List.js} +24 -26
- package/lib/cjs/components/List/List.stories.js +66 -0
- package/lib/cjs/components/List/List.test.js +36 -0
- package/lib/cjs/components/List/index.js +18 -0
- package/lib/cjs/components/ListBox/ListBox.js +6 -6
- package/lib/cjs/components/ListBox/ListBox.test.js +3 -3
- package/lib/cjs/components/ListBox/ListBoxSection.js +3 -3
- package/lib/cjs/components/ListBox/Option.js +2 -2
- package/lib/cjs/components/ListItem/ListItem.js +1 -1
- package/lib/cjs/components/ListView/ListView.stories.js +10 -8
- package/lib/cjs/components/ListView/ListView.test.js +8 -8
- package/lib/cjs/components/ListViewItem/ListViewItem.js +9 -7
- package/lib/cjs/components/Menu/Menu.js +9 -7
- package/lib/cjs/components/Menu/Menu.stories.js +4 -4
- package/lib/cjs/components/MenuItem/MenuItem.js +5 -3
- package/lib/cjs/components/Messages/Message.js +3 -3
- package/lib/cjs/components/Messages/Messages.js +1 -1
- package/lib/cjs/components/Messages/Messages.stories.js +14 -14
- package/lib/cjs/components/Messages/Messages.test.js +4 -4
- package/lib/cjs/components/Modal/Modal.js +24 -9
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +18 -15
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +8 -10
- package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +14 -14
- package/lib/cjs/components/NavBar/NavBar.stories.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarItem.js +9 -7
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarSection.js +2 -2
- package/lib/cjs/components/NumberField/NumberField.js +29 -31
- package/lib/cjs/components/NumberField/NumberField.stories.js +2 -4
- package/lib/cjs/components/OverlayPanel/OverlayPanel.js +4 -4
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +6 -6
- package/lib/cjs/components/PasswordField/PasswordField.js +25 -20
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +2 -4
- package/lib/cjs/components/PopoverContainer/PopoverContainer.js +31 -7
- package/lib/cjs/components/PopoverMenu/PopoverMenu.js +12 -8
- package/lib/cjs/components/RadioField/RadioField.js +19 -15
- package/lib/cjs/components/RadioGroupField/RadioGroupField.js +8 -12
- package/lib/cjs/components/RockerButton/RockerButton.js +5 -5
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +6 -6
- package/lib/cjs/components/ScrollBox/ScrollBox.js +3 -3
- package/lib/cjs/components/SearchField/SearchField.js +22 -16
- package/lib/cjs/components/SearchField/SearchField.stories.js +5 -4
- package/lib/cjs/components/SelectField/SelectField.js +9 -5
- package/lib/cjs/components/SelectField/SelectField.stories.js +11 -12
- package/lib/cjs/components/SelectField/SelectField.test.js +2 -2
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +16 -19
- package/lib/cjs/components/Separator/Separator.js +2 -2
- package/lib/cjs/components/Stepper/Step.js +4 -4
- package/lib/cjs/components/Switch/Switch.js +2 -2
- package/lib/cjs/components/SwitchField/SwitchField.js +23 -17
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +5 -4
- package/lib/cjs/components/Tab/Tab.js +11 -7
- package/lib/cjs/components/TabPicker/TabPicker.js +5 -5
- package/lib/cjs/components/Table/Table.js +1 -1
- package/lib/cjs/components/TableBody/TableBody.js +1 -1
- package/lib/cjs/components/TableCaption/TableCaption.js +1 -1
- package/lib/cjs/components/TableCell/TableCell.js +1 -1
- package/lib/cjs/components/TableRow/TableRow.js +1 -1
- package/lib/cjs/components/Tabs/Tabs.js +5 -5
- package/lib/cjs/components/Tabs/Tabs.stories.js +1 -1
- package/lib/cjs/components/TextAreaField/TextAreaField.js +24 -18
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +5 -4
- package/lib/cjs/components/TextField/TextField.js +19 -11
- package/lib/cjs/components/TextField/TextField.stories.js +2 -4
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +4 -4
- package/lib/cjs/components/TooltipTrigger/Tooltip.js +4 -4
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +8 -6
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +6 -6
- package/lib/cjs/hooks/useField/useField.js +20 -43
- package/lib/cjs/hooks/useField/useField.test.js +16 -55
- package/lib/cjs/hooks/useModalState/useModalState.js +2 -2
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +2 -2
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +1 -2
- package/lib/cjs/hooks/useSelectField/useSelectField.js +14 -12
- package/lib/cjs/index.js +119 -82
- package/lib/cjs/recipes/ApplicationSearchDropdown.stories.js +7 -7
- package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +4 -4
- package/lib/cjs/recipes/CollapsiblePanel.stories.js +3 -3
- package/lib/cjs/recipes/ConditionalFilter.stories.js +21 -21
- package/lib/cjs/recipes/CountryPicker.stories.js +3 -3
- package/lib/cjs/recipes/DatePicker.stories.js +5 -48
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +2 -2
- package/lib/cjs/recipes/LinkedListView.stories.js +15 -26
- package/lib/cjs/recipes/ListAndPanel.stories.js +9 -9
- package/lib/cjs/recipes/LogoTabs.stories.js +2 -2
- package/lib/cjs/recipes/MaskedValue.stories.js +1 -12
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +2 -2
- package/lib/cjs/recipes/RowLineChart.stories.js +99 -184
- package/lib/cjs/recipes/ScrollableListView.stories.js +4 -4
- package/lib/cjs/recipes/Slider.stories.js +19 -13
- package/lib/cjs/styles/ColorDocumentation.js +2 -2
- package/lib/cjs/{components/Checkbox/Checkbox.styles.js → styles/forms/checkbox.js} +0 -0
- package/lib/cjs/{components/ColorField/ColorField.styles.js → styles/forms/comboBox.js} +9 -9
- package/lib/cjs/styles/forms/index.js +13 -25
- package/lib/cjs/{components/Input/Input.styles.js → styles/forms/input.js} +15 -21
- package/lib/cjs/{components/Label/Label.styles.js → styles/forms/label.js} +4 -4
- package/lib/cjs/{components/ComboBox/ComboBox.styles.js → styles/forms/radio.js} +19 -27
- package/lib/cjs/{components/SearchField/Search.styles.js → styles/forms/search.js} +4 -4
- package/lib/cjs/{components/SelectField/Select.styles.js → styles/forms/select.js} +6 -6
- package/lib/cjs/{components/Switch/Switch.styles.js → styles/forms/switch.js} +2 -2
- package/lib/cjs/styles/forms/textarea.js +46 -0
- package/lib/cjs/styles/theme.js +3 -3
- package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +52 -69
- package/lib/cjs/styles/themes/astro-nano/astro-nano.js +19 -19
- package/lib/cjs/styles/variants/accordion.js +92 -0
- package/lib/cjs/{components/FieldHelperText/FieldHelperText.styles.js → styles/variants/bidirectionalIconButton.js} +17 -21
- package/lib/cjs/styles/variants/boxes.js +439 -0
- package/lib/cjs/styles/variants/buttons.js +815 -0
- package/lib/cjs/{components/CodeView/CodeView.styles.js → styles/variants/codeView.js} +0 -0
- package/lib/cjs/{components/CollapsiblePanel/CollapsiblePanel.styles.js → styles/variants/collapsiblePanel.js} +13 -72
- package/lib/cjs/styles/variants/imageUpload.js +29 -0
- package/lib/cjs/{components/Image/Image.styles.js → styles/variants/images.js} +0 -0
- package/lib/cjs/styles/variants/index.js +22 -51
- package/lib/cjs/{components/Link/Link.styles.js → styles/variants/links.js} +3 -3
- package/lib/cjs/{components/ListBox/ListBox.styles.js → styles/variants/listBox.js} +3 -11
- package/lib/cjs/{components/Loader/Loader.styles.js → styles/variants/loader.js} +0 -0
- package/lib/cjs/{components/Menu/Menu.styles.js → styles/variants/menu.js} +0 -0
- package/lib/cjs/{components/MenuItem/MenuItem.styles.js → styles/variants/menuItem.js} +0 -0
- package/lib/cjs/styles/variants/messages.js +53 -0
- package/lib/cjs/{components/Modal/Modal.styles.js → styles/variants/modal.js} +16 -13
- package/lib/cjs/{components/NavBar/NavBar.styles.js → styles/variants/navBar.js} +10 -96
- package/lib/cjs/{components/NumberField/NumberField.styles.js → styles/variants/numberField.js} +3 -13
- package/lib/cjs/{components/OverlayPanel/OverlayPanel.styles.js → styles/variants/overlayPanel.js} +6 -6
- package/lib/cjs/{components/PopoverMenu/PopoverMenu.styles.js → styles/variants/popoverMenu.js} +0 -0
- package/lib/cjs/styles/variants/rockerbutton.js +25 -0
- package/lib/cjs/{components/Separator/Separator.styles.js → styles/variants/separator.js} +0 -0
- package/lib/cjs/{components/Stepper/Stepper.styles.js → styles/variants/stepper.js} +4 -4
- package/lib/cjs/{components/Table/Table.styles.js → styles/variants/table.js} +15 -15
- package/lib/cjs/{components/Tabs/Tabs.style.js → styles/variants/tabs.js} +4 -17
- package/lib/cjs/{components/Text/Text.styles.js → styles/variants/text.js} +195 -4
- package/lib/cjs/{components/Box/Box.styles.js → styles/variants/tooltip.js} +3 -3
- package/lib/cjs/styles/variants/variants.js +46 -70
- package/lib/cjs/utils/devUtils/constants/variants.js +4 -4
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +3 -3
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +25 -2
- package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +1 -1
- package/lib/components/AccordionGridItem/AccordionGridItem.js +2 -2
- package/lib/components/AccordionGridItem/AccordionGridItemBody.js +2 -2
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +3 -2
- package/lib/components/AccordionGroup/AccordionGroup.js +1 -1
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +1 -1
- package/lib/components/AccordionGroup/AccordionGroup.test.js +1 -1
- package/lib/components/AccordionItem/AccordionItem.js +6 -5
- package/lib/components/ArrayField/ArrayField.js +15 -15
- package/lib/components/ArrayField/ArrayField.stories.js +1 -1
- package/lib/components/ArrayField/ArrayFieldItem.js +31 -0
- package/lib/components/Box/Box.js +2 -2
- package/lib/components/Bracket/Bracket.js +1 -1
- package/lib/components/Bracket/Bracket.stories.js +7 -8
- package/lib/components/Breadcrumbs/BreadcrumbItem.js +3 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.js +4 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.test.js +3 -3
- package/lib/components/Button/Button.js +13 -2
- package/lib/components/Button/Button.stories.js +1 -1
- package/lib/components/CheckboxField/CheckboxField.js +18 -12
- package/lib/components/CheckboxField/CheckboxField.stories.js +18 -4
- package/lib/components/{Badge → Chip}/Badge.js +1 -1
- package/lib/components/{Badge → Chip}/Badge.stories.js +31 -34
- package/lib/components/{Badge → Chip}/Badge.test.js +6 -6
- package/lib/components/Chip/Chip.js +38 -0
- package/lib/components/Chip/index.js +1 -0
- package/lib/components/CodeView/CodeView.js +2 -2
- package/lib/components/CodeView/CodeView.stories.js +1 -1
- package/lib/components/CollapsiblePanel/CollapsiblePanel.js +5 -4
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +3 -3
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +2 -2
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +3 -3
- package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.js +1 -1
- package/lib/components/ColorField/ColorField.js +22 -15
- package/lib/components/ColorField/ColorField.stories.js +17 -3
- package/lib/components/ComboBox/ComboBoxInput.js +20 -17
- package/lib/components/ComboBoxField/ComboBoxField.js +6 -4
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +2 -2
- package/lib/components/CopyText/CopyButton.js +3 -2
- package/lib/components/CopyText/CopyText.js +4 -3
- package/lib/components/DataTable/DataTable.js +8 -31
- package/lib/components/DataTable/DataTable.stories.js +6 -6
- package/lib/components/DataTable/DataTable.styles.js +1 -1
- package/lib/components/DataTable/DataTable.test.js +1 -1
- package/lib/components/DataTable/{DataTableBadge.js → DataTableChip.js} +5 -5
- package/lib/components/DataTable/{DataTableBadge.test.js → DataTableChip.test.js} +2 -2
- package/lib/components/DataTable/index.js +1 -1
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +10 -8
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +22 -22
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +3 -2
- package/lib/components/FieldHelperText/FieldHelperText.js +1 -1
- package/lib/components/FileInputField/FileInputField.js +10 -13
- package/lib/components/FileInputField/FileInputField.stories.js +2 -3
- package/lib/components/FileInputField/FileItem.js +5 -5
- package/lib/components/FileInputField/FileSelect.js +1 -1
- package/lib/components/HelpHint/HelpHint.js +4 -3
- package/lib/components/IconButton/IconButton.js +5 -5
- package/lib/components/IconButton/IconButton.stories.js +2 -2
- package/lib/components/ImageUploadField/ImagePreviewButton.js +5 -4
- package/lib/components/ImageUploadField/ImageUploadField.js +2 -3
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +2 -3
- package/lib/components/ImageUploadField/ImageUploadFieldBase.js +5 -6
- package/lib/components/Link/Link.js +3 -1
- package/lib/components/Link/Link.stories.js +1 -1
- package/lib/components/LinkSelectField/LinkSelectField.js +19 -9
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +5 -5
- package/lib/components/List/List.js +26 -0
- package/lib/components/List/List.stories.js +43 -0
- package/lib/components/List/List.test.js +24 -0
- package/lib/components/List/index.js +1 -0
- package/lib/components/ListBox/ListBox.js +3 -3
- package/lib/components/ListBox/ListBox.test.js +1 -1
- package/lib/components/ListBox/ListBoxSection.js +2 -2
- package/lib/components/ListBox/Option.js +1 -1
- package/lib/components/ListItem/ListItem.js +1 -1
- package/lib/components/ListView/ListView.stories.js +4 -3
- package/lib/components/ListView/ListView.test.js +2 -2
- package/lib/components/ListViewItem/ListViewItem.js +4 -3
- package/lib/components/Menu/Menu.js +4 -3
- package/lib/components/Menu/Menu.stories.js +1 -1
- package/lib/components/MenuItem/MenuItem.js +2 -1
- package/lib/components/Messages/Message.js +3 -3
- package/lib/components/Messages/Messages.js +1 -1
- package/lib/components/Messages/Messages.stories.js +1 -1
- package/lib/components/Messages/Messages.test.js +1 -1
- package/lib/components/Modal/Modal.js +14 -2
- package/lib/components/MultivaluesField/MultivaluesField.js +14 -11
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -9
- package/lib/components/MultivaluesField/MultivaluesField.test.js +14 -14
- package/lib/components/NavBar/NavBar.stories.js +1 -1
- package/lib/components/NavBarSection/NavBarItem.js +4 -3
- package/lib/components/NavBarSection/NavBarItemBody.js +1 -1
- package/lib/components/NavBarSection/NavBarItemButton.js +1 -1
- package/lib/components/NavBarSection/NavBarItemHeader.js +1 -1
- package/lib/components/NavBarSection/NavBarItemLink.js +1 -1
- package/lib/components/NavBarSection/NavBarSection.js +2 -2
- package/lib/components/NumberField/NumberField.js +23 -25
- package/lib/components/NumberField/NumberField.stories.js +2 -3
- package/lib/components/OverlayPanel/OverlayPanel.js +3 -3
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +2 -2
- package/lib/components/PasswordField/PasswordField.js +24 -18
- package/lib/components/PasswordField/PasswordField.stories.js +2 -3
- package/lib/components/PopoverContainer/PopoverContainer.js +26 -3
- package/lib/components/PopoverMenu/PopoverMenu.js +4 -2
- package/lib/components/RadioField/RadioField.js +18 -13
- package/lib/components/RadioGroupField/RadioGroupField.js +6 -9
- package/lib/components/RockerButton/RockerButton.js +3 -3
- package/lib/components/RockerButtonGroup/RockerButtonGroup.js +4 -4
- package/lib/components/ScrollBox/ScrollBox.js +3 -3
- package/lib/components/SearchField/SearchField.js +18 -11
- package/lib/components/SearchField/SearchField.stories.js +5 -3
- package/lib/components/SelectField/SelectField.js +9 -4
- package/lib/components/SelectField/SelectField.stories.js +5 -5
- package/lib/components/SelectField/SelectField.test.js +1 -1
- package/lib/components/SelectFieldBase/SelectFieldBase.js +15 -18
- package/lib/components/Separator/Separator.js +1 -1
- package/lib/components/Stepper/Step.js +2 -2
- package/lib/components/Switch/Switch.js +1 -1
- package/lib/components/SwitchField/SwitchField.js +20 -13
- package/lib/components/SwitchField/SwitchField.stories.js +5 -3
- package/lib/components/Tab/Tab.js +4 -2
- package/lib/components/TabPicker/TabPicker.js +3 -3
- package/lib/components/Table/Table.js +1 -1
- package/lib/components/TableBody/TableBody.js +1 -1
- package/lib/components/TableCaption/TableCaption.js +1 -1
- package/lib/components/TableCell/TableCell.js +1 -1
- package/lib/components/TableRow/TableRow.js +1 -1
- package/lib/components/Tabs/Tabs.js +2 -2
- package/lib/components/Tabs/Tabs.stories.js +2 -2
- package/lib/components/TextAreaField/TextAreaField.js +24 -17
- package/lib/components/TextAreaField/TextAreaField.stories.js +5 -3
- package/lib/components/TextField/TextField.js +19 -10
- package/lib/components/TextField/TextField.stories.js +2 -3
- package/lib/components/TimeZonePicker/TimeZonePicker.js +4 -4
- package/lib/components/TooltipTrigger/Tooltip.js +3 -3
- package/lib/components/TooltipTrigger/TooltipTrigger.js +3 -2
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +4 -4
- package/lib/hooks/useField/useField.js +14 -39
- package/lib/hooks/useField/useField.test.js +16 -55
- package/lib/hooks/useModalState/useModalState.js +1 -1
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +1 -1
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +1 -2
- package/lib/hooks/useSelectField/useSelectField.js +6 -6
- package/lib/index.js +9 -5
- package/lib/recipes/ApplicationSearchDropdown.stories.js +4 -4
- package/lib/recipes/AttributeMappingReadOnlyField.stories.js +5 -5
- package/lib/recipes/CollapsiblePanel.stories.js +4 -4
- package/lib/recipes/ConditionalFilter.stories.js +22 -22
- package/lib/recipes/CountryPicker.stories.js +3 -3
- package/lib/recipes/DatePicker.stories.js +5 -47
- package/lib/recipes/FlippableCaretMenuButton.stories.js +1 -1
- package/lib/recipes/LinkedListView.stories.js +10 -22
- package/lib/recipes/ListAndPanel.stories.js +2 -2
- package/lib/recipes/LogoTabs.stories.js +1 -1
- package/lib/recipes/MaskedValue.stories.js +1 -12
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +2 -2
- package/lib/recipes/RowLineChart.stories.js +95 -176
- package/lib/recipes/ScrollableListView.stories.js +2 -2
- package/lib/recipes/Slider.stories.js +7 -4
- package/lib/styles/ColorDocumentation.js +1 -1
- package/lib/{components/Checkbox/Checkbox.styles.js → styles/forms/checkbox.js} +0 -0
- package/lib/{components/ColorField/ColorField.styles.js → styles/forms/comboBox.js} +9 -8
- package/lib/styles/forms/index.js +12 -21
- package/lib/{components/Input/Input.styles.js → styles/forms/input.js} +12 -18
- package/lib/{components/Label/Label.styles.js → styles/forms/label.js} +1 -1
- package/lib/{components/FieldHelperText/FieldHelperText.styles.js → styles/forms/radio.js} +15 -21
- package/lib/{components/SearchField/Search.styles.js → styles/forms/search.js} +2 -2
- package/lib/{components/SelectField/Select.styles.js → styles/forms/select.js} +3 -3
- package/lib/{components/Switch/Switch.styles.js → styles/forms/switch.js} +1 -1
- package/lib/styles/forms/textarea.js +25 -0
- package/lib/styles/theme.js +4 -4
- package/lib/styles/themeOverrides/uiLibraryOverride.js +52 -69
- package/lib/styles/themes/astro-nano/astro-nano.js +19 -19
- package/lib/styles/variants/accordion.js +82 -0
- package/lib/{components/ComboBox/ComboBox.styles.js → styles/variants/bidirectionalIconButton.js} +19 -26
- package/lib/styles/variants/boxes.js +418 -0
- package/lib/styles/variants/buttons.js +792 -0
- package/lib/{components/CodeView/CodeView.styles.js → styles/variants/codeView.js} +0 -0
- package/lib/{components/CollapsiblePanel/CollapsiblePanel.styles.js → styles/variants/collapsiblePanel.js} +11 -65
- package/lib/styles/variants/imageUpload.js +19 -0
- package/lib/{components/Image/Image.styles.js → styles/variants/images.js} +0 -0
- package/lib/styles/variants/index.js +6 -25
- package/lib/{components/Link/Link.styles.js → styles/variants/links.js} +1 -1
- package/lib/{components/ListBox/ListBox.styles.js → styles/variants/listBox.js} +1 -9
- package/lib/{components/Loader/Loader.styles.js → styles/variants/loader.js} +0 -0
- package/lib/{components/Menu/Menu.styles.js → styles/variants/menu.js} +0 -0
- package/lib/{components/MenuItem/MenuItem.styles.js → styles/variants/menuItem.js} +0 -0
- package/lib/styles/variants/messages.js +43 -0
- package/lib/{components/Modal/Modal.styles.js → styles/variants/modal.js} +14 -10
- package/lib/{components/NavBar/NavBar.styles.js → styles/variants/navBar.js} +10 -94
- package/lib/{components/NumberField/NumberField.styles.js → styles/variants/numberField.js} +3 -12
- package/lib/{components/OverlayPanel/OverlayPanel.styles.js → styles/variants/overlayPanel.js} +6 -6
- package/lib/{components/PopoverMenu/PopoverMenu.styles.js → styles/variants/popoverMenu.js} +0 -0
- package/lib/styles/variants/rockerbutton.js +15 -0
- package/lib/{components/Separator/Separator.styles.js → styles/variants/separator.js} +0 -0
- package/lib/{components/Stepper/Stepper.styles.js → styles/variants/stepper.js} +3 -3
- package/lib/{components/Table/Table.styles.js → styles/variants/table.js} +15 -15
- package/lib/{components/Tabs/Tabs.style.js → styles/variants/tabs.js} +2 -12
- package/lib/{components/Text/Text.styles.js → styles/variants/text.js} +196 -3
- package/lib/styles/variants/tooltip.js +6 -0
- package/lib/styles/variants/variants.js +31 -47
- package/lib/utils/devUtils/constants/variants.js +2 -2
- package/package.json +54 -24
- package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +0 -85
- package/lib/cjs/components/AccordionGroup/Accordion.styles.js +0 -86
- package/lib/cjs/components/Badge/Badge.styles.js +0 -191
- package/lib/cjs/components/Bracket/Bracket.styles.js +0 -19
- package/lib/cjs/components/Breadcrumbs/Breadcrumb.styles.js +0 -65
- package/lib/cjs/components/Button/Buttons.styles.js +0 -276
- package/lib/cjs/components/Card/Card.styles.js +0 -23
- package/lib/cjs/components/CopyText/CopyText.styles.js +0 -69
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +0 -69
- package/lib/cjs/components/FileInputField/FileInputField.styles.js +0 -78
- package/lib/cjs/components/HelpHint/HelpHint.styles.js +0 -74
- package/lib/cjs/components/IconButton/IconButton.styles.js +0 -194
- package/lib/cjs/components/ImageUploadField/imageUpload.js +0 -69
- package/lib/cjs/components/ListItem/ListItem.styles.js +0 -31
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +0 -88
- package/lib/cjs/components/Messages/Message.styles.js +0 -110
- package/lib/cjs/components/Radio/Radio.styles.js +0 -75
- package/lib/cjs/components/RockerButton/RockerButton.styles.js +0 -72
- package/lib/cjs/components/ScrollBox/ScrollBox.styles.js +0 -53
- package/lib/cjs/components/TextArea/TextArea.styles.js +0 -69
- package/lib/cjs/components/TimeZonePicker/TimeZone.styles.js +0 -40
- package/lib/cjs/components/TooltipTrigger/Tooltip.styles.js +0 -93
- package/lib/cjs/styles/theme-ui/ThemeView.js +0 -27
- package/lib/cjs/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +0 -37
- package/lib/cjs/styles/themeOverrides/stories/Button.chromatic.stories.js +0 -72
- package/lib/cjs/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +0 -145
- package/lib/cjs/styles/themeOverrides/stories/IconButton.chromatic.stories.js +0 -49
- package/lib/cjs/styles/themeOverrides/stories/Label.chromatic.stories.js +0 -32
- package/lib/cjs/styles/themeOverrides/stories/Link.chromatic.stories.js +0 -34
- package/lib/cjs/styles/themeOverrides/stories/NavBar.chromatic.stories.js +0 -395
- package/lib/cjs/styles/themeOverrides/stories/NumberField.chromatic.stories.js +0 -32
- package/lib/cjs/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +0 -41
- package/lib/cjs/styles/themeOverrides/stories/SearchField.chromatic.stories.js +0 -40
- package/lib/cjs/styles/themeOverrides/stories/SelectField.chromatic.stories.js +0 -42
- package/lib/cjs/utils/devUtils/props/fieldAttributes.js +0 -74
- package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +0 -65
- package/lib/components/AccordionGroup/Accordion.styles.js +0 -66
- package/lib/components/Badge/Badge.styles.js +0 -163
- package/lib/components/Badge/index.js +0 -1
- package/lib/components/Box/Box.styles.js +0 -6
- package/lib/components/Bracket/Bracket.styles.js +0 -9
- package/lib/components/Breadcrumbs/Breadcrumb.styles.js +0 -45
- package/lib/components/Button/Buttons.styles.js +0 -246
- package/lib/components/Card/Card.styles.js +0 -13
- package/lib/components/CopyText/CopyText.styles.js +0 -48
- package/lib/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +0 -49
- package/lib/components/FileInputField/FileInputField.styles.js +0 -58
- package/lib/components/HelpHint/HelpHint.styles.js +0 -53
- package/lib/components/IconButton/IconButton.styles.js +0 -164
- package/lib/components/ImageUploadField/imageUpload.js +0 -49
- package/lib/components/ListItem/ListItem.styles.js +0 -21
- package/lib/components/ListViewItem/ListViewItem.styles.js +0 -69
- package/lib/components/Messages/Message.styles.js +0 -99
- package/lib/components/Radio/Radio.styles.js +0 -55
- package/lib/components/RockerButton/RockerButton.styles.js +0 -52
- package/lib/components/ScrollBox/ScrollBox.styles.js +0 -43
- package/lib/components/TextArea/TextArea.styles.js +0 -47
- package/lib/components/TimeZonePicker/TimeZone.styles.js +0 -30
- package/lib/components/TooltipTrigger/Tooltip.styles.js +0 -71
- package/lib/styles/theme-ui/ThemeView.js +0 -9
- package/lib/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +0 -17
- package/lib/styles/themeOverrides/stories/Button.chromatic.stories.js +0 -37
- package/lib/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +0 -108
- package/lib/styles/themeOverrides/stories/IconButton.chromatic.stories.js +0 -25
- package/lib/styles/themeOverrides/stories/Label.chromatic.stories.js +0 -12
- package/lib/styles/themeOverrides/stories/Link.chromatic.stories.js +0 -14
- package/lib/styles/themeOverrides/stories/NavBar.chromatic.stories.js +0 -367
- package/lib/styles/themeOverrides/stories/NumberField.chromatic.stories.js +0 -12
- package/lib/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +0 -21
- package/lib/styles/themeOverrides/stories/SearchField.chromatic.stories.js +0 -19
- package/lib/styles/themeOverrides/stories/SelectField.chromatic.stories.js +0 -21
- package/lib/styles/themeOverrides/withUiLibraryCss.js +0 -28
- package/lib/utils/devUtils/props/fieldAttributes.js +0 -52
@@ -20,7 +20,6 @@ import { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
20
20
|
import { v4 as uuid } from 'uuid';
|
21
21
|
import { Item, Menu } from '../../';
|
22
22
|
import { ariaAttributesBasePropTypes } from '../../utils/devUtils/props/ariaAttributes';
|
23
|
-
import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
|
24
23
|
import ImagePreviewButton from './ImagePreviewButton';
|
25
24
|
import ImageUploadFieldBase from './ImageUploadFieldBase';
|
26
25
|
import statuses from '../../utils/devUtils/constants/statuses';
|
@@ -101,7 +100,7 @@ var ImageUploadField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
101
100
|
id: statusId
|
102
101
|
}, state.isMenuOpen && 'Menu pop up expanded'));
|
103
102
|
});
|
104
|
-
ImageUploadField.propTypes = _objectSpread(
|
103
|
+
ImageUploadField.propTypes = _objectSpread({
|
105
104
|
/** Image preview (controlled), used to represent the current image state. */
|
106
105
|
previewImage: PropTypes.string,
|
107
106
|
|
@@ -150,7 +149,7 @@ ImageUploadField.propTypes = _objectSpread(_objectSpread({
|
|
150
149
|
|
151
150
|
/** Determines the helper text styling. */
|
152
151
|
status: PropTypes.oneOf(_Object$values(statuses))
|
153
|
-
}, ariaAttributesBasePropTypes)
|
152
|
+
}, ariaAttributesBasePropTypes);
|
154
153
|
ImageUploadField.defaultProps = {
|
155
154
|
fileTypes: ['image'],
|
156
155
|
loaderSize: 10,
|
@@ -20,7 +20,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
20
20
|
import React, { useRef, useState } from 'react';
|
21
21
|
import { Image, ImageUploadField, OverlayProvider } from '../../';
|
22
22
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
23
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
24
23
|
import statuses from '../../utils/devUtils/constants/statuses';
|
25
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
26
25
|
export default {
|
@@ -33,7 +32,7 @@ export default {
|
|
33
32
|
}
|
34
33
|
}
|
35
34
|
},
|
36
|
-
argTypes: _objectSpread(
|
35
|
+
argTypes: _objectSpread({
|
37
36
|
previewImage: {
|
38
37
|
control: {
|
39
38
|
type: 'text'
|
@@ -90,7 +89,7 @@ export default {
|
|
90
89
|
},
|
91
90
|
defaultValue: statuses.DEFAULT
|
92
91
|
}
|
93
|
-
}, ariaAttributeBaseArgTypes)
|
92
|
+
}, ariaAttributeBaseArgTypes)
|
94
93
|
};
|
95
94
|
export var Default = function Default(args) {
|
96
95
|
return (// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
@@ -15,9 +15,9 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
15
15
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
16
16
|
|
17
17
|
import React, { forwardRef, useMemo, useRef } from 'react';
|
18
|
-
import omit from 'lodash/omit';
|
19
18
|
import PropTypes from 'prop-types';
|
20
|
-
import
|
19
|
+
import omit from 'lodash/omit';
|
20
|
+
import { useVisuallyHidden } from '@react-aria/visually-hidden';
|
21
21
|
import { PopoverMenu } from '../../index';
|
22
22
|
import useField from '../../hooks/useField';
|
23
23
|
import FieldHelperText from '../FieldHelperText';
|
@@ -40,8 +40,7 @@ var ImageUploadFieldBase = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
40
40
|
|
41
41
|
var _useField = useField(_objectSpread({}, omit(props, ['onRemove']))),
|
42
42
|
fieldContainerProps = _useField.fieldContainerProps,
|
43
|
-
|
44
|
-
fieldControlWrapperProps = _useField.fieldControlWrapperProps,
|
43
|
+
fieldControlProps = _useField.fieldControlProps,
|
45
44
|
fieldLabelProps = _useField.fieldLabelProps;
|
46
45
|
|
47
46
|
var labelRef = useRef();
|
@@ -61,14 +60,14 @@ var ImageUploadFieldBase = /*#__PURE__*/forwardRef(function (props, inputRef) {
|
|
61
60
|
})), ___EmotionJSX(PopoverMenu, {
|
62
61
|
isOpen: isMenuOpen,
|
63
62
|
onOpenChange: handleOpenMenuChange
|
64
|
-
}, children), ___EmotionJSX(
|
63
|
+
}, children), ___EmotionJSX(Input, _extends({}, fieldControlProps, visuallyHiddenProps, {
|
65
64
|
accept: acceptableInputTypes,
|
66
65
|
"data-testid": "image-upload-input",
|
67
66
|
onChange: handleInputChange,
|
68
67
|
ref: inputRef,
|
69
68
|
type: "file",
|
70
69
|
value: ""
|
71
|
-
}))
|
70
|
+
})), !isImageType && ___EmotionJSX(FieldHelperText, {
|
72
71
|
status: statuses.DEFAULT
|
73
72
|
}, fileName), helperText && ___EmotionJSX(FieldHelperText, {
|
74
73
|
status: status
|
@@ -3,9 +3,11 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
|
|
3
3
|
var _excluded = ["className", "isDisabled", "onPress"];
|
4
4
|
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
|
-
import { mergeProps, useFocusRing, useLink } from 'react-aria';
|
7
6
|
import { Link as ThemeUILink } from 'theme-ui';
|
7
|
+
import { useLink } from '@react-aria/link';
|
8
|
+
import { useFocusRing } from '@react-aria/focus';
|
8
9
|
import { useHover, usePress } from '@react-aria/interactions';
|
10
|
+
import { mergeProps } from '@react-aria/utils';
|
9
11
|
import { usePropWarning, useStatusClasses } from '../../hooks';
|
10
12
|
/**
|
11
13
|
* Link uses the [Link - Theme-UI](https://theme-ui.com/components/link) component and
|
@@ -3,7 +3,7 @@ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
3
3
|
import React from 'react';
|
4
4
|
import Link from '.';
|
5
5
|
import { htmlElements } from '../../utils/devUtils/constants/htmlElements';
|
6
|
-
import variants from '
|
6
|
+
import variants from '../../styles/variants/links';
|
7
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
8
|
export default {
|
9
9
|
title: 'Components/Link',
|
@@ -21,7 +21,6 @@ import { v4 as uuid } from 'uuid';
|
|
21
21
|
import { VisuallyHidden } from '@react-aria/visually-hidden';
|
22
22
|
import { Box, Button, Loader, Icon, Text } from '../../';
|
23
23
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/devUtils/props/ariaAttributes';
|
24
|
-
import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
|
25
24
|
import { usePropWarning, useSelectField } from '../../hooks';
|
26
25
|
import SelectFieldBase from '../SelectFieldBase';
|
27
26
|
import statuses from '../../utils/devUtils/constants/statuses';
|
@@ -56,20 +55,19 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
56
55
|
}), ref),
|
57
56
|
selectFieldProps = _extends({}, _useSelectField);
|
58
57
|
|
59
|
-
var
|
58
|
+
var fieldControlProps = selectFieldProps.fieldControlProps,
|
60
59
|
isLoadingInitial = selectFieldProps.isLoadingInitial,
|
61
60
|
state = selectFieldProps.state,
|
62
61
|
triggerProps = selectFieldProps.triggerProps,
|
63
62
|
triggerRef = selectFieldProps.triggerRef;
|
64
63
|
|
65
64
|
var trigger = ___EmotionJSX(Button, _extends({
|
66
|
-
className:
|
65
|
+
className: fieldControlProps.className,
|
67
66
|
ref: triggerRef,
|
68
67
|
variant: "link",
|
69
|
-
tabIndex: isDisabled ? -1 : 0
|
70
|
-
}, triggerProps, ariaProps, {
|
68
|
+
tabIndex: isDisabled ? -1 : 0,
|
71
69
|
"aria-describedby": helperText && helperTextId
|
72
|
-
}), ___EmotionJSX(Text, {
|
70
|
+
}, triggerProps, ariaProps), ___EmotionJSX(Text, {
|
73
71
|
variant: "label",
|
74
72
|
color: "active"
|
75
73
|
}, placeholder), ___EmotionJSX(Box, {
|
@@ -94,7 +92,7 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
94
92
|
trigger: trigger
|
95
93
|
}));
|
96
94
|
});
|
97
|
-
LinkSelectField.propTypes = _objectSpread(
|
95
|
+
LinkSelectField.propTypes = _objectSpread({
|
98
96
|
/** Alignment of the popover menu relative to the trigger. */
|
99
97
|
align: PropTypes.oneOf(['start', 'end', 'middle']),
|
100
98
|
|
@@ -180,8 +178,20 @@ LinkSelectField.propTypes = _objectSpread(_objectSpread({
|
|
180
178
|
*
|
181
179
|
* (key: Key) => any
|
182
180
|
*/
|
183
|
-
onSelectionChange: PropTypes.func
|
184
|
-
|
181
|
+
onSelectionChange: PropTypes.func,
|
182
|
+
|
183
|
+
/**
|
184
|
+
* Props object passed along to `useSelect` from React Aria, `useSelectState` from React Stately,
|
185
|
+
* and/or the visible button representation for the select input.
|
186
|
+
*/
|
187
|
+
controlProps: PropTypes.shape({}),
|
188
|
+
|
189
|
+
/** Props object passed along to the root container as-is. */
|
190
|
+
containerProps: PropTypes.shape({}),
|
191
|
+
|
192
|
+
/** Props object passed along to the label as-is. */
|
193
|
+
labelProps: PropTypes.shape({})
|
194
|
+
}, ariaAttributesBasePropTypes);
|
185
195
|
LinkSelectField.defaultProps = {
|
186
196
|
placeholder: 'Select',
|
187
197
|
status: statuses.DEFAULT,
|
@@ -24,11 +24,10 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
24
24
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
25
25
|
|
26
26
|
import React, { useState } from 'react';
|
27
|
-
import { OverlayProvider } from 'react-aria';
|
28
|
-
import { useAsyncList } from 'react-stately';
|
27
|
+
import { OverlayProvider } from '@react-aria/overlays';
|
28
|
+
import { useAsyncList } from '@react-stately/data';
|
29
29
|
import { Box, Item, LinkSelectField, Separator } from '../../';
|
30
30
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
31
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
32
31
|
import statuses from '../../utils/devUtils/constants/statuses';
|
33
32
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
34
33
|
export default {
|
@@ -41,7 +40,7 @@ export default {
|
|
41
40
|
}
|
42
41
|
}
|
43
42
|
},
|
44
|
-
argTypes: _objectSpread(
|
43
|
+
argTypes: _objectSpread({
|
45
44
|
label: {
|
46
45
|
control: {
|
47
46
|
type: 'text'
|
@@ -77,12 +76,13 @@ export default {
|
|
77
76
|
isDisabled: {},
|
78
77
|
isOpen: {},
|
79
78
|
isRequired: {},
|
79
|
+
controlProps: {},
|
80
80
|
selectedKey: {
|
81
81
|
control: {
|
82
82
|
type: 'none'
|
83
83
|
}
|
84
84
|
}
|
85
|
-
}, ariaAttributeBaseArgTypes)
|
85
|
+
}, ariaAttributeBaseArgTypes)
|
86
86
|
};
|
87
87
|
export var Default = function Default(args) {
|
88
88
|
return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(LinkSelectField, _extends({}, args, {
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
+
var _excluded = ["children"];
|
4
|
+
import React, { forwardRef } from 'react';
|
5
|
+
import Box from '../Box/Box';
|
6
|
+
import { useDeprecationWarning } from '../../hooks';
|
7
|
+
/**
|
8
|
+
* The intended use of List is to hold a collection of <ListItem/> components.
|
9
|
+
* Accepts most of the styling props from [styled-system](https://styled-system.com/table).
|
10
|
+
*/
|
11
|
+
|
12
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
13
|
+
var List = /*#__PURE__*/forwardRef(function (props, ref) {
|
14
|
+
var children = props.children,
|
15
|
+
others = _objectWithoutProperties(props, _excluded);
|
16
|
+
|
17
|
+
useDeprecationWarning('The List component will be deprecated in Astro-UI 2.0.0, use ListView instead.');
|
18
|
+
return ___EmotionJSX(Box, _extends({
|
19
|
+
ref: ref,
|
20
|
+
role: "list",
|
21
|
+
as: "ul",
|
22
|
+
pl: "0"
|
23
|
+
}, others), children);
|
24
|
+
});
|
25
|
+
List.displayName = 'List';
|
26
|
+
export default List;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import List from '.';
|
3
|
+
import ListItem from '../ListItem';
|
4
|
+
import Text from '../Text';
|
5
|
+
import Separator from '../Separator';
|
6
|
+
import withDeprecationWarning from '../../utils/devUtils/decorators/withDeprecationWarning';
|
7
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
|
+
export default {
|
9
|
+
title: 'Deprecated/List',
|
10
|
+
component: [List, ListItem],
|
11
|
+
decorators: [function (Story, context) {
|
12
|
+
return withDeprecationWarning(Story, context, 'The `List` component will be deprecated in Astro-UI 2.0.0, use `ListView` instead.');
|
13
|
+
}]
|
14
|
+
};
|
15
|
+
export var Default = function Default() {
|
16
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Text, {
|
17
|
+
variant: "itemTitle",
|
18
|
+
mb: "md",
|
19
|
+
color: "text.secondary"
|
20
|
+
}, "Registration Forms"), ___EmotionJSX(List, null, ___EmotionJSX(ListItem, null, ___EmotionJSX(Text, {
|
21
|
+
variant: "itemTitle",
|
22
|
+
alignSelf: "center",
|
23
|
+
mr: "auto"
|
24
|
+
}, "Form 1")), ___EmotionJSX(Separator, {
|
25
|
+
margin: "0"
|
26
|
+
}), ___EmotionJSX(ListItem, {
|
27
|
+
title: "Form 2"
|
28
|
+
}, ___EmotionJSX(Text, {
|
29
|
+
variant: "itemTitle",
|
30
|
+
alignSelf: "center",
|
31
|
+
mr: "auto"
|
32
|
+
}, "Form 2")), ___EmotionJSX(Separator, {
|
33
|
+
margin: "0"
|
34
|
+
}), ___EmotionJSX(ListItem, {
|
35
|
+
title: "Form 3"
|
36
|
+
}, ___EmotionJSX(Text, {
|
37
|
+
variant: "itemTitle",
|
38
|
+
alignSelf: "center",
|
39
|
+
mr: "auto"
|
40
|
+
}, "Form 3")), ___EmotionJSX(Separator, {
|
41
|
+
margin: "0"
|
42
|
+
})));
|
43
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import React from 'react';
|
3
|
+
import { render, screen } from '@testing-library/react';
|
4
|
+
import List from './List';
|
5
|
+
import axeTest from '../../utils/testUtils/testAxe';
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
|
+
var testLabel = 'Test Label';
|
8
|
+
var defaultProps = {
|
9
|
+
title: testLabel
|
10
|
+
};
|
11
|
+
|
12
|
+
var getComponent = function getComponent() {
|
13
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
14
|
+
return render(___EmotionJSX(List, _extends({}, defaultProps, props)));
|
15
|
+
}; // Need to be added to each test file to test accessibility using axe.
|
16
|
+
|
17
|
+
|
18
|
+
axeTest(getComponent);
|
19
|
+
test('renders List component', function () {
|
20
|
+
getComponent();
|
21
|
+
var list = screen.getByRole('list');
|
22
|
+
expect(list).toBeInstanceOf(HTMLUListElement);
|
23
|
+
expect(list).toBeInTheDocument();
|
24
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './List';
|
@@ -18,11 +18,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
18
18
|
|
19
19
|
import React, { forwardRef, useRef, useImperativeHandle, useMemo } from 'react';
|
20
20
|
import PropTypes from 'prop-types';
|
21
|
-
import { mergeProps } from 'react-aria';
|
22
|
-
import { useCollator } from '@react-aria/i18n';
|
23
21
|
import { useListBox } from '@react-aria/listbox';
|
24
|
-
import {
|
22
|
+
import { mergeProps } from '@react-aria/utils';
|
25
23
|
import { Virtualizer, VirtualizerItem } from '@react-aria/virtualizer';
|
24
|
+
import { useCollator } from '@react-aria/i18n';
|
25
|
+
import { ListLayout } from '@react-stately/layout';
|
26
26
|
import { ListBoxContext } from './ListBoxContext';
|
27
27
|
import { Option } from './index.js';
|
28
28
|
import { isIterableProp } from '../../utils/devUtils/props/isIterable';
|
@@ -3,9 +3,9 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
|
4
4
|
import React from 'react';
|
5
5
|
import { axe } from 'jest-axe';
|
6
|
-
import { Section } from 'react-stately';
|
7
6
|
import { useListState } from '@react-stately/list';
|
8
7
|
import { render, screen } from '@testing-library/react';
|
8
|
+
import { Section } from '@react-stately/collections';
|
9
9
|
import userEvent from '@testing-library/user-event';
|
10
10
|
import ListBox from '.';
|
11
11
|
import { Item } from '../../index';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React, { useRef, useContext } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
|
-
import { useLocale } from '@react-aria/i18n';
|
5
4
|
import { useListBoxSection } from '@react-aria/listbox';
|
5
|
+
import { useLocale } from '@react-aria/i18n';
|
6
6
|
import { layoutInfoToStyle, useVirtualizerItem } from '@react-aria/virtualizer';
|
7
7
|
import { ListBoxContext } from './ListBoxContext';
|
8
8
|
import Box from '../Box';
|
@@ -43,7 +43,7 @@ var ListBoxSection = function ListBoxSection(props) {
|
|
43
43
|
}, groupProps), item.key !== state.collection.getFirstKey() && ___EmotionJSX(Separator, {
|
44
44
|
mt: "0px"
|
45
45
|
}), item.rendered && ___EmotionJSX(Box, _extends({}, headingProps, {
|
46
|
-
variant: "
|
46
|
+
variant: "boxes.listBoxSectionTitle"
|
47
47
|
}), item.rendered)), ___EmotionJSX(Box, {
|
48
48
|
style: layoutInfoToStyle(reusableView.layoutInfo, direction)
|
49
49
|
}, children));
|
@@ -16,9 +16,9 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
16
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
17
17
|
|
18
18
|
import React, { forwardRef, useRef, useImperativeHandle, useContext } from 'react';
|
19
|
-
import CircleSmallIcon from 'mdi-react/CircleSmallIcon';
|
20
19
|
import PropTypes from 'prop-types';
|
21
20
|
import { useOption } from '@react-aria/listbox';
|
21
|
+
import CircleSmallIcon from 'mdi-react/CircleSmallIcon';
|
22
22
|
import { useStatusClasses } from '../../hooks';
|
23
23
|
import Box from '../Box';
|
24
24
|
import Icon from '../Icon';
|
@@ -7,12 +7,13 @@ import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
|
|
7
7
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
8
8
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
9
9
|
import React from 'react';
|
10
|
-
import
|
10
|
+
import { Item } from '@react-stately/collections';
|
11
11
|
import CreateIcon from 'mdi-react/CreateIcon';
|
12
|
-
import FormSelectIcon from 'mdi-react/FormSelectIcon';
|
13
12
|
import MoreVertIcon from 'mdi-react/MoreVertIcon';
|
14
|
-
import
|
13
|
+
import FormSelectIcon from 'mdi-react/FormSelectIcon';
|
14
|
+
import { useAsyncList } from '@react-stately/data';
|
15
15
|
import { action } from '@storybook/addon-actions';
|
16
|
+
import isChromatic from 'chromatic/isChromatic';
|
16
17
|
import ListView from '.';
|
17
18
|
import Box from '../Box/Box';
|
18
19
|
import Icon from '../Icon';
|
@@ -4,9 +4,9 @@ import _Set from "@babel/runtime-corejs3/core-js-stable/set";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
|
5
5
|
import React from 'react';
|
6
6
|
import _ from 'lodash';
|
7
|
-
import { FocusScope } from 'react-aria';
|
8
|
-
import { Item } from 'react-stately';
|
9
7
|
import userEvent from '@testing-library/user-event';
|
8
|
+
import { FocusScope } from '@react-aria/focus';
|
9
|
+
import { Item } from '@react-stately/collections';
|
10
10
|
import { render, screen } from '../../utils/testUtils/testWrapper';
|
11
11
|
import loadingStates from '../../utils/devUtils/constants/loadingStates';
|
12
12
|
import ListView from './ListView';
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React, { useContext, useRef } from 'react';
|
3
|
+
import { mergeProps } from '@react-aria/utils';
|
4
|
+
import { useFocusRing } from '@react-aria/focus';
|
3
5
|
import PropTypes from 'prop-types';
|
4
|
-
import { mergeProps, useFocusRing } from 'react-aria';
|
5
6
|
import { useListItem } from '@react-aria/list';
|
6
7
|
import { useHover } from '@react-aria/interactions';
|
7
8
|
import { ListViewContext } from '../ListView/ListViewContext';
|
@@ -70,9 +71,9 @@ var ListViewItem = function ListViewItem(props) {
|
|
70
71
|
outline: 'none'
|
71
72
|
}
|
72
73
|
}), ___EmotionJSX(Box, _extends({
|
73
|
-
as: "div"
|
74
|
-
variant: "listViewItem.container"
|
74
|
+
as: "div"
|
75
75
|
}, gridCellProps, {
|
76
|
+
variant: "boxes.listViewItem",
|
76
77
|
isFocused: isDisabled ? false : isFocusVisible,
|
77
78
|
isDisabled: isDisabled,
|
78
79
|
isSelected: isSelected,
|
@@ -19,9 +19,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
19
19
|
|
20
20
|
import React, { forwardRef, useContext, useImperativeHandle, useRef } from 'react';
|
21
21
|
import PropTypes from 'prop-types';
|
22
|
-
import {
|
23
|
-
import { useTreeState } from 'react-stately';
|
24
|
-
import {
|
22
|
+
import { useMenu } from '@react-aria/menu';
|
23
|
+
import { useTreeState } from '@react-stately/tree';
|
24
|
+
import { useFocusRing } from '@react-aria/focus';
|
25
|
+
import { useSyncRef, mergeProps } from '@react-aria/utils';
|
25
26
|
import { MenuContext } from '../../context/MenuContext';
|
26
27
|
import { usePropWarning } from '../../hooks';
|
27
28
|
import MenuItem from '../MenuItem';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React from 'react';
|
3
|
-
import { Item } from 'react-stately';
|
3
|
+
import { Item } from '@react-stately/collections';
|
4
4
|
import Menu from '../Menu';
|
5
5
|
import Text from '../Text';
|
6
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -4,7 +4,8 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
|
|
4
4
|
var _excluded = ["isSeparator", "isPressed", "data-id"];
|
5
5
|
import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
|
-
import { mergeProps
|
7
|
+
import { mergeProps } from '@react-aria/utils';
|
8
|
+
import { useMenuItem } from '@react-aria/menu';
|
8
9
|
import { useFocus, useHover, usePress } from '@react-aria/interactions';
|
9
10
|
import { useMenuContext } from '../../context/MenuContext';
|
10
11
|
import { usePropWarning, useStatusClasses } from '../../hooks';
|
@@ -103,7 +103,7 @@ var Message = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
103
103
|
status: status
|
104
104
|
}, messageIconProps));
|
105
105
|
return ___EmotionJSX(Box, {
|
106
|
-
variant: "
|
106
|
+
variant: "messages.transition",
|
107
107
|
className: wrapperClasses,
|
108
108
|
sx: {
|
109
109
|
maxHeight: !isHidden ? innerHeight : 0
|
@@ -117,7 +117,7 @@ var Message = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
117
117
|
}, ___EmotionJSX(Box, {
|
118
118
|
ref: ref,
|
119
119
|
isRow: true,
|
120
|
-
variant: "
|
120
|
+
variant: "messages.item",
|
121
121
|
className: statusClasses,
|
122
122
|
bg: bg
|
123
123
|
}, messageIcon, ___EmotionJSX(Text, {
|
@@ -126,7 +126,7 @@ var Message = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
126
126
|
mr: "md"
|
127
127
|
}, children), ___EmotionJSX(CloseButton, {
|
128
128
|
onPress: onCloseHandler,
|
129
|
-
variant: "
|
129
|
+
variant: "close",
|
130
130
|
className: statusClasses,
|
131
131
|
color: color
|
132
132
|
}))));
|
@@ -26,7 +26,7 @@ var Messages = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
26
26
|
var state = useListState(props);
|
27
27
|
return ___EmotionJSX(Box, _extends({
|
28
28
|
ref: ref,
|
29
|
-
variant: "
|
29
|
+
variant: "messages.wrapper"
|
30
30
|
}, others), _mapInstanceProperty(_context = _Array$from(state.collection)).call(_context, function (item) {
|
31
31
|
return ___EmotionJSX(Message, {
|
32
32
|
key: item.key,
|
@@ -19,8 +19,8 @@ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
19
19
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
20
20
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
21
21
|
import React, { useEffect, useReducer, useState } from 'react';
|
22
|
+
import { Item } from '@react-stately/collections';
|
22
23
|
import AccountIcon from 'mdi-react/AccountIcon';
|
23
|
-
import { Item } from 'react-stately';
|
24
24
|
import statuses from '../../utils/devUtils/constants/statuses';
|
25
25
|
import { Box, Button, Messages } from '../..';
|
26
26
|
import { messagesReducerStory as messagesReducer, multiMessagesReducerStory as multiMessagesReducer } from './index';
|
@@ -3,7 +3,7 @@ import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
|
|
3
3
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
4
4
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
5
5
|
import React from 'react';
|
6
|
-
import { Item } from 'react-stately';
|
6
|
+
import { Item } from '@react-stately/collections';
|
7
7
|
import userEvent from '@testing-library/user-event';
|
8
8
|
import AccountIcon from 'mdi-react/AccountIcon';
|
9
9
|
import axeTest from '../../utils/testUtils/testAxe';
|
@@ -16,13 +16,16 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
16
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
17
17
|
|
18
18
|
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
|
19
|
-
import CloseIcon from 'mdi-react/CloseIcon';
|
20
19
|
import PropTypes from 'prop-types';
|
21
|
-
import {
|
20
|
+
import { useOverlay, usePreventScroll, useModal, OverlayContainer } from '@react-aria/overlays';
|
21
|
+
import { useDialog } from '@react-aria/dialog';
|
22
|
+
import { FocusScope } from '@react-aria/focus';
|
23
|
+
import CloseIcon from 'mdi-react/CloseIcon';
|
22
24
|
import Box from '../Box';
|
23
25
|
import IconButton from '../IconButton';
|
24
26
|
import Icon from '../Icon';
|
25
27
|
import Text from '../Text';
|
28
|
+
import { useStatusClasses, useDeprecationWarning } from '../../hooks';
|
26
29
|
/**
|
27
30
|
* Modals are overlays that interrupt a user’s workflow to convey an important message.
|
28
31
|
* The component must be wrapped in an OverlayProvider, and the first child should be a trigger,
|
@@ -85,7 +88,16 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
85
88
|
dialogProps = _useDialog.dialogProps,
|
86
89
|
titleProps = _useDialog.titleProps;
|
87
90
|
|
91
|
+
var _useStatusClasses = useStatusClasses(className, {
|
92
|
+
isDarkMode: others.variant === 'modal.dark'
|
93
|
+
}),
|
94
|
+
classNames = _useStatusClasses.classNames;
|
95
|
+
|
96
|
+
useDeprecationWarning('The "dark" variant for Modal will be deprecated in Astro-UI 2.0.0.', {
|
97
|
+
isActive: others.variant === 'modal.dark'
|
98
|
+
});
|
88
99
|
return ___EmotionJSX(OverlayContainer, null, ___EmotionJSX(Box, _extends({
|
100
|
+
className: classNames,
|
89
101
|
variant: "modal.container"
|
90
102
|
}, others, containerProps), ___EmotionJSX(FocusScope, {
|
91
103
|
contain: true,
|