@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
@@ -23,15 +23,15 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
|
|
23
23
|
import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
|
24
24
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
25
25
|
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
26
|
-
import Clear from 'mdi-react/CloseIcon';
|
27
26
|
import PropTypes from 'prop-types';
|
28
|
-
import
|
27
|
+
import Clear from 'mdi-react/CloseIcon';
|
28
|
+
import { FocusScope } from '@react-aria/focus';
|
29
29
|
import { useFilter } from '@react-aria/i18n';
|
30
|
+
import { DismissButton, useOverlayPosition } from '@react-aria/overlays';
|
30
31
|
import { useLayoutEffect, useResizeObserver } from '@react-aria/utils';
|
31
32
|
import { useListState } from '@react-stately/list';
|
32
|
-
import { Box,
|
33
|
+
import { Box, Chip, Icon, IconButton, PopoverContainer, ScrollBox, Text, TextField } from '../../';
|
33
34
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/devUtils/props/ariaAttributes';
|
34
|
-
import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
|
35
35
|
import { usePropWarning } from '../../hooks';
|
36
36
|
import ListBox from '../ListBox';
|
37
37
|
import { isIterableProp } from '../../utils/devUtils/props/isIterable';
|
@@ -347,11 +347,11 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
347
347
|
});
|
348
348
|
|
349
349
|
if (item) {
|
350
|
-
return ___EmotionJSX(
|
350
|
+
return ___EmotionJSX(Chip, {
|
351
351
|
key: item.key,
|
352
352
|
role: "presentation",
|
353
353
|
label: item.name,
|
354
|
-
variant: "
|
354
|
+
variant: "variants.boxes.readOnlyChip",
|
355
355
|
bg: "white",
|
356
356
|
textProps: {
|
357
357
|
sx: {
|
@@ -365,10 +365,10 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
365
365
|
}));
|
366
366
|
|
367
367
|
var multivaluesFieldChip = function multivaluesFieldChip(item) {
|
368
|
-
return ___EmotionJSX(
|
368
|
+
return ___EmotionJSX(Chip, _extends({
|
369
369
|
key: item.key,
|
370
370
|
role: "presentation",
|
371
|
-
variant: "
|
371
|
+
variant: "variants.boxes.selectedItemChip",
|
372
372
|
bg: "active",
|
373
373
|
label: item.name,
|
374
374
|
slots: item.slots
|
@@ -377,7 +377,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
377
377
|
onPress: function onPress() {
|
378
378
|
return deleteItem(item.key);
|
379
379
|
},
|
380
|
-
variant: "
|
380
|
+
variant: "buttons.chipDeleteButton"
|
381
381
|
}, item.buttonProps), ___EmotionJSX(Icon, {
|
382
382
|
icon: Clear,
|
383
383
|
color: "white",
|
@@ -473,7 +473,10 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
473
473
|
style: style
|
474
474
|
}, listbox));
|
475
475
|
});
|
476
|
-
MultivaluesField.propTypes = _objectSpread(
|
476
|
+
MultivaluesField.propTypes = _objectSpread({
|
477
|
+
/** Props object that is spread directly into the root (top-level) Box component. */
|
478
|
+
containerProps: PropTypes.shape({}),
|
479
|
+
|
477
480
|
/** The initial selected keys in the collection (uncontrolled). */
|
478
481
|
defaultSelectedKeys: isIterableProp,
|
479
482
|
|
@@ -596,7 +599,7 @@ MultivaluesField.propTypes = _objectSpread(_objectSpread({
|
|
596
599
|
|
597
600
|
/** Determines the input status indicator and helper text styling. */
|
598
601
|
status: PropTypes.oneOf(_Object$values(statuses))
|
599
|
-
}, ariaAttributesBasePropTypes)
|
602
|
+
}, ariaAttributesBasePropTypes);
|
600
603
|
MultivaluesField.defaultProps = {
|
601
604
|
direction: 'bottom',
|
602
605
|
isReadOnly: false,
|
@@ -17,13 +17,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
17
17
|
import React, { useState } from 'react';
|
18
18
|
import { Box, Item, MultivaluesField, OverlayProvider, Icon } from '../../';
|
19
19
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
20
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
21
20
|
import statuses from '../../utils/devUtils/constants/statuses';
|
22
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
23
22
|
export default {
|
24
23
|
title: 'Form/MultivaluesField',
|
25
24
|
component: MultivaluesField,
|
26
|
-
argTypes: _objectSpread(
|
25
|
+
argTypes: _objectSpread({
|
27
26
|
direction: {
|
28
27
|
defaultValue: 'bottom'
|
29
28
|
},
|
@@ -70,7 +69,7 @@ export default {
|
|
70
69
|
type: 'text'
|
71
70
|
}
|
72
71
|
}
|
73
|
-
}, ariaAttributeBaseArgTypes),
|
72
|
+
}, ariaAttributeBaseArgTypes),
|
74
73
|
parameters: {
|
75
74
|
docs: {
|
76
75
|
source: {
|
@@ -215,11 +214,11 @@ var itemsWithSlots = [{
|
|
215
214
|
name: 'Aardvark',
|
216
215
|
key: 'Aardvark',
|
217
216
|
chipProps: {
|
218
|
-
variant: '
|
217
|
+
variant: 'variants.boxes.itemChipWithSlot',
|
219
218
|
bg: 'white'
|
220
219
|
},
|
221
220
|
buttonProps: {
|
222
|
-
variant: 'chipWithSlotDeleteButton'
|
221
|
+
variant: 'buttons.chipWithSlotDeleteButton'
|
223
222
|
},
|
224
223
|
slots: {
|
225
224
|
leftIcon: ___EmotionJSX(Icon, {
|
@@ -232,11 +231,11 @@ var itemsWithSlots = [{
|
|
232
231
|
name: 'Kangaroo',
|
233
232
|
key: 'Kangaroo',
|
234
233
|
chipProps: {
|
235
|
-
variant: '
|
234
|
+
variant: 'variants.boxes.itemChipWithSlot',
|
236
235
|
bg: 'white'
|
237
236
|
},
|
238
237
|
buttonProps: {
|
239
|
-
variant: 'chipWithSlotDeleteButton'
|
238
|
+
variant: 'buttons.chipWithSlotDeleteButton'
|
240
239
|
},
|
241
240
|
slots: {
|
242
241
|
leftIcon: ___EmotionJSX(Icon, {
|
@@ -249,11 +248,11 @@ var itemsWithSlots = [{
|
|
249
248
|
name: 'Snake',
|
250
249
|
key: 'Snake',
|
251
250
|
chipProps: {
|
252
|
-
variant: '
|
251
|
+
variant: 'variants.boxes.itemChipWithSlot',
|
253
252
|
bg: 'white'
|
254
253
|
},
|
255
254
|
buttonProps: {
|
256
|
-
variant: 'chipWithSlotDeleteButton'
|
255
|
+
variant: 'buttons.chipWithSlotDeleteButton'
|
257
256
|
},
|
258
257
|
slots: {
|
259
258
|
leftIcon: ___EmotionJSX(Icon, {
|
@@ -467,10 +467,10 @@ test('default selected keys', function () {
|
|
467
467
|
});
|
468
468
|
var listbox = screen.queryByRole('listbox');
|
469
469
|
expect(listbox).not.toBeInTheDocument();
|
470
|
-
var
|
471
|
-
expect(
|
472
|
-
var
|
473
|
-
expect(
|
470
|
+
var firstChip = screen.getByText(items[1].name);
|
471
|
+
expect(firstChip).toBeInTheDocument();
|
472
|
+
var secondChip = screen.getByText(items[2].name);
|
473
|
+
expect(secondChip).toBeInTheDocument();
|
474
474
|
});
|
475
475
|
test('selected keys', function () {
|
476
476
|
getComponent({
|
@@ -478,10 +478,10 @@ test('selected keys', function () {
|
|
478
478
|
});
|
479
479
|
var listbox = screen.queryByRole('listbox');
|
480
480
|
expect(listbox).not.toBeInTheDocument();
|
481
|
-
var
|
482
|
-
expect(
|
483
|
-
var
|
484
|
-
expect(
|
481
|
+
var firstChip = screen.getByText(items[1].name);
|
482
|
+
expect(firstChip).toBeInTheDocument();
|
483
|
+
var secondChip = screen.getByText(items[2].name);
|
484
|
+
expect(secondChip).toBeInTheDocument();
|
485
485
|
});
|
486
486
|
test('should have no accessibility violations', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
487
487
|
var _getComponent, container, results;
|
@@ -512,13 +512,13 @@ test('read only keys', function () {
|
|
512
512
|
});
|
513
513
|
var listbox = screen.queryByRole('listbox');
|
514
514
|
expect(listbox).not.toBeInTheDocument();
|
515
|
-
var
|
516
|
-
var deleteButton1 =
|
517
|
-
expect(
|
515
|
+
var firstChip = screen.getByText(items[1].name);
|
516
|
+
var deleteButton1 = firstChip.nextSibling;
|
517
|
+
expect(firstChip).toBeInTheDocument();
|
518
518
|
expect(deleteButton1).toBeNull();
|
519
|
-
var
|
520
|
-
expect(
|
521
|
-
var deleteButton2 =
|
519
|
+
var secondChip = screen.getByText(items[2].name);
|
520
|
+
expect(secondChip).toBeInTheDocument();
|
521
|
+
var deleteButton2 = firstChip.nextSibling;
|
522
522
|
expect(deleteButton2).toBeNull();
|
523
523
|
});
|
524
524
|
test('passing helper text should display it and correct aria attributes on input', function () {
|
@@ -112,7 +112,7 @@ var data = [{
|
|
112
112
|
children: [___EmotionJSX(NavBarItemLink, {
|
113
113
|
key: "Dashboard Link Group",
|
114
114
|
id: "Dashboard Link Group",
|
115
|
-
variant: "
|
115
|
+
variant: "buttons.navItemButton",
|
116
116
|
href: "https://pingidentity.com/"
|
117
117
|
}, "Group"), ___EmotionJSX(NavBarItemButton, {
|
118
118
|
key: "Dashboard Link Populations",
|
@@ -3,8 +3,9 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
|
|
3
3
|
var _excluded = ["icon", "text", "className", "id", "onPress"];
|
4
4
|
import React, { useRef, forwardRef, useImperativeHandle } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
|
-
import { mergeProps, useFocusRing } from 'react-aria';
|
7
6
|
import { useHover, usePress } from '@react-aria/interactions';
|
7
|
+
import { mergeProps } from '@react-aria/utils';
|
8
|
+
import { useFocusRing } from '@react-aria/focus';
|
8
9
|
import { Box, Icon, Text } from '../../index';
|
9
10
|
import { useStatusClasses, useNavBarPress } from '../../hooks';
|
10
11
|
import { useNavBarContext } from '../../context/NavBarContext';
|
@@ -66,7 +67,7 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
66
67
|
var color = isSelected ? 'white' : 'neutral.95';
|
67
68
|
return ___EmotionJSX(Box, _extends({
|
68
69
|
id: key,
|
69
|
-
variant: "navBar.
|
70
|
+
variant: "navBar.navItem",
|
70
71
|
isRow: true,
|
71
72
|
tabIndex: 0,
|
72
73
|
className: classNames,
|
@@ -90,7 +91,7 @@ var NavBarItem = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
90
91
|
fill: color
|
91
92
|
}
|
92
93
|
}), ___EmotionJSX(Text, {
|
93
|
-
variant: "
|
94
|
+
variant: "navBarHeaderText"
|
94
95
|
}, text)));
|
95
96
|
});
|
96
97
|
NavBarItem.propTypes = {
|
@@ -45,7 +45,7 @@ var NavBarItemButton = function NavBarItemButton(props) {
|
|
45
45
|
|
46
46
|
return ___EmotionJSX(Button, _extends({
|
47
47
|
id: key,
|
48
|
-
variant: "
|
48
|
+
variant: "navItemButton",
|
49
49
|
onPress: onNavPress,
|
50
50
|
className: classNames,
|
51
51
|
color: isSelected ? 'white' : undefined
|
@@ -60,7 +60,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
|
|
60
60
|
},
|
61
61
|
"aria-hidden": "true"
|
62
62
|
}), ___EmotionJSX(Text, {
|
63
|
-
variant: "
|
63
|
+
variant: "navBarHeaderText"
|
64
64
|
}, heading), ___EmotionJSX(Box, {
|
65
65
|
isRow: true,
|
66
66
|
alignItems: "center",
|
@@ -44,7 +44,7 @@ var NavBarItemLink = function NavBarItemLink(props) {
|
|
44
44
|
|
45
45
|
return ___EmotionJSX(Link, _extends({
|
46
46
|
id: key,
|
47
|
-
variant: "
|
47
|
+
variant: "buttons.navItemButton",
|
48
48
|
className: classNames,
|
49
49
|
onPress: onNavPress,
|
50
50
|
color: isSelected ? 'white' : undefined
|
@@ -37,7 +37,7 @@ var NavBarSection = function NavBarSection(_ref) {
|
|
37
37
|
return ___EmotionJSX(React.Fragment, null, hasSeparator && ___EmotionJSX(Separator, {
|
38
38
|
variant: "separator.navBarSeparator"
|
39
39
|
}), title && ___EmotionJSX(Text, {
|
40
|
-
variant: "
|
40
|
+
variant: "text.navBarSubtitle",
|
41
41
|
mt: hasSeparator ? '0' : undefined
|
42
42
|
}, title), ___EmotionJSX("ul", _extends({
|
43
43
|
ref: ref,
|
@@ -141,7 +141,7 @@ var SectionItem = function SectionItem(_ref2) {
|
|
141
141
|
|
142
142
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Button, _extends({
|
143
143
|
ref: headerButtonRef,
|
144
|
-
variant: "
|
144
|
+
variant: "navBarSectionButton",
|
145
145
|
onPress: function onPress() {
|
146
146
|
return onExpandedChange(!isExpanded);
|
147
147
|
}
|
@@ -16,17 +16,17 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
16
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
17
17
|
|
18
18
|
import React, { forwardRef, useCallback, useImperativeHandle, useMemo } from 'react';
|
19
|
-
import omit from 'lodash/omit';
|
20
19
|
import PropTypes from 'prop-types';
|
21
|
-
import MenuDown from 'mdi-react/MenuDownIcon';
|
22
20
|
import MenuUp from 'mdi-react/MenuUpIcon';
|
23
|
-
import
|
24
|
-
import {
|
21
|
+
import MenuDown from 'mdi-react/MenuDownIcon';
|
22
|
+
import { useNumberField } from '@react-aria/numberfield';
|
23
|
+
import { useNumberFieldState } from '@react-stately/numberfield';
|
25
24
|
import { useLocale } from '@react-aria/i18n';
|
25
|
+
import { mergeProps } from '@react-aria/utils';
|
26
|
+
import omit from 'lodash/omit';
|
26
27
|
import { v4 as uuid } from 'uuid';
|
27
28
|
import { Box, FieldHelperText, Icon, IconButton, Input, Label } from '../../';
|
28
29
|
import { ariaAttributesBasePropTypes } from '../../utils/devUtils/props/ariaAttributes';
|
29
|
-
import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
|
30
30
|
import { useField, usePropWarning } from '../../hooks';
|
31
31
|
import statuses from '../../utils/devUtils/constants/statuses';
|
32
32
|
/**
|
@@ -62,8 +62,7 @@ var NumberField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
62
62
|
|
63
63
|
var _useField = useField(props),
|
64
64
|
fieldContainerProps = _useField.fieldContainerProps,
|
65
|
-
|
66
|
-
fieldControlWrapperProps = _useField.fieldControlWrapperProps,
|
65
|
+
fieldControlProps = _useField.fieldControlProps,
|
67
66
|
fieldLabelProps = _useField.fieldLabelProps;
|
68
67
|
|
69
68
|
usePropWarning(props, 'disabled', 'isDisabled');
|
@@ -74,7 +73,7 @@ var NumberField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
74
73
|
});
|
75
74
|
|
76
75
|
var ControlArrows = ___EmotionJSX(Box, {
|
77
|
-
variant: "
|
76
|
+
variant: "numberField.arrows"
|
78
77
|
}, ___EmotionJSX(IconButton, _extends({}, incrementButtonProps, {
|
79
78
|
ref: decRef,
|
80
79
|
tabIndex: "-1",
|
@@ -95,20 +94,20 @@ var NumberField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
95
94
|
|
96
95
|
var onInputFocus = useCallback(function (e) {
|
97
96
|
e.persist();
|
98
|
-
|
97
|
+
fieldControlProps.onFocus(e);
|
99
98
|
inputProps.onFocus(e);
|
100
|
-
}, [
|
99
|
+
}, [fieldControlProps, inputProps]);
|
101
100
|
var onInputBlur = useCallback(function (e) {
|
102
101
|
e.persist();
|
103
|
-
|
102
|
+
fieldControlProps.onBlur(e);
|
104
103
|
inputProps.onBlur(e);
|
105
|
-
}, [
|
106
|
-
var
|
107
|
-
return _objectSpread(_objectSpread({},
|
104
|
+
}, [fieldControlProps, inputProps]);
|
105
|
+
var updatedFieldControlProps = useMemo(function () {
|
106
|
+
return _objectSpread(_objectSpread({}, fieldControlProps), {}, {
|
108
107
|
onFocus: onInputFocus,
|
109
108
|
onBlur: onInputBlur
|
110
109
|
});
|
111
|
-
}, [
|
110
|
+
}, [fieldControlProps, onInputBlur, onInputFocus]);
|
112
111
|
|
113
112
|
var onInputChange = function onInputChange(e) {
|
114
113
|
var _context;
|
@@ -137,19 +136,18 @@ var NumberField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
137
136
|
};
|
138
137
|
|
139
138
|
inputProps['aria-roledescription'] = null;
|
140
|
-
var helperTextId =
|
141
|
-
return uuid();
|
142
|
-
}, []);
|
139
|
+
var helperTextId = uuid();
|
143
140
|
return ___EmotionJSX(Box, fieldContainerProps, ___EmotionJSX(Label, mergeProps(fieldLabelProps, labelProps)), ___EmotionJSX(Box, _extends({
|
144
|
-
variant: "
|
145
|
-
}, groupProps), ___EmotionJSX(Box,
|
146
|
-
variant: "
|
147
|
-
|
141
|
+
variant: "numberField.noDefaultArrows"
|
142
|
+
}, groupProps), ___EmotionJSX(Box, {
|
143
|
+
variant: "numberField.arrowsWrapper",
|
144
|
+
className: fieldControlProps.className
|
145
|
+
}, ___EmotionJSX(Input, _extends({
|
148
146
|
variant: "forms.input.numberField",
|
149
147
|
ref: inputRef // we don't want to merge this props, we want to
|
150
148
|
// overwrite them like defaultValue, value, ect.
|
151
149
|
|
152
|
-
},
|
150
|
+
}, updatedFieldControlProps, omit(inputProps, ['name', 'onFocus', 'onBlur']), {
|
153
151
|
onChange: onInputChange,
|
154
152
|
"aria-describedby": helperText && helperTextId,
|
155
153
|
role: "textbox"
|
@@ -159,7 +157,7 @@ var NumberField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
159
157
|
}, helperText)));
|
160
158
|
});
|
161
159
|
export default NumberField;
|
162
|
-
NumberField.propTypes = _objectSpread(
|
160
|
+
NumberField.propTypes = _objectSpread({
|
163
161
|
/** A custom aria-label for the decrement button.
|
164
162
|
* If not provided, the localized string "Decrement" is used. */
|
165
163
|
decrementAriaLabel: PropTypes.string,
|
@@ -244,4 +242,4 @@ NumberField.propTypes = _objectSpread(_objectSpread({
|
|
244
242
|
|
245
243
|
/** The current value (controlled). */
|
246
244
|
value: PropTypes.number
|
247
|
-
}, ariaAttributesBasePropTypes)
|
245
|
+
}, ariaAttributesBasePropTypes);
|
@@ -15,7 +15,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
15
15
|
|
16
16
|
import React, { useState } from 'react';
|
17
17
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
18
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
19
18
|
import NumberField from './NumberField';
|
20
19
|
import statuses from '../../utils/devUtils/constants/statuses';
|
21
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -29,7 +28,7 @@ export default {
|
|
29
28
|
}
|
30
29
|
}
|
31
30
|
},
|
32
|
-
argTypes: _objectSpread(
|
31
|
+
argTypes: _objectSpread({
|
33
32
|
label: {
|
34
33
|
control: {
|
35
34
|
type: 'text'
|
@@ -102,7 +101,7 @@ export default {
|
|
102
101
|
type: 'none'
|
103
102
|
}
|
104
103
|
}
|
105
|
-
}, ariaAttributeBaseArgTypes)
|
104
|
+
}, ariaAttributeBaseArgTypes)
|
106
105
|
};
|
107
106
|
export var Default = function Default(args) {
|
108
107
|
return ___EmotionJSX(NumberField, args);
|
@@ -5,7 +5,7 @@ var _excluded = ["children", "isOpen", "onClose", "className", "state", "size",
|
|
5
5
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
6
6
|
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
|
7
7
|
import PropTypes from 'prop-types';
|
8
|
-
import { FocusScope } from 'react-aria';
|
8
|
+
import { FocusScope } from '@react-aria/focus';
|
9
9
|
import { Box } from '../../';
|
10
10
|
import { useStatusClasses, useOverlayPanelState } from '../../hooks';
|
11
11
|
import { panelSizes } from '../../utils/devUtils/constants/panelSizes';
|
@@ -56,13 +56,13 @@ var OverlayPanel = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
56
56
|
return ___EmotionJSX(FocusScope, {
|
57
57
|
autoFocus: true
|
58
58
|
}, ___EmotionJSX(Box, _extends({
|
59
|
-
variant: "overlayPanel.
|
59
|
+
variant: "overlayPanel.overlayPanel",
|
60
60
|
ref: overlayPanelRef
|
61
61
|
}, others, {
|
62
62
|
className: classNames,
|
63
63
|
onKeyUp: handleClose
|
64
64
|
}), ___EmotionJSX(Box, {
|
65
|
-
variant: "overlayPanel.
|
65
|
+
variant: "overlayPanel.overlayPanelBody",
|
66
66
|
className: classNames
|
67
67
|
}, children)));
|
68
68
|
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
2
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
3
3
|
import React, { useState, useRef } from 'react';
|
4
|
-
import { Item } from 'react-stately';
|
4
|
+
import { Item } from '@react-stately/collections';
|
5
5
|
import ArrowTopRightBottomLeft from 'mdi-react/ArrowTopRightBottomLeftIcon';
|
6
6
|
import ArrowCollapse from 'mdi-react/ArrowCollapseIcon';
|
7
7
|
import CloseIcon from 'mdi-react/CloseIcon';
|
@@ -105,7 +105,7 @@ export var InnerPanel = function InnerPanel(_ref2) {
|
|
105
105
|
};
|
106
106
|
|
107
107
|
var inner = ___EmotionJSX(React.Fragment, null, innerState.isOpen && ___EmotionJSX(OverlayPanel, _extends({
|
108
|
-
variant: "overlayPanel.
|
108
|
+
variant: "overlayPanel.overlayPanelInner" // applies higher z-index
|
109
109
|
,
|
110
110
|
isOpen: innerState.isOpen
|
111
111
|
}, args, {
|
@@ -20,14 +20,13 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
20
20
|
import _Array$isArray from "@babel/runtime-corejs3/core-js-stable/array/is-array";
|
21
21
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
22
22
|
import React, { forwardRef, useRef, useImperativeHandle, useState, useCallback } from 'react';
|
23
|
-
import EyeOffIcon from 'mdi-react/EyeOffOutlineIcon';
|
24
|
-
import EyeIcon from 'mdi-react/EyeOutlineIcon';
|
25
23
|
import PropTypes from 'prop-types';
|
26
|
-
import
|
24
|
+
import EyeIcon from 'mdi-react/EyeOutlineIcon';
|
25
|
+
import EyeOffIcon from 'mdi-react/EyeOffOutlineIcon';
|
26
|
+
import { useOverlayPosition } from '@react-aria/overlays';
|
27
27
|
import { useLayoutEffect, useResizeObserver } from '@react-aria/utils';
|
28
28
|
import { Box, FieldHelperText, Icon, IconButton, Input, Label, PopoverContainer, RequirementsList } from '../../';
|
29
29
|
import { ariaAttributesBasePropTypes } from '../../utils/devUtils/props/ariaAttributes';
|
30
|
-
import { inputFieldAttributesBasePropTypes } from '../../utils/devUtils/props/fieldAttributes';
|
31
30
|
import statuses from '../../utils/devUtils/constants/statuses';
|
32
31
|
import * as hooks from '../../hooks';
|
33
32
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -60,11 +59,10 @@ var PasswordField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
60
59
|
status: status
|
61
60
|
}, others)),
|
62
61
|
fieldContainerProps = _hooks$useField.fieldContainerProps,
|
63
|
-
|
64
|
-
fieldControlWrapperProps = _hooks$useField.fieldControlWrapperProps,
|
62
|
+
fieldControlProps = _hooks$useField.fieldControlProps,
|
65
63
|
fieldLabelProps = _hooks$useField.fieldLabelProps;
|
66
64
|
|
67
|
-
var isFocused =
|
65
|
+
var isFocused = fieldControlProps.isFocused;
|
68
66
|
var inputRef = useRef();
|
69
67
|
var popoverRef = useRef();
|
70
68
|
hooks.usePropWarning(props, 'disabled', 'isDisabled');
|
@@ -120,7 +118,7 @@ var PasswordField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
120
118
|
width: menuWidth
|
121
119
|
}, overlayProps.style);
|
122
120
|
|
123
|
-
var _hooks$useStatusClass = hooks.useStatusClasses(
|
121
|
+
var _hooks$useStatusClass = hooks.useStatusClasses(fieldControlProps.className, {
|
124
122
|
'is-success': status === statuses.SUCCESS || checkRequirements() && requirements.length > 0
|
125
123
|
}),
|
126
124
|
classNames = _hooks$useStatusClass.classNames;
|
@@ -142,15 +140,14 @@ var PasswordField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
142
140
|
};
|
143
141
|
|
144
142
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, _extends({
|
145
|
-
variant: "forms.input.
|
146
|
-
}, fieldContainerProps), ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Box,
|
147
|
-
variant: "forms.input.
|
148
|
-
isRow: true
|
149
|
-
}, fieldControlWrapperProps, {
|
143
|
+
variant: "forms.input.wrapper"
|
144
|
+
}, fieldContainerProps), ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Box, {
|
145
|
+
variant: "forms.input.container",
|
146
|
+
isRow: true,
|
150
147
|
className: classNames
|
151
|
-
}
|
148
|
+
}, ___EmotionJSX(Input, _extends({
|
152
149
|
ref: inputRef
|
153
|
-
},
|
150
|
+
}, fieldControlProps, {
|
154
151
|
type: isVisible ? 'text' : 'password',
|
155
152
|
sx: {
|
156
153
|
pr: '43px'
|
@@ -160,7 +157,7 @@ var PasswordField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
160
157
|
variant: "forms.input.containedIcon"
|
161
158
|
}, ___EmotionJSX(IconButton, {
|
162
159
|
"aria-label": toggleShowPasswordAriaLabel,
|
163
|
-
isDisabled:
|
160
|
+
isDisabled: fieldControlProps.disabled,
|
164
161
|
onPress: handleToggleShowPassword,
|
165
162
|
size: 28
|
166
163
|
}, ___EmotionJSX(Icon, {
|
@@ -180,7 +177,7 @@ var PasswordField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
180
177
|
requirements: requirements
|
181
178
|
})));
|
182
179
|
});
|
183
|
-
PasswordField.propTypes = _objectSpread(
|
180
|
+
PasswordField.propTypes = _objectSpread({
|
184
181
|
/** The rendered label for the field. */
|
185
182
|
label: PropTypes.node,
|
186
183
|
|
@@ -262,6 +259,15 @@ PasswordField.propTypes = _objectSpread(_objectSpread({
|
|
262
259
|
/** Determines the type of input to use. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdeftype). */
|
263
260
|
type: PropTypes.string,
|
264
261
|
|
262
|
+
/** Props object that is spread directly into the root (top-level) element. */
|
263
|
+
containerProps: PropTypes.shape({}),
|
264
|
+
|
265
|
+
/** Props object that is spread directly into the input element. */
|
266
|
+
controlProps: PropTypes.shape({}),
|
267
|
+
|
268
|
+
/** Props object that is spread directly into the label element. */
|
269
|
+
labelProps: PropTypes.shape({}),
|
270
|
+
|
265
271
|
/** @ignore Prop that allows testing of the icon button. */
|
266
272
|
viewHiddenIconTestId: PropTypes.string,
|
267
273
|
|
@@ -273,7 +279,7 @@ PasswordField.propTypes = _objectSpread(_objectSpread({
|
|
273
279
|
name: PropTypes.string.isRequired,
|
274
280
|
status: PropTypes.oneOf(['default', 'success', 'warning', 'error'])
|
275
281
|
}))
|
276
|
-
}, ariaAttributesBasePropTypes)
|
282
|
+
}, ariaAttributesBasePropTypes);
|
277
283
|
PasswordField.defaultProps = {
|
278
284
|
hasAutoFocus: false,
|
279
285
|
isDisabled: false,
|
@@ -18,7 +18,6 @@ import React, { useState } from 'react';
|
|
18
18
|
import isEmpty from 'lodash/isEmpty';
|
19
19
|
import PasswordField from '.';
|
20
20
|
import { ariaAttributeBaseArgTypes } from '../../utils/devUtils/props/ariaAttributes';
|
21
|
-
import { inputFieldAttributeBaseArgTypes } from '../../utils/devUtils/props/fieldAttributes';
|
22
21
|
import statuses from '../../utils/devUtils/constants/statuses';
|
23
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
24
23
|
export default {
|
@@ -31,7 +30,7 @@ export default {
|
|
31
30
|
}
|
32
31
|
}
|
33
32
|
},
|
34
|
-
argTypes: _objectSpread(
|
33
|
+
argTypes: _objectSpread({
|
35
34
|
status: {
|
36
35
|
control: {
|
37
36
|
type: 'select',
|
@@ -44,7 +43,7 @@ export default {
|
|
44
43
|
type: 'text'
|
45
44
|
}
|
46
45
|
}
|
47
|
-
}, ariaAttributeBaseArgTypes)
|
46
|
+
}, ariaAttributeBaseArgTypes)
|
48
47
|
};
|
49
48
|
export var Default = function Default(args) {
|
50
49
|
return ___EmotionJSX(PasswordField, _extends({
|
@@ -9,7 +9,7 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
10
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
11
11
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
12
|
-
var _excluded = ["children"],
|
12
|
+
var _excluded = ["children", "placement", "arrowProps", "arrowCrossOffset", "onClose", "isNotClosedOnBlur", "hasNoArrow", "isKeyboardDismissDisabled", "isNonModal", "isDismissable", "width", "direction"],
|
13
13
|
_excluded2 = ["children", "className", "placement", "arrowProps", "arrowCrossOffset", "isOpen", "hasNoArrow", "isNotClosedOnBlur", "isKeyboardDismissDisabled", "isNonModal", "isDismissable", "width", "direction", "sx"],
|
14
14
|
_excluded3 = ["arrowCrossOffset", "sx", "direction"];
|
15
15
|
|
@@ -19,7 +19,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
19
19
|
|
20
20
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
21
21
|
import PropTypes from 'prop-types';
|
22
|
-
import {
|
22
|
+
import { useModal, useOverlay, OverlayContainer } from '@react-aria/overlays';
|
23
|
+
import { mergeProps } from '@react-aria/utils';
|
23
24
|
import { useStatusClasses } from '../../hooks';
|
24
25
|
import Box from '../Box';
|
25
26
|
/**
|
@@ -29,10 +30,32 @@ import Box from '../Box';
|
|
29
30
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
30
31
|
var PopoverContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
31
32
|
var children = props.children,
|
33
|
+
placement = props.placement,
|
34
|
+
arrowProps = props.arrowProps,
|
35
|
+
arrowCrossOffset = props.arrowCrossOffset,
|
36
|
+
onClose = props.onClose,
|
37
|
+
isNotClosedOnBlur = props.isNotClosedOnBlur,
|
38
|
+
hasNoArrow = props.hasNoArrow,
|
39
|
+
isKeyboardDismissDisabled = props.isKeyboardDismissDisabled,
|
40
|
+
isNonModal = props.isNonModal,
|
41
|
+
isDismissable = props.isDismissable,
|
42
|
+
width = props.width,
|
43
|
+
direction = props.direction,
|
32
44
|
others = _objectWithoutProperties(props, _excluded);
|
33
45
|
|
34
46
|
return ___EmotionJSX(OverlayContainer, null, ___EmotionJSX(PopoverWrapper, _extends({
|
35
|
-
ref: ref
|
47
|
+
ref: ref,
|
48
|
+
placement: placement,
|
49
|
+
arrowProps: arrowProps,
|
50
|
+
onClose: onClose,
|
51
|
+
isNotClosedOnBlur: isNotClosedOnBlur,
|
52
|
+
isKeyboardDismissDisabled: isKeyboardDismissDisabled,
|
53
|
+
hasNoArrow: hasNoArrow,
|
54
|
+
isNonModal: isNonModal,
|
55
|
+
isDismissable: isDismissable,
|
56
|
+
arrowCrossOffset: arrowCrossOffset,
|
57
|
+
width: width,
|
58
|
+
direction: direction
|
36
59
|
}, others), children));
|
37
60
|
});
|
38
61
|
PopoverContainer.propTypes = {
|