@pingux/astro 2.9.2 → 2.13.0-alpha.4
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/README.md +6 -2
- package/lib/README.md +6 -2
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.mdx +40 -0
- package/lib/cjs/components/AccordionGroup/Accordion.styles.js +1 -2
- package/lib/cjs/components/AccordionGroup/AccordionGroup.mdx +41 -0
- package/lib/cjs/components/ArrayField/ArrayField.mdx +34 -0
- package/lib/cjs/components/AstroWrapper/AstroWrapper.mdx +16 -0
- package/lib/cjs/components/Avatar/Avatar.mdx +14 -0
- package/lib/cjs/components/Badge/Badge.mdx +24 -0
- package/lib/cjs/components/Box/Box.d.ts +4 -0
- package/lib/cjs/components/Box/Box.js +4 -19
- package/lib/cjs/components/Box/Box.mdx +23 -0
- package/lib/cjs/components/Box/Box.styles.d.ts +6 -0
- package/lib/cjs/components/Box/Box.test.d.ts +1 -0
- package/lib/cjs/components/Box/Box.test.js +2 -6
- package/lib/cjs/components/Box/index.d.ts +1 -0
- package/lib/cjs/components/Bracket/Bracket.mdx +17 -0
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.mdx +40 -0
- package/lib/cjs/components/Button/Button.mdx +40 -0
- package/lib/cjs/components/Button/Button.stories.js +30 -5
- package/lib/cjs/components/Button/Buttons.styles.js +25 -7
- package/lib/cjs/components/Calendar/Calendar.mdx +39 -0
- package/lib/cjs/components/Callout/Callout.mdx +28 -0
- package/lib/cjs/components/Card/Card.mdx +32 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.mdx +42 -0
- package/lib/cjs/components/CodeView/CodeView.mdx +23 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.mdx +29 -0
- package/lib/cjs/components/ColorField/ColorField.mdx +38 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.mdx +66 -0
- package/lib/cjs/components/CopyText/CopyText.mdx +23 -0
- package/lib/cjs/components/DataTable/DataTable.mdx +54 -0
- package/lib/cjs/components/DatePicker/DatePicker.mdx +49 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -1
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +36 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +29 -45
- package/lib/cjs/components/FileInputField/FileInputField.mdx +33 -0
- package/lib/cjs/components/HelpHint/HelpHint.js +145 -27
- package/lib/cjs/components/HelpHint/HelpHint.mdx +32 -0
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +40 -7
- package/lib/cjs/components/HelpHint/HelpHint.styles.js +9 -1
- package/lib/cjs/components/HelpHint/HelpHint.test.js +202 -30
- package/lib/cjs/components/Icon/Icon.d.ts +4 -0
- package/lib/cjs/components/Icon/Icon.js +4 -27
- package/lib/cjs/components/Icon/Icon.mdx +49 -0
- package/lib/cjs/components/Icon/Icon.stories.d.ts +8 -0
- package/lib/cjs/components/Icon/Icon.test.d.ts +1 -0
- package/lib/cjs/components/Icon/index.d.ts +1 -0
- package/lib/cjs/components/IconBadge/IconBadge.mdx +14 -0
- package/lib/cjs/components/IconButton/IconButton.mdx +33 -0
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.mdx +31 -0
- package/lib/cjs/components/Image/Image.mdx +28 -0
- package/lib/cjs/components/ImageUploadField/ImageUploadField.mdx +38 -0
- package/lib/cjs/components/Link/Link.mdx +27 -0
- package/lib/cjs/components/Link/Link.styles.js +10 -0
- package/lib/cjs/components/LinkSelectField/LinkSelectField.mdx +47 -0
- package/lib/cjs/components/ListItem/ListItem.mdx +21 -0
- package/lib/cjs/components/ListView/ListView.mdx +44 -0
- package/lib/cjs/components/ListView/ListView.stories.js +93 -47
- package/lib/cjs/components/Loader/Loader.d.ts +4 -0
- package/lib/cjs/components/Loader/Loader.js +0 -14
- package/lib/cjs/components/Loader/Loader.mdx +29 -0
- package/lib/cjs/components/Loader/Loader.styles.d.ts +53 -0
- package/lib/cjs/components/Loader/Loader.test.d.ts +1 -0
- package/lib/cjs/components/Loader/index.d.ts +1 -0
- package/lib/cjs/components/Menu/Menu.mdx +43 -0
- package/lib/cjs/components/Messages/Messages.mdx +35 -0
- package/lib/cjs/components/Modal/Modal.mdx +59 -0
- package/lib/cjs/components/MultivaluesField/MultivaluesField.mdx +44 -0
- package/lib/cjs/components/NavBar/NavBar.mdx +42 -0
- package/lib/cjs/components/NumberField/NumberField.mdx +39 -0
- package/lib/cjs/components/OverlayPanel/OverlayPanel.mdx +39 -0
- package/lib/cjs/components/PasswordField/PasswordField.mdx +33 -0
- package/lib/cjs/components/PopoverContainer/PopoverContainer.d.ts +9 -0
- package/lib/cjs/components/PopoverContainer/PopoverContainer.js +7 -38
- package/lib/cjs/components/PopoverContainer/index.d.ts +2 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.mdx +53 -0
- package/lib/cjs/components/RadioGroupField/RadioGroupField.mdx +41 -0
- package/lib/cjs/components/RequirementsList/RequirementsList.mdx +17 -0
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +36 -0
- package/lib/cjs/components/ScrollBox/ScrollBox.mdx +17 -0
- package/lib/cjs/components/SearchField/SearchField.mdx +33 -0
- package/lib/cjs/components/SelectField/SelectField.mdx +46 -0
- package/lib/cjs/components/Separator/Separator.mdx +19 -0
- package/lib/cjs/components/Stepper/Stepper.mdx +41 -0
- package/lib/cjs/components/SwitchField/SwitchField.mdx +36 -0
- package/lib/cjs/components/Table/Table.mdx +30 -0
- package/lib/cjs/components/TableCell/TableCell.d.ts +12 -0
- package/lib/cjs/components/TableCell/TableCell.js +0 -5
- package/lib/cjs/components/TableCell/TableCell.test.d.ts +1 -0
- package/lib/cjs/components/TableCell/index.d.ts +1 -0
- package/lib/cjs/components/Tabs/Tabs.mdx +40 -0
- package/lib/cjs/components/Text/Text.d.ts +4 -0
- package/lib/cjs/components/Text/Text.js +3 -7
- package/lib/cjs/components/Text/Text.mdx +13 -0
- package/lib/cjs/components/Text/Text.stories.d.ts +6 -0
- package/lib/cjs/components/Text/Text.styles.d.ts +286 -0
- package/lib/cjs/components/Text/Text.test.d.ts +1 -0
- package/lib/cjs/components/Text/index.d.ts +1 -0
- package/lib/cjs/components/TextAreaField/TextAreaField.mdx +34 -0
- package/lib/cjs/components/TextField/TextField.mdx +34 -0
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.mdx +18 -0
- package/lib/cjs/components/TooltipTrigger/Tooltip.styles.js +2 -1
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +2 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.mdx +23 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.js +47 -1
- package/lib/cjs/docs/Props.stories.mdx +35 -0
- package/lib/cjs/docs/Welcome.stories.mdx +149 -0
- package/lib/cjs/docs/hooks/useDebounce.stories.mdx +59 -0
- package/lib/cjs/docs/hooks/useModalState.stories.mdx +83 -0
- package/lib/cjs/docs/hooks/useOverlayPanelState.stories.mdx +84 -0
- package/lib/cjs/docs/theme/AstroNanoTheme.stories.mdx +174 -0
- package/lib/cjs/docs/theme/AstroTheme.stories.mdx +20 -0
- package/lib/cjs/docs/theme/CustomThemes.stories.mdx +70 -0
- package/lib/cjs/docs/theme/StylingGuideline.stories.mdx +116 -0
- package/lib/cjs/docs/utils/messagesReducer.stories.mdx +64 -0
- package/lib/cjs/experimental/EditButton/EditButton.js +63 -0
- package/lib/cjs/experimental/EditButton/EditButton.mdx +9 -0
- package/lib/cjs/experimental/EditButton/EditButton.stories.js +91 -0
- package/lib/cjs/experimental/EditButton/EditButton.test.js +71 -0
- package/lib/cjs/experimental/EditButton/index.js +14 -0
- package/lib/cjs/experimental/ListView/ListView.mdx +47 -0
- package/lib/cjs/experimental/ListView/ListView.stories.js +742 -0
- package/lib/cjs/experimental/ListViewItem/ListViewItem.js +23 -5
- package/lib/cjs/experimental/ListViewItem/ListViewItem.mdx +36 -0
- package/lib/cjs/experimental/ListViewItem/ListViewItem.stories.js +31 -7
- package/lib/cjs/experimental/ListViewItem/ListViewItem.test.js +51 -7
- package/lib/cjs/experimental/ListViewItem/controls/ListViewItemEditButton.js +1 -4
- package/lib/cjs/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +4 -1
- package/lib/cjs/experimental/ListViewItem/controls/ListViewItemSwitchField.js +1 -0
- package/lib/cjs/experimental/ListViewItem/listViewItemAttributes.js +28 -13
- package/lib/cjs/experimental/PanelHeader/PanelHeader.js +88 -0
- package/lib/cjs/experimental/PanelHeader/PanelHeader.mdx +19 -0
- package/lib/cjs/experimental/PanelHeader/PanelHeader.stories.js +71 -0
- package/lib/cjs/experimental/PanelHeader/PanelHeader.styles.js +38 -0
- package/lib/cjs/experimental/PanelHeader/PanelHeader.test.js +46 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderCloseButton.js +34 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderCloseButton.stories.js +31 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderCloseButton.test.js +25 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderMenu.js +27 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderMenu.stories.js +36 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderMenu.test.js +58 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderSwitchField.js +27 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderSwitchField.stories.js +41 -0
- package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderSwitchField.test.js +25 -0
- package/lib/cjs/experimental/PanelHeader/index.js +14 -0
- package/lib/cjs/experimental/README.stories.mdx +7 -0
- package/lib/cjs/experimental/SaveBar/SaveBar.mdx +13 -0
- package/lib/cjs/experimental/recipes/ListAndPanel.stories.js +1 -1
- package/lib/cjs/hooks/usePropWarning/usePropWarning.js +1 -1
- package/lib/cjs/hooks/useStatusClasses/useStatusClasses.js +2 -2
- package/lib/cjs/hooks/useTShirtSize/useTShirtSize.js +1 -1
- package/lib/cjs/index.d.ts +173 -0
- package/lib/cjs/index.js +53 -1
- package/lib/cjs/recipes/{AttributesAndPingOneMapping.stories.js → AttributeMapping.stories.js} +392 -132
- package/lib/cjs/styles/colors.js +1 -1
- package/lib/cjs/styles/variants/README.md +98 -0
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/box.d.ts +10 -0
- package/lib/cjs/types/box.js +6 -0
- package/lib/cjs/types/icon.d.ts +34 -0
- package/lib/cjs/types/icon.js +6 -0
- package/lib/cjs/types/index.d.ts +7 -0
- package/lib/cjs/types/index.js +86 -0
- package/lib/cjs/types/loader.d.ts +14 -0
- package/lib/cjs/types/loader.js +6 -0
- package/lib/cjs/types/mdx.d.js +1 -0
- package/lib/cjs/types/popoverContainer.d.ts +23 -0
- package/lib/cjs/types/popoverContainer.js +6 -0
- package/lib/cjs/types/shared/dom.d.ts +9 -0
- package/lib/cjs/types/shared/dom.js +6 -0
- package/lib/cjs/types/shared/index.d.ts +3 -0
- package/lib/cjs/types/shared/index.js +42 -0
- package/lib/cjs/types/shared/style.d.ts +11 -0
- package/lib/cjs/types/shared/style.js +6 -0
- package/lib/cjs/types/shared/test.d.ts +3 -0
- package/lib/cjs/types/shared/test.js +6 -0
- package/lib/cjs/types/shared/utils.d.ts +1 -0
- package/lib/cjs/types/shared/utils.js +6 -0
- package/lib/cjs/types/tableCell.d.ts +5 -0
- package/lib/cjs/types/tableCell.js +6 -0
- package/lib/cjs/types/text.d.ts +3 -0
- package/lib/cjs/types/text.js +6 -0
- package/lib/cjs/utils/designUtils/figmaLinks.js +2 -1
- package/lib/components/AccordionGridGroup/AccordionGridGroup.mdx +40 -0
- package/lib/components/AccordionGroup/Accordion.styles.js +1 -2
- package/lib/components/AccordionGroup/AccordionGroup.mdx +41 -0
- package/lib/components/ArrayField/ArrayField.mdx +34 -0
- package/lib/components/AstroWrapper/AstroWrapper.mdx +16 -0
- package/lib/components/Avatar/Avatar.mdx +14 -0
- package/lib/components/Badge/Badge.mdx +24 -0
- package/lib/components/Box/Box.js +4 -19
- package/lib/components/Box/Box.mdx +23 -0
- package/lib/components/Box/Box.test.js +2 -6
- package/lib/components/Bracket/Bracket.mdx +17 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.mdx +40 -0
- package/lib/components/Button/Button.mdx +40 -0
- package/lib/components/Button/Button.stories.js +30 -5
- package/lib/components/Button/Buttons.styles.js +25 -7
- package/lib/components/Calendar/Calendar.mdx +39 -0
- package/lib/components/Callout/Callout.mdx +28 -0
- package/lib/components/Card/Card.mdx +32 -0
- package/lib/components/CheckboxField/CheckboxField.mdx +42 -0
- package/lib/components/CodeView/CodeView.mdx +23 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.mdx +29 -0
- package/lib/components/ColorField/ColorField.mdx +38 -0
- package/lib/components/ComboBoxField/ComboBoxField.mdx +66 -0
- package/lib/components/CopyText/CopyText.mdx +23 -0
- package/lib/components/DataTable/DataTable.mdx +54 -0
- package/lib/components/DatePicker/DatePicker.mdx +49 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -1
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +36 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +29 -45
- package/lib/components/FileInputField/FileInputField.mdx +33 -0
- package/lib/components/HelpHint/HelpHint.js +148 -30
- package/lib/components/HelpHint/HelpHint.mdx +32 -0
- package/lib/components/HelpHint/HelpHint.stories.js +37 -6
- package/lib/components/HelpHint/HelpHint.styles.js +9 -1
- package/lib/components/HelpHint/HelpHint.test.js +202 -30
- package/lib/components/Icon/Icon.js +2 -25
- package/lib/components/Icon/Icon.mdx +49 -0
- package/lib/components/IconBadge/IconBadge.mdx +14 -0
- package/lib/components/IconButton/IconButton.mdx +33 -0
- package/lib/components/IconButtonToggle/IconButtonToggle.mdx +31 -0
- package/lib/components/Image/Image.mdx +28 -0
- package/lib/components/ImageUploadField/ImageUploadField.mdx +38 -0
- package/lib/components/Link/Link.mdx +27 -0
- package/lib/components/Link/Link.styles.js +10 -0
- package/lib/components/LinkSelectField/LinkSelectField.mdx +47 -0
- package/lib/components/ListItem/ListItem.mdx +21 -0
- package/lib/components/ListView/ListView.mdx +44 -0
- package/lib/components/ListView/ListView.stories.js +94 -48
- package/lib/components/Loader/Loader.js +0 -14
- package/lib/components/Loader/Loader.mdx +29 -0
- package/lib/components/Menu/Menu.mdx +43 -0
- package/lib/components/Messages/Messages.mdx +35 -0
- package/lib/components/Modal/Modal.mdx +59 -0
- package/lib/components/MultivaluesField/MultivaluesField.mdx +44 -0
- package/lib/components/NavBar/NavBar.mdx +42 -0
- package/lib/components/NumberField/NumberField.mdx +39 -0
- package/lib/components/OverlayPanel/OverlayPanel.mdx +39 -0
- package/lib/components/PasswordField/PasswordField.mdx +33 -0
- package/lib/components/PopoverContainer/PopoverContainer.js +7 -38
- package/lib/components/PopoverMenu/PopoverMenu.mdx +53 -0
- package/lib/components/RadioGroupField/RadioGroupField.mdx +41 -0
- package/lib/components/RequirementsList/RequirementsList.mdx +17 -0
- package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +36 -0
- package/lib/components/ScrollBox/ScrollBox.mdx +17 -0
- package/lib/components/SearchField/SearchField.mdx +33 -0
- package/lib/components/SelectField/SelectField.mdx +46 -0
- package/lib/components/Separator/Separator.mdx +19 -0
- package/lib/components/Stepper/Stepper.mdx +41 -0
- package/lib/components/SwitchField/SwitchField.mdx +36 -0
- package/lib/components/Table/Table.mdx +30 -0
- package/lib/components/TableCell/TableCell.js +0 -5
- package/lib/components/Tabs/Tabs.mdx +40 -0
- package/lib/components/Text/Text.js +3 -7
- package/lib/components/Text/Text.mdx +13 -0
- package/lib/components/TextAreaField/TextAreaField.mdx +34 -0
- package/lib/components/TextField/TextField.mdx +34 -0
- package/lib/components/TimeZonePicker/TimeZonePicker.mdx +18 -0
- package/lib/components/TooltipTrigger/Tooltip.styles.js +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.js +2 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.mdx +23 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.test.js +48 -2
- package/lib/docs/Props.stories.mdx +35 -0
- package/lib/docs/Welcome.stories.mdx +149 -0
- package/lib/docs/hooks/useDebounce.stories.mdx +59 -0
- package/lib/docs/hooks/useModalState.stories.mdx +83 -0
- package/lib/docs/hooks/useOverlayPanelState.stories.mdx +84 -0
- package/lib/docs/theme/AstroNanoTheme.stories.mdx +174 -0
- package/lib/docs/theme/AstroTheme.stories.mdx +20 -0
- package/lib/docs/theme/CustomThemes.stories.mdx +70 -0
- package/lib/docs/theme/StylingGuideline.stories.mdx +116 -0
- package/lib/docs/utils/messagesReducer.stories.mdx +64 -0
- package/lib/experimental/EditButton/EditButton.js +50 -0
- package/lib/experimental/EditButton/EditButton.mdx +9 -0
- package/lib/experimental/EditButton/EditButton.stories.js +75 -0
- package/lib/experimental/EditButton/EditButton.test.js +68 -0
- package/lib/experimental/EditButton/index.js +1 -0
- package/lib/experimental/ListView/ListView.mdx +47 -0
- package/lib/experimental/ListView/ListView.stories.js +729 -0
- package/lib/experimental/ListViewItem/ListViewItem.js +24 -6
- package/lib/experimental/ListViewItem/ListViewItem.mdx +36 -0
- package/lib/experimental/ListViewItem/ListViewItem.stories.js +28 -5
- package/lib/experimental/ListViewItem/ListViewItem.test.js +45 -1
- package/lib/experimental/ListViewItem/controls/ListViewItemEditButton.js +1 -4
- package/lib/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +4 -1
- package/lib/experimental/ListViewItem/controls/ListViewItemSwitchField.js +1 -0
- package/lib/experimental/ListViewItem/listViewItemAttributes.js +25 -12
- package/lib/experimental/PanelHeader/PanelHeader.js +75 -0
- package/lib/experimental/PanelHeader/PanelHeader.mdx +19 -0
- package/lib/experimental/PanelHeader/PanelHeader.stories.js +59 -0
- package/lib/experimental/PanelHeader/PanelHeader.styles.js +30 -0
- package/lib/experimental/PanelHeader/PanelHeader.test.js +43 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderCloseButton.js +25 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderCloseButton.stories.js +21 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderCloseButton.test.js +22 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderMenu.js +18 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderMenu.stories.js +26 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderMenu.test.js +55 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderSwitchField.js +18 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderSwitchField.stories.js +32 -0
- package/lib/experimental/PanelHeader/controls/PanelHeaderSwitchField.test.js +22 -0
- package/lib/experimental/PanelHeader/index.js +1 -0
- package/lib/experimental/README.stories.mdx +7 -0
- package/lib/experimental/SaveBar/SaveBar.mdx +13 -0
- package/lib/experimental/recipes/ListAndPanel.stories.js +1 -1
- package/lib/hooks/usePropWarning/usePropWarning.js +1 -1
- package/lib/hooks/useStatusClasses/useStatusClasses.js +2 -2
- package/lib/hooks/useTShirtSize/useTShirtSize.js +1 -1
- package/lib/index.js +6 -0
- package/lib/recipes/AttributeMapping.stories.js +540 -0
- package/lib/styles/colors.js +1 -1
- package/lib/styles/variants/README.md +98 -0
- package/lib/styles/variants/variants.js +2 -0
- package/lib/types/box.js +1 -0
- package/lib/types/icon.js +1 -0
- package/lib/types/index.js +7 -0
- package/lib/types/loader.js +1 -0
- package/lib/types/mdx.d.js +0 -0
- package/lib/types/popoverContainer.js +1 -0
- package/lib/types/shared/dom.js +1 -0
- package/lib/types/shared/index.js +3 -0
- package/lib/types/shared/style.js +1 -0
- package/lib/types/shared/test.js +1 -0
- package/lib/types/shared/utils.js +1 -0
- package/lib/types/tableCell.js +1 -0
- package/lib/types/text.js +1 -0
- package/lib/utils/designUtils/figmaLinks.js +2 -1
- package/package.json +20 -6
- package/CHANGELOG.md +0 -2565
- package/NOTICE +0 -2481
- package/NOTICE.html +0 -9174
- package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +0 -254
- package/lib/recipes/AttributeMappingReadOnlyField.stories.js +0 -243
- package/lib/recipes/AttributesAndPingOneMapping.stories.js +0 -282
@@ -25,7 +25,9 @@ var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime-
|
|
25
25
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
27
27
|
var _reactStately = require("react-stately");
|
28
|
+
var _CreateIcon = _interopRequireDefault(require("@pingux/mdi-react/CreateIcon"));
|
28
29
|
var _FormSelectIcon = _interopRequireDefault(require("@pingux/mdi-react/FormSelectIcon"));
|
30
|
+
var _MoreVertIcon = _interopRequireDefault(require("@pingux/mdi-react/MoreVertIcon"));
|
29
31
|
var _addonActions = require("@storybook/addon-actions");
|
30
32
|
var _isChromatic = _interopRequireDefault(require("chromatic/isChromatic"));
|
31
33
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
@@ -35,7 +37,7 @@ var _ListView = _interopRequireDefault(require("./ListView.mdx"));
|
|
35
37
|
var _react2 = require("@emotion/react");
|
36
38
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof _Symbol ? _Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return _Object$defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = _Object$create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = _Object$getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype); function defineIteratorMethods(prototype) { var _context4; _forEachInstanceProperty(_context4 = ["next", "throw", "return"]).call(_context4, function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = _Promise2); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return _reverseInstanceProperty(keys).call(keys), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { var _context5; if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context5 = this.tryEntries).call(_context5, resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty2(name).call(name, 1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
37
39
|
var _default = {
|
38
|
-
title: '
|
40
|
+
title: 'Components/ListView',
|
39
41
|
component: _index.ListView,
|
40
42
|
parameters: {
|
41
43
|
docs: {
|
@@ -54,20 +56,19 @@ var _default = {
|
|
54
56
|
options: _loadingStates["default"]
|
55
57
|
}
|
56
58
|
},
|
57
|
-
disabledKeys: {
|
59
|
+
disabledKeys: {
|
60
|
+
defaultValue: ['Snake']
|
61
|
+
},
|
58
62
|
items: {
|
59
63
|
control: {
|
60
64
|
type: 'none'
|
61
65
|
}
|
62
66
|
},
|
63
67
|
onSelectionChange: {
|
64
|
-
control: 'none'
|
68
|
+
control: 'none',
|
69
|
+
// eslint-disable-next-line no-console
|
70
|
+
defaultValue: console.log
|
65
71
|
}
|
66
|
-
},
|
67
|
-
args: {
|
68
|
-
disabledKeys: ['Snake'],
|
69
|
-
// eslint-disable-next-line no-console
|
70
|
-
onSelectionChange: console.log
|
71
72
|
}
|
72
73
|
};
|
73
74
|
exports["default"] = _default;
|
@@ -542,34 +543,83 @@ var actions = {
|
|
542
543
|
onFocus: (0, _addonActions.action)('onFocus'),
|
543
544
|
onLoadMore: (0, _addonActions.action)('onLoadMore')
|
544
545
|
};
|
545
|
-
var
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
546
|
+
var ListElement = function ListElement(_ref) {
|
547
|
+
var item = _ref.item;
|
548
|
+
return (0, _react2.jsx)(_index.Box, {
|
549
|
+
isRow: true
|
550
|
+
}, (0, _react2.jsx)(_index.Box, {
|
551
|
+
isRow: true,
|
552
|
+
mr: "auto",
|
553
|
+
alignSelf: "center"
|
554
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
555
|
+
icon: _FormSelectIcon["default"],
|
556
|
+
mr: "sm",
|
557
|
+
color: "accent.40",
|
558
|
+
size: "md"
|
559
|
+
}), (0, _react2.jsx)(_index.Text, {
|
560
|
+
variant: "itemTitle",
|
561
|
+
alignSelf: "center"
|
562
|
+
}, item.name)), (0, _react2.jsx)(_index.Box, {
|
563
|
+
isRow: true,
|
564
|
+
alignSelf: "center",
|
565
|
+
gap: "sm"
|
566
|
+
}, (0, _react2.jsx)(_index.IconButton, {
|
567
|
+
"aria-label": "create-icon"
|
568
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
569
|
+
icon: _CreateIcon["default"],
|
570
|
+
size: "sm"
|
571
|
+
})), (0, _react2.jsx)(_index.IconButton, {
|
572
|
+
"aria-label": "actions-icon"
|
573
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
574
|
+
icon: _MoreVertIcon["default"],
|
575
|
+
size: "sm"
|
576
|
+
}))));
|
553
577
|
};
|
554
|
-
var Default = function Default(
|
555
|
-
var args = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(
|
578
|
+
var Default = function Default(_ref2) {
|
579
|
+
var args = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref2), _ref2));
|
556
580
|
return (0, _react2.jsx)(_index.ListView, (0, _extends2["default"])({}, props, args, {
|
557
581
|
items: items
|
558
582
|
}), function (item) {
|
559
583
|
return (0, _react2.jsx)(_reactStately.Item, {
|
560
|
-
key: item.name
|
561
|
-
|
562
|
-
data:
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
584
|
+
key: item.name,
|
585
|
+
textValue: item.name,
|
586
|
+
"data-id": item.key
|
587
|
+
}, (0, _react2.jsx)(_index.Box, {
|
588
|
+
isRow: true
|
589
|
+
}, (0, _react2.jsx)(_index.Box, {
|
590
|
+
isRow: true,
|
591
|
+
mr: "auto",
|
592
|
+
alignSelf: "center"
|
593
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
594
|
+
icon: _FormSelectIcon["default"],
|
595
|
+
mr: "sm",
|
596
|
+
color: "accent.40",
|
597
|
+
size: "md"
|
598
|
+
}), (0, _react2.jsx)(_index.Text, {
|
599
|
+
variant: "itemTitle",
|
600
|
+
alignSelf: "center"
|
601
|
+
}, item.name)), (0, _react2.jsx)(_index.Box, {
|
602
|
+
isRow: true,
|
603
|
+
alignSelf: "center",
|
604
|
+
gap: "sm"
|
605
|
+
}, (0, _react2.jsx)(_index.IconButton, {
|
606
|
+
"aria-label": "create-icon"
|
607
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
608
|
+
icon: _CreateIcon["default"],
|
609
|
+
size: "sm"
|
610
|
+
})), (0, _react2.jsx)(_index.IconButton, {
|
611
|
+
"aria-label": "actions-icon",
|
612
|
+
size: "sm"
|
613
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
614
|
+
icon: _MoreVertIcon["default"],
|
615
|
+
size: "sm"
|
616
|
+
})))));
|
567
617
|
});
|
568
618
|
};
|
569
619
|
exports.Default = Default;
|
570
620
|
var InfiniteLoadingList = function InfiniteLoadingList(args) {
|
571
621
|
var getMockData = /*#__PURE__*/function () {
|
572
|
-
var
|
622
|
+
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(signal, cursor) {
|
573
623
|
var pageNumber;
|
574
624
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
575
625
|
while (1) {
|
@@ -601,11 +651,11 @@ var InfiniteLoadingList = function InfiniteLoadingList(args) {
|
|
601
651
|
}, _callee);
|
602
652
|
}));
|
603
653
|
return function getMockData(_x, _x2) {
|
604
|
-
return
|
654
|
+
return _ref3.apply(this, arguments);
|
605
655
|
};
|
606
656
|
}();
|
607
657
|
var fetchApiData = /*#__PURE__*/function () {
|
608
|
-
var
|
658
|
+
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(signal, cursor, filterText) {
|
609
659
|
var res, json;
|
610
660
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
611
661
|
while (1) {
|
@@ -659,18 +709,18 @@ var InfiniteLoadingList = function InfiniteLoadingList(args) {
|
|
659
709
|
}, _callee2, null, [[2, 14]]);
|
660
710
|
}));
|
661
711
|
return function fetchApiData(_x3, _x4, _x5) {
|
662
|
-
return
|
712
|
+
return _ref4.apply(this, arguments);
|
663
713
|
};
|
664
714
|
}();
|
665
715
|
var list = (0, _reactStately.useAsyncList)({
|
666
|
-
load: function load(
|
716
|
+
load: function load(_ref5) {
|
667
717
|
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
668
718
|
var signal, cursor, filterText;
|
669
719
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
670
720
|
while (1) {
|
671
721
|
switch (_context3.prev = _context3.next) {
|
672
722
|
case 0:
|
673
|
-
signal =
|
723
|
+
signal = _ref5.signal, cursor = _ref5.cursor, filterText = _ref5.filterText;
|
674
724
|
if (cursor) {
|
675
725
|
// eslint-disable-next-line
|
676
726
|
cursor = cursor.replace(/^http:\/\//i, "https://");
|
@@ -703,13 +753,11 @@ var InfiniteLoadingList = function InfiniteLoadingList(args) {
|
|
703
753
|
onLoadMore: list.loadMore
|
704
754
|
}), function (item) {
|
705
755
|
return (0, _react2.jsx)(_reactStately.Item, {
|
706
|
-
key: item.name
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
}
|
712
|
-
}, (0, _react2.jsx)(Controls, null)));
|
756
|
+
key: item.name,
|
757
|
+
textValue: item.name
|
758
|
+
}, (0, _react2.jsx)(ListElement, {
|
759
|
+
item: item
|
760
|
+
}));
|
713
761
|
}));
|
714
762
|
};
|
715
763
|
exports.InfiniteLoadingList = InfiniteLoadingList;
|
@@ -723,20 +771,18 @@ InfiniteLoadingList.parameters = {
|
|
723
771
|
}
|
724
772
|
}
|
725
773
|
};
|
726
|
-
var MultipleSelection = function MultipleSelection(
|
727
|
-
var args = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(
|
774
|
+
var MultipleSelection = function MultipleSelection(_ref6) {
|
775
|
+
var args = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref6), _ref6));
|
728
776
|
return (0, _react2.jsx)(_index.ListView, (0, _extends2["default"])({}, props, args, {
|
729
777
|
items: items,
|
730
778
|
selectionMode: "multiple"
|
731
779
|
}), function (item) {
|
732
780
|
return (0, _react2.jsx)(_reactStately.Item, {
|
733
|
-
key: item.name
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
}
|
739
|
-
}, (0, _react2.jsx)(Controls, null)));
|
781
|
+
key: item.name,
|
782
|
+
textValue: item.name
|
783
|
+
}, (0, _react2.jsx)(ListElement, {
|
784
|
+
item: item
|
785
|
+
}));
|
740
786
|
});
|
741
787
|
};
|
742
788
|
exports.MultipleSelection = MultipleSelection;
|
@@ -12,7 +12,6 @@ exports["default"] = void 0;
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
13
13
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
15
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
16
15
|
var _Box = _interopRequireDefault(require("../Box"));
|
17
16
|
var _react2 = require("@emotion/react");
|
18
17
|
var _excluded = ["size"];
|
@@ -37,18 +36,5 @@ var Loader = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
37
36
|
variant: "loader.dotRight"
|
38
37
|
}));
|
39
38
|
});
|
40
|
-
Loader.propTypes = {
|
41
|
-
/**
|
42
|
-
* Color key from theme or string value.
|
43
|
-
* Default color inherits the font color.
|
44
|
-
*/
|
45
|
-
color: _propTypes["default"].string,
|
46
|
-
/**
|
47
|
-
* Size as number or pixel / em / rem value.
|
48
|
-
* Sizes can either be a string such as xs, sm, md, etc or numeric size with unit such as 15px.
|
49
|
-
* Default size inherits the font size.
|
50
|
-
*/
|
51
|
-
size: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string])
|
52
|
-
};
|
53
39
|
var _default = Loader;
|
54
40
|
exports["default"] = _default;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
2
|
+
|
3
|
+
<Meta title="Components/Loader/Loader" />
|
4
|
+
|
5
|
+
# Loader
|
6
|
+
|
7
|
+
The Loader component provides users information about the loading or computing processes that are occurring.
|
8
|
+
|
9
|
+
This component should be:
|
10
|
+
- Used to show an indeterminate state.
|
11
|
+
- Restricted to a single use per view to avoid unnecessary disruption.
|
12
|
+
|
13
|
+
It should not be used:
|
14
|
+
- When the wait time for a process is known.
|
15
|
+
- When trying to communicate progression in steps.
|
16
|
+
|
17
|
+
The Loader component is based on the [useProgressBar](https://react-spectrum.adobe.com/react-aria/useProgressBar.html) React Aria component.
|
18
|
+
|
19
|
+
### Required Components
|
20
|
+
|
21
|
+
This component can be used independently and does not require additional components.
|
22
|
+
|
23
|
+
### Accessibility
|
24
|
+
|
25
|
+
#### Screen readers
|
26
|
+
|
27
|
+
This component uses the following attributes to assist screen readers:
|
28
|
+
- The **`aria-label`** attribute is used to provide an accessible name.
|
29
|
+
- The **`aria-live`** attribute is used to announce content changes in a live region.
|
@@ -0,0 +1,53 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
dotLeft: {
|
3
|
+
animation: string;
|
4
|
+
borderRadius: string;
|
5
|
+
bg: string;
|
6
|
+
height: string;
|
7
|
+
width: string;
|
8
|
+
margin: string;
|
9
|
+
display: string;
|
10
|
+
};
|
11
|
+
dotCenter: {
|
12
|
+
animation: string;
|
13
|
+
borderRadius: string;
|
14
|
+
bg: string;
|
15
|
+
height: string;
|
16
|
+
width: string;
|
17
|
+
margin: string;
|
18
|
+
display: string;
|
19
|
+
};
|
20
|
+
dotRight: {
|
21
|
+
animation: string;
|
22
|
+
borderRadius: string;
|
23
|
+
bg: string;
|
24
|
+
height: string;
|
25
|
+
width: string;
|
26
|
+
margin: string;
|
27
|
+
display: string;
|
28
|
+
};
|
29
|
+
container: {
|
30
|
+
color: string;
|
31
|
+
fontSize: string;
|
32
|
+
};
|
33
|
+
withinInput: {
|
34
|
+
color: string;
|
35
|
+
fontSize: string;
|
36
|
+
alignItems: string;
|
37
|
+
marginRight: string;
|
38
|
+
};
|
39
|
+
withinListbox: {
|
40
|
+
color: string;
|
41
|
+
fontSize: string;
|
42
|
+
padding: string;
|
43
|
+
alignItems: string;
|
44
|
+
justifyContent: string;
|
45
|
+
};
|
46
|
+
withinListView: {
|
47
|
+
color: string;
|
48
|
+
padding: string;
|
49
|
+
alignItems: string;
|
50
|
+
justifyContent: string;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './Loader';
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
2
|
+
|
3
|
+
<Meta title="Components/Menu/Menu" />
|
4
|
+
|
5
|
+
# Menu
|
6
|
+
|
7
|
+
The Menu component is intended to be used as a wrapper for MenuItems. It is based on the [useMenu](https://react-spectrum.adobe.com/react-aria/useMenu.html)
|
8
|
+
React Aria component, and is often used in a [PopoverMenu](./?path=/story/components-popovermenu--default).
|
9
|
+
|
10
|
+
Menus should:
|
11
|
+
- Only contain the most relevant categories for a quick scan.
|
12
|
+
- Be used to view actions and not content.
|
13
|
+
|
14
|
+
Menus shouldn’t:
|
15
|
+
- Display more than 5 items to easily interpret the scope of actions.
|
16
|
+
- Include ellipses (…) in menu item names. An ellipsis indicates that the user action prompt opens a new window.
|
17
|
+
|
18
|
+
### Required Components
|
19
|
+
|
20
|
+
This component requires the Item component, which is exported within Astro, but originates from [react-stately/collections](https://react-spectrum.adobe.com/react-stately/collections.html).
|
21
|
+
|
22
|
+
### Accessibility
|
23
|
+
|
24
|
+
This component should adhere to the [WAI-ARIA Menu](https://www.w3.org/WAI/tutorials/menus/) accessibility guidelines.
|
25
|
+
|
26
|
+
#### Keyboard Navigation
|
27
|
+
|
28
|
+
These keys provide additional functionality to the component.
|
29
|
+
|
30
|
+
| Key | Functions |
|
31
|
+
| ---- | ---- |
|
32
|
+
| Space or Enter | Selects the menu item. |
|
33
|
+
| Tab | Focuses the menu item and follows the page tab sequence. |
|
34
|
+
| Shift + Tab | Moves focus to the previous focusable component. |
|
35
|
+
| Home(Fn + Right Arrow Key) Or Control/Command + Home| Shifts the focus to the first row. |
|
36
|
+
| End(Fn + Left Arrow Key) Or Control/Command + End | Shifts the focus to the last visible row. |
|
37
|
+
|
38
|
+
#### Screen Readers
|
39
|
+
|
40
|
+
This component uses the following attributes to assist screen readers:
|
41
|
+
- The **`aria-label`** attribute is used to provide an accessible name.
|
42
|
+
- Each menu option has the default **`aria-disabled`** value as “False.”
|
43
|
+
- The **`aria-orientation`** attribute indicates whether the menu is horizontally or vertically oriented, or undefined.
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
2
|
+
|
3
|
+
<Meta title="Components/Messages/Messages" />
|
4
|
+
|
5
|
+
# Messages
|
6
|
+
|
7
|
+
Use this component to display warning or alert messages, which often highlight an imminent problem or confirm a risky action.
|
8
|
+
|
9
|
+
These messages should:
|
10
|
+
- Capture the user’s attention at the right time.
|
11
|
+
- Clearly explain the reason for the warning or alert and the actions the user needs to take.
|
12
|
+
- Explain what will happen if they don’t act, using the appropriate sense of urgency.
|
13
|
+
- Be short. Limit the number of alerts to one per component.
|
14
|
+
|
15
|
+
See our [Warning and alert messages writing guidelines](https://pingidentity.atlassian.net/wiki/spaces/CCC/pages/21137295/Warning+and+alert+messages) for additional information.
|
16
|
+
|
17
|
+
### Required Components
|
18
|
+
|
19
|
+
This component requires the Item component, which is exported within Astro, but originates from [react-stately/collections](https://react-spectrum.adobe.com/react-stately/collections.html).
|
20
|
+
|
21
|
+
### Accessibility
|
22
|
+
|
23
|
+
#### Keyboard Navigation
|
24
|
+
|
25
|
+
These keys provide additional functionality to the component.
|
26
|
+
|
27
|
+
| Key | Functions |
|
28
|
+
| ---- | ---- |
|
29
|
+
| Tab | Focuses the IconButton within the message and follows the page tab sequence. |
|
30
|
+
| Space or Enter | Selects the button when it is focused. |
|
31
|
+
| Shift + Tab | Moves focus to the previous focusable component. |
|
32
|
+
|
33
|
+
#### Screen Readers
|
34
|
+
|
35
|
+
The **`aria-live`** attribute is used to announce content changes in a live region.
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
2
|
+
|
3
|
+
<Meta title="Components/Modal/Modal" />
|
4
|
+
|
5
|
+
# Modal
|
6
|
+
|
7
|
+
Modals (also known as modal windows, overlays, and dialogs) are large UI elements that sit on top of an application's main window.
|
8
|
+
To return to the application's main interface, users must interact with the modal.
|
9
|
+
|
10
|
+
This component must be wrapped in an OverlayProvider and the first child component should be a trigger, such as a button.
|
11
|
+
|
12
|
+
If the modal is used to display an error message, it displays after users perform an action and require a response.
|
13
|
+
These messages should be short, meaningful, free of technical jargon, and follow status color guidelines.
|
14
|
+
They can also be used to educate users, but don’t try to explain complicated troubleshooting processes in error messages.
|
15
|
+
|
16
|
+
Error messages should clearly explain:
|
17
|
+
- What happened
|
18
|
+
- Why it happened, if that’s relevant
|
19
|
+
- The steps users should take to resolve the issue
|
20
|
+
|
21
|
+
See our [Error message writing guidelines](https://pingidentity.atlassian.net/wiki/spaces/CCC/pages/21137273/Error+messages) for additional information.
|
22
|
+
|
23
|
+
Modals should:
|
24
|
+
- Be used for important warnings and information requests as a way to prevent or correct critical errors.
|
25
|
+
- Be used to break down complex workflow to not overwhelm the user.
|
26
|
+
- Have all the critical information inside it to help users make decisions.
|
27
|
+
|
28
|
+
Modals should not:
|
29
|
+
- Be nested inside or replaced by another modal.
|
30
|
+
- Be overused as it disrupts the user’s workflow and requires a response.
|
31
|
+
- Have content that requires scrolling. If the content length is exceedingly large or requires complex forms, use the [OverlayPanel](./?path=/docs/components-overlaypanel--default) component.
|
32
|
+
- Be used for brief warnings and alerts, use the [Messages](./?path=/docs/components-messages--default) component instead.
|
33
|
+
|
34
|
+
### Required Components
|
35
|
+
|
36
|
+
This component requires the OverlayProvider and [Button](./?path=/docs/components-button--default) components.
|
37
|
+
|
38
|
+
### Accessibility
|
39
|
+
|
40
|
+
This component should adhere to the [WAI-ARIA Modal](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/dialog/) accessibility guidelines.
|
41
|
+
|
42
|
+
#### Keyboard Navigation
|
43
|
+
|
44
|
+
These keys provide additional functionality to the component.
|
45
|
+
|
46
|
+
| Key | Functions |
|
47
|
+
| ---- | ---- |
|
48
|
+
| Tab | The trigger component and the content in the modal are focusable using the Tab key. |
|
49
|
+
| | When a modal opens, focus moves to an element contained in the modal, which is usually the first focusable element. If the first focusable element does not make sense, tabindex=”-1” should be added to a static element at the top of the modal, which could be the panel title. |
|
50
|
+
| Space or Enter | Opens the modal when the trigger is focused. Once opened, the focus is locked inside the modal. |
|
51
|
+
| Shift + Tab | Moves focus to the previous focusable component. |
|
52
|
+
| Esc | Pressing the escape key closes the modal and adds focus to the previously focused component. |
|
53
|
+
|
54
|
+
#### Screen Readers
|
55
|
+
|
56
|
+
This component uses the following attributes to assist screen readers:
|
57
|
+
- The button uses the **`aria-label`** attribute to provide an accessible name.
|
58
|
+
- The **`aria-labelledby`** attribute is supplied with label ID.
|
59
|
+
- The **`aria-modal`** attribute allows the assistive technologies to inform users that the ability to interact with or access other content on the page requires the modal dialog to be closed.
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
2
|
+
|
3
|
+
<Meta title="Components/MultivaluesField/MultivaluesField" />
|
4
|
+
|
5
|
+
# MultivaluesField
|
6
|
+
|
7
|
+
The MultivalueField component allows users to select more than one option from a list.
|
8
|
+
Using [useListState](https://react-spectrum.adobe.com/react-stately/useListState.html) from React Stately, it combines an input with a Listbox for a filterable dropdown list.
|
9
|
+
|
10
|
+
This component should:
|
11
|
+
- Be used when choosing multiple items from a list of options or filtering through items by typing.
|
12
|
+
- Allow you to add and remove custom items from the list.
|
13
|
+
|
14
|
+
It should not:
|
15
|
+
- Have fewer than 4 options. If it does, use a [CheckboxField](./?path=/docs/form-checkboxfield--default) instead.
|
16
|
+
- Be used when only 1 item can be selected.
|
17
|
+
- Have a long async loaded list, consider using useAsyncList like [ComboBoxField](./?path=/docs/form-comboboxfield--default) instead.
|
18
|
+
|
19
|
+
### Required components
|
20
|
+
|
21
|
+
This component requires the OverlayProvider and Item originating from [react-stately/collections](https://react-spectrum.adobe.com/react-stately/collections.html).
|
22
|
+
|
23
|
+
### Accessibility
|
24
|
+
|
25
|
+
#### Keyboard Navigation
|
26
|
+
|
27
|
+
These keys provide additional functionality to the component.
|
28
|
+
|
29
|
+
| Keys | Functions |
|
30
|
+
| ---- | --------- |
|
31
|
+
| Tab | Focuses the field and follows the page tab sequence. |
|
32
|
+
| Space or Enter | Opens or closes the menu when the input is focused. |
|
33
|
+
| Arrow keys | Moves through the list popover. |
|
34
|
+
| Shift + Tab | Moves focus to the previous focusable component.|
|
35
|
+
| | To allow multiple selections, the user making a selection does not close the menu. However, clicking outside of the listbox or pressing Tab with an open popover does. |
|
36
|
+
|
37
|
+
#### Screen readers
|
38
|
+
|
39
|
+
This component uses the following attributes to assist screen readers:
|
40
|
+
|
41
|
+
- The input uses the **`aria-expanded`** attribute to show the expansion and collapse of the popover, the **`aria-invalid`** attribute set to “True” when an incorrect value or status error occurs, and the **`aria-labelledby`** attribute is used to reference the label.
|
42
|
+
- The list box **`aria-multiselectable`** attribute is set to “True” by default.
|
43
|
+
- Each option uses the **`aria-selected`** attribute to indicate the state of selection, **`aria-posinset`** to give the option position in the current set of list items, and the **`aria-setsize`** attribute to define the current set of options.
|
44
|
+
- The **`aria-disabled`** attribute is set to “False” for each option by default.
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
2
|
+
|
3
|
+
<Meta title="Components/Navbar/Navbar" />
|
4
|
+
|
5
|
+
# Navbar
|
6
|
+
|
7
|
+
The NavBar component is primarily to navigate within apps.
|
8
|
+
This component is built to have the NavBarSection component passed into it. NavBarSection is an iterative component with an array of objects passed into it.
|
9
|
+
|
10
|
+
The NavBar should:
|
11
|
+
- Be visually separate from the content.
|
12
|
+
- Have descriptive titles describing the destination, action item or category.
|
13
|
+
- Group navigation items into sections based on related categories.
|
14
|
+
- Order content logically for a natural progression.
|
15
|
+
|
16
|
+
### Required Components
|
17
|
+
|
18
|
+
This component requires these components:
|
19
|
+
- NavBarItem
|
20
|
+
- NavBarItemLink
|
21
|
+
- NavBarItemButton
|
22
|
+
- NavBarSection
|
23
|
+
|
24
|
+
### Accessibility
|
25
|
+
|
26
|
+
#### Keyboard Navigation
|
27
|
+
|
28
|
+
These keys provide additional functionality to the component.
|
29
|
+
|
30
|
+
| Key | Functions |
|
31
|
+
| ---- | ---- |
|
32
|
+
| Tab | All of the content in the NavBar is focusable. |
|
33
|
+
| Shift + Tab | Moves focus to the previous focusable component. |
|
34
|
+
| Space or Enter | Toggles the component when the accordion is focused. |
|
35
|
+
| Arrow keys | All components within the NavBar are accessible using arrow keys. |
|
36
|
+
| Esc | Pressing the escape key when the accordion is open and focused collapses the component. |
|
37
|
+
|
38
|
+
#### Screen readers
|
39
|
+
|
40
|
+
This component uses the following attributes to assist screen readers:
|
41
|
+
- Each Link component uses the **`aria-label`** attribute to provide an accessible name.
|
42
|
+
- The Icon uses the **`aria-hidden`** attribute to hide its content from assistive technology.
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { Meta } from '@storybook/addon-docs';
|
2
|
+
|
3
|
+
<Meta title="Components/NumberField/NumberField" />
|
4
|
+
|
5
|
+
# NumberField
|
6
|
+
|
7
|
+
This component is a variation of an input field that only accepts numeric values, and can be incremented and decremented using stepper buttons.
|
8
|
+
It uses the [useNumberField](https://react-spectrum.adobe.com/react-aria/useNumberField.html) component from React Aria and the [useNumberFieldState](https://react-spectrum.adobe.com/react-stately/useNumberFieldState.html) component from React Stately.
|
9
|
+
|
10
|
+
The NumberFields should:
|
11
|
+
- Be used when the users may not know exact values and need to adjust it relative to its current state.
|
12
|
+
- Set a common default value when possible for proper context. For example, travel companies put the default number of passengers to 1. The default value is easily modified by typing into the field.
|
13
|
+
- Use formatOptions props to include unit symbols, as appropriate.
|
14
|
+
- Have a clear and concise label to specify what value the user should enter.
|
15
|
+
|
16
|
+
This component shouldn’t be used with other digit-based values like date, telephone, and Zip code.
|
17
|
+
|
18
|
+
### Required components
|
19
|
+
|
20
|
+
This component can be used independently and does not require additional components.
|
21
|
+
|
22
|
+
### Accessibility
|
23
|
+
|
24
|
+
#### Keyboard Navigation
|
25
|
+
|
26
|
+
These keys provide additional functionality to the component.
|
27
|
+
|
28
|
+
| Keys | Functions |
|
29
|
+
| ---- | --------- |
|
30
|
+
| Tab | The input is focusable using the Tab key and follows the page tab sequence. |
|
31
|
+
| Arrow keys | Can be used to increment or decrement the numbers displayed in the field. |
|
32
|
+
| Shift + Tab | Moves focus to the previous focusable component.|
|
33
|
+
| Stepper buttons | Pressing and holding the stepper buttons allows continuous increments or decrements. |
|
34
|
+
|
35
|
+
#### Screen readers
|
36
|
+
|
37
|
+
This component uses the following attributes to assist screen readers:
|
38
|
+
- The input component uses the **`aria-labelledby`** attribute to reference the label.
|
39
|
+
- The two icon buttons each use the **`aria-controls`** attribute with the input ID and the **`aria-label`** attribute to provide an accessible name.
|