@pingux/astro 1.27.0-alpha.21 → 1.27.0-alpha.22
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/package.json +1 -1
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +0 -239
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +0 -353
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +0 -303
- package/lib/cjs/components/AccordionGridGroup/index.js +0 -18
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +0 -132
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +0 -112
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +0 -154
- package/lib/cjs/components/AccordionGridItem/index.js +0 -18
- package/lib/cjs/components/AccordionGroup/AccordionGroup.js +0 -112
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +0 -253
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +0 -302
- package/lib/cjs/components/AccordionGroup/index.js +0 -18
- package/lib/cjs/components/AccordionItem/AccordionItem.js +0 -157
- package/lib/cjs/components/AccordionItem/index.js +0 -18
- package/lib/cjs/components/ArrayField/ArrayField.js +0 -279
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +0 -274
- package/lib/cjs/components/ArrayField/ArrayField.test.js +0 -252
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +0 -56
- package/lib/cjs/components/ArrayField/ArrayFieldItem.js +0 -50
- package/lib/cjs/components/ArrayField/index.js +0 -27
- package/lib/cjs/components/AstroWrapper/AstroWrapper.js +0 -162
- package/lib/cjs/components/AstroWrapper/AstroWrapper.stories.js +0 -90
- package/lib/cjs/components/AstroWrapper/AstroWrapper.test.js +0 -37
- package/lib/cjs/components/AstroWrapper/PageWrapper.test.js +0 -39
- package/lib/cjs/components/AstroWrapper/index.js +0 -47
- package/lib/cjs/components/Avatar/Avatar.js +0 -54
- package/lib/cjs/components/Avatar/Avatar.stories.js +0 -42
- package/lib/cjs/components/Avatar/Avatar.test.js +0 -47
- package/lib/cjs/components/Avatar/index.js +0 -18
- package/lib/cjs/components/Box/Box.js +0 -148
- package/lib/cjs/components/Box/Box.stories.js +0 -278
- package/lib/cjs/components/Box/Box.test.js +0 -79
- package/lib/cjs/components/Box/index.js +0 -18
- package/lib/cjs/components/Bracket/Bracket.js +0 -118
- package/lib/cjs/components/Bracket/Bracket.stories.js +0 -92
- package/lib/cjs/components/Bracket/Bracket.test.js +0 -47
- package/lib/cjs/components/Bracket/index.js +0 -18
- package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +0 -149
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +0 -130
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +0 -98
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +0 -121
- package/lib/cjs/components/Breadcrumbs/index.js +0 -27
- package/lib/cjs/components/Button/Button.js +0 -226
- package/lib/cjs/components/Button/Button.stories.js +0 -158
- package/lib/cjs/components/Button/Button.test.js +0 -156
- package/lib/cjs/components/Button/constants.js +0 -14
- package/lib/cjs/components/Button/index.js +0 -18
- package/lib/cjs/components/Card/Card.js +0 -43
- package/lib/cjs/components/Card/Card.stories.js +0 -52
- package/lib/cjs/components/Card/Card.test.js +0 -48
- package/lib/cjs/components/Card/index.js +0 -18
- package/lib/cjs/components/Checkbox/Checkbox.js +0 -48
- package/lib/cjs/components/Checkbox/Checkbox.test.js +0 -36
- package/lib/cjs/components/Checkbox/index.js +0 -18
- package/lib/cjs/components/CheckboxField/CheckboxField.js +0 -217
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +0 -167
- package/lib/cjs/components/CheckboxField/CheckboxField.test.js +0 -116
- package/lib/cjs/components/CheckboxField/index.js +0 -18
- package/lib/cjs/components/Chip/Chip.js +0 -94
- package/lib/cjs/components/Chip/Chip.stories.js +0 -160
- package/lib/cjs/components/Chip/Chip.test.js +0 -57
- package/lib/cjs/components/Chip/ChipContext.js +0 -19
- package/lib/cjs/components/Chip/index.js +0 -18
- package/lib/cjs/components/CodeView/CodeView.js +0 -188
- package/lib/cjs/components/CodeView/CodeView.stories.js +0 -122
- package/lib/cjs/components/CodeView/CodeView.test.js +0 -206
- package/lib/cjs/components/CodeView/index.js +0 -18
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +0 -155
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +0 -384
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.test.js +0 -83
- package/lib/cjs/components/CollapsiblePanel/index.js +0 -18
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +0 -49
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +0 -48
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +0 -145
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +0 -112
- package/lib/cjs/components/CollapsiblePanelContainer/index.js +0 -18
- package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.js +0 -85
- package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +0 -65
- package/lib/cjs/components/CollapsiblePanelItem/index.js +0 -18
- package/lib/cjs/components/ColorField/ColorField.js +0 -223
- package/lib/cjs/components/ColorField/ColorField.stories.js +0 -132
- package/lib/cjs/components/ColorField/ColorField.test.js +0 -71
- package/lib/cjs/components/ColorField/index.js +0 -18
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +0 -226
- package/lib/cjs/components/ComboBox/index.js +0 -18
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +0 -483
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +0 -621
- package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +0 -1133
- package/lib/cjs/components/ComboBoxField/index.js +0 -18
- package/lib/cjs/components/CopyText/CopyButton.js +0 -53
- package/lib/cjs/components/CopyText/CopyText.js +0 -221
- package/lib/cjs/components/CopyText/CopyText.stories.js +0 -58
- package/lib/cjs/components/CopyText/CopyText.test.js +0 -485
- package/lib/cjs/components/CopyText/index.js +0 -18
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +0 -388
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +0 -413
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +0 -360
- package/lib/cjs/components/EnvironmentBreadcrumb/index.js +0 -18
- package/lib/cjs/components/FieldHelperText/FieldHelperText.js +0 -77
- package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.js +0 -64
- package/lib/cjs/components/FieldHelperText/FieldHelperText.test.js +0 -67
- package/lib/cjs/components/FieldHelperText/index.js +0 -18
- package/lib/cjs/components/FileInputField/FileInputField.js +0 -335
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +0 -258
- package/lib/cjs/components/FileInputField/FileInputField.test.js +0 -227
- package/lib/cjs/components/FileInputField/FileItem.js +0 -134
- package/lib/cjs/components/FileInputField/FileSelect.js +0 -48
- package/lib/cjs/components/FileInputField/index.js +0 -18
- package/lib/cjs/components/HelpHint/HelpHint.js +0 -85
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +0 -57
- package/lib/cjs/components/HelpHint/HelpHint.test.js +0 -80
- package/lib/cjs/components/HelpHint/index.js +0 -18
- package/lib/cjs/components/Icon/Icon.js +0 -97
- package/lib/cjs/components/Icon/Icon.stories.js +0 -93
- package/lib/cjs/components/Icon/Icon.test.js +0 -39
- package/lib/cjs/components/Icon/index.js +0 -18
- package/lib/cjs/components/IconButton/IconButton.js +0 -191
- package/lib/cjs/components/IconButton/IconButton.stories.js +0 -95
- package/lib/cjs/components/IconButton/IconButton.test.js +0 -181
- package/lib/cjs/components/IconButton/index.js +0 -18
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +0 -78
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +0 -76
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.test.js +0 -60
- package/lib/cjs/components/IconButtonToggle/index.js +0 -18
- package/lib/cjs/components/Image/Image.js +0 -235
- package/lib/cjs/components/Image/Image.stories.js +0 -185
- package/lib/cjs/components/Image/Image.test.js +0 -208
- package/lib/cjs/components/Image/index.js +0 -18
- package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +0 -146
- package/lib/cjs/components/ImageUploadField/ImageUploadField.js +0 -168
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +0 -356
- package/lib/cjs/components/ImageUploadField/ImageUploadField.test.js +0 -458
- package/lib/cjs/components/ImageUploadField/ImageUploadFieldBase.js +0 -128
- package/lib/cjs/components/ImageUploadField/index.js +0 -18
- package/lib/cjs/components/Input/Input.js +0 -82
- package/lib/cjs/components/Input/Input.stories.js +0 -57
- package/lib/cjs/components/Input/Input.test.js +0 -81
- package/lib/cjs/components/Input/index.js +0 -18
- package/lib/cjs/components/Label/Label.js +0 -120
- package/lib/cjs/components/Label/Label.stories.js +0 -63
- package/lib/cjs/components/Label/Label.test.js +0 -90
- package/lib/cjs/components/Label/constants.js +0 -15
- package/lib/cjs/components/Label/index.js +0 -18
- package/lib/cjs/components/Link/Link.js +0 -122
- package/lib/cjs/components/Link/Link.stories.js +0 -66
- package/lib/cjs/components/Link/Link.test.js +0 -84
- package/lib/cjs/components/Link/index.js +0 -18
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +0 -229
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +0 -358
- package/lib/cjs/components/LinkSelectField/LinkSelectField.test.js +0 -230
- package/lib/cjs/components/LinkSelectField/index.js +0 -18
- package/lib/cjs/components/List/List.js +0 -54
- package/lib/cjs/components/List/List.stories.js +0 -66
- package/lib/cjs/components/List/List.test.js +0 -36
- package/lib/cjs/components/List/index.js +0 -18
- package/lib/cjs/components/ListBox/ListBox.js +0 -272
- package/lib/cjs/components/ListBox/ListBox.test.js +0 -171
- package/lib/cjs/components/ListBox/ListBoxContext.js +0 -17
- package/lib/cjs/components/ListBox/ListBoxSection.js +0 -90
- package/lib/cjs/components/ListBox/Option.js +0 -146
- package/lib/cjs/components/ListBox/index.js +0 -27
- package/lib/cjs/components/ListItem/ListItem.js +0 -86
- package/lib/cjs/components/ListItem/ListItem.stories.js +0 -103
- package/lib/cjs/components/ListItem/ListItem.test.js +0 -51
- package/lib/cjs/components/ListItem/index.js +0 -18
- package/lib/cjs/components/ListView/ListView.js +0 -248
- package/lib/cjs/components/ListView/ListView.stories.js +0 -812
- package/lib/cjs/components/ListView/ListView.test.js +0 -326
- package/lib/cjs/components/ListView/ListViewContext.js +0 -17
- package/lib/cjs/components/ListView/index.js +0 -18
- package/lib/cjs/components/ListViewItem/ListViewItem.js +0 -128
- package/lib/cjs/components/ListViewItem/index.js +0 -18
- package/lib/cjs/components/Loader/Loader.js +0 -75
- package/lib/cjs/components/Loader/Loader.stories.js +0 -63
- package/lib/cjs/components/Loader/Loader.test.js +0 -36
- package/lib/cjs/components/Loader/index.js +0 -18
- package/lib/cjs/components/Menu/Menu.js +0 -200
- package/lib/cjs/components/Menu/Menu.stories.js +0 -107
- package/lib/cjs/components/Menu/Menu.test.js +0 -226
- package/lib/cjs/components/Menu/index.js +0 -18
- package/lib/cjs/components/MenuItem/MenuItem.js +0 -195
- package/lib/cjs/components/MenuItem/MenuItem.test.js +0 -221
- package/lib/cjs/components/MenuItem/index.js +0 -18
- package/lib/cjs/components/Messages/Message.js +0 -196
- package/lib/cjs/components/Messages/Messages.js +0 -87
- package/lib/cjs/components/Messages/Messages.reducer.js +0 -69
- package/lib/cjs/components/Messages/Messages.stories.js +0 -359
- package/lib/cjs/components/Messages/Messages.test.js +0 -243
- package/lib/cjs/components/Messages/index.js +0 -60
- package/lib/cjs/components/Messages/utils/index.js +0 -27
- package/lib/cjs/components/Messages/utils/messagesReducer.js +0 -180
- package/lib/cjs/components/Messages/utils/multiMessagesReducer.js +0 -141
- package/lib/cjs/components/Messages/utils/tests/messagesReducer.test.js +0 -104
- package/lib/cjs/components/Messages/utils/tests/multiMessagesReducer.test.js +0 -112
- package/lib/cjs/components/Modal/Modal.js +0 -237
- package/lib/cjs/components/Modal/Modal.stories.js +0 -118
- package/lib/cjs/components/Modal/index.js +0 -18
- package/lib/cjs/components/Modal/tests/Modal.integration.test.js +0 -95
- package/lib/cjs/components/Modal/tests/Modal.unit.test.js +0 -222
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +0 -619
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +0 -431
- package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +0 -530
- package/lib/cjs/components/MultivaluesField/index.js +0 -18
- package/lib/cjs/components/NavBar/NavBar.js +0 -92
- package/lib/cjs/components/NavBar/NavBar.stories.js +0 -287
- package/lib/cjs/components/NavBar/NavBar.test.js +0 -166
- package/lib/cjs/components/NavBar/index.js +0 -18
- package/lib/cjs/components/NavBarSection/NavBarItem.js +0 -145
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +0 -64
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +0 -96
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +0 -104
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +0 -98
- package/lib/cjs/components/NavBarSection/NavBarSection.js +0 -87
- package/lib/cjs/components/NavBarSection/index.js +0 -45
- package/lib/cjs/components/NumberField/NumberField.js +0 -281
- package/lib/cjs/components/NumberField/NumberField.stories.js +0 -251
- package/lib/cjs/components/NumberField/NumberField.test.js +0 -186
- package/lib/cjs/components/NumberField/index.js +0 -18
- package/lib/cjs/components/OverlayPanel/OverlayPanel.js +0 -130
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +0 -231
- package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +0 -184
- package/lib/cjs/components/OverlayPanel/index.js +0 -18
- package/lib/cjs/components/PageHeader/PageHeader.js +0 -69
- package/lib/cjs/components/PageHeader/PageHeader.stories.js +0 -47
- package/lib/cjs/components/PageHeader/PageHeader.test.js +0 -35
- package/lib/cjs/components/PageHeader/index.js +0 -18
- package/lib/cjs/components/PasswordField/PasswordField.js +0 -352
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +0 -446
- package/lib/cjs/components/PasswordField/PasswordField.test.js +0 -236
- package/lib/cjs/components/PasswordField/index.js +0 -18
- package/lib/cjs/components/PopoverContainer/PopoverContainer.js +0 -227
- package/lib/cjs/components/PopoverContainer/PopoverContainer.test.js +0 -57
- package/lib/cjs/components/PopoverContainer/index.js +0 -47
- package/lib/cjs/components/PopoverMenu/PopoverMenu.js +0 -198
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +0 -239
- package/lib/cjs/components/PopoverMenu/PopoverMenu.test.js +0 -214
- package/lib/cjs/components/PopoverMenu/index.js +0 -18
- package/lib/cjs/components/Radio/Radio.js +0 -46
- package/lib/cjs/components/Radio/index.js +0 -18
- package/lib/cjs/components/RadioField/RadioField.js +0 -205
- package/lib/cjs/components/RadioField/RadioField.test.js +0 -107
- package/lib/cjs/components/RadioField/index.js +0 -47
- package/lib/cjs/components/RadioGroupField/RadioGroupField.js +0 -185
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +0 -218
- package/lib/cjs/components/RadioGroupField/RadioGroupField.test.js +0 -202
- package/lib/cjs/components/RadioGroupField/index.js +0 -18
- package/lib/cjs/components/RequirementsList/RequirementsList.js +0 -131
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +0 -79
- package/lib/cjs/components/RequirementsList/RequirementsList.test.js +0 -114
- package/lib/cjs/components/RequirementsList/index.js +0 -18
- package/lib/cjs/components/RockerButton/RockerButton.js +0 -135
- package/lib/cjs/components/RockerButton/index.js +0 -47
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +0 -131
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +0 -154
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +0 -124
- package/lib/cjs/components/RockerButtonGroup/index.js +0 -47
- package/lib/cjs/components/ScrollBox/ScrollBox.js +0 -153
- package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +0 -47
- package/lib/cjs/components/ScrollBox/ScrollBox.test.js +0 -87
- package/lib/cjs/components/ScrollBox/index.js +0 -18
- package/lib/cjs/components/SearchField/SearchField.js +0 -363
- package/lib/cjs/components/SearchField/SearchField.stories.js +0 -172
- package/lib/cjs/components/SearchField/SearchField.test.js +0 -251
- package/lib/cjs/components/SearchField/index.js +0 -18
- package/lib/cjs/components/SelectField/SelectField.js +0 -179
- package/lib/cjs/components/SelectField/SelectField.stories.js +0 -448
- package/lib/cjs/components/SelectField/SelectField.test.js +0 -85
- package/lib/cjs/components/SelectField/index.js +0 -18
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +0 -209
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.test.js +0 -497
- package/lib/cjs/components/SelectFieldBase/index.js +0 -18
- package/lib/cjs/components/Separator/Separator.js +0 -79
- package/lib/cjs/components/Separator/Separator.stories.js +0 -49
- package/lib/cjs/components/Separator/Separator.test.js +0 -38
- package/lib/cjs/components/Separator/index.js +0 -18
- package/lib/cjs/components/Stepper/Line.js +0 -51
- package/lib/cjs/components/Stepper/Step.js +0 -72
- package/lib/cjs/components/Stepper/Stepper.constants.js +0 -15
- package/lib/cjs/components/Stepper/Stepper.js +0 -182
- package/lib/cjs/components/Stepper/Stepper.stories.js +0 -147
- package/lib/cjs/components/Stepper/Stepper.test.js +0 -231
- package/lib/cjs/components/Stepper/index.js +0 -27
- package/lib/cjs/components/Switch/Switch.js +0 -61
- package/lib/cjs/components/Switch/index.js +0 -18
- package/lib/cjs/components/SwitchField/SwitchField.js +0 -247
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +0 -178
- package/lib/cjs/components/SwitchField/SwitchField.test.js +0 -145
- package/lib/cjs/components/SwitchField/index.js +0 -18
- package/lib/cjs/components/Tab/Tab.js +0 -186
- package/lib/cjs/components/Tab/index.js +0 -47
- package/lib/cjs/components/TabPicker/TabPicker.js +0 -257
- package/lib/cjs/components/TabPicker/index.js +0 -18
- package/lib/cjs/components/Table/Table.js +0 -43
- package/lib/cjs/components/Table/Table.stories.js +0 -102
- package/lib/cjs/components/Table/Table.test.js +0 -80
- package/lib/cjs/components/Table/index.js +0 -18
- package/lib/cjs/components/TableBody/TableBody.js +0 -43
- package/lib/cjs/components/TableBody/index.js +0 -18
- package/lib/cjs/components/TableCell/TableCell.js +0 -50
- package/lib/cjs/components/TableCell/TableCell.test.js +0 -54
- package/lib/cjs/components/TableCell/index.js +0 -18
- package/lib/cjs/components/TableHead/TableHead.js +0 -42
- package/lib/cjs/components/TableHead/index.js +0 -18
- package/lib/cjs/components/TableRow/TableRow.js +0 -43
- package/lib/cjs/components/TableRow/index.js +0 -18
- package/lib/cjs/components/Tabs/Tabs.js +0 -228
- package/lib/cjs/components/Tabs/Tabs.stories.js +0 -319
- package/lib/cjs/components/Tabs/Tabs.test.js +0 -612
- package/lib/cjs/components/Tabs/index.js +0 -47
- package/lib/cjs/components/Text/Text.js +0 -56
- package/lib/cjs/components/Text/Text.stories.js +0 -180
- package/lib/cjs/components/Text/Text.test.js +0 -89
- package/lib/cjs/components/Text/index.js +0 -18
- package/lib/cjs/components/TextArea/TextArea.js +0 -49
- package/lib/cjs/components/TextArea/TextArea.test.js +0 -43
- package/lib/cjs/components/TextArea/index.js +0 -18
- package/lib/cjs/components/TextAreaField/TextAreaField.js +0 -294
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +0 -232
- package/lib/cjs/components/TextAreaField/TextAreaField.test.js +0 -168
- package/lib/cjs/components/TextAreaField/index.js +0 -18
- package/lib/cjs/components/TextField/TextField.js +0 -224
- package/lib/cjs/components/TextField/TextField.stories.js +0 -350
- package/lib/cjs/components/TextField/TextField.test.js +0 -175
- package/lib/cjs/components/TextField/index.js +0 -18
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +0 -296
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +0 -43
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.test.js +0 -103
- package/lib/cjs/components/TimeZonePicker/index.js +0 -18
- package/lib/cjs/components/TimeZonePicker/timezones.js +0 -123
- package/lib/cjs/components/TooltipTrigger/Tooltip.js +0 -65
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +0 -201
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +0 -143
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.js +0 -119
- package/lib/cjs/components/TooltipTrigger/index.js +0 -27
- package/lib/cjs/context/AccordionContext/index.js +0 -22
- package/lib/cjs/context/AccordionGridContext/index.js +0 -20
- package/lib/cjs/context/MenuContext/index.js +0 -20
- package/lib/cjs/context/NavBarContext/index.js +0 -20
- package/lib/cjs/context/TooltipContext/index.js +0 -22
- package/lib/cjs/hooks/index.js +0 -153
- package/lib/cjs/hooks/useAriaLabelWarning/index.js +0 -18
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.js +0 -29
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +0 -38
- package/lib/cjs/hooks/useColumnStyles/index.js +0 -18
- package/lib/cjs/hooks/useColumnStyles/useColumnStyles.js +0 -38
- package/lib/cjs/hooks/useComponentToggle/index.js +0 -18
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.js +0 -70
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.test.js +0 -133
- package/lib/cjs/hooks/useCopyToClipboard/index.js +0 -18
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.js +0 -83
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.test.js +0 -79
- package/lib/cjs/hooks/useDebounce/index.js +0 -18
- package/lib/cjs/hooks/useDebounce/useDebounce.js +0 -40
- package/lib/cjs/hooks/useDebounce/useDebounce.test.js +0 -47
- package/lib/cjs/hooks/useDeprecationWarning/index.js +0 -18
- package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.js +0 -55
- package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.test.js +0 -97
- package/lib/cjs/hooks/useDevelopmentWarning/index.js +0 -18
- package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.js +0 -28
- package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +0 -43
- package/lib/cjs/hooks/useFallbackImage/index.js +0 -18
- package/lib/cjs/hooks/useFallbackImage/useFallbackImage.js +0 -46
- package/lib/cjs/hooks/useFallbackImage/useFallbackImage.test.js +0 -65
- package/lib/cjs/hooks/useField/index.js +0 -18
- package/lib/cjs/hooks/useField/useField.js +0 -256
- package/lib/cjs/hooks/useField/useField.test.js +0 -253
- package/lib/cjs/hooks/useImageUploadState/index.js +0 -18
- package/lib/cjs/hooks/useImageUploadState/useImageUploadState.js +0 -143
- package/lib/cjs/hooks/useLabelHeight/index.js +0 -18
- package/lib/cjs/hooks/useLabelHeight/useLabelHeight.js +0 -43
- package/lib/cjs/hooks/useModalState/index.js +0 -18
- package/lib/cjs/hooks/useModalState/useModalState.js +0 -35
- package/lib/cjs/hooks/useModalState/useModalState.test.js +0 -124
- package/lib/cjs/hooks/useNavBarPress/index.js +0 -18
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.js +0 -38
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.test.js +0 -42
- package/lib/cjs/hooks/useOverlayPanelState/index.js +0 -18
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +0 -54
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +0 -25
- package/lib/cjs/hooks/useProgressiveState/index.js +0 -18
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.js +0 -29
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.test.js +0 -106
- package/lib/cjs/hooks/usePropWarning/index.js +0 -18
- package/lib/cjs/hooks/usePropWarning/usePropWarning.js +0 -45
- package/lib/cjs/hooks/usePropWarning/usePropWarning.test.js +0 -65
- package/lib/cjs/hooks/useRockerButton/index.js +0 -18
- package/lib/cjs/hooks/useRockerButton/useRockerButton.js +0 -63
- package/lib/cjs/hooks/useSelectField/index.js +0 -18
- package/lib/cjs/hooks/useSelectField/useSelectField.js +0 -269
- package/lib/cjs/hooks/useStatusClasses/index.js +0 -18
- package/lib/cjs/hooks/useStatusClasses/useStatusClasses.js +0 -40
- package/lib/cjs/hooks/useStatusClasses/useStatusClasses.test.js +0 -56
- package/lib/cjs/index.js +0 -1746
- package/lib/cjs/recipes/ApplicationSearchDropdown.stories.js +0 -325
- package/lib/cjs/recipes/Arrow.stories.js +0 -53
- package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +0 -165
- package/lib/cjs/recipes/AttributesAndPingOneMapping.stories.js +0 -325
- package/lib/cjs/recipes/CollapsiblePanel.stories.js +0 -363
- package/lib/cjs/recipes/ConditionalFilter.stories.js +0 -412
- package/lib/cjs/recipes/CopyToClipboard.stories.js +0 -45
- package/lib/cjs/recipes/CountryPicker.stories.js +0 -176
- package/lib/cjs/recipes/DatePicker.stories.js +0 -160
- package/lib/cjs/recipes/DraggableBox.stories.js +0 -58
- package/lib/cjs/recipes/EditableInput.stories.js +0 -360
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +0 -202
- package/lib/cjs/recipes/ListAndPanel.stories.js +0 -377
- package/lib/cjs/recipes/LogoTabs.stories.js +0 -238
- package/lib/cjs/recipes/MaskedValue.stories.js +0 -97
- package/lib/cjs/recipes/NeutralInput.stories.js +0 -35
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +0 -255
- package/lib/cjs/recipes/PageHeader.stories.js +0 -73
- package/lib/cjs/recipes/PanelHeader.stories.js +0 -97
- package/lib/cjs/recipes/RadioButtonsWithLinks.stories.js +0 -154
- package/lib/cjs/recipes/RowLineChart.stories.js +0 -536
- package/lib/cjs/recipes/ScrollableListView.stories.js +0 -149
- package/lib/cjs/recipes/SelectedFieldOverlay.story.js +0 -70
- package/lib/cjs/recipes/Slider.stories.js +0 -239
- package/lib/cjs/recipes/StatsCircle.stories.js +0 -49
- package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +0 -699
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +0 -335
- package/lib/cjs/styles/ColorDocumentation.js +0 -319
- package/lib/cjs/styles/ColorDocumentation.stories.js +0 -33
- package/lib/cjs/styles/ContainerSizes.stories.js +0 -95
- package/lib/cjs/styles/Spacing.stories.js +0 -76
- package/lib/cjs/styles/ThemeDocumentation.js +0 -25
- package/lib/cjs/styles/Typography.stories.js +0 -160
- package/lib/cjs/styles/breakpoints.js +0 -11
- package/lib/cjs/styles/colors.js +0 -200
- package/lib/cjs/styles/forms/checkbox.js +0 -22
- package/lib/cjs/styles/forms/comboBox.js +0 -47
- package/lib/cjs/styles/forms/index.js +0 -68
- package/lib/cjs/styles/forms/input.js +0 -220
- package/lib/cjs/styles/forms/label.js +0 -95
- package/lib/cjs/styles/forms/radio.js +0 -32
- package/lib/cjs/styles/forms/search.js +0 -33
- package/lib/cjs/styles/forms/select.js +0 -104
- package/lib/cjs/styles/forms/switch.js +0 -81
- package/lib/cjs/styles/forms/textarea.js +0 -46
- package/lib/cjs/styles/spacing.js +0 -31
- package/lib/cjs/styles/text.js +0 -45
- package/lib/cjs/styles/theme.js +0 -94
- package/lib/cjs/styles/themeOverrides/index.js +0 -18
- package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +0 -130
- package/lib/cjs/styles/themes/astro-nano/astro-nano.js +0 -165
- package/lib/cjs/styles/themes/astro-nano/index.js +0 -18
- package/lib/cjs/styles/themes/end-user/end-user.js +0 -278
- package/lib/cjs/styles/themes/end-user/index.js +0 -18
- package/lib/cjs/styles/useAstroTheme.js +0 -36
- package/lib/cjs/styles/variants/accordion.js +0 -154
- package/lib/cjs/styles/variants/bidirectionalIconButton.js +0 -54
- package/lib/cjs/styles/variants/boxes.js +0 -391
- package/lib/cjs/styles/variants/buttons.js +0 -755
- package/lib/cjs/styles/variants/codeView.js +0 -169
- package/lib/cjs/styles/variants/collapsiblePanel.js +0 -90
- package/lib/cjs/styles/variants/imageUpload.js +0 -29
- package/lib/cjs/styles/variants/images.js +0 -19
- package/lib/cjs/styles/variants/index.js +0 -83
- package/lib/cjs/styles/variants/links.js +0 -65
- package/lib/cjs/styles/variants/listBox.js +0 -60
- package/lib/cjs/styles/variants/loader.js +0 -97
- package/lib/cjs/styles/variants/menu.js +0 -20
- package/lib/cjs/styles/variants/menuItem.js +0 -36
- package/lib/cjs/styles/variants/messages.js +0 -53
- package/lib/cjs/styles/variants/modal.js +0 -85
- package/lib/cjs/styles/variants/navBar.js +0 -76
- package/lib/cjs/styles/variants/numberField.js +0 -62
- package/lib/cjs/styles/variants/overlayPanel.js +0 -73
- package/lib/cjs/styles/variants/popoverMenu.js +0 -99
- package/lib/cjs/styles/variants/rockerbutton.js +0 -25
- package/lib/cjs/styles/variants/separator.js +0 -64
- package/lib/cjs/styles/variants/stepper.js +0 -124
- package/lib/cjs/styles/variants/table.js +0 -70
- package/lib/cjs/styles/variants/tabs.js +0 -49
- package/lib/cjs/styles/variants/text.js +0 -368
- package/lib/cjs/styles/variants/tooltip.js +0 -16
- package/lib/cjs/styles/variants/variants.js +0 -113
- package/lib/cjs/templates/Nav/HeaderBar.js +0 -124
- package/lib/cjs/templates/Nav/Nav.stories.js +0 -120
- package/lib/cjs/templates/Nav/NavData.js +0 -257
- package/lib/cjs/utils/devUtils/constants/animals.js +0 -11
- package/lib/cjs/utils/devUtils/constants/firstNames.js +0 -11
- package/lib/cjs/utils/devUtils/constants/htmlElements.js +0 -15
- package/lib/cjs/utils/devUtils/constants/images.js +0 -13
- package/lib/cjs/utils/devUtils/constants/loadingStates.js +0 -18
- package/lib/cjs/utils/devUtils/constants/orientation.js +0 -14
- package/lib/cjs/utils/devUtils/constants/panelSizes.js +0 -11
- package/lib/cjs/utils/devUtils/constants/statuses.js +0 -16
- package/lib/cjs/utils/devUtils/constants/variants.js +0 -40
- package/lib/cjs/utils/devUtils/createMockData.js +0 -94
- package/lib/cjs/utils/devUtils/decorators/withDeprecationWarning.js +0 -33
- package/lib/cjs/utils/devUtils/props/isIterable.js +0 -74
- package/lib/cjs/utils/devUtils/props/isValidPositiveInt.js +0 -42
- package/lib/cjs/utils/devUtils/styledSystemUtils.js +0 -79
- package/lib/cjs/utils/styleUtils/index.js +0 -19
- package/lib/cjs/utils/testUtils/setupTests.js +0 -27
- package/lib/cjs/utils/testUtils/testAxe.js +0 -65
- package/lib/cjs/utils/testUtils/testTheme.js +0 -30
- package/lib/cjs/utils/testUtils/testWrapper.js +0 -104
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +0 -196
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +0 -313
- package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +0 -226
- package/lib/components/AccordionGridGroup/index.js +0 -1
- package/lib/components/AccordionGridItem/AccordionGridItem.js +0 -94
- package/lib/components/AccordionGridItem/AccordionGridItemBody.js +0 -76
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +0 -115
- package/lib/components/AccordionGridItem/index.js +0 -1
- package/lib/components/AccordionGroup/AccordionGroup.js +0 -77
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +0 -205
- package/lib/components/AccordionGroup/AccordionGroup.test.js +0 -230
- package/lib/components/AccordionGroup/index.js +0 -1
- package/lib/components/AccordionItem/AccordionItem.js +0 -119
- package/lib/components/AccordionItem/index.js +0 -1
- package/lib/components/ArrayField/ArrayField.js +0 -225
- package/lib/components/ArrayField/ArrayField.stories.js +0 -245
- package/lib/components/ArrayField/ArrayField.test.js +0 -223
- package/lib/components/ArrayField/ArrayFieldDeleteButton.js +0 -38
- package/lib/components/ArrayField/ArrayFieldItem.js +0 -31
- package/lib/components/ArrayField/index.js +0 -2
- package/lib/components/AstroWrapper/AstroWrapper.js +0 -121
- package/lib/components/AstroWrapper/AstroWrapper.stories.js +0 -68
- package/lib/components/AstroWrapper/AstroWrapper.test.js +0 -26
- package/lib/components/AstroWrapper/PageWrapper.test.js +0 -28
- package/lib/components/AstroWrapper/index.js +0 -2
- package/lib/components/Avatar/Avatar.js +0 -27
- package/lib/components/Avatar/Avatar.stories.js +0 -22
- package/lib/components/Avatar/Avatar.test.js +0 -32
- package/lib/components/Avatar/index.js +0 -1
- package/lib/components/Box/Box.js +0 -111
- package/lib/components/Box/Box.stories.js +0 -249
- package/lib/components/Box/Box.test.js +0 -61
- package/lib/components/Box/index.js +0 -1
- package/lib/components/Bracket/Bracket.js +0 -88
- package/lib/components/Bracket/Bracket.stories.js +0 -72
- package/lib/components/Bracket/Bracket.test.js +0 -35
- package/lib/components/Bracket/index.js +0 -1
- package/lib/components/Breadcrumbs/BreadcrumbItem.js +0 -113
- package/lib/components/Breadcrumbs/Breadcrumbs.js +0 -95
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +0 -72
- package/lib/components/Breadcrumbs/Breadcrumbs.test.js +0 -101
- package/lib/components/Breadcrumbs/index.js +0 -2
- package/lib/components/Button/Button.js +0 -188
- package/lib/components/Button/Button.stories.js +0 -119
- package/lib/components/Button/Button.test.js +0 -115
- package/lib/components/Button/constants.js +0 -4
- package/lib/components/Button/index.js +0 -1
- package/lib/components/Card/Card.js +0 -17
- package/lib/components/Card/Card.stories.js +0 -29
- package/lib/components/Card/Card.test.js +0 -34
- package/lib/components/Card/index.js +0 -1
- package/lib/components/Checkbox/Checkbox.js +0 -22
- package/lib/components/Checkbox/Checkbox.test.js +0 -26
- package/lib/components/Checkbox/index.js +0 -1
- package/lib/components/CheckboxField/CheckboxField.js +0 -178
- package/lib/components/CheckboxField/CheckboxField.stories.js +0 -132
- package/lib/components/CheckboxField/CheckboxField.test.js +0 -84
- package/lib/components/CheckboxField/index.js +0 -1
- package/lib/components/Chip/Chip.js +0 -63
- package/lib/components/Chip/Chip.stories.js +0 -124
- package/lib/components/Chip/Chip.test.js +0 -43
- package/lib/components/Chip/ChipContext.js +0 -3
- package/lib/components/Chip/index.js +0 -1
- package/lib/components/CodeView/CodeView.js +0 -147
- package/lib/components/CodeView/CodeView.stories.js +0 -91
- package/lib/components/CodeView/CodeView.test.js +0 -170
- package/lib/components/CodeView/index.js +0 -1
- package/lib/components/CollapsiblePanel/CollapsiblePanel.js +0 -121
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +0 -333
- package/lib/components/CollapsiblePanel/CollapsiblePanel.test.js +0 -69
- package/lib/components/CollapsiblePanel/index.js +0 -1
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +0 -32
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.js +0 -34
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +0 -110
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +0 -81
- package/lib/components/CollapsiblePanelContainer/index.js +0 -1
- package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.js +0 -60
- package/lib/components/CollapsiblePanelItem/CollapsiblePanelItem.test.js +0 -47
- package/lib/components/CollapsiblePanelItem/index.js +0 -1
- package/lib/components/ColorField/ColorField.js +0 -177
- package/lib/components/ColorField/ColorField.stories.js +0 -99
- package/lib/components/ColorField/ColorField.test.js +0 -50
- package/lib/components/ColorField/index.js +0 -1
- package/lib/components/ComboBox/ComboBoxInput.js +0 -184
- package/lib/components/ComboBox/index.js +0 -1
- package/lib/components/ComboBoxField/ComboBoxField.js +0 -436
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +0 -523
- package/lib/components/ComboBoxField/ComboBoxField.test.js +0 -934
- package/lib/components/ComboBoxField/index.js +0 -1
- package/lib/components/CopyText/CopyButton.js +0 -22
- package/lib/components/CopyText/CopyText.js +0 -188
- package/lib/components/CopyText/CopyText.stories.js +0 -30
- package/lib/components/CopyText/CopyText.test.js +0 -440
- package/lib/components/CopyText/index.js +0 -1
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +0 -335
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +0 -362
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +0 -299
- package/lib/components/EnvironmentBreadcrumb/index.js +0 -1
- package/lib/components/FieldHelperText/FieldHelperText.js +0 -44
- package/lib/components/FieldHelperText/FieldHelperText.stories.js +0 -35
- package/lib/components/FieldHelperText/FieldHelperText.test.js +0 -52
- package/lib/components/FieldHelperText/index.js +0 -1
- package/lib/components/FileInputField/FileInputField.js +0 -284
- package/lib/components/FileInputField/FileInputField.stories.js +0 -206
- package/lib/components/FileInputField/FileInputField.test.js +0 -187
- package/lib/components/FileInputField/FileItem.js +0 -101
- package/lib/components/FileInputField/FileSelect.js +0 -31
- package/lib/components/FileInputField/index.js +0 -1
- package/lib/components/HelpHint/HelpHint.js +0 -55
- package/lib/components/HelpHint/HelpHint.stories.js +0 -34
- package/lib/components/HelpHint/HelpHint.test.js +0 -58
- package/lib/components/HelpHint/index.js +0 -1
- package/lib/components/Icon/Icon.js +0 -66
- package/lib/components/Icon/Icon.stories.js +0 -66
- package/lib/components/Icon/Icon.test.js +0 -26
- package/lib/components/Icon/index.js +0 -1
- package/lib/components/IconButton/IconButton.js +0 -153
- package/lib/components/IconButton/IconButton.stories.js +0 -67
- package/lib/components/IconButton/IconButton.test.js +0 -132
- package/lib/components/IconButton/index.js +0 -1
- package/lib/components/IconButtonToggle/IconButtonToggle.js +0 -59
- package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +0 -40
- package/lib/components/IconButtonToggle/IconButtonToggle.test.js +0 -46
- package/lib/components/IconButtonToggle/index.js +0 -1
- package/lib/components/Image/Image.js +0 -198
- package/lib/components/Image/Image.stories.js +0 -130
- package/lib/components/Image/Image.test.js +0 -177
- package/lib/components/Image/index.js +0 -1
- package/lib/components/ImageUploadField/ImagePreviewButton.js +0 -115
- package/lib/components/ImageUploadField/ImageUploadField.js +0 -136
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +0 -306
- package/lib/components/ImageUploadField/ImageUploadField.test.js +0 -400
- package/lib/components/ImageUploadField/ImageUploadFieldBase.js +0 -87
- package/lib/components/ImageUploadField/index.js +0 -1
- package/lib/components/Input/Input.js +0 -52
- package/lib/components/Input/Input.stories.js +0 -31
- package/lib/components/Input/Input.test.js +0 -57
- package/lib/components/Input/index.js +0 -1
- package/lib/components/Label/Label.js +0 -87
- package/lib/components/Label/Label.stories.js +0 -36
- package/lib/components/Label/Label.test.js +0 -68
- package/lib/components/Label/constants.js +0 -5
- package/lib/components/Label/index.js +0 -1
- package/lib/components/Link/Link.js +0 -89
- package/lib/components/Link/Link.stories.js +0 -44
- package/lib/components/Link/Link.test.js +0 -58
- package/lib/components/Link/index.js +0 -1
- package/lib/components/LinkSelectField/LinkSelectField.js +0 -191
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +0 -293
- package/lib/components/LinkSelectField/LinkSelectField.test.js +0 -192
- package/lib/components/LinkSelectField/index.js +0 -1
- package/lib/components/List/List.js +0 -26
- package/lib/components/List/List.stories.js +0 -43
- package/lib/components/List/List.test.js +0 -24
- package/lib/components/List/index.js +0 -1
- package/lib/components/ListBox/ListBox.js +0 -223
- package/lib/components/ListBox/ListBox.test.js +0 -148
- package/lib/components/ListBox/ListBoxContext.js +0 -2
- package/lib/components/ListBox/ListBoxSection.js +0 -60
- package/lib/components/ListBox/Option.js +0 -107
- package/lib/components/ListBox/index.js +0 -2
- package/lib/components/ListItem/ListItem.js +0 -55
- package/lib/components/ListItem/ListItem.stories.js +0 -74
- package/lib/components/ListItem/ListItem.test.js +0 -37
- package/lib/components/ListItem/index.js +0 -1
- package/lib/components/ListView/ListView.js +0 -201
- package/lib/components/ListView/ListView.stories.js +0 -770
- package/lib/components/ListView/ListView.test.js +0 -285
- package/lib/components/ListView/ListViewContext.js +0 -2
- package/lib/components/ListView/index.js +0 -1
- package/lib/components/ListViewItem/ListViewItem.js +0 -95
- package/lib/components/ListViewItem/index.js +0 -1
- package/lib/components/Loader/Loader.js +0 -47
- package/lib/components/Loader/Loader.stories.js +0 -38
- package/lib/components/Loader/Loader.test.js +0 -24
- package/lib/components/Loader/index.js +0 -1
- package/lib/components/Menu/Menu.js +0 -158
- package/lib/components/Menu/Menu.stories.js +0 -86
- package/lib/components/Menu/Menu.test.js +0 -170
- package/lib/components/Menu/index.js +0 -1
- package/lib/components/MenuItem/MenuItem.js +0 -161
- package/lib/components/MenuItem/MenuItem.test.js +0 -165
- package/lib/components/MenuItem/index.js +0 -1
- package/lib/components/Messages/Message.js +0 -152
- package/lib/components/Messages/Messages.js +0 -53
- package/lib/components/Messages/Messages.reducer.js +0 -47
- package/lib/components/Messages/Messages.stories.js +0 -297
- package/lib/components/Messages/Messages.test.js +0 -191
- package/lib/components/Messages/index.js +0 -3
- package/lib/components/Messages/utils/index.js +0 -2
- package/lib/components/Messages/utils/messagesReducer.js +0 -140
- package/lib/components/Messages/utils/multiMessagesReducer.js +0 -98
- package/lib/components/Messages/utils/tests/messagesReducer.test.js +0 -81
- package/lib/components/Messages/utils/tests/multiMessagesReducer.test.js +0 -89
- package/lib/components/Modal/Modal.js +0 -196
- package/lib/components/Modal/Modal.stories.js +0 -97
- package/lib/components/Modal/index.js +0 -1
- package/lib/components/Modal/tests/Modal.integration.test.js +0 -77
- package/lib/components/Modal/tests/Modal.unit.test.js +0 -188
- package/lib/components/MultivaluesField/MultivaluesField.js +0 -571
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +0 -376
- package/lib/components/MultivaluesField/MultivaluesField.test.js +0 -397
- package/lib/components/MultivaluesField/index.js +0 -1
- package/lib/components/NavBar/NavBar.js +0 -63
- package/lib/components/NavBar/NavBar.stories.js +0 -260
- package/lib/components/NavBar/NavBar.test.js +0 -129
- package/lib/components/NavBar/index.js +0 -1
- package/lib/components/NavBarSection/NavBarItem.js +0 -111
- package/lib/components/NavBarSection/NavBarItemBody.js +0 -37
- package/lib/components/NavBarSection/NavBarItemButton.js +0 -70
- package/lib/components/NavBarSection/NavBarItemHeader.js +0 -73
- package/lib/components/NavBarSection/NavBarItemLink.js +0 -72
- package/lib/components/NavBarSection/NavBarSection.js +0 -69
- package/lib/components/NavBarSection/index.js +0 -4
- package/lib/components/NumberField/NumberField.js +0 -239
- package/lib/components/NumberField/NumberField.stories.js +0 -196
- package/lib/components/NumberField/NumberField.test.js +0 -143
- package/lib/components/NumberField/index.js +0 -1
- package/lib/components/OverlayPanel/OverlayPanel.js +0 -96
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +0 -192
- package/lib/components/OverlayPanel/OverlayPanel.test.js +0 -151
- package/lib/components/OverlayPanel/index.js +0 -1
- package/lib/components/PageHeader/PageHeader.js +0 -39
- package/lib/components/PageHeader/PageHeader.stories.js +0 -26
- package/lib/components/PageHeader/PageHeader.test.js +0 -23
- package/lib/components/PageHeader/index.js +0 -1
- package/lib/components/PasswordField/PasswordField.js +0 -299
- package/lib/components/PasswordField/PasswordField.stories.js +0 -373
- package/lib/components/PasswordField/PasswordField.test.js +0 -198
- package/lib/components/PasswordField/index.js +0 -1
- package/lib/components/PopoverContainer/PopoverContainer.js +0 -190
- package/lib/components/PopoverContainer/PopoverContainer.test.js +0 -44
- package/lib/components/PopoverContainer/index.js +0 -2
- package/lib/components/PopoverMenu/PopoverMenu.js +0 -160
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +0 -187
- package/lib/components/PopoverMenu/PopoverMenu.test.js +0 -157
- package/lib/components/PopoverMenu/index.js +0 -1
- package/lib/components/Radio/Radio.js +0 -20
- package/lib/components/Radio/index.js +0 -1
- package/lib/components/RadioField/RadioField.js +0 -165
- package/lib/components/RadioField/RadioField.test.js +0 -74
- package/lib/components/RadioField/index.js +0 -2
- package/lib/components/RadioGroupField/RadioGroupField.js +0 -145
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +0 -171
- package/lib/components/RadioGroupField/RadioGroupField.test.js +0 -159
- package/lib/components/RadioGroupField/index.js +0 -1
- package/lib/components/RequirementsList/RequirementsList.js +0 -95
- package/lib/components/RequirementsList/RequirementsList.stories.js +0 -57
- package/lib/components/RequirementsList/RequirementsList.test.js +0 -100
- package/lib/components/RequirementsList/index.js +0 -1
- package/lib/components/RockerButton/RockerButton.js +0 -98
- package/lib/components/RockerButton/index.js +0 -2
- package/lib/components/RockerButtonGroup/RockerButtonGroup.js +0 -90
- package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +0 -111
- package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +0 -99
- package/lib/components/RockerButtonGroup/index.js +0 -2
- package/lib/components/ScrollBox/ScrollBox.js +0 -118
- package/lib/components/ScrollBox/ScrollBox.stories.js +0 -26
- package/lib/components/ScrollBox/ScrollBox.test.js +0 -63
- package/lib/components/ScrollBox/index.js +0 -1
- package/lib/components/SearchField/SearchField.js +0 -327
- package/lib/components/SearchField/SearchField.stories.js +0 -126
- package/lib/components/SearchField/SearchField.test.js +0 -188
- package/lib/components/SearchField/index.js +0 -1
- package/lib/components/SelectField/SelectField.js +0 -149
- package/lib/components/SelectField/SelectField.stories.js +0 -373
- package/lib/components/SelectField/SelectField.test.js +0 -70
- package/lib/components/SelectField/index.js +0 -1
- package/lib/components/SelectFieldBase/SelectFieldBase.js +0 -169
- package/lib/components/SelectFieldBase/SelectFieldBase.test.js +0 -394
- package/lib/components/SelectFieldBase/index.js +0 -1
- package/lib/components/Separator/Separator.js +0 -47
- package/lib/components/Separator/Separator.stories.js +0 -26
- package/lib/components/Separator/Separator.test.js +0 -25
- package/lib/components/Separator/index.js +0 -1
- package/lib/components/Stepper/Line.js +0 -31
- package/lib/components/Stepper/Step.js +0 -38
- package/lib/components/Stepper/Stepper.constants.js +0 -5
- package/lib/components/Stepper/Stepper.js +0 -148
- package/lib/components/Stepper/Stepper.stories.js +0 -111
- package/lib/components/Stepper/Stepper.test.js +0 -202
- package/lib/components/Stepper/index.js +0 -2
- package/lib/components/Switch/Switch.js +0 -33
- package/lib/components/Switch/index.js +0 -1
- package/lib/components/SwitchField/SwitchField.js +0 -203
- package/lib/components/SwitchField/SwitchField.stories.js +0 -127
- package/lib/components/SwitchField/SwitchField.test.js +0 -101
- package/lib/components/SwitchField/index.js +0 -1
- package/lib/components/Tab/Tab.js +0 -146
- package/lib/components/Tab/index.js +0 -2
- package/lib/components/TabPicker/TabPicker.js +0 -217
- package/lib/components/TabPicker/index.js +0 -1
- package/lib/components/Table/Table.js +0 -27
- package/lib/components/Table/Table.stories.js +0 -77
- package/lib/components/Table/Table.test.js +0 -63
- package/lib/components/Table/index.js +0 -1
- package/lib/components/TableBody/TableBody.js +0 -27
- package/lib/components/TableBody/index.js +0 -1
- package/lib/components/TableCell/TableCell.js +0 -33
- package/lib/components/TableCell/TableCell.test.js +0 -37
- package/lib/components/TableCell/index.js +0 -1
- package/lib/components/TableHead/TableHead.js +0 -26
- package/lib/components/TableHead/index.js +0 -1
- package/lib/components/TableRow/TableRow.js +0 -27
- package/lib/components/TableRow/index.js +0 -1
- package/lib/components/Tabs/Tabs.js +0 -183
- package/lib/components/Tabs/Tabs.stories.js +0 -255
- package/lib/components/Tabs/Tabs.test.js +0 -551
- package/lib/components/Tabs/index.js +0 -2
- package/lib/components/Text/Text.js +0 -36
- package/lib/components/Text/Text.stories.js +0 -146
- package/lib/components/Text/Text.test.js +0 -65
- package/lib/components/Text/index.js +0 -1
- package/lib/components/TextArea/TextArea.js +0 -23
- package/lib/components/TextArea/TextArea.test.js +0 -31
- package/lib/components/TextArea/index.js +0 -1
- package/lib/components/TextAreaField/TextAreaField.js +0 -259
- package/lib/components/TextAreaField/TextAreaField.stories.js +0 -164
- package/lib/components/TextAreaField/TextAreaField.test.js +0 -136
- package/lib/components/TextAreaField/index.js +0 -1
- package/lib/components/TextField/TextField.js +0 -186
- package/lib/components/TextField/TextField.stories.js +0 -263
- package/lib/components/TextField/TextField.test.js +0 -137
- package/lib/components/TextField/index.js +0 -1
- package/lib/components/TimeZonePicker/TimeZonePicker.js +0 -254
- package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +0 -21
- package/lib/components/TimeZonePicker/TimeZonePicker.test.js +0 -80
- package/lib/components/TimeZonePicker/index.js +0 -1
- package/lib/components/TimeZonePicker/timezones.js +0 -112
- package/lib/components/TooltipTrigger/Tooltip.js +0 -33
- package/lib/components/TooltipTrigger/TooltipTrigger.js +0 -166
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +0 -90
- package/lib/components/TooltipTrigger/TooltipTrigger.test.js +0 -82
- package/lib/components/TooltipTrigger/index.js +0 -2
- package/lib/context/AccordionContext/index.js +0 -7
- package/lib/context/AccordionGridContext/index.js +0 -5
- package/lib/context/MenuContext/index.js +0 -5
- package/lib/context/NavBarContext/index.js +0 -5
- package/lib/context/TooltipContext/index.js +0 -7
- package/lib/hooks/index.js +0 -16
- package/lib/hooks/useAriaLabelWarning/index.js +0 -1
- package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.js +0 -16
- package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +0 -32
- package/lib/hooks/useColumnStyles/index.js +0 -1
- package/lib/hooks/useColumnStyles/useColumnStyles.js +0 -24
- package/lib/hooks/useComponentToggle/index.js +0 -1
- package/lib/hooks/useComponentToggle/useComponentToggle.js +0 -55
- package/lib/hooks/useComponentToggle/useComponentToggle.test.js +0 -105
- package/lib/hooks/useCopyToClipboard/index.js +0 -1
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js +0 -69
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.test.js +0 -64
- package/lib/hooks/useDebounce/index.js +0 -1
- package/lib/hooks/useDebounce/useDebounce.js +0 -26
- package/lib/hooks/useDebounce/useDebounce.test.js +0 -41
- package/lib/hooks/useDeprecationWarning/index.js +0 -1
- package/lib/hooks/useDeprecationWarning/useDeprecationWarning.js +0 -40
- package/lib/hooks/useDeprecationWarning/useDeprecationWarning.test.js +0 -89
- package/lib/hooks/useDevelopmentWarning/index.js +0 -1
- package/lib/hooks/useDevelopmentWarning/useDevelopmentWarning.js +0 -17
- package/lib/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +0 -37
- package/lib/hooks/useFallbackImage/index.js +0 -1
- package/lib/hooks/useFallbackImage/useFallbackImage.js +0 -32
- package/lib/hooks/useFallbackImage/useFallbackImage.test.js +0 -51
- package/lib/hooks/useField/index.js +0 -1
- package/lib/hooks/useField/useField.js +0 -224
- package/lib/hooks/useField/useField.test.js +0 -236
- package/lib/hooks/useImageUploadState/index.js +0 -1
- package/lib/hooks/useImageUploadState/useImageUploadState.js +0 -128
- package/lib/hooks/useLabelHeight/index.js +0 -1
- package/lib/hooks/useLabelHeight/useLabelHeight.js +0 -29
- package/lib/hooks/useModalState/index.js +0 -1
- package/lib/hooks/useModalState/useModalState.js +0 -24
- package/lib/hooks/useModalState/useModalState.test.js +0 -118
- package/lib/hooks/useNavBarPress/index.js +0 -1
- package/lib/hooks/useNavBarPress/useNavBarPress.js +0 -27
- package/lib/hooks/useNavBarPress/useNavBarPress.test.js +0 -36
- package/lib/hooks/useOverlayPanelState/index.js +0 -1
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +0 -43
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +0 -19
- package/lib/hooks/useProgressiveState/index.js +0 -1
- package/lib/hooks/useProgressiveState/useProgressiveState.js +0 -18
- package/lib/hooks/useProgressiveState/useProgressiveState.test.js +0 -81
- package/lib/hooks/usePropWarning/index.js +0 -1
- package/lib/hooks/usePropWarning/usePropWarning.js +0 -29
- package/lib/hooks/usePropWarning/usePropWarning.test.js +0 -59
- package/lib/hooks/useRockerButton/index.js +0 -1
- package/lib/hooks/useRockerButton/useRockerButton.js +0 -43
- package/lib/hooks/useSelectField/index.js +0 -1
- package/lib/hooks/useSelectField/useSelectField.js +0 -230
- package/lib/hooks/useStatusClasses/index.js +0 -1
- package/lib/hooks/useStatusClasses/useStatusClasses.js +0 -25
- package/lib/hooks/useStatusClasses/useStatusClasses.test.js +0 -50
- package/lib/index.js +0 -154
- package/lib/recipes/ApplicationSearchDropdown.stories.js +0 -281
- package/lib/recipes/Arrow.stories.js +0 -33
- package/lib/recipes/AttributeMappingReadOnlyField.stories.js +0 -145
- package/lib/recipes/AttributesAndPingOneMapping.stories.js +0 -290
- package/lib/recipes/CollapsiblePanel.stories.js +0 -317
- package/lib/recipes/ConditionalFilter.stories.js +0 -388
- package/lib/recipes/CopyToClipboard.stories.js +0 -25
- package/lib/recipes/CountryPicker.stories.js +0 -140
- package/lib/recipes/DatePicker.stories.js +0 -121
- package/lib/recipes/DraggableBox.stories.js +0 -35
- package/lib/recipes/EditableInput.stories.js +0 -323
- package/lib/recipes/FlippableCaretMenuButton.stories.js +0 -158
- package/lib/recipes/ListAndPanel.stories.js +0 -339
- package/lib/recipes/LogoTabs.stories.js +0 -201
- package/lib/recipes/MaskedValue.stories.js +0 -63
- package/lib/recipes/NeutralInput.stories.js +0 -16
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +0 -231
- package/lib/recipes/PageHeader.stories.js +0 -53
- package/lib/recipes/PanelHeader.stories.js +0 -70
- package/lib/recipes/RadioButtonsWithLinks.stories.js +0 -120
- package/lib/recipes/RowLineChart.stories.js +0 -507
- package/lib/recipes/ScrollableListView.stories.js +0 -113
- package/lib/recipes/SelectedFieldOverlay.story.js +0 -48
- package/lib/recipes/Slider.stories.js +0 -204
- package/lib/recipes/StatsCircle.stories.js +0 -28
- package/lib/recipes/TrialExperienceIndustryButtons.stories.js +0 -677
- package/lib/recipes/TrialExperienceStatusBar.stories.js +0 -300
- package/lib/styles/ColorDocumentation.js +0 -276
- package/lib/styles/ColorDocumentation.stories.js +0 -13
- package/lib/styles/ContainerSizes.stories.js +0 -76
- package/lib/styles/Spacing.stories.js +0 -52
- package/lib/styles/ThemeDocumentation.js +0 -7
- package/lib/styles/Typography.stories.js +0 -136
- package/lib/styles/breakpoints.js +0 -1
- package/lib/styles/colors.js +0 -159
- package/lib/styles/forms/checkbox.js +0 -12
- package/lib/styles/forms/comboBox.js +0 -27
- package/lib/styles/forms/index.js +0 -32
- package/lib/styles/forms/input.js +0 -198
- package/lib/styles/forms/label.js +0 -75
- package/lib/styles/forms/radio.js +0 -21
- package/lib/styles/forms/search.js +0 -20
- package/lib/styles/forms/select.js +0 -83
- package/lib/styles/forms/switch.js +0 -58
- package/lib/styles/forms/textarea.js +0 -25
- package/lib/styles/spacing.js +0 -20
- package/lib/styles/text.js +0 -29
- package/lib/styles/theme.js +0 -61
- package/lib/styles/themeOverrides/index.js +0 -1
- package/lib/styles/themeOverrides/uiLibraryOverride.js +0 -110
- package/lib/styles/themes/astro-nano/astro-nano.js +0 -141
- package/lib/styles/themes/astro-nano/index.js +0 -1
- package/lib/styles/themes/end-user/end-user.js +0 -259
- package/lib/styles/themes/end-user/index.js +0 -1
- package/lib/styles/useAstroTheme.js +0 -15
- package/lib/styles/variants/accordion.js +0 -135
- package/lib/styles/variants/bidirectionalIconButton.js +0 -34
- package/lib/styles/variants/boxes.js +0 -370
- package/lib/styles/variants/buttons.js +0 -733
- package/lib/styles/variants/codeView.js +0 -159
- package/lib/styles/variants/collapsiblePanel.js +0 -80
- package/lib/styles/variants/imageUpload.js +0 -19
- package/lib/styles/variants/images.js +0 -9
- package/lib/styles/variants/index.js +0 -6
- package/lib/styles/variants/links.js +0 -46
- package/lib/styles/variants/listBox.js +0 -40
- package/lib/styles/variants/loader.js +0 -75
- package/lib/styles/variants/menu.js +0 -10
- package/lib/styles/variants/menuItem.js +0 -26
- package/lib/styles/variants/messages.js +0 -43
- package/lib/styles/variants/modal.js +0 -65
- package/lib/styles/variants/navBar.js +0 -56
- package/lib/styles/variants/numberField.js +0 -42
- package/lib/styles/variants/overlayPanel.js +0 -63
- package/lib/styles/variants/popoverMenu.js +0 -89
- package/lib/styles/variants/rockerbutton.js +0 -15
- package/lib/styles/variants/separator.js +0 -45
- package/lib/styles/variants/stepper.js +0 -105
- package/lib/styles/variants/table.js +0 -51
- package/lib/styles/variants/tabs.js +0 -36
- package/lib/styles/variants/text.js +0 -349
- package/lib/styles/variants/tooltip.js +0 -6
- package/lib/styles/variants/variants.js +0 -62
- package/lib/templates/Nav/HeaderBar.js +0 -93
- package/lib/templates/Nav/Nav.stories.js +0 -88
- package/lib/templates/Nav/NavData.js +0 -231
- package/lib/utils/devUtils/constants/animals.js +0 -1
- package/lib/utils/devUtils/constants/firstNames.js +0 -1
- package/lib/utils/devUtils/constants/htmlElements.js +0 -4
- package/lib/utils/devUtils/constants/images.js +0 -2
- package/lib/utils/devUtils/constants/loadingStates.js +0 -8
- package/lib/utils/devUtils/constants/orientation.js +0 -4
- package/lib/utils/devUtils/constants/panelSizes.js +0 -1
- package/lib/utils/devUtils/constants/statuses.js +0 -6
- package/lib/utils/devUtils/constants/variants.js +0 -22
- package/lib/utils/devUtils/createMockData.js +0 -68
- package/lib/utils/devUtils/decorators/withDeprecationWarning.js +0 -18
- package/lib/utils/devUtils/props/isIterable.js +0 -59
- package/lib/utils/devUtils/props/isValidPositiveInt.js +0 -28
- package/lib/utils/devUtils/styledSystemUtils.js +0 -48
- package/lib/utils/styleUtils/index.js +0 -7
- package/lib/utils/testUtils/setupTests.js +0 -18
- package/lib/utils/testUtils/testAxe.js +0 -50
- package/lib/utils/testUtils/testTheme.js +0 -20
- package/lib/utils/testUtils/testWrapper.js +0 -67
@@ -1,38 +0,0 @@
|
|
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;
|
@@ -1,31 +0,0 @@
|
|
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;
|
@@ -1,121 +0,0 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV1MiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQXN0cm9XcmFwcGVyL0FzdHJvV3JhcHBlci5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IFRoZW1lUHJvdmlkZXIsIG1lcmdlIH0gZnJvbSAndGhlbWUtdWknO1xuaW1wb3J0IHsgR2xvYmFsLCBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgZW1vdGlvbk5vcm1hbGl6ZSBmcm9tICdlbW90aW9uLW5vcm1hbGl6ZSc7XG5pbXBvcnQgQm94IGZyb20gJy4uL0JveCc7XG5pbXBvcnQgYXN0cm9UaGVtZSBmcm9tICcuLi8uLi9zdHlsZXMvdGhlbWUnO1xuXG5leHBvcnQgY29uc3QgR2xvYmFsU3R5bGVzID0gKCkgPT4gKFxuICA8R2xvYmFsXG4gICAgc3R5bGVzPXtcbiAgICAgIGNzc2BcbiAgICAgICAgQGltcG9ydCB1cmwoXCJodHRwczovL3VzZS50eXBla2l0Lm5ldC9pY3o4Y25pLmNzc1wiKTtcbiAgICAgICAgJHtlbW90aW9uTm9ybWFsaXplfVxuICAgICAgICAqIHtcbiAgICAgICAgICBib3gtc2l6aW5nOiB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cy5hcnJheU9mKFByb3BUeXBlcy5zaGFwZSh7fSkpLFxuICAvKiogVGhlIGRlZmF1bHQgdGhlbWUgYXBwbGllZCB0byB0aGUgQXN0cm8gY29tcG9uZW50cy5cbiAgICogT3ZlcnJpZGluZyB0aGlzIGlzIGFuIGFkdmFuY2VkIHVzZSBjYXNlIHNvXG4gICAqIHBsZWFzZSB1bmRlcnN0YW5kIHBvdGVudGlhbCByZXByZWN1c3Npb25zIGJlZm9yZSBlZGl0aW5nICovXG4gIGRlZmF1bHRUaGVtZTogUHJvcFR5cGVzLnNoYXBlKHt9KSxcbn07XG5cblBhZ2VXcmFwcGVyLmRlZmF1bHRQcm9wcyA9IHtcbiAgZGVmYXVsdFRoZW1lOiBhc3Ryb1RoZW1lLFxuICB0aGVtZU92ZXJyaWRlczogW3t9XSxcbn07XG5cbmV4cG9ydCB7IFRoZW1lUHJvdmlkZXIgfTtcbmV4cG9ydCBkZWZhdWx0IEFzdHJvV3JhcHBlcjtcbiJdfQ== */")
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSw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cmVwcmVjdXNzaW9ucyBiZWZvcmUgZWRpdGluZyAqL1xuICBkZWZhdWx0VGhlbWU6IFByb3BUeXBlcy5zaGFwZSh7fSksXG59O1xuXG5QYWdlV3JhcHBlci5kZWZhdWx0UHJvcHMgPSB7XG4gIGRlZmF1bHRUaGVtZTogYXN0cm9UaGVtZSxcbiAgdGhlbWVPdmVycmlkZXM6IFt7fV0sXG59O1xuXG5leHBvcnQgeyBUaGVtZVByb3ZpZGVyIH07XG5leHBvcnQgZGVmYXVsdCBBc3Ryb1dyYXBwZXI7XG4iXX0= */",
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3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dGFuZCBwb3RlbnRpYWwgcmVwcmVjdXNzaW9ucyBiZWZvcmUgZWRpdGluZyAqL1xuICBkZWZhdWx0VGhlbWU6IFByb3BUeXBlcy5zaGFwZSh7fSksXG59O1xuXG5QYWdlV3JhcHBlci5kZWZhdWx0UHJvcHMgPSB7XG4gIGRlZmF1bHRUaGVtZTogYXN0cm9UaGVtZSxcbiAgdGhlbWVPdmVycmlkZXM6IFt7fV0sXG59O1xuXG5leHBvcnQgeyBUaGVtZVByb3ZpZGVyIH07XG5leHBvcnQgZGVmYXVsdCBBc3Ryb1dyYXBwZXI7XG4iXX0= */")
|
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;
|
@@ -1,68 +0,0 @@
|
|
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
|
-
};
|
@@ -1,26 +0,0 @@
|
|
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
|
-
});
|
@@ -1,28 +0,0 @@
|
|
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
|
-
});
|
@@ -1,27 +0,0 @@
|
|
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;
|
@@ -1,22 +0,0 @@
|
|
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
|
-
};
|
@@ -1,32 +0,0 @@
|
|
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
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './Avatar';
|
@@ -1,111 +0,0 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3guanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBU29CIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3guanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBsYXlvdXQsIGZsZXhib3gsIHR5cG9ncmFwaHkgfSBmcm9tICdzdHlsZWQtc3lzdGVtJztcbmltcG9ydCB7IEJveCBhcyBUaGVtZVVJQm94IH0gZnJvbSAndGhlbWUtdWknO1xuaW1wb3J0IHsgcHJvcFR5cGUgYXMgc3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4gICAgICBzeD17Y3VzdG9tfVxuICAgIC8+XG4gICk7XG59KTtcblxuQm94LnByb3BUeXBlcyA9IHtcbiAgLyoqIFRoZSBiYWNrZ3JvdW5kIGNvbG9yIG9mIHRoZSBib3guICovXG4gIGJnOiBQcm9wVHlwZXMuc3RyaW5nLFxuICAvKiogV2hldGhlciB0aGUgYm94IGlzIGRpc2FibGVkLiAqL1xuICBpc0Rpc2FibGVkOiBQcm9wVHlwZXMub25lT2ZUeXBlKFtQcm9wVHlwZXMuYm9vbCwgUHJvcFR5cGVzLm9iamVjdF0pLFxuICAvKiogVGhlIGJhc2UgSFRNTCB0YWcgbmFtZSBvciBSZWFjdCBjb21wb25lbnQgdHlwZSB0byByZW5kZXIgKi9cbiAgYXM6IFByb3BUeXBlcy5vbmVPZlR5cGUoW1Byb3BUeXBlcy5zdHJpbmcsIFByb3BUeXBlcy5lbGVtZW50VHlwZV0pLFxuICAvKiogV2hlbiB0cnVlLCBkaXNwbGF5IGFzIGEgcm93IHJhdGhlciB0aGFuIGEgY29sdW1uLiAqL1xuICBpc1JvdzogUHJvcFR5cGVzLmJvb2wsXG4gIC8qKiBHYXAgYmV0d2VlbiBpdGVtcywgd2hldGhlciBpbiBhIHJvdyBvciBjb2x1bW4uICovXG4gIGdhcDogc3R5bGVQcm9wVHlwZSxcbiAgZm9udFNpemU6IFByb3BUeXBlcy5vbmVPZlR5cGUoW1Byb3BUeXBlcy5zdHJpbmcsIFByb3BUeXBlcy5udW1iZXJdKSxcbn07XG5cbkJveC5kZWZhdWx0UHJvcHMgPSB7XG4gIGFzOiAnZGl2JyxcbiAgaXNSb3c6IGZhbHNlLFxuICBpc0Rpc2FibGVkOiBmYWxzZSxcbn07XG5cbkJveC5kaXNwbGF5TmFtZSA9ICdCb3gnO1xuXG5leHBvcnQgZGVmYXVsdCBCb3g7XG4iXX0= */");
|
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;
|