@pingux/astro 2.155.1 → 2.157.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api/users.js +3 -5
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.d.ts +1 -2
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.js +1 -2
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.d.ts +3 -3
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.js +4 -7
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.test.js +1 -2
- package/lib/cjs/components/AIComponents/AIPanel/AIPanelHeader.d.ts +1 -2
- package/lib/cjs/components/AIComponents/AIPanel/AIPanelHeader.js +1 -2
- package/lib/cjs/components/AIComponents/Attachment/Attachment.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Attachment/Attachment.js +4 -6
- package/lib/cjs/components/AIComponents/Attachment/Attachment.styles.js +2 -3
- package/lib/cjs/components/AIComponents/Attachment/Attachment.test.js +3 -2
- package/lib/cjs/components/AIComponents/Attachment/constants.js +2 -3
- package/lib/cjs/components/AIComponents/Prompt/Prompt.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Prompt/Prompt.js +1 -2
- package/lib/cjs/components/AIComponents/Prompt/Prompt.stories.d.ts +3 -3
- package/lib/cjs/components/AIComponents/Prompt/Prompt.stories.js +3 -5
- package/lib/cjs/components/AIComponents/PromptInput/PromptInput.js +4 -6
- package/lib/cjs/components/AIComponents/PromptInput/PromptInput.stories.d.ts +3 -3
- package/lib/cjs/components/AIComponents/PromptInput/PromptInput.stories.js +6 -9
- package/lib/cjs/components/AIComponents/PromptInput/PromptInput.test.js +38 -29
- package/lib/cjs/components/AIComponents/PromptInput/PromptUploadButton.d.ts +1 -2
- package/lib/cjs/components/AIComponents/PromptInput/PromptUploadButton.js +3 -4
- package/lib/cjs/components/AIComponents/Response/Response.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/Response.js +2 -4
- package/lib/cjs/components/AIComponents/Response/Response.stories.d.ts +4 -4
- package/lib/cjs/components/AIComponents/Response/Response.stories.js +4 -7
- package/lib/cjs/components/AIComponents/Response/Response.test.js +256 -0
- package/lib/cjs/components/AIComponents/Response/ResponseAttachment.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseAttachment.js +2 -4
- package/lib/cjs/components/AIComponents/Response/ResponseList.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseList.js +2 -4
- package/lib/cjs/components/AIComponents/Response/ResponseLoader.js +2 -4
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownContainer.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownContainer.js +2 -4
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownListWrapper.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownListWrapper.js +3 -4
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownTextContainer.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownTextContainer.js +3 -6
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownTextWrapper.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownTextWrapper.js +3 -4
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownWrapper.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/MarkdownWrapper.js +2 -4
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/ResponseListItem.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/ResponseListItem.js +2 -4
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/ResponseMarkdown.d.ts +1 -1
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/ResponseMarkdown.js +6 -10
- package/lib/cjs/components/AIComponents/Response/ResponseText.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseText.js +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseToolbar.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseToolbar.js +2 -4
- package/lib/cjs/components/AIComponents/Response/ResponseToolbarIcon.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Response/ResponseToolbarIcon.js +2 -4
- package/lib/cjs/components/AIComponents/Suggestions/Suggestion.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Suggestions/Suggestion.js +1 -2
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.d.ts +1 -2
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.js +2 -4
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.d.ts +4 -4
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.js +4 -7
- package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +4 -5
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +5 -8
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +16 -17
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +169 -93
- package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +4 -5
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +2 -4
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +2 -4
- package/lib/cjs/components/AccordionGroup/Accordion.styles.js +5 -7
- package/lib/cjs/components/AccordionGroup/AccordionGroup.js +4 -6
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.d.ts +11 -11
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +13 -24
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +209 -99
- package/lib/cjs/components/AccordionItem/AccordionItem.d.ts +1 -1
- package/lib/cjs/components/AccordionItem/AccordionItem.js +3 -6
- package/lib/cjs/components/ArrayField/ArrayField.js +4 -6
- package/lib/cjs/components/ArrayField/ArrayField.stories.d.ts +4 -5
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +9 -15
- package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +1 -2
- package/lib/cjs/components/AstroProvider/AstroProvider.js +7 -12
- package/lib/cjs/components/AstroProvider/AstroProvider.stories.js +3 -6
- package/lib/cjs/components/AstroProvider/index.js +1 -2
- package/lib/cjs/components/Avatar/Avatar.js +5 -8
- package/lib/cjs/components/Avatar/Avatar.stories.d.ts +2 -2
- package/lib/cjs/components/Avatar/Avatar.stories.js +9 -17
- package/lib/cjs/components/Avatar/stories/Avatar.chromatic.stories.js +3 -5
- package/lib/cjs/components/Avatar/stories/AvatarNextGen.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/Avatar/stories/AvatarNextGen.chromatic.stories.js +3 -5
- package/lib/cjs/components/Avatar/stories/AvatarNextGen.d.ts +1 -2
- package/lib/cjs/components/Avatar/stories/AvatarNextGen.js +1 -2
- package/lib/cjs/components/Avatar/stories/AvatarNextGenDark.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/Avatar/stories/AvatarNextGenDark.chromatic.stories.js +3 -5
- package/lib/cjs/components/Badge/Badge.js +3 -4
- package/lib/cjs/components/Badge/Badge.stories.js +7 -14
- package/lib/cjs/components/Badge/Badge.styles.js +8 -13
- package/lib/cjs/components/Badge/Convenience/ConvenienceBadges.stories.js +5 -10
- package/lib/cjs/components/Badge/Convenience/DefaultBadge.js +1 -2
- package/lib/cjs/components/Badge/Convenience/ErrorCalloutBadge.js +1 -2
- package/lib/cjs/components/Badge/Convenience/InfoCalloutBadge.js +1 -2
- package/lib/cjs/components/Badge/Convenience/RemovableBadge.js +1 -2
- package/lib/cjs/components/Badge/Convenience/RemovableBadge.test.js +32 -10
- package/lib/cjs/components/Badge/Convenience/SuccessCalloutBadge.js +1 -2
- package/lib/cjs/components/Badge/Convenience/WarningCalloutBadge.js +1 -2
- package/lib/cjs/components/Box/Box.js +5 -7
- package/lib/cjs/components/Box/Box.stories.d.ts +6 -6
- package/lib/cjs/components/Box/Box.stories.js +6 -11
- package/lib/cjs/components/Box/Box.styles.js +2 -3
- package/lib/cjs/components/Bracket/Bracket.js +2 -4
- package/lib/cjs/components/Bracket/Bracket.stories.d.ts +3 -4
- package/lib/cjs/components/Bracket/Bracket.stories.js +3 -6
- package/lib/cjs/components/Bracket/Bracket.styles.js +2 -3
- package/lib/cjs/components/Breadcrumbs/Breadcrumb.styles.js +4 -5
- package/lib/cjs/components/Breadcrumbs/BreadcrumbItem.js +5 -8
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +2 -4
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +3 -6
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +31 -9
- package/lib/cjs/components/Button/Button.js +10 -8
- package/lib/cjs/components/Button/Button.stories.d.ts +10 -11
- package/lib/cjs/components/Button/Button.stories.js +13 -23
- package/lib/cjs/components/Button/Button.test.js +65 -38
- package/lib/cjs/components/Button/Buttons.styles.d.ts +66 -27
- package/lib/cjs/components/Button/Buttons.styles.js +12 -21
- package/lib/cjs/components/Button/buttonAttributes.js +4 -5
- package/lib/cjs/components/Button/constants.js +2 -3
- package/lib/cjs/components/ButtonBar/ButtonBar.js +12 -6
- package/lib/cjs/components/ButtonBar/ButtonBar.stories.d.ts +2 -2
- package/lib/cjs/components/ButtonBar/ButtonBar.stories.js +5 -10
- package/lib/cjs/components/ButtonBar/ButtonBar.styles.js +4 -5
- package/lib/cjs/components/ButtonBar/ButtonBar.test.js +3 -3
- package/lib/cjs/components/Calendar/Calendar.js +6 -8
- package/lib/cjs/components/Calendar/Calendar.styles.js +4 -5
- package/lib/cjs/components/Calendar/Calendar.test.js +324 -180
- package/lib/cjs/components/Calendar/CalendarCell.js +2 -4
- package/lib/cjs/components/Calendar/CalendarGrid.d.ts +1 -2
- package/lib/cjs/components/Calendar/CalendarGrid.js +1 -2
- package/lib/cjs/components/Callout/Callout.js +8 -12
- package/lib/cjs/components/Callout/Callout.stories.d.ts +4 -5
- package/lib/cjs/components/Callout/Callout.stories.js +14 -19
- package/lib/cjs/components/Callout/Callout.styles.js +2 -3
- package/lib/cjs/components/Callout/Callout.test.js +2 -4
- package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.d.ts +1 -2
- package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.js +2 -3
- package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.js +3 -5
- package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.d.ts +1 -2
- package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +3 -5
- package/lib/cjs/components/Card/Card.js +4 -6
- package/lib/cjs/components/Card/Card.stories.d.ts +9 -10
- package/lib/cjs/components/Card/Card.stories.js +12 -21
- package/lib/cjs/components/Card/Card.styles.js +5 -7
- package/lib/cjs/components/Card/Card.test.js +107 -63
- package/lib/cjs/components/Card/cardAttributes.js +4 -5
- package/lib/cjs/components/Checkbox/Checkbox.js +2 -4
- package/lib/cjs/components/Checkbox/Checkbox.styles.js +2 -3
- package/lib/cjs/components/Checkbox/CheckboxBase.js +2 -4
- package/lib/cjs/components/CheckboxField/CheckboxField.js +6 -7
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.d.ts +2 -2
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +28 -38
- package/lib/cjs/components/CheckboxField/CheckboxField.test.js +235 -132
- package/lib/cjs/components/CodeEditor/CodeEditor.chromatic.stories.js +6 -11
- package/lib/cjs/components/CodeEditor/CodeEditor.js +4 -6
- package/lib/cjs/components/CodeEditor/CodeEditor.stories.d.ts +1 -1
- package/lib/cjs/components/CodeEditor/CodeEditor.stories.js +7 -13
- package/lib/cjs/components/CodeEditor/CodeEditor.styles.js +4 -5
- package/lib/cjs/components/CodeView/CodeView.js +24 -15
- package/lib/cjs/components/CodeView/CodeView.stories.d.ts +2 -2
- package/lib/cjs/components/CodeView/CodeView.stories.js +8 -16
- package/lib/cjs/components/CodeView/CodeView.styles.js +2 -3
- package/lib/cjs/components/CodeView/CodeView.test.js +117 -81
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.js +2 -4
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.d.ts +2 -2
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +2 -4
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.styles.js +36 -8
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.js +2 -4
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.js +2 -4
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +57 -20
- package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.js +2 -4
- package/lib/cjs/components/ColorField/ColorField.js +4 -6
- package/lib/cjs/components/ColorField/ColorField.stories.d.ts +2 -2
- package/lib/cjs/components/ColorField/ColorField.stories.js +7 -11
- package/lib/cjs/components/ColorField/ColorField.styles.js +5 -7
- package/lib/cjs/components/ColorField/ColorField.test.js +92 -39
- package/lib/cjs/components/ColorField/ColorFieldPreviewButton.js +2 -4
- package/lib/cjs/components/ComboBox/ComboBox.styles.js +4 -5
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +6 -7
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +6 -7
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +60 -83
- package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +967 -579
- package/lib/cjs/components/CopyText/CopyButton.js +2 -4
- package/lib/cjs/components/CopyText/CopyText.js +2 -4
- package/lib/cjs/components/CopyText/CopyText.stories.d.ts +2 -2
- package/lib/cjs/components/CopyText/CopyText.stories.js +5 -9
- package/lib/cjs/components/CopyText/CopyText.styles.js +5 -7
- package/lib/cjs/components/CopyText/CopyText.test.js +147 -120
- package/lib/cjs/components/DataTable/DataTable.js +7 -9
- package/lib/cjs/components/DataTable/DataTable.stories.d.ts +9 -9
- package/lib/cjs/components/DataTable/DataTable.stories.js +28 -38
- package/lib/cjs/components/DataTable/DataTable.styles.js +4 -5
- package/lib/cjs/components/DataTable/DataTable.test.js +360 -285
- package/lib/cjs/components/DataTable/DataTableBadge.js +2 -5
- package/lib/cjs/components/DataTable/DataTableMenu.js +2 -4
- package/lib/cjs/components/DataTable/DataTableMultiLine.js +2 -8
- package/lib/cjs/components/DataTable/DataTableVirtualizer.js +5 -8
- package/lib/cjs/components/DataTable/stories/DataTableNextGenComponent.d.ts +1 -2
- package/lib/cjs/components/DataTable/stories/DataTableNextGenComponent.js +2 -3
- package/lib/cjs/components/DataTable/stories/NextGenDarkDataTable.chomatic.stories.d.ts +13 -2
- package/lib/cjs/components/DataTable/stories/NextGenDarkDataTable.chomatic.stories.js +12 -4
- package/lib/cjs/components/DataTable/stories/NextGenDataTable.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/DataTable/stories/NextGenDataTable.chromatic.stories.js +3 -5
- package/lib/cjs/components/DatePicker/DateField.js +4 -6
- package/lib/cjs/components/DatePicker/DatePicker.js +7 -9
- package/lib/cjs/components/DatePicker/DatePicker.stories.js +18 -33
- package/lib/cjs/components/DatePicker/DatePicker.styles.js +5 -7
- package/lib/cjs/components/DatePicker/DatePicker.test.js +452 -265
- package/lib/cjs/components/DatePicker/DateSegment.js +2 -4
- package/lib/cjs/components/EditButton/EditButton.js +5 -8
- package/lib/cjs/components/EditButton/EditButton.stories.js +8 -13
- package/lib/cjs/components/EditButton/EditButton.test.js +34 -13
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +5 -9
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.d.ts +6 -7
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +20 -27
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +355 -176
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +4 -5
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumbUniversal.test.js +6 -38
- package/lib/cjs/components/ExpandableText/ExpandableText.js +3 -4
- package/lib/cjs/components/ExpandableText/ExpandableText.stories.d.ts +2 -2
- package/lib/cjs/components/ExpandableText/ExpandableText.stories.js +3 -5
- package/lib/cjs/components/ExpandableText/ExpandableText.styles.js +2 -3
- package/lib/cjs/components/ExpandableText/ExpandableText.test.js +0 -1
- package/lib/cjs/components/FieldHelperText/FieldHelperText.js +4 -6
- package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.d.ts +5 -6
- package/lib/cjs/components/FieldHelperText/FieldHelperText.stories.js +8 -13
- package/lib/cjs/components/FieldHelperText/FieldHelperText.styles.d.ts +66 -27
- package/lib/cjs/components/FieldHelperText/FieldHelperText.styles.js +4 -5
- package/lib/cjs/components/FileInputField/FileInputField.js +5 -8
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +14 -25
- package/lib/cjs/components/FileInputField/FileInputField.styles.js +4 -5
- package/lib/cjs/components/FileInputField/FileInputField.test.js +174 -92
- package/lib/cjs/components/FileInputField/FileItem.js +4 -6
- package/lib/cjs/components/FileInputField/FileSelect.js +3 -4
- package/lib/cjs/components/FileInputField/FileSelectIcon.d.ts +1 -2
- package/lib/cjs/components/FileInputField/FileSelectIcon.js +1 -3
- package/lib/cjs/components/Footer/CopyrightText.d.ts +1 -2
- package/lib/cjs/components/Footer/CopyrightText.js +1 -2
- package/lib/cjs/components/Footer/Footer.js +2 -4
- package/lib/cjs/components/Footer/Footer.stories.d.ts +2 -2
- package/lib/cjs/components/Footer/Footer.stories.js +3 -5
- package/lib/cjs/components/Footer/Footer.styles.js +1 -2
- package/lib/cjs/components/Footer/Footer.test.js +1 -2
- package/lib/cjs/components/Footer/FooterNav.d.ts +1 -2
- package/lib/cjs/components/Footer/FooterNav.js +1 -2
- package/lib/cjs/components/Footer/FooterNavItem.d.ts +1 -1
- package/lib/cjs/components/Footer/FooterNavItem.js +1 -2
- package/lib/cjs/components/Footer/stories/FooterNextGenComponent.d.ts +1 -2
- package/lib/cjs/components/Footer/stories/FooterNextGenComponent.js +2 -3
- package/lib/cjs/components/Footer/stories/NextGenDarkFooterStory.chomatic.stories.d.ts +1 -2
- package/lib/cjs/components/Footer/stories/NextGenDarkFooterStory.chomatic.stories.js +3 -5
- package/lib/cjs/components/Footer/stories/NextGenFooterStory.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/Footer/stories/NextGenFooterStory.chromatic.stories.js +3 -5
- package/lib/cjs/components/Grid/Grid.js +2 -4
- package/lib/cjs/components/Grid/Grid.stories.d.ts +2 -2
- package/lib/cjs/components/Grid/Grid.stories.js +3 -5
- package/lib/cjs/components/Grid/Grid.styles.js +1 -2
- package/lib/cjs/components/GridList/GridList.d.ts +1 -2
- package/lib/cjs/components/GridList/GridList.js +4 -6
- package/lib/cjs/components/GridList/GridList.stories.d.ts +3 -4
- package/lib/cjs/components/GridList/GridList.stories.js +6 -9
- package/lib/cjs/components/GridList/GridList.styles.js +2 -3
- package/lib/cjs/components/GridList/GridList.test.js +65 -41
- package/lib/cjs/components/GridList/GridListRow.js +7 -9
- package/lib/cjs/components/GridList/gridListAttributes.js +2 -3
- package/lib/cjs/components/HelpHint/HelpHint.js +6 -8
- package/lib/cjs/components/HelpHint/HelpHint.stories.d.ts +2 -2
- package/lib/cjs/components/HelpHint/HelpHint.stories.js +7 -13
- package/lib/cjs/components/HelpHint/HelpHint.styles.js +5 -7
- package/lib/cjs/components/HelpHint/HelpHint.test.js +33 -26
- package/lib/cjs/components/Icon/Icon.js +4 -6
- package/lib/cjs/components/Icon/Icon.stories.d.ts +2 -2
- package/lib/cjs/components/Icon/Icon.stories.js +8 -13
- package/lib/cjs/components/Icon/Icon.test.js +1 -2
- package/lib/cjs/components/Icon/NoticeIcon.js +7 -10
- package/lib/cjs/components/IconBadge/IconBadge.js +4 -6
- package/lib/cjs/components/IconBadge/IconBadge.stories.d.ts +2 -2
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +2 -4
- package/lib/cjs/components/IconButton/IconButton.js +10 -8
- package/lib/cjs/components/IconButton/IconButton.stories.d.ts +6 -7
- package/lib/cjs/components/IconButton/IconButton.stories.js +7 -14
- package/lib/cjs/components/IconButton/IconButton.styles.js +6 -9
- package/lib/cjs/components/IconButton/IconButton.test.js +139 -62
- package/lib/cjs/components/IconButton/iconButtonAttributes.d.ts +10 -9
- package/lib/cjs/components/IconButton/iconButtonAttributes.js +6 -9
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +2 -4
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.d.ts +2 -2
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +5 -9
- package/lib/cjs/components/IconWrapper/IconWrapper.js +4 -6
- package/lib/cjs/components/IconWrapper/IconWrapper.stories.d.ts +3 -3
- package/lib/cjs/components/IconWrapper/IconWrapper.stories.js +5 -7
- package/lib/cjs/components/IconWrapper/iconWrapperAttributes.js +2 -3
- package/lib/cjs/components/Image/Image.js +2 -4
- package/lib/cjs/components/Image/Image.stories.d.ts +2 -2
- package/lib/cjs/components/Image/Image.stories.js +11 -21
- package/lib/cjs/components/Image/Image.styles.js +2 -3
- package/lib/cjs/components/Image/Image.test.js +4 -3
- package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +2 -4
- package/lib/cjs/components/ImageUploadField/ImageUploadField.js +4 -6
- package/lib/cjs/components/ImageUploadField/ImageUploadField.stories.js +25 -37
- package/lib/cjs/components/ImageUploadField/ImageUploadField.test.js +97 -70
- package/lib/cjs/components/ImageUploadField/ImageUploadFieldBase.js +4 -6
- package/lib/cjs/components/ImageUploadField/imageUpload.js +4 -5
- package/lib/cjs/components/Input/Input.js +24 -9
- package/lib/cjs/components/Input/Input.stories.d.ts +2 -2
- package/lib/cjs/components/Input/Input.stories.js +5 -9
- package/lib/cjs/components/Input/Input.styles.js +15 -18
- package/lib/cjs/components/Input/Input.test.js +49 -16
- package/lib/cjs/components/Label/Label.js +3 -5
- package/lib/cjs/components/Label/Label.stories.d.ts +2 -2
- package/lib/cjs/components/Label/Label.stories.js +5 -9
- package/lib/cjs/components/Label/Label.styles.js +4 -5
- package/lib/cjs/components/Link/Link.js +2 -4
- package/lib/cjs/components/Link/Link.stories.d.ts +2 -2
- package/lib/cjs/components/Link/Link.stories.js +10 -4
- package/lib/cjs/components/Link/Link.styles.js +4 -5
- package/lib/cjs/components/Link/Link.test.js +85 -38
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +4 -6
- package/lib/cjs/components/LinkSelectField/LinkSelectField.stories.js +25 -38
- package/lib/cjs/components/LinkSelectField/LinkSelectField.test.js +79 -35
- package/lib/cjs/components/ListBox/ListBox.js +10 -12
- package/lib/cjs/components/ListBox/ListBox.styles.js +3 -4
- package/lib/cjs/components/ListBox/ListBox.test.js +34 -13
- package/lib/cjs/components/ListBox/ListBoxContext.js +1 -2
- package/lib/cjs/components/ListBox/ListBoxSection.d.ts +13 -4
- package/lib/cjs/components/ListBox/ListBoxSection.js +2 -4
- package/lib/cjs/components/ListBox/Option.js +5 -7
- package/lib/cjs/components/ListItem/ListItem.js +2 -4
- package/lib/cjs/components/ListItem/ListItem.styles.js +4 -5
- package/lib/cjs/components/ListItem/ListItem.test.js +67 -23
- package/lib/cjs/components/ListView/ListView.js +6 -9
- package/lib/cjs/components/ListView/ListView.stories.d.ts +8 -7
- package/lib/cjs/components/ListView/ListView.stories.js +28 -38
- package/lib/cjs/components/ListView/ListView.styles.js +2 -3
- package/lib/cjs/components/ListView/ListView.test.js +273 -158
- package/lib/cjs/components/ListView/ListViewContext.js +1 -2
- package/lib/cjs/components/ListView/ListViewExpandableItem.d.ts +1 -2
- package/lib/cjs/components/ListView/ListViewExpandableItem.js +5 -4
- package/lib/cjs/components/ListView/ListViewFocusWrapper.d.ts +4 -4
- package/lib/cjs/components/ListView/ListViewFocusWrapper.js +3 -6
- package/lib/cjs/components/ListView/ListViewItem.d.ts +16 -5
- package/lib/cjs/components/ListView/ListViewItem.js +8 -7
- package/lib/cjs/components/ListView/listViewAttributes.js +4 -5
- package/lib/cjs/components/ListView/stories/ListView.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/ListView/stories/ListView.chromatic.stories.js +3 -5
- package/lib/cjs/components/ListView/stories/ListViewNextGenComponent.d.ts +1 -2
- package/lib/cjs/components/ListView/stories/ListViewNextGenComponent.js +3 -5
- package/lib/cjs/components/ListView/stories/ListViewOnyxDark.stories.d.ts +1 -2
- package/lib/cjs/components/ListView/stories/ListViewOnyxDark.stories.js +3 -5
- package/lib/cjs/components/ListViewItem/ListViewItem.js +3 -6
- package/lib/cjs/components/ListViewItem/ListViewItem.stories.js +10 -20
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +4 -5
- package/lib/cjs/components/ListViewItem/ListViewItem.test.js +2 -2
- package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.js +2 -4
- package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.stories.js +3 -5
- package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.test.js +31 -9
- package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.js +2 -4
- package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.stories.js +5 -7
- package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.test.js +3 -4
- package/lib/cjs/components/ListViewItem/controls/ListViewItemSwitchField.js +2 -4
- package/lib/cjs/components/ListViewItem/controls/ListViewItemSwitchField.stories.js +5 -7
- package/lib/cjs/components/ListViewItem/controls/ListViewItemSwitchField.test.js +31 -9
- package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChart.js +6 -9
- package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChart.stories.js +4 -7
- package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChart.styles.js +4 -5
- package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChart.test.js +17 -3
- package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChartAttributes.js +5 -7
- package/lib/cjs/components/ListViewItem/controls/chart/chartData.js +2 -3
- package/lib/cjs/components/ListViewItem/listViewItemAttributes.js +7 -11
- package/lib/cjs/components/Loader/Loader.js +4 -6
- package/lib/cjs/components/Loader/Loader.stories.d.ts +2 -2
- package/lib/cjs/components/Loader/Loader.stories.js +9 -15
- package/lib/cjs/components/Loader/Loader.styles.js +4 -5
- package/lib/cjs/components/Loader/stories/LoaderOnyxComponent.d.ts +1 -2
- package/lib/cjs/components/Loader/stories/LoaderOnyxComponent.js +2 -3
- package/lib/cjs/components/Loader/stories/OnyxDarkLoader.chomatic.stories.d.ts +1 -2
- package/lib/cjs/components/Loader/stories/OnyxDarkLoader.chomatic.stories.js +3 -5
- package/lib/cjs/components/Loader/stories/OnyxLoader.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/Loader/stories/OnyxLoader.chromatic.stories.js +3 -5
- package/lib/cjs/components/Menu/Menu.js +4 -6
- package/lib/cjs/components/Menu/Menu.styles.js +2 -3
- package/lib/cjs/components/Menu/Menu.test.js +157 -90
- package/lib/cjs/components/Menu/menuAttributes.js +5 -7
- package/lib/cjs/components/MenuItem/MenuItem.js +5 -5
- package/lib/cjs/components/MenuItem/MenuItem.styles.js +2 -3
- package/lib/cjs/components/MenuItem/MenuItem.test.js +129 -57
- package/lib/cjs/components/MenuSection/MenuSection.js +2 -4
- package/lib/cjs/components/MenuSection/MenuSection.styles.js +4 -5
- package/lib/cjs/components/MenuSection/MenuSection.test.js +28 -6
- package/lib/cjs/components/Messages/Message.js +3 -6
- package/lib/cjs/components/Messages/Message.styles.js +3 -5
- package/lib/cjs/components/Messages/Messages.js +4 -6
- package/lib/cjs/components/Messages/Messages.stories.d.ts +11 -11
- package/lib/cjs/components/Messages/Messages.stories.js +16 -24
- package/lib/cjs/components/Messages/Messages.test.js +92 -40
- package/lib/cjs/components/Messages/utils/messagesReducer.d.ts +26 -26
- package/lib/cjs/components/Messages/utils/messagesReducer.js +10 -18
- package/lib/cjs/components/Messages/utils/multiMessagesReducer.d.ts +25 -26
- package/lib/cjs/components/Messages/utils/multiMessagesReducer.js +10 -18
- package/lib/cjs/components/Messages/utils/tests/messagesReducer.test.js +1 -2
- package/lib/cjs/components/Messages/utils/tests/multiMessagesReducer.test.js +1 -2
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.d.ts +2 -2
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.js +3 -5
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.d.ts +2 -2
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.js +3 -5
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.d.ts +2 -2
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.js +3 -5
- package/lib/cjs/components/Modal/Modal.js +5 -8
- package/lib/cjs/components/Modal/Modal.stories.d.ts +2 -2
- package/lib/cjs/components/Modal/Modal.stories.js +8 -15
- package/lib/cjs/components/Modal/Modal.styles.js +6 -9
- package/lib/cjs/components/Modal/ModalBody.js +2 -4
- package/lib/cjs/components/Modal/ModalFooter.js +2 -4
- package/lib/cjs/components/Modal/ModalFooter.test.js +3 -4
- package/lib/cjs/components/Modal/ModalHeader.js +4 -6
- package/lib/cjs/components/Modal/ModalHeader.test.js +34 -12
- package/lib/cjs/components/Modal/tests/Modal.integration.test.js +85 -33
- package/lib/cjs/components/Modal/tests/Modal.unit.test.js +198 -116
- package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +11 -13
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +15 -17
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +4 -6
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +110 -128
- package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +1565 -909
- package/lib/cjs/components/NavBar/NavBar.js +2 -4
- package/lib/cjs/components/NavBar/NavBar.stories.d.ts +2 -2
- package/lib/cjs/components/NavBar/NavBar.stories.js +7 -13
- package/lib/cjs/components/NavBar/NavBar.styles.js +4 -5
- package/lib/cjs/components/NavBar/NavBar.test.js +213 -97
- package/lib/cjs/components/NavBar/stories/NavBar.chromatic.stories.js +3 -5
- package/lib/cjs/components/NavBar/stories/NavBarNextGenComponent.d.ts +1 -2
- package/lib/cjs/components/NavBar/stories/NavBarNextGenComponent.js +2 -3
- package/lib/cjs/components/NavBar/stories/NextGenDarkNavStory.chomatic.stories.d.ts +1 -2
- package/lib/cjs/components/NavBar/stories/NextGenDarkNavStory.chomatic.stories.js +3 -5
- package/lib/cjs/components/NavBar/stories/NextGenNavBar.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/NavBar/stories/NextGenNavBar.chromatic.stories.js +3 -5
- package/lib/cjs/components/NavBarSection/NavBarItem.js +2 -4
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +4 -6
- package/lib/cjs/components/NavBarSection/NavBarItemButton.d.ts +1 -2
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +1 -2
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.d.ts +1 -2
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +2 -4
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.js +2 -2
- package/lib/cjs/components/NavBarSection/NavBarItemLink.d.ts +1 -2
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +3 -5
- package/lib/cjs/components/NavBarSection/NavBarSection.js +2 -4
- package/lib/cjs/components/NavSideBar/Icon.test.js +1 -2
- package/lib/cjs/components/NavSideBar/NavSideBar.js +2 -4
- package/lib/cjs/components/NavSideBar/NavSideBar.stories.d.ts +2 -2
- package/lib/cjs/components/NavSideBar/NavSideBar.stories.js +7 -13
- package/lib/cjs/components/NavSideBar/NavSideBar.test.js +239 -149
- package/lib/cjs/components/NavSideBar/NavSideBarHeader.js +2 -4
- package/lib/cjs/components/NavSideBar/NavSideBarItem.d.ts +1 -2
- package/lib/cjs/components/NavSideBar/NavSideBarItem.js +2 -4
- package/lib/cjs/components/NavSideBar/NavSideBarSection.js +2 -4
- package/lib/cjs/components/NavSideBar/NavSideBarSectionHeader.d.ts +1 -2
- package/lib/cjs/components/NavSideBar/NavSideBarSectionHeader.js +2 -4
- package/lib/cjs/components/NavSideBar/NavSideBarSectionItem.js +4 -6
- package/lib/cjs/components/NavSideBar/NavSideBarSubTitle.js +1 -2
- package/lib/cjs/components/NavSideBar/icons.d.ts +3 -4
- package/lib/cjs/components/NavSideBar/icons.js +4 -7
- package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.d.ts +1 -2
- package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.js +1 -2
- package/lib/cjs/components/NavigationHeader/NavigationHeader.js +4 -6
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.d.ts +3 -3
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +3 -5
- package/lib/cjs/components/NavigationHeader/NavigationHeader.test.js +95 -49
- package/lib/cjs/components/NumberField/NumberField.js +4 -6
- package/lib/cjs/components/NumberField/NumberField.stories.js +14 -25
- package/lib/cjs/components/NumberField/NumberField.styles.js +8 -10
- package/lib/cjs/components/NumberField/NumberField.test.js +157 -62
- package/lib/cjs/components/OverlayPanel/OverlayPanel.js +2 -4
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.d.ts +2 -2
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +7 -13
- package/lib/cjs/components/OverlayPanel/OverlayPanel.styles.js +2 -3
- package/lib/cjs/components/PageHeader/PageHeader.js +2 -4
- package/lib/cjs/components/PageHeader/PageHeader.stories.js +35 -10
- package/lib/cjs/components/PageHeader/PageHeader.test.js +37 -17
- package/lib/cjs/components/Pagination/Pagination.js +2 -4
- package/lib/cjs/components/Pagination/Pagination.stories.d.ts +6 -6
- package/lib/cjs/components/Pagination/Pagination.stories.js +7 -13
- package/lib/cjs/components/Pagination/Pagination.styles.js +2 -3
- package/lib/cjs/components/Pagination/Pagination.test.js +250 -121
- package/lib/cjs/components/Pagination/PaginationProvider.d.ts +1 -2
- package/lib/cjs/components/Pagination/PaginationProvider.js +2 -4
- package/lib/cjs/components/Pagination/index.js +1 -2
- package/lib/cjs/components/PanelHeader/PanelHeader.js +5 -8
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +8 -16
- package/lib/cjs/components/PanelHeader/PanelHeader.styles.js +4 -5
- package/lib/cjs/components/PanelHeader/PanelHeader.test.js +8 -8
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderCloseButton.js +2 -4
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderCloseButton.stories.js +3 -5
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderCloseButton.test.js +31 -9
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderMenu.js +2 -4
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderMenu.stories.js +3 -5
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderMenu.test.js +39 -15
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderSwitchField.js +2 -4
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderSwitchField.stories.js +5 -7
- package/lib/cjs/components/PanelHeader/controls/PanelHeaderSwitchField.test.js +31 -9
- package/lib/cjs/components/PanelHeader/stories/OnyxDarkPanelHeader.chromatic.stories.js +3 -5
- package/lib/cjs/components/PanelHeader/stories/OnyxPanelHeader.chromatic.stories.js +3 -5
- package/lib/cjs/components/PanelHeader/stories/OnyxPanelHeaderComponent.js +1 -2
- package/lib/cjs/components/PasswordField/PasswordField.js +5 -7
- package/lib/cjs/components/PasswordField/PasswordField.stories.d.ts +2 -2
- package/lib/cjs/components/PasswordField/PasswordField.stories.js +67 -82
- package/lib/cjs/components/PasswordField/PasswordField.test.js +138 -74
- package/lib/cjs/components/Popover/Popover.d.ts +1 -2
- package/lib/cjs/components/Popover/Popover.js +4 -6
- package/lib/cjs/components/PopoverContainer/PopoverContainer.js +6 -12
- package/lib/cjs/components/PopoverContainer/index.js +1 -2
- package/lib/cjs/components/PopoverMenu/PopoverMenu.js +4 -6
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.d.ts +2 -2
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +11 -21
- package/lib/cjs/components/PopoverMenu/PopoverMenu.styles.js +2 -3
- package/lib/cjs/components/PopoverMenu/PopoverMenu.test.js +262 -148
- package/lib/cjs/components/ProgressBar/ProgressBar.js +3 -6
- package/lib/cjs/components/ProgressBar/ProgressBar.stories.d.ts +2 -2
- package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +3 -5
- package/lib/cjs/components/ProgressBar/ProgressBar.styles.js +4 -5
- package/lib/cjs/components/ProgressBar/ProgressBar.test.js +1 -2
- package/lib/cjs/components/ProgressBar/index.js +1 -2
- package/lib/cjs/components/Radio/Radio.js +2 -4
- package/lib/cjs/components/Radio/Radio.styles.js +2 -3
- package/lib/cjs/components/RadioField/RadioField.js +5 -8
- package/lib/cjs/components/RadioField/RadioField.test.js +19 -16
- package/lib/cjs/components/RadioField/index.js +1 -2
- package/lib/cjs/components/RadioGroupField/RadioGroupField.js +2 -4
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.d.ts +8 -8
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +11 -19
- package/lib/cjs/components/RadioGroupField/RadioGroupField.test.js +84 -48
- package/lib/cjs/components/RangeCalendar/RangeCalendar.js +6 -10
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.d.ts +2 -2
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +12 -21
- package/lib/cjs/components/RangeCalendar/RangeCalendar.styles.js +2 -3
- package/lib/cjs/components/RangeCalendar/RangeCalendar.test.js +146 -77
- package/lib/cjs/components/RangeCalendar/RangeCalendarCell.js +2 -4
- package/lib/cjs/components/RangeCalendar/RangeCalendarGrid.d.ts +1 -2
- package/lib/cjs/components/RangeCalendar/RangeCalendarGrid.js +1 -2
- package/lib/cjs/components/RangeCalendar/RangeCalendarHeader.js +1 -2
- package/lib/cjs/components/RangeCalendar/index.js +1 -2
- package/lib/cjs/components/RequirementsList/RequirementsList.js +2 -4
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.d.ts +2 -2
- package/lib/cjs/components/RequirementsList/RequirementsList.stories.js +4 -7
- package/lib/cjs/components/RockerButton/RockerButton.js +5 -8
- package/lib/cjs/components/RockerButton/RockerButton.styles.js +4 -5
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +4 -6
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.d.ts +2 -2
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +8 -15
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +77 -54
- package/lib/cjs/components/RockerButtonGroup/stories/NextGenDarkRockerButtonGroup.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/RockerButtonGroup/stories/NextGenDarkRockerButtonGroup.chromatic.stories.js +3 -5
- package/lib/cjs/components/RockerButtonGroup/stories/NextGenRockerButtonGroup.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/RockerButtonGroup/stories/NextGenRockerButtonGroup.chromatic.stories.js +3 -5
- package/lib/cjs/components/RockerButtonGroup/stories/RockerButtonGroup.chromatic.stories.js +3 -5
- package/lib/cjs/components/RockerButtonGroup/stories/RockerButtonGroupNextGen.d.ts +1 -2
- package/lib/cjs/components/RockerButtonGroup/stories/RockerButtonGroupNextGen.js +1 -2
- package/lib/cjs/components/ScrollBox/ScrollBox.js +4 -6
- package/lib/cjs/components/ScrollBox/ScrollBox.stories.d.ts +2 -2
- package/lib/cjs/components/ScrollBox/ScrollBox.stories.js +2 -4
- package/lib/cjs/components/ScrollBox/ScrollBox.styles.js +2 -3
- package/lib/cjs/components/SearchField/Search.styles.js +5 -9
- package/lib/cjs/components/SearchField/SearchAutoComplete.js +11 -11
- package/lib/cjs/components/SearchField/SearchField.js +2 -4
- package/lib/cjs/components/SearchField/SearchField.stories.d.ts +2 -2
- package/lib/cjs/components/SearchField/SearchField.stories.js +12 -21
- package/lib/cjs/components/SearchField/SearchField.test.js +333 -175
- package/lib/cjs/components/SearchField/SearchFieldBase.js +5 -7
- package/lib/cjs/components/SearchNav/MoreItemsPopover.d.ts +1 -2
- package/lib/cjs/components/SearchNav/MoreItemsPopover.js +2 -4
- package/lib/cjs/components/SearchNav/SearchNav.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/SearchNav/SearchNav.chromatic.stories.js +4 -7
- package/lib/cjs/components/SearchNav/SearchNav.js +10 -8
- package/lib/cjs/components/SearchNav/SearchNav.stories.d.ts +1 -2
- package/lib/cjs/components/SearchNav/SearchNav.stories.js +4 -7
- package/lib/cjs/components/SearchNav/SearchNav.styles.js +4 -5
- package/lib/cjs/components/SearchNav/SearchNav.test.js +45 -46
- package/lib/cjs/components/SearchNav/SearchNavTab.d.ts +1 -2
- package/lib/cjs/components/SearchNav/SearchNavTab.js +2 -4
- package/lib/cjs/components/SelectField/Select.styles.js +3 -4
- package/lib/cjs/components/SelectField/SelectField.js +4 -6
- package/lib/cjs/components/SelectField/SelectField.stories.d.ts +19 -18
- package/lib/cjs/components/SelectField/SelectField.stories.js +35 -54
- package/lib/cjs/components/SelectField/SelectField.test.js +46 -15
- package/lib/cjs/components/SelectFieldBase/HiddenSelect.d.ts +1 -2
- package/lib/cjs/components/SelectFieldBase/HiddenSelect.js +3 -4
- package/lib/cjs/components/SelectFieldBase/HiddenSelect.test.js +5 -7
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +4 -6
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.test.js +395 -225
- package/lib/cjs/components/Separator/Separator.js +2 -4
- package/lib/cjs/components/Separator/Separator.stories.d.ts +3 -4
- package/lib/cjs/components/Separator/Separator.stories.js +4 -7
- package/lib/cjs/components/Separator/Separator.styles.js +4 -5
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.js +2 -4
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.stories.d.ts +2 -2
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +5 -9
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.styles.js +2 -3
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.test.js +59 -28
- package/lib/cjs/components/Skeleton/Skeleton.js +7 -8
- package/lib/cjs/components/Skeleton/Skeleton.stories.d.ts +3 -4
- package/lib/cjs/components/Skeleton/Skeleton.stories.js +4 -7
- package/lib/cjs/components/Skeleton/Skeleton.styles.js +4 -5
- package/lib/cjs/components/Skeleton/Skeleton.test.js +3 -3
- package/lib/cjs/components/SliderField/Slider.styles.js +4 -5
- package/lib/cjs/components/SliderField/SliderActiveTrack.js +4 -6
- package/lib/cjs/components/SliderField/SliderField.js +4 -6
- package/lib/cjs/components/SliderField/SliderField.stories.d.ts +8 -8
- package/lib/cjs/components/SliderField/SliderField.stories.js +9 -17
- package/lib/cjs/components/SliderField/SliderField.test.js +221 -159
- package/lib/cjs/components/SliderField/SliderLabelContainer.js +2 -4
- package/lib/cjs/components/SliderField/SliderThumb.js +2 -4
- package/lib/cjs/components/StatusIcon/StatusIcon.d.ts +1 -2
- package/lib/cjs/components/StatusIcon/StatusIcon.js +3 -5
- package/lib/cjs/components/StatusIcon/StatusIcon.stories.d.ts +2 -2
- package/lib/cjs/components/StatusIcon/StatusIcon.stories.js +3 -6
- package/lib/cjs/components/StatusIcon/StatusIcon.styles.js +2 -3
- package/lib/cjs/components/StatusIcon/stories/NextGenDarkStatusIcon.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/StatusIcon/stories/NextGenDarkStatusIcon.chromatic.stories.js +3 -5
- package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.chromatic.stories.js +3 -5
- package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.d.ts +1 -2
- package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.js +1 -2
- package/lib/cjs/components/Stepper/Line.js +1 -2
- package/lib/cjs/components/Stepper/Step.js +2 -4
- package/lib/cjs/components/Stepper/Stepper.constants.js +2 -3
- package/lib/cjs/components/Stepper/Stepper.js +4 -6
- package/lib/cjs/components/Stepper/Stepper.stories.js +9 -17
- package/lib/cjs/components/Stepper/Stepper.styles.js +5 -7
- package/lib/cjs/components/Stepper/Stepper.test.js +26 -17
- package/lib/cjs/components/Switch/Switch.js +2 -4
- package/lib/cjs/components/Switch/Switch.styles.js +7 -11
- package/lib/cjs/components/SwitchField/SwitchField.js +4 -6
- package/lib/cjs/components/SwitchField/SwitchField.stories.d.ts +2 -2
- package/lib/cjs/components/SwitchField/SwitchField.stories.js +12 -21
- package/lib/cjs/components/SwitchField/SwitchField.test.js +102 -43
- package/lib/cjs/components/SwitchField/switchFieldAttributes.js +5 -7
- package/lib/cjs/components/Tab/Tab.d.ts +1 -1
- package/lib/cjs/components/Tab/Tab.js +4 -8
- package/lib/cjs/components/Tab/index.js +1 -2
- package/lib/cjs/components/TabPicker/TabPicker.js +2 -4
- package/lib/cjs/components/Table/Table.js +2 -4
- package/lib/cjs/components/Table/Table.stories.d.ts +2 -2
- package/lib/cjs/components/Table/Table.stories.js +3 -5
- package/lib/cjs/components/Table/Table.styles.js +4 -5
- package/lib/cjs/components/TableBase/TableBase.js +5 -7
- package/lib/cjs/components/TableBase/TableBase.stories.d.ts +3 -4
- package/lib/cjs/components/TableBase/TableBase.stories.js +11 -19
- package/lib/cjs/components/TableBase/TableBase.styles.js +4 -5
- package/lib/cjs/components/TableBase/TableBase.test.js +273 -194
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +3 -5
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.d.ts +1 -2
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +3 -5
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.d.ts +1 -2
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +1 -2
- package/lib/cjs/components/TableBody/TableBody.js +2 -4
- package/lib/cjs/components/TableCaption/TableCaption.js +2 -4
- package/lib/cjs/components/TableCell/TableCell.js +2 -4
- package/lib/cjs/components/TableHead/TableHead.js +2 -4
- package/lib/cjs/components/TableRow/TableRow.js +2 -4
- package/lib/cjs/components/Tabs/Tabs.js +5 -8
- package/lib/cjs/components/Tabs/Tabs.stories.d.ts +2 -2
- package/lib/cjs/components/Tabs/Tabs.stories.js +33 -25
- package/lib/cjs/components/Tabs/Tabs.style.js +8 -14
- package/lib/cjs/components/Tabs/Tabs.test.js +134 -99
- package/lib/cjs/components/Tabs/index.js +1 -2
- package/lib/cjs/components/Text/Text.js +2 -3
- package/lib/cjs/components/Text/Text.stories.d.ts +2 -2
- package/lib/cjs/components/Text/Text.stories.js +41 -46
- package/lib/cjs/components/Text/Text.styles.d.ts +533 -216
- package/lib/cjs/components/Text/Text.styles.js +10 -15
- package/lib/cjs/components/Text/Text.test.js +2 -2
- package/lib/cjs/components/TextArea/TextArea.js +2 -4
- package/lib/cjs/components/TextArea/TextArea.styles.js +5 -7
- package/lib/cjs/components/TextAreaField/TextAreaField.js +5 -7
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.d.ts +14 -14
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +17 -31
- package/lib/cjs/components/TextAreaField/TextAreaField.test.js +29 -7
- package/lib/cjs/components/TextField/TextField.js +4 -6
- package/lib/cjs/components/TextField/TextField.stories.d.ts +2 -2
- package/lib/cjs/components/TextField/TextField.stories.js +23 -43
- package/lib/cjs/components/TextField/TextField.test.js +38 -14
- package/lib/cjs/components/TimeField/TimeField.js +5 -8
- package/lib/cjs/components/TimeField/TimeField.stories.d.ts +2 -2
- package/lib/cjs/components/TimeField/TimeField.stories.js +11 -21
- package/lib/cjs/components/TimeField/TimeField.styles.d.ts +66 -27
- package/lib/cjs/components/TimeField/TimeField.styles.js +4 -5
- package/lib/cjs/components/TimeField/TimeSegment.js +2 -4
- package/lib/cjs/components/TimeField/index.js +1 -2
- package/lib/cjs/components/TimeZonePicker/TimeZone.styles.js +2 -3
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +5 -7
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +4 -7
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.test.js +68 -24
- package/lib/cjs/components/TimeZonePicker/timezones.js +2 -4
- package/lib/cjs/components/TooltipTrigger/Tooltip.js +2 -4
- package/lib/cjs/components/TooltipTrigger/Tooltip.styles.js +7 -11
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +5 -7
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.d.ts +2 -2
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +23 -25
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.js +120 -78
- package/lib/cjs/components/TreeView/InsertionIndicator.js +1 -2
- package/lib/cjs/components/TreeView/TreeView.js +14 -20
- package/lib/cjs/components/TreeView/TreeView.stories.js +9 -14
- package/lib/cjs/components/TreeView/TreeView.styles.js +2 -3
- package/lib/cjs/components/TreeView/TreeView.test.js +226 -129
- package/lib/cjs/components/TreeView/TreeViewItem.js +3 -6
- package/lib/cjs/components/TreeView/TreeViewKeyboardDelegate.js +20 -36
- package/lib/cjs/components/TreeView/TreeViewKeyboardDelegate.test.js +3 -6
- package/lib/cjs/components/TreeView/TreeViewRow.js +4 -6
- package/lib/cjs/components/TreeView/TreeViewSection.js +5 -10
- package/lib/cjs/components/TreeView/TreeViewWrapper.js +1 -2
- package/lib/cjs/context/AccordionContext/index.js +3 -5
- package/lib/cjs/context/AccordionGridContext/index.js +3 -5
- package/lib/cjs/context/BadgeContext/index.d.ts +0 -1
- package/lib/cjs/context/BadgeContext/index.js +1 -2
- package/lib/cjs/context/DataTableContext/index.js +4 -7
- package/lib/cjs/context/MenuContext/index.js +1 -2
- package/lib/cjs/context/MultivaluesContext/index.js +3 -5
- package/lib/cjs/context/NavBarContext/index.js +3 -5
- package/lib/cjs/context/PaginationContext/index.js +3 -5
- package/lib/cjs/context/RadioContext/index.d.ts +2 -0
- package/lib/cjs/context/RadioContext/index.js +10 -0
- package/lib/cjs/context/RockerButtonGroupContext/index.d.ts +0 -1
- package/lib/cjs/context/RockerButtonGroupContext/index.js +1 -2
- package/lib/cjs/context/TooltipContext/index.d.ts +0 -1
- package/lib/cjs/context/TooltipContext/index.js +3 -5
- package/lib/cjs/context/TreeViewContext/index.js +3 -5
- package/lib/cjs/docs/design/ColorDocumentation.stories.js +12 -4
- package/lib/cjs/docs/design/ContainerSizes.stories.js +3 -5
- package/lib/cjs/docs/design/Spacing.stories.js +3 -5
- package/lib/cjs/docs/design/Typography.stories.js +3 -5
- package/lib/cjs/docs/theme/ThemeView.js +2 -3
- package/lib/cjs/fonts.js +2 -4
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.js +1 -2
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +1 -2
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.js +4 -6
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.js +5 -8
- package/lib/cjs/hooks/useColumnStyles/useColumnStyles.js +1 -2
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.d.ts +0 -1
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.js +1 -2
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.test.js +9 -9
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.d.ts +0 -1
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.js +4 -6
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.test.js +4 -5
- package/lib/cjs/hooks/useDebounce/useDebounce.js +1 -2
- package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.js +1 -2
- package/lib/cjs/hooks/useDeprecationWarning/useDeprecationWarning.test.js +2 -2
- package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.js +1 -2
- package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +1 -2
- package/lib/cjs/hooks/useExpandableListViewItem/useExpandableListViewItem.js +6 -7
- package/lib/cjs/hooks/useFallbackImage/useFallbackImage.js +1 -2
- package/lib/cjs/hooks/useFallbackImage/useFallbackImage.test.js +2 -2
- package/lib/cjs/hooks/useField/useField.d.ts +3891 -246
- package/lib/cjs/hooks/useField/useField.js +7 -7
- package/lib/cjs/hooks/useField/useField.test.js +10 -4
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +37 -39
- package/lib/cjs/hooks/useGetTheme/useGetTheme.js +4 -6
- package/lib/cjs/hooks/useGetTheme/useGetTheme.test.js +3 -4
- package/lib/cjs/hooks/useGridList/useGridList.d.ts +0 -1
- package/lib/cjs/hooks/useGridList/useGridList.js +3 -4
- package/lib/cjs/hooks/useGridListItem/useGridListItem.d.ts +253 -246
- package/lib/cjs/hooks/useGridListItem/useGridListItem.js +4 -4
- package/lib/cjs/hooks/useImageUploadState/useImageUploadState.js +2 -3
- package/lib/cjs/hooks/useInputLoader/useInputLoader.js +1 -2
- package/lib/cjs/hooks/useLabelHeight/useLabelHeight.js +1 -2
- package/lib/cjs/hooks/useLoadPrev/useLoadPrev.js +1 -2
- package/lib/cjs/hooks/useLoadPrev/useLoadPrev.test.js +1 -2
- package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.d.ts +1 -2
- package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.js +1 -2
- package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.test.js +1 -2
- package/lib/cjs/hooks/useModalState/useModalState.js +3 -4
- package/lib/cjs/hooks/useMountTransition/useMountTransition.js +2 -3
- package/lib/cjs/hooks/useMountTransition/useMountTransition.test.js +35 -14
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.js +1 -2
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.js +1 -2
- package/lib/cjs/hooks/useOverlappingMenuHoverState/useOverlappingMenuHoverState.d.ts +0 -1
- package/lib/cjs/hooks/useOverlappingMenuHoverState/useOverlappingMenuHoverState.js +1 -2
- package/lib/cjs/hooks/useOverlappingMenuHoverState/useOverlappingMenuHoverState.test.js +10 -12
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.d.ts +0 -1
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +3 -4
- package/lib/cjs/hooks/usePagination/usePagination.d.ts +153 -161
- package/lib/cjs/hooks/usePagination/usePagination.js +3 -4
- package/lib/cjs/hooks/usePaginationState/usePaginationState.js +1 -2
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.d.ts +0 -1
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.js +1 -2
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.test.js +59 -23
- package/lib/cjs/hooks/usePropWarning/usePropWarning.d.ts +0 -1
- package/lib/cjs/hooks/usePropWarning/usePropWarning.js +1 -2
- package/lib/cjs/hooks/usePropWarning/usePropWarning.test.js +1 -2
- package/lib/cjs/hooks/useReorderableCollection/useReorderableCollection.js +5 -7
- package/lib/cjs/hooks/useSelectField/useSelectField.d.ts +8 -4
- package/lib/cjs/hooks/useSelectField/useSelectField.js +4 -6
- package/lib/cjs/hooks/useSliderField/useSliderField.d.ts +613 -491
- package/lib/cjs/hooks/useSliderField/useSliderField.js +7 -12
- package/lib/cjs/hooks/useSliderField/useSliderField.test.js +3 -4
- package/lib/cjs/hooks/useStatusClasses/useStatusClasses.js +1 -2
- package/lib/cjs/hooks/useTShirtSize/useTShirtSize.js +1 -2
- package/lib/cjs/hooks/useTShirtSize/useTShirtSize.test.js +1 -2
- package/lib/cjs/hooks/useTypeAnimation/useTypeAnimation.js +1 -2
- package/lib/cjs/hooks/useTypeAnimation/useTypeAnimation.test.js +7 -7
- package/lib/cjs/hooks/useTypeAnimationWrapper/useTypeAnimationWrapper.js +1 -2
- package/lib/cjs/hooks/useTypeAnimationWrapper/useTypeAnimationWrapper.test.js +6 -6
- package/lib/cjs/index.js +78 -79
- package/lib/cjs/mocks/browser.js +1 -2
- package/lib/cjs/mocks/constants/index.js +3 -6
- package/lib/cjs/mocks/handlers/users.d.ts +1 -1
- package/lib/cjs/mocks/handlers/users.js +6 -8
- package/lib/cjs/mocks/handlers.d.ts +1 -1
- package/lib/cjs/mocks/handlers.js +1 -2
- package/lib/cjs/mocks/responses/users.js +2 -3
- package/lib/cjs/mocks/types/users.d.ts +0 -1
- package/lib/cjs/patterns/AttributeMappingDisplayViewPattern.stories.hidden.js +3 -5
- package/lib/cjs/patterns/AttributeMappingEditViewPattern.stories.hidden.js +3 -5
- package/lib/cjs/patterns/ListAndPanelPattern.stories.hidden.js +4 -7
- package/lib/cjs/patterns/MessagesPattern.stories.hidden.js +4 -7
- package/lib/cjs/patterns/SaveBarPattern.stories.hidden.js +4 -7
- package/lib/cjs/patterns/UnsavedChangesPattern.stories.hidden.js +4 -7
- package/lib/cjs/recipes/AccordionCard.stories.js +4 -6
- package/lib/cjs/recipes/ApplicationSearchDropdown.stories.hidden.js +6 -9
- package/lib/cjs/recipes/AttributeMapping.stories.js +18 -15
- package/lib/cjs/recipes/CollapsiblePanel.stories.js +6 -9
- package/lib/cjs/recipes/ConditionFilter.stories.js +7 -12
- package/lib/cjs/recipes/CopyToClipboard.stories.js +3 -5
- package/lib/cjs/recipes/CountryPicker.stories.js +3 -6
- package/lib/cjs/recipes/DataVisualization.stories.js +7 -11
- package/lib/cjs/recipes/DateTimeRangePicker.stories.js +3 -6
- package/lib/cjs/recipes/InlineEditing.stories.js +8 -11
- package/lib/cjs/recipes/ListAndPanel.stories.js +10 -16
- package/lib/cjs/recipes/LogoTabs.stories.js +6 -9
- package/lib/cjs/recipes/MaskedValue.stories.js +3 -6
- package/lib/cjs/recipes/MultipagePopup.stories.js +5 -8
- package/lib/cjs/recipes/NoAccess.stories.d.ts +5 -5
- package/lib/cjs/recipes/NoAccess.stories.js +4 -8
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +2 -4
- package/lib/cjs/recipes/PanelContent.stories.js +13 -17
- package/lib/cjs/recipes/ScrollableListView.stories.js +4 -7
- package/lib/cjs/recipes/Slider.stories.js +4 -6
- package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +2 -4
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +3 -6
- package/lib/cjs/recipes/items.js +5 -9
- package/lib/cjs/styles/ColorDocumentation.js +9 -19
- package/lib/cjs/styles/breakpoints.js +1 -2
- package/lib/cjs/styles/colors.js +24 -44
- package/lib/cjs/styles/forms/index.js +5 -7
- package/lib/cjs/styles/safariAgent.js +1 -2
- package/lib/cjs/styles/sizes.js +2 -3
- package/lib/cjs/styles/spacing.js +2 -5
- package/lib/cjs/styles/templates/Nav/HeaderBar.js +2 -4
- package/lib/cjs/styles/templates/Nav/Nav.stories.js +3 -6
- package/lib/cjs/styles/templates/Nav/NavData.js +6 -11
- package/lib/cjs/styles/text.js +4 -8
- package/lib/cjs/styles/theme.js +5 -7
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +5 -7
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +1 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.js +4 -5
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +4 -5
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.js +1 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.d.ts +13 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +12 -4
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +2 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +3 -4
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -4
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.js +2 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +1 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/footer.js +2 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +7 -11
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.js +3 -4
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +4 -6
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +4 -5
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.js +4 -7
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.js +3 -5
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/message.js +2 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +4 -5
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/skeleton.js +3 -4
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +2 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -3
- package/lib/cjs/styles/themeOverrides/stories/AccordionGroup.chromatic.stories.js +3 -5
- package/lib/cjs/styles/themeOverrides/stories/Button.chromatic.stories.js +8 -15
- package/lib/cjs/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +6 -9
- package/lib/cjs/styles/themeOverrides/stories/IconButton.chromatic.stories.js +4 -7
- package/lib/cjs/styles/themeOverrides/stories/Label.chromatic.stories.js +3 -5
- package/lib/cjs/styles/themeOverrides/stories/Link.chromatic.stories.js +3 -5
- package/lib/cjs/styles/themeOverrides/stories/NumberField.chromatic.stories.js +3 -5
- package/lib/cjs/styles/themeOverrides/stories/OverlayPanel.chromatic.stories.d.ts +1 -1
- package/lib/cjs/styles/themeOverrides/stories/OverlayPanel.chromatic.stories.js +4 -7
- package/lib/cjs/styles/themeOverrides/stories/SearchField.chromatic.stories.js +3 -5
- package/lib/cjs/styles/themeOverrides/stories/SelectField.chromatic.stories.js +3 -5
- package/lib/cjs/styles/themeOverrides/uiLibraryOverride.js +4 -5
- package/lib/cjs/styles/themeOverrides/withUiLibraryCss.js +2 -4
- package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +1 -2
- package/lib/cjs/styles/themes/astro/customProperties/icons.js +3 -5
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -2
- package/lib/cjs/styles/themes/astro/customProperties/index.js +3 -5
- package/lib/cjs/styles/themes/astro/customProperties/styles.js +2 -3
- package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.js +3 -5
- package/lib/cjs/styles/themes/astro-nano/astro-nano.js +3 -4
- package/lib/cjs/styles/themes/end-user/end-user.js +4 -6
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +5 -7
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +7 -12
- package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +4 -5
- package/lib/cjs/styles/themes/next-gen/colors/twoTone.js +1 -2
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +4 -8
- package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +2 -3
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +1 -2
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +3 -5
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -2
- package/lib/cjs/styles/themes/next-gen/customProperties/index.js +5 -7
- package/lib/cjs/styles/themes/next-gen/customProperties/styles.js +2 -3
- package/lib/cjs/styles/themes/next-gen/customProperties/tShirtSizes.js +3 -5
- package/lib/cjs/styles/themes/next-gen/forms.js +10 -17
- package/lib/cjs/styles/themes/next-gen/next-gen.js +5 -6
- package/lib/cjs/styles/themes/next-gen/sizes.js +2 -3
- package/lib/cjs/styles/themes/next-gen/spacing.js +1 -2
- package/lib/cjs/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.d.ts +13 -2
- package/lib/cjs/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +12 -4
- package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.d.ts +5 -5
- package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +8 -15
- package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.d.ts +1 -2
- package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -2
- package/lib/cjs/styles/themes/next-gen/text.js +2 -5
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/accordion.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/avatar.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +5 -7
- package/lib/cjs/styles/themes/next-gen/variants/box.js +5 -7
- package/lib/cjs/styles/themes/next-gen/variants/button.js +4 -6
- package/lib/cjs/styles/themes/next-gen/variants/callout.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +4 -5
- package/lib/cjs/styles/themes/next-gen/variants/dataTable.js +4 -5
- package/lib/cjs/styles/themes/next-gen/variants/footer.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/iconWrapper.js +3 -4
- package/lib/cjs/styles/themes/next-gen/variants/images.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/input.js +4 -6
- package/lib/cjs/styles/themes/next-gen/variants/label.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/links.js +5 -7
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +6 -11
- package/lib/cjs/styles/themes/next-gen/variants/menu.js +3 -5
- package/lib/cjs/styles/themes/next-gen/variants/messages.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/navbar.js +6 -9
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +3 -4
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/prompt.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/response.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/searchNav.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/stepper.js +4 -5
- package/lib/cjs/styles/themes/next-gen/variants/suggestion.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/suggestions.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/switch.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/table.js +4 -5
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +4 -5
- package/lib/cjs/styles/themes/next-gen/variants/tabs.js +4 -7
- package/lib/cjs/styles/themes/next-gen/variants/text.js +4 -5
- package/lib/cjs/styles/themes/next-gen/variants/tooltip.js +2 -3
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +6 -9
- package/lib/cjs/styles/useAstroTheme.js +2 -4
- package/lib/cjs/styles/variants/index.js +4 -5
- package/lib/cjs/styles/variants/variants.js +5 -7
- package/lib/cjs/types/aiPanel.d.ts +0 -1
- package/lib/cjs/types/badge.d.ts +0 -1
- package/lib/cjs/types/callout.d.ts +0 -1
- package/lib/cjs/types/card.d.ts +1 -0
- package/lib/cjs/types/cell.d.ts +0 -1
- package/lib/cjs/types/collapsiblePanel.d.ts +0 -1
- package/lib/cjs/types/footer.d.ts +0 -1
- package/lib/cjs/types/index.js +54 -54
- package/lib/cjs/types/input.d.ts +1 -1
- package/lib/cjs/types/item.d.ts +2 -1
- package/lib/cjs/types/label.d.ts +0 -1
- package/lib/cjs/types/link.d.ts +1 -0
- package/lib/cjs/types/listBox.d.ts +5 -4
- package/lib/cjs/types/menu.d.ts +0 -1
- package/lib/cjs/types/navSideBar.d.ts +2 -1
- package/lib/cjs/types/overlayPanel.d.ts +0 -1
- package/lib/cjs/types/passwordField.d.ts +0 -1
- package/lib/cjs/types/popoverContainer.d.ts +0 -1
- package/lib/cjs/types/popoverMenu.d.ts +0 -1
- package/lib/cjs/types/promptInput.d.ts +0 -1
- package/lib/cjs/types/searchField.d.ts +1 -1
- package/lib/cjs/types/selectField.d.ts +0 -1
- package/lib/cjs/types/shared/events.d.ts +3 -1
- package/lib/cjs/types/switchField.d.ts +0 -1
- package/lib/cjs/types/textField.d.ts +0 -1
- package/lib/cjs/types/timefield.d.ts +3 -2
- package/lib/cjs/utils/designUtils/figmaLinks.js +2 -3
- package/lib/cjs/utils/devUtils/constants/animals.js +2 -3
- package/lib/cjs/utils/devUtils/constants/firstNames.js +1 -2
- package/lib/cjs/utils/devUtils/constants/htmlElements.js +3 -6
- package/lib/cjs/utils/devUtils/constants/images.js +8 -16
- package/lib/cjs/utils/devUtils/constants/items.js +2 -3
- package/lib/cjs/utils/devUtils/constants/labelModes.js +2 -3
- package/lib/cjs/utils/devUtils/constants/languageMapping.js +2 -3
- package/lib/cjs/utils/devUtils/constants/loadingStates.js +2 -3
- package/lib/cjs/utils/devUtils/constants/logos.d.ts +2 -3
- package/lib/cjs/utils/devUtils/constants/logos.js +3 -5
- package/lib/cjs/utils/devUtils/constants/modalSizes.js +1 -2
- package/lib/cjs/utils/devUtils/constants/orientation.js +2 -3
- package/lib/cjs/utils/devUtils/constants/panelSizes.js +1 -2
- package/lib/cjs/utils/devUtils/constants/pendoID.js +2 -3
- package/lib/cjs/utils/devUtils/constants/statuses.js +2 -4
- package/lib/cjs/utils/devUtils/constants/tShirtSizes.js +3 -5
- package/lib/cjs/utils/devUtils/constants/text.js +1 -2
- package/lib/cjs/utils/devUtils/constants/themes.js +2 -3
- package/lib/cjs/utils/devUtils/constants/variants.js +4 -5
- package/lib/cjs/utils/devUtils/createMockData.js +4 -5
- package/lib/cjs/utils/devUtils/decorators/withDeprecationWarning.js +1 -2
- package/lib/cjs/utils/devUtils/props/isDateWithinRanges.js +2 -3
- package/lib/cjs/utils/devUtils/props/isIterable.js +2 -4
- package/lib/cjs/utils/devUtils/props/isValidPositiveInt.js +1 -2
- package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +3 -5
- package/lib/cjs/utils/devUtils/styledSystemUtils.js +5 -8
- package/lib/cjs/utils/docUtils/ariaAttributes.d.ts +11 -7
- package/lib/cjs/utils/docUtils/ariaAttributes.js +8 -13
- package/lib/cjs/utils/docUtils/ariaAttributes.test.js +2 -2
- package/lib/cjs/utils/docUtils/docArgTypes.js +5 -9
- package/lib/cjs/utils/docUtils/fieldAttributes.js +6 -9
- package/lib/cjs/utils/docUtils/hoverProps.js +6 -9
- package/lib/cjs/utils/docUtils/iconSizeProps.d.ts +2 -1
- package/lib/cjs/utils/docUtils/iconSizeProps.js +3 -5
- package/lib/cjs/utils/docUtils/pressAttributes.js +4 -5
- package/lib/cjs/utils/docUtils/statusProp.js +7 -11
- package/lib/cjs/utils/styleUtils/index.js +2 -3
- package/lib/cjs/utils/testUtils/dndMocks.js +25 -39
- package/lib/cjs/utils/testUtils/testAxe.js +5 -7
- package/lib/cjs/utils/testUtils/testTheme.js +2 -3
- package/lib/cjs/utils/testUtils/testWrapper.js +5 -7
- package/lib/cjs/utils/testUtils/universalComponentTest.js +7 -10
- package/lib/cjs/utils/testUtils/universalFormSubmitTest.d.ts +1 -0
- package/lib/cjs/utils/testUtils/universalFormSubmitTest.js +105 -60
- package/lib/components/AIComponents/Attachment/Attachment.js +2 -2
- package/lib/components/AIComponents/Attachment/Attachment.test.js +3 -2
- package/lib/components/AIComponents/PromptInput/PromptInput.js +2 -2
- package/lib/components/AIComponents/PromptInput/PromptInput.stories.js +2 -2
- package/lib/components/AIComponents/PromptInput/PromptInput.test.js +38 -29
- package/lib/components/AIComponents/PromptInput/PromptUploadButton.js +2 -2
- package/lib/components/AIComponents/Response/Response.test.js +252 -0
- package/lib/components/AIComponents/Response/ResponseMarkdown/MarkdownListWrapper.js +2 -2
- package/lib/components/AIComponents/Response/ResponseMarkdown/MarkdownTextWrapper.js +2 -2
- package/lib/components/AIComponents/Response/ResponseMarkdown/ResponseMarkdown.js +2 -2
- package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +2 -2
- package/lib/components/AccordionGridGroup/AccordionGridGroup.js +2 -2
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +10 -6
- package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +169 -93
- package/lib/components/AccordionGridItem/AccordionGridItem.js +2 -1
- package/lib/components/AccordionGroup/Accordion.styles.js +2 -2
- package/lib/components/AccordionGroup/AccordionGroup.js +2 -2
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +1 -1
- package/lib/components/AccordionGroup/AccordionGroup.test.js +208 -99
- package/lib/components/ArrayField/ArrayField.js +2 -2
- package/lib/components/ArrayField/ArrayField.stories.js +2 -2
- package/lib/components/AstroProvider/AstroProvider.js +3 -4
- package/lib/components/Avatar/Avatar.js +3 -4
- package/lib/components/Badge/Badge.js +2 -2
- package/lib/components/Badge/Badge.styles.js +2 -2
- package/lib/components/Badge/Convenience/RemovableBadge.test.js +32 -10
- package/lib/components/Box/Box.js +3 -3
- package/lib/components/Breadcrumbs/Breadcrumb.styles.js +2 -2
- package/lib/components/Breadcrumbs/BreadcrumbItem.js +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.test.js +31 -9
- package/lib/components/Button/Button.js +8 -4
- package/lib/components/Button/Button.stories.js +2 -2
- package/lib/components/Button/Button.test.js +65 -38
- package/lib/components/Button/Buttons.styles.js +2 -2
- package/lib/components/Button/buttonAttributes.js +2 -2
- package/lib/components/ButtonBar/ButtonBar.js +10 -2
- package/lib/components/ButtonBar/ButtonBar.styles.js +2 -2
- package/lib/components/ButtonBar/ButtonBar.test.js +3 -3
- package/lib/components/Calendar/Calendar.js +4 -4
- package/lib/components/Calendar/Calendar.styles.js +2 -2
- package/lib/components/Calendar/Calendar.test.js +324 -180
- package/lib/components/Callout/Callout.js +5 -6
- package/lib/components/Callout/Callout.stories.js +5 -2
- package/lib/components/Callout/Callout.test.js +1 -2
- package/lib/components/Card/Card.js +2 -2
- package/lib/components/Card/Card.stories.js +2 -2
- package/lib/components/Card/Card.styles.js +2 -2
- package/lib/components/Card/Card.test.js +107 -63
- package/lib/components/Card/cardAttributes.js +2 -2
- package/lib/components/CheckboxField/CheckboxField.js +4 -3
- package/lib/components/CheckboxField/CheckboxField.stories.js +17 -17
- package/lib/components/CheckboxField/CheckboxField.test.js +235 -132
- package/lib/components/CodeEditor/CodeEditor.chromatic.stories.js +0 -1
- package/lib/components/CodeEditor/CodeEditor.js +2 -2
- package/lib/components/CodeEditor/CodeEditor.styles.js +2 -2
- package/lib/components/CodeView/CodeView.js +22 -11
- package/lib/components/CodeView/CodeView.test.js +117 -81
- package/lib/components/CollapsiblePanel/CollapsiblePanel.styles.js +34 -4
- package/lib/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.js +57 -20
- package/lib/components/ColorField/ColorField.js +2 -2
- package/lib/components/ColorField/ColorField.stories.js +2 -2
- package/lib/components/ColorField/ColorField.styles.js +2 -2
- package/lib/components/ColorField/ColorField.test.js +92 -39
- package/lib/components/ComboBox/ComboBox.styles.js +2 -2
- package/lib/components/ComboBox/ComboBoxInput.js +4 -3
- package/lib/components/ComboBoxField/ComboBoxField.js +4 -3
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +37 -38
- package/lib/components/ComboBoxField/ComboBoxField.test.js +966 -577
- package/lib/components/CopyText/CopyText.styles.js +2 -2
- package/lib/components/CopyText/CopyText.test.js +142 -115
- package/lib/components/DataTable/DataTable.js +5 -5
- package/lib/components/DataTable/DataTable.stories.js +19 -20
- package/lib/components/DataTable/DataTable.styles.js +2 -2
- package/lib/components/DataTable/DataTable.test.js +359 -284
- package/lib/components/DataTable/DataTableBadge.js +0 -1
- package/lib/components/DataTable/DataTableMultiLine.js +0 -4
- package/lib/components/DataTable/DataTableVirtualizer.js +3 -4
- package/lib/components/DataTable/stories/NextGenDarkDataTable.chomatic.stories.js +10 -0
- package/lib/components/DatePicker/DateField.js +2 -2
- package/lib/components/DatePicker/DatePicker.js +2 -2
- package/lib/components/DatePicker/DatePicker.stories.js +2 -2
- package/lib/components/DatePicker/DatePicker.styles.js +2 -2
- package/lib/components/DatePicker/DatePicker.test.js +451 -263
- package/lib/components/EditButton/EditButton.js +2 -2
- package/lib/components/EditButton/EditButton.stories.js +2 -2
- package/lib/components/EditButton/EditButton.test.js +34 -13
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -3
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +12 -12
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +353 -172
- package/lib/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles.js +2 -2
- package/lib/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumbUniversal.test.js +6 -37
- package/lib/components/ExpandableText/ExpandableText.js +1 -0
- package/lib/components/ExpandableText/ExpandableText.test.js +0 -1
- package/lib/components/FieldHelperText/FieldHelperText.js +2 -2
- package/lib/components/FieldHelperText/FieldHelperText.stories.js +2 -2
- package/lib/components/FieldHelperText/FieldHelperText.styles.js +2 -2
- package/lib/components/FileInputField/FileInputField.js +2 -2
- package/lib/components/FileInputField/FileInputField.stories.js +2 -2
- package/lib/components/FileInputField/FileInputField.styles.js +2 -2
- package/lib/components/FileInputField/FileInputField.test.js +174 -90
- package/lib/components/FileInputField/FileItem.js +2 -2
- package/lib/components/FileInputField/FileSelect.js +2 -2
- package/lib/components/FileInputField/FileSelectIcon.js +0 -1
- package/lib/components/GridList/GridList.js +2 -2
- package/lib/components/GridList/GridList.stories.js +2 -2
- package/lib/components/GridList/GridList.test.js +65 -41
- package/lib/components/GridList/GridListRow.js +5 -5
- package/lib/components/HelpHint/HelpHint.js +4 -4
- package/lib/components/HelpHint/HelpHint.styles.js +2 -2
- package/lib/components/HelpHint/HelpHint.test.js +33 -26
- package/lib/components/Icon/Icon.js +2 -2
- package/lib/components/Icon/Icon.stories.js +2 -2
- package/lib/components/Icon/NoticeIcon.js +5 -6
- package/lib/components/IconBadge/IconBadge.js +2 -2
- package/lib/components/IconButton/IconButton.js +8 -4
- package/lib/components/IconButton/IconButton.styles.js +2 -2
- package/lib/components/IconButton/IconButton.test.js +139 -62
- package/lib/components/IconButton/iconButtonAttributes.js +2 -2
- package/lib/components/IconWrapper/IconWrapper.js +2 -2
- package/lib/components/IconWrapper/IconWrapper.stories.js +2 -2
- package/lib/components/Image/Image.test.js +4 -3
- package/lib/components/ImageUploadField/ImageUploadField.js +2 -2
- package/lib/components/ImageUploadField/ImageUploadField.stories.js +15 -18
- package/lib/components/ImageUploadField/ImageUploadField.test.js +97 -70
- package/lib/components/ImageUploadField/ImageUploadFieldBase.js +2 -2
- package/lib/components/ImageUploadField/imageUpload.js +2 -2
- package/lib/components/Input/Input.js +22 -3
- package/lib/components/Input/Input.styles.js +13 -14
- package/lib/components/Input/Input.test.js +49 -16
- package/lib/components/Label/Label.js +1 -1
- package/lib/components/Label/Label.styles.js +2 -3
- package/lib/components/Link/Link.stories.js +8 -0
- package/lib/components/Link/Link.styles.js +2 -2
- package/lib/components/Link/Link.test.js +85 -38
- package/lib/components/LinkSelectField/LinkSelectField.js +2 -2
- package/lib/components/LinkSelectField/LinkSelectField.stories.js +12 -13
- package/lib/components/LinkSelectField/LinkSelectField.test.js +79 -35
- package/lib/components/ListBox/ListBox.js +7 -6
- package/lib/components/ListBox/ListBox.styles.js +2 -2
- package/lib/components/ListBox/ListBox.test.js +34 -10
- package/lib/components/ListBox/Option.js +3 -3
- package/lib/components/ListItem/ListItem.styles.js +2 -2
- package/lib/components/ListItem/ListItem.test.js +67 -23
- package/lib/components/ListView/ListView.js +3 -3
- package/lib/components/ListView/ListView.stories.js +19 -21
- package/lib/components/ListView/ListView.test.js +272 -156
- package/lib/components/ListView/ListViewExpandableItem.js +3 -0
- package/lib/components/ListView/ListViewItem.js +6 -3
- package/lib/components/ListView/listViewAttributes.js +2 -2
- package/lib/components/ListViewItem/ListViewItem.styles.js +2 -2
- package/lib/components/ListViewItem/ListViewItem.test.js +2 -2
- package/lib/components/ListViewItem/controls/ListViewItemEditButton.test.js +31 -9
- package/lib/components/ListViewItem/controls/ListViewItemMenu.stories.js +2 -2
- package/lib/components/ListViewItem/controls/ListViewItemMenu.test.js +3 -4
- package/lib/components/ListViewItem/controls/ListViewItemSwitchField.stories.js +2 -2
- package/lib/components/ListViewItem/controls/ListViewItemSwitchField.test.js +31 -9
- package/lib/components/ListViewItem/controls/chart/ListViewItemChart.js +4 -5
- package/lib/components/ListViewItem/controls/chart/ListViewItemChart.styles.js +2 -2
- package/lib/components/ListViewItem/controls/chart/ListViewItemChart.test.js +17 -3
- package/lib/components/ListViewItem/controls/chart/ListViewItemChartAttributes.js +2 -2
- package/lib/components/ListViewItem/listViewItemAttributes.js +2 -2
- package/lib/components/Loader/Loader.js +2 -2
- package/lib/components/Loader/Loader.stories.js +2 -2
- package/lib/components/Loader/Loader.styles.js +2 -2
- package/lib/components/Menu/Menu.js +2 -2
- package/lib/components/Menu/Menu.test.js +156 -90
- package/lib/components/Menu/menuAttributes.js +2 -2
- package/lib/components/MenuItem/MenuItem.js +3 -1
- package/lib/components/MenuItem/MenuItem.test.js +128 -57
- package/lib/components/MenuSection/MenuSection.styles.js +2 -2
- package/lib/components/MenuSection/MenuSection.test.js +28 -6
- package/lib/components/Messages/Messages.js +2 -2
- package/lib/components/Messages/Messages.stories.js +5 -2
- package/lib/components/Messages/Messages.test.js +92 -37
- package/lib/components/Messages/utils/messagesReducer.js +2 -2
- package/lib/components/Messages/utils/multiMessagesReducer.js +2 -2
- package/lib/components/Modal/Modal.js +3 -4
- package/lib/components/Modal/Modal.styles.js +2 -2
- package/lib/components/Modal/ModalFooter.test.js +3 -4
- package/lib/components/Modal/ModalHeader.js +2 -2
- package/lib/components/Modal/ModalHeader.test.js +34 -12
- package/lib/components/Modal/tests/Modal.integration.test.js +83 -31
- package/lib/components/Modal/tests/Modal.unit.test.js +198 -116
- package/lib/components/MultivaluesField/CondensedMultivaluesField.js +9 -9
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +13 -13
- package/lib/components/MultivaluesField/MultivaluesField.js +2 -2
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +92 -93
- package/lib/components/MultivaluesField/MultivaluesField.test.js +1564 -907
- package/lib/components/NavBar/NavBar.styles.js +2 -2
- package/lib/components/NavBar/NavBar.test.js +213 -94
- package/lib/components/NavBarSection/NavBarItemBody.js +2 -2
- package/lib/components/NavBarSection/NavBarItemHeader.test.js +2 -2
- package/lib/components/NavBarSection/NavBarItemLink.js +2 -3
- package/lib/components/NavSideBar/NavSideBar.test.js +238 -149
- package/lib/components/NavSideBar/NavSideBarSectionItem.js +2 -2
- package/lib/components/NavigationHeader/NavigationHeader.js +2 -2
- package/lib/components/NavigationHeader/NavigationHeader.test.js +94 -47
- package/lib/components/NumberField/NumberField.js +2 -2
- package/lib/components/NumberField/NumberField.stories.js +2 -2
- package/lib/components/NumberField/NumberField.styles.js +6 -7
- package/lib/components/NumberField/NumberField.test.js +157 -62
- package/lib/components/PageHeader/PageHeader.stories.js +30 -0
- package/lib/components/PageHeader/PageHeader.test.js +37 -17
- package/lib/components/Pagination/Pagination.test.js +250 -121
- package/lib/components/PanelHeader/PanelHeader.js +2 -2
- package/lib/components/PanelHeader/PanelHeader.styles.js +2 -2
- package/lib/components/PanelHeader/PanelHeader.test.js +8 -8
- package/lib/components/PanelHeader/controls/PanelHeaderCloseButton.test.js +31 -9
- package/lib/components/PanelHeader/controls/PanelHeaderMenu.test.js +39 -15
- package/lib/components/PanelHeader/controls/PanelHeaderSwitchField.stories.js +2 -2
- package/lib/components/PanelHeader/controls/PanelHeaderSwitchField.test.js +31 -9
- package/lib/components/PasswordField/PasswordField.js +3 -3
- package/lib/components/PasswordField/PasswordField.stories.js +55 -55
- package/lib/components/PasswordField/PasswordField.test.js +139 -75
- package/lib/components/Popover/Popover.js +2 -2
- package/lib/components/PopoverContainer/PopoverContainer.js +2 -4
- package/lib/components/PopoverMenu/PopoverMenu.js +2 -2
- package/lib/components/PopoverMenu/PopoverMenu.test.js +263 -149
- package/lib/components/ProgressBar/ProgressBar.styles.js +2 -2
- package/lib/components/RadioField/RadioField.js +2 -2
- package/lib/components/RadioField/RadioField.test.js +19 -10
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +2 -2
- package/lib/components/RadioGroupField/RadioGroupField.test.js +84 -48
- package/lib/components/RangeCalendar/RangeCalendar.js +2 -2
- package/lib/components/RangeCalendar/RangeCalendar.stories.js +2 -2
- package/lib/components/RangeCalendar/RangeCalendar.test.js +144 -74
- package/lib/components/RockerButton/RockerButton.js +2 -2
- package/lib/components/RockerButton/RockerButton.styles.js +2 -2
- package/lib/components/RockerButtonGroup/RockerButtonGroup.js +2 -2
- package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +77 -54
- package/lib/components/ScrollBox/ScrollBox.js +2 -2
- package/lib/components/SearchField/SearchAutoComplete.js +8 -6
- package/lib/components/SearchField/SearchField.stories.js +2 -5
- package/lib/components/SearchField/SearchField.test.js +333 -175
- package/lib/components/SearchField/SearchFieldBase.js +2 -2
- package/lib/components/SearchNav/SearchNav.js +5 -0
- package/lib/components/SearchNav/SearchNav.styles.js +2 -2
- package/lib/components/SearchNav/SearchNav.test.js +43 -43
- package/lib/components/SelectField/Select.styles.js +2 -2
- package/lib/components/SelectField/SelectField.js +2 -2
- package/lib/components/SelectField/SelectField.stories.js +16 -17
- package/lib/components/SelectField/SelectField.test.js +46 -15
- package/lib/components/SelectFieldBase/HiddenSelect.js +2 -2
- package/lib/components/SelectFieldBase/HiddenSelect.test.js +4 -5
- package/lib/components/SelectFieldBase/SelectFieldBase.js +2 -2
- package/lib/components/SelectFieldBase/SelectFieldBase.test.js +394 -223
- package/lib/components/Separator/Separator.styles.js +2 -2
- package/lib/components/ServerErrorBoundary/ServerErrorBoundary.test.js +59 -28
- package/lib/components/Skeleton/Skeleton.js +5 -4
- package/lib/components/Skeleton/Skeleton.styles.js +2 -2
- package/lib/components/Skeleton/Skeleton.test.js +3 -3
- package/lib/components/SliderField/Slider.styles.js +2 -2
- package/lib/components/SliderField/SliderActiveTrack.js +2 -2
- package/lib/components/SliderField/SliderField.js +2 -2
- package/lib/components/SliderField/SliderField.test.js +221 -159
- package/lib/components/StatusIcon/StatusIcon.js +2 -3
- package/lib/components/Stepper/Stepper.js +2 -2
- package/lib/components/Stepper/Stepper.styles.js +2 -2
- package/lib/components/Stepper/Stepper.test.js +32 -23
- package/lib/components/Switch/Switch.styles.js +2 -2
- package/lib/components/SwitchField/SwitchField.js +2 -2
- package/lib/components/SwitchField/SwitchField.stories.js +2 -2
- package/lib/components/SwitchField/SwitchField.test.js +102 -43
- package/lib/components/SwitchField/switchFieldAttributes.js +2 -2
- package/lib/components/Table/Table.styles.js +2 -2
- package/lib/components/TableBase/TableBase.js +3 -3
- package/lib/components/TableBase/TableBase.stories.js +4 -5
- package/lib/components/TableBase/TableBase.styles.js +2 -2
- package/lib/components/TableBase/TableBase.test.js +273 -194
- package/lib/components/Tabs/Tabs.js +2 -2
- package/lib/components/Tabs/Tabs.stories.js +20 -0
- package/lib/components/Tabs/Tabs.style.js +2 -2
- package/lib/components/Tabs/Tabs.test.js +134 -99
- package/lib/components/Text/Text.js +1 -1
- package/lib/components/Text/Text.stories.js +36 -36
- package/lib/components/Text/Text.styles.js +3 -3
- package/lib/components/Text/Text.test.js +2 -2
- package/lib/components/TextArea/TextArea.styles.js +2 -2
- package/lib/components/TextAreaField/TextAreaField.js +3 -3
- package/lib/components/TextAreaField/TextAreaField.stories.js +2 -2
- package/lib/components/TextAreaField/TextAreaField.test.js +28 -7
- package/lib/components/TextField/TextField.js +2 -2
- package/lib/components/TextField/TextField.stories.js +2 -2
- package/lib/components/TextField/TextField.test.js +37 -14
- package/lib/components/TimeField/TimeField.js +2 -2
- package/lib/components/TimeField/TimeField.styles.js +2 -2
- package/lib/components/TimeZonePicker/TimeZonePicker.js +3 -3
- package/lib/components/TimeZonePicker/TimeZonePicker.test.js +68 -24
- package/lib/components/TooltipTrigger/Tooltip.styles.js +2 -2
- package/lib/components/TooltipTrigger/TooltipTrigger.js +3 -3
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +10 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.test.js +120 -78
- package/lib/components/TreeView/TreeView.js +8 -8
- package/lib/components/TreeView/TreeView.stories.js +4 -5
- package/lib/components/TreeView/TreeView.test.js +225 -127
- package/lib/components/TreeView/TreeViewKeyboardDelegate.js +3 -3
- package/lib/components/TreeView/TreeViewRow.js +2 -2
- package/lib/context/RadioContext/index.js +3 -0
- package/lib/docs/design/ColorDocumentation.stories.js +10 -0
- package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.test.js +1 -2
- package/lib/hooks/useCircularLoader/useCircularLoader.js +2 -2
- package/lib/hooks/useCircularLoader/useCircularLoader.test.js +4 -6
- package/lib/hooks/useComponentToggle/useComponentToggle.test.js +8 -7
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js +3 -4
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.test.js +4 -5
- package/lib/hooks/useDeprecationWarning/useDeprecationWarning.test.js +2 -2
- package/lib/hooks/useDevelopmentWarning/useDevelopmentWarning.test.js +1 -2
- package/lib/hooks/useExpandableListViewItem/useExpandableListViewItem.js +5 -5
- package/lib/hooks/useFallbackImage/useFallbackImage.test.js +2 -2
- package/lib/hooks/useField/useField.js +6 -5
- package/lib/hooks/useField/useField.test.js +10 -4
- package/lib/hooks/useGetTheme/useGetTheme.js +2 -4
- package/lib/hooks/useGetTheme/useGetTheme.test.js +2 -2
- package/lib/hooks/useGridList/useGridList.js +2 -2
- package/lib/hooks/useGridListItem/useGridListItem.js +3 -2
- package/lib/hooks/useImageUploadState/useImageUploadState.js +1 -1
- package/lib/hooks/useInputLoader/useInputLoader.js +0 -1
- package/lib/hooks/useModalState/useModalState.js +2 -2
- package/lib/hooks/useMountTransition/useMountTransition.js +1 -1
- package/lib/hooks/useMountTransition/useMountTransition.test.js +35 -11
- package/lib/hooks/useOverlappingMenuHoverState/useOverlappingMenuHoverState.test.js +9 -10
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +2 -2
- package/lib/hooks/usePagination/usePagination.js +2 -2
- package/lib/hooks/useProgressiveState/useProgressiveState.test.js +58 -22
- package/lib/hooks/usePropWarning/usePropWarning.test.js +1 -2
- package/lib/hooks/useReorderableCollection/useReorderableCollection.js +4 -5
- package/lib/hooks/useSelectField/useSelectField.js +2 -2
- package/lib/hooks/useSliderField/useSliderField.js +2 -2
- package/lib/hooks/useSliderField/useSliderField.test.js +2 -2
- package/lib/hooks/useTShirtSize/useTShirtSize.test.js +1 -2
- package/lib/hooks/useTypeAnimation/useTypeAnimation.test.js +3 -3
- package/lib/hooks/useTypeAnimationWrapper/useTypeAnimationWrapper.test.js +1 -1
- package/lib/mocks/handlers/users.js +4 -5
- package/lib/recipes/AccordionCard.stories.js +2 -2
- package/lib/recipes/ApplicationSearchDropdown.stories.hidden.js +2 -2
- package/lib/recipes/AttributeMapping.stories.js +10 -0
- package/lib/recipes/CollapsiblePanel.stories.js +2 -2
- package/lib/recipes/ConditionFilter.stories.js +2 -2
- package/lib/recipes/DataVisualization.stories.js +3 -4
- package/lib/recipes/InlineEditing.stories.js +5 -5
- package/lib/recipes/ListAndPanel.stories.js +4 -5
- package/lib/recipes/LogoTabs.stories.js +2 -2
- package/lib/recipes/MultipagePopup.stories.js +2 -2
- package/lib/recipes/PanelContent.stories.js +5 -2
- package/lib/recipes/Slider.stories.js +2 -2
- package/lib/styles/ColorDocumentation.js +8 -17
- package/lib/styles/colors.js +3 -3
- package/lib/styles/forms/index.js +2 -2
- package/lib/styles/spacing.js +0 -1
- package/lib/styles/text.js +1 -2
- package/lib/styles/theme.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/icons.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +10 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +2 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/skeleton.js +2 -2
- package/lib/styles/themeOverrides/stories/EnvironmentBreadcrumb.chromatic.stories.js +2 -2
- package/lib/styles/themeOverrides/uiLibraryOverride.js +2 -2
- package/lib/styles/themes/astro/customProperties/icons.js +1 -1
- package/lib/styles/themes/astro-nano/astro-nano.js +2 -2
- package/lib/styles/themes/end-user/end-user.js +2 -3
- package/lib/styles/themes/next-gen/codeView/codeView.js +2 -2
- package/lib/styles/themes/next-gen/colors/colors.js +2 -2
- package/lib/styles/themes/next-gen/colors/iconWrapper.js +2 -2
- package/lib/styles/themes/next-gen/customProperties/icons.js +1 -1
- package/lib/styles/themes/next-gen/customProperties/index.js +2 -2
- package/lib/styles/themes/next-gen/forms.js +2 -2
- package/lib/styles/themes/next-gen/next-gen.js +3 -3
- package/lib/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +10 -0
- package/lib/styles/themes/next-gen/text.js +1 -2
- package/lib/styles/themes/next-gen/variants/badges.js +2 -2
- package/lib/styles/themes/next-gen/variants/box.js +2 -2
- package/lib/styles/themes/next-gen/variants/button.js +2 -2
- package/lib/styles/themes/next-gen/variants/cards.js +2 -2
- package/lib/styles/themes/next-gen/variants/dataTable.js +2 -2
- package/lib/styles/themes/next-gen/variants/iconWrapper.js +2 -2
- package/lib/styles/themes/next-gen/variants/input.js +2 -2
- package/lib/styles/themes/next-gen/variants/links.js +2 -2
- package/lib/styles/themes/next-gen/variants/navbar.js +2 -2
- package/lib/styles/themes/next-gen/variants/navigationHeader.js +2 -2
- package/lib/styles/themes/next-gen/variants/stepper.js +2 -2
- package/lib/styles/themes/next-gen/variants/table.js +2 -2
- package/lib/styles/themes/next-gen/variants/tableBase.js +2 -2
- package/lib/styles/themes/next-gen/variants/text.js +2 -2
- package/lib/styles/themes/next-gen/variants/variants.js +2 -2
- package/lib/styles/variants/index.js +2 -2
- package/lib/styles/variants/variants.js +2 -2
- package/lib/tsconfig.lib.tsbuildinfo +1 -0
- package/lib/utils/devUtils/createMockData.js +2 -2
- package/lib/utils/devUtils/styledSystemUtils.js +2 -2
- package/lib/utils/docUtils/ariaAttributes.js +2 -2
- package/lib/utils/docUtils/ariaAttributes.test.js +2 -2
- package/lib/utils/docUtils/fieldAttributes.js +2 -2
- package/lib/utils/docUtils/hoverProps.js +2 -2
- package/lib/utils/docUtils/pressAttributes.js +2 -2
- package/lib/utils/docUtils/statusProp.js +2 -2
- package/lib/utils/testUtils/dndMocks.js +20 -28
- package/lib/utils/testUtils/testAxe.js +4 -5
- package/lib/utils/testUtils/testWrapper.js +3 -4
- package/lib/utils/testUtils/universalComponentTest.js +4 -5
- package/lib/utils/testUtils/universalFormSubmitTest.js +102 -55
- package/package.json +74 -47
- package/LICENSE +0 -202
- package/README.md +0 -103
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.test.d.ts +0 -1
- package/lib/cjs/components/AIComponents/Attachment/Attachment.test.d.ts +0 -1
- package/lib/cjs/components/AIComponents/Prompt/Prompt.test.d.ts +0 -1
- package/lib/cjs/components/AIComponents/PromptInput/PromptInput.test.d.ts +0 -1
- package/lib/cjs/components/AIComponents/PromptInput/PromptUploadButton.test.d.ts +0 -1
- package/lib/cjs/components/AIComponents/Response/Response.test.jsx +0 -191
- package/lib/cjs/components/AIComponents/Response/ResponseMarkdown/ResponseMarkdown.test.d.ts +0 -1
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.test.d.ts +0 -1
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.d.ts +0 -1
- package/lib/cjs/components/ArrayField/ArrayField.test.d.ts +0 -1
- package/lib/cjs/components/Avatar/Avatar.test.d.ts +0 -1
- package/lib/cjs/components/Badge/Badge.test.d.ts +0 -1
- package/lib/cjs/components/Box/Box.test.d.ts +0 -1
- package/lib/cjs/components/Bracket/Bracket.test.d.ts +0 -1
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.d.ts +0 -1
- package/lib/cjs/components/Button/Button.test.d.ts +0 -1
- package/lib/cjs/components/ButtonBar/ButtonBar.test.d.ts +0 -1
- package/lib/cjs/components/Calendar/Calendar.test.d.ts +0 -1
- package/lib/cjs/components/Callout/Callout.test.d.ts +0 -1
- package/lib/cjs/components/Card/Card.test.d.ts +0 -1
- package/lib/cjs/components/CheckboxField/CheckboxField.test.d.ts +0 -1
- package/lib/cjs/components/CodeEditor/CodeEditor.test.d.ts +0 -1
- package/lib/cjs/components/CodeView/CodeView.test.d.ts +0 -1
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.test.d.ts +0 -1
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelBadge.test.d.ts +0 -1
- package/lib/cjs/components/CollapsiblePanelContainer/CollapsiblePanelContainer.test.d.ts +0 -1
- package/lib/cjs/components/CollapsiblePanelItem/CollapsiblePanelItem.test.d.ts +0 -1
- package/lib/cjs/components/ColorField/ColorField.test.d.ts +0 -1
- package/lib/cjs/components/CopyText/CopyText.test.d.ts +0 -1
- package/lib/cjs/components/DataTable/DataTable.test.d.ts +0 -1
- package/lib/cjs/components/DataTable/DataTableBadge.test.d.ts +0 -1
- package/lib/cjs/components/DataTable/DataTableMenu.test.d.ts +0 -1
- package/lib/cjs/components/DataTable/DataTableMultiLine.test.d.ts +0 -1
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.d.ts +0 -4
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentalBreadcrumbUniversal.test.d.ts +0 -1
- package/lib/cjs/components/ExpandableText/ExpandableText.test.d.ts +0 -1
- package/lib/cjs/components/FieldHelperText/FieldHelperText.test.d.ts +0 -1
- package/lib/cjs/components/Footer/Footer.test.d.ts +0 -1
- package/lib/cjs/components/Grid/Grid.test.d.ts +0 -1
- package/lib/cjs/components/GridList/GridList.test.d.ts +0 -1
- package/lib/cjs/components/HelpHint/HelpHint.test.d.ts +0 -1
- package/lib/cjs/components/Icon/Icon.test.d.ts +0 -1
- package/lib/cjs/components/Icon/NoticeIcon.test.d.ts +0 -1
- package/lib/cjs/components/IconBadge/IconBadge.test.d.ts +0 -1
- package/lib/cjs/components/IconButton/IconButton.test.d.ts +0 -1
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.test.d.ts +0 -1
- package/lib/cjs/components/IconWrapper/IconWrapper.test.d.ts +0 -1
- package/lib/cjs/components/Image/Image.test.d.ts +0 -1
- package/lib/cjs/components/Input/Input.test.d.ts +0 -1
- package/lib/cjs/components/Label/Label.test.d.ts +0 -1
- package/lib/cjs/components/Link/Link.test.d.ts +0 -1
- package/lib/cjs/components/ListBox/ListBox.test.d.ts +0 -1
- package/lib/cjs/components/ListItem/ListItem.test.d.ts +0 -1
- package/lib/cjs/components/ListView/ListView.test.d.ts +0 -1
- package/lib/cjs/components/Loader/Loader.test.d.ts +0 -1
- package/lib/cjs/components/Menu/Menu.test.d.ts +0 -1
- package/lib/cjs/components/MenuItem/MenuItem.test.d.ts +0 -1
- package/lib/cjs/components/MenuSection/MenuSection.test.d.ts +0 -1
- package/lib/cjs/components/Messages/Messages.test.d.ts +0 -1
- package/lib/cjs/components/Messages/utils/tests/messagesReducer.test.d.ts +0 -1
- package/lib/cjs/components/Messages/utils/tests/multiMessagesReducer.test.d.ts +0 -1
- package/lib/cjs/components/Modal/ModalBody.test.d.ts +0 -1
- package/lib/cjs/components/Modal/ModalFooter.test.d.ts +0 -1
- package/lib/cjs/components/Modal/ModalHeader.test.d.ts +0 -1
- package/lib/cjs/components/Modal/tests/Modal.integration.test.d.ts +0 -1
- package/lib/cjs/components/Modal/tests/Modal.unit.test.d.ts +0 -1
- package/lib/cjs/components/NavBar/NavBar.test.d.ts +0 -1
- package/lib/cjs/components/NavBarSection/NavBarItemBody.test.d.ts +0 -1
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.d.ts +0 -1
- package/lib/cjs/components/NavSideBar/Icon.test.d.ts +0 -1
- package/lib/cjs/components/NavSideBar/NavSideBar.test.d.ts +0 -1
- package/lib/cjs/components/NavigationHeader/NavigationHeader.test.d.ts +0 -1
- package/lib/cjs/components/OverlayPanel/OverlayPanel.test.d.ts +0 -1
- package/lib/cjs/components/Pagination/Pagination.test.d.ts +0 -1
- package/lib/cjs/components/PasswordField/PasswordField.test.d.ts +0 -1
- package/lib/cjs/components/Popover/Popover.test.d.ts +0 -1
- package/lib/cjs/components/PopoverMenu/PopoverMenu.test.d.ts +0 -1
- package/lib/cjs/components/ProgressBar/ProgressBar.test.d.ts +0 -1
- package/lib/cjs/components/RadioField/RadioField.test.d.ts +0 -1
- package/lib/cjs/components/RadioGroupField/RadioGroupField.test.d.ts +0 -1
- package/lib/cjs/components/RangeCalendar/RangeCalendar.test.d.ts +0 -1
- package/lib/cjs/components/RequirementsList/RequirementsList.test.d.ts +0 -1
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.d.ts +0 -1
- package/lib/cjs/components/ScrollBox/ScrollBox.test.d.ts +0 -1
- package/lib/cjs/components/SearchField/SearchField.test.d.ts +0 -1
- package/lib/cjs/components/SearchNav/SearchNav.test.d.ts +0 -1
- package/lib/cjs/components/SelectField/SelectField.test.d.ts +0 -1
- package/lib/cjs/components/SelectFieldBase/HiddenSelect.test.d.ts +0 -1
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.test.d.ts +0 -1
- package/lib/cjs/components/Separator/Separator.test.d.ts +0 -1
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.test.d.ts +0 -1
- package/lib/cjs/components/Skeleton/Skeleton.test.d.ts +0 -1
- package/lib/cjs/components/SliderField/SliderField.test.d.ts +0 -1
- package/lib/cjs/components/StatusIcon/StatusIcon.test.d.ts +0 -1
- package/lib/cjs/components/SwitchField/SwitchField.test.d.ts +0 -1
- package/lib/cjs/components/Table/Table.test.d.ts +0 -1
- package/lib/cjs/components/TableBase/TableBase.test.d.ts +0 -1
- package/lib/cjs/components/TableBody/TableBody.test.d.ts +0 -1
- package/lib/cjs/components/TableCaption/TableCaption.test.d.ts +0 -1
- package/lib/cjs/components/TableCell/TableCell.test.d.ts +0 -1
- package/lib/cjs/components/TableHead/TableHead.test.d.ts +0 -1
- package/lib/cjs/components/TableRow/TableRow.test.d.ts +0 -1
- package/lib/cjs/components/Tabs/Tabs.test.d.ts +0 -1
- package/lib/cjs/components/Text/Text.test.d.ts +0 -1
- package/lib/cjs/components/TextAreaField/TextAreaField.test.d.ts +0 -1
- package/lib/cjs/components/TextField/TextField.test.d.ts +0 -1
- package/lib/cjs/components/TimeField/TimeField.test.d.ts +0 -1
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.d.ts +0 -1
- package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.test.d.ts +0 -1
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.d.ts +0 -1
- package/lib/cjs/hooks/useComponentToggle/useComponentToggle.test.d.ts +0 -1
- package/lib/cjs/hooks/useCopyToClipboard/useCopyToClipboard.test.d.ts +0 -1
- package/lib/cjs/hooks/useDevelopmentWarning/useDevelopmentWarning.test.d.ts +0 -1
- package/lib/cjs/hooks/useFallbackImage/useFallbackImage.test.d.ts +0 -1
- package/lib/cjs/hooks/useField/useField.test.d.ts +0 -1
- package/lib/cjs/hooks/useGetTheme/useGetTheme.test.d.ts +0 -1
- package/lib/cjs/hooks/useLoadPrev/useLoadPrev.test.d.ts +0 -1
- package/lib/cjs/hooks/useLocalOrForwardRef/useLocalOrForwardRef.test.d.ts +0 -1
- package/lib/cjs/hooks/useModalState/useModalState.test.d.ts +0 -1
- package/lib/cjs/hooks/useMountTransition/useMountTransition.test.d.ts +0 -1
- package/lib/cjs/hooks/useNavBarPress/useNavBarPress.test.d.ts +0 -1
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.test.d.ts +0 -1
- package/lib/cjs/hooks/useOverlappingMenuHoverState/useOverlappingMenuHoverState.test.d.ts +0 -1
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.d.ts +0 -1
- package/lib/cjs/hooks/useProgressiveState/useProgressiveState.test.d.ts +0 -1
- package/lib/cjs/hooks/usePropWarning/usePropWarning.test.d.ts +0 -1
- package/lib/cjs/hooks/useSliderField/useSliderField.test.d.ts +0 -1
- package/lib/cjs/hooks/useStatusClasses/useStatusClasses.test.d.ts +0 -1
- package/lib/cjs/hooks/useTShirtSize/useTShirtSize.test.d.ts +0 -1
- package/lib/cjs/hooks/useTypeAnimation/useTypeAnimation.test.d.ts +0 -1
- package/lib/cjs/hooks/useTypeAnimationWrapper/useTypeAnimationWrapper.test.d.ts +0 -1
- package/lib/components/AIComponents/Response/Response.test.jsx +0 -191
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
|
1
3
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
4
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof _Symbol ? _Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return _Object$defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = _Object$create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = _Object$getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(l); function g(t) { var _context2; _forEachInstanceProperty(_context2 = ["next", "throw", "return"]).call(_context2, function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], _forEachInstanceProperty(t).call(t, w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = _Object$create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = _Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { var _context3; if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, _forEachInstanceProperty(_context3 = this.tryEntries).call(_context3, m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+_sliceInstanceProperty(e).call(e, 1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
2
5
|
import _JSON$stringify from "@babel/runtime-corejs3/core-js-stable/json/stringify";
|
|
3
6
|
import _setTimeout from "@babel/runtime-corejs3/core-js-stable/set-timeout";
|
|
7
|
+
import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
|
|
10
|
+
import _Object$getPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/get-prototype-of";
|
|
11
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
12
|
+
import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/set-prototype-of";
|
|
13
|
+
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
|
14
|
+
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
4
15
|
import React, { useRef } from 'react';
|
|
5
16
|
import userEvent from '@testing-library/user-event';
|
|
6
17
|
import { Button, OverlayPanel, OverlayProvider } from '../..';
|
|
@@ -46,14 +57,27 @@ var ControlledWithTransition = function ControlledWithTransition() {
|
|
|
46
57
|
}, _JSON$stringify(state.isOpen)))))
|
|
47
58
|
);
|
|
48
59
|
};
|
|
49
|
-
test('default return', function () {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
test('default return', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
61
|
+
var button;
|
|
62
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
63
|
+
while (1) switch (_context.prev = _context.next) {
|
|
64
|
+
case 0:
|
|
65
|
+
render(___EmotionJSX(ControlledWithTransition, null));
|
|
66
|
+
button = screen.getByTestId(buttonTestId);
|
|
67
|
+
_context.next = 4;
|
|
68
|
+
return userEvent.click(button);
|
|
69
|
+
case 4:
|
|
70
|
+
expect(screen.getByTestId(overlayTestId)).toHaveClass('is-transitioning');
|
|
71
|
+
_context.next = 7;
|
|
72
|
+
return userEvent.click(button);
|
|
73
|
+
case 7:
|
|
74
|
+
expect(screen.getByTestId(overlayTestId)).toHaveClass('is-transitioning');
|
|
75
|
+
_setTimeout(function () {
|
|
76
|
+
expect(screen.getByTestId(overlayTestId)).not.toHaveClass('is-transitioning');
|
|
77
|
+
}, 501);
|
|
78
|
+
case 9:
|
|
79
|
+
case "end":
|
|
80
|
+
return _context.stop();
|
|
81
|
+
}
|
|
82
|
+
}, _callee);
|
|
83
|
+
})));
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
2
1
|
import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
|
|
2
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
3
3
|
import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
|
|
4
4
|
import _Object$getPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/get-prototype-of";
|
|
5
5
|
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
6
|
import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/set-prototype-of";
|
|
7
7
|
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
|
8
|
-
import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reverse";
|
|
9
8
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
10
9
|
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
|
11
10
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
|
12
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = _Object$defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof _Symbol ? _Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return _Object$defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = _Object$create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = _Object$getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype); function defineIteratorMethods(prototype) { var _context8; _forEachInstanceProperty(_context8 = ["next", "throw", "return"]).call(_context8, function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = _Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return _reverseInstanceProperty(keys).call(keys), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { var _context9; if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context9 = this.tryEntries).call(_context9, resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
11
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof _Symbol ? _Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return _Object$defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = _Object$create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = _Object$getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(l); function g(t) { var _context8; _forEachInstanceProperty(_context8 = ["next", "throw", "return"]).call(_context8, function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], _forEachInstanceProperty(t).call(t, w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = _Object$create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = _Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { var _context9; if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, _forEachInstanceProperty(_context9 = this.tryEntries).call(_context9, m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+_sliceInstanceProperty(e).call(e, 1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
13
12
|
import React, { useRef } from 'react';
|
|
14
13
|
import { render, screen } from '@testing-library/react';
|
|
15
14
|
import userEvent from '@testing-library/user-event';
|
|
@@ -54,7 +53,7 @@ describe('useOverlappingMenuHoverState', function () {
|
|
|
54
53
|
});
|
|
55
54
|
});
|
|
56
55
|
describe('when the ListItem is hovered', function () {
|
|
57
|
-
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(
|
|
56
|
+
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
58
57
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
59
58
|
while (1) switch (_context.prev = _context.next) {
|
|
60
59
|
case 0:
|
|
@@ -75,7 +74,7 @@ describe('useOverlappingMenuHoverState', function () {
|
|
|
75
74
|
});
|
|
76
75
|
describe('when the menu is opened', function () {
|
|
77
76
|
describe('when the ListItem is hovered', function () {
|
|
78
|
-
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(
|
|
77
|
+
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
79
78
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
80
79
|
while (1) switch (_context2.prev = _context2.next) {
|
|
81
80
|
case 0:
|
|
@@ -92,7 +91,7 @@ describe('useOverlappingMenuHoverState', function () {
|
|
|
92
91
|
})));
|
|
93
92
|
});
|
|
94
93
|
describe('when the ListItem is unhovered', function () {
|
|
95
|
-
it('it should not be hovered', /*#__PURE__*/_asyncToGenerator(
|
|
94
|
+
it('it should not be hovered', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
96
95
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
97
96
|
while (1) switch (_context3.prev = _context3.next) {
|
|
98
97
|
case 0:
|
|
@@ -114,7 +113,7 @@ describe('useOverlappingMenuHoverState', function () {
|
|
|
114
113
|
})));
|
|
115
114
|
});
|
|
116
115
|
describe('when the Menu is hovered', function () {
|
|
117
|
-
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(
|
|
116
|
+
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
118
117
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
119
118
|
while (1) switch (_context4.prev = _context4.next) {
|
|
120
119
|
case 0:
|
|
@@ -136,7 +135,7 @@ describe('useOverlappingMenuHoverState', function () {
|
|
|
136
135
|
describe('when hover moves from the menu to the ListItem', function () {
|
|
137
136
|
// FIXME: upgrade RTL to v14 (UIP-6248), then fix this test,
|
|
138
137
|
// then remove related coveragePathIgnorePatterns in jest.config.js
|
|
139
|
-
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(
|
|
138
|
+
it('it should be hovered', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
140
139
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
141
140
|
while (1) switch (_context5.prev = _context5.next) {
|
|
142
141
|
case 0:
|
|
@@ -161,7 +160,7 @@ describe('useOverlappingMenuHoverState', function () {
|
|
|
161
160
|
})));
|
|
162
161
|
});
|
|
163
162
|
describe('when hover moves from the menu to unhovered', function () {
|
|
164
|
-
it('it should not be hovered', /*#__PURE__*/_asyncToGenerator(
|
|
163
|
+
it('it should not be hovered', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
165
164
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
166
165
|
while (1) switch (_context6.prev = _context6.next) {
|
|
167
166
|
case 0:
|
|
@@ -184,7 +183,7 @@ describe('useOverlappingMenuHoverState', function () {
|
|
|
184
183
|
})));
|
|
185
184
|
});
|
|
186
185
|
describe('when hover moves from the menu to ListItem to unhoverd', function () {
|
|
187
|
-
it('it should not be hovered', /*#__PURE__*/_asyncToGenerator(
|
|
186
|
+
it('it should not be hovered', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
188
187
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
189
188
|
while (1) switch (_context7.prev = _context7.next) {
|
|
190
189
|
case 0:
|
|
@@ -7,8 +7,8 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
|
|
|
7
7
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
8
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
-
function ownKeys(
|
|
11
|
-
function _objectSpread(
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import { useOverlayTriggerState } from 'react-stately';
|
|
13
13
|
import useMountTransition from '../useMountTransition';
|
|
14
14
|
var useOverlayPanelState = function useOverlayPanelState() {
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["currentPageIndex", "nextButtonProps", "offsetCount", "offsetMenuProps", "offsetOptions", "onOffsetCountChange", "onPageIndexChange", "previousButtonProps", "totalCount"];
|
|
5
|
-
function ownKeys(
|
|
6
|
-
function _objectSpread(
|
|
5
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
8
8
|
import _parseInt from "@babel/runtime-corejs3/core-js-stable/parse-int";
|
|
9
9
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
|
|
2
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
3
|
+
import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
|
|
4
|
+
import _Object$getPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/get-prototype-of";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/set-prototype-of";
|
|
7
|
+
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
|
8
|
+
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
9
|
+
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
|
10
|
+
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
|
1
11
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
12
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof _Symbol ? _Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return _Object$defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = _Object$create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = _Object$getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(l); function g(t) { var _context3; _forEachInstanceProperty(_context3 = ["next", "throw", "return"]).call(_context3, function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], _forEachInstanceProperty(t).call(t, w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = _Object$create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = _Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { var _context4; if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, _forEachInstanceProperty(_context4 = this.tryEntries).call(_context4, m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+_sliceInstanceProperty(e).call(e, 1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
2
13
|
import React from 'react';
|
|
3
|
-
import { render, screen } from '@testing-library/react';
|
|
4
|
-
import { renderHook } from '@testing-library/react-hooks';
|
|
14
|
+
import { render, renderHook, screen } from '@testing-library/react';
|
|
5
15
|
import userEvent from '@testing-library/user-event';
|
|
6
16
|
import useProgressiveState from './useProgressiveState';
|
|
7
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -28,26 +38,52 @@ var getComponent = function getComponent() {
|
|
|
28
38
|
return render(___EmotionJSX(TestComponent, props));
|
|
29
39
|
};
|
|
30
40
|
describe('State Utils', function () {
|
|
31
|
-
it('should update the state when no prop is provided', function () {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
it('should update the state when no prop is provided', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
42
|
+
var component;
|
|
43
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
44
|
+
while (1) switch (_context.prev = _context.next) {
|
|
45
|
+
case 0:
|
|
46
|
+
getComponent();
|
|
47
|
+
component = screen.getByRole('button');
|
|
48
|
+
expect(component).toHaveTextContent('0');
|
|
49
|
+
_context.next = 5;
|
|
50
|
+
return userEvent.click(component);
|
|
51
|
+
case 5:
|
|
52
|
+
expect(component).toHaveTextContent('1');
|
|
53
|
+
_context.next = 8;
|
|
54
|
+
return userEvent.click(component);
|
|
55
|
+
case 8:
|
|
56
|
+
expect(component).toHaveTextContent('2');
|
|
57
|
+
case 9:
|
|
58
|
+
case "end":
|
|
59
|
+
return _context.stop();
|
|
60
|
+
}
|
|
61
|
+
}, _callee);
|
|
62
|
+
})));
|
|
63
|
+
it('should not update the state when a prop is provided', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
64
|
+
var component;
|
|
65
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
66
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
67
|
+
case 0:
|
|
68
|
+
getComponent({
|
|
69
|
+
count: 5
|
|
70
|
+
});
|
|
71
|
+
component = screen.getByRole('button');
|
|
72
|
+
expect(component).toHaveTextContent('5');
|
|
73
|
+
_context2.next = 5;
|
|
74
|
+
return userEvent.click(component);
|
|
75
|
+
case 5:
|
|
76
|
+
expect(component).toHaveTextContent('5');
|
|
77
|
+
_context2.next = 8;
|
|
78
|
+
return userEvent.click(component);
|
|
79
|
+
case 8:
|
|
80
|
+
expect(component).toHaveTextContent('5');
|
|
81
|
+
case 9:
|
|
82
|
+
case "end":
|
|
83
|
+
return _context2.stop();
|
|
84
|
+
}
|
|
85
|
+
}, _callee2);
|
|
86
|
+
})));
|
|
51
87
|
it('hook should return prop if provided', function () {
|
|
52
88
|
var _renderHook = renderHook(function () {
|
|
53
89
|
return useProgressiveState(hookProps.prop, hookProps.initial);
|
|
@@ -5,9 +5,8 @@ describe('usePropWarning', function () {
|
|
|
5
5
|
process.env.NODE_ENV = 'development';
|
|
6
6
|
global.console.warn = function () {
|
|
7
7
|
return jest.fn();
|
|
8
|
-
};
|
|
8
|
+
};
|
|
9
9
|
});
|
|
10
|
-
|
|
11
10
|
afterEach(function () {
|
|
12
11
|
process.env.NODE_ENV = 'test';
|
|
13
12
|
jest.clearAllMocks();
|
|
@@ -12,8 +12,8 @@ import _valuesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
|
12
12
|
import _keysInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/keys";
|
|
13
13
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
14
14
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
|
15
|
-
function ownKeys(
|
|
16
|
-
function _objectSpread(
|
|
15
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
import { useState } from 'react';
|
|
18
18
|
import { ListDropTargetDelegate, useDraggableCollection, useDroppableCollection } from '@react-aria/dnd';
|
|
19
19
|
import { ListKeyboardDelegate } from '@react-aria/selection';
|
|
@@ -70,9 +70,7 @@ var useReorderableCollection = function useReorderableCollection(props) {
|
|
|
70
70
|
|
|
71
71
|
// not having this be an any would require bumping the react-aria global version.
|
|
72
72
|
// not sure we want to do that at this time.
|
|
73
|
-
var keyboardDelegate = new ListKeyboardDelegate(
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
75
|
-
state.collection, state.disabledKeys, ref);
|
|
73
|
+
var keyboardDelegate = new ListKeyboardDelegate(state.collection, state.disabledKeys, ref);
|
|
76
74
|
var _useDroppableCollecti = useDroppableCollection(_objectSpread(_objectSpread({}, useDroppableCollectionOptions), {}, {
|
|
77
75
|
onReorder: function onReorder(e) {
|
|
78
76
|
onDropFunction(e);
|
|
@@ -84,6 +82,7 @@ var useReorderableCollection = function useReorderableCollection(props) {
|
|
|
84
82
|
keyboardDelegate: keyboardDelegate
|
|
85
83
|
}), dropState, ref),
|
|
86
84
|
collectionProps = _useDroppableCollecti.collectionProps;
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
87
86
|
useDraggableCollection(props, dragState, ref);
|
|
88
87
|
return {
|
|
89
88
|
collectionProps: collectionProps,
|
|
@@ -10,8 +10,8 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
|
10
10
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
11
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
12
12
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
13
|
-
function ownKeys(
|
|
14
|
-
function _objectSpread(
|
|
13
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
15
|
import React, { useCallback, useImperativeHandle, useLayoutEffect, useRef, useState } from 'react';
|
|
16
16
|
import { DismissButton, FocusScope, useOverlayPosition } from 'react-aria';
|
|
17
17
|
import { useSelect } from '@react-aria/select';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["activeTrackProps", "hasAutoFocus", "className", "defaultValue", "displayValue", "formatOptions", "helperTextProps", "helpHintProps", "hintText", "isDisabled", "isDisplayValueHidden", "isMultiThumb", "label", "labelProps", "maxValue", "minValue", "name", "onBlur", "onChange", "onChangeEnd", "onFocus", "onFocusChange", "onKeyDown", "onKeyUp", "orientation", "outputProps", "size", "status", "step", "sx", "thumbProps", "trackProps", "trackRef", "value", "wrapperProps"];
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
7
7
|
import _valuesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/values";
|
|
8
8
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
@@ -7,8 +7,8 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
|
|
|
7
7
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
8
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
-
function ownKeys(
|
|
11
|
-
function _objectSpread(
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import _valuesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/values";
|
|
13
13
|
import { renderHook } from '@testing-library/react';
|
|
14
14
|
import useSliderField, { getDefaultValue, getDisplayValue } from './useSliderField';
|
|
@@ -5,9 +5,8 @@ import useTShirtSize from './useTShirtSize';
|
|
|
5
5
|
describe('useTShirtSize', function () {
|
|
6
6
|
beforeEach(function () {
|
|
7
7
|
process.env.NODE_ENV = 'development';
|
|
8
|
-
global.console.warn = jest.fn();
|
|
8
|
+
global.console.warn = jest.fn();
|
|
9
9
|
});
|
|
10
|
-
|
|
11
10
|
afterEach(function () {
|
|
12
11
|
process.env.NODE_ENV = 'test';
|
|
13
12
|
jest.clearAllMocks();
|
|
@@ -7,10 +7,10 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
|
|
|
7
7
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
8
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
-
function ownKeys(
|
|
11
|
-
function _objectSpread(
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
13
|
-
import { act, renderHook } from '@testing-library/react
|
|
13
|
+
import { act, renderHook } from '@testing-library/react';
|
|
14
14
|
import useTypeAnimation from './useTypeAnimation';
|
|
15
15
|
var setAnimationIndex = jest.fn();
|
|
16
16
|
var animationIndex = 0;
|
|
@@ -10,13 +10,12 @@ import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create"
|
|
|
10
10
|
import _Object$getPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/get-prototype-of";
|
|
11
11
|
import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/set-prototype-of";
|
|
12
12
|
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
|
13
|
-
import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reverse";
|
|
14
13
|
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
|
15
14
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
16
15
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
|
17
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = _Object$defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof _Symbol ? _Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return _Object$defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = _Object$create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = _Object$getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype); function defineIteratorMethods(prototype) { var _context6; _forEachInstanceProperty(_context6 = ["next", "throw", "return"]).call(_context6, function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = _Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return _reverseInstanceProperty(keys).call(keys), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { var _context7; if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context7 = this.tryEntries).call(_context7, resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
16
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof _Symbol ? _Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return _Object$defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = _Object$create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = _Object$getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(l); function g(t) { var _context6; _forEachInstanceProperty(_context6 = ["next", "throw", "return"]).call(_context6, function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], _forEachInstanceProperty(t).call(t, w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = _Object$create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = _Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { var _context7; if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, _forEachInstanceProperty(_context7 = this.tryEntries).call(_context7, m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+_sliceInstanceProperty(e).call(e, 1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
17
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
19
|
import _URL from "@babel/runtime-corejs3/core-js-stable/url";
|
|
21
20
|
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
22
21
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
@@ -25,7 +24,7 @@ import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
25
24
|
import { http, HttpResponse } from 'msw';
|
|
26
25
|
import { usersResponse } from '../responses/users';
|
|
27
26
|
export var userHandlers = [http.get('/users', /*#__PURE__*/function () {
|
|
28
|
-
var _ref = _asyncToGenerator(
|
|
27
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(req) {
|
|
29
28
|
var _url$searchParams$get;
|
|
30
29
|
var allUsers, url, limit, search, filteredUsers, response;
|
|
31
30
|
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
@@ -7,8 +7,8 @@ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-st
|
|
|
7
7
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
8
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
-
function ownKeys(
|
|
11
|
-
function _objectSpread(
|
|
10
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Item } from 'react-stately';
|
|
14
14
|
import ChevronDownIcon from '@pingux/mdi-react/ChevronDownIcon';
|