@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,4 +1,15 @@
|
|
|
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 _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
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 _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
13
|
import React from 'react';
|
|
3
14
|
import { render, screen } from '@testing-library/react';
|
|
4
15
|
import userEvent from '@testing-library/user-event';
|
|
@@ -25,13 +36,24 @@ test('renders inverted RemovableBadge component', function () {
|
|
|
25
36
|
var badge = screen.getByTestId(testId);
|
|
26
37
|
expect(badge).toBeInTheDocument();
|
|
27
38
|
});
|
|
28
|
-
test('click on close button triggers onClose function', function () {
|
|
29
|
-
var closeFunc
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
39
|
+
test('click on close button triggers onClose function', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
40
|
+
var closeFunc, closeButton;
|
|
41
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
42
|
+
while (1) switch (_context.prev = _context.next) {
|
|
43
|
+
case 0:
|
|
44
|
+
closeFunc = jest.fn();
|
|
45
|
+
getComponent({
|
|
46
|
+
id: 'test',
|
|
47
|
+
onClose: closeFunc
|
|
48
|
+
});
|
|
49
|
+
closeButton = screen.getByRole('button');
|
|
50
|
+
_context.next = 5;
|
|
51
|
+
return userEvent.click(closeButton);
|
|
52
|
+
case 5:
|
|
53
|
+
expect(closeFunc).toBeCalledWith('test');
|
|
54
|
+
case 6:
|
|
55
|
+
case "end":
|
|
56
|
+
return _context.stop();
|
|
57
|
+
}
|
|
58
|
+
}, _callee);
|
|
59
|
+
})));
|
|
@@ -12,8 +12,8 @@ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
|
|
|
12
12
|
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
13
13
|
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
14
14
|
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
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 _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; }
|
|
17
17
|
import React, { forwardRef, useMemo } from 'react';
|
|
18
18
|
import { toNumber } from 'lodash';
|
|
19
19
|
import { flexbox, layout, typography } from 'styled-system';
|
|
@@ -25,7 +25,7 @@ var ExtendedBox = /*#__PURE__*/_styled(ThemeUIBox, process.env.NODE_ENV === "pro
|
|
|
25
25
|
} : {
|
|
26
26
|
target: "ejf9h0h0",
|
|
27
27
|
label: "ExtendedBox"
|
|
28
|
-
})(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
28
|
+
})(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvYXN0cm8vc3JjL2NvbXBvbmVudHMvQm94L0JveC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBU29CIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL2xpYnMvYXN0cm8vc3JjL2NvbXBvbmVudHMvQm94L0JveC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IHRvTnVtYmVyIH0gZnJvbSAnbG9kYXNoJztcbmltcG9ydCB7IGZsZXhib3gsIGxheW91dCwgdHlwb2dyYXBoeSB9IGZyb20gJ3N0eWxlZC1zeXN0ZW0nO1xuaW1wb3J0IHsgQm94IGFzIFRoZW1lVUlCb3ggfSBmcm9tICd0aGVtZS11aSc7XG5cbmltcG9ydCB7IHVzZVByb3BXYXJuaW5nLCB1c2VTdGF0dXNDbGFzc2VzIH0gZnJvbSAnLi4vLi4vaG9va3MnO1xuaW1wb3J0IHsgQm94UHJvcHMgfSBmcm9tICcuLi8uLi90eXBlcyc7XG5cbmNvbnN0IEV4dGVuZGVkQm94ID0gc3R5bGVkKFRoZW1lVUlCb3gpKFxuICBsYXlvdXQsXG4gIGZsZXhib3gsXG4gIHR5cG9ncmFwaHksXG4pO1xuXG5jb25zdCBCb3ggPSBmb3J3YXJkUmVmPEhUTUxFbGVtZW50LCBCb3hQcm9wcz4oKHByb3BzLCByZWYpID0+IHtcbiAgY29uc3Qge1xuICAgIGFzID0gJ2RpdicsXG4gICAgZmxleERpcmVjdGlvbixcbiAgICBnYXAsXG4gICAgaXNSb3cgPSBmYWxzZSxcbiAgICBpc0Rpc2FibGVkID0gZmFsc2UsXG4gICAgY2xhc3NOYW1lLFxuICAgIGZvbnRTaXplLFxuICAgIHN4LFxuICAgIHZhcmlhbnQgPSAnYm94LmJhc2UnLFxuICAgIC4uLm90aGVyc1xuICB9ID0gcHJvcHM7XG4gIGNvbnN0IGZkID0gZmxleERpcmVjdGlvbiB8fCBpc1JvdyA/ICdyb3cnIDogJ2NvbHVtbic7XG4gIGNvbnN0IGN1c3RvbSA9IHsgLi4uc3ggfTtcblxuICBjb25zdCB7IGNsYXNzTmFtZXMgfSA9IHVzZVN0YXR1c0NsYXNzZXMoY2xhc3NOYW1lLCB7IGlzRGlzYWJsZWQgfSk7XG4gIHVzZVByb3BXYXJuaW5nKHByb3BzLCAnZGlzYWJsZWQnLCAnaXNEaXNhYmxlZCcpO1xuXG4gIGlmIChnYXApIHtcbiAgICBjdXN0b21bJyYgPiAqICsgKjpub3QoOmZpcnN0LW9mLXR5cGU6bm90KHN0eWxlKTpub3QoOmZpcnN0LW9mLXR5cGUgfiAqKSknXSA9IHtcbiAgICAgIFtmZCA9PT0gJ3JvdycgPyAnbWFyZ2luTGVmdCcgOiAnbWFyZ2luVG9wJ106IGdhcCxcbiAgICB9O1xuICB9XG5cbiAgY29uc3QgY3VzdG9tRm9udFNpemUgPSB1c2VNZW1vKCgpID0+IHtcbiAgICBjb25zdCBudW1lcmljYWxGb250U2l6ZSA9IHRvTnVtYmVyKGZvbnRTaXplKTtcbiAgICBpZiAoTnVtYmVyLmlzTmFOKG51bWVyaWNhbEZvbnRTaXplKSkge1xuICAgICAgcmV0dXJuIGZvbnRTaXplO1xuICAgIH1cbiAgICByZXR1cm4gbnVtZXJpY2FsRm9udFNpemU7XG4gIH0sIFtmb250U2l6ZV0pO1xuXG4gIHJldHVybiAoXG4gICAgPEV4dGVuZGVkQm94XG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZXN9XG4gICAgICByZWY9e3JlZn1cbiAgICAgIGRpc3BsYXk9XCJmbGV4XCJcbiAgICAgIGZsZXhEaXJlY3Rpb249e2ZkfVxuICAgICAgdmFyaWFudD17dmFyaWFudH1cbiAgICAgIGZvbnRTaXplPXtjdXN0b21Gb250U2l6ZX1cbiAgICAgIGFzPXthc31cbiAgICAgIHsuLi5vdGhlcnN9XG4gICAgICBzeD17Y3VzdG9tfVxuICAgIC8+XG4gICk7XG59KTtcblxuQm94LmRpc3BsYXlOYW1lID0gJ0JveCc7XG5cbmV4cG9ydCBkZWZhdWx0IEJveDtcbiJdfQ== */");
|
|
29
29
|
var Box = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
30
30
|
var _props$as = props.as,
|
|
31
31
|
as = _props$as === void 0 ? 'div' : _props$as,
|
|
@@ -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 { link as buttonLink } from '../Button/Buttons.styles';
|
|
13
13
|
import { text } from '../Text/Text.styles';
|
|
14
14
|
var breadcrumbMinWidth = '40px';
|
|
@@ -11,8 +11,8 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
|
|
|
11
11
|
var _excluded = ["children", "elementType", "onAction", "actionKey", "isCurrent"];
|
|
12
12
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
13
13
|
import _Reflect$deleteProperty from "@babel/runtime-corejs3/core-js-stable/reflect/delete-property";
|
|
14
|
-
function ownKeys(
|
|
15
|
-
function _objectSpread(
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
16
|
import React, { forwardRef, Fragment, useCallback, useMemo } from 'react';
|
|
17
17
|
import { mergeProps, useBreadcrumbItem } from 'react-aria';
|
|
18
18
|
import { omit } from 'lodash/object';
|
|
@@ -1,4 +1,15 @@
|
|
|
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 _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
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 _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
13
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
3
14
|
import React from 'react';
|
|
4
15
|
import { mergeProps } from 'react-aria';
|
|
@@ -79,15 +90,26 @@ test('breadcrumbItem should render breadcrumbItem as a html tag when appropriate
|
|
|
79
90
|
});
|
|
80
91
|
expect(screen.getAllByTestId(testItemId)[0]).toBeInstanceOf(HTMLAnchorElement);
|
|
81
92
|
});
|
|
82
|
-
test('breadcrumbs will use onAction if provided', function () {
|
|
83
|
-
var mockOnAction
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
test('breadcrumbs will use onAction if provided', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
94
|
+
var mockOnAction;
|
|
95
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
96
|
+
while (1) switch (_context.prev = _context.next) {
|
|
97
|
+
case 0:
|
|
98
|
+
mockOnAction = jest.fn();
|
|
99
|
+
getComponent({}, {
|
|
100
|
+
elementType: ELEMENT_TYPE.LINK,
|
|
101
|
+
onAction: mockOnAction
|
|
102
|
+
});
|
|
103
|
+
_context.next = 4;
|
|
104
|
+
return userEvent.click(screen.getByText(testItemsArr[0]));
|
|
105
|
+
case 4:
|
|
106
|
+
expect(mockOnAction).toHaveBeenCalled();
|
|
107
|
+
case 5:
|
|
108
|
+
case "end":
|
|
109
|
+
return _context.stop();
|
|
110
|
+
}
|
|
111
|
+
}, _callee);
|
|
112
|
+
})));
|
|
91
113
|
test('Item accepts a data-id and the data-id can be found in the DOM', function () {
|
|
92
114
|
getComponent();
|
|
93
115
|
var item = screen.getByText(testItemsArr[0]);
|
|
@@ -9,9 +9,9 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
|
9
9
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
10
10
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
11
11
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
12
|
-
var _excluded = ["children", "className", "isDisabled", "isLoading", "onBlur", "onFocus", "onHoverChange", "onHoverEnd", "onHoverStart", "onKeyDown", "onKeyUp", "onPress", "onPressChange", "onPressEnd", "onPressStart", "onPressUp", "tabIndex", "variant"];
|
|
13
|
-
function ownKeys(
|
|
14
|
-
function _objectSpread(
|
|
12
|
+
var _excluded = ["children", "className", "isDisabled", "isLoading", "onBlur", "onFocus", "onHoverChange", "onHoverEnd", "onHoverStart", "onKeyDown", "onKeyUp", "onPress", "onPressChange", "onPressEnd", "onPressStart", "onPressUp", "tabIndex", "value", "onClick", "variant"];
|
|
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 _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; }
|
|
15
15
|
import React, { forwardRef } from 'react';
|
|
16
16
|
import { mergeProps, useButton, useFocusRing } from 'react-aria';
|
|
17
17
|
import { Pressable, useHover, usePress } from '@react-aria/interactions';
|
|
@@ -40,6 +40,8 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40
40
|
onPressStart = props.onPressStart,
|
|
41
41
|
onPressUp = props.onPressUp,
|
|
42
42
|
tabIndex = props.tabIndex,
|
|
43
|
+
value = props.value,
|
|
44
|
+
onClick = props.onClick,
|
|
43
45
|
_props$variant = props.variant,
|
|
44
46
|
variant = _props$variant === void 0 ? 'default' : _props$variant,
|
|
45
47
|
others = _objectWithoutProperties(props, _excluded);
|
|
@@ -63,7 +65,9 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
63
65
|
onPressChange: onPressChange,
|
|
64
66
|
onPressEnd: onPressEnd,
|
|
65
67
|
onPressStart: onPressStart,
|
|
66
|
-
onPressUp: onPressUp
|
|
68
|
+
onPressUp: onPressUp,
|
|
69
|
+
value: value ? String(value) : undefined,
|
|
70
|
+
onClick: onClick
|
|
67
71
|
}, others), buttonRef),
|
|
68
72
|
buttonProps = _useButton.buttonProps,
|
|
69
73
|
isPressed = _useButton.isPressed;
|
|
@@ -10,8 +10,8 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
|
|
|
10
10
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
11
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
12
12
|
var _excluded = ["isConfigured"];
|
|
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 _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; }
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import PlusIcon from '@pingux/mdi-react/PlusIcon';
|
|
17
17
|
import { withDesign } from 'storybook-addon-designs';
|
|
@@ -1,16 +1,15 @@
|
|
|
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
11
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
13
|
-
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 _context3; _forEachInstanceProperty(_context3 = ["next", "throw", "return"]).call(_context3, 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 _context4; 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(_context4 = this.tryEntries).call(_context4, 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; }
|
|
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 _context5; _forEachInstanceProperty(_context5 = ["next", "throw", "return"]).call(_context5, 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 _context6; if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, _forEachInstanceProperty(_context6 = this.tryEntries).call(_context6, 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; }
|
|
14
13
|
import React from 'react';
|
|
15
14
|
import userEvent from '@testing-library/user-event';
|
|
16
15
|
import axeTest from '../../utils/testUtils/testAxe';
|
|
@@ -36,13 +35,13 @@ test('default button', function () {
|
|
|
36
35
|
expect(button).toBeInstanceOf(HTMLButtonElement);
|
|
37
36
|
expect(button).toBeInTheDocument();
|
|
38
37
|
});
|
|
39
|
-
test('button hover', /*#__PURE__*/_asyncToGenerator(
|
|
38
|
+
test('button hover', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
40
39
|
var button;
|
|
41
40
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
42
41
|
while (1) switch (_context2.prev = _context2.next) {
|
|
43
42
|
case 0:
|
|
44
43
|
_context2.next = 2;
|
|
45
|
-
return act(
|
|
44
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46
45
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
47
46
|
while (1) switch (_context.prev = _context.next) {
|
|
48
47
|
case 0:
|
|
@@ -59,34 +58,49 @@ test('button hover', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRu
|
|
|
59
58
|
case 4:
|
|
60
59
|
button = _context2.sent;
|
|
61
60
|
expect(button).not.toHaveClass('is-hovered');
|
|
62
|
-
|
|
61
|
+
_context2.next = 8;
|
|
62
|
+
return userEvent.hover(button);
|
|
63
|
+
case 8:
|
|
63
64
|
expect(button).toHaveClass('is-hovered');
|
|
64
|
-
|
|
65
|
+
_context2.next = 11;
|
|
66
|
+
return userEvent.unhover(button);
|
|
67
|
+
case 11:
|
|
65
68
|
expect(button).not.toHaveClass('is-hovered');
|
|
66
|
-
case
|
|
69
|
+
case 12:
|
|
67
70
|
case "end":
|
|
68
71
|
return _context2.stop();
|
|
69
72
|
}
|
|
70
73
|
}, _callee2);
|
|
71
74
|
})));
|
|
72
|
-
test('icon button press', function () {
|
|
73
|
-
var onPress
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
test('icon button press', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
76
|
+
var onPress, button;
|
|
77
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
78
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
79
|
+
case 0:
|
|
80
|
+
onPress = jest.fn();
|
|
81
|
+
getComponent({
|
|
82
|
+
onPress: onPress
|
|
83
|
+
});
|
|
84
|
+
button = screen.getByRole('button');
|
|
85
|
+
expect(button).not.toHaveClass('is-pressed');
|
|
86
|
+
expect(onPress).not.toHaveBeenCalled();
|
|
80
87
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
// Hold down the button to see pressed styles
|
|
89
|
+
fireEvent.mouseDown(button);
|
|
90
|
+
expect(button).toHaveClass('is-pressed');
|
|
84
91
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
// Finish the click to fire the event handler
|
|
93
|
+
_context3.next = 9;
|
|
94
|
+
return userEvent.click(button);
|
|
95
|
+
case 9:
|
|
96
|
+
expect(button).not.toHaveClass('is-pressed');
|
|
97
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
98
|
+
case 11:
|
|
99
|
+
case "end":
|
|
100
|
+
return _context3.stop();
|
|
101
|
+
}
|
|
102
|
+
}, _callee3);
|
|
103
|
+
})));
|
|
90
104
|
test('keyboard icon button press', function () {
|
|
91
105
|
var onPress = jest.fn();
|
|
92
106
|
getComponent({
|
|
@@ -127,20 +141,33 @@ test('button renders children when not loading', function () {
|
|
|
127
141
|
expect(childWrapper).toBeVisible();
|
|
128
142
|
expect(screen.queryByRole('alert')).not.toBeInTheDocument();
|
|
129
143
|
});
|
|
130
|
-
test('color block button renders in default state', function () {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
+
test('color block button renders in default state', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
145
|
+
var button;
|
|
146
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
147
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
148
|
+
case 0:
|
|
149
|
+
getComponent({
|
|
150
|
+
variant: 'colorBlock'
|
|
151
|
+
});
|
|
152
|
+
button = screen.getByRole('button');
|
|
153
|
+
expect(button).toBeInTheDocument();
|
|
154
|
+
expect(button).not.toHaveClass('is-configured');
|
|
155
|
+
_context4.next = 6;
|
|
156
|
+
return userEvent.tab();
|
|
157
|
+
case 6:
|
|
158
|
+
expect(button).toHaveClass('is-focused');
|
|
159
|
+
expect(button).toHaveFocus();
|
|
160
|
+
_context4.next = 10;
|
|
161
|
+
return userEvent.tab();
|
|
162
|
+
case 10:
|
|
163
|
+
expect(button).not.toHaveClass('is-focused');
|
|
164
|
+
expect(button).not.toHaveFocus();
|
|
165
|
+
case 12:
|
|
166
|
+
case "end":
|
|
167
|
+
return _context4.stop();
|
|
168
|
+
}
|
|
169
|
+
}, _callee4);
|
|
170
|
+
})));
|
|
144
171
|
test('color block button renders in configured state', function () {
|
|
145
172
|
getComponent({
|
|
146
173
|
variant: 'colorBlock',
|
|
@@ -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 { searchNavTabLabel, text as textVariants } from '../Text/Text.styles';
|
|
13
13
|
export var base = _objectSpread({
|
|
14
14
|
cursor: 'pointer',
|
|
@@ -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 { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
13
13
|
import { booleanArg } from '../../utils/docUtils/docArgTypes';
|
|
14
14
|
import { onHoverArgTypes } from '../../utils/docUtils/hoverProps';
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["align", "children"];
|
|
3
|
+
var _excluded = ["align", "children", "className"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
+
import { useStatusClasses } from '../../hooks';
|
|
5
6
|
import { Box } from '../../index';
|
|
6
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
8
|
var ButtonBar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
8
9
|
var align = props.align,
|
|
9
10
|
children = props.children,
|
|
11
|
+
className = props.className,
|
|
10
12
|
others = _objectWithoutProperties(props, _excluded);
|
|
13
|
+
var _useStatusClasses = useStatusClasses(className, {
|
|
14
|
+
isAlignedRight: align === 'right',
|
|
15
|
+
isAlignedLeft: align === 'left'
|
|
16
|
+
}),
|
|
17
|
+
classNames = _useStatusClasses.classNames;
|
|
11
18
|
return ___EmotionJSX(Box, _extends({
|
|
12
19
|
ref: ref,
|
|
13
20
|
isRow: true,
|
|
14
|
-
variant: align === 'right' ? 'buttonBar.justifyRightContainer' : 'buttonBar.container'
|
|
21
|
+
variant: align === 'right' ? 'buttonBar.justifyRightContainer' : 'buttonBar.container',
|
|
22
|
+
className: classNames
|
|
15
23
|
}, others), children);
|
|
16
24
|
});
|
|
17
25
|
ButtonBar.defaultProps = {
|
|
@@ -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
|
var container = {
|
|
13
13
|
bg: 'white',
|
|
14
14
|
gap: 'md',
|
|
@@ -75,17 +75,17 @@ test('justify-content right when align prop set to right', function () {
|
|
|
75
75
|
align: 'right'
|
|
76
76
|
});
|
|
77
77
|
var element = screen.getByTestId(testId);
|
|
78
|
-
expect(element).
|
|
78
|
+
expect(element).toHaveClass('is-aligned-right');
|
|
79
79
|
});
|
|
80
80
|
test('justify-content left when align prop is set to left', function () {
|
|
81
81
|
getComponent({
|
|
82
82
|
align: 'left'
|
|
83
83
|
});
|
|
84
84
|
var element = screen.getByTestId(testId);
|
|
85
|
-
expect(element).
|
|
85
|
+
expect(element).toHaveClass('is-aligned-left');
|
|
86
86
|
});
|
|
87
87
|
test('justify-content left when align prop is excluded', function () {
|
|
88
88
|
getComponent();
|
|
89
89
|
var element = screen.getByTestId(testId);
|
|
90
|
-
expect(element).
|
|
90
|
+
expect(element).toHaveClass('is-aligned-left');
|
|
91
91
|
});
|
|
@@ -9,8 +9,8 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
|
9
9
|
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
|
-
function ownKeys(
|
|
13
|
-
function _objectSpread(
|
|
12
|
+
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; }
|
|
13
|
+
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; }
|
|
14
14
|
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
15
15
|
import { createCalendar, parseDate } from '@internationalized/date';
|
|
16
16
|
import ChevronDoubleLeftIcon from '@pingux/mdi-react/ChevronDoubleLeftIcon';
|
|
@@ -73,11 +73,11 @@ var Calendar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
73
73
|
useEffect(function () {
|
|
74
74
|
if (yearChangeDirection === nav.NEXT) {
|
|
75
75
|
var _nextYearRef$current;
|
|
76
|
-
(_nextYearRef$current = nextYearRef.current) === null || _nextYearRef$current === void 0
|
|
76
|
+
(_nextYearRef$current = nextYearRef.current) === null || _nextYearRef$current === void 0 || _nextYearRef$current.focus();
|
|
77
77
|
}
|
|
78
78
|
if (yearChangeDirection === nav.PREVIOUS) {
|
|
79
79
|
var _previousYearRef$curr;
|
|
80
|
-
(_previousYearRef$curr = previousYearRef.current) === null || _previousYearRef$curr === void 0
|
|
80
|
+
(_previousYearRef$curr = previousYearRef.current) === null || _previousYearRef$curr === void 0 || _previousYearRef$curr.focus();
|
|
81
81
|
}
|
|
82
82
|
setYearChangeDirection(null);
|
|
83
83
|
}, [nav.NEXT, nav.PREVIOUS, yearChangeDirection]);
|