@pingux/astro 1.27.0-alpha.24 → 1.27.0-alpha.26
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/AccordionGridGroup.js +239 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +353 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +303 -0
- package/lib/cjs/components/AccordionGridGroup/index.js +18 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +132 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +112 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +154 -0
- package/lib/cjs/components/AccordionGridItem/index.js +18 -0
- package/lib/cjs/components/AccordionGroup/AccordionGroup.js +112 -0
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +253 -0
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +302 -0
- package/lib/cjs/components/AccordionGroup/index.js +18 -0
- package/lib/cjs/components/AccordionItem/AccordionItem.js +157 -0
- package/lib/cjs/components/AccordionItem/index.js +18 -0
- package/lib/cjs/components/ArrayField/ArrayField.js +279 -0
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +274 -0
- package/lib/cjs/components/ArrayField/ArrayField.test.js +252 -0
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +56 -0
- package/lib/cjs/components/ArrayField/ArrayFieldItem.js +50 -0
- package/lib/cjs/components/ArrayField/index.js +27 -0
- package/lib/cjs/components/AstroWrapper/AstroWrapper.js +162 -0
- package/lib/cjs/components/AstroWrapper/AstroWrapper.stories.js +90 -0
- package/lib/cjs/components/AstroWrapper/AstroWrapper.test.js +37 -0
- package/lib/cjs/components/AstroWrapper/PageWrapper.test.js +39 -0
- package/lib/cjs/components/AstroWrapper/index.js +47 -0
- package/lib/cjs/components/Avatar/Avatar.js +54 -0
- package/lib/cjs/components/Avatar/Avatar.stories.js +42 -0
- package/lib/cjs/components/Avatar/Avatar.test.js +47 -0
- package/lib/cjs/components/Avatar/index.js +18 -0
- package/lib/cjs/components/Box/Box.js +148 -0
- package/lib/cjs/components/Box/Box.stories.js +278 -0
- package/lib/cjs/components/Box/Box.test.js +79 -0
- package/lib/cjs/components/Box/index.js +18 -0
- package/lib/cjs/components/Bracket/Bracket.js +118 -0
- package/lib/cjs/components/Bracket/Bracket.stories.js +92 -0
- package/lib/cjs/components/Bracket/Bracket.test.js +47 -0
- package/lib/cjs/components/Bracket/index.js +18 -0
- package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +149 -0
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +130 -0
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +98 -0
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +121 -0
- package/lib/cjs/components/Breadcrumbs/index.js +27 -0
- package/lib/cjs/components/Button/Button.js +226 -0
- package/lib/cjs/components/Button/Button.stories.js +158 -0
- package/lib/cjs/components/Button/Button.test.js +156 -0
- package/lib/cjs/components/Button/constants.js +14 -0
- package/lib/cjs/components/Button/index.js +18 -0
- package/lib/cjs/components/Card/Card.js +43 -0
- package/lib/cjs/components/Card/Card.stories.js +52 -0
- package/lib/cjs/components/Card/Card.test.js +48 -0
- package/lib/cjs/components/Card/index.js +18 -0
- package/lib/cjs/components/Checkbox/Checkbox.js +48 -0
- package/lib/cjs/components/Checkbox/Checkbox.test.js +36 -0
- package/lib/cjs/components/Checkbox/index.js +18 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.js +217 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +167 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.test.js +116 -0
- package/lib/cjs/components/CheckboxField/index.js +18 -0
- package/lib/cjs/components/Chip/Chip.js +94 -0
- package/lib/cjs/components/Chip/Chip.stories.js +160 -0
- package/lib/cjs/components/Chip/Chip.test.js +57 -0
- package/lib/cjs/components/Chip/ChipContext.js +19 -0
- package/lib/cjs/components/Chip/index.js +18 -0
- package/lib/cjs/components/CodeView/CodeView.js +188 -0
- package/lib/cjs/components/CodeView/CodeView.stories.js +122 -0
- package/lib/cjs/components/CodeView/CodeView.test.js +206 -0
- package/lib/cjs/components/CodeView/index.js +18 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +155 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +384 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.test.js +83 -0
- package/lib/cjs/components/CollapsiblePanel/index.js +18 -0
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +49 -0
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +48 -0
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +145 -0
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +112 -0
- package/lib/cjs/components/CollapsiblePanelContainer/index.js +18 -0
- package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.js +85 -0
- package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +65 -0
- package/lib/cjs/components/CollapsiblePanelItem/index.js +18 -0
- package/lib/cjs/components/ColorField/ColorField.js +223 -0
- package/lib/cjs/components/ColorField/ColorField.stories.js +132 -0
- package/lib/cjs/components/ColorField/ColorField.test.js +71 -0
- package/lib/cjs/components/ColorField/index.js +18 -0
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +226 -0
- package/lib/cjs/components/ComboBox/index.js +18 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +483 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +621 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +1133 -0
- package/lib/cjs/components/ComboBoxField/index.js +18 -0
- package/lib/cjs/components/CopyText/CopyButton.js +53 -0
- package/lib/cjs/components/CopyText/CopyText.js +221 -0
- package/lib/cjs/components/CopyText/CopyText.stories.js +58 -0
- package/lib/cjs/components/CopyText/CopyText.test.js +485 -0
- package/lib/cjs/components/CopyText/index.js +18 -0
- package/lib/cjs/components/DataTable/DataTable.js +477 -0
- package/lib/cjs/components/DataTable/DataTable.stories.js +310 -0
- package/lib/cjs/components/DataTable/DataTable.styles.js +156 -0
- package/lib/cjs/components/DataTable/DataTable.test.js +1307 -0
- package/lib/cjs/components/DataTable/DataTableChip.js +63 -0
- package/lib/cjs/components/DataTable/DataTableChip.test.js +38 -0
- package/lib/cjs/components/DataTable/DataTableMenu.js +51 -0
- package/lib/cjs/components/DataTable/DataTableMenu.test.js +20 -0
- package/lib/cjs/components/DataTable/DataTableMultiLine.js +75 -0
- package/lib/cjs/components/DataTable/DataTableMultiLine.test.js +30 -0
- package/lib/cjs/components/DataTable/DataTableVirtualizer.js +188 -0
- package/lib/cjs/components/DataTable/index.js +54 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +388 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +413 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +360 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/index.js +18 -0
- package/lib/cjs/components/FieldHelperText/FieldHelperText.js +77 -0
- package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.js +64 -0
- package/lib/cjs/components/FieldHelperText/FieldHelperText.test.js +67 -0
- package/lib/cjs/components/FieldHelperText/index.js +18 -0
- package/lib/cjs/components/FileInputField/FileInputField.js +335 -0
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +258 -0
- package/lib/cjs/components/FileInputField/FileInputField.test.js +227 -0
- package/lib/cjs/components/FileInputField/FileItem.js +134 -0
- package/lib/cjs/components/FileInputField/FileSelect.js +48 -0
- package/lib/cjs/components/FileInputField/index.js +18 -0
- package/lib/cjs/components/HelpHint/HelpHint.js +85 -0
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +57 -0
- package/lib/cjs/components/HelpHint/HelpHint.test.js +80 -0
- package/lib/cjs/components/HelpHint/index.js +18 -0
- package/lib/cjs/components/Icon/Icon.js +97 -0
- package/lib/cjs/components/Icon/Icon.stories.js +93 -0
- package/lib/cjs/components/Icon/Icon.test.js +39 -0
- package/lib/cjs/components/Icon/index.js +18 -0
- package/lib/cjs/components/IconButton/IconButton.js +191 -0
- package/lib/cjs/components/IconButton/IconButton.stories.js +95 -0
- package/lib/cjs/components/IconButton/IconButton.test.js +181 -0
- package/lib/cjs/components/IconButton/index.js +18 -0
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +78 -0
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +76 -0
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.test.js +60 -0
- package/lib/cjs/components/IconButtonToggle/index.js +18 -0
- package/lib/cjs/components/Image/Image.js +235 -0
- package/lib/cjs/components/Image/Image.stories.js +185 -0
- package/lib/cjs/components/Image/Image.test.js +208 -0
- package/lib/cjs/components/Image/index.js +18 -0
- package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +146 -0
- package/lib/cjs/components/ImageUploadField/ImageUploadField.js +168 -0
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +356 -0
- package/lib/cjs/components/ImageUploadField/ImageUploadField.test.js +458 -0
- package/lib/cjs/components/ImageUploadField/ImageUploadFieldBase.js +128 -0
- package/lib/cjs/components/ImageUploadField/index.js +18 -0
- package/lib/cjs/components/Input/Input.js +82 -0
- package/lib/cjs/components/Input/Input.stories.js +57 -0
- package/lib/cjs/components/Input/Input.test.js +81 -0
- package/lib/cjs/components/Input/index.js +18 -0
- package/lib/cjs/components/Label/Label.js +120 -0
- package/lib/cjs/components/Label/Label.stories.js +63 -0
- package/lib/cjs/components/Label/Label.test.js +90 -0
- package/lib/cjs/components/Label/constants.js +15 -0
- package/lib/cjs/components/Label/index.js +18 -0
- package/lib/cjs/components/Link/Link.js +122 -0
- package/lib/cjs/components/Link/Link.stories.js +66 -0
- package/lib/cjs/components/Link/Link.test.js +84 -0
- package/lib/cjs/components/Link/index.js +18 -0
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +229 -0
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +358 -0
- package/lib/cjs/components/LinkSelectField/LinkSelectField.test.js +230 -0
- package/lib/cjs/components/LinkSelectField/index.js +18 -0
- package/lib/cjs/components/List/List.js +54 -0
- package/lib/cjs/components/List/List.stories.js +66 -0
- package/lib/cjs/components/List/List.test.js +36 -0
- package/lib/cjs/components/List/index.js +18 -0
- package/lib/cjs/components/ListBox/ListBox.js +272 -0
- package/lib/cjs/components/ListBox/ListBox.test.js +171 -0
- package/lib/cjs/components/ListBox/ListBoxContext.js +17 -0
- package/lib/cjs/components/ListBox/ListBoxSection.js +90 -0
- package/lib/cjs/components/ListBox/Option.js +146 -0
- package/lib/cjs/components/ListBox/index.js +27 -0
- package/lib/cjs/components/ListItem/ListItem.js +86 -0
- package/lib/cjs/components/ListItem/ListItem.stories.js +103 -0
- package/lib/cjs/components/ListItem/ListItem.test.js +51 -0
- package/lib/cjs/components/ListItem/index.js +18 -0
- package/lib/cjs/components/ListView/ListView.js +248 -0
- package/lib/cjs/components/ListView/ListView.stories.js +812 -0
- package/lib/cjs/components/ListView/ListView.test.js +326 -0
- package/lib/cjs/components/ListView/ListViewContext.js +17 -0
- package/lib/cjs/components/ListView/index.js +18 -0
- package/lib/cjs/components/ListViewItem/ListViewItem.js +128 -0
- package/lib/cjs/components/ListViewItem/index.js +18 -0
- package/lib/cjs/components/Loader/Loader.js +75 -0
- package/lib/cjs/components/Loader/Loader.stories.js +63 -0
- package/lib/cjs/components/Loader/Loader.test.js +36 -0
- package/lib/cjs/components/Loader/index.js +18 -0
- package/lib/cjs/components/Menu/Menu.js +200 -0
- package/lib/cjs/components/Menu/Menu.stories.js +107 -0
- package/lib/cjs/components/Menu/Menu.test.js +226 -0
- package/lib/cjs/components/Menu/index.js +18 -0
- package/lib/cjs/components/MenuItem/MenuItem.js +195 -0
- package/lib/cjs/components/MenuItem/MenuItem.test.js +221 -0
- package/lib/cjs/components/MenuItem/index.js +18 -0
- package/lib/cjs/components/Messages/Message.js +196 -0
- package/lib/cjs/components/Messages/Messages.js +87 -0
- package/lib/cjs/components/Messages/Messages.reducer.js +69 -0
- package/lib/cjs/components/Messages/Messages.stories.js +359 -0
- package/lib/cjs/components/Messages/Messages.test.js +243 -0
- package/lib/cjs/components/Messages/index.js +60 -0
- package/lib/cjs/components/Messages/utils/index.js +27 -0
- package/lib/cjs/components/Messages/utils/messagesReducer.js +180 -0
- package/lib/cjs/components/Messages/utils/multiMessagesReducer.js +141 -0
- package/lib/cjs/components/Messages/utils/tests/messagesReducer.test.js +104 -0
- package/lib/cjs/components/Messages/utils/tests/multiMessagesReducer.test.js +112 -0
- package/lib/cjs/components/Modal/Modal.js +237 -0
- package/lib/cjs/components/Modal/Modal.stories.js +118 -0
- package/lib/cjs/components/Modal/index.js +18 -0
- package/lib/cjs/components/Modal/tests/Modal.integration.test.js +95 -0
- package/lib/cjs/components/Modal/tests/Modal.unit.test.js +222 -0
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +619 -0
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +431 -0
- package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +530 -0
- package/lib/cjs/components/MultivaluesField/index.js +18 -0
- package/lib/cjs/components/NavBar/NavBar.js +92 -0
- package/lib/cjs/components/NavBar/NavBar.stories.js +287 -0
- package/lib/cjs/components/NavBar/NavBar.test.js +166 -0
- package/lib/cjs/components/NavBar/index.js +18 -0
- package/lib/cjs/components/NavBarSection/NavBarItem.js +145 -0
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +64 -0
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +96 -0
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +104 -0
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +98 -0
- package/lib/cjs/components/NavBarSection/NavBarSection.js +87 -0
- package/lib/cjs/components/NavBarSection/index.js +45 -0
- package/lib/cjs/components/NumberField/NumberField.js +281 -0
- package/lib/cjs/components/NumberField/NumberField.stories.js +251 -0
- package/lib/cjs/components/NumberField/NumberField.test.js +186 -0
- package/lib/cjs/components/NumberField/index.js +18 -0
- package/lib/cjs/components/OverlayPanel/OverlayPanel.js +130 -0
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +231 -0
- package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +184 -0
- package/lib/cjs/components/OverlayPanel/index.js +18 -0
- package/lib/cjs/components/PageHeader/PageHeader.js +69 -0
- package/lib/cjs/components/PageHeader/PageHeader.stories.js +47 -0
- package/lib/cjs/components/PageHeader/PageHeader.test.js +35 -0
- package/lib/cjs/components/PageHeader/index.js +18 -0
- package/lib/cjs/components/PasswordField/PasswordField.js +352 -0
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +446 -0
- package/lib/cjs/components/PasswordField/PasswordField.test.js +236 -0
- package/lib/cjs/components/PasswordField/index.js +18 -0
- package/lib/cjs/components/PopoverContainer/PopoverContainer.js +227 -0
- package/lib/cjs/components/PopoverContainer/PopoverContainer.test.js +57 -0
- package/lib/cjs/components/PopoverContainer/index.js +47 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.js +198 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +239 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.test.js +214 -0
- package/lib/cjs/components/PopoverMenu/index.js +18 -0
- package/lib/cjs/components/Radio/Radio.js +46 -0
- package/lib/cjs/components/Radio/index.js +18 -0
- package/lib/cjs/components/RadioField/RadioField.js +205 -0
- package/lib/cjs/components/RadioField/RadioField.test.js +107 -0
- package/lib/cjs/components/RadioField/index.js +47 -0
- package/lib/cjs/components/RadioGroupField/RadioGroupField.js +185 -0
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +218 -0
- package/lib/cjs/components/RadioGroupField/RadioGroupField.test.js +202 -0
- package/lib/cjs/components/RadioGroupField/index.js +18 -0
- package/lib/cjs/components/RequirementsList/RequirementsList.js +131 -0
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +79 -0
- package/lib/cjs/components/RequirementsList/RequirementsList.test.js +114 -0
- package/lib/cjs/components/RequirementsList/index.js +18 -0
- package/lib/cjs/components/RockerButton/RockerButton.js +135 -0
- package/lib/cjs/components/RockerButton/index.js +47 -0
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +131 -0
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +154 -0
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +124 -0
- package/lib/cjs/components/RockerButtonGroup/index.js +47 -0
- package/lib/cjs/components/ScrollBox/ScrollBox.js +153 -0
- package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +47 -0
- package/lib/cjs/components/ScrollBox/ScrollBox.test.js +87 -0
- package/lib/cjs/components/ScrollBox/index.js +18 -0
- package/lib/cjs/components/SearchField/SearchField.js +363 -0
- package/lib/cjs/components/SearchField/SearchField.stories.js +172 -0
- package/lib/cjs/components/SearchField/SearchField.test.js +251 -0
- package/lib/cjs/components/SearchField/index.js +18 -0
- package/lib/cjs/components/SelectField/SelectField.js +179 -0
- package/lib/cjs/components/SelectField/SelectField.stories.js +448 -0
- package/lib/cjs/components/SelectField/SelectField.test.js +85 -0
- package/lib/cjs/components/SelectField/index.js +18 -0
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +209 -0
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.test.js +497 -0
- package/lib/cjs/components/SelectFieldBase/index.js +18 -0
- package/lib/cjs/components/Separator/Separator.js +79 -0
- package/lib/cjs/components/Separator/Separator.stories.js +49 -0
- package/lib/cjs/components/Separator/Separator.test.js +38 -0
- package/lib/cjs/components/Separator/index.js +18 -0
- package/lib/cjs/components/Stepper/Line.js +51 -0
- package/lib/cjs/components/Stepper/Step.js +72 -0
- package/lib/cjs/components/Stepper/Stepper.constants.js +15 -0
- package/lib/cjs/components/Stepper/Stepper.js +182 -0
- package/lib/cjs/components/Stepper/Stepper.stories.js +147 -0
- package/lib/cjs/components/Stepper/Stepper.test.js +231 -0
- package/lib/cjs/components/Stepper/index.js +27 -0
- package/lib/cjs/components/Switch/Switch.js +61 -0
- package/lib/cjs/components/Switch/index.js +18 -0
- package/lib/cjs/components/SwitchField/SwitchField.js +247 -0
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +178 -0
- package/lib/cjs/components/SwitchField/SwitchField.test.js +145 -0
- package/lib/cjs/components/SwitchField/index.js +18 -0
- package/lib/cjs/components/Tab/Tab.js +186 -0
- package/lib/cjs/components/Tab/index.js +47 -0
- package/lib/cjs/components/TabPicker/TabPicker.js +257 -0
- package/lib/cjs/components/TabPicker/index.js +18 -0
- package/lib/cjs/components/Table/Table.js +43 -0
- package/lib/cjs/components/Table/Table.stories.js +102 -0
- package/lib/cjs/components/Table/Table.test.js +80 -0
- package/lib/cjs/components/Table/index.js +18 -0
- package/lib/cjs/components/TableBody/TableBody.js +43 -0
- package/lib/cjs/components/TableBody/index.js +18 -0
- package/lib/cjs/components/TableCell/TableCell.js +50 -0
- package/lib/cjs/components/TableCell/TableCell.test.js +54 -0
- package/lib/cjs/components/TableCell/index.js +18 -0
- package/lib/cjs/components/TableHead/TableHead.js +42 -0
- package/lib/cjs/components/TableHead/index.js +18 -0
- package/lib/cjs/components/TableRow/TableRow.js +43 -0
- package/lib/cjs/components/TableRow/index.js +18 -0
- package/lib/cjs/components/Tabs/Tabs.js +228 -0
- package/lib/cjs/components/Tabs/Tabs.stories.js +319 -0
- package/lib/cjs/components/Tabs/Tabs.test.js +612 -0
- package/lib/cjs/components/Tabs/index.js +47 -0
- package/lib/cjs/components/Text/Text.js +56 -0
- package/lib/cjs/components/Text/Text.stories.js +180 -0
- package/lib/cjs/components/Text/Text.test.js +89 -0
- package/lib/cjs/components/Text/index.js +18 -0
- package/lib/cjs/components/TextArea/TextArea.js +49 -0
- package/lib/cjs/components/TextArea/TextArea.test.js +43 -0
- package/lib/cjs/components/TextArea/index.js +18 -0
- package/lib/cjs/components/TextAreaField/TextAreaField.js +294 -0
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +232 -0
- package/lib/cjs/components/TextAreaField/TextAreaField.test.js +168 -0
- package/lib/cjs/components/TextAreaField/index.js +18 -0
- package/lib/cjs/components/TextField/TextField.js +224 -0
- package/lib/cjs/components/TextField/TextField.stories.js +350 -0
- package/lib/cjs/components/TextField/TextField.test.js +175 -0
- package/lib/cjs/components/TextField/index.js +18 -0
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +296 -0
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +43 -0
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.test.js +103 -0
- package/lib/cjs/components/TimeZonePicker/index.js +18 -0
- package/lib/cjs/components/TimeZonePicker/timezones.js +123 -0
- package/lib/cjs/components/TooltipTrigger/Tooltip.js +65 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +201 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +143 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.js +119 -0
- package/lib/cjs/components/TooltipTrigger/index.js +27 -0
- package/lib/cjs/context/AccordionContext/index.js +22 -0
- package/lib/cjs/context/AccordionGridContext/index.js +20 -0
- package/lib/cjs/context/DataTableContext/index.js +31 -0
- package/lib/cjs/context/MenuContext/index.js +20 -0
- package/lib/cjs/context/NavBarContext/index.js +20 -0
- package/lib/cjs/context/TooltipContext/index.js +22 -0
- package/lib/cjs/hooks/index.js +153 -0
- package/lib/cjs/hooks/useAriaLabelWarning/index.js +18 -0
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.js +29 -0
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +38 -0
- package/lib/cjs/hooks/useColumnStyles/index.js +18 -0
- package/lib/cjs/hooks/useColumnStyles/useColumnStyles.js +38 -0
- package/lib/cjs/hooks/useComponentToggle/index.js +18 -0
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.js +70 -0
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.test.js +133 -0
- package/lib/cjs/hooks/useCopyToClipboard/index.js +18 -0
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.js +83 -0
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.test.js +79 -0
- package/lib/cjs/hooks/useDebounce/index.js +18 -0
- package/lib/cjs/hooks/useDebounce/useDebounce.js +40 -0
- package/lib/cjs/hooks/useDebounce/useDebounce.test.js +47 -0
- package/lib/cjs/hooks/useDeprecationWarning/index.js +18 -0
- package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.js +55 -0
- package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.test.js +97 -0
- package/lib/cjs/hooks/useDevelopmentWarning/index.js +18 -0
- package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.js +28 -0
- package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +43 -0
- package/lib/cjs/hooks/useFallbackImage/index.js +18 -0
- package/lib/cjs/hooks/useFallbackImage/useFallbackImage.js +46 -0
- package/lib/cjs/hooks/useFallbackImage/useFallbackImage.test.js +65 -0
- package/lib/cjs/hooks/useField/index.js +18 -0
- package/lib/cjs/hooks/useField/useField.js +256 -0
- package/lib/cjs/hooks/useField/useField.test.js +253 -0
- package/lib/cjs/hooks/useImageUploadState/index.js +18 -0
- package/lib/cjs/hooks/useImageUploadState/useImageUploadState.js +143 -0
- package/lib/cjs/hooks/useLabelHeight/index.js +18 -0
- package/lib/cjs/hooks/useLabelHeight/useLabelHeight.js +43 -0
- package/lib/cjs/hooks/useModalState/index.js +18 -0
- package/lib/cjs/hooks/useModalState/useModalState.js +35 -0
- package/lib/cjs/hooks/useModalState/useModalState.test.js +124 -0
- package/lib/cjs/hooks/useNavBarPress/index.js +18 -0
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.js +38 -0
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.test.js +42 -0
- package/lib/cjs/hooks/useOverlayPanelState/index.js +18 -0
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +54 -0
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +25 -0
- package/lib/cjs/hooks/useProgressiveState/index.js +18 -0
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.js +29 -0
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.test.js +106 -0
- package/lib/cjs/hooks/usePropWarning/index.js +18 -0
- package/lib/cjs/hooks/usePropWarning/usePropWarning.js +45 -0
- package/lib/cjs/hooks/usePropWarning/usePropWarning.test.js +65 -0
- package/lib/cjs/hooks/useRockerButton/index.js +18 -0
- package/lib/cjs/hooks/useRockerButton/useRockerButton.js +63 -0
- package/lib/cjs/hooks/useSelectField/index.js +18 -0
- package/lib/cjs/hooks/useSelectField/useSelectField.js +269 -0
- package/lib/cjs/hooks/useStatusClasses/index.js +18 -0
- package/lib/cjs/hooks/useStatusClasses/useStatusClasses.js +40 -0
- package/lib/cjs/hooks/useStatusClasses/useStatusClasses.test.js +56 -0
- package/lib/cjs/index.js +1811 -0
- package/lib/cjs/recipes/ApplicationSearchDropdown.stories.js +325 -0
- package/lib/cjs/recipes/Arrow.stories.js +53 -0
- package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +165 -0
- package/lib/cjs/recipes/AttributesAndPingOneMapping.stories.js +325 -0
- package/lib/cjs/recipes/CollapsiblePanel.stories.js +363 -0
- package/lib/cjs/recipes/ConditionalFilter.stories.js +412 -0
- package/lib/cjs/recipes/CopyToClipboard.stories.js +45 -0
- package/lib/cjs/recipes/CountryPicker.stories.js +176 -0
- package/lib/cjs/recipes/DatePicker.stories.js +160 -0
- package/lib/cjs/recipes/DraggableBox.stories.js +58 -0
- package/lib/cjs/recipes/EditableInput.stories.js +360 -0
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +210 -0
- package/lib/cjs/recipes/ListAndPanel.stories.js +377 -0
- package/lib/cjs/recipes/LogoTabs.stories.js +238 -0
- package/lib/cjs/recipes/MaskedValue.stories.js +100 -0
- package/lib/cjs/recipes/NeutralInput.stories.js +35 -0
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +260 -0
- package/lib/cjs/recipes/PageHeader.stories.js +73 -0
- package/lib/cjs/recipes/PanelHeader.stories.js +97 -0
- package/lib/cjs/recipes/RadioButtonsWithLinks.stories.js +154 -0
- package/lib/cjs/recipes/RowLineChart.stories.js +524 -0
- package/lib/cjs/recipes/ScrollableListView.stories.js +149 -0
- package/lib/cjs/recipes/SelectedFieldOverlay.story.js +70 -0
- package/lib/cjs/recipes/Slider.stories.js +242 -0
- package/lib/cjs/recipes/StatsCircle.stories.js +49 -0
- package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +699 -0
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +335 -0
- package/lib/cjs/styles/ColorDocumentation.js +319 -0
- package/lib/cjs/styles/ColorDocumentation.stories.js +33 -0
- package/lib/cjs/styles/ContainerSizes.stories.js +95 -0
- package/lib/cjs/styles/Spacing.stories.js +76 -0
- package/lib/cjs/styles/ThemeDocumentation.js +25 -0
- package/lib/cjs/styles/Typography.stories.js +160 -0
- package/lib/cjs/styles/breakpoints.js +11 -0
- package/lib/cjs/styles/colors.js +200 -0
- package/lib/cjs/styles/forms/checkbox.js +22 -0
- package/lib/cjs/styles/forms/comboBox.js +47 -0
- package/lib/cjs/styles/forms/index.js +68 -0
- package/lib/cjs/styles/forms/input.js +220 -0
- package/lib/cjs/styles/forms/label.js +95 -0
- package/lib/cjs/styles/forms/radio.js +32 -0
- package/lib/cjs/styles/forms/search.js +33 -0
- package/lib/cjs/styles/forms/select.js +104 -0
- package/lib/cjs/styles/forms/switch.js +81 -0
- package/lib/cjs/styles/forms/textarea.js +46 -0
- package/lib/cjs/styles/spacing.js +31 -0
- package/lib/cjs/styles/text.js +45 -0
- package/lib/cjs/styles/theme.js +94 -0
- package/lib/cjs/styles/themeOverrides/index.js +18 -0
- package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +130 -0
- package/lib/cjs/styles/themes/astro-nano/astro-nano.js +165 -0
- package/lib/cjs/styles/themes/astro-nano/index.js +18 -0
- package/lib/cjs/styles/themes/end-user/end-user.js +278 -0
- package/lib/cjs/styles/themes/end-user/index.js +18 -0
- package/lib/cjs/styles/useAstroTheme.js +36 -0
- package/lib/cjs/styles/variants/accordion.js +154 -0
- package/lib/cjs/styles/variants/bidirectionalIconButton.js +54 -0
- package/lib/cjs/styles/variants/boxes.js +391 -0
- package/lib/cjs/styles/variants/buttons.js +755 -0
- package/lib/cjs/styles/variants/codeView.js +169 -0
- package/lib/cjs/styles/variants/collapsiblePanel.js +90 -0
- package/lib/cjs/styles/variants/imageUpload.js +29 -0
- package/lib/cjs/styles/variants/images.js +19 -0
- package/lib/cjs/styles/variants/index.js +83 -0
- package/lib/cjs/styles/variants/links.js +65 -0
- package/lib/cjs/styles/variants/listBox.js +60 -0
- package/lib/cjs/styles/variants/loader.js +97 -0
- package/lib/cjs/styles/variants/menu.js +20 -0
- package/lib/cjs/styles/variants/menuItem.js +36 -0
- package/lib/cjs/styles/variants/messages.js +53 -0
- package/lib/cjs/styles/variants/modal.js +85 -0
- package/lib/cjs/styles/variants/navBar.js +76 -0
- package/lib/cjs/styles/variants/numberField.js +62 -0
- package/lib/cjs/styles/variants/overlayPanel.js +73 -0
- package/lib/cjs/styles/variants/popoverMenu.js +99 -0
- package/lib/cjs/styles/variants/rockerbutton.js +25 -0
- package/lib/cjs/styles/variants/separator.js +64 -0
- package/lib/cjs/styles/variants/stepper.js +124 -0
- package/lib/cjs/styles/variants/table.js +70 -0
- package/lib/cjs/styles/variants/tabs.js +49 -0
- package/lib/cjs/styles/variants/text.js +368 -0
- package/lib/cjs/styles/variants/tooltip.js +16 -0
- package/lib/cjs/styles/variants/variants.js +116 -0
- package/lib/cjs/templates/Nav/HeaderBar.js +124 -0
- package/lib/cjs/templates/Nav/Nav.stories.js +120 -0
- package/lib/cjs/templates/Nav/NavData.js +257 -0
- package/lib/cjs/utils/devUtils/constants/animals.js +11 -0
- package/lib/cjs/utils/devUtils/constants/firstNames.js +11 -0
- package/lib/cjs/utils/devUtils/constants/htmlElements.js +15 -0
- package/lib/cjs/utils/devUtils/constants/images.js +13 -0
- package/lib/cjs/utils/devUtils/constants/loadingStates.js +18 -0
- package/lib/cjs/utils/devUtils/constants/orientation.js +14 -0
- package/lib/cjs/utils/devUtils/constants/panelSizes.js +11 -0
- package/lib/cjs/utils/devUtils/constants/statuses.js +16 -0
- package/lib/cjs/utils/devUtils/constants/variants.js +40 -0
- package/lib/cjs/utils/devUtils/createMockData.js +94 -0
- package/lib/cjs/utils/devUtils/decorators/withDeprecationWarning.js +33 -0
- package/lib/cjs/utils/devUtils/props/isIterable.js +74 -0
- package/lib/cjs/utils/devUtils/props/isValidPositiveInt.js +42 -0
- package/lib/cjs/utils/devUtils/styledSystemUtils.js +79 -0
- package/lib/cjs/utils/styleUtils/index.js +19 -0
- package/lib/cjs/utils/testUtils/setupTests.js +27 -0
- package/lib/cjs/utils/testUtils/testAxe.js +65 -0
- package/lib/cjs/utils/testUtils/testTheme.js +30 -0
- package/lib/cjs/utils/testUtils/testWrapper.js +104 -0
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +196 -0
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +313 -0
- package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +226 -0
- package/lib/components/AccordionGridGroup/index.js +1 -0
- package/lib/components/AccordionGridItem/AccordionGridItem.js +94 -0
- package/lib/components/AccordionGridItem/AccordionGridItemBody.js +76 -0
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +115 -0
- package/lib/components/AccordionGridItem/index.js +1 -0
- package/lib/components/AccordionGroup/AccordionGroup.js +77 -0
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +205 -0
- package/lib/components/AccordionGroup/AccordionGroup.test.js +230 -0
- package/lib/components/AccordionGroup/index.js +1 -0
- package/lib/components/AccordionItem/AccordionItem.js +119 -0
- package/lib/components/AccordionItem/index.js +1 -0
- package/lib/components/ArrayField/ArrayField.js +225 -0
- package/lib/components/ArrayField/ArrayField.stories.js +245 -0
- package/lib/components/ArrayField/ArrayField.test.js +223 -0
- package/lib/components/ArrayField/ArrayFieldDeleteButton.js +38 -0
- package/lib/components/ArrayField/ArrayFieldItem.js +31 -0
- package/lib/components/ArrayField/index.js +2 -0
- package/lib/components/AstroWrapper/AstroWrapper.js +121 -0
- package/lib/components/AstroWrapper/AstroWrapper.stories.js +68 -0
- package/lib/components/AstroWrapper/AstroWrapper.test.js +26 -0
- package/lib/components/AstroWrapper/PageWrapper.test.js +28 -0
- package/lib/components/AstroWrapper/index.js +2 -0
- package/lib/components/Avatar/Avatar.js +27 -0
- package/lib/components/Avatar/Avatar.stories.js +22 -0
- package/lib/components/Avatar/Avatar.test.js +32 -0
- package/lib/components/Avatar/index.js +1 -0
- package/lib/components/Box/Box.js +111 -0
- package/lib/components/Box/Box.stories.js +249 -0
- package/lib/components/Box/Box.test.js +61 -0
- package/lib/components/Box/index.js +1 -0
- package/lib/components/Bracket/Bracket.js +88 -0
- package/lib/components/Bracket/Bracket.stories.js +72 -0
- package/lib/components/Bracket/Bracket.test.js +35 -0
- package/lib/components/Bracket/index.js +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbItem.js +113 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.js +95 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +72 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.test.js +101 -0
- package/lib/components/Breadcrumbs/index.js +2 -0
- package/lib/components/Button/Button.js +188 -0
- package/lib/components/Button/Button.stories.js +119 -0
- package/lib/components/Button/Button.test.js +115 -0
- package/lib/components/Button/constants.js +4 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Card/Card.js +17 -0
- package/lib/components/Card/Card.stories.js +29 -0
- package/lib/components/Card/Card.test.js +34 -0
- package/lib/components/Card/index.js +1 -0
- package/lib/components/Checkbox/Checkbox.js +22 -0
- package/lib/components/Checkbox/Checkbox.test.js +26 -0
- package/lib/components/Checkbox/index.js +1 -0
- package/lib/components/CheckboxField/CheckboxField.js +178 -0
- package/lib/components/CheckboxField/CheckboxField.stories.js +132 -0
- package/lib/components/CheckboxField/CheckboxField.test.js +84 -0
- package/lib/components/CheckboxField/index.js +1 -0
- package/lib/components/Chip/Chip.js +63 -0
- package/lib/components/Chip/Chip.stories.js +124 -0
- package/lib/components/Chip/Chip.test.js +43 -0
- package/lib/components/Chip/ChipContext.js +3 -0
- package/lib/components/Chip/index.js +1 -0
- package/lib/components/CodeView/CodeView.js +147 -0
- package/lib/components/CodeView/CodeView.stories.js +91 -0
- package/lib/components/CodeView/CodeView.test.js +170 -0
- package/lib/components/CodeView/index.js +1 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.js +121 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +333 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.test.js +69 -0
- package/lib/components/CollapsiblePanel/index.js +1 -0
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +32 -0
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +34 -0
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +110 -0
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +81 -0
- package/lib/components/CollapsiblePanelContainer/index.js +1 -0
- package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.js +60 -0
- package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +47 -0
- package/lib/components/CollapsiblePanelItem/index.js +1 -0
- package/lib/components/ColorField/ColorField.js +177 -0
- package/lib/components/ColorField/ColorField.stories.js +99 -0
- package/lib/components/ColorField/ColorField.test.js +50 -0
- package/lib/components/ColorField/index.js +1 -0
- package/lib/components/ComboBox/ComboBoxInput.js +184 -0
- package/lib/components/ComboBox/index.js +1 -0
- package/lib/components/ComboBoxField/ComboBoxField.js +436 -0
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +523 -0
- package/lib/components/ComboBoxField/ComboBoxField.test.js +934 -0
- package/lib/components/ComboBoxField/index.js +1 -0
- package/lib/components/CopyText/CopyButton.js +22 -0
- package/lib/components/CopyText/CopyText.js +188 -0
- package/lib/components/CopyText/CopyText.stories.js +30 -0
- package/lib/components/CopyText/CopyText.test.js +440 -0
- package/lib/components/CopyText/index.js +1 -0
- package/lib/components/DataTable/DataTable.js +431 -0
- package/lib/components/DataTable/DataTable.stories.js +273 -0
- package/lib/components/DataTable/DataTable.styles.js +137 -0
- package/lib/components/DataTable/DataTable.test.js +1256 -0
- package/lib/components/DataTable/DataTableChip.js +33 -0
- package/lib/components/DataTable/DataTableChip.test.js +31 -0
- package/lib/components/DataTable/DataTableMenu.js +24 -0
- package/lib/components/DataTable/DataTableMenu.test.js +13 -0
- package/lib/components/DataTable/DataTableMultiLine.js +46 -0
- package/lib/components/DataTable/DataTableMultiLine.test.js +22 -0
- package/lib/components/DataTable/DataTableVirtualizer.js +157 -0
- package/lib/components/DataTable/index.js +5 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +335 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +362 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +299 -0
- package/lib/components/EnvironmentBreadcrumb/index.js +1 -0
- package/lib/components/FieldHelperText/FieldHelperText.js +44 -0
- package/lib/components/FieldHelperText/FieldHelperText.stories.js +35 -0
- package/lib/components/FieldHelperText/FieldHelperText.test.js +52 -0
- package/lib/components/FieldHelperText/index.js +1 -0
- package/lib/components/FileInputField/FileInputField.js +284 -0
- package/lib/components/FileInputField/FileInputField.stories.js +206 -0
- package/lib/components/FileInputField/FileInputField.test.js +187 -0
- package/lib/components/FileInputField/FileItem.js +101 -0
- package/lib/components/FileInputField/FileSelect.js +31 -0
- package/lib/components/FileInputField/index.js +1 -0
- package/lib/components/HelpHint/HelpHint.js +55 -0
- package/lib/components/HelpHint/HelpHint.stories.js +34 -0
- package/lib/components/HelpHint/HelpHint.test.js +58 -0
- package/lib/components/HelpHint/index.js +1 -0
- package/lib/components/Icon/Icon.js +66 -0
- package/lib/components/Icon/Icon.stories.js +66 -0
- package/lib/components/Icon/Icon.test.js +26 -0
- package/lib/components/Icon/index.js +1 -0
- package/lib/components/IconButton/IconButton.js +153 -0
- package/lib/components/IconButton/IconButton.stories.js +67 -0
- package/lib/components/IconButton/IconButton.test.js +132 -0
- package/lib/components/IconButton/index.js +1 -0
- package/lib/components/IconButtonToggle/IconButtonToggle.js +59 -0
- package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +40 -0
- package/lib/components/IconButtonToggle/IconButtonToggle.test.js +46 -0
- package/lib/components/IconButtonToggle/index.js +1 -0
- package/lib/components/Image/Image.js +198 -0
- package/lib/components/Image/Image.stories.js +130 -0
- package/lib/components/Image/Image.test.js +177 -0
- package/lib/components/Image/index.js +1 -0
- package/lib/components/ImageUploadField/ImagePreviewButton.js +115 -0
- package/lib/components/ImageUploadField/ImageUploadField.js +136 -0
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +306 -0
- package/lib/components/ImageUploadField/ImageUploadField.test.js +400 -0
- package/lib/components/ImageUploadField/ImageUploadFieldBase.js +87 -0
- package/lib/components/ImageUploadField/index.js +1 -0
- package/lib/components/Input/Input.js +52 -0
- package/lib/components/Input/Input.stories.js +31 -0
- package/lib/components/Input/Input.test.js +57 -0
- package/lib/components/Input/index.js +1 -0
- package/lib/components/Label/Label.js +87 -0
- package/lib/components/Label/Label.stories.js +36 -0
- package/lib/components/Label/Label.test.js +68 -0
- package/lib/components/Label/constants.js +5 -0
- package/lib/components/Label/index.js +1 -0
- package/lib/components/Link/Link.js +89 -0
- package/lib/components/Link/Link.stories.js +44 -0
- package/lib/components/Link/Link.test.js +58 -0
- package/lib/components/Link/index.js +1 -0
- package/lib/components/LinkSelectField/LinkSelectField.js +191 -0
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +293 -0
- package/lib/components/LinkSelectField/LinkSelectField.test.js +192 -0
- package/lib/components/LinkSelectField/index.js +1 -0
- package/lib/components/List/List.js +26 -0
- package/lib/components/List/List.stories.js +43 -0
- package/lib/components/List/List.test.js +24 -0
- package/lib/components/List/index.js +1 -0
- package/lib/components/ListBox/ListBox.js +223 -0
- package/lib/components/ListBox/ListBox.test.js +148 -0
- package/lib/components/ListBox/ListBoxContext.js +2 -0
- package/lib/components/ListBox/ListBoxSection.js +60 -0
- package/lib/components/ListBox/Option.js +107 -0
- package/lib/components/ListBox/index.js +2 -0
- package/lib/components/ListItem/ListItem.js +55 -0
- package/lib/components/ListItem/ListItem.stories.js +74 -0
- package/lib/components/ListItem/ListItem.test.js +37 -0
- package/lib/components/ListItem/index.js +1 -0
- package/lib/components/ListView/ListView.js +201 -0
- package/lib/components/ListView/ListView.stories.js +770 -0
- package/lib/components/ListView/ListView.test.js +285 -0
- package/lib/components/ListView/ListViewContext.js +2 -0
- package/lib/components/ListView/index.js +1 -0
- package/lib/components/ListViewItem/ListViewItem.js +95 -0
- package/lib/components/ListViewItem/index.js +1 -0
- package/lib/components/Loader/Loader.js +47 -0
- package/lib/components/Loader/Loader.stories.js +38 -0
- package/lib/components/Loader/Loader.test.js +24 -0
- package/lib/components/Loader/index.js +1 -0
- package/lib/components/Menu/Menu.js +158 -0
- package/lib/components/Menu/Menu.stories.js +86 -0
- package/lib/components/Menu/Menu.test.js +170 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/MenuItem/MenuItem.js +161 -0
- package/lib/components/MenuItem/MenuItem.test.js +165 -0
- package/lib/components/MenuItem/index.js +1 -0
- package/lib/components/Messages/Message.js +152 -0
- package/lib/components/Messages/Messages.js +53 -0
- package/lib/components/Messages/Messages.reducer.js +47 -0
- package/lib/components/Messages/Messages.stories.js +297 -0
- package/lib/components/Messages/Messages.test.js +191 -0
- package/lib/components/Messages/index.js +3 -0
- package/lib/components/Messages/utils/index.js +2 -0
- package/lib/components/Messages/utils/messagesReducer.js +140 -0
- package/lib/components/Messages/utils/multiMessagesReducer.js +98 -0
- package/lib/components/Messages/utils/tests/messagesReducer.test.js +81 -0
- package/lib/components/Messages/utils/tests/multiMessagesReducer.test.js +89 -0
- package/lib/components/Modal/Modal.js +196 -0
- package/lib/components/Modal/Modal.stories.js +97 -0
- package/lib/components/Modal/index.js +1 -0
- package/lib/components/Modal/tests/Modal.integration.test.js +77 -0
- package/lib/components/Modal/tests/Modal.unit.test.js +188 -0
- package/lib/components/MultivaluesField/MultivaluesField.js +571 -0
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +376 -0
- package/lib/components/MultivaluesField/MultivaluesField.test.js +397 -0
- package/lib/components/MultivaluesField/index.js +1 -0
- package/lib/components/NavBar/NavBar.js +63 -0
- package/lib/components/NavBar/NavBar.stories.js +260 -0
- package/lib/components/NavBar/NavBar.test.js +129 -0
- package/lib/components/NavBar/index.js +1 -0
- package/lib/components/NavBarSection/NavBarItem.js +111 -0
- package/lib/components/NavBarSection/NavBarItemBody.js +37 -0
- package/lib/components/NavBarSection/NavBarItemButton.js +70 -0
- package/lib/components/NavBarSection/NavBarItemHeader.js +73 -0
- package/lib/components/NavBarSection/NavBarItemLink.js +72 -0
- package/lib/components/NavBarSection/NavBarSection.js +69 -0
- package/lib/components/NavBarSection/index.js +4 -0
- package/lib/components/NumberField/NumberField.js +239 -0
- package/lib/components/NumberField/NumberField.stories.js +196 -0
- package/lib/components/NumberField/NumberField.test.js +143 -0
- package/lib/components/NumberField/index.js +1 -0
- package/lib/components/OverlayPanel/OverlayPanel.js +96 -0
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +192 -0
- package/lib/components/OverlayPanel/OverlayPanel.test.js +151 -0
- package/lib/components/OverlayPanel/index.js +1 -0
- package/lib/components/PageHeader/PageHeader.js +39 -0
- package/lib/components/PageHeader/PageHeader.stories.js +26 -0
- package/lib/components/PageHeader/PageHeader.test.js +23 -0
- package/lib/components/PageHeader/index.js +1 -0
- package/lib/components/PasswordField/PasswordField.js +299 -0
- package/lib/components/PasswordField/PasswordField.stories.js +373 -0
- package/lib/components/PasswordField/PasswordField.test.js +198 -0
- package/lib/components/PasswordField/index.js +1 -0
- package/lib/components/PopoverContainer/PopoverContainer.js +190 -0
- package/lib/components/PopoverContainer/PopoverContainer.test.js +44 -0
- package/lib/components/PopoverContainer/index.js +2 -0
- package/lib/components/PopoverMenu/PopoverMenu.js +160 -0
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +187 -0
- package/lib/components/PopoverMenu/PopoverMenu.test.js +157 -0
- package/lib/components/PopoverMenu/index.js +1 -0
- package/lib/components/Radio/Radio.js +20 -0
- package/lib/components/Radio/index.js +1 -0
- package/lib/components/RadioField/RadioField.js +165 -0
- package/lib/components/RadioField/RadioField.test.js +74 -0
- package/lib/components/RadioField/index.js +2 -0
- package/lib/components/RadioGroupField/RadioGroupField.js +145 -0
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +171 -0
- package/lib/components/RadioGroupField/RadioGroupField.test.js +159 -0
- package/lib/components/RadioGroupField/index.js +1 -0
- package/lib/components/RequirementsList/RequirementsList.js +95 -0
- package/lib/components/RequirementsList/RequirementsList.stories.js +57 -0
- package/lib/components/RequirementsList/RequirementsList.test.js +100 -0
- package/lib/components/RequirementsList/index.js +1 -0
- package/lib/components/RockerButton/RockerButton.js +98 -0
- package/lib/components/RockerButton/index.js +2 -0
- package/lib/components/RockerButtonGroup/RockerButtonGroup.js +90 -0
- package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +111 -0
- package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +99 -0
- package/lib/components/RockerButtonGroup/index.js +2 -0
- package/lib/components/ScrollBox/ScrollBox.js +118 -0
- package/lib/components/ScrollBox/ScrollBox.stories.js +26 -0
- package/lib/components/ScrollBox/ScrollBox.test.js +63 -0
- package/lib/components/ScrollBox/index.js +1 -0
- package/lib/components/SearchField/SearchField.js +327 -0
- package/lib/components/SearchField/SearchField.stories.js +126 -0
- package/lib/components/SearchField/SearchField.test.js +188 -0
- package/lib/components/SearchField/index.js +1 -0
- package/lib/components/SelectField/SelectField.js +149 -0
- package/lib/components/SelectField/SelectField.stories.js +373 -0
- package/lib/components/SelectField/SelectField.test.js +70 -0
- package/lib/components/SelectField/index.js +1 -0
- package/lib/components/SelectFieldBase/SelectFieldBase.js +169 -0
- package/lib/components/SelectFieldBase/SelectFieldBase.test.js +394 -0
- package/lib/components/SelectFieldBase/index.js +1 -0
- package/lib/components/Separator/Separator.js +47 -0
- package/lib/components/Separator/Separator.stories.js +26 -0
- package/lib/components/Separator/Separator.test.js +25 -0
- package/lib/components/Separator/index.js +1 -0
- package/lib/components/Stepper/Line.js +31 -0
- package/lib/components/Stepper/Step.js +38 -0
- package/lib/components/Stepper/Stepper.constants.js +5 -0
- package/lib/components/Stepper/Stepper.js +148 -0
- package/lib/components/Stepper/Stepper.stories.js +111 -0
- package/lib/components/Stepper/Stepper.test.js +202 -0
- package/lib/components/Stepper/index.js +2 -0
- package/lib/components/Switch/Switch.js +33 -0
- package/lib/components/Switch/index.js +1 -0
- package/lib/components/SwitchField/SwitchField.js +203 -0
- package/lib/components/SwitchField/SwitchField.stories.js +127 -0
- package/lib/components/SwitchField/SwitchField.test.js +101 -0
- package/lib/components/SwitchField/index.js +1 -0
- package/lib/components/Tab/Tab.js +146 -0
- package/lib/components/Tab/index.js +2 -0
- package/lib/components/TabPicker/TabPicker.js +217 -0
- package/lib/components/TabPicker/index.js +1 -0
- package/lib/components/Table/Table.js +27 -0
- package/lib/components/Table/Table.stories.js +77 -0
- package/lib/components/Table/Table.test.js +63 -0
- package/lib/components/Table/index.js +1 -0
- package/lib/components/TableBody/TableBody.js +27 -0
- package/lib/components/TableBody/index.js +1 -0
- package/lib/components/TableCell/TableCell.js +33 -0
- package/lib/components/TableCell/TableCell.test.js +37 -0
- package/lib/components/TableCell/index.js +1 -0
- package/lib/components/TableHead/TableHead.js +26 -0
- package/lib/components/TableHead/index.js +1 -0
- package/lib/components/TableRow/TableRow.js +27 -0
- package/lib/components/TableRow/index.js +1 -0
- package/lib/components/Tabs/Tabs.js +183 -0
- package/lib/components/Tabs/Tabs.stories.js +255 -0
- package/lib/components/Tabs/Tabs.test.js +551 -0
- package/lib/components/Tabs/index.js +2 -0
- package/lib/components/Text/Text.js +36 -0
- package/lib/components/Text/Text.stories.js +146 -0
- package/lib/components/Text/Text.test.js +65 -0
- package/lib/components/Text/index.js +1 -0
- package/lib/components/TextArea/TextArea.js +23 -0
- package/lib/components/TextArea/TextArea.test.js +31 -0
- package/lib/components/TextArea/index.js +1 -0
- package/lib/components/TextAreaField/TextAreaField.js +259 -0
- package/lib/components/TextAreaField/TextAreaField.stories.js +164 -0
- package/lib/components/TextAreaField/TextAreaField.test.js +136 -0
- package/lib/components/TextAreaField/index.js +1 -0
- package/lib/components/TextField/TextField.js +186 -0
- package/lib/components/TextField/TextField.stories.js +263 -0
- package/lib/components/TextField/TextField.test.js +137 -0
- package/lib/components/TextField/index.js +1 -0
- package/lib/components/TimeZonePicker/TimeZonePicker.js +254 -0
- package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +21 -0
- package/lib/components/TimeZonePicker/TimeZonePicker.test.js +80 -0
- package/lib/components/TimeZonePicker/index.js +1 -0
- package/lib/components/TimeZonePicker/timezones.js +112 -0
- package/lib/components/TooltipTrigger/Tooltip.js +33 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.js +166 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +90 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.test.js +82 -0
- package/lib/components/TooltipTrigger/index.js +2 -0
- package/lib/context/AccordionContext/index.js +7 -0
- package/lib/context/AccordionGridContext/index.js +5 -0
- package/lib/context/DataTableContext/index.js +5 -0
- package/lib/context/MenuContext/index.js +5 -0
- package/lib/context/NavBarContext/index.js +5 -0
- package/lib/context/TooltipContext/index.js +7 -0
- package/lib/hooks/index.js +16 -0
- package/lib/hooks/useAriaLabelWarning/index.js +1 -0
- package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.js +16 -0
- package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +32 -0
- package/lib/hooks/useColumnStyles/index.js +1 -0
- package/lib/hooks/useColumnStyles/useColumnStyles.js +24 -0
- package/lib/hooks/useComponentToggle/index.js +1 -0
- package/lib/hooks/useComponentToggle/useComponentToggle.js +55 -0
- package/lib/hooks/useComponentToggle/useComponentToggle.test.js +105 -0
- package/lib/hooks/useCopyToClipboard/index.js +1 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js +69 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.test.js +64 -0
- package/lib/hooks/useDebounce/index.js +1 -0
- package/lib/hooks/useDebounce/useDebounce.js +26 -0
- package/lib/hooks/useDebounce/useDebounce.test.js +41 -0
- package/lib/hooks/useDeprecationWarning/index.js +1 -0
- package/lib/hooks/useDeprecationWarning/useDeprecationWarning.js +40 -0
- package/lib/hooks/useDeprecationWarning/useDeprecationWarning.test.js +89 -0
- package/lib/hooks/useDevelopmentWarning/index.js +1 -0
- package/lib/hooks/useDevelopmentWarning/useDevelopmentWarning.js +17 -0
- package/lib/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +37 -0
- package/lib/hooks/useFallbackImage/index.js +1 -0
- package/lib/hooks/useFallbackImage/useFallbackImage.js +32 -0
- package/lib/hooks/useFallbackImage/useFallbackImage.test.js +51 -0
- package/lib/hooks/useField/index.js +1 -0
- package/lib/hooks/useField/useField.js +224 -0
- package/lib/hooks/useField/useField.test.js +236 -0
- package/lib/hooks/useImageUploadState/index.js +1 -0
- package/lib/hooks/useImageUploadState/useImageUploadState.js +128 -0
- package/lib/hooks/useLabelHeight/index.js +1 -0
- package/lib/hooks/useLabelHeight/useLabelHeight.js +29 -0
- package/lib/hooks/useModalState/index.js +1 -0
- package/lib/hooks/useModalState/useModalState.js +24 -0
- package/lib/hooks/useModalState/useModalState.test.js +118 -0
- package/lib/hooks/useNavBarPress/index.js +1 -0
- package/lib/hooks/useNavBarPress/useNavBarPress.js +27 -0
- package/lib/hooks/useNavBarPress/useNavBarPress.test.js +36 -0
- package/lib/hooks/useOverlayPanelState/index.js +1 -0
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +43 -0
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +19 -0
- package/lib/hooks/useProgressiveState/index.js +1 -0
- package/lib/hooks/useProgressiveState/useProgressiveState.js +18 -0
- package/lib/hooks/useProgressiveState/useProgressiveState.test.js +81 -0
- package/lib/hooks/usePropWarning/index.js +1 -0
- package/lib/hooks/usePropWarning/usePropWarning.js +29 -0
- package/lib/hooks/usePropWarning/usePropWarning.test.js +59 -0
- package/lib/hooks/useRockerButton/index.js +1 -0
- package/lib/hooks/useRockerButton/useRockerButton.js +43 -0
- package/lib/hooks/useSelectField/index.js +1 -0
- package/lib/hooks/useSelectField/useSelectField.js +230 -0
- package/lib/hooks/useStatusClasses/index.js +1 -0
- package/lib/hooks/useStatusClasses/useStatusClasses.js +25 -0
- package/lib/hooks/useStatusClasses/useStatusClasses.test.js +50 -0
- package/lib/index.js +157 -0
- package/lib/recipes/ApplicationSearchDropdown.stories.js +281 -0
- package/lib/recipes/Arrow.stories.js +33 -0
- package/lib/recipes/AttributeMappingReadOnlyField.stories.js +145 -0
- package/lib/recipes/AttributesAndPingOneMapping.stories.js +290 -0
- package/lib/recipes/CollapsiblePanel.stories.js +317 -0
- package/lib/recipes/ConditionalFilter.stories.js +388 -0
- package/lib/recipes/CopyToClipboard.stories.js +25 -0
- package/lib/recipes/CountryPicker.stories.js +140 -0
- package/lib/recipes/DatePicker.stories.js +121 -0
- package/lib/recipes/DraggableBox.stories.js +35 -0
- package/lib/recipes/EditableInput.stories.js +323 -0
- package/lib/recipes/FlippableCaretMenuButton.stories.js +166 -0
- package/lib/recipes/ListAndPanel.stories.js +339 -0
- package/lib/recipes/LogoTabs.stories.js +201 -0
- package/lib/recipes/MaskedValue.stories.js +66 -0
- package/lib/recipes/NeutralInput.stories.js +16 -0
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +236 -0
- package/lib/recipes/PageHeader.stories.js +53 -0
- package/lib/recipes/PanelHeader.stories.js +70 -0
- package/lib/recipes/RadioButtonsWithLinks.stories.js +120 -0
- package/lib/recipes/RowLineChart.stories.js +495 -0
- package/lib/recipes/ScrollableListView.stories.js +113 -0
- package/lib/recipes/SelectedFieldOverlay.story.js +48 -0
- package/lib/recipes/Slider.stories.js +208 -0
- package/lib/recipes/StatsCircle.stories.js +28 -0
- package/lib/recipes/TrialExperienceIndustryButtons.stories.js +677 -0
- package/lib/recipes/TrialExperienceStatusBar.stories.js +300 -0
- package/lib/styles/ColorDocumentation.js +276 -0
- package/lib/styles/ColorDocumentation.stories.js +13 -0
- package/lib/styles/ContainerSizes.stories.js +76 -0
- package/lib/styles/Spacing.stories.js +52 -0
- package/lib/styles/ThemeDocumentation.js +7 -0
- package/lib/styles/Typography.stories.js +136 -0
- package/lib/styles/breakpoints.js +1 -0
- package/lib/styles/colors.js +159 -0
- package/lib/styles/forms/checkbox.js +12 -0
- package/lib/styles/forms/comboBox.js +27 -0
- package/lib/styles/forms/index.js +32 -0
- package/lib/styles/forms/input.js +198 -0
- package/lib/styles/forms/label.js +75 -0
- package/lib/styles/forms/radio.js +21 -0
- package/lib/styles/forms/search.js +20 -0
- package/lib/styles/forms/select.js +83 -0
- package/lib/styles/forms/switch.js +58 -0
- package/lib/styles/forms/textarea.js +25 -0
- package/lib/styles/spacing.js +20 -0
- package/lib/styles/text.js +29 -0
- package/lib/styles/theme.js +61 -0
- package/lib/styles/themeOverrides/index.js +1 -0
- package/lib/styles/themeOverrides/uiLibraryOverride.js +110 -0
- package/lib/styles/themes/astro-nano/astro-nano.js +141 -0
- package/lib/styles/themes/astro-nano/index.js +1 -0
- package/lib/styles/themes/end-user/end-user.js +259 -0
- package/lib/styles/themes/end-user/index.js +1 -0
- package/lib/styles/useAstroTheme.js +15 -0
- package/lib/styles/variants/accordion.js +135 -0
- package/lib/styles/variants/bidirectionalIconButton.js +34 -0
- package/lib/styles/variants/boxes.js +370 -0
- package/lib/styles/variants/buttons.js +733 -0
- package/lib/styles/variants/codeView.js +159 -0
- package/lib/styles/variants/collapsiblePanel.js +80 -0
- package/lib/styles/variants/imageUpload.js +19 -0
- package/lib/styles/variants/images.js +9 -0
- package/lib/styles/variants/index.js +6 -0
- package/lib/styles/variants/links.js +46 -0
- package/lib/styles/variants/listBox.js +40 -0
- package/lib/styles/variants/loader.js +75 -0
- package/lib/styles/variants/menu.js +10 -0
- package/lib/styles/variants/menuItem.js +26 -0
- package/lib/styles/variants/messages.js +43 -0
- package/lib/styles/variants/modal.js +65 -0
- package/lib/styles/variants/navBar.js +56 -0
- package/lib/styles/variants/numberField.js +42 -0
- package/lib/styles/variants/overlayPanel.js +63 -0
- package/lib/styles/variants/popoverMenu.js +89 -0
- package/lib/styles/variants/rockerbutton.js +15 -0
- package/lib/styles/variants/separator.js +45 -0
- package/lib/styles/variants/stepper.js +105 -0
- package/lib/styles/variants/table.js +51 -0
- package/lib/styles/variants/tabs.js +36 -0
- package/lib/styles/variants/text.js +349 -0
- package/lib/styles/variants/tooltip.js +6 -0
- package/lib/styles/variants/variants.js +64 -0
- package/lib/templates/Nav/HeaderBar.js +93 -0
- package/lib/templates/Nav/Nav.stories.js +88 -0
- package/lib/templates/Nav/NavData.js +231 -0
- package/lib/utils/devUtils/constants/animals.js +1 -0
- package/lib/utils/devUtils/constants/firstNames.js +1 -0
- package/lib/utils/devUtils/constants/htmlElements.js +4 -0
- package/lib/utils/devUtils/constants/images.js +2 -0
- package/lib/utils/devUtils/constants/loadingStates.js +8 -0
- package/lib/utils/devUtils/constants/orientation.js +4 -0
- package/lib/utils/devUtils/constants/panelSizes.js +1 -0
- package/lib/utils/devUtils/constants/statuses.js +6 -0
- package/lib/utils/devUtils/constants/variants.js +22 -0
- package/lib/utils/devUtils/createMockData.js +68 -0
- package/lib/utils/devUtils/decorators/withDeprecationWarning.js +18 -0
- package/lib/utils/devUtils/props/isIterable.js +59 -0
- package/lib/utils/devUtils/props/isValidPositiveInt.js +28 -0
- package/lib/utils/devUtils/styledSystemUtils.js +48 -0
- package/lib/utils/styleUtils/index.js +7 -0
- package/lib/utils/testUtils/setupTests.js +18 -0
- package/lib/utils/testUtils/testAxe.js +50 -0
- package/lib/utils/testUtils/testTheme.js +20 -0
- package/lib/utils/testUtils/testWrapper.js +67 -0
- package/package.json +1 -1
@@ -0,0 +1,38 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import TrashIcon from 'mdi-react/TrashIcon';
|
4
|
+
import Icon from '../Icon';
|
5
|
+
import IconButton from '../IconButton';
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
|
+
|
8
|
+
var ArrayFieldDeleteButton = function ArrayFieldDeleteButton(_ref) {
|
9
|
+
var isDisabled = _ref.isDisabled,
|
10
|
+
id = _ref.id,
|
11
|
+
onDelete = _ref.onDelete;
|
12
|
+
return ___EmotionJSX(IconButton, {
|
13
|
+
onPress: function onPress() {
|
14
|
+
return onDelete(id);
|
15
|
+
},
|
16
|
+
isDisabled: isDisabled,
|
17
|
+
"aria-label": "delete-button",
|
18
|
+
sx: {
|
19
|
+
position: 'absolute',
|
20
|
+
right: -35,
|
21
|
+
width: 32,
|
22
|
+
height: 32,
|
23
|
+
top: 5,
|
24
|
+
cursor: 'pointer'
|
25
|
+
}
|
26
|
+
}, ___EmotionJSX(Icon, {
|
27
|
+
icon: TrashIcon,
|
28
|
+
size: 20,
|
29
|
+
color: "neutral.40"
|
30
|
+
}));
|
31
|
+
};
|
32
|
+
|
33
|
+
ArrayFieldDeleteButton.propTypes = {
|
34
|
+
id: PropTypes.number,
|
35
|
+
isDisabled: PropTypes.bool,
|
36
|
+
onDelete: PropTypes.func
|
37
|
+
};
|
38
|
+
export default ArrayFieldDeleteButton;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
2
|
+
var _excluded = ["id", "onComponentRender", "fieldValue", "isDisabled", "onFieldDelete", "onFieldValueChange", "renderField"];
|
3
|
+
import React from 'react';
|
4
|
+
import PropTypes from 'prop-types';
|
5
|
+
import Box from '../Box';
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
|
+
var ArrayFieldItem = /*#__PURE__*/React.memo(function (_ref) {
|
8
|
+
var id = _ref.id,
|
9
|
+
onComponentRender = _ref.onComponentRender,
|
10
|
+
fieldValue = _ref.fieldValue,
|
11
|
+
isDisabled = _ref.isDisabled,
|
12
|
+
onFieldDelete = _ref.onFieldDelete,
|
13
|
+
onFieldValueChange = _ref.onFieldValueChange,
|
14
|
+
renderField = _ref.renderField,
|
15
|
+
otherFieldProps = _objectWithoutProperties(_ref, _excluded);
|
16
|
+
|
17
|
+
return ___EmotionJSX(Box, {
|
18
|
+
as: "li",
|
19
|
+
mb: "xs"
|
20
|
+
}, onComponentRender ? onComponentRender(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps) : renderField(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps));
|
21
|
+
});
|
22
|
+
ArrayFieldItem.propTypes = {
|
23
|
+
id: PropTypes.string,
|
24
|
+
onComponentRender: PropTypes.func,
|
25
|
+
fieldValue: PropTypes.string,
|
26
|
+
isDisabled: PropTypes.bool,
|
27
|
+
onFieldDelete: PropTypes.func,
|
28
|
+
onFieldValueChange: PropTypes.func,
|
29
|
+
renderField: PropTypes.func
|
30
|
+
};
|
31
|
+
export default ArrayFieldItem;
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
4
|
+
var _excluded = ["defaultTheme", "themeOverrides", "children"],
|
5
|
+
_excluded2 = ["defaultTheme", "themeOverrides", "children"];
|
6
|
+
|
7
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
8
|
+
|
9
|
+
import React, { forwardRef, useMemo } from 'react';
|
10
|
+
import PropTypes from 'prop-types';
|
11
|
+
import { ThemeProvider, merge } from 'theme-ui';
|
12
|
+
import { Global, css } from '@emotion/react';
|
13
|
+
import emotionNormalize from 'emotion-normalize';
|
14
|
+
import Box from '../Box';
|
15
|
+
import astroTheme from '../../styles/theme';
|
16
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
17
|
+
export var GlobalStyles = function GlobalStyles() {
|
18
|
+
return ___EmotionJSX(Global, {
|
19
|
+
styles: /*#__PURE__*/css("@import url(\"https://use.typekit.net/icz8cni.css\");{}", emotionNormalize, " *{box-sizing:border-box;}html,body{padding:0;margin:0;background:white;min-height:100%;font-family:\"Helvetica Neue\",Helvetica,sans-serif;}.is-disabled{opacity:0.5;pointer-events:none;}" + (process.env.NODE_ENV === "production" ? "" : ";label:GlobalStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSwibmFtZXMiOltd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0aW5nICovXG4gIGRlZmF1bHRUaGVtZTogUHJvcFR5cGVzLnNoYXBlKHt9KSxcbn07XG5cblBhZ2VXcmFwcGVyLmRlZmF1bHRQcm9wcyA9IHtcbiAgZGVmYXVsdFRoZW1lOiBhc3Ryb1RoZW1lLFxuICB0aGVtZU92ZXJyaWRlczogW3t9XSxcbn07XG5cbmV4cG9ydCB7IFRoZW1lUHJvdmlkZXIgfTtcbmV4cG9ydCBkZWZhdWx0IEFzdHJvV3JhcHBlcjtcbiJdfQ== */")
|
20
|
+
});
|
21
|
+
};
|
22
|
+
/**
|
23
|
+
* The main wrapper for the Astro application.
|
24
|
+
* The AstroWrapper provides a standard background,
|
25
|
+
* some global styles, and the Astro theme by default.
|
26
|
+
*
|
27
|
+
* _Note: For UI Library and Astro CSS conflicts, we supply a theme override located at_
|
28
|
+
* `@pingux/astro/lib/styles/themeOverrides/uiLibraryOverride.js`
|
29
|
+
*/
|
30
|
+
|
31
|
+
var AstroWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
32
|
+
var defaultTheme = props.defaultTheme,
|
33
|
+
themeOverrides = props.themeOverrides,
|
34
|
+
children = props.children,
|
35
|
+
others = _objectWithoutProperties(props, _excluded); // Unfortunately because this is adding styles, we cannot write a proper test for this.
|
36
|
+
|
37
|
+
/* istanbul ignore next */
|
38
|
+
|
39
|
+
|
40
|
+
var theme = useMemo(function () {
|
41
|
+
var _context;
|
42
|
+
|
43
|
+
return merge.apply(void 0, _concatInstanceProperty(_context = [defaultTheme]).call(_context, themeOverrides));
|
44
|
+
}, [defaultTheme, themeOverrides]);
|
45
|
+
return ___EmotionJSX(ThemeProvider, _extends({
|
46
|
+
ref: ref,
|
47
|
+
theme: theme
|
48
|
+
}, others), ___EmotionJSX(GlobalStyles, null), ___EmotionJSX(Box, _extends({
|
49
|
+
bg: "background",
|
50
|
+
height: "100%"
|
51
|
+
}, props), children));
|
52
|
+
});
|
53
|
+
AstroWrapper.propTypes = {
|
54
|
+
/** Array of theme objects which will be merged with the default theme.
|
55
|
+
* In the case of clashes, these will take priority.
|
56
|
+
* Useful for customizing the default variants, adding new ones,
|
57
|
+
* or overriding other theme values. */
|
58
|
+
themeOverrides: PropTypes.arrayOf(PropTypes.shape({})),
|
59
|
+
|
60
|
+
/** The default theme applied to the Astro components.
|
61
|
+
* Overriding this is an advanced use case so
|
62
|
+
* please understand potential reprecussions before editing */
|
63
|
+
defaultTheme: PropTypes.shape({})
|
64
|
+
};
|
65
|
+
AstroWrapper.defaultProps = {
|
66
|
+
defaultTheme: astroTheme,
|
67
|
+
themeOverrides: [{}]
|
68
|
+
};
|
69
|
+
/**
|
70
|
+
* Wrapper for the Astro application w/o global styles.
|
71
|
+
* It provides the standard background and the Astro theme.
|
72
|
+
*/
|
73
|
+
|
74
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
75
|
+
name: "1ym5lsq",
|
76
|
+
styles: "@import url(\"https://use.typekit.net/icz8cni.css\");{}[data-tippy-root]{max-width:calc(100vw - 10px);}"
|
77
|
+
} : {
|
78
|
+
name: "1385fa1-PageWrapper",
|
79
|
+
styles: "@import url(\"https://use.typekit.net/icz8cni.css\");{}[data-tippy-root]{max-width:calc(100vw - 10px);};label:PageWrapper;",
|
80
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0dLIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10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leHBvcnQgZGVmYXVsdCBBc3Ryb1dyYXBwZXI7XG4iXX0= */",
|
81
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
82
|
+
};
|
83
|
+
|
84
|
+
export var PageWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
85
|
+
var defaultTheme = props.defaultTheme,
|
86
|
+
themeOverrides = props.themeOverrides,
|
87
|
+
children = props.children,
|
88
|
+
others = _objectWithoutProperties(props, _excluded2);
|
89
|
+
|
90
|
+
var theme = useMemo(function () {
|
91
|
+
var _context2;
|
92
|
+
|
93
|
+
return merge.apply(void 0, _concatInstanceProperty(_context2 = [defaultTheme]).call(_context2, themeOverrides));
|
94
|
+
}, [defaultTheme, themeOverrides]);
|
95
|
+
return ___EmotionJSX(ThemeProvider, _extends({
|
96
|
+
ref: ref,
|
97
|
+
theme: theme
|
98
|
+
}, others), ___EmotionJSX(Global, {
|
99
|
+
styles: _ref
|
100
|
+
}), ___EmotionJSX(Box, _extends({
|
101
|
+
css: /*#__PURE__*/css(emotionNormalize, " *{box-sizing:border-box;font-family:\"Helvetica Neue\",Helvetica,sans-serif;.is-disabled{opacity:0.5;pointer-events:none;}}" + (process.env.NODE_ENV === "production" ? "" : ";label:PageWrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0dLIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVH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VtZVByb3ZpZGVyIH07XG5leHBvcnQgZGVmYXVsdCBBc3Ryb1dyYXBwZXI7XG4iXX0= */")
|
102
|
+
}, props), children));
|
103
|
+
});
|
104
|
+
PageWrapper.propTypes = {
|
105
|
+
/** Array of theme objects which will be merged with the default theme.
|
106
|
+
* In the case of clashes, these will take priority.
|
107
|
+
* Useful for customizing the default variants, adding new ones,
|
108
|
+
* or overriding other theme values. */
|
109
|
+
themeOverrides: PropTypes.arrayOf(PropTypes.shape({})),
|
110
|
+
|
111
|
+
/** The default theme applied to the Astro components.
|
112
|
+
* Overriding this is an advanced use case so
|
113
|
+
* please understand potential reprecussions before editing */
|
114
|
+
defaultTheme: PropTypes.shape({})
|
115
|
+
};
|
116
|
+
PageWrapper.defaultProps = {
|
117
|
+
defaultTheme: astroTheme,
|
118
|
+
themeOverrides: [{}]
|
119
|
+
};
|
120
|
+
export { ThemeProvider };
|
121
|
+
export default AstroWrapper;
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { AstroWrapper, Button, Text } from '../../index';
|
3
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
4
|
+
export default {
|
5
|
+
title: 'AstroWrapper',
|
6
|
+
component: AstroWrapper,
|
7
|
+
decorators: [function (Story) {
|
8
|
+
return ___EmotionJSX("div", null, ___EmotionJSX(Story, null));
|
9
|
+
}]
|
10
|
+
};
|
11
|
+
export var Default = function Default() {
|
12
|
+
return ___EmotionJSX(AstroWrapper, {
|
13
|
+
bg: "transparent",
|
14
|
+
alignItems: "flex-start"
|
15
|
+
}, ___EmotionJSX(Text, {
|
16
|
+
variant: "title",
|
17
|
+
mb: "sm"
|
18
|
+
}, "Title Text"), ___EmotionJSX(Text, {
|
19
|
+
variant: "body",
|
20
|
+
mb: "sm"
|
21
|
+
}, "Body text"), ___EmotionJSX(Button, {
|
22
|
+
variant: "primary"
|
23
|
+
}, "Primary Button"));
|
24
|
+
};
|
25
|
+
export var WithCustomThemeOverride = function WithCustomThemeOverride() {
|
26
|
+
var myNewColors = {
|
27
|
+
primary: '#183446',
|
28
|
+
secondary: '#046E8F'
|
29
|
+
};
|
30
|
+
var myCustomBranding = {
|
31
|
+
buttons: {
|
32
|
+
primary: {
|
33
|
+
bg: myNewColors.primary,
|
34
|
+
border: 'none',
|
35
|
+
display: 'inline',
|
36
|
+
'&:hover': {
|
37
|
+
bg: '#0090C1',
|
38
|
+
border: 'none'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
text: {
|
43
|
+
title: {
|
44
|
+
color: myNewColors.secondary
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
48
|
+
return ___EmotionJSX(AstroWrapper, {
|
49
|
+
themeOverrides: [myCustomBranding],
|
50
|
+
bg: "transparent",
|
51
|
+
alignItems: "flex-start"
|
52
|
+
}, ___EmotionJSX(Text, {
|
53
|
+
variant: "title",
|
54
|
+
mb: "sm"
|
55
|
+
}, "This is the heading variant with a custom theme applied. "), ___EmotionJSX(Text, {
|
56
|
+
variant: "body",
|
57
|
+
mb: "sm"
|
58
|
+
}, "The body variant is not mentioned in the custom theme, so it inherits styles from the default Astro theme."), ___EmotionJSX(Button, {
|
59
|
+
variant: "primary"
|
60
|
+
}, "This is a primary button with custom theme."));
|
61
|
+
};
|
62
|
+
WithCustomThemeOverride.story = {
|
63
|
+
parameters: {
|
64
|
+
docs: {
|
65
|
+
storyDescription: 'Pass an array containing your theme override objects to the `themeOverrides` prop.'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { render, screen } from '@testing-library/react';
|
3
|
+
import { AstroWrapper, Box } from '../../index';
|
4
|
+
import axeTest from '../../utils/testUtils/testAxe';
|
5
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
6
|
+
var testId = 'test-box';
|
7
|
+
var defaultProps = {
|
8
|
+
bg: 'active',
|
9
|
+
'data-testid': testId
|
10
|
+
};
|
11
|
+
|
12
|
+
var getComponent = function getComponent() {
|
13
|
+
return render(___EmotionJSX(Box, defaultProps), {
|
14
|
+
wrapper: AstroWrapper
|
15
|
+
});
|
16
|
+
}; // Need to be added to each test file to test accessibility using axe.
|
17
|
+
|
18
|
+
|
19
|
+
axeTest(getComponent);
|
20
|
+
test('should provide theme styling through AstroWrapper', function () {
|
21
|
+
getComponent();
|
22
|
+
var box = screen.queryByTestId(testId);
|
23
|
+
expect(box).toBeInstanceOf(HTMLDivElement);
|
24
|
+
expect(box).toBeInTheDocument();
|
25
|
+
expect(box).toHaveStyle('background-color: active');
|
26
|
+
});
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { render, screen } from '@testing-library/react';
|
3
|
+
import { PageWrapper, Box } from '../../index';
|
4
|
+
import axeTest from '../../utils/testUtils/testAxe';
|
5
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
6
|
+
var testId = 'test-box';
|
7
|
+
var defaultProps = {
|
8
|
+
bg: 'active',
|
9
|
+
'data-testid': testId
|
10
|
+
};
|
11
|
+
|
12
|
+
var getComponent = function getComponent() {
|
13
|
+
return render(___EmotionJSX(Box, defaultProps), {
|
14
|
+
wrapper: PageWrapper
|
15
|
+
});
|
16
|
+
}; // Need to be added to each test file to test accessibility using axe.
|
17
|
+
|
18
|
+
|
19
|
+
axeTest(getComponent); // NOTE: This will fail if in the AstroWrapper test file...
|
20
|
+
// Probably something to do with Jest / RTL
|
21
|
+
|
22
|
+
test('should provide theme styling through PageWrapper', function () {
|
23
|
+
getComponent();
|
24
|
+
var box = screen.queryByTestId(testId);
|
25
|
+
expect(box).toBeInstanceOf(HTMLDivElement);
|
26
|
+
expect(box).toBeInTheDocument();
|
27
|
+
expect(box).toHaveStyle('background-color: active');
|
28
|
+
});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import React, { forwardRef } from 'react';
|
3
|
+
import PropTypes from 'prop-types';
|
4
|
+
import { Avatar as ThemeUIAvatar } from 'theme-ui';
|
5
|
+
/**
|
6
|
+
* Basic avatar component.
|
7
|
+
* Built on top of [Avatar from Theme-UI](https://theme-ui.com/components/avatar/).
|
8
|
+
*/
|
9
|
+
|
10
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
11
|
+
var Avatar = /*#__PURE__*/forwardRef(function (props, ref) {
|
12
|
+
return ___EmotionJSX(ThemeUIAvatar, _extends({
|
13
|
+
ref: ref
|
14
|
+
}, props));
|
15
|
+
});
|
16
|
+
Avatar.propTypes = {
|
17
|
+
/** Source of avatar. */
|
18
|
+
src: PropTypes.string.isRequired,
|
19
|
+
|
20
|
+
/** Alternative text for avatar. */
|
21
|
+
alt: PropTypes.string
|
22
|
+
};
|
23
|
+
Avatar.defaultProps = {
|
24
|
+
alt: 'Avatar'
|
25
|
+
};
|
26
|
+
Avatar.displayName = 'Avatar';
|
27
|
+
export default Avatar;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import React from 'react';
|
3
|
+
import Avatar from '.';
|
4
|
+
import { pingImg } from '../../utils/devUtils/constants/images';
|
5
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
6
|
+
export default {
|
7
|
+
title: 'Avatar',
|
8
|
+
component: Avatar,
|
9
|
+
argTypes: {
|
10
|
+
src: {
|
11
|
+
control: {
|
12
|
+
type: 'none'
|
13
|
+
},
|
14
|
+
defaultValue: pingImg
|
15
|
+
}
|
16
|
+
}
|
17
|
+
};
|
18
|
+
export var Default = function Default(_ref) {
|
19
|
+
var args = _extends({}, _ref);
|
20
|
+
|
21
|
+
return ___EmotionJSX(Avatar, args);
|
22
|
+
};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import React from 'react';
|
3
|
+
import { faker } from '@faker-js/faker';
|
4
|
+
import axeTest from '../../utils/testUtils/testAxe';
|
5
|
+
import { render, screen } from '../../utils/testUtils/testWrapper';
|
6
|
+
import Avatar from '.';
|
7
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
|
+
var defaultProps = {
|
9
|
+
src: faker.image.lorempicsum.imageUrl(150, 150, false, 0, '1')
|
10
|
+
};
|
11
|
+
|
12
|
+
var getComponent = function getComponent() {
|
13
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
14
|
+
return render(___EmotionJSX(Avatar, _extends({}, defaultProps, props)));
|
15
|
+
}; // Need to be added to each test file to test accessibility using axe.
|
16
|
+
|
17
|
+
|
18
|
+
axeTest(getComponent);
|
19
|
+
test('an avatar is rendered', function () {
|
20
|
+
getComponent();
|
21
|
+
var img = screen.getByRole('img');
|
22
|
+
expect(img).toBeInstanceOf(HTMLImageElement);
|
23
|
+
expect(img).toBeInTheDocument();
|
24
|
+
expect(img).toHaveAttribute('alt', 'Avatar');
|
25
|
+
});
|
26
|
+
test('an avatar is rendered with custom alt', function () {
|
27
|
+
getComponent({
|
28
|
+
alt: 'Custom Alt'
|
29
|
+
});
|
30
|
+
var img = screen.getByRole('img');
|
31
|
+
expect(img).toHaveAttribute('alt', 'Custom Alt');
|
32
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './Avatar';
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
2
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
3
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
4
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
5
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
6
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
7
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
8
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
9
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
10
|
+
import _Number$isNaN from "@babel/runtime-corejs3/core-js-stable/number/is-nan";
|
11
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
12
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
13
|
+
import _styled from "@emotion/styled/base";
|
14
|
+
var _excluded = ["flexDirection", "gap", "isRow", "isDisabled", "className", "fontSize", "sx"];
|
15
|
+
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
17
|
+
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
19
|
+
|
20
|
+
import React, { forwardRef, useMemo } from 'react';
|
21
|
+
import PropTypes from 'prop-types';
|
22
|
+
import { layout, flexbox, typography } from 'styled-system';
|
23
|
+
import { Box as ThemeUIBox } from 'theme-ui';
|
24
|
+
import { propType as stylePropType } from '@styled-system/prop-types';
|
25
|
+
import { toNumber } from 'lodash';
|
26
|
+
import { useStatusClasses, usePropWarning } from '../../hooks';
|
27
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
28
|
+
|
29
|
+
var ExtendedBox = /*#__PURE__*/_styled(ThemeUIBox, process.env.NODE_ENV === "production" ? {
|
30
|
+
target: "e146bxl90"
|
31
|
+
} : {
|
32
|
+
target: "e146bxl90",
|
33
|
+
label: "ExtendedBox"
|
34
|
+
})(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3guanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBU29CIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3guanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBsYXlvdXQsIGZsZXhib3gsIHR5cG9ncmFwaHkgfSBmcm9tICdzdHlsZWQtc3lzdGVtJztcbmltcG9ydCB7IEJveCBhcyBUaGVtZVVJQm94IH0gZnJvbSAndGhlbWUtdWknO1xuaW1wb3J0IHsgcHJvcFR5cGUgYXMgc3R5bGVQcm9wVHlwZSB9IGZyb20gJ0BzdHlsZWQtc3lzdGVtL3Byb3AtdHlwZXMnO1xuaW1wb3J0IHsgdG9OdW1iZXIgfSBmcm9tICdsb2Rhc2gnO1xuaW1wb3J0IHsgdXNlU3RhdHVzQ2xhc3NlcywgdXNlUHJvcFdhcm5pbmcgfSBmcm9tICcuLi8uLi9ob29rcyc7XG5cbmNvbnN0IEV4dGVuZGVkQm94ID0gc3R5bGVkKFRoZW1lVUlCb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FtQcm9wVHlwZXMuYm9vbCwgUHJvcFR5cGVzLm9iamVjdF0pLFxuICAvKiogVGhlIGJhc2UgSFRNTCB0YWcgbmFtZSBvciBSZWFjdCBjb21wb25lbnQgdHlwZSB0byByZW5kZXIgKi9cbiAgYXM6IFByb3BUeXBlcy5vbmVPZlR5cGUoW1Byb3BUeXBlcy5zdHJpbmcsIFByb3BUeXBlcy5lbGVtZW50VHlwZV0pLFxuICAvKiogV2hlbiB0cnVlLCBkaXNwbGF5IGFzIGEgcm93IHJhdGhlciB0aGFuIGEgY29sdW1uLiAqL1xuICBpc1JvdzogUHJvcFR5cGVzLmJvb2wsXG4gIC8qKiBHYXAgYmV0d2VlbiBpdGVtcywgd2hldGhlciBpbiBhIHJvdyBvciBjb2x1bW4uICovXG4gIGdhcDogc3R5bGVQcm9wVHlwZSxcbiAgZm9udFNpemU6IFByb3BUeXBlcy5vbmVPZlR5cGUoW1Byb3BUeXBlcy5zdHJpbmcsIFByb3BUeXBlcy5udW1iZXJdKSxcbn07XG5cbkJveC5kZWZhdWx0UHJvcHMgPSB7XG4gIGFzOiAnZGl2JyxcbiAgaXNSb3c6IGZhbHNlLFxuICBpc0Rpc2FibGVkOiBmYWxzZSxcbn07XG5cbkJveC5kaXNwbGF5TmFtZSA9ICdCb3gnO1xuXG5leHBvcnQgZGVmYXVsdCBCb3g7XG4iXX0= */");
|
35
|
+
/**
|
36
|
+
* Basic flexbox-based layout component for creating rows and columns,
|
37
|
+
* while controlling sizes and spacing.
|
38
|
+
* Accepts most of the styling props from [styled-system](https://styled-system.com/table).
|
39
|
+
* Built on top of the [Box from Theme-UI](https://theme-ui.com/components/box/).
|
40
|
+
*/
|
41
|
+
|
42
|
+
|
43
|
+
var Box = /*#__PURE__*/forwardRef(function (props, ref) {
|
44
|
+
var flexDirection = props.flexDirection,
|
45
|
+
gap = props.gap,
|
46
|
+
isRow = props.isRow,
|
47
|
+
isDisabled = props.isDisabled,
|
48
|
+
className = props.className,
|
49
|
+
fontSize = props.fontSize,
|
50
|
+
sx = props.sx,
|
51
|
+
others = _objectWithoutProperties(props, _excluded);
|
52
|
+
|
53
|
+
var fd = flexDirection || isRow ? 'row' : 'column';
|
54
|
+
|
55
|
+
var custom = _objectSpread({}, sx);
|
56
|
+
|
57
|
+
var _useStatusClasses = useStatusClasses(className, {
|
58
|
+
isDisabled: isDisabled
|
59
|
+
}),
|
60
|
+
classNames = _useStatusClasses.classNames;
|
61
|
+
|
62
|
+
usePropWarning(props, 'disabled', 'isDisabled');
|
63
|
+
|
64
|
+
if (gap) {
|
65
|
+
custom['& > * + *:not(:first-child) /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */'] = _defineProperty({}, fd === 'row' ? 'marginLeft' : 'marginTop', gap);
|
66
|
+
}
|
67
|
+
|
68
|
+
var customFontSize = useMemo(function () {
|
69
|
+
var numericalFontSize = toNumber(fontSize);
|
70
|
+
|
71
|
+
if (_Number$isNaN(numericalFontSize)) {
|
72
|
+
return fontSize;
|
73
|
+
}
|
74
|
+
|
75
|
+
return numericalFontSize;
|
76
|
+
}, [fontSize]);
|
77
|
+
return ___EmotionJSX(ExtendedBox, _extends({
|
78
|
+
className: classNames,
|
79
|
+
ref: ref,
|
80
|
+
display: "flex",
|
81
|
+
flexDirection: fd,
|
82
|
+
variant: "boxes.base",
|
83
|
+
fontSize: customFontSize
|
84
|
+
}, others, {
|
85
|
+
sx: custom
|
86
|
+
}));
|
87
|
+
});
|
88
|
+
Box.propTypes = {
|
89
|
+
/** The background color of the box. */
|
90
|
+
bg: PropTypes.string,
|
91
|
+
|
92
|
+
/** Whether the box is disabled. */
|
93
|
+
isDisabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
|
94
|
+
|
95
|
+
/** The base HTML tag name or React component type to render */
|
96
|
+
as: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
97
|
+
|
98
|
+
/** When true, display as a row rather than a column. */
|
99
|
+
isRow: PropTypes.bool,
|
100
|
+
|
101
|
+
/** Gap between items, whether in a row or column. */
|
102
|
+
gap: stylePropType,
|
103
|
+
fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
104
|
+
};
|
105
|
+
Box.defaultProps = {
|
106
|
+
as: 'div',
|
107
|
+
isRow: false,
|
108
|
+
isDisabled: false
|
109
|
+
};
|
110
|
+
Box.displayName = 'Box';
|
111
|
+
export default Box;
|