@pingux/astro 1.42.0 → 2.0.0-alpha.1
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 +0 -35
- package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +85 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +6 -6
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +5 -28
- 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 +6 -8
- package/lib/cjs/components/AccordionGroup/Accordion.styles.js +86 -0
- 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 +8 -10
- package/lib/cjs/components/ArrayField/ArrayField.js +18 -20
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +4 -4
- package/lib/cjs/components/{Chip → Badge}/Badge.js +1 -1
- package/lib/cjs/components/{Chip → Badge}/Badge.stories.js +29 -26
- package/lib/cjs/components/Badge/Badge.styles.js +191 -0
- package/lib/cjs/components/{Chip → Badge}/Badge.test.js +6 -6
- package/lib/cjs/components/{Chip → Badge}/index.js +2 -2
- package/lib/cjs/components/Box/Box.js +2 -2
- package/lib/cjs/{styles/variants/tooltip.js → components/Box/Box.styles.js} +3 -3
- package/lib/cjs/components/Bracket/Bracket.js +1 -1
- package/lib/cjs/components/Bracket/Bracket.stories.js +7 -6
- package/lib/cjs/components/Bracket/Bracket.styles.js +19 -0
- package/lib/cjs/components/Breadcrumbs/Breadcrumb.styles.js +65 -0
- package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +4 -6
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +5 -7
- 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 +5 -18
- package/lib/cjs/components/Button/Button.stories.js +1 -1
- package/lib/cjs/components/Button/Buttons.styles.js +276 -0
- package/lib/cjs/components/Card/Card.styles.js +23 -0
- package/lib/cjs/{styles/forms/checkbox.js → components/Checkbox/Checkbox.styles.js} +0 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.js +14 -19
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +5 -18
- package/lib/cjs/components/CodeView/CodeView.js +2 -2
- package/lib/cjs/components/CodeView/CodeView.stories.js +1 -1
- package/lib/cjs/{styles/variants/codeView.js → components/CodeView/CodeView.styles.js} +0 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +7 -9
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +2 -2
- package/lib/cjs/{styles/variants/collapsiblePanel.js → components/CollapsiblePanel/CollapsiblePanel.styles.js} +72 -13
- 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 +23 -31
- package/lib/cjs/components/ColorField/ColorField.stories.js +4 -17
- package/lib/cjs/{styles/forms/comboBox.js → components/ColorField/ColorField.styles.js} +9 -9
- package/lib/cjs/{styles/forms/radio.js → components/ComboBox/ComboBox.styles.js} +27 -19
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +20 -24
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +10 -14
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +3 -3
- package/lib/cjs/components/CopyText/CopyButton.js +2 -3
- package/lib/cjs/components/CopyText/CopyText.js +8 -10
- package/lib/cjs/components/CopyText/CopyText.styles.js +69 -0
- package/lib/cjs/components/DataTable/DataTable.js +46 -26
- 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/{DataTableChip.js → DataTableBadge.js} +4 -4
- package/lib/cjs/components/DataTable/{DataTableChip.test.js → DataTableBadge.test.js} +1 -1
- package/lib/cjs/components/DataTable/index.js +3 -3
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +14 -18
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +23 -23
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +3 -5
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +69 -0
- package/lib/cjs/components/FieldHelperText/FieldHelperText.js +1 -1
- package/lib/cjs/{styles/variants/bidirectionalIconButton.js → components/FieldHelperText/FieldHelperText.styles.js} +21 -17
- package/lib/cjs/components/FileInputField/FileInputField.js +16 -13
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +4 -2
- package/lib/cjs/components/FileInputField/FileInputField.styles.js +78 -0
- 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 +3 -4
- package/lib/cjs/components/HelpHint/HelpHint.styles.js +74 -0
- package/lib/cjs/components/IconButton/IconButton.js +9 -11
- package/lib/cjs/components/IconButton/IconButton.stories.js +2 -2
- package/lib/cjs/components/IconButton/IconButton.styles.js +194 -0
- package/lib/cjs/{styles/variants/images.js → components/Image/Image.styles.js} +0 -0
- package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +6 -8
- package/lib/cjs/components/ImageUploadField/ImageUploadField.js +4 -2
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +4 -2
- package/lib/cjs/components/ImageUploadField/ImageUploadFieldBase.js +8 -7
- package/lib/cjs/components/ImageUploadField/imageUpload.js +69 -0
- package/lib/cjs/{styles/forms/input.js → components/Input/Input.styles.js} +21 -15
- package/lib/cjs/{styles/forms/label.js → components/Label/Label.styles.js} +4 -4
- package/lib/cjs/components/Link/Link.js +5 -9
- package/lib/cjs/components/Link/Link.stories.js +2 -2
- package/lib/cjs/{styles/variants/links.js → components/Link/Link.styles.js} +3 -3
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +10 -19
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +10 -9
- package/lib/cjs/components/ListBox/ListBox.js +6 -6
- package/lib/cjs/{styles/variants/listBox.js → components/ListBox/ListBox.styles.js} +11 -3
- 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/ListItem/ListItem.styles.js +31 -0
- package/lib/cjs/components/ListView/ListView.stories.js +8 -10
- package/lib/cjs/components/ListView/ListView.test.js +8 -8
- package/lib/cjs/components/ListViewItem/ListViewItem.js +7 -9
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +88 -0
- package/lib/cjs/{styles/variants/loader.js → components/Loader/Loader.styles.js} +0 -0
- package/lib/cjs/components/Menu/Menu.js +7 -9
- package/lib/cjs/components/Menu/Menu.stories.js +4 -4
- package/lib/cjs/{styles/variants/menu.js → components/Menu/Menu.styles.js} +0 -0
- package/lib/cjs/components/MenuItem/MenuItem.js +3 -5
- package/lib/cjs/{styles/variants/menuItem.js → components/MenuItem/MenuItem.styles.js} +0 -0
- package/lib/cjs/components/Messages/Message.js +3 -3
- package/lib/cjs/components/Messages/Message.styles.js +110 -0
- 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 +9 -24
- package/lib/cjs/{styles/variants/modal.js → components/Modal/Modal.styles.js} +13 -16
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +15 -18
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +10 -8
- package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +14 -14
- package/lib/cjs/components/NavBar/NavBar.stories.js +1 -1
- package/lib/cjs/{styles/variants/navBar.js → components/NavBar/NavBar.styles.js} +96 -10
- package/lib/cjs/components/NavBarSection/NavBarItem.js +7 -9
- 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 +31 -29
- package/lib/cjs/components/NumberField/NumberField.stories.js +4 -2
- package/lib/cjs/{styles/variants/numberField.js → components/NumberField/NumberField.styles.js} +13 -3
- package/lib/cjs/components/OverlayPanel/OverlayPanel.js +4 -4
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +23 -22
- package/lib/cjs/{styles/variants/overlayPanel.js → components/OverlayPanel/OverlayPanel.styles.js} +6 -6
- package/lib/cjs/components/PasswordField/PasswordField.js +20 -25
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +4 -2
- package/lib/cjs/components/PopoverContainer/PopoverContainer.js +7 -31
- package/lib/cjs/components/PopoverMenu/PopoverMenu.js +8 -12
- package/lib/cjs/{styles/variants/popoverMenu.js → components/PopoverMenu/PopoverMenu.styles.js} +0 -0
- package/lib/cjs/components/Radio/Radio.styles.js +75 -0
- package/lib/cjs/components/RadioField/RadioField.js +15 -19
- package/lib/cjs/components/RadioGroupField/RadioGroupField.js +12 -8
- package/lib/cjs/components/RockerButton/RockerButton.js +5 -5
- package/lib/cjs/components/RockerButton/RockerButton.styles.js +72 -0
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +6 -6
- package/lib/cjs/components/ScrollBox/ScrollBox.js +3 -3
- package/lib/cjs/components/ScrollBox/ScrollBox.styles.js +53 -0
- package/lib/cjs/{styles/forms/search.js → components/SearchField/Search.styles.js} +4 -4
- package/lib/cjs/components/SearchField/SearchField.js +16 -22
- package/lib/cjs/components/SearchField/SearchField.stories.js +4 -5
- package/lib/cjs/{styles/forms/select.js → components/SelectField/Select.styles.js} +6 -6
- package/lib/cjs/components/SelectField/SelectField.js +5 -9
- package/lib/cjs/components/SelectField/SelectField.stories.js +12 -11
- package/lib/cjs/components/SelectField/SelectField.test.js +2 -2
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +19 -16
- package/lib/cjs/components/Separator/Separator.js +2 -2
- package/lib/cjs/{styles/variants/separator.js → components/Separator/Separator.styles.js} +0 -0
- package/lib/cjs/components/Stepper/Step.js +4 -4
- package/lib/cjs/{styles/variants/stepper.js → components/Stepper/Stepper.styles.js} +4 -4
- package/lib/cjs/components/Switch/Switch.js +2 -2
- package/lib/cjs/{styles/forms/switch.js → components/Switch/Switch.styles.js} +2 -2
- package/lib/cjs/components/SwitchField/SwitchField.js +17 -23
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +4 -5
- package/lib/cjs/components/Tab/Tab.js +7 -11
- package/lib/cjs/components/TabPicker/TabPicker.js +5 -5
- package/lib/cjs/components/Table/Table.js +1 -1
- package/lib/cjs/{styles/variants/table.js → components/Table/Table.styles.js} +15 -15
- 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/{styles/variants/tabs.js → components/Tabs/Tabs.style.js} +17 -4
- package/lib/cjs/{styles/variants/text.js → components/Text/Text.styles.js} +4 -195
- package/lib/cjs/{styles/forms/textarea.js → components/TextArea/TextArea.styles.js} +27 -4
- package/lib/cjs/components/TextAreaField/TextAreaField.js +18 -24
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +4 -5
- package/lib/cjs/components/TextField/TextField.js +11 -19
- package/lib/cjs/components/TextField/TextField.stories.js +4 -2
- package/lib/cjs/components/TimeZonePicker/TimeZone.styles.js +40 -0
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +4 -4
- package/lib/cjs/components/TooltipTrigger/Tooltip.js +4 -4
- package/lib/cjs/components/TooltipTrigger/Tooltip.styles.js +93 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +6 -8
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +6 -6
- package/lib/cjs/hooks/useField/useField.js +43 -20
- package/lib/cjs/hooks/useField/useField.test.js +55 -16
- 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 +2 -1
- package/lib/cjs/hooks/useSelectField/useSelectField.js +12 -14
- package/lib/cjs/index.js +82 -119
- 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 +48 -5
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +2 -2
- package/lib/cjs/recipes/LinkedListView.stories.js +26 -15
- 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 +12 -1
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +2 -2
- package/lib/cjs/recipes/RowLineChart.stories.js +184 -99
- package/lib/cjs/recipes/ScrollableListView.stories.js +4 -4
- package/lib/cjs/recipes/Slider.stories.js +13 -19
- package/lib/cjs/styles/ColorDocumentation.js +2 -2
- package/lib/cjs/styles/forms/index.js +25 -13
- package/lib/cjs/styles/theme-ui/ThemeView.js +27 -0
- package/lib/cjs/styles/theme.js +3 -3
- package/lib/cjs/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +37 -0
- package/lib/cjs/styles/themeOverrides/stories/Button.chromatic.stories.js +72 -0
- package/lib/cjs/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +145 -0
- package/lib/cjs/styles/themeOverrides/stories/IconButton.chromatic.stories.js +49 -0
- package/lib/cjs/styles/themeOverrides/stories/Label.chromatic.stories.js +32 -0
- package/lib/cjs/styles/themeOverrides/stories/Link.chromatic.stories.js +34 -0
- package/lib/cjs/styles/themeOverrides/stories/NavBar.chromatic.stories.js +395 -0
- package/lib/cjs/styles/themeOverrides/stories/NumberField.chromatic.stories.js +32 -0
- package/lib/cjs/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +41 -0
- package/lib/cjs/styles/themeOverrides/stories/SearchField.chromatic.stories.js +40 -0
- package/lib/cjs/styles/themeOverrides/stories/SelectField.chromatic.stories.js +42 -0
- package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +69 -52
- package/lib/cjs/{components/List/List.js → styles/themeOverrides/withUiLibraryCss.js} +26 -24
- package/lib/cjs/styles/themes/astro-nano/astro-nano.js +19 -19
- package/lib/cjs/styles/variants/index.js +51 -22
- package/lib/cjs/styles/variants/variants.js +70 -46
- package/lib/cjs/utils/devUtils/constants/variants.js +4 -4
- package/lib/cjs/utils/devUtils/props/fieldAttributes.js +74 -0
- package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +65 -0
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +3 -3
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -25
- 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 +2 -3
- package/lib/components/AccordionGroup/Accordion.styles.js +66 -0
- 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 +5 -6
- package/lib/components/ArrayField/ArrayField.js +15 -15
- package/lib/components/ArrayField/ArrayField.stories.js +1 -1
- package/lib/components/{Chip → Badge}/Badge.js +1 -1
- package/lib/components/{Chip → Badge}/Badge.stories.js +34 -31
- package/lib/components/Badge/Badge.styles.js +163 -0
- package/lib/components/{Chip → Badge}/Badge.test.js +6 -6
- package/lib/components/Badge/index.js +1 -0
- package/lib/components/Box/Box.js +2 -2
- package/lib/components/Box/Box.styles.js +6 -0
- package/lib/components/Bracket/Bracket.js +1 -1
- package/lib/components/Bracket/Bracket.stories.js +8 -7
- package/lib/components/Bracket/Bracket.styles.js +9 -0
- package/lib/{styles/variants/bidirectionalIconButton.js → components/Breadcrumbs/Breadcrumb.styles.js} +26 -15
- package/lib/components/Breadcrumbs/BreadcrumbItem.js +2 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js +3 -4
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.test.js +3 -3
- package/lib/components/Button/Button.js +2 -13
- package/lib/components/Button/Button.stories.js +1 -1
- package/lib/components/Button/Buttons.styles.js +246 -0
- package/lib/components/Card/Card.styles.js +13 -0
- package/lib/{styles/forms/checkbox.js → components/Checkbox/Checkbox.styles.js} +0 -0
- package/lib/components/CheckboxField/CheckboxField.js +12 -18
- package/lib/components/CheckboxField/CheckboxField.stories.js +4 -18
- package/lib/components/CodeView/CodeView.js +2 -2
- package/lib/components/CodeView/CodeView.stories.js +1 -1
- package/lib/{styles/variants/codeView.js → components/CodeView/CodeView.styles.js} +0 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.js +4 -5
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +3 -3
- package/lib/{styles/variants/collapsiblePanel.js → components/CollapsiblePanel/CollapsiblePanel.styles.js} +65 -11
- 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 +15 -22
- package/lib/components/ColorField/ColorField.stories.js +3 -17
- package/lib/{styles/forms/comboBox.js → components/ColorField/ColorField.styles.js} +8 -9
- package/lib/{styles/forms/radio.js → components/ComboBox/ComboBox.styles.js} +24 -16
- package/lib/components/ComboBox/ComboBoxInput.js +17 -20
- package/lib/components/ComboBoxField/ComboBoxField.js +4 -6
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +2 -2
- package/lib/components/CopyText/CopyButton.js +2 -3
- package/lib/components/CopyText/CopyText.js +3 -4
- package/lib/components/CopyText/CopyText.styles.js +48 -0
- package/lib/components/DataTable/DataTable.js +31 -8
- 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/{DataTableChip.js → DataTableBadge.js} +5 -5
- package/lib/components/DataTable/{DataTableChip.test.js → DataTableBadge.test.js} +2 -2
- package/lib/components/DataTable/index.js +1 -1
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +8 -10
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +22 -22
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +2 -3
- package/lib/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +49 -0
- package/lib/components/FieldHelperText/FieldHelperText.js +1 -1
- package/lib/{styles/forms/textarea.js → components/FieldHelperText/FieldHelperText.styles.js} +22 -8
- package/lib/components/FileInputField/FileInputField.js +13 -10
- package/lib/components/FileInputField/FileInputField.stories.js +3 -2
- package/lib/components/FileInputField/FileInputField.styles.js +58 -0
- package/lib/components/FileInputField/FileItem.js +5 -5
- package/lib/components/FileInputField/FileSelect.js +1 -1
- package/lib/components/HelpHint/HelpHint.js +3 -4
- package/lib/components/HelpHint/HelpHint.styles.js +53 -0
- package/lib/components/IconButton/IconButton.js +5 -5
- package/lib/components/IconButton/IconButton.stories.js +2 -2
- package/lib/components/IconButton/IconButton.styles.js +164 -0
- package/lib/{styles/variants/images.js → components/Image/Image.styles.js} +0 -0
- package/lib/components/ImageUploadField/ImagePreviewButton.js +4 -5
- package/lib/components/ImageUploadField/ImageUploadField.js +3 -2
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +3 -2
- package/lib/components/ImageUploadField/ImageUploadFieldBase.js +6 -5
- package/lib/components/ImageUploadField/imageUpload.js +49 -0
- package/lib/{styles/forms/input.js → components/Input/Input.styles.js} +18 -12
- package/lib/{styles/forms/label.js → components/Label/Label.styles.js} +1 -1
- package/lib/components/Link/Link.js +1 -3
- package/lib/components/Link/Link.stories.js +1 -1
- package/lib/{styles/variants/links.js → components/Link/Link.styles.js} +1 -1
- package/lib/components/LinkSelectField/LinkSelectField.js +9 -19
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +5 -5
- package/lib/components/ListBox/ListBox.js +3 -3
- package/lib/{styles/variants/listBox.js → components/ListBox/ListBox.styles.js} +9 -1
- 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/ListItem/ListItem.styles.js +21 -0
- package/lib/components/ListView/ListView.stories.js +3 -4
- package/lib/components/ListView/ListView.test.js +2 -2
- package/lib/components/ListViewItem/ListViewItem.js +3 -4
- package/lib/components/ListViewItem/ListViewItem.styles.js +69 -0
- package/lib/{styles/variants/loader.js → components/Loader/Loader.styles.js} +0 -0
- package/lib/components/Menu/Menu.js +3 -4
- package/lib/components/Menu/Menu.stories.js +1 -1
- package/lib/{styles/variants/menu.js → components/Menu/Menu.styles.js} +0 -0
- package/lib/components/MenuItem/MenuItem.js +1 -2
- package/lib/{styles/variants/menuItem.js → components/MenuItem/MenuItem.styles.js} +0 -0
- package/lib/components/Messages/Message.js +3 -3
- package/lib/components/Messages/Message.styles.js +99 -0
- 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 +2 -14
- package/lib/{styles/variants/modal.js → components/Modal/Modal.styles.js} +10 -14
- package/lib/components/MultivaluesField/MultivaluesField.js +11 -14
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +9 -8
- package/lib/components/MultivaluesField/MultivaluesField.test.js +14 -14
- package/lib/components/NavBar/NavBar.stories.js +1 -1
- package/lib/{styles/variants/navBar.js → components/NavBar/NavBar.styles.js} +94 -10
- package/lib/components/NavBarSection/NavBarItem.js +3 -4
- 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 +25 -23
- package/lib/components/NumberField/NumberField.stories.js +3 -2
- package/lib/{styles/variants/numberField.js → components/NumberField/NumberField.styles.js} +12 -3
- package/lib/components/OverlayPanel/OverlayPanel.js +3 -3
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +21 -18
- package/lib/{styles/variants/overlayPanel.js → components/OverlayPanel/OverlayPanel.styles.js} +6 -6
- package/lib/components/PasswordField/PasswordField.js +18 -24
- package/lib/components/PasswordField/PasswordField.stories.js +3 -2
- package/lib/components/PopoverContainer/PopoverContainer.js +3 -26
- package/lib/components/PopoverMenu/PopoverMenu.js +2 -4
- package/lib/{styles/variants/popoverMenu.js → components/PopoverMenu/PopoverMenu.styles.js} +0 -0
- package/lib/components/Radio/Radio.styles.js +55 -0
- package/lib/components/RadioField/RadioField.js +13 -18
- package/lib/components/RadioGroupField/RadioGroupField.js +9 -6
- package/lib/components/RockerButton/RockerButton.js +3 -3
- package/lib/components/RockerButton/RockerButton.styles.js +52 -0
- package/lib/components/RockerButtonGroup/RockerButtonGroup.js +4 -4
- package/lib/components/ScrollBox/ScrollBox.js +3 -3
- package/lib/components/ScrollBox/ScrollBox.styles.js +43 -0
- package/lib/{styles/forms/search.js → components/SearchField/Search.styles.js} +2 -2
- package/lib/components/SearchField/SearchField.js +11 -18
- package/lib/components/SearchField/SearchField.stories.js +3 -5
- package/lib/{styles/forms/select.js → components/SelectField/Select.styles.js} +3 -3
- package/lib/components/SelectField/SelectField.js +4 -9
- package/lib/components/SelectField/SelectField.stories.js +5 -5
- package/lib/components/SelectField/SelectField.test.js +1 -1
- package/lib/components/SelectFieldBase/SelectFieldBase.js +18 -15
- package/lib/components/Separator/Separator.js +1 -1
- package/lib/{styles/variants/separator.js → components/Separator/Separator.styles.js} +0 -0
- package/lib/components/Stepper/Step.js +2 -2
- package/lib/{styles/variants/stepper.js → components/Stepper/Stepper.styles.js} +3 -3
- package/lib/components/Switch/Switch.js +1 -1
- package/lib/{styles/forms/switch.js → components/Switch/Switch.styles.js} +1 -1
- package/lib/components/SwitchField/SwitchField.js +13 -20
- package/lib/components/SwitchField/SwitchField.stories.js +3 -5
- package/lib/components/Tab/Tab.js +2 -4
- package/lib/components/TabPicker/TabPicker.js +3 -3
- package/lib/components/Table/Table.js +1 -1
- package/lib/{styles/variants/table.js → components/Table/Table.styles.js} +15 -15
- 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/{styles/variants/tabs.js → components/Tabs/Tabs.style.js} +12 -2
- package/lib/{styles/variants/text.js → components/Text/Text.styles.js} +3 -196
- package/lib/components/TextArea/TextArea.styles.js +47 -0
- package/lib/components/TextAreaField/TextAreaField.js +17 -24
- package/lib/components/TextAreaField/TextAreaField.stories.js +3 -5
- package/lib/components/TextField/TextField.js +10 -19
- package/lib/components/TextField/TextField.stories.js +3 -2
- package/lib/components/TimeZonePicker/TimeZone.styles.js +30 -0
- package/lib/components/TimeZonePicker/TimeZonePicker.js +4 -4
- package/lib/components/TooltipTrigger/Tooltip.js +3 -3
- package/lib/components/TooltipTrigger/Tooltip.styles.js +71 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.js +2 -3
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +4 -4
- package/lib/hooks/useField/useField.js +39 -14
- package/lib/hooks/useField/useField.test.js +55 -16
- package/lib/hooks/useModalState/useModalState.js +1 -1
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +1 -1
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +2 -1
- package/lib/hooks/useSelectField/useSelectField.js +6 -6
- package/lib/index.js +5 -9
- 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 +47 -5
- package/lib/recipes/FlippableCaretMenuButton.stories.js +1 -1
- package/lib/recipes/LinkedListView.stories.js +22 -10
- package/lib/recipes/ListAndPanel.stories.js +2 -2
- package/lib/recipes/LogoTabs.stories.js +1 -1
- package/lib/recipes/MaskedValue.stories.js +12 -1
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +2 -2
- package/lib/recipes/RowLineChart.stories.js +176 -95
- package/lib/recipes/ScrollableListView.stories.js +2 -2
- package/lib/recipes/Slider.stories.js +4 -7
- package/lib/styles/ColorDocumentation.js +1 -1
- package/lib/styles/forms/index.js +21 -12
- package/lib/styles/theme-ui/ThemeView.js +9 -0
- package/lib/styles/theme.js +4 -4
- package/lib/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +17 -0
- package/lib/styles/themeOverrides/stories/Button.chromatic.stories.js +37 -0
- package/lib/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +108 -0
- package/lib/styles/themeOverrides/stories/IconButton.chromatic.stories.js +25 -0
- package/lib/styles/themeOverrides/stories/Label.chromatic.stories.js +12 -0
- package/lib/styles/themeOverrides/stories/Link.chromatic.stories.js +14 -0
- package/lib/styles/themeOverrides/stories/NavBar.chromatic.stories.js +367 -0
- package/lib/styles/themeOverrides/stories/NumberField.chromatic.stories.js +12 -0
- package/lib/styles/themeOverrides/stories/RockerButtonGroup.chromatic.stories.js +21 -0
- package/lib/styles/themeOverrides/stories/SearchField.chromatic.stories.js +19 -0
- package/lib/styles/themeOverrides/stories/SelectField.chromatic.stories.js +21 -0
- package/lib/styles/themeOverrides/uiLibraryOverride.js +69 -52
- package/lib/styles/themeOverrides/withUiLibraryCss.js +28 -0
- package/lib/styles/themes/astro-nano/astro-nano.js +19 -19
- package/lib/styles/variants/index.js +25 -6
- package/lib/styles/variants/variants.js +47 -31
- package/lib/utils/devUtils/constants/variants.js +2 -2
- package/lib/utils/devUtils/props/fieldAttributes.js +52 -0
- package/package.json +24 -54
- package/NOTICE +0 -2481
- package/NOTICE.html +0 -4707
- package/lib/cjs/components/ArrayField/ArrayFieldItem.js +0 -50
- package/lib/cjs/components/Chip/Chip.js +0 -58
- package/lib/cjs/components/List/List.stories.js +0 -66
- package/lib/cjs/components/List/List.test.js +0 -36
- package/lib/cjs/components/List/index.js +0 -18
- package/lib/cjs/styles/variants/accordion.js +0 -92
- package/lib/cjs/styles/variants/boxes.js +0 -439
- package/lib/cjs/styles/variants/buttons.js +0 -815
- package/lib/cjs/styles/variants/imageUpload.js +0 -29
- package/lib/cjs/styles/variants/messages.js +0 -53
- package/lib/cjs/styles/variants/rockerbutton.js +0 -25
- package/lib/components/ArrayField/ArrayFieldItem.js +0 -31
- package/lib/components/Chip/Chip.js +0 -38
- package/lib/components/Chip/index.js +0 -1
- package/lib/components/List/List.js +0 -26
- package/lib/components/List/List.stories.js +0 -43
- package/lib/components/List/List.test.js +0 -24
- package/lib/components/List/index.js +0 -1
- package/lib/styles/variants/accordion.js +0 -82
- package/lib/styles/variants/boxes.js +0 -418
- package/lib/styles/variants/buttons.js +0 -792
- package/lib/styles/variants/imageUpload.js +0 -19
- package/lib/styles/variants/messages.js +0 -43
- package/lib/styles/variants/rockerbutton.js +0 -15
- package/lib/styles/variants/tooltip.js +0 -6
@@ -14,14 +14,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
14
14
|
|
15
15
|
import theme from '../theme';
|
16
16
|
var buttons = {
|
17
|
-
accordionHeader: _objectSpread(_objectSpread({}, theme.buttons.accordionHeader), {}, {
|
18
|
-
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.defaultHover), {}, {
|
19
|
-
color: 'active'
|
20
|
-
}),
|
21
|
-
'&:focus': _objectSpread(_objectSpread({}, theme.buttons.defaultFocus), {}, {
|
22
|
-
border: 'none'
|
23
|
-
})
|
24
|
-
}),
|
25
17
|
critical: {
|
26
18
|
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.critical), theme.buttons.defaultHover)
|
27
19
|
},
|
@@ -38,55 +30,28 @@ var buttons = {
|
|
38
30
|
inline: {
|
39
31
|
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.inline), theme.buttons.defaultHover)
|
40
32
|
},
|
41
|
-
inverted: _objectSpread(_objectSpread({}, theme.buttons.inverted), {}, {
|
42
|
-
':focus': {
|
43
|
-
border: 'none'
|
44
|
-
}
|
45
|
-
}),
|
46
33
|
primary: {
|
47
34
|
'&:hover': _objectSpread({}, theme.buttons.primary)
|
48
35
|
},
|
49
36
|
link: {
|
50
37
|
'body &': theme.buttons.link,
|
51
|
-
'body &:hover': theme.buttons.link
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
border: 'none'
|
56
|
-
})
|
57
|
-
},
|
58
|
-
environmentBreadcrumb: {
|
59
|
-
current: {
|
60
|
-
'&:hover:not(.disabled)': _objectSpread({}, theme.buttons.environmentBreadcrumb.current),
|
61
|
-
'&:focus': _objectSpread({}, theme.buttons.environmentBreadcrumb.current)
|
38
|
+
'body &:hover': theme.buttons.link,
|
39
|
+
'&:not(.disabled):hover': {
|
40
|
+
color: 'active',
|
41
|
+
borderColor: 'transparent'
|
62
42
|
}
|
63
43
|
},
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
},
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
navBarSectionButton: _objectSpread(_objectSpread({}, theme.buttons.navBarSectionButton), {}, {
|
76
|
-
height: 'unset',
|
77
|
-
minHeight: '36px',
|
78
|
-
'&:not(.disabled):hover': _objectSpread({}, theme.buttons.navBarSectionButton),
|
79
|
-
':focus': {
|
80
|
-
border: 'none'
|
81
|
-
}
|
82
|
-
}),
|
83
|
-
navItemButton: _objectSpread(_objectSpread({
|
84
|
-
height: 'unset'
|
85
|
-
}, theme.buttons.navItemButton), {}, {
|
86
|
-
'&:not(.disabled):hover': _objectSpread({}, theme.buttons.navItemButton),
|
87
|
-
':focus': {
|
88
|
-
border: 'none'
|
89
|
-
}
|
44
|
+
iconButtons: _objectSpread(_objectSpread({}, theme.buttons.iconButtons), {}, {
|
45
|
+
base: _objectSpread(_objectSpread({}, theme.buttons.iconButtons.base), {}, {
|
46
|
+
':focus': _objectSpread(_objectSpread({}, theme.buttons.defaultFocus), {}, {
|
47
|
+
border: 'none'
|
48
|
+
})
|
49
|
+
}),
|
50
|
+
inverted: _objectSpread(_objectSpread({}, theme.buttons.iconButtons.inverted), {}, {
|
51
|
+
':focus': {
|
52
|
+
border: 'none'
|
53
|
+
}
|
54
|
+
})
|
90
55
|
})
|
91
56
|
};
|
92
57
|
var forms = {
|
@@ -107,7 +72,7 @@ var forms = {
|
|
107
72
|
})
|
108
73
|
},
|
109
74
|
search: {
|
110
|
-
|
75
|
+
wrapper: {
|
111
76
|
'& input[type=search]': _objectSpread(_objectSpread({}, theme.text.inputValue), {}, {
|
112
77
|
borderColor: 'neutral.80',
|
113
78
|
bg: 'white',
|
@@ -131,8 +96,60 @@ var links = {
|
|
131
96
|
'&:hover': _objectSpread({}, theme.links.app)
|
132
97
|
}
|
133
98
|
};
|
99
|
+
var variants = {
|
100
|
+
accordion: {
|
101
|
+
header: _objectSpread(_objectSpread({}, theme.variants.accordion.header), {}, {
|
102
|
+
'&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.defaultHover), {}, {
|
103
|
+
color: 'active'
|
104
|
+
}),
|
105
|
+
'&:focus': _objectSpread(_objectSpread({}, theme.buttons.defaultFocus), {}, {
|
106
|
+
border: 'none'
|
107
|
+
})
|
108
|
+
})
|
109
|
+
},
|
110
|
+
rockerButton: {
|
111
|
+
thumbSwitch: _objectSpread(_objectSpread({}, theme.variants.rockerButton.thumbSwitch), {}, {
|
112
|
+
':focus': {
|
113
|
+
border: 'none'
|
114
|
+
},
|
115
|
+
'&.is-selected:hover': {
|
116
|
+
color: 'white'
|
117
|
+
},
|
118
|
+
':not(.is-selected):hover': {
|
119
|
+
color: 'accent.30'
|
120
|
+
}
|
121
|
+
})
|
122
|
+
},
|
123
|
+
environmentBreadcrumb: {
|
124
|
+
button: {
|
125
|
+
current: {
|
126
|
+
'&:hover:not(.disabled)': _objectSpread({}, theme.variants.environmentBreadcrumb.button.current),
|
127
|
+
'&:focus': _objectSpread({}, theme.variants.environmentBreadcrumb.button.current)
|
128
|
+
}
|
129
|
+
}
|
130
|
+
},
|
131
|
+
navBar: {
|
132
|
+
sectionButton: _objectSpread(_objectSpread({}, theme.variants.navBar.sectionButton), {}, {
|
133
|
+
height: 'unset',
|
134
|
+
minHeight: '36px',
|
135
|
+
'&:not(.disabled):hover': _objectSpread({}, theme.variants.navBar.sectionButton),
|
136
|
+
':focus': {
|
137
|
+
border: 'none'
|
138
|
+
}
|
139
|
+
}),
|
140
|
+
itemButton: _objectSpread(_objectSpread({
|
141
|
+
height: 'unset'
|
142
|
+
}, theme.variants.navBar.itemButton), {}, {
|
143
|
+
'&:not(.disabled):hover': _objectSpread({}, theme.variants.navBar.itemButton),
|
144
|
+
':focus': {
|
145
|
+
border: 'none'
|
146
|
+
}
|
147
|
+
})
|
148
|
+
}
|
149
|
+
};
|
134
150
|
export default {
|
135
151
|
buttons: buttons,
|
136
152
|
forms: forms,
|
137
|
-
links: links
|
153
|
+
links: links,
|
154
|
+
variants: variants
|
138
155
|
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
2
|
+
import React, { useEffect } from 'react';
|
3
|
+
import { ThemeProvider } from 'theme-ui';
|
4
|
+
import uiLibraryOverride from './uiLibraryOverride';
|
5
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
6
|
+
var UI_LIBRARY_CSS_LINK = 'https://assets.pingone.com/ux/ui-library/5.0.2/css/ui-library.css';
|
7
|
+
|
8
|
+
var WithUiLibraryCss = function WithUiLibraryCss(Story) {
|
9
|
+
useEffect(function () {
|
10
|
+
var uiLibraryCss = document.createElement('link');
|
11
|
+
uiLibraryCss.rel = 'stylesheet';
|
12
|
+
uiLibraryCss.className = 'uiLibraryCssLink';
|
13
|
+
uiLibraryCss.href = UI_LIBRARY_CSS_LINK;
|
14
|
+
document.getElementsByTagName('head')[0].appendChild(uiLibraryCss);
|
15
|
+
return function () {
|
16
|
+
var _context;
|
17
|
+
|
18
|
+
return _forEachInstanceProperty(_context = document.querySelectorAll('.uiLibraryCssLink')).call(_context, function (link) {
|
19
|
+
link.remove();
|
20
|
+
});
|
21
|
+
};
|
22
|
+
}, []);
|
23
|
+
return ___EmotionJSX(ThemeProvider, {
|
24
|
+
theme: uiLibraryOverride
|
25
|
+
}, ___EmotionJSX(Story, null));
|
26
|
+
};
|
27
|
+
|
28
|
+
export default WithUiLibraryCss;
|
@@ -106,8 +106,8 @@ var modifyTheme = {
|
|
106
106
|
}
|
107
107
|
},
|
108
108
|
variants: {
|
109
|
-
|
110
|
-
|
109
|
+
card: {
|
110
|
+
container: {
|
111
111
|
borderRadius: borderRadius,
|
112
112
|
flexGrow: [1, 0],
|
113
113
|
maxWidth: astroTheme.breakpoints[0],
|
@@ -115,26 +115,26 @@ var modifyTheme = {
|
|
115
115
|
alignItems: 'stretch',
|
116
116
|
py: [0, 'xl'],
|
117
117
|
my: 'auto',
|
118
|
-
boxShadow: ['none', astroTheme.variants.
|
118
|
+
boxShadow: ['none', astroTheme.variants.card.container.boxShadow],
|
119
119
|
width: ['100%', '450px'],
|
120
120
|
minHeight: 'fit-content'
|
121
|
-
},
|
122
|
-
wrapper: {
|
123
|
-
alignItems: 'center',
|
124
|
-
justifyContent: 'space-between',
|
125
|
-
bg: ['white', 'accent.99'],
|
126
|
-
py: 'lg',
|
127
|
-
gap: 'lg',
|
128
|
-
overflow: 'auto',
|
129
|
-
position: 'absolute',
|
130
|
-
top: 0,
|
131
|
-
bottom: 0,
|
132
|
-
left: 0,
|
133
|
-
right: 0
|
134
|
-
},
|
135
|
-
cardBody: {
|
136
|
-
flexGrow: [1, 0]
|
137
121
|
}
|
122
|
+
},
|
123
|
+
wrapper: {
|
124
|
+
alignItems: 'center',
|
125
|
+
justifyContent: 'space-between',
|
126
|
+
bg: ['white', 'accent.99'],
|
127
|
+
py: 'lg',
|
128
|
+
gap: 'lg',
|
129
|
+
overflow: 'auto',
|
130
|
+
position: 'absolute',
|
131
|
+
top: 0,
|
132
|
+
bottom: 0,
|
133
|
+
left: 0,
|
134
|
+
right: 0
|
135
|
+
},
|
136
|
+
cardBody: {
|
137
|
+
flexGrow: [1, 0]
|
138
138
|
}
|
139
139
|
}
|
140
140
|
};
|
@@ -1,6 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
|
+
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
12
|
+
|
13
|
+
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; }
|
14
|
+
|
15
|
+
import defaultButtons from '../../components/Button/Buttons.styles';
|
16
|
+
import iconButtons from '../../components/IconButton/IconButton.styles';
|
17
|
+
export var buttons = _objectSpread(_objectSpread({}, defaultButtons), {}, {
|
18
|
+
iconButtons: iconButtons
|
19
|
+
});
|
20
|
+
export { default as images } from '../../components/Image/Image.styles';
|
21
|
+
export { default as links } from '../../components/Link/Link.styles';
|
22
|
+
export { default as cards } from '../../components/Card/Card.styles';
|
23
|
+
export { default as badges } from '../../components/Badge/Badge.styles';
|
24
|
+
export * from '../../components/Text/Text.styles';
|
25
|
+
export { default as variants } from './variants';
|
@@ -12,54 +12,70 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
12
12
|
|
13
13
|
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; }
|
14
14
|
|
15
|
-
import accordion from '
|
16
|
-
import
|
15
|
+
import accordion from '../../components/AccordionGroup/Accordion.styles';
|
16
|
+
import accordionGrid from '../../components/AccordionGridGroup/AccordionGrid.styles';
|
17
|
+
import box from '../../components/Box/Box.styles';
|
18
|
+
import bracket from '../../components/Bracket/Bracket.styles';
|
19
|
+
import breadcrumb from '../../components/Breadcrumbs/Breadcrumb.styles';
|
17
20
|
import callout from './callout';
|
18
|
-
import codeView from '
|
19
|
-
import collapsiblePanel from '
|
21
|
+
import codeView from '../../components/CodeView/CodeView.styles';
|
22
|
+
import collapsiblePanel from '../../components/CollapsiblePanel/CollapsiblePanel.styles';
|
23
|
+
import copyText from '../../components/CopyText/CopyText.styles';
|
20
24
|
import dataTable from './../../components/DataTable/DataTable.styles';
|
21
|
-
import
|
22
|
-
import
|
23
|
-
import
|
24
|
-
import
|
25
|
-
import
|
26
|
-
import
|
27
|
-
import
|
28
|
-
import
|
29
|
-
import
|
30
|
-
import
|
31
|
-
import
|
32
|
-
import
|
33
|
-
import
|
34
|
-
import
|
35
|
-
import
|
36
|
-
import
|
37
|
-
import
|
38
|
-
import
|
39
|
-
import
|
40
|
-
|
25
|
+
import environmentBreadcrumb from '../../components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles';
|
26
|
+
import fieldHelperText from '../../components/FieldHelperText/FieldHelperText.styles';
|
27
|
+
import helpHint from '../../components/HelpHint/HelpHint.styles';
|
28
|
+
import imageUpload from '../../components/ImageUploadField/imageUpload';
|
29
|
+
import listBox from '../../components/ListBox/ListBox.styles';
|
30
|
+
import listItem from '../../components/ListItem/ListItem.styles';
|
31
|
+
import listViewItem from '../../components/ListViewItem/ListViewItem.styles';
|
32
|
+
import loader from '../../components/Loader/Loader.styles';
|
33
|
+
import menu from '../../components/Menu/Menu.styles';
|
34
|
+
import menuItem from '../../components/MenuItem/MenuItem.styles';
|
35
|
+
import message from '../../components/Messages/Message.styles';
|
36
|
+
import modal from '../../components/Modal/Modal.styles';
|
37
|
+
import navBar from '../../components/NavBar/NavBar.styles';
|
38
|
+
import overlayPanel from '../../components/OverlayPanel/OverlayPanel.styles';
|
39
|
+
import popoverMenu from '../../components/PopoverMenu/PopoverMenu.styles';
|
40
|
+
import rockerButton from '../../components/RockerButton/RockerButton.styles';
|
41
|
+
import scrollBox from '../../components/ScrollBox/ScrollBox.styles';
|
42
|
+
import separator from '../../components/Separator/Separator.styles';
|
43
|
+
import stepper from '../../components/Stepper/Stepper.styles';
|
44
|
+
import table from '../../components/Table/Table.styles';
|
45
|
+
import timeZone from '../../components/TimeZonePicker/TimeZone.styles';
|
46
|
+
import tooltip from '../../components/TooltipTrigger/Tooltip.styles';
|
47
|
+
import * as tab from '../../components/Tabs/Tabs.style';
|
48
|
+
export default _objectSpread({
|
41
49
|
accordion: accordion,
|
42
|
-
|
50
|
+
accordionGrid: accordionGrid,
|
51
|
+
box: box,
|
52
|
+
bracket: bracket,
|
53
|
+
breadcrumb: breadcrumb,
|
43
54
|
callout: callout,
|
44
55
|
codeView: codeView,
|
45
56
|
collapsiblePanel: collapsiblePanel,
|
57
|
+
copyText: copyText,
|
46
58
|
dataTable: dataTable,
|
59
|
+
environmentBreadcrumb: environmentBreadcrumb,
|
60
|
+
fieldHelperText: fieldHelperText,
|
61
|
+
helpHint: helpHint,
|
47
62
|
imageUpload: imageUpload,
|
48
|
-
images: images,
|
49
|
-
links: links,
|
50
63
|
listBox: listBox,
|
64
|
+
listItem: listItem,
|
65
|
+
listViewItem: listViewItem,
|
51
66
|
loader: loader,
|
52
67
|
menu: menu,
|
53
68
|
menuItem: menuItem,
|
54
|
-
|
69
|
+
message: message,
|
55
70
|
modal: modal,
|
56
71
|
navBar: navBar,
|
57
|
-
numberField: numberField,
|
58
72
|
overlayPanel: overlayPanel,
|
59
73
|
popoverMenu: popoverMenu,
|
60
|
-
|
74
|
+
rockerButton: rockerButton,
|
75
|
+
scrollBox: scrollBox,
|
61
76
|
separator: separator,
|
62
77
|
stepper: stepper,
|
63
78
|
table: table,
|
79
|
+
timeZone: timeZone,
|
64
80
|
tooltip: tooltip
|
65
|
-
});
|
81
|
+
}, tab);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
2
2
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
3
3
|
import { snakeCase, toUpper, fromPairs } from 'lodash';
|
4
|
-
import { text } from '../../../
|
5
|
-
import buttons from '../../../
|
4
|
+
import { text } from '../../../components/Text/Text.styles';
|
5
|
+
import buttons from '../../../components/Button/Buttons.styles';
|
6
6
|
/**
|
7
7
|
* Converts the given object to a constant mapping.
|
8
8
|
* e.g. { aBox: '1', b: '2' } -> { A_BOX: 'a', B: 'b' }
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
|
+
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
12
|
+
|
13
|
+
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; }
|
14
|
+
|
15
|
+
import PropTypes from 'prop-types';
|
16
|
+
var descriptions = {
|
17
|
+
containerProps: 'Props object spread into the outer-most container. Wrapper and label will be children.',
|
18
|
+
controlProps: ' Props object that is spread directly into the input element. Will be a child of the Wrapper.',
|
19
|
+
controlWrapperProps: 'Props object spread to the field control wrapper, i.e. the immediate parent element for the control, sibling of the label, and child of the field container.',
|
20
|
+
labelProps: 'Props object spread to the field label, i.e. the visible text which labels the control.'
|
21
|
+
};
|
22
|
+
export var inputFieldAttributeBaseDocSettings = {
|
23
|
+
type: {
|
24
|
+
summary: 'object'
|
25
|
+
},
|
26
|
+
control: {
|
27
|
+
type: 'string'
|
28
|
+
},
|
29
|
+
table: {
|
30
|
+
category: 'Input Field Attributes'
|
31
|
+
}
|
32
|
+
};
|
33
|
+
export var inputFieldAttributeBaseArgTypes = {
|
34
|
+
'containerProps': _objectSpread({
|
35
|
+
description: descriptions.containerProps
|
36
|
+
}, inputFieldAttributeBaseDocSettings),
|
37
|
+
'controlProps': _objectSpread({
|
38
|
+
description: descriptions.controlProps
|
39
|
+
}, inputFieldAttributeBaseDocSettings),
|
40
|
+
'controlWrapperProps': _objectSpread({
|
41
|
+
description: descriptions.controlWrapperProps
|
42
|
+
}, inputFieldAttributeBaseDocSettings),
|
43
|
+
'labelProps': _objectSpread({
|
44
|
+
description: descriptions.labelProps
|
45
|
+
}, inputFieldAttributeBaseDocSettings)
|
46
|
+
};
|
47
|
+
export var inputFieldAttributesBasePropTypes = {
|
48
|
+
containerProps: PropTypes.shape({}),
|
49
|
+
controlProps: PropTypes.shape({}),
|
50
|
+
controlWrapperProps: PropTypes.shape({}),
|
51
|
+
labelProps: PropTypes.shape({})
|
52
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pingux/astro",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.0-alpha.1",
|
4
4
|
"description": "PingUX themeable React component library",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -37,63 +37,29 @@
|
|
37
37
|
"@emotion/jest": "^11.5.0",
|
38
38
|
"@emotion/react": "^11.1.5",
|
39
39
|
"@emotion/styled": "^11.3.0",
|
40
|
-
"@react-aria/accordion": "3.0.0-alpha.
|
41
|
-
"@react-aria/
|
42
|
-
"@react-aria/
|
43
|
-
"@react-aria/
|
44
|
-
"@react-aria/
|
45
|
-
"@react-aria/
|
46
|
-
"@react-aria/dialog": "^3.1.2",
|
47
|
-
"@react-aria/focus": "^3.5.0",
|
48
|
-
"@react-aria/grid": "^3.2.6",
|
49
|
-
"@react-aria/i18n": "^3.3.0",
|
50
|
-
"@react-aria/interactions": "^3.5.0",
|
51
|
-
"@react-aria/label": "^3.1.0",
|
52
|
-
"@react-aria/link": "^3.1.1",
|
40
|
+
"@react-aria/accordion": "~3.0.0-alpha.11",
|
41
|
+
"@react-aria/color": "~3.0.0-beta.15",
|
42
|
+
"@react-aria/focus": "~3.8.0",
|
43
|
+
"@react-aria/grid": "~3.4.1",
|
44
|
+
"@react-aria/i18n": "~3.6.0",
|
45
|
+
"@react-aria/interactions": "~3.11.0",
|
53
46
|
"@react-aria/list": "3.0.0-nightly.3248",
|
54
|
-
"@react-aria/listbox": "
|
55
|
-
"@react-aria/live-announcer": "
|
56
|
-
"@react-aria/
|
57
|
-
"@react-aria/
|
58
|
-
"@react-aria/
|
59
|
-
"@react-aria/
|
60
|
-
"@react-
|
61
|
-
"@react-
|
62
|
-
"@react-
|
63
|
-
"@react-
|
64
|
-
"@react-
|
65
|
-
"@react-aria/slider": "^3.0.7",
|
66
|
-
"@react-aria/switch": "3.1.1",
|
67
|
-
"@react-aria/table": "^3.3.0",
|
68
|
-
"@react-aria/tabs": "^3.0.1",
|
69
|
-
"@react-aria/tooltip": "^3.1.2",
|
70
|
-
"@react-aria/utils": "^3.12.0",
|
71
|
-
"@react-aria/virtualizer": "^3.3.2",
|
72
|
-
"@react-aria/visually-hidden": "3.2.1",
|
73
|
-
"@react-stately/collections": "~3.3.8",
|
74
|
-
"@react-stately/color": "^3.0.0-beta.2",
|
75
|
-
"@react-stately/combobox": "^3.0.0",
|
76
|
-
"@react-stately/data": "^3.4.0",
|
77
|
-
"@react-stately/grid": "^3.1.4",
|
78
|
-
"@react-stately/layout": "~3.6.0",
|
79
|
-
"@react-stately/list": "^3.2.1",
|
80
|
-
"@react-stately/menu": "^3.2.1",
|
81
|
-
"@react-stately/numberfield": "~3.0.7",
|
82
|
-
"@react-stately/overlays": "^3.1.1",
|
83
|
-
"@react-stately/radio": "^3.2.0",
|
84
|
-
"@react-stately/searchfield": "^3.1.1",
|
85
|
-
"@react-stately/select": "^3.1.1",
|
86
|
-
"@react-stately/selection": "~3.10.2",
|
87
|
-
"@react-stately/slider": "^3.0.7",
|
47
|
+
"@react-aria/listbox": "~3.3.1",
|
48
|
+
"@react-aria/live-announcer": "~3.1.1",
|
49
|
+
"@react-aria/selection": "~3.10.1",
|
50
|
+
"@react-aria/utils": "~3.13.3",
|
51
|
+
"@react-aria/virtualizer": "~3.5.0",
|
52
|
+
"@react-aria/visually-hidden": "~3.6.0",
|
53
|
+
"@react-spectrum/utils": "~3.6.1",
|
54
|
+
"@react-stately/color": "~3.1.1",
|
55
|
+
"@react-stately/grid": "~3.3.1",
|
56
|
+
"@react-stately/layout": "~3.7.1",
|
57
|
+
"@react-stately/list": "~3.4.1",
|
88
58
|
"@react-stately/table": "^3.2.1",
|
89
|
-
"@react-stately/tabs": "^3.0.1",
|
90
|
-
"@react-stately/toggle": "^3.2.0",
|
91
|
-
"@react-stately/tooltip": "^3.0.4",
|
92
|
-
"@react-stately/tree": "^3.1.2",
|
93
|
-
"@react-stately/utils": "~3.4.1",
|
94
59
|
"@react-stately/virtualizer": "^3.2.1",
|
95
60
|
"@styled-system/prop-types": "^5.1.5",
|
96
61
|
"@styled-system/props": "^5.1.5",
|
62
|
+
"@styled-system/should-forward-prop": "^5.1.5",
|
97
63
|
"@styled-system/theme-get": "^5.1.2",
|
98
64
|
"chroma-js": "^2.1.0",
|
99
65
|
"classnames": "^2.2.6",
|
@@ -104,13 +70,16 @@
|
|
104
70
|
"prism-react-renderer": "1.2.1",
|
105
71
|
"prismjs": "^1.27.0",
|
106
72
|
"prop-types": "^15.7.2",
|
73
|
+
"react-aria": "~3.19.0",
|
107
74
|
"react-calendar": "^3.4.0",
|
108
75
|
"react-color": "^2.19.3",
|
109
76
|
"react-dropzone": "^11.4.2",
|
77
|
+
"react-stately": "~3.17.0",
|
78
|
+
"rebass": "^4.0.7",
|
110
79
|
"recharts": "^2.1.4",
|
111
80
|
"regenerator-runtime": "^0.13.7",
|
112
81
|
"styled-system": "^5.1.5",
|
113
|
-
"theme-ui": "
|
82
|
+
"theme-ui": "0.10.0",
|
114
83
|
"uuid": "^8.3.2"
|
115
84
|
},
|
116
85
|
"devDependencies": {
|
@@ -149,6 +118,7 @@
|
|
149
118
|
"react": "^16.8.6",
|
150
119
|
"react-dom": "^16.13.1",
|
151
120
|
"react-is": "^16.13.1",
|
121
|
+
"react-json-tree": "^0.17.0",
|
152
122
|
"use-resize-observer": "^8.0.0"
|
153
123
|
},
|
154
124
|
"peerDependencies": {
|