@pingux/astro 1.27.0-alpha.21 → 1.27.0-alpha.23
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,252 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
6
|
-
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
8
|
-
|
9
|
-
var _ArrayField = _interopRequireDefault(require("./ArrayField"));
|
10
|
-
|
11
|
-
var _ArrayFieldDeleteButton = _interopRequireDefault(require("./ArrayFieldDeleteButton"));
|
12
|
-
|
13
|
-
var _TextField = _interopRequireDefault(require("../TextField"));
|
14
|
-
|
15
|
-
var _testWrapper = require("../../utils/testUtils/testWrapper");
|
16
|
-
|
17
|
-
var _react2 = require("@emotion/react");
|
18
|
-
|
19
|
-
jest.mock('uuid', function () {
|
20
|
-
return {
|
21
|
-
v4: function v4() {
|
22
|
-
return 'testid';
|
23
|
-
}
|
24
|
-
};
|
25
|
-
});
|
26
|
-
var defaultData = [{
|
27
|
-
id: '1',
|
28
|
-
value: 'Hello'
|
29
|
-
}, {
|
30
|
-
id: '2',
|
31
|
-
value: 'World'
|
32
|
-
}];
|
33
|
-
var defaultProps = {
|
34
|
-
defaultValue: defaultData
|
35
|
-
};
|
36
|
-
|
37
|
-
var getComponent = function getComponent() {
|
38
|
-
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
39
|
-
return (0, _testWrapper.render)((0, _react2.jsx)(_ArrayField["default"], (0, _extends2["default"])({
|
40
|
-
label: "test-label"
|
41
|
-
}, defaultProps, props)));
|
42
|
-
};
|
43
|
-
|
44
|
-
var renderField = function renderField(id, value, onFieldValueChange, onFieldDelete, otherFieldProps) {
|
45
|
-
return (0, _react2.jsx)(_TextField["default"], (0, _extends2["default"])({
|
46
|
-
label: "Text field",
|
47
|
-
value: value,
|
48
|
-
onChange: function onChange(e) {
|
49
|
-
return onFieldValueChange(e, id);
|
50
|
-
},
|
51
|
-
mr: "xs",
|
52
|
-
slots: {
|
53
|
-
inContainer: (0, _react2.jsx)(_ArrayFieldDeleteButton["default"], {
|
54
|
-
isDisabled: false,
|
55
|
-
onDelete: function onDelete() {
|
56
|
-
return onFieldDelete(id);
|
57
|
-
}
|
58
|
-
})
|
59
|
-
}
|
60
|
-
}, otherFieldProps));
|
61
|
-
};
|
62
|
-
|
63
|
-
test('displays multiple text fields', function () {
|
64
|
-
var onChange = jest.fn();
|
65
|
-
getComponent({
|
66
|
-
onChange: onChange,
|
67
|
-
renderField: renderField
|
68
|
-
});
|
69
|
-
expect(_testWrapper.screen.getAllByLabelText('Text field')).toHaveLength(2);
|
70
|
-
});
|
71
|
-
test('adds one text field and new empty field is added', function () {
|
72
|
-
getComponent({
|
73
|
-
renderField: renderField
|
74
|
-
});
|
75
|
-
|
76
|
-
_testWrapper.fireEvent.click(_testWrapper.screen.getByText('+ Add'));
|
77
|
-
|
78
|
-
expect(_testWrapper.screen.getAllByLabelText('Text field')).toHaveLength(3);
|
79
|
-
});
|
80
|
-
test('onAdd callback is fired when adding field', function () {
|
81
|
-
var onAdd = jest.fn();
|
82
|
-
var value = defaultData;
|
83
|
-
var defaultValue = null;
|
84
|
-
getComponent({
|
85
|
-
value: value,
|
86
|
-
defaultValue: defaultValue,
|
87
|
-
onAdd: onAdd,
|
88
|
-
renderField: renderField
|
89
|
-
});
|
90
|
-
|
91
|
-
_testWrapper.fireEvent.click(_testWrapper.screen.getByText('+ Add'));
|
92
|
-
|
93
|
-
expect(onAdd).toHaveBeenCalled();
|
94
|
-
});
|
95
|
-
test('deletes one text field and only one field is left', function () {
|
96
|
-
getComponent({
|
97
|
-
renderField: renderField
|
98
|
-
});
|
99
|
-
|
100
|
-
_testWrapper.fireEvent.click(_testWrapper.screen.getAllByRole('button')[0]);
|
101
|
-
|
102
|
-
expect(_testWrapper.screen.getByLabelText('Text field')).toBeInTheDocument();
|
103
|
-
});
|
104
|
-
test('onDelete callback is fired when deleting field', function () {
|
105
|
-
var onDelete = jest.fn();
|
106
|
-
var value = defaultData;
|
107
|
-
var defaultValue = null;
|
108
|
-
getComponent({
|
109
|
-
value: value,
|
110
|
-
defaultValue: defaultValue,
|
111
|
-
onDelete: onDelete,
|
112
|
-
renderField: renderField
|
113
|
-
});
|
114
|
-
|
115
|
-
_testWrapper.fireEvent.click(_testWrapper.screen.getAllByRole('button')[0]);
|
116
|
-
|
117
|
-
expect(onDelete).toHaveBeenCalled();
|
118
|
-
});
|
119
|
-
test('Values are changed in text field', function () {
|
120
|
-
getComponent({
|
121
|
-
renderField: renderField
|
122
|
-
});
|
123
|
-
|
124
|
-
_testWrapper.fireEvent.change(_testWrapper.screen.getAllByLabelText('Text field')[0], {
|
125
|
-
target: {
|
126
|
-
value: '123'
|
127
|
-
}
|
128
|
-
});
|
129
|
-
|
130
|
-
expect(_testWrapper.screen.getByDisplayValue('123')).toBeInTheDocument();
|
131
|
-
});
|
132
|
-
test('onChange gets called when field values are changed', function () {
|
133
|
-
var onChange = jest.fn();
|
134
|
-
var value = defaultData;
|
135
|
-
var defaultValue = null;
|
136
|
-
getComponent({
|
137
|
-
value: value,
|
138
|
-
onChange: onChange,
|
139
|
-
renderField: renderField,
|
140
|
-
defaultValue: defaultValue
|
141
|
-
});
|
142
|
-
|
143
|
-
_testWrapper.fireEvent.change(_testWrapper.screen.getAllByLabelText('Text field')[0], {
|
144
|
-
target: {
|
145
|
-
value: '123'
|
146
|
-
}
|
147
|
-
});
|
148
|
-
|
149
|
-
expect(onChange).toHaveBeenNthCalledWith(1, [{
|
150
|
-
id: '1',
|
151
|
-
value: '123'
|
152
|
-
}, {
|
153
|
-
id: '2',
|
154
|
-
value: 'World'
|
155
|
-
}]);
|
156
|
-
});
|
157
|
-
test('onComponentRender displays fields correctly', function () {
|
158
|
-
var onChange = jest.fn();
|
159
|
-
var componentRenderData = [{
|
160
|
-
id: '1',
|
161
|
-
value: 'Hello',
|
162
|
-
onComponentRender: function onComponentRender(id, value, onFieldValueChange, onFieldDelete, otherFieldProps) {
|
163
|
-
return (0, _react2.jsx)(_TextField["default"], (0, _extends2["default"])({
|
164
|
-
label: "Text field",
|
165
|
-
value: value,
|
166
|
-
onChange: function onChange(e) {
|
167
|
-
return onFieldValueChange(e, id);
|
168
|
-
},
|
169
|
-
mr: "xs",
|
170
|
-
slots: {
|
171
|
-
inContainer: (0, _react2.jsx)(_ArrayFieldDeleteButton["default"], {
|
172
|
-
isDisabled: false,
|
173
|
-
onDelete: function onDelete() {
|
174
|
-
return onFieldDelete(id);
|
175
|
-
}
|
176
|
-
})
|
177
|
-
}
|
178
|
-
}, otherFieldProps));
|
179
|
-
}
|
180
|
-
}, {
|
181
|
-
id: '2',
|
182
|
-
value: 'World',
|
183
|
-
onComponentRender: function onComponentRender(id, value, onFieldValueChange, onFieldDelete, otherFieldProps) {
|
184
|
-
return (0, _react2.jsx)(_TextField["default"], (0, _extends2["default"])({
|
185
|
-
label: "Text field 2",
|
186
|
-
value: value,
|
187
|
-
onChange: function onChange(e) {
|
188
|
-
return onFieldValueChange(e, id);
|
189
|
-
},
|
190
|
-
mr: "xs",
|
191
|
-
slots: {
|
192
|
-
inContainer: (0, _react2.jsx)(_ArrayFieldDeleteButton["default"], {
|
193
|
-
isDisabled: false,
|
194
|
-
onDelete: function onDelete() {
|
195
|
-
return onFieldDelete(id);
|
196
|
-
}
|
197
|
-
})
|
198
|
-
}
|
199
|
-
}, otherFieldProps));
|
200
|
-
}
|
201
|
-
}];
|
202
|
-
(0, _testWrapper.render)((0, _react2.jsx)(_ArrayField["default"], {
|
203
|
-
label: "test-label",
|
204
|
-
defaultValue: componentRenderData,
|
205
|
-
onChange: onChange
|
206
|
-
}));
|
207
|
-
expect(_testWrapper.screen.getByLabelText('Text field')).toBeInTheDocument();
|
208
|
-
expect(_testWrapper.screen.getByLabelText('Text field 2')).toBeInTheDocument();
|
209
|
-
});
|
210
|
-
test('creates empty field when no data passed', function () {
|
211
|
-
(0, _testWrapper.render)((0, _react2.jsx)(_ArrayField["default"], {
|
212
|
-
label: "test-label",
|
213
|
-
renderField: renderField
|
214
|
-
}));
|
215
|
-
expect(_testWrapper.screen.getByLabelText('Text field')).toBeInTheDocument();
|
216
|
-
});
|
217
|
-
test('check if tooltip on delete button renders on hover', function () {
|
218
|
-
(0, _testWrapper.render)((0, _react2.jsx)(_ArrayFieldDeleteButton["default"], {
|
219
|
-
renderField: renderField
|
220
|
-
}));
|
221
|
-
|
222
|
-
var button = _testWrapper.screen.getByRole('button');
|
223
|
-
|
224
|
-
_testWrapper.fireEvent.mouseMove(button);
|
225
|
-
|
226
|
-
_testWrapper.fireEvent.mouseEnter(button);
|
227
|
-
|
228
|
-
expect(_testWrapper.screen.queryByRole('tooltip')).not.toBeInTheDocument();
|
229
|
-
});
|
230
|
-
test('removes add button if max number of fields is reached', function () {
|
231
|
-
getComponent({
|
232
|
-
renderField: renderField,
|
233
|
-
maxSize: 3
|
234
|
-
});
|
235
|
-
expect(_testWrapper.screen.getAllByLabelText('Text field')).toHaveLength(2);
|
236
|
-
|
237
|
-
_testWrapper.fireEvent.click(_testWrapper.screen.getByText('+ Add'));
|
238
|
-
|
239
|
-
expect(_testWrapper.screen.getAllByLabelText('Text field')).toHaveLength(3);
|
240
|
-
expect(_testWrapper.screen.queryByText('+ Add')).not.toBeInTheDocument();
|
241
|
-
expect(_testWrapper.screen.getByText('Maximum 3 items.')).toBeInTheDocument();
|
242
|
-
});
|
243
|
-
test('displays max size label if provided', function () {
|
244
|
-
var maxSizeText = 'Too many fields';
|
245
|
-
getComponent({
|
246
|
-
renderField: renderField,
|
247
|
-
maxSize: 1,
|
248
|
-
maxSizeText: maxSizeText
|
249
|
-
});
|
250
|
-
expect(_testWrapper.screen.queryByText('+ Add')).not.toBeInTheDocument();
|
251
|
-
expect(_testWrapper.screen.getByText(maxSizeText)).toBeInTheDocument();
|
252
|
-
});
|
@@ -1,56 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
-
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
8
|
-
value: true
|
9
|
-
});
|
10
|
-
|
11
|
-
exports["default"] = void 0;
|
12
|
-
|
13
|
-
var _react = _interopRequireDefault(require("react"));
|
14
|
-
|
15
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
16
|
-
|
17
|
-
var _TrashIcon = _interopRequireDefault(require("mdi-react/TrashIcon"));
|
18
|
-
|
19
|
-
var _Icon = _interopRequireDefault(require("../Icon"));
|
20
|
-
|
21
|
-
var _IconButton = _interopRequireDefault(require("../IconButton"));
|
22
|
-
|
23
|
-
var _react2 = require("@emotion/react");
|
24
|
-
|
25
|
-
var ArrayFieldDeleteButton = function ArrayFieldDeleteButton(_ref) {
|
26
|
-
var isDisabled = _ref.isDisabled,
|
27
|
-
id = _ref.id,
|
28
|
-
onDelete = _ref.onDelete;
|
29
|
-
return (0, _react2.jsx)(_IconButton["default"], {
|
30
|
-
onPress: function onPress() {
|
31
|
-
return onDelete(id);
|
32
|
-
},
|
33
|
-
isDisabled: isDisabled,
|
34
|
-
"aria-label": "delete-button",
|
35
|
-
sx: {
|
36
|
-
position: 'absolute',
|
37
|
-
right: -35,
|
38
|
-
width: 32,
|
39
|
-
height: 32,
|
40
|
-
top: 5,
|
41
|
-
cursor: 'pointer'
|
42
|
-
}
|
43
|
-
}, (0, _react2.jsx)(_Icon["default"], {
|
44
|
-
icon: _TrashIcon["default"],
|
45
|
-
size: 20,
|
46
|
-
color: "neutral.40"
|
47
|
-
}));
|
48
|
-
};
|
49
|
-
|
50
|
-
ArrayFieldDeleteButton.propTypes = {
|
51
|
-
id: _propTypes["default"].number,
|
52
|
-
isDisabled: _propTypes["default"].bool,
|
53
|
-
onDelete: _propTypes["default"].func
|
54
|
-
};
|
55
|
-
var _default = ArrayFieldDeleteButton;
|
56
|
-
exports["default"] = _default;
|
@@ -1,50 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
-
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
8
|
-
value: true
|
9
|
-
});
|
10
|
-
|
11
|
-
exports["default"] = void 0;
|
12
|
-
|
13
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
|
14
|
-
|
15
|
-
var _react = _interopRequireDefault(require("react"));
|
16
|
-
|
17
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
18
|
-
|
19
|
-
var _Box = _interopRequireDefault(require("../Box"));
|
20
|
-
|
21
|
-
var _react2 = require("@emotion/react");
|
22
|
-
|
23
|
-
var _excluded = ["id", "onComponentRender", "fieldValue", "isDisabled", "onFieldDelete", "onFieldValueChange", "renderField"];
|
24
|
-
|
25
|
-
var ArrayFieldItem = /*#__PURE__*/_react["default"].memo(function (_ref) {
|
26
|
-
var id = _ref.id,
|
27
|
-
onComponentRender = _ref.onComponentRender,
|
28
|
-
fieldValue = _ref.fieldValue,
|
29
|
-
isDisabled = _ref.isDisabled,
|
30
|
-
onFieldDelete = _ref.onFieldDelete,
|
31
|
-
onFieldValueChange = _ref.onFieldValueChange,
|
32
|
-
renderField = _ref.renderField,
|
33
|
-
otherFieldProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
34
|
-
return (0, _react2.jsx)(_Box["default"], {
|
35
|
-
as: "li",
|
36
|
-
mb: "xs"
|
37
|
-
}, onComponentRender ? onComponentRender(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps) : renderField(id, fieldValue, onFieldValueChange, onFieldDelete, isDisabled, otherFieldProps));
|
38
|
-
});
|
39
|
-
|
40
|
-
ArrayFieldItem.propTypes = {
|
41
|
-
id: _propTypes["default"].string,
|
42
|
-
onComponentRender: _propTypes["default"].func,
|
43
|
-
fieldValue: _propTypes["default"].string,
|
44
|
-
isDisabled: _propTypes["default"].bool,
|
45
|
-
onFieldDelete: _propTypes["default"].func,
|
46
|
-
onFieldValueChange: _propTypes["default"].func,
|
47
|
-
renderField: _propTypes["default"].func
|
48
|
-
};
|
49
|
-
var _default = ArrayFieldItem;
|
50
|
-
exports["default"] = _default;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
-
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
8
|
-
value: true
|
9
|
-
});
|
10
|
-
|
11
|
-
_Object$defineProperty(exports, "ArrayFieldDeleteButton", {
|
12
|
-
enumerable: true,
|
13
|
-
get: function get() {
|
14
|
-
return _ArrayFieldDeleteButton["default"];
|
15
|
-
}
|
16
|
-
});
|
17
|
-
|
18
|
-
_Object$defineProperty(exports, "default", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _ArrayField["default"];
|
22
|
-
}
|
23
|
-
});
|
24
|
-
|
25
|
-
var _ArrayField = _interopRequireDefault(require("./ArrayField"));
|
26
|
-
|
27
|
-
var _ArrayFieldDeleteButton = _interopRequireDefault(require("./ArrayFieldDeleteButton"));
|
@@ -1,162 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
6
|
-
|
7
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
8
|
-
|
9
|
-
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
10
|
-
|
11
|
-
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
12
|
-
|
13
|
-
_Object$defineProperty(exports, "__esModule", {
|
14
|
-
value: true
|
15
|
-
});
|
16
|
-
|
17
|
-
exports.PageWrapper = exports.GlobalStyles = void 0;
|
18
|
-
|
19
|
-
_Object$defineProperty(exports, "ThemeProvider", {
|
20
|
-
enumerable: true,
|
21
|
-
get: function get() {
|
22
|
-
return _themeUi.ThemeProvider;
|
23
|
-
}
|
24
|
-
});
|
25
|
-
|
26
|
-
exports["default"] = void 0;
|
27
|
-
|
28
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
29
|
-
|
30
|
-
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
31
|
-
|
32
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
|
33
|
-
|
34
|
-
var _react = _interopRequireWildcard(require("react"));
|
35
|
-
|
36
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
37
|
-
|
38
|
-
var _themeUi = require("theme-ui");
|
39
|
-
|
40
|
-
var _react2 = require("@emotion/react");
|
41
|
-
|
42
|
-
var _emotionNormalize = _interopRequireDefault(require("emotion-normalize"));
|
43
|
-
|
44
|
-
var _Box = _interopRequireDefault(require("../Box"));
|
45
|
-
|
46
|
-
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
47
|
-
|
48
|
-
var _excluded = ["defaultTheme", "themeOverrides", "children"],
|
49
|
-
_excluded2 = ["defaultTheme", "themeOverrides", "children"];
|
50
|
-
|
51
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
52
|
-
|
53
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
54
|
-
|
55
|
-
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)."; }
|
56
|
-
|
57
|
-
var GlobalStyles = function GlobalStyles() {
|
58
|
-
return (0, _react2.jsx)(_react2.Global, {
|
59
|
-
styles: /*#__PURE__*/(0, _react2.css)("@import url(\"https://use.typekit.net/icz8cni.css\");{}", _emotionNormalize["default"], " *{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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV1MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQXN0cm9XcmFwcGVyL0FzdHJvV3JhcHBlci5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IFRoZW1lUHJvdmlkZXIsIG1lcmdlIH0gZnJvbSAndGhlbWUtdWknO1xuaW1wb3J0IHsgR2xvYmFsLCBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgZW1vdGlvbk5vcm1hbG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BhZ2VXcmFwcGVyLnByb3BUeXBlcyA9IHtcbiAgLyoqIEFycmF5IG9mIHRoZW1lIG9iamVjdHMgd2hpY2ggd2lsbCBiZSBtZXJnZWQgd2l0aCB0aGUgZGVmYXVsdCB0aGVtZS5cbiAgICAgKiBJbiB0aGUgY2FzZSBvZiBjbGFzaGVzLCB0aGVzZSB3aWxsIHRha2UgcHJpb3JpdHkuXG4gICAgICogVXNlZnVsIGZvciBjdXN0b21pemluZyB0aGUgZGVmYXVsdCB2YXJpYW50cywgYWRkaW5nIG5ldyBvbmVzLFxuICAgICAqICBvciBvdmVycmlkaW5nIG90aGVyIHRoZW1lIHZhbHVlcy4gKi9cbiAgdGhlbWVPdmVycmlkZXM6IFByb3BUeXBlcy5hcnJheU9mKFByb3BUeXBlcy5zaGFwZSh7fSkpLFxuICAvKiogVGhlIGRlZmF1bHQgdGhlbWUgYXBwbGllZCB0byB0aGUgQXN0cm8gY29tcG9uZW50cy5cbiAgICogT3ZlcnJpZGluZyB0aGlzIGlzIGFuIGFkdmFuY2VkIHVzZSBjYXNlIHNvXG4gICAqIHBsZWFzZSB1bmRlcnN0YW5kIHBvdGVudGlhbCByZXByZWN1c3Npb25zIGJlZm9yZSBlZGl0aW5nICovXG4gIGRlZmF1bHRUaGVtZTogUHJvcFR5cGVzLnNoYXBlKHt9KSxcbn07XG5cblBhZ2VXcmFwcGVyLmRlZmF1bHRQcm9wcyA9IHtcbiAgZGVmYXVsdFRoZW1lOiBhc3Ryb1RoZW1lLFxuICB0aGVtZU92ZXJyaWRlczogW3t9XSxcbn07XG5cbmV4cG9ydCB7IFRoZW1lUHJvdmlkZXIgfTtcbmV4cG9ydCBkZWZhdWx0IEFzdHJvV3JhcHBlcjtcbiJdfQ== */")
|
60
|
-
});
|
61
|
-
};
|
62
|
-
/**
|
63
|
-
* The main wrapper for the Astro application.
|
64
|
-
* The AstroWrapper provides a standard background,
|
65
|
-
* some global styles, and the Astro theme by default.
|
66
|
-
*
|
67
|
-
* _Note: For UI Library and Astro CSS conflicts, we supply a theme override located at_
|
68
|
-
* `@pingux/astro/lib/styles/themeOverrides/uiLibraryOverride.js`
|
69
|
-
*/
|
70
|
-
|
71
|
-
|
72
|
-
exports.GlobalStyles = GlobalStyles;
|
73
|
-
var AstroWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
74
|
-
var defaultTheme = props.defaultTheme,
|
75
|
-
themeOverrides = props.themeOverrides,
|
76
|
-
children = props.children,
|
77
|
-
others = (0, _objectWithoutProperties2["default"])(props, _excluded); // Unfortunately because this is adding styles, we cannot write a proper test for this.
|
78
|
-
|
79
|
-
/* istanbul ignore next */
|
80
|
-
|
81
|
-
var theme = (0, _react.useMemo)(function () {
|
82
|
-
var _context;
|
83
|
-
|
84
|
-
return _themeUi.merge.apply(void 0, (0, _concat["default"])(_context = [defaultTheme]).call(_context, themeOverrides));
|
85
|
-
}, [defaultTheme, themeOverrides]);
|
86
|
-
return (0, _react2.jsx)(_themeUi.ThemeProvider, (0, _extends2["default"])({
|
87
|
-
ref: ref,
|
88
|
-
theme: theme
|
89
|
-
}, others), (0, _react2.jsx)(GlobalStyles, null), (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
|
90
|
-
bg: "background",
|
91
|
-
height: "100%"
|
92
|
-
}, props), children));
|
93
|
-
});
|
94
|
-
AstroWrapper.propTypes = {
|
95
|
-
/** Array of theme objects which will be merged with the default theme.
|
96
|
-
* In the case of clashes, these will take priority.
|
97
|
-
* Useful for customizing the default variants, adding new ones,
|
98
|
-
* or overriding other theme values. */
|
99
|
-
themeOverrides: _propTypes["default"].arrayOf(_propTypes["default"].shape({})),
|
100
|
-
|
101
|
-
/** The default theme applied to the Astro components.
|
102
|
-
* Overriding this is an advanced use case so
|
103
|
-
* please understand potential reprecussions before editing */
|
104
|
-
defaultTheme: _propTypes["default"].shape({})
|
105
|
-
};
|
106
|
-
AstroWrapper.defaultProps = {
|
107
|
-
defaultTheme: _theme["default"],
|
108
|
-
themeOverrides: [{}]
|
109
|
-
};
|
110
|
-
/**
|
111
|
-
* Wrapper for the Astro application w/o global styles.
|
112
|
-
* It provides the standard background and the Astro theme.
|
113
|
-
*/
|
114
|
-
|
115
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
116
|
-
name: "1ym5lsq",
|
117
|
-
styles: "@import url(\"https://use.typekit.net/icz8cni.css\");{}[data-tippy-root]{max-width:calc(100vw - 10px);}"
|
118
|
-
} : {
|
119
|
-
name: "1385fa1-PageWrapper",
|
120
|
-
styles: "@import url(\"https://use.typekit.net/icz8cni.css\");{}[data-tippy-root]{max-width:calc(100vw - 10px);};label:PageWrapper;",
|
121
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0dLIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBUaGVtZVByb3ZpZGVyLCBtZXJnZSB9IGZyb20gJ3RoZW1lLXVpJztcbmltcG9ydCB7IEdsb2JhbCwgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IGVtb3Rpb25Ob3JtYWxpemUgZnJvbSAnZW1vdGlvbi1ub3JtYWxpemUnO1xuaW1wb3J0IEJveCBmcm9tICcuLi9Cb3gnO1xuaW1wb3J0IGFzdHJvVGhlbWUgZnJvbSAnLi4vLi4vc3R5bGVzL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WUuXG4gICAgICogSW4gdGhlIGNhc2Ugb2YgY2xhc2hlcywgdGhlc2Ugd2lsbCB0YWtlIHByaW9yaXR5LlxuICAgICAqIFVzZWZ1bCBmb3IgY3VzdG9taXppbmcgdGhlIGRlZmF1bHQgdmFyaWFudHMsIGFkZGluZyBuZXcgb25lcyxcbiAgICAgKiAgb3Igb3ZlcnJpZGluZyBvdGhlciB0aGVtZSB2YWx1ZXMuICovXG4gIHRoZW1lT3ZlcnJpZGVzOiBQcm9wVHlwZXMuYXJyYXlPZihQcm9wVHlwZXMuc2hhcGUoe30pKSxcbiAgLyoqIFRoZSBkZWZhdWx0IHRoZW1lIGFwcGxpZWQgdG8gdGhlIEFzdHJvIGNvbXBvbmVudHMuXG4gICAqIE92ZXJyaWRpbmcgdGhpcyBpcyBhbiBhZHZhbmNlZCB1c2UgY2FzZSBzb1xuICAgKiBwbGVhc2UgdW5kZXJzdGFuZCBwb3RlbnRpYWwgcmVwcmVjdXNzaW9ucyBiZWZvcmUgZWRpdGluZyAqL1xuICBkZWZhdWx0VGhlbWU6IFByb3BUeXBlcy5zaGFwZSh7fSksXG59O1xuXG5QYWdlV3JhcHBlci5kZWZhdWx0UHJvcHMgPSB7XG4gIGRlZmF1bHRUaGVtZTogYXN0cm9UaGVtZSxcbiAgdGhlbWVPdmVycmlkZXM6IFt7fV0sXG59O1xuXG5leHBvcnQgeyBUaGVtZVByb3ZpZGVyIH07XG5leHBvcnQgZGVmYXVsdCBBc3Ryb1dyYXBwZXI7XG4iXX0= */",
|
122
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
123
|
-
};
|
124
|
-
|
125
|
-
var PageWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
126
|
-
var defaultTheme = props.defaultTheme,
|
127
|
-
themeOverrides = props.themeOverrides,
|
128
|
-
children = props.children,
|
129
|
-
others = (0, _objectWithoutProperties2["default"])(props, _excluded2);
|
130
|
-
var theme = (0, _react.useMemo)(function () {
|
131
|
-
var _context2;
|
132
|
-
|
133
|
-
return _themeUi.merge.apply(void 0, (0, _concat["default"])(_context2 = [defaultTheme]).call(_context2, themeOverrides));
|
134
|
-
}, [defaultTheme, themeOverrides]);
|
135
|
-
return (0, _react2.jsx)(_themeUi.ThemeProvider, (0, _extends2["default"])({
|
136
|
-
ref: ref,
|
137
|
-
theme: theme
|
138
|
-
}, others), (0, _react2.jsx)(_react2.Global, {
|
139
|
-
styles: _ref
|
140
|
-
}), (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
|
141
|
-
css: /*#__PURE__*/(0, _react2.css)(_emotionNormalize["default"], " *{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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0dLIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0FzdHJvV3JhcHBlci9Bc3Ryb1dyYXBwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBUaGVtZVByb3ZpZGVyLCBtZXJnZSB9IGZyb20gJ3RoZW1lLXVpJztcbmltcG9ydCB7IEdsb2JhbCwgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IGVtb3Rpb25Ob3JtYWxpemUgZnJvbSAnZW1vdGlvbi1ub3Jt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XG4gIC8qKiBBcnJheSBvZiB0aGVtZSBvYmplY3RzIHdoaWNoIHdpbGwgYmUgbWVyZ2VkIHdpdGggdGhlIGRlZmF1bHQgdGhlbWUuXG4gICAgICogSW4gdGhlIGNhc2Ugb2YgY2xhc2hlcywgdGhlc2Ugd2lsbCB0YWtlIHByaW9yaXR5LlxuICAgICAqIFVzZWZ1bCBmb3IgY3VzdG9taXppbmcgdGhlIGRlZmF1bHQgdmFyaWFudHMsIGFkZGluZyBuZXcgb25lcyxcbiAgICAgKiAgb3Igb3ZlcnJpZGluZyBvdGhlciB0aGVtZSB2YWx1ZXMuICovXG4gIHRoZW1lT3ZlcnJpZGVzOiBQcm9wVHlwZXMuYXJyYXlPZihQcm9wVHlwZXMuc2hhcGUoe30pKSxcbiAgLyoqIFRoZSBkZWZhdWx0IHRoZW1lIGFwcGxpZWQgdG8gdGhlIEFzdHJvIGNvbXBvbmVudHMuXG4gICAqIE92ZXJyaWRpbmcgdGhpcyBpcyBhbiBhZHZhbmNlZCB1c2UgY2FzZSBzb1xuICAgKiBwbGVhc2UgdW5kZXJzdGFuZCBwb3RlbnRpYWwgcmVwcmVjdXNzaW9ucyBiZWZvcmUgZWRpdGluZyAqL1xuICBkZWZhdWx0VGhlbWU6IFByb3BUeXBlcy5zaGFwZSh7fSksXG59O1xuXG5QYWdlV3JhcHBlci5kZWZhdWx0UHJvcHMgPSB7XG4gIGRlZmF1bHRUaGVtZTogYXN0cm9UaGVtZSxcbiAgdGhlbWVPdmVycmlkZXM6IFt7fV0sXG59O1xuXG5leHBvcnQgeyBUaGVtZVByb3ZpZGVyIH07XG5leHBvcnQgZGVmYXVsdCBBc3Ryb1dyYXBwZXI7XG4iXX0= */")
|
142
|
-
}, props), children));
|
143
|
-
});
|
144
|
-
exports.PageWrapper = PageWrapper;
|
145
|
-
PageWrapper.propTypes = {
|
146
|
-
/** Array of theme objects which will be merged with the default theme.
|
147
|
-
* In the case of clashes, these will take priority.
|
148
|
-
* Useful for customizing the default variants, adding new ones,
|
149
|
-
* or overriding other theme values. */
|
150
|
-
themeOverrides: _propTypes["default"].arrayOf(_propTypes["default"].shape({})),
|
151
|
-
|
152
|
-
/** The default theme applied to the Astro components.
|
153
|
-
* Overriding this is an advanced use case so
|
154
|
-
* please understand potential reprecussions before editing */
|
155
|
-
defaultTheme: _propTypes["default"].shape({})
|
156
|
-
};
|
157
|
-
PageWrapper.defaultProps = {
|
158
|
-
defaultTheme: _theme["default"],
|
159
|
-
themeOverrides: [{}]
|
160
|
-
};
|
161
|
-
var _default = AstroWrapper;
|
162
|
-
exports["default"] = _default;
|
@@ -1,90 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
-
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
8
|
-
value: true
|
9
|
-
});
|
10
|
-
|
11
|
-
exports["default"] = exports.WithCustomThemeOverride = exports.Default = void 0;
|
12
|
-
|
13
|
-
var _react = _interopRequireDefault(require("react"));
|
14
|
-
|
15
|
-
var _index = require("../../index");
|
16
|
-
|
17
|
-
var _react2 = require("@emotion/react");
|
18
|
-
|
19
|
-
var _default = {
|
20
|
-
title: 'AstroWrapper',
|
21
|
-
component: _index.AstroWrapper,
|
22
|
-
decorators: [function (Story) {
|
23
|
-
return (0, _react2.jsx)("div", null, (0, _react2.jsx)(Story, null));
|
24
|
-
}]
|
25
|
-
};
|
26
|
-
exports["default"] = _default;
|
27
|
-
|
28
|
-
var Default = function Default() {
|
29
|
-
return (0, _react2.jsx)(_index.AstroWrapper, {
|
30
|
-
bg: "transparent",
|
31
|
-
alignItems: "flex-start"
|
32
|
-
}, (0, _react2.jsx)(_index.Text, {
|
33
|
-
variant: "title",
|
34
|
-
mb: "sm"
|
35
|
-
}, "Title Text"), (0, _react2.jsx)(_index.Text, {
|
36
|
-
variant: "body",
|
37
|
-
mb: "sm"
|
38
|
-
}, "Body text"), (0, _react2.jsx)(_index.Button, {
|
39
|
-
variant: "primary"
|
40
|
-
}, "Primary Button"));
|
41
|
-
};
|
42
|
-
|
43
|
-
exports.Default = Default;
|
44
|
-
|
45
|
-
var WithCustomThemeOverride = function WithCustomThemeOverride() {
|
46
|
-
var myNewColors = {
|
47
|
-
primary: '#183446',
|
48
|
-
secondary: '#046E8F'
|
49
|
-
};
|
50
|
-
var myCustomBranding = {
|
51
|
-
buttons: {
|
52
|
-
primary: {
|
53
|
-
bg: myNewColors.primary,
|
54
|
-
border: 'none',
|
55
|
-
display: 'inline',
|
56
|
-
'&:hover': {
|
57
|
-
bg: '#0090C1',
|
58
|
-
border: 'none'
|
59
|
-
}
|
60
|
-
}
|
61
|
-
},
|
62
|
-
text: {
|
63
|
-
title: {
|
64
|
-
color: myNewColors.secondary
|
65
|
-
}
|
66
|
-
}
|
67
|
-
};
|
68
|
-
return (0, _react2.jsx)(_index.AstroWrapper, {
|
69
|
-
themeOverrides: [myCustomBranding],
|
70
|
-
bg: "transparent",
|
71
|
-
alignItems: "flex-start"
|
72
|
-
}, (0, _react2.jsx)(_index.Text, {
|
73
|
-
variant: "title",
|
74
|
-
mb: "sm"
|
75
|
-
}, "This is the heading variant with a custom theme applied. "), (0, _react2.jsx)(_index.Text, {
|
76
|
-
variant: "body",
|
77
|
-
mb: "sm"
|
78
|
-
}, "The body variant is not mentioned in the custom theme, so it inherits styles from the default Astro theme."), (0, _react2.jsx)(_index.Button, {
|
79
|
-
variant: "primary"
|
80
|
-
}, "This is a primary button with custom theme."));
|
81
|
-
};
|
82
|
-
|
83
|
-
exports.WithCustomThemeOverride = WithCustomThemeOverride;
|
84
|
-
WithCustomThemeOverride.story = {
|
85
|
-
parameters: {
|
86
|
-
docs: {
|
87
|
-
storyDescription: 'Pass an array containing your theme override objects to the `themeOverrides` prop.'
|
88
|
-
}
|
89
|
-
}
|
90
|
-
};
|