@pingux/astro 2.221.6-alpha.0 → 2.234.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/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.d.ts +50 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.d.ts +14 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +6 -56
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
- package/lib/cjs/components/AccordionGridGroup/index.d.ts +1 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.d.ts +3 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +12 -20
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.d.ts +4 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +9 -15
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.d.ts +4 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +10 -23
- package/lib/cjs/components/AccordionGridItem/index.d.ts +1 -0
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +12 -1
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +43 -1
- package/lib/cjs/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/lib/cjs/components/AccordionItem/AccordionItem.js +4 -2
- package/lib/cjs/components/ArrayField/ArrayField.js +30 -13
- package/lib/cjs/components/ArrayField/ArrayField.mdx +5 -1
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +127 -90
- package/lib/cjs/components/ArrayField/ArrayField.styles.d.ts +9 -0
- package/lib/cjs/components/ArrayField/ArrayField.styles.js +41 -0
- package/lib/cjs/components/ArrayField/ArrayField.test.js +202 -30
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +21 -8
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.styles.d.ts +5 -0
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.styles.js +21 -0
- package/lib/cjs/components/ArrayField/arrayFieldAttributes.d.ts +1 -99
- package/lib/cjs/components/ArrayField/arrayFieldAttributes.js +3 -2
- package/lib/cjs/components/AstroProvider/AstroProvider.d.ts +16 -0
- package/lib/cjs/components/AstroProvider/AstroProvider.js +10 -34
- package/lib/cjs/components/AstroProvider/PageWrapper.test.js +49 -4
- package/lib/cjs/components/AstroProvider/index.d.ts +2 -0
- package/lib/cjs/components/Badge/Badge.js +20 -11
- package/lib/cjs/components/Badge/Badge.mdx +6 -0
- package/lib/cjs/components/Badge/Badge.stories.js +64 -19
- package/lib/cjs/components/Badge/Badge.styles.d.ts +266 -0
- package/lib/cjs/components/Badge/Badge.styles.js +24 -4
- package/lib/cjs/components/Badge/Badge.test.js +165 -1
- package/lib/cjs/components/Badge/BadgeHelpHint.d.ts +8 -0
- package/lib/cjs/components/Badge/BadgeHelpHint.js +84 -0
- package/lib/cjs/components/Badge/Convenience/DefaultBadge.js +5 -2
- package/lib/cjs/components/Badge/Convenience/ErrorCalloutBadge.js +5 -4
- package/lib/cjs/components/Badge/Convenience/InfoCalloutBadge.js +5 -4
- package/lib/cjs/components/Badge/Convenience/SuccessCalloutBadge.js +5 -4
- package/lib/cjs/components/Badge/Convenience/WarningCalloutBadge.js +5 -4
- package/lib/cjs/components/Checkbox/Checkbox.d.ts +9 -0
- package/lib/cjs/components/Checkbox/Checkbox.styles.d.ts +15 -0
- package/lib/cjs/components/Checkbox/CheckboxBase.d.ts +4 -0
- package/lib/cjs/components/Checkbox/CheckboxBase.js +100 -49
- package/lib/cjs/components/Checkbox/CheckboxIcons.d.ts +15 -0
- package/lib/cjs/components/Checkbox/CheckboxIcons.js +122 -0
- package/lib/cjs/components/Checkbox/index.d.ts +1 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.js +5 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +1 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.test.js +41 -5
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroup.d.ts +4 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroup.js +89 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroup.mdx +69 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroup.stories.js +118 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroup.styles.d.ts +8 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroup.styles.js +40 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroup.test.js +485 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroupItem.d.ts +4 -0
- package/lib/cjs/components/CheckboxFieldGroup/CheckboxFieldGroupItem.js +112 -0
- package/lib/cjs/components/CheckboxFieldGroup/checkboxFieldGroupAttributes.d.ts +2 -0
- package/lib/cjs/components/CheckboxFieldGroup/checkboxFieldGroupAttributes.js +108 -0
- package/lib/cjs/components/CheckboxFieldGroup/index.d.ts +3 -0
- package/lib/cjs/components/CheckboxFieldGroup/index.js +27 -0
- package/lib/cjs/components/CodeView/CodeView.js +3 -2
- package/lib/cjs/components/CodeView/CodeView.stories.js +44 -1
- package/lib/cjs/components/CodeView/CodeView.test.js +84 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +18 -1
- package/lib/cjs/components/CopyText/CopyButton.js +1 -2
- package/lib/cjs/components/DatePicker/DatePicker.test.js +1 -1
- package/lib/cjs/components/EmptyState/EmptyState.d.ts +4 -0
- package/lib/cjs/components/EmptyState/EmptyState.js +66 -0
- package/lib/cjs/components/EmptyState/EmptyState.mdx +44 -0
- package/lib/cjs/components/EmptyState/EmptyState.stories.js +88 -0
- package/lib/cjs/components/EmptyState/EmptyState.styles.d.ts +13 -0
- package/lib/cjs/components/EmptyState/EmptyState.styles.js +22 -0
- package/lib/cjs/components/EmptyState/EmptyState.test.js +223 -0
- package/lib/cjs/components/EmptyState/emptyStateAttributes.d.ts +99 -0
- package/lib/cjs/components/EmptyState/emptyStateAttributes.js +49 -0
- package/lib/cjs/components/EmptyState/index.d.ts +1 -0
- package/lib/cjs/components/EmptyState/index.js +14 -0
- package/lib/cjs/components/HelpHint/HelpHint.js +38 -83
- package/lib/cjs/components/IconBadge/IconBadge.d.ts +2 -0
- package/lib/cjs/components/IconBadge/IconBadge.js +39 -20
- package/lib/cjs/components/IconBadge/IconBadge.mdx +5 -1
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +50 -7
- package/lib/cjs/components/IconBadge/IconBadge.styles.d.ts +19 -0
- package/lib/cjs/components/IconBadge/IconBadge.styles.js +27 -0
- package/lib/cjs/components/IconBadge/IconBadge.test.js +67 -14
- package/lib/cjs/components/IconButton/IconButton.styles.d.ts +3 -0
- package/lib/cjs/components/IconButton/IconButton.styles.js +4 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.stories.js +1 -0
- package/lib/cjs/components/LabelValuePairs/LabelValuePairs.test.js +18 -1
- package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.js +1 -2
- package/lib/cjs/components/ListView/ListView.js +28 -4
- package/lib/cjs/components/ListView/ListView.stories.js +110 -62
- package/lib/cjs/components/ListView/ListView.test.js +80 -0
- package/lib/cjs/components/ListView/ListViewTypes.d.ts +5 -0
- package/lib/cjs/components/ListViewItem/ListViewItem.js +28 -7
- package/lib/cjs/components/ListViewItem/ListViewItem.stories.js +2 -5
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +7 -0
- package/lib/cjs/components/ListViewItem/ListViewItem.test.js +36 -5
- package/lib/cjs/components/ListViewItem/listViewItemAttributes.js +9 -1
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +8 -0
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +23 -1
- package/lib/cjs/components/NavBar/NavBar.styles.d.ts +11 -1
- package/lib/cjs/components/PageHeader/PageHeader.js +9 -4
- package/lib/cjs/components/PageHeader/PageHeader.mdx +3 -0
- package/lib/cjs/components/PageHeader/PageHeader.stories.js +14 -4
- package/lib/cjs/components/PageHeader/PageHeader.test.js +57 -3
- package/lib/cjs/components/PanelHeader/PanelHeader.js +36 -8
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +2 -5
- package/lib/cjs/components/PanelHeader/PanelHeader.test.js +46 -4
- package/lib/cjs/components/RangeCalendar/RangeCalendar.js +1 -1
- package/lib/cjs/components/RangeCalendar/RangeCalendar.mdx +4 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.test.js +30 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendarGrid.js +1 -0
- package/lib/cjs/components/SelectField/SelectField.stories.js +14 -1
- package/lib/cjs/components/Tab/Tab.js +38 -6
- package/lib/cjs/components/Tab/getSlotText.d.ts +6 -0
- package/lib/cjs/components/Tab/getSlotText.js +21 -0
- package/lib/cjs/components/Tab/getSlotText.test.js +23 -0
- package/lib/cjs/components/TabPicker/TabPicker.js +9 -4
- package/lib/cjs/components/Tabs/Tabs.stories.js +63 -14
- package/lib/cjs/components/Tabs/Tabs.storyData.d.ts +1 -0
- package/lib/cjs/components/Tabs/Tabs.storyData.js +8 -0
- package/lib/cjs/components/Tabs/Tabs.style.d.ts +5 -0
- package/lib/cjs/components/Tabs/Tabs.style.js +7 -2
- package/lib/cjs/components/Tabs/Tabs.test.js +85 -37
- package/lib/cjs/context/CheckboxFieldGroupContext/index.d.ts +10 -0
- package/lib/cjs/context/CheckboxFieldGroupContext/index.js +17 -0
- package/lib/cjs/hooks/index.d.ts +1 -0
- package/lib/cjs/hooks/index.js +7 -0
- package/lib/cjs/hooks/useField/useField.d.ts +78 -78
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +14 -0
- package/lib/cjs/hooks/useHelpHintPopover/index.d.ts +2 -0
- package/lib/cjs/hooks/useHelpHintPopover/index.js +32 -0
- package/lib/cjs/hooks/useHelpHintPopover/useHelpHintPopover.d.ts +25 -0
- package/lib/cjs/hooks/useHelpHintPopover/useHelpHintPopover.js +137 -0
- package/lib/cjs/hooks/usePagination/usePagination.d.ts +94 -94
- package/lib/cjs/index.d.ts +4 -0
- package/lib/cjs/index.js +114 -69
- package/lib/cjs/styles/forms/index.js +23 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +17 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +18 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +6 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +7 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +90 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +76 -29
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/box.d.ts +14 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/box.js +22 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +20 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +20 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/comboBox.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/comboBox.js +4 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +45 -8
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +34 -10
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.d.ts +29 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.js +30 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +5 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +5 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +52 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +12 -1
- package/lib/cjs/styles/themeOverrides/onyxSideNav.d.ts +6 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +6 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.js +3 -1
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +7 -0
- package/lib/cjs/styles/themes/astro/customProperties/index.js +3 -0
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +5 -2
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/colors/twoTone.d.ts +18 -0
- package/lib/cjs/styles/themes/next-gen/colors/twoTone.js +21 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +5 -3
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +5 -1
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/index.js +3 -1
- package/lib/cjs/styles/themes/next-gen/forms.d.ts +83 -4
- package/lib/cjs/styles/themes/next-gen/forms.js +51 -8
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +472 -72
- package/lib/cjs/styles/themes/next-gen/spacing.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/spacing.js +2 -1
- package/lib/cjs/styles/themes/next-gen/variants/arrayField.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/variants/arrayField.js +71 -0
- package/lib/cjs/styles/themes/next-gen/variants/arrayFieldDeleteButton.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/variants/arrayFieldDeleteButton.js +44 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +243 -33
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +77 -28
- package/lib/cjs/styles/themes/next-gen/variants/box.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/box.js +7 -4
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +41 -29
- package/lib/cjs/styles/themes/next-gen/variants/button.js +25 -2
- package/lib/cjs/styles/themes/next-gen/variants/images.d.ts +6 -1
- package/lib/cjs/styles/themes/next-gen/variants/images.js +8 -1
- package/lib/cjs/styles/themes/next-gen/variants/label.js +33 -1
- package/lib/cjs/styles/themes/next-gen/variants/listview.d.ts +33 -0
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +36 -1
- package/lib/cjs/styles/themes/next-gen/variants/rangeCalendar.d.ts +10 -0
- package/lib/cjs/styles/themes/next-gen/variants/rangeCalendar.js +15 -4
- package/lib/cjs/styles/themes/next-gen/variants/tabs.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/variants/tabs.js +12 -3
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +5 -1
- package/lib/cjs/styles/themes/next-gen/variants/text.js +6 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +103 -6
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +30 -4
- package/lib/cjs/styles/variants/variants.js +8 -0
- package/lib/cjs/types/AccordionGridGroup.d.ts +36 -0
- package/lib/cjs/types/AccordionGridGroup.js +6 -0
- package/lib/cjs/types/AccordionGridItem.d.ts +52 -0
- package/lib/cjs/types/AccordionGridItem.js +6 -0
- package/lib/cjs/types/AstroProvider.d.ts +32 -0
- package/lib/cjs/types/AstroProvider.js +6 -0
- package/lib/cjs/types/Checkbox.d.ts +44 -0
- package/lib/cjs/types/Checkbox.js +6 -0
- package/lib/cjs/types/badge.d.ts +6 -0
- package/lib/cjs/types/checkboxFieldGroup.d.ts +48 -0
- package/lib/cjs/types/checkboxFieldGroup.js +6 -0
- package/lib/cjs/types/codeView.d.ts +3 -0
- package/lib/cjs/types/emptyState.d.ts +27 -0
- package/lib/cjs/types/emptyState.js +6 -0
- package/lib/cjs/types/iconBadge.d.ts +6 -0
- package/lib/cjs/types/index.d.ts +7 -0
- package/lib/cjs/types/index.js +147 -70
- package/lib/cjs/types/item.d.ts +5 -0
- package/lib/cjs/types/listView.d.ts +3 -0
- package/lib/cjs/types/table.d.ts +2 -0
- package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +4 -1
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +6 -56
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +2 -1
- package/lib/components/AccordionGridItem/AccordionGridItem.js +12 -20
- package/lib/components/AccordionGridItem/AccordionGridItemBody.js +9 -15
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +10 -23
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +11 -0
- package/lib/components/AccordionGroup/AccordionGroup.test.js +43 -1
- package/lib/components/AccordionItem/AccordionItem.js +5 -3
- package/lib/components/ArrayField/ArrayField.js +30 -13
- package/lib/components/ArrayField/ArrayField.mdx +5 -1
- package/lib/components/ArrayField/ArrayField.stories.js +126 -89
- package/lib/components/ArrayField/ArrayField.styles.js +34 -0
- package/lib/components/ArrayField/ArrayField.test.js +202 -30
- package/lib/components/ArrayField/ArrayFieldDeleteButton.js +21 -8
- package/lib/components/ArrayField/ArrayFieldDeleteButton.styles.js +14 -0
- package/lib/components/ArrayField/arrayFieldAttributes.js +3 -2
- package/lib/components/AstroProvider/AstroProvider.js +10 -34
- package/lib/components/AstroProvider/PageWrapper.test.js +46 -0
- package/lib/components/Badge/Badge.js +20 -11
- package/lib/components/Badge/Badge.mdx +6 -0
- package/lib/components/Badge/Badge.stories.js +64 -19
- package/lib/components/Badge/Badge.styles.js +25 -5
- package/lib/components/Badge/Badge.test.js +166 -2
- package/lib/components/Badge/BadgeHelpHint.js +74 -0
- package/lib/components/Badge/Convenience/DefaultBadge.js +5 -2
- package/lib/components/Badge/Convenience/ErrorCalloutBadge.js +5 -4
- package/lib/components/Badge/Convenience/InfoCalloutBadge.js +5 -4
- package/lib/components/Badge/Convenience/SuccessCalloutBadge.js +5 -4
- package/lib/components/Badge/Convenience/WarningCalloutBadge.js +5 -4
- package/lib/components/Checkbox/CheckboxBase.js +99 -48
- package/lib/components/Checkbox/CheckboxIcons.js +114 -0
- package/lib/components/CheckboxField/CheckboxField.js +6 -2
- package/lib/components/CheckboxField/CheckboxField.stories.js +1 -1
- package/lib/components/CheckboxField/CheckboxField.test.js +41 -5
- package/lib/components/CheckboxFieldGroup/CheckboxFieldGroup.js +79 -0
- package/lib/components/CheckboxFieldGroup/CheckboxFieldGroup.mdx +69 -0
- package/lib/components/CheckboxFieldGroup/CheckboxFieldGroup.stories.js +111 -0
- package/lib/components/CheckboxFieldGroup/CheckboxFieldGroup.styles.js +33 -0
- package/lib/components/CheckboxFieldGroup/CheckboxFieldGroup.test.js +481 -0
- package/lib/components/CheckboxFieldGroup/CheckboxFieldGroupItem.js +101 -0
- package/lib/components/CheckboxFieldGroup/checkboxFieldGroupAttributes.js +101 -0
- package/lib/components/CheckboxFieldGroup/index.js +3 -0
- package/lib/components/CodeView/CodeView.js +3 -2
- package/lib/components/CodeView/CodeView.stories.js +44 -1
- package/lib/components/CodeView/CodeView.test.js +85 -1
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +18 -1
- package/lib/components/CopyText/CopyButton.js +1 -2
- package/lib/components/DatePicker/DatePicker.test.js +1 -1
- package/lib/components/EmptyState/EmptyState.js +54 -0
- package/lib/components/EmptyState/EmptyState.mdx +44 -0
- package/lib/components/EmptyState/EmptyState.stories.js +81 -0
- package/lib/components/EmptyState/EmptyState.styles.js +15 -0
- package/lib/components/EmptyState/EmptyState.test.js +220 -0
- package/lib/components/EmptyState/emptyStateAttributes.js +42 -0
- package/lib/components/EmptyState/index.js +1 -0
- package/lib/components/HelpHint/HelpHint.js +41 -86
- package/lib/components/IconBadge/IconBadge.js +43 -24
- package/lib/components/IconBadge/IconBadge.mdx +5 -1
- package/lib/components/IconBadge/IconBadge.stories.js +50 -7
- package/lib/components/IconBadge/IconBadge.styles.js +20 -0
- package/lib/components/IconBadge/IconBadge.test.js +54 -1
- package/lib/components/IconButton/IconButton.styles.js +4 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.stories.js +1 -0
- package/lib/components/LabelValuePairs/LabelValuePairs.test.js +19 -2
- package/lib/components/LabelValuePairs/LabelValuePairsLabel.js +1 -2
- package/lib/components/ListView/ListView.js +28 -4
- package/lib/components/ListView/ListView.stories.js +106 -58
- package/lib/components/ListView/ListView.test.js +80 -0
- package/lib/components/ListViewItem/ListViewItem.js +28 -5
- package/lib/components/ListViewItem/ListViewItem.stories.js +3 -6
- package/lib/components/ListViewItem/ListViewItem.styles.js +7 -0
- package/lib/components/ListViewItem/ListViewItem.test.js +33 -2
- package/lib/components/ListViewItem/listViewItemAttributes.js +9 -1
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +8 -0
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +23 -1
- package/lib/components/PageHeader/PageHeader.js +9 -4
- package/lib/components/PageHeader/PageHeader.mdx +3 -0
- package/lib/components/PageHeader/PageHeader.stories.js +15 -5
- package/lib/components/PageHeader/PageHeader.test.js +58 -4
- package/lib/components/PanelHeader/PanelHeader.js +37 -9
- package/lib/components/PanelHeader/PanelHeader.stories.js +3 -6
- package/lib/components/PanelHeader/PanelHeader.test.js +47 -5
- package/lib/components/RangeCalendar/RangeCalendar.js +1 -1
- package/lib/components/RangeCalendar/RangeCalendar.mdx +4 -0
- package/lib/components/RangeCalendar/RangeCalendar.test.js +30 -0
- package/lib/components/RangeCalendar/RangeCalendarGrid.js +1 -0
- package/lib/components/SelectField/SelectField.stories.js +13 -0
- package/lib/components/Tab/Tab.js +39 -3
- package/lib/components/Tab/getSlotText.js +15 -0
- package/lib/components/Tab/getSlotText.test.js +21 -0
- package/lib/components/TabPicker/TabPicker.js +10 -5
- package/lib/components/Tabs/Tabs.stories.js +62 -11
- package/lib/components/Tabs/Tabs.storyData.js +1 -0
- package/lib/components/Tabs/Tabs.style.js +6 -1
- package/lib/components/Tabs/Tabs.test.js +85 -37
- package/lib/context/CheckboxFieldGroupContext/index.js +10 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/useHelpHintPopover/index.js +2 -0
- package/lib/hooks/useHelpHintPopover/useHelpHintPopover.js +130 -0
- package/lib/index.js +4 -0
- package/lib/styles/forms/index.js +22 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +18 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +76 -29
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/box.js +15 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +20 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/comboBox.js +4 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +33 -9
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/listview.js +30 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +5 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +12 -1
- package/lib/styles/themes/astro/customProperties/icons.js +3 -1
- package/lib/styles/themes/astro/customProperties/index.js +3 -0
- package/lib/styles/themes/next-gen/codeView/codeView.js +5 -2
- package/lib/styles/themes/next-gen/colors/twoTone.js +19 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +5 -3
- package/lib/styles/themes/next-gen/customProperties/icons.js +5 -1
- package/lib/styles/themes/next-gen/customProperties/index.js +3 -1
- package/lib/styles/themes/next-gen/forms.js +50 -7
- package/lib/styles/themes/next-gen/spacing.js +2 -1
- package/lib/styles/themes/next-gen/variants/arrayField.js +64 -0
- package/lib/styles/themes/next-gen/variants/arrayFieldDeleteButton.js +37 -0
- package/lib/styles/themes/next-gen/variants/badges.js +77 -28
- package/lib/styles/themes/next-gen/variants/box.js +7 -4
- package/lib/styles/themes/next-gen/variants/button.js +25 -2
- package/lib/styles/themes/next-gen/variants/images.js +7 -1
- package/lib/styles/themes/next-gen/variants/label.js +33 -1
- package/lib/styles/themes/next-gen/variants/listview.js +35 -1
- package/lib/styles/themes/next-gen/variants/rangeCalendar.js +15 -4
- package/lib/styles/themes/next-gen/variants/tabs.js +11 -2
- package/lib/styles/themes/next-gen/variants/text.js +6 -2
- package/lib/styles/themes/next-gen/variants/variants.js +31 -5
- package/lib/styles/variants/variants.js +8 -0
- package/lib/types/AccordionGridGroup.js +1 -0
- package/lib/types/AccordionGridItem.js +1 -0
- package/lib/types/AstroProvider.js +1 -0
- package/lib/types/Checkbox.js +1 -0
- package/lib/types/checkboxFieldGroup.js +1 -0
- package/lib/types/emptyState.js +1 -0
- package/lib/types/index.js +7 -0
- package/lib/utils/designUtils/figmaLinks.js +4 -1
- package/package.json +2 -2
|
@@ -10,19 +10,35 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
|
10
10
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import { astroTokens } from '@pingux/onyx-tokens';
|
|
13
|
+
import checkboxFieldGroup from '../../../components/CheckboxFieldGroup/CheckboxFieldGroup.styles';
|
|
13
14
|
import { isSafari } from '../../safariAgent.js';
|
|
14
15
|
import colors from './colors/colors';
|
|
15
16
|
import tShirtSizes from './customProperties/tShirtSizes';
|
|
16
17
|
import { fieldControlWrapper, input } from './variants/input';
|
|
17
18
|
import { label } from './variants/label';
|
|
18
19
|
import { switchable } from './variants/switch';
|
|
20
|
+
export var checkboxField = {
|
|
21
|
+
container: {
|
|
22
|
+
mb: 'xs'
|
|
23
|
+
}
|
|
24
|
+
};
|
|
19
25
|
export var checkbox = {
|
|
20
|
-
height: '
|
|
21
|
-
width: '
|
|
22
|
-
|
|
26
|
+
height: '16px',
|
|
27
|
+
width: '16px',
|
|
28
|
+
borderRadius: astroTokens.radius.checkbox.radius,
|
|
29
|
+
color: colors.neutral['80'],
|
|
23
30
|
mr: '8px',
|
|
24
|
-
'input ~
|
|
25
|
-
|
|
31
|
+
'input:checked ~ &': {
|
|
32
|
+
color: 'active'
|
|
33
|
+
},
|
|
34
|
+
// The input is visually hidden; use the focus state propagated to the label for the outline.
|
|
35
|
+
'.is-focused &': {
|
|
36
|
+
outline: '2px solid',
|
|
37
|
+
outlineColor: colors.focus,
|
|
38
|
+
outlineOffset: '2px'
|
|
39
|
+
},
|
|
40
|
+
'input:disabled ~ &': {
|
|
41
|
+
opacity: 0.5
|
|
26
42
|
}
|
|
27
43
|
};
|
|
28
44
|
export var select = {
|
|
@@ -30,6 +46,7 @@ export var select = {
|
|
|
30
46
|
borderColor: 'border.input',
|
|
31
47
|
color: 'text.primary',
|
|
32
48
|
height: astroTokens.size.input.height,
|
|
49
|
+
pr: astroTokens.spacing.input['padding-x'],
|
|
33
50
|
'&.is-disabled': {
|
|
34
51
|
opacity: 1,
|
|
35
52
|
borderColor: 'border.input',
|
|
@@ -67,6 +84,9 @@ export var comboBox = {
|
|
|
67
84
|
},
|
|
68
85
|
button: {
|
|
69
86
|
border: 'none !important'
|
|
87
|
+
},
|
|
88
|
+
inputInContainerSlot: {
|
|
89
|
+
right: astroTokens.spacing.input['padding-x']
|
|
70
90
|
}
|
|
71
91
|
};
|
|
72
92
|
export var numberField = {
|
|
@@ -74,8 +94,17 @@ export var numberField = {
|
|
|
74
94
|
};
|
|
75
95
|
export var radio = {
|
|
76
96
|
base: {
|
|
77
|
-
color: '
|
|
78
|
-
mr: '
|
|
97
|
+
color: 'border.input',
|
|
98
|
+
mr: 'md',
|
|
99
|
+
height: 24,
|
|
100
|
+
width: 24,
|
|
101
|
+
// Horizontal RadioGroup uses a tighter icon-to-label gap per the Onyx spec
|
|
102
|
+
'.is-horizontal &': {
|
|
103
|
+
mr: 'sm'
|
|
104
|
+
},
|
|
105
|
+
'input:checked ~ &': {
|
|
106
|
+
color: 'active'
|
|
107
|
+
},
|
|
79
108
|
'input ~ &.is-focused': /* istanbul ignore next */
|
|
80
109
|
isSafari ? {
|
|
81
110
|
boxShadow: 'none',
|
|
@@ -90,8 +119,19 @@ export var radio = {
|
|
|
90
119
|
outlineColor: 'focus',
|
|
91
120
|
outlineOffset: '1px'
|
|
92
121
|
}
|
|
122
|
+
},
|
|
123
|
+
outerContainer: {
|
|
124
|
+
'.is-horizontal &': {
|
|
125
|
+
mr: 'lg'
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
checkedContent: {
|
|
129
|
+
pl: '40px'
|
|
93
130
|
}
|
|
94
131
|
};
|
|
132
|
+
export var radioGroupWrapper = {
|
|
133
|
+
rowGap: 'xs'
|
|
134
|
+
};
|
|
95
135
|
export var timeField = {
|
|
96
136
|
inputField: _objectSpread(_objectSpread({}, input), {}, {
|
|
97
137
|
color: 'font.base',
|
|
@@ -128,10 +168,13 @@ export var timeField = {
|
|
|
128
168
|
export default {
|
|
129
169
|
input: input,
|
|
130
170
|
label: label,
|
|
171
|
+
checkboxField: checkboxField,
|
|
131
172
|
checkbox: checkbox,
|
|
173
|
+
checkboxFieldGroup: checkboxFieldGroup,
|
|
132
174
|
comboBox: comboBox,
|
|
133
175
|
select: select,
|
|
134
176
|
radio: radio,
|
|
177
|
+
radioGroupWrapper: radioGroupWrapper,
|
|
135
178
|
search: search,
|
|
136
179
|
"switch": switchable,
|
|
137
180
|
numberField: numberField,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { astroTokens } from '@pingux/onyx-tokens';
|
|
2
|
+
// Onyx spec: 8px between rows.
|
|
3
|
+
var listItem = {
|
|
4
|
+
mb: astroTokens.spacing.sm,
|
|
5
|
+
// The blocks below the list (helper text container and bottom bar) carry
|
|
6
|
+
// their own 8px top margin, so the last row drops its bottom margin to keep
|
|
7
|
+
// the spec's 8px gap instead of doubling it to 16px.
|
|
8
|
+
'&:last-of-type': {
|
|
9
|
+
mb: 0
|
|
10
|
+
},
|
|
11
|
+
// Row fields get their accessible name from aria-label, so their built-in
|
|
12
|
+
// label renders empty; the Onyx label variant's margin on that empty
|
|
13
|
+
// element would otherwise double the row spacing.
|
|
14
|
+
'& label.field-label:empty': {
|
|
15
|
+
mb: 0
|
|
16
|
+
},
|
|
17
|
+
// The delete control sits inline after the input per the Onyx spec, so the
|
|
18
|
+
// field's own control wrapper lays out horizontally with a centered
|
|
19
|
+
// alignment. The input flexes to fill the space left of the control
|
|
20
|
+
// (32px control + 16px gap) and spans the full row width when the control
|
|
21
|
+
// is absent ("cannot delete last item" state).
|
|
22
|
+
'& .field-control-wrapper': {
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
'& .field-control-input': {
|
|
26
|
+
height: '50px',
|
|
27
|
+
width: '100%',
|
|
28
|
+
flex: '1 1 auto',
|
|
29
|
+
minWidth: 0
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var helperTextContainer = {
|
|
34
|
+
mt: astroTokens.spacing.sm,
|
|
35
|
+
lineHeight: 'body',
|
|
36
|
+
'& > *': {
|
|
37
|
+
mt: '0px !important',
|
|
38
|
+
pt: '0px !important'
|
|
39
|
+
},
|
|
40
|
+
// 4px between the helper text and the maximum feedback, from the Onyx spec.
|
|
41
|
+
'& > * + *': {
|
|
42
|
+
mt: "".concat(astroTokens.spacing.xs, "px !important")
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var bottomBar = {
|
|
46
|
+
mt: astroTokens.spacing.sm
|
|
47
|
+
};
|
|
48
|
+
var addButton = {
|
|
49
|
+
width: 'fit-content',
|
|
50
|
+
fontWeight: 0
|
|
51
|
+
};
|
|
52
|
+
var addButtonText = {
|
|
53
|
+
variant: 'text.label',
|
|
54
|
+
color: 'font.link',
|
|
55
|
+
fontWeight: 0
|
|
56
|
+
};
|
|
57
|
+
export var arrayField = {
|
|
58
|
+
listItem: listItem,
|
|
59
|
+
helperTextContainer: helperTextContainer,
|
|
60
|
+
bottomBar: bottomBar,
|
|
61
|
+
addButton: addButton,
|
|
62
|
+
addButtonText: addButtonText
|
|
63
|
+
};
|
|
64
|
+
export default arrayField;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { astroTokens } from '@pingux/onyx-tokens';
|
|
2
|
+
// Onyx places the delete control inline after the field: 16px gap, 32x32 hit
|
|
3
|
+
// area, circular badge-style focus ring and hover background. The base
|
|
4
|
+
// Astro variant (merged underneath by the theme merge) positions the
|
|
5
|
+
// control absolutely outside the row for its own layout, so those
|
|
6
|
+
// properties are reset here to keep the control inside the flex row.
|
|
7
|
+
var deleteButton = {
|
|
8
|
+
position: 'static',
|
|
9
|
+
right: 'auto',
|
|
10
|
+
top: 'auto',
|
|
11
|
+
ml: astroTokens.spacing.md,
|
|
12
|
+
width: 32,
|
|
13
|
+
height: 32,
|
|
14
|
+
alignSelf: 'center',
|
|
15
|
+
// '&&' out-specifies the base variant and the fieldControlWrapper
|
|
16
|
+
// '> button' rule; the focus indicator is circular, which needs the
|
|
17
|
+
// 28px radius kept as well.
|
|
18
|
+
'&&': {
|
|
19
|
+
border: 'none',
|
|
20
|
+
borderRadius: '28px'
|
|
21
|
+
},
|
|
22
|
+
cursor: 'pointer',
|
|
23
|
+
// This variant no longer extends the base icon button (the variant prop
|
|
24
|
+
// replaces it), so it carries its own focus ring and hover treatment.
|
|
25
|
+
'&.is-focused': {
|
|
26
|
+
outline: '2px solid',
|
|
27
|
+
outlineColor: 'active',
|
|
28
|
+
outlineOffset: '2px'
|
|
29
|
+
},
|
|
30
|
+
'&.is-hovered': {
|
|
31
|
+
backgroundColor: astroTokens.color.gray[100]
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export var arrayFieldDeleteButton = {
|
|
35
|
+
deleteButton: deleteButton
|
|
36
|
+
};
|
|
37
|
+
export default arrayFieldDeleteButton;
|
|
@@ -15,7 +15,9 @@ var badgeFont = {
|
|
|
15
15
|
fontWeight: '2'
|
|
16
16
|
};
|
|
17
17
|
var badgeIconStyle = {
|
|
18
|
-
'& span': _objectSpread({}, badgeFont),
|
|
18
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
19
|
+
color: 'inherit'
|
|
20
|
+
}),
|
|
19
21
|
'& button': {
|
|
20
22
|
alignSelf: 'center',
|
|
21
23
|
p: '0',
|
|
@@ -30,6 +32,7 @@ var badgeIconStyle = {
|
|
|
30
32
|
}
|
|
31
33
|
},
|
|
32
34
|
'& svg': {
|
|
35
|
+
color: 'inherit',
|
|
33
36
|
path: {
|
|
34
37
|
fill: 'inherit'
|
|
35
38
|
}
|
|
@@ -44,7 +47,8 @@ var baseBadge = _objectSpread({
|
|
|
44
47
|
alignSelf: 'flex-start',
|
|
45
48
|
display: 'inline-flex !important',
|
|
46
49
|
width: 'fit-content',
|
|
47
|
-
color: 'text.primary'
|
|
50
|
+
color: 'text.primary',
|
|
51
|
+
backgroundColor: 'gray.100'
|
|
48
52
|
}, badgeIconStyle);
|
|
49
53
|
var primary = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
50
54
|
backgroundColor: '#EAF2FD !important',
|
|
@@ -130,21 +134,53 @@ var dataTableBadge = {
|
|
|
130
134
|
minWidth: '100px',
|
|
131
135
|
border: 'none'
|
|
132
136
|
};
|
|
133
|
-
var activeStatusBadge = _objectSpread({
|
|
134
|
-
border: 'none'
|
|
135
|
-
}, primary);
|
|
136
|
-
var warningStatusBadge = _objectSpread({
|
|
137
|
+
var activeStatusBadge = _objectSpread(_objectSpread({
|
|
137
138
|
border: 'none'
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
139
|
+
}, primary), {}, {
|
|
140
|
+
'& svg': {
|
|
141
|
+
color: 'inherit',
|
|
142
|
+
path: {
|
|
143
|
+
fill: 'blue-600'
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
var warningStatusBadge = _objectSpread(_objectSpread({
|
|
146
148
|
border: 'none'
|
|
147
|
-
},
|
|
149
|
+
}, warning), {}, {
|
|
150
|
+
'& svg': {
|
|
151
|
+
color: 'inherit',
|
|
152
|
+
path: {
|
|
153
|
+
fill: 'yellow-800'
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
var criticalStatusBadge = _objectSpread(_objectSpread({}, danger), {}, {
|
|
158
|
+
border: 'none',
|
|
159
|
+
'& svg': {
|
|
160
|
+
color: 'inherit',
|
|
161
|
+
path: {
|
|
162
|
+
fill: 'red-700'
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
var healthyStatusBadge = _objectSpread(_objectSpread({}, success), {}, {
|
|
167
|
+
border: 'none',
|
|
168
|
+
'& svg': {
|
|
169
|
+
color: 'inherit',
|
|
170
|
+
path: {
|
|
171
|
+
fill: 'success.dark'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
var secondaryStatusBadge = _objectSpread(_objectSpread({}, secondary), {}, {
|
|
176
|
+
border: 'none',
|
|
177
|
+
'& svg': {
|
|
178
|
+
color: 'inherit',
|
|
179
|
+
path: {
|
|
180
|
+
fill: 'gray-900'
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
});
|
|
148
184
|
var tableBaseBadgeBaseStyle = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
149
185
|
minWidth: '100px',
|
|
150
186
|
border: 'none'
|
|
@@ -192,7 +228,27 @@ var countBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
|
192
228
|
})
|
|
193
229
|
});
|
|
194
230
|
var countNeutral = _objectSpread({}, secondary);
|
|
195
|
-
|
|
231
|
+
// #23282e
|
|
232
|
+
var invertedRemovableBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
233
|
+
backgroundColor: "".concat(astroTokens.color.gray[900], " !important"),
|
|
234
|
+
'& span': {
|
|
235
|
+
color: astroTokens.color.gray[100]
|
|
236
|
+
},
|
|
237
|
+
'& svg': {
|
|
238
|
+
path: {
|
|
239
|
+
fill: astroTokens.color.gray[100]
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
'& button.is-hovered': {
|
|
243
|
+
backgroundColor: astroTokens.color.gray[100]
|
|
244
|
+
},
|
|
245
|
+
'& button.is-hovered svg path': {
|
|
246
|
+
fill: 'dark'
|
|
247
|
+
},
|
|
248
|
+
'& button.is-pressed svg path': {
|
|
249
|
+
fill: astroTokens.color.gray[100]
|
|
250
|
+
}
|
|
251
|
+
});
|
|
196
252
|
var removableBadge = _objectSpread(_objectSpread({}, secondary), {}, {
|
|
197
253
|
border: 'none'
|
|
198
254
|
});
|
|
@@ -227,17 +283,10 @@ export var badges = {
|
|
|
227
283
|
removableBadge: removableBadge,
|
|
228
284
|
environmentBadge: environmentBadge,
|
|
229
285
|
invertedRemovableBadge: invertedRemovableBadge,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
successCalloutBadge: {
|
|
237
|
-
backgroundColor: 'white !important'
|
|
238
|
-
},
|
|
239
|
-
warningCalloutBadge: {
|
|
240
|
-
backgroundColor: 'white !important'
|
|
241
|
-
},
|
|
286
|
+
convenienceDefault: _objectSpread({}, primary),
|
|
287
|
+
errorCalloutBadge: _objectSpread({}, criticalStatusBadge),
|
|
288
|
+
infoCalloutBadge: _objectSpread({}, activeStatusBadge),
|
|
289
|
+
successCalloutBadge: _objectSpread({}, healthyStatusBadge),
|
|
290
|
+
warningCalloutBadge: _objectSpread({}, warningStatusBadge),
|
|
242
291
|
tableBaseBadge: tableBaseBadge
|
|
243
292
|
};
|
|
@@ -20,12 +20,15 @@ export var commonContentProps = {
|
|
|
20
20
|
};
|
|
21
21
|
export var box = {
|
|
22
22
|
indeterminateCheckboxIcon: {
|
|
23
|
-
height: '
|
|
24
|
-
width: '
|
|
23
|
+
height: '16px',
|
|
24
|
+
width: '16px',
|
|
25
|
+
color: 'active',
|
|
25
26
|
'&.is-disabled': {
|
|
27
|
+
opacity: 0.5,
|
|
28
|
+
// Override base Astro theme's neutral.80 fill so disabled state stays blue at 50%
|
|
26
29
|
'& rect[id="indeterminate-checkbox-icon-wrapper"]': {
|
|
27
|
-
fill: '
|
|
28
|
-
stroke: '
|
|
30
|
+
fill: 'active',
|
|
31
|
+
stroke: 'active'
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
'&.is-focused': {
|
|
@@ -13,6 +13,7 @@ import { astroTokens } from '@pingux/onyx-tokens';
|
|
|
13
13
|
import chroma from 'chroma-js';
|
|
14
14
|
import { copyButton } from '../codeView/codeView';
|
|
15
15
|
import tShirtSizes from '../customProperties/tShirtSizes';
|
|
16
|
+
import { arrayFieldDeleteButton } from './arrayFieldDeleteButton';
|
|
16
17
|
import { commonContentProps } from './box';
|
|
17
18
|
var transitions = {
|
|
18
19
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out'
|
|
@@ -283,7 +284,10 @@ var withIcon = _objectSpread(_objectSpread({}, secondary), {}, {
|
|
|
283
284
|
});
|
|
284
285
|
var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
|
|
285
286
|
display: 'inline-flex',
|
|
286
|
-
color: 'white'
|
|
287
|
+
color: 'white',
|
|
288
|
+
'> span': {
|
|
289
|
+
color: 'white'
|
|
290
|
+
}
|
|
287
291
|
});
|
|
288
292
|
var inlineWithIcon = _objectSpread(_objectSpread({}, inline), {}, {
|
|
289
293
|
display: 'inline-flex',
|
|
@@ -480,6 +484,9 @@ var searchClearButton = _objectSpread(_objectSpread({}, baseIconButtonStyle), {}
|
|
|
480
484
|
var iconButtons = {
|
|
481
485
|
base: _objectSpread({}, baseIconButton),
|
|
482
486
|
onyx: _objectSpread({}, onyxIconButton),
|
|
487
|
+
arrayField: {
|
|
488
|
+
deleteButton: arrayFieldDeleteButton.deleteButton
|
|
489
|
+
},
|
|
483
490
|
responseToolbar: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
484
491
|
'&.is-not-loaded': {
|
|
485
492
|
display: 'none'
|
|
@@ -510,6 +517,23 @@ var iconButtons = {
|
|
|
510
517
|
}
|
|
511
518
|
}, transitions)
|
|
512
519
|
},
|
|
520
|
+
invertedBadgeDeleteButton: _objectSpread(_objectSpread({}, badgeDeleteButton), {}, {
|
|
521
|
+
path: {
|
|
522
|
+
fill: 'white'
|
|
523
|
+
},
|
|
524
|
+
'&.is-hovered': {
|
|
525
|
+
bg: 'transparent',
|
|
526
|
+
path: {
|
|
527
|
+
fill: 'white'
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
'&.is-pressed': {
|
|
531
|
+
bg: 'transparent',
|
|
532
|
+
path: {
|
|
533
|
+
fill: 'white'
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}),
|
|
513
537
|
messageCloseButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
514
538
|
minWidth: '28px',
|
|
515
539
|
width: '28px',
|
|
@@ -595,7 +619,6 @@ var listBoxLink = {
|
|
|
595
619
|
outline: 'none'
|
|
596
620
|
},
|
|
597
621
|
badgeDeleteButton: badgeDeleteButton,
|
|
598
|
-
invertedBadgeDeleteButton: _objectSpread({}, badgeDeleteButton),
|
|
599
622
|
clearSelectionButton: _objectSpread(_objectSpread({}, searchClearButton), {}, {
|
|
600
623
|
top: '15px',
|
|
601
624
|
right: '1rem',
|
|
@@ -28,6 +28,38 @@ export var label = {
|
|
|
28
28
|
radioGroup: {
|
|
29
29
|
color: 'text.primary',
|
|
30
30
|
fontSize: fontSizes.label,
|
|
31
|
-
mb: '
|
|
31
|
+
mb: 'sm'
|
|
32
|
+
},
|
|
33
|
+
checkboxFieldGroup: {
|
|
34
|
+
color: 'text.primary',
|
|
35
|
+
fontSize: fontSizes.label,
|
|
36
|
+
mb: 'sm',
|
|
37
|
+
fontWeight: 'body',
|
|
38
|
+
opacity: 1,
|
|
39
|
+
flexWrap: 'wrap'
|
|
40
|
+
},
|
|
41
|
+
checkboxFieldGroupItem: {
|
|
42
|
+
fontSize: fontSizes.label,
|
|
43
|
+
display: 'inline-flex !important',
|
|
44
|
+
div: {
|
|
45
|
+
flexShrink: 0
|
|
46
|
+
},
|
|
47
|
+
width: 'max-content',
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
cursor: 'pointer',
|
|
50
|
+
minWidth: 0,
|
|
51
|
+
maxWidth: '100%',
|
|
52
|
+
flexWrap: 'wrap',
|
|
53
|
+
'> div': {
|
|
54
|
+
mr: 'md'
|
|
55
|
+
},
|
|
56
|
+
// Keyboard focus ring: the field-label gets .is-focused while the hidden
|
|
57
|
+
// input inside it holds focus, so surface the ring on the checkbox icon.
|
|
58
|
+
'&.is-focused input:focus ~ svg': {
|
|
59
|
+
boxShadow: "inset 0px 0px 0px 1px ".concat(astroTokens.color.primary)
|
|
60
|
+
}
|
|
32
61
|
}
|
|
62
|
+
};
|
|
63
|
+
label.indicator = {
|
|
64
|
+
fontWeight: 0
|
|
33
65
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { astroTokens } from '@pingux/onyx-tokens';
|
|
2
|
+
import sizes from '../sizes';
|
|
2
3
|
export var focusBoxShadow = '0 0 0 2px inset #1a73e8';
|
|
3
4
|
export var borderRadius = '16px';
|
|
4
5
|
export var listViewItem = {
|
|
@@ -11,8 +12,11 @@ export var listViewItem = {
|
|
|
11
12
|
iconWrapper: {
|
|
12
13
|
ml: 'lg'
|
|
13
14
|
},
|
|
15
|
+
imageContainer: {
|
|
16
|
+
width: sizes.avatar.sm
|
|
17
|
+
},
|
|
14
18
|
imageWrapper: {
|
|
15
|
-
ml: '
|
|
19
|
+
ml: 'lg'
|
|
16
20
|
},
|
|
17
21
|
styledListItem: {
|
|
18
22
|
bg: 'white',
|
|
@@ -43,6 +47,36 @@ export var listViewItem = {
|
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
},
|
|
50
|
+
container: {
|
|
51
|
+
p: 0,
|
|
52
|
+
bg: 'white',
|
|
53
|
+
'&.is-selected': {
|
|
54
|
+
bg: astroTokens.color.gray[100]
|
|
55
|
+
},
|
|
56
|
+
borderBottom: 'none',
|
|
57
|
+
'&.has-separator': {
|
|
58
|
+
borderBottom: '1px solid',
|
|
59
|
+
borderBottomColor: astroTokens.color.gray[200]
|
|
60
|
+
},
|
|
61
|
+
'&.is-hovered': {
|
|
62
|
+
bg: astroTokens.color.gray[100]
|
|
63
|
+
},
|
|
64
|
+
'&.is-focused': {
|
|
65
|
+
boxShadow: focusBoxShadow,
|
|
66
|
+
bg: astroTokens.color.gray[100]
|
|
67
|
+
},
|
|
68
|
+
'&.is-first-item': {
|
|
69
|
+
borderTopLeftRadius: borderRadius,
|
|
70
|
+
borderTopRightRadius: borderRadius
|
|
71
|
+
},
|
|
72
|
+
'&.is-last-item': {
|
|
73
|
+
borderBottomLeftRadius: borderRadius,
|
|
74
|
+
borderBottomRightRadius: borderRadius,
|
|
75
|
+
'&.has-separator': {
|
|
76
|
+
border: 'none'
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
46
80
|
styledContainer: {
|
|
47
81
|
bg: 'transparent',
|
|
48
82
|
'&.is-hovered': {
|
|
@@ -2,7 +2,7 @@ import { astroTokens } from '@pingux/onyx-tokens';
|
|
|
2
2
|
var calendarBody = {
|
|
3
3
|
py: 'sm',
|
|
4
4
|
borderTop: '1px solid',
|
|
5
|
-
borderTopColor: 'border.
|
|
5
|
+
borderTopColor: 'border.separator',
|
|
6
6
|
backgroundColor: 'backgroundBase',
|
|
7
7
|
'& > tr:nth-of-type(odd) ': {
|
|
8
8
|
backgroundColor: 'backgroundBase'
|
|
@@ -66,18 +66,28 @@ var calendarButton = {
|
|
|
66
66
|
var calendarCell = {
|
|
67
67
|
height: '36px'
|
|
68
68
|
};
|
|
69
|
+
var calendarHeaderContainer = {
|
|
70
|
+
mt: 0,
|
|
71
|
+
height: '26px',
|
|
72
|
+
mb: 'md',
|
|
73
|
+
width: '100%'
|
|
74
|
+
};
|
|
69
75
|
var columnHeader = {
|
|
70
|
-
color: 'text.primary'
|
|
76
|
+
color: 'text.primary',
|
|
77
|
+
fontWeight: 0,
|
|
78
|
+
'&.is-disabled': {
|
|
79
|
+
opacity: 0.65
|
|
80
|
+
}
|
|
71
81
|
};
|
|
72
82
|
var calendarContainer = {
|
|
73
83
|
width: '611px',
|
|
74
84
|
textAlign: 'center',
|
|
75
85
|
color: 'backgroundBase',
|
|
76
86
|
border: '1px solid',
|
|
77
|
-
borderColor: 'border.
|
|
87
|
+
borderColor: 'border.hairline',
|
|
78
88
|
boxShadow: 'standard',
|
|
79
89
|
borderRadius: '16px',
|
|
80
|
-
p: '
|
|
90
|
+
p: 'md'
|
|
81
91
|
};
|
|
82
92
|
var calendarRow = {
|
|
83
93
|
bg: 'backgroundBase'
|
|
@@ -87,6 +97,7 @@ export default {
|
|
|
87
97
|
calendarButton: calendarButton,
|
|
88
98
|
calendarCell: calendarCell,
|
|
89
99
|
calendarContainer: calendarContainer,
|
|
100
|
+
calendarHeaderContainer: calendarHeaderContainer,
|
|
90
101
|
columnHeader: columnHeader,
|
|
91
102
|
calendarRow: calendarRow
|
|
92
103
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export var tabs = {
|
|
2
|
+
mb: 'md',
|
|
2
3
|
'&.is-horizontal': {
|
|
3
4
|
gap: '0px'
|
|
4
5
|
}
|
|
5
6
|
};
|
|
7
|
+
export var tabPickerExpandIcon = {
|
|
8
|
+
ml: 'sm',
|
|
9
|
+
width: '16px',
|
|
10
|
+
height: '16px'
|
|
11
|
+
};
|
|
6
12
|
export var menuTab = {
|
|
7
13
|
ml: '0px !important'
|
|
8
14
|
};
|
|
@@ -10,13 +16,16 @@ export var tab = {
|
|
|
10
16
|
borderRadius: '2px',
|
|
11
17
|
'& > span': {
|
|
12
18
|
px: 'md',
|
|
13
|
-
fontSize: 'md'
|
|
19
|
+
fontSize: 'md',
|
|
20
|
+
mb: 'sm',
|
|
21
|
+
mt: 'sm',
|
|
22
|
+
minWidth: 0
|
|
14
23
|
},
|
|
15
24
|
'&.is-focused': {
|
|
16
25
|
boxShadow: 'none',
|
|
17
26
|
outline: '1px solid',
|
|
18
27
|
outlineColor: 'active',
|
|
19
|
-
outlineOffset: '
|
|
28
|
+
outlineOffset: '1px',
|
|
20
29
|
'& > span': {
|
|
21
30
|
outline: 'none'
|
|
22
31
|
}
|
|
@@ -151,10 +151,14 @@ export var text = _objectSpread(_objectSpread({
|
|
|
151
151
|
},
|
|
152
152
|
tabLabel: {
|
|
153
153
|
color: astroTokens.color.font.base,
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
fontWeight: 0,
|
|
155
|
+
wordBreak: 'break-word',
|
|
156
|
+
lineHeight: 'sm',
|
|
156
157
|
mb: 'sm',
|
|
157
158
|
mt: 'sm',
|
|
159
|
+
'.is-disabled &': {
|
|
160
|
+
opacity: 0.65
|
|
161
|
+
},
|
|
158
162
|
'.is-selected &': {
|
|
159
163
|
color: astroTokens.color.font.link,
|
|
160
164
|
mb: 'sm'
|