@spaced-out/ui-design-system 0.5.6 → 0.5.7-beta.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/.cspell/custom-words.txt +3 -0
- package/.github/CODEOWNERS +0 -5
- package/.github/workflows/pull_request_checks.yml +4 -4
- package/.storybook/public/component-parent-levels.json +95 -0
- package/.type-coverage +13 -0
- package/CHANGELOG.md +53 -0
- package/cspell.json +0 -1
- package/design-tokens/size/base-size.json +3 -0
- package/eslint.config.mjs +62 -29
- package/lib/components/AIPromptFlow/AIPromptFlow.stories.d.ts.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +2 -2
- package/lib/components/Accordion/Accordion.d.ts.map +1 -1
- package/lib/components/Accordion/AccordionGroup.d.ts +2 -2
- package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -1
- package/lib/components/Accordion/AccordionGroup.stories.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.d.ts +5 -5
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.js +4 -13
- package/lib/components/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.js +27 -14
- package/lib/components/Badge/Badge.d.ts +7 -8
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Badge/Badge.stories.d.ts.map +1 -1
- package/lib/components/BadgedIcon/BadgedIcon.d.ts +2 -2
- package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -1
- package/lib/components/BadgedIcon/BadgedIcon.js +1 -4
- package/lib/components/Banner/Banner.d.ts +2 -3
- package/lib/components/Banner/Banner.d.ts.map +1 -1
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +2 -3
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -1
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +2 -4
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +5 -6
- package/lib/components/Button/Button.d.ts +7 -8
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +7 -21
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +3 -4
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/ButtonDropdown.js +4 -14
- package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +70 -70
- package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +5 -6
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +1 -9
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts +109 -109
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts.map +1 -1
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +2 -2
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +1 -1
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +2 -3
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -1
- package/lib/components/ButtonTabs/ButtonTabDropdown.js +5 -14
- package/lib/components/ButtonTabs/ButtonTabs.d.ts +2 -2
- package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +1 -1
- package/lib/components/ButtonTabs/ButtonTabs.js +2 -3
- package/lib/components/Card/Card.d.ts +9 -7
- package/lib/components/Card/Card.d.ts.map +1 -1
- package/lib/components/Card/Card.js +2 -7
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +9 -4
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +1 -1
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js +6 -8
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +8 -5
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -1
- package/lib/components/Charts/ColumnChart/ColumnChart.js +16 -10
- package/lib/components/Charts/DonutChart/DonutChart.d.ts +4 -5
- package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
- package/lib/components/Charts/DonutChart/DonutChart.js +1 -2
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +4 -5
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -1
- package/lib/components/Charts/LineChart/LineChart.d.ts +4 -5
- package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -1
- package/lib/components/Charts/SankeyChart/SankeyChart.d.ts +21 -0
- package/lib/components/Charts/SankeyChart/SankeyChart.d.ts.map +1 -0
- package/lib/components/Charts/SankeyChart/SankeyChart.js +104 -0
- package/lib/components/Charts/SankeyChart/SankeyChart.module.css +22 -0
- package/lib/components/Charts/SankeyChart/SankeyChart.stories.d.ts +267 -0
- package/lib/components/Charts/SankeyChart/SankeyChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/SankeyChart/index.d.ts +2 -0
- package/lib/components/Charts/SankeyChart/index.d.ts.map +1 -0
- package/lib/components/Charts/SankeyChart/index.js +16 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +4 -5
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -1
- package/lib/components/Charts/SpiderChart/SpiderChart.module.css +7 -2
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts +24 -0
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts.map +1 -0
- package/lib/components/Charts/StackedBarChart/StackedBarChart.js +78 -0
- package/lib/components/Charts/StackedBarChart/StackedBarChart.module.css +22 -0
- package/lib/components/Charts/StackedBarChart/StackedBarChart.stories.d.ts +192 -0
- package/lib/components/Charts/StackedBarChart/StackedBarChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/StackedBarChart/index.d.ts +2 -0
- package/lib/components/Charts/StackedBarChart/index.d.ts.map +1 -0
- package/lib/components/Charts/StackedBarChart/index.js +16 -0
- package/lib/components/Charts/index.d.ts +2 -0
- package/lib/components/Charts/index.d.ts.map +1 -1
- package/lib/components/Charts/index.js +22 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts +14 -14
- package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -1
- package/lib/components/ChatBubble/ChatBubble.js +11 -4
- package/lib/components/Checkbox/Checkbox.d.ts +2 -3
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +1 -2
- package/lib/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/components/Checkbox/CheckboxGroup.d.ts +2 -2
- package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
- package/lib/components/Checkbox/CheckboxGroup.js +8 -12
- package/lib/components/Checkbox/CheckboxGroup.stories.d.ts +2 -3
- package/lib/components/Checkbox/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/components/Chip/Chip.d.ts +10 -11
- package/lib/components/Chip/Chip.d.ts.map +1 -1
- package/lib/components/Chip/Chip.js +7 -13
- package/lib/components/CircularLoader/CircularLoader.d.ts +2 -2
- package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -1
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +6 -6
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -1
- package/lib/components/Combobox/Combobox.d.ts +16 -16
- package/lib/components/Combobox/Combobox.d.ts.map +1 -1
- package/lib/components/Combobox/Combobox.js +16 -19
- package/lib/components/Combobox/Combobox.stories.d.ts.map +1 -1
- package/lib/components/Combobox/helper.d.ts.map +1 -1
- package/lib/components/Combobox/helper.js +0 -1
- package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +2 -2
- package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts.map +1 -1
- package/lib/components/DateRangePicker/Calendar.d.ts +3 -3
- package/lib/components/DateRangePicker/Calendar.d.ts.map +1 -1
- package/lib/components/DateRangePicker/Calendar.js +2 -6
- package/lib/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/lib/components/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +2 -2
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -1
- package/lib/components/DateRangePicker/DateRangeWrapper.js +6 -14
- package/lib/components/DateRangePicker/Day.d.ts +2 -2
- package/lib/components/DateRangePicker/Day.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.d.ts +10 -11
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Disclaimer/Disclaimer.d.ts.map +1 -1
- package/lib/components/Disclaimer/Disclaimer.js +0 -1
- package/lib/components/Dropdown/Dropdown.d.ts +3 -4
- package/lib/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +17 -18
- package/lib/components/Dropdown/Dropdown.stories.d.ts.map +1 -1
- package/lib/components/Dropdown/SimpleDropdown.d.ts +5 -6
- package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -1
- package/lib/components/Dropdown/SimpleDropdown.js +1 -7
- package/lib/components/Dropdown/SimpleDropdown.stories.d.ts.map +1 -1
- package/lib/components/EmptyState/EmptyState.d.ts +2 -2
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/lib/components/ErrorMessage/ErrorMessage.d.ts +2 -2
- package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -1
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +2 -2
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -1
- package/lib/components/FileUpload/FileUpload.d.ts +14 -13
- package/lib/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/lib/components/FileUpload/FileUpload.js +2 -7
- package/lib/components/FileUpload/FileUpload.stories.d.ts +2 -1
- package/lib/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +3 -4
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -1
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +1 -9
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.stories.d.ts.map +1 -1
- package/lib/components/FocusManager/FocusManager.d.ts +2 -2
- package/lib/components/FocusManager/FocusManager.d.ts.map +1 -1
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +4 -5
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -1
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +21 -17
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.stories.d.ts.map +1 -1
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +2 -2
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -1
- package/lib/components/Grid/Col.stories.d.ts +1 -1
- package/lib/components/Grid/Grid.d.ts +7 -7
- package/lib/components/Grid/Grid.d.ts.map +1 -1
- package/lib/components/Grid/Grid.js +6 -13
- package/lib/components/Grid/GridPatterns.stories.d.ts +1 -1
- package/lib/components/Grid/GridPatterns.stories.d.ts.map +1 -1
- package/lib/components/Grid/Row.stories.d.ts +1 -1
- package/lib/components/Icon/ClickableIcon.d.ts +6 -6
- package/lib/components/Icon/ClickableIcon.d.ts.map +1 -1
- package/lib/components/Icon/ClickableIcon.js +1 -1
- package/lib/components/Icon/Icon.d.ts +3 -3
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Icon/Icon.js +1 -3
- package/lib/components/Icon/Icon.stories.d.ts +2 -2
- package/lib/components/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/components/Icon/SemanticIcon.d.ts +2 -3
- package/lib/components/Icon/SemanticIcon.d.ts.map +1 -1
- package/lib/components/InContextAlert/InContextAlert.d.ts +4 -5
- package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -1
- package/lib/components/InContextAlert/InContextAlert.js +8 -6
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts +3 -4
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.d.ts.map +1 -1
- package/lib/components/InContextAlertWithMultipleActions/InContextAlertWithMultipleActions.js +7 -6
- package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +1 -1
- package/lib/components/InfinitePagination/InfinitePagination.js +10 -11
- package/lib/components/InfinitePagination/InfinitePagination.stories.d.ts.map +1 -1
- package/lib/components/InlineDropdown/InlineDropdown.d.ts +3 -4
- package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -1
- package/lib/components/InlineDropdown/InlineDropdown.js +9 -14
- package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts +45 -45
- package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts.map +1 -1
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +5 -6
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -1
- package/lib/components/InlineDropdown/SimpleInlineDropdown.js +2 -11
- package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts +83 -83
- package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts.map +1 -1
- package/lib/components/Input/Input.d.ts +17 -16
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/Input/Input.js +7 -20
- package/lib/components/KPIBox/KPIBox.d.ts +2 -2
- package/lib/components/KPIBox/KPIBox.d.ts.map +1 -1
- package/lib/components/LinearLoader/LinearLoader.d.ts +2 -2
- package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -1
- package/lib/components/LinearLoader/LinearLoader.js +2 -2
- package/lib/components/Link/Link.d.ts +5 -6
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +4 -13
- package/lib/components/Menu/Menu.d.ts +12 -12
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +3 -5
- package/lib/components/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/components/Menu/MenuOptionButton.d.ts +2 -3
- package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -1
- package/lib/components/Menu/MenuOptionButton.js +0 -1
- package/lib/components/Modal/Modal.d.ts +12 -30
- package/lib/components/Modal/Modal.d.ts.map +1 -1
- package/lib/components/Modal/Modal.js +5 -8
- package/lib/components/Notification/Notification.d.ts +6 -7
- package/lib/components/Notification/Notification.d.ts.map +1 -1
- package/lib/components/Notification/Notification.js +7 -4
- package/lib/components/OptionButton/OptionButton.d.ts +6 -7
- package/lib/components/OptionButton/OptionButton.d.ts.map +1 -1
- package/lib/components/OptionButton/OptionButton.js +2 -2
- package/lib/components/OptionButton/OptionButton.stories.d.ts.map +1 -1
- package/lib/components/OptionButton/SimpleOptionButton.d.ts +6 -7
- package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -1
- package/lib/components/OptionButton/SimpleOptionButton.js +1 -7
- package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts +55 -55
- package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts.map +1 -1
- package/lib/components/PageTitle/PageTitle.d.ts +9 -8
- package/lib/components/PageTitle/PageTitle.d.ts.map +1 -1
- package/lib/components/PageTitle/PageTitle.js +15 -10
- package/lib/components/PageTitle/PageTitle.stories.d.ts.map +1 -1
- package/lib/components/Pagination/Pagination.d.ts +10 -12
- package/lib/components/Pagination/Pagination.d.ts.map +1 -1
- package/lib/components/Pagination/Pagination.stories.d.ts +1 -9
- package/lib/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/lib/components/Pagination/PaginationItem.d.ts.map +1 -1
- package/lib/components/Pagination/PaginationItem.js +0 -3
- package/lib/components/Panel/Panel.d.ts +9 -10
- package/lib/components/Panel/Panel.d.ts.map +1 -1
- package/lib/components/Panel/Panel.stories.d.ts.map +1 -1
- package/lib/components/ProgressDonut/ProgressDonut.d.ts +2 -2
- package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -1
- package/lib/components/ProgressDonut/ProgressDonut.js +2 -3
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -1
- package/lib/components/PromptChip/PromptChip.js +6 -5
- package/lib/components/PromptInput/PromptInput.d.ts +7 -7
- package/lib/components/PromptInput/PromptInput.d.ts.map +1 -1
- package/lib/components/PromptInput/PromptInput.js +0 -7
- package/lib/components/RadioButton/RadioButton.d.ts +2 -3
- package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/lib/components/RadioButton/RadioButton.js +1 -2
- package/lib/components/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/components/RadioButton/RadioGroup.d.ts +2 -2
- package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioButton/RadioGroup.js +2 -1
- package/lib/components/RadioButton/RadioGroup.stories.d.ts.map +1 -1
- package/lib/components/RadioTile/RadioTile.d.ts +2 -2
- package/lib/components/RadioTile/RadioTile.d.ts.map +1 -1
- package/lib/components/RadioTile/RadioTile.js +1 -3
- package/lib/components/RadioTile/RadioTile.stories.d.ts.map +1 -1
- package/lib/components/RangeSlider/RangeSlider.d.ts +2 -2
- package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/lib/components/RangeSlider/RangeSlider.js +0 -3
- package/lib/components/Rating/Rating.d.ts +2 -2
- package/lib/components/Rating/Rating.d.ts.map +1 -1
- package/lib/components/ScoreBar/ScoreBar.d.ts +2 -2
- package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.d.ts +2 -3
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/lib/components/Separator/Separator.d.ts +2 -2
- package/lib/components/Separator/Separator.d.ts.map +1 -1
- package/lib/components/Shimmer/Shimmer.d.ts +6 -6
- package/lib/components/Shimmer/Shimmer.d.ts.map +1 -1
- package/lib/components/Shimmer/Shimmer.js +1 -3
- package/lib/components/SideMenuLink/SideMenuLink.d.ts +2 -2
- package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -1
- package/lib/components/SideMenuLink/SideMenuLink.js +3 -9
- package/lib/components/SideMenuLink/SideMenuLink.stories.d.ts.map +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +2 -2
- package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/lib/components/Stepper/Step/Step.d.ts +2 -2
- package/lib/components/Stepper/Step/Step.d.ts.map +1 -1
- package/lib/components/Stepper/Step/Step.js +13 -10
- package/lib/components/Stepper/Step/StepContent.d.ts +2 -2
- package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -1
- package/lib/components/Stepper/Step/StepLabel.d.ts +2 -2
- package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -1
- package/lib/components/Stepper/Stepper.d.ts +2 -2
- package/lib/components/Stepper/Stepper.d.ts.map +1 -1
- package/lib/components/Stepper/Stepper.js +23 -8
- package/lib/components/Stepper/Stepper.stories.d.ts.map +1 -1
- package/lib/components/StickyBar/StickyBar.d.ts +4 -4
- package/lib/components/StickyBar/StickyBar.d.ts.map +1 -1
- package/lib/components/SubMenu/SubMenu.d.ts +2 -2
- package/lib/components/SubMenu/SubMenu.d.ts.map +1 -1
- package/lib/components/SubMenu/SubMenuGroup.d.ts +2 -2
- package/lib/components/SubMenu/SubMenuGroup.d.ts.map +1 -1
- package/lib/components/SubMenu/SubMenuGroup.js +14 -11
- package/lib/components/SubMenu/SubMenuItem.d.ts +8 -8
- package/lib/components/SubMenu/SubMenuItem.d.ts.map +1 -1
- package/lib/components/SubMenu/SubMenuItem.js +16 -24
- package/lib/components/SubMenu/SubMenuLink.d.ts +3 -3
- package/lib/components/SubMenu/SubMenuLink.d.ts.map +1 -1
- package/lib/components/SubMenu/SubMenuLink.js +4 -8
- package/lib/components/Table/BasicTable.stories.d.ts +6 -6
- package/lib/components/Table/BasicTable.stories.d.ts.map +1 -1
- package/lib/components/Table/BulkActions.stories.d.ts.map +1 -1
- package/lib/components/Table/Cell.d.ts +3 -3
- package/lib/components/Table/Cell.d.ts.map +1 -1
- package/lib/components/Table/Cell.js +3 -7
- package/lib/components/Table/DefaultRow.d.ts +4 -4
- package/lib/components/Table/DefaultRow.d.ts.map +1 -1
- package/lib/components/Table/DefaultTableHeader.d.ts +4 -4
- package/lib/components/Table/DefaultTableHeader.d.ts.map +1 -1
- package/lib/components/Table/DefaultTableHeader.js +2 -9
- package/lib/components/Table/InlineEdit.stories.d.ts.map +1 -1
- package/lib/components/Table/StaticTable.d.ts.map +1 -1
- package/lib/components/Table/StaticTable.js +13 -56
- package/lib/components/Table/Table.d.ts +7 -7
- package/lib/components/Table/Table.d.ts.map +1 -1
- package/lib/components/Table/Table.js +2 -24
- package/lib/components/Table/TableActionBar.d.ts +2 -2
- package/lib/components/Table/TableActionBar.d.ts.map +1 -1
- package/lib/components/Table/TableBottomBar.d.ts +2 -2
- package/lib/components/Table/TableBottomBar.d.ts.map +1 -1
- package/lib/components/Table/TableTopBar.d.ts +2 -2
- package/lib/components/Table/TableTopBar.d.ts.map +1 -1
- package/lib/components/Table/hooks.d.ts.map +1 -1
- package/lib/components/Table/hooks.js +4 -12
- package/lib/components/Tabs/Tab/Tab.d.ts +6 -4
- package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -1
- package/lib/components/Tabs/Tab/Tab.js +28 -8
- package/lib/components/Tabs/Tab/Tab.module.css +1 -1
- package/lib/components/Tabs/TabList/TabDropdown.d.ts +2 -2
- package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +1 -1
- package/lib/components/Tabs/TabList/TabDropdown.js +3 -9
- package/lib/components/Tabs/TabList/TabList.d.ts +4 -3
- package/lib/components/Tabs/TabList/TabList.d.ts.map +1 -1
- package/lib/components/Tabs/TabList/TabList.js +40 -50
- package/lib/components/Tabs/TabList/TabList.stories.d.ts +22 -0
- package/lib/components/Tabs/TabList/TabList.stories.d.ts.map +1 -1
- package/lib/components/Text/Text.d.ts +4 -4
- package/lib/components/Text/Text.d.ts.map +1 -1
- package/lib/components/Text/Text.js +0 -1
- package/lib/components/TextTile/TextTile.d.ts +2 -2
- package/lib/components/TextTile/TextTile.d.ts.map +1 -1
- package/lib/components/Textarea/Textarea.d.ts +6 -7
- package/lib/components/Textarea/Textarea.d.ts.map +1 -1
- package/lib/components/Textarea/Textarea.js +7 -17
- package/lib/components/Timeline/Timeline.d.ts +2 -2
- package/lib/components/Timeline/Timeline.d.ts.map +1 -1
- package/lib/components/Timeline/Timeline.js +20 -14
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +2 -2
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -1
- package/lib/components/Timeline/TimelineItem/TimelineItem.js +2 -9
- package/lib/components/Timeline/TimelineItem/TimelineItem.stories.d.ts.map +1 -1
- package/lib/components/Toast/Toast.d.ts +8 -8
- package/lib/components/Toast/Toast.d.ts.map +1 -1
- package/lib/components/Toast/Toast.js +31 -24
- package/lib/components/Toast/ToastContainer.d.ts.map +1 -1
- package/lib/components/Toast/ToastContainer.js +7 -6
- package/lib/components/Toast/ToastManager.d.ts +5 -5
- package/lib/components/Toast/ToastManager.d.ts.map +1 -1
- package/lib/components/Toast/ToastManager.js +1 -2
- package/lib/components/Toggle/Toggle.d.ts +2 -2
- package/lib/components/Toggle/Toggle.d.ts.map +1 -1
- package/lib/components/Toggle/Toggle.js +2 -6
- package/lib/components/Toggle/Toggle.stories.d.ts.map +1 -1
- package/lib/components/TokenListInput/TokenListInput.d.ts +13 -11
- package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -1
- package/lib/components/TokenListInput/TokenListInput.js +24 -38
- package/lib/components/TokenListInput/TokenListInput.stories.d.ts +3 -4
- package/lib/components/TokenListInput/TokenListInput.stories.d.ts.map +1 -1
- package/lib/components/TokenListInput/TokenValueChips.d.ts +4 -4
- package/lib/components/TokenListInput/TokenValueChips.d.ts.map +1 -1
- package/lib/components/TokenListInput/TokenValueChips.js +14 -17
- package/lib/components/Tooltip/Tooltip.d.ts +5 -6
- package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/lib/components/Tooltip/Tooltip.js +10 -9
- package/lib/components/Truncate/Truncate.d.ts +2 -2
- package/lib/components/Truncate/Truncate.d.ts.map +1 -1
- package/lib/components/Truncate/Truncate.js +4 -5
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +3 -3
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -1
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +19 -10
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.d.ts +1 -1
- package/lib/components/Typeahead/SimpleTypeahead.d.ts +5 -6
- package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -1
- package/lib/components/Typeahead/SimpleTypeahead.js +1 -5
- package/lib/components/Typeahead/SimpleTypeahead.stories.d.ts.map +1 -1
- package/lib/components/Typeahead/Typeahead.d.ts +5 -6
- package/lib/components/Typeahead/Typeahead.d.ts.map +1 -1
- package/lib/components/Typeahead/Typeahead.js +14 -11
- package/lib/components/Typeahead/Typeahead.stories.d.ts.map +1 -1
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +4 -4
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -1
- package/lib/components/WeekdayPicker/WeekdayPicker.stories.d.ts.map +1 -1
- package/lib/devtools/DependencyGraph/DependencyGraph.stories.d.ts.map +1 -1
- package/lib/flow-to-typescript-codemod.d.ts +1 -21
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts +2 -2
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts.map +1 -1
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.d.ts.map +1 -1
- package/lib/hooks/useFileUpload/useFileUpload.d.ts +2 -2
- package/lib/hooks/useFileUpload/useFileUpload.d.ts.map +1 -1
- package/lib/hooks/useFileUpload/useFileUpload.stories.d.ts.map +1 -1
- package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts +4 -4
- package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts.map +1 -1
- package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.d.ts.map +1 -1
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +2 -2
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts.map +1 -1
- package/lib/hooks/useInputState/useInputState.d.ts.map +1 -1
- package/lib/hooks/useLockedBody/useLockedBody.d.ts.map +1 -1
- package/lib/hooks/useModal/useModal.d.ts +13 -5
- package/lib/hooks/useModal/useModal.d.ts.map +1 -1
- package/lib/hooks/useToastPortal/useToastPortal.d.ts +2 -2
- package/lib/hooks/useToastPortal/useToastPortal.d.ts.map +1 -1
- package/lib/hooks/useToggle/useToggle.d.ts.map +1 -1
- package/lib/hooks/useWindowSize/useWindowSize.d.ts +2 -2
- package/lib/hooks/useWindowSize/useWindowSize.d.ts.map +1 -1
- package/lib/stories/Border/Border.stories.d.ts.map +1 -1
- package/lib/stories/Color/Color.stories.d.ts.map +1 -1
- package/lib/stories/Elevation/Elevation.stories.d.ts.map +1 -1
- package/lib/stories/Motion/Motion.stories.d.ts.map +1 -1
- package/lib/stories/Opacity/Opacity.stories.d.ts.map +1 -1
- package/lib/stories/Shadow/Shadow.stories.d.ts.map +1 -1
- package/lib/stories/Size/Size.stories.d.ts.map +1 -1
- package/lib/stories/Space/Space.stories.d.ts.map +1 -1
- package/lib/stories/Tokens/index.d.ts.map +1 -1
- package/lib/styles/index.css +2 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/index.d.ts.map +1 -1
- package/lib/styles/index.js +2 -1
- package/lib/styles/variables/_size.css +2 -0
- package/lib/styles/variables/_size.d.ts +1 -0
- package/lib/styles/variables/_size.d.ts.map +1 -1
- package/lib/styles/variables/_size.js +2 -1
- package/lib/types/charts.d.ts +45 -33
- package/lib/types/charts.d.ts.map +1 -1
- package/lib/types/date-range-picker.d.ts +8 -9
- package/lib/types/date-range-picker.d.ts.map +1 -1
- package/lib/types/menu.d.ts +2 -2
- package/lib/types/menu.d.ts.map +1 -1
- package/lib/types/toast.d.ts +9 -10
- package/lib/types/toast.d.ts.map +1 -1
- package/lib/utils/charts/charts.d.ts +1 -1
- package/lib/utils/charts/charts.d.ts.map +1 -1
- package/lib/utils/charts/donutChart.d.ts +2 -2
- package/lib/utils/charts/donutChart.d.ts.map +1 -1
- package/lib/utils/charts/donutChart.js +2 -0
- package/lib/utils/charts/funnelChart.d.ts.map +1 -1
- package/lib/utils/charts/helpers.d.ts +1 -1
- package/lib/utils/charts/helpers.d.ts.map +1 -1
- package/lib/utils/charts/index.d.ts +3 -0
- package/lib/utils/charts/index.d.ts.map +1 -1
- package/lib/utils/charts/index.js +33 -0
- package/lib/utils/charts/sankeyChart.d.ts +9 -0
- package/lib/utils/charts/sankeyChart.d.ts.map +1 -0
- package/lib/utils/charts/sankeyChart.js +50 -0
- package/lib/utils/charts/stackedBarChart.d.ts +3 -0
- package/lib/utils/charts/stackedBarChart.d.ts.map +1 -0
- package/lib/utils/charts/stackedBarChart.js +51 -0
- package/lib/utils/click-away/click-away.d.ts +11 -13
- package/lib/utils/click-away/click-away.d.ts.map +1 -1
- package/lib/utils/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/lib/utils/dom/dom.d.ts +2 -2
- package/lib/utils/dom/dom.d.ts.map +1 -1
- package/lib/utils/helpers/helpers.d.ts.map +1 -1
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts.map +1 -1
- package/lib/utils/merge-refs/merge-refs.d.ts +2 -3
- package/lib/utils/merge-refs/merge-refs.d.ts.map +1 -1
- package/lib/utils/merge-refs/merge-refs.js +13 -7
- package/lib/utils/merge-refs/merge-refs.stories.d.ts.map +1 -1
- package/lib/utils/token-list-input/token-list-input.d.ts +5 -5
- package/lib/utils/token-list-input/token-list-input.d.ts.map +1 -1
- package/lib/utils/tokens/tokens.d.ts +7 -6
- package/lib/utils/tokens/tokens.d.ts.map +1 -1
- package/package.json +18 -10
- package/tsconfig.json +1 -1
|
@@ -308,6 +308,17 @@ export declare const _TextOnly: {
|
|
|
308
308
|
args: {
|
|
309
309
|
menu: MenuProps;
|
|
310
310
|
size: string;
|
|
311
|
+
classNames?: Readonly<{
|
|
312
|
+
wrapper?: string;
|
|
313
|
+
icon?: string;
|
|
314
|
+
text?: string;
|
|
315
|
+
}>;
|
|
316
|
+
iconLeftName?: string;
|
|
317
|
+
iconLeftType?: import("../Icon").IconType;
|
|
318
|
+
iconRightName?: string;
|
|
319
|
+
iconRightType?: import("../Icon").IconType;
|
|
320
|
+
type?: import("../Button").ButtonType;
|
|
321
|
+
isFluid?: boolean;
|
|
311
322
|
className?: string | undefined | undefined;
|
|
312
323
|
ariaLabel?: string | undefined;
|
|
313
324
|
form?: string | undefined | undefined;
|
|
@@ -318,8 +329,11 @@ export declare const _TextOnly: {
|
|
|
318
329
|
disabled?: boolean | undefined;
|
|
319
330
|
slot?: string | undefined | undefined;
|
|
320
331
|
title?: string | undefined | undefined;
|
|
332
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
321
333
|
name?: string | undefined | undefined;
|
|
322
|
-
|
|
334
|
+
actionType?: import("../Button").ButtonActionType | undefined;
|
|
335
|
+
tabIndex?: number | undefined;
|
|
336
|
+
isLoading?: boolean | undefined;
|
|
323
337
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
324
338
|
formEncType?: string | undefined | undefined;
|
|
325
339
|
formMethod?: string | undefined | undefined;
|
|
@@ -343,7 +357,6 @@ export declare const _TextOnly: {
|
|
|
343
357
|
lang?: string | undefined | undefined;
|
|
344
358
|
nonce?: string | undefined | undefined;
|
|
345
359
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
346
|
-
tabIndex?: number | undefined;
|
|
347
360
|
translate?: "yes" | "no" | undefined | undefined;
|
|
348
361
|
radioGroup?: string | undefined | undefined;
|
|
349
362
|
about?: string | undefined | undefined;
|
|
@@ -598,19 +611,6 @@ export declare const _TextOnly: {
|
|
|
598
611
|
onTransitionRunCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
599
612
|
onTransitionStart?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
600
613
|
onTransitionStartCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
601
|
-
actionType?: import("../Button").ButtonActionType | undefined;
|
|
602
|
-
isLoading?: boolean | undefined;
|
|
603
|
-
classNames?: Readonly<{
|
|
604
|
-
wrapper?: string;
|
|
605
|
-
icon?: string;
|
|
606
|
-
text?: string;
|
|
607
|
-
}>;
|
|
608
|
-
iconLeftName?: string;
|
|
609
|
-
iconLeftType?: import("../Icon").IconType;
|
|
610
|
-
iconRightName?: string;
|
|
611
|
-
iconRightType?: import("../Icon").IconType;
|
|
612
|
-
type?: import("../Button").ButtonType;
|
|
613
|
-
isFluid?: boolean;
|
|
614
614
|
};
|
|
615
615
|
};
|
|
616
616
|
export declare const _TextWithTooltip: {
|
|
@@ -656,6 +656,17 @@ export declare const _TextWithTooltip: {
|
|
|
656
656
|
groupTitleOptions?: Array<MenuGroupTitleOption>;
|
|
657
657
|
};
|
|
658
658
|
size: string;
|
|
659
|
+
classNames?: Readonly<{
|
|
660
|
+
wrapper?: string;
|
|
661
|
+
icon?: string;
|
|
662
|
+
text?: string;
|
|
663
|
+
}>;
|
|
664
|
+
iconLeftName?: string;
|
|
665
|
+
iconLeftType?: import("../Icon").IconType;
|
|
666
|
+
iconRightName?: string;
|
|
667
|
+
iconRightType?: import("../Icon").IconType;
|
|
668
|
+
type?: import("../Button").ButtonType;
|
|
669
|
+
isFluid?: boolean;
|
|
659
670
|
className?: string | undefined | undefined;
|
|
660
671
|
ariaLabel?: string | undefined;
|
|
661
672
|
form?: string | undefined | undefined;
|
|
@@ -666,8 +677,11 @@ export declare const _TextWithTooltip: {
|
|
|
666
677
|
disabled?: boolean | undefined;
|
|
667
678
|
slot?: string | undefined | undefined;
|
|
668
679
|
title?: string | undefined | undefined;
|
|
680
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
669
681
|
name?: string | undefined | undefined;
|
|
670
|
-
|
|
682
|
+
actionType?: import("../Button").ButtonActionType | undefined;
|
|
683
|
+
tabIndex?: number | undefined;
|
|
684
|
+
isLoading?: boolean | undefined;
|
|
671
685
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
672
686
|
formEncType?: string | undefined | undefined;
|
|
673
687
|
formMethod?: string | undefined | undefined;
|
|
@@ -691,7 +705,6 @@ export declare const _TextWithTooltip: {
|
|
|
691
705
|
lang?: string | undefined | undefined;
|
|
692
706
|
nonce?: string | undefined | undefined;
|
|
693
707
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
694
|
-
tabIndex?: number | undefined;
|
|
695
708
|
translate?: "yes" | "no" | undefined | undefined;
|
|
696
709
|
radioGroup?: string | undefined | undefined;
|
|
697
710
|
about?: string | undefined | undefined;
|
|
@@ -946,19 +959,6 @@ export declare const _TextWithTooltip: {
|
|
|
946
959
|
onTransitionRunCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
947
960
|
onTransitionStart?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
948
961
|
onTransitionStartCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
949
|
-
actionType?: import("../Button").ButtonActionType | undefined;
|
|
950
|
-
isLoading?: boolean | undefined;
|
|
951
|
-
classNames?: Readonly<{
|
|
952
|
-
wrapper?: string;
|
|
953
|
-
icon?: string;
|
|
954
|
-
text?: string;
|
|
955
|
-
}>;
|
|
956
|
-
iconLeftName?: string;
|
|
957
|
-
iconLeftType?: import("../Icon").IconType;
|
|
958
|
-
iconRightName?: string;
|
|
959
|
-
iconRightType?: import("../Icon").IconType;
|
|
960
|
-
type?: import("../Button").ButtonType;
|
|
961
|
-
isFluid?: boolean;
|
|
962
962
|
};
|
|
963
963
|
};
|
|
964
964
|
export declare const _WithSearch: {
|
|
@@ -1002,6 +1002,17 @@ export declare const _WithSearch: {
|
|
|
1002
1002
|
groupTitleOptions?: Array<MenuGroupTitleOption>;
|
|
1003
1003
|
};
|
|
1004
1004
|
size: string;
|
|
1005
|
+
classNames?: Readonly<{
|
|
1006
|
+
wrapper?: string;
|
|
1007
|
+
icon?: string;
|
|
1008
|
+
text?: string;
|
|
1009
|
+
}>;
|
|
1010
|
+
iconLeftName?: string;
|
|
1011
|
+
iconLeftType?: import("../Icon").IconType;
|
|
1012
|
+
iconRightName?: string;
|
|
1013
|
+
iconRightType?: import("../Icon").IconType;
|
|
1014
|
+
type?: import("../Button").ButtonType;
|
|
1015
|
+
isFluid?: boolean;
|
|
1005
1016
|
className?: string | undefined | undefined;
|
|
1006
1017
|
ariaLabel?: string | undefined;
|
|
1007
1018
|
form?: string | undefined | undefined;
|
|
@@ -1012,8 +1023,11 @@ export declare const _WithSearch: {
|
|
|
1012
1023
|
disabled?: boolean | undefined;
|
|
1013
1024
|
slot?: string | undefined | undefined;
|
|
1014
1025
|
title?: string | undefined | undefined;
|
|
1026
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1015
1027
|
name?: string | undefined | undefined;
|
|
1016
|
-
|
|
1028
|
+
actionType?: import("../Button").ButtonActionType | undefined;
|
|
1029
|
+
tabIndex?: number | undefined;
|
|
1030
|
+
isLoading?: boolean | undefined;
|
|
1017
1031
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
1018
1032
|
formEncType?: string | undefined | undefined;
|
|
1019
1033
|
formMethod?: string | undefined | undefined;
|
|
@@ -1037,7 +1051,6 @@ export declare const _WithSearch: {
|
|
|
1037
1051
|
lang?: string | undefined | undefined;
|
|
1038
1052
|
nonce?: string | undefined | undefined;
|
|
1039
1053
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1040
|
-
tabIndex?: number | undefined;
|
|
1041
1054
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1042
1055
|
radioGroup?: string | undefined | undefined;
|
|
1043
1056
|
about?: string | undefined | undefined;
|
|
@@ -1292,8 +1305,13 @@ export declare const _WithSearch: {
|
|
|
1292
1305
|
onTransitionRunCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1293
1306
|
onTransitionStart?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1294
1307
|
onTransitionStartCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1295
|
-
|
|
1296
|
-
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
export declare const _TextAndIcon: {
|
|
1311
|
+
(args: ButtonDropdownProps): React.JSX.Element;
|
|
1312
|
+
args: {
|
|
1313
|
+
menu: MenuProps;
|
|
1314
|
+
size: string;
|
|
1297
1315
|
classNames?: Readonly<{
|
|
1298
1316
|
wrapper?: string;
|
|
1299
1317
|
icon?: string;
|
|
@@ -1305,13 +1323,6 @@ export declare const _WithSearch: {
|
|
|
1305
1323
|
iconRightType?: import("../Icon").IconType;
|
|
1306
1324
|
type?: import("../Button").ButtonType;
|
|
1307
1325
|
isFluid?: boolean;
|
|
1308
|
-
};
|
|
1309
|
-
};
|
|
1310
|
-
export declare const _TextAndIcon: {
|
|
1311
|
-
(args: ButtonDropdownProps): React.JSX.Element;
|
|
1312
|
-
args: {
|
|
1313
|
-
menu: MenuProps;
|
|
1314
|
-
size: string;
|
|
1315
1326
|
className?: string | undefined | undefined;
|
|
1316
1327
|
ariaLabel?: string | undefined;
|
|
1317
1328
|
form?: string | undefined | undefined;
|
|
@@ -1322,8 +1333,11 @@ export declare const _TextAndIcon: {
|
|
|
1322
1333
|
disabled?: boolean | undefined;
|
|
1323
1334
|
slot?: string | undefined | undefined;
|
|
1324
1335
|
title?: string | undefined | undefined;
|
|
1336
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1325
1337
|
name?: string | undefined | undefined;
|
|
1326
|
-
|
|
1338
|
+
actionType?: import("../Button").ButtonActionType | undefined;
|
|
1339
|
+
tabIndex?: number | undefined;
|
|
1340
|
+
isLoading?: boolean | undefined;
|
|
1327
1341
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
1328
1342
|
formEncType?: string | undefined | undefined;
|
|
1329
1343
|
formMethod?: string | undefined | undefined;
|
|
@@ -1347,7 +1361,6 @@ export declare const _TextAndIcon: {
|
|
|
1347
1361
|
lang?: string | undefined | undefined;
|
|
1348
1362
|
nonce?: string | undefined | undefined;
|
|
1349
1363
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1350
|
-
tabIndex?: number | undefined;
|
|
1351
1364
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1352
1365
|
radioGroup?: string | undefined | undefined;
|
|
1353
1366
|
about?: string | undefined | undefined;
|
|
@@ -1602,8 +1615,16 @@ export declare const _TextAndIcon: {
|
|
|
1602
1615
|
onTransitionRunCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1603
1616
|
onTransitionStart?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1604
1617
|
onTransitionStartCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1605
|
-
|
|
1606
|
-
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
export declare const _IconOnly: {
|
|
1621
|
+
(args: ButtonDropdownProps): React.JSX.Element;
|
|
1622
|
+
args: {
|
|
1623
|
+
menu: MenuProps;
|
|
1624
|
+
size: string;
|
|
1625
|
+
tooltip: {
|
|
1626
|
+
body: string;
|
|
1627
|
+
};
|
|
1607
1628
|
classNames?: Readonly<{
|
|
1608
1629
|
wrapper?: string;
|
|
1609
1630
|
icon?: string;
|
|
@@ -1615,16 +1636,6 @@ export declare const _TextAndIcon: {
|
|
|
1615
1636
|
iconRightType?: import("../Icon").IconType;
|
|
1616
1637
|
type?: import("../Button").ButtonType;
|
|
1617
1638
|
isFluid?: boolean;
|
|
1618
|
-
};
|
|
1619
|
-
};
|
|
1620
|
-
export declare const _IconOnly: {
|
|
1621
|
-
(args: ButtonDropdownProps): React.JSX.Element;
|
|
1622
|
-
args: {
|
|
1623
|
-
menu: MenuProps;
|
|
1624
|
-
size: string;
|
|
1625
|
-
tooltip: {
|
|
1626
|
-
body: string;
|
|
1627
|
-
};
|
|
1628
1639
|
className?: string | undefined | undefined;
|
|
1629
1640
|
ariaLabel?: string | undefined;
|
|
1630
1641
|
form?: string | undefined | undefined;
|
|
@@ -1635,8 +1646,11 @@ export declare const _IconOnly: {
|
|
|
1635
1646
|
disabled?: boolean | undefined;
|
|
1636
1647
|
slot?: string | undefined | undefined;
|
|
1637
1648
|
title?: string | undefined | undefined;
|
|
1649
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
1638
1650
|
name?: string | undefined | undefined;
|
|
1639
|
-
|
|
1651
|
+
actionType?: import("../Button").ButtonActionType | undefined;
|
|
1652
|
+
tabIndex?: number | undefined;
|
|
1653
|
+
isLoading?: boolean | undefined;
|
|
1640
1654
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
1641
1655
|
formEncType?: string | undefined | undefined;
|
|
1642
1656
|
formMethod?: string | undefined | undefined;
|
|
@@ -1660,7 +1674,6 @@ export declare const _IconOnly: {
|
|
|
1660
1674
|
lang?: string | undefined | undefined;
|
|
1661
1675
|
nonce?: string | undefined | undefined;
|
|
1662
1676
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1663
|
-
tabIndex?: number | undefined;
|
|
1664
1677
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1665
1678
|
radioGroup?: string | undefined | undefined;
|
|
1666
1679
|
about?: string | undefined | undefined;
|
|
@@ -1915,19 +1928,6 @@ export declare const _IconOnly: {
|
|
|
1915
1928
|
onTransitionRunCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1916
1929
|
onTransitionStart?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1917
1930
|
onTransitionStartCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1918
|
-
actionType?: import("../Button").ButtonActionType | undefined;
|
|
1919
|
-
isLoading?: boolean | undefined;
|
|
1920
|
-
classNames?: Readonly<{
|
|
1921
|
-
wrapper?: string;
|
|
1922
|
-
icon?: string;
|
|
1923
|
-
text?: string;
|
|
1924
|
-
}>;
|
|
1925
|
-
iconLeftName?: string;
|
|
1926
|
-
iconLeftType?: import("../Icon").IconType;
|
|
1927
|
-
iconRightName?: string;
|
|
1928
|
-
iconRightType?: import("../Icon").IconType;
|
|
1929
|
-
type?: import("../Button").ButtonType;
|
|
1930
|
-
isFluid?: boolean;
|
|
1931
1931
|
};
|
|
1932
1932
|
};
|
|
1933
1933
|
export declare const _DynamicIcon: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonDropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonDropdown/ButtonDropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonDropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonDropdown/ButtonDropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAC,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAKzE,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlD,CAAC;AASF,eAAO,MAAM,YAAY;WAAU,mBAAmB;;;;;;;CAarD,CAAC;AAgBF,eAAO,MAAM,mBAAmB;WAAU,mBAAmB;;;;;;;;;CAY5D,CAAC;AAkBF,eAAO,MAAM,iBAAiB;WAAU,mBAAmB;;;;;;CAuC1D,CAAC;AAeF,eAAO,MAAM,cAAc;WAAU,mBAAmB;;;;;;CAwBvD,CAAC;AAOF,eAAO,MAAM,oBAAoB;WAAU,mBAAmB;;;;;;CAE7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,mBAAmB,sBAoD5D,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Flow } from 'flow-to-typescript-codemod';
|
|
3
3
|
import type { MenuClassNames, MenuLabelTooltip } from '../../types/menu';
|
|
4
|
-
import type { Over } from '../../types/utils';
|
|
5
4
|
import type { ClickAwayRefType } from '../../utils/click-away';
|
|
6
5
|
import type { ButtonProps } from '../Button';
|
|
7
6
|
import type { MenuOption, MenuOptionsVariant, Virtualization } from '../Menu';
|
|
@@ -12,10 +11,10 @@ type ClassNames = Readonly<{
|
|
|
12
11
|
dropdownContainer?: string;
|
|
13
12
|
buttonIcon?: string;
|
|
14
13
|
}>;
|
|
15
|
-
export
|
|
14
|
+
export interface SimpleButtonDropdownRef {
|
|
16
15
|
selectedKeys?: Array<string>;
|
|
17
|
-
}
|
|
18
|
-
export
|
|
16
|
+
}
|
|
17
|
+
export interface SimpleButtonDropdownProps extends Omit<ButtonProps, 'elevation' | 'classNames' | 'anchorPosition' | 'tooltip' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'showLabelTooltip' | 'allowWrap' | 'onOptionSelect' | 'onMenuOpen' | 'onMenuClose' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef'> {
|
|
19
18
|
elevation?: ElevationType;
|
|
20
19
|
classNames?: ClassNames;
|
|
21
20
|
anchorPosition?: AnchorType;
|
|
@@ -35,8 +34,8 @@ export type SimpleButtonDropdownProps = Over<ButtonProps, {
|
|
|
35
34
|
onMenuClose?: () => unknown;
|
|
36
35
|
resolveLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
37
36
|
resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
38
|
-
clickAwayRef?: ClickAwayRefType
|
|
39
|
-
}
|
|
37
|
+
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
38
|
+
}
|
|
40
39
|
export declare const SimpleButtonDropdown: Flow.AbstractComponent<SimpleButtonDropdownProps, SimpleButtonDropdownRef>;
|
|
41
40
|
export {};
|
|
42
41
|
//# sourceMappingURL=SimpleButtonDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleButtonDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonDropdown/SimpleButtonDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"SimpleButtonDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonDropdown/SimpleButtonDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,M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IAC7B,kBAAkB,CAAC,EAAE,cAAc,CAAC;IACpC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,CACf,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChE,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACzE,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CACzD;AA8GD,eAAO,MAAM,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,CACvD,yBAAyB,EACzB,uBAAuB,CAGxB,CAAC"}
|
|
@@ -40,7 +40,6 @@ const SimpleButtonDropdownBase = (props, ref) => {
|
|
|
40
40
|
React.useEffect(() => {
|
|
41
41
|
const newBtnText = (0, _menu.getButtonLabelFromSelectedKeys)(selectedKeys, children);
|
|
42
42
|
setButtonDropdownSelectedKeys(selectedKeys);
|
|
43
|
-
// @ts-ignore - TS2345 - Argument of type 'ReactNode' is not assignable to parameter of type 'SetStateAction<string>'.
|
|
44
43
|
setBtnText(newBtnText);
|
|
45
44
|
}, [selectedKeys]);
|
|
46
45
|
const handleOptionChange = (selectedOption, e) => {
|
|
@@ -53,14 +52,11 @@ const SimpleButtonDropdownBase = (props, ref) => {
|
|
|
53
52
|
}
|
|
54
53
|
const newBtnText = (0, _menu.getButtonLabelFromSelectedKeys)(newSelectedKeys, children);
|
|
55
54
|
setButtonDropdownSelectedKeys(newSelectedKeys);
|
|
56
|
-
// @ts-ignore - TS2345 - Argument of type 'ReactNode' is not assignable to parameter of type 'SetStateAction<string>'.
|
|
57
55
|
setBtnText(newBtnText);
|
|
58
56
|
setTimeout(() => {
|
|
59
57
|
onOptionSelect?.(selectedOption, e);
|
|
60
58
|
});
|
|
61
59
|
};
|
|
62
|
-
|
|
63
|
-
// @ts-ignore - TS2345 - Argument of type '{ current: SimpleButtonDropdownRef | null; } | ((arg1: SimpleButtonDropdownRef | null) => unknown)' is not assignable to parameter of type 'Ref<SimpleButtonDropdownRef> | undefined'.
|
|
64
60
|
React.useImperativeHandle(ref, () => ({
|
|
65
61
|
selectedKeys: buttonDropdownSelectedKeys
|
|
66
62
|
}));
|
|
@@ -92,8 +88,4 @@ const SimpleButtonDropdownBase = (props, ref) => {
|
|
|
92
88
|
}
|
|
93
89
|
}), optionsVariant === 'checkbox' ? btnText : children);
|
|
94
90
|
};
|
|
95
|
-
|
|
96
|
-
// @ts-ignore - TS2345 - Argument of type '(props: SimpleButtonDropdownProps, ref: { current: null | SimpleButtonDropdownRef; } | ((arg1: null | SimpleButtonDropdownRef) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<SimpleButtonDropdownProps, SimpleButtonDropdownRef>'.
|
|
97
|
-
const SimpleButtonDropdown = exports.SimpleButtonDropdown = /*#__PURE__*/React.forwardRef(
|
|
98
|
-
//@ts-expect-error
|
|
99
|
-
SimpleButtonDropdownBase);
|
|
91
|
+
const SimpleButtonDropdown = exports.SimpleButtonDropdown = /*#__PURE__*/React.forwardRef(SimpleButtonDropdownBase);
|