@spaced-out/ui-design-system 0.5.7-beta.0 → 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 +2 -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 +41 -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 +5 -7
- 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 +2 -3
- package/lib/components/Charts/SankeyChart/SankeyChart.d.ts.map +1 -1
- 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/StackedBarChart/StackedBarChart.d.ts +4 -5
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts.map +1 -1
- 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/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 +35 -31
- 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/sankeyChart.d.ts +2 -2
- package/lib/utils/charts/sankeyChart.d.ts.map +1 -1
- 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
|
@@ -35,7 +35,6 @@ const TabDropdown = _ref => {
|
|
|
35
35
|
} = (0, _react2.useFloating)({
|
|
36
36
|
open: true,
|
|
37
37
|
strategy: 'absolute',
|
|
38
|
-
// @ts-ignore - TS2322 - Type 'string' is not assignable to type 'Placement | undefined'.
|
|
39
38
|
placement: anchorPosition,
|
|
40
39
|
whileElementsMounted: _react2.autoUpdate,
|
|
41
40
|
middleware: [(0, _react2.shift)(), (0, _react2.flip)(), (0, _react2.offset)(parseInt(_space.spaceXXSmall))]
|
|
@@ -52,9 +51,7 @@ const TabDropdown = _ref => {
|
|
|
52
51
|
"data-testid": "TabDropdown",
|
|
53
52
|
className: (0, _classify.classify)(_TabDropdownModule.default.tabDropdownContainer, classNames?.wrapper)
|
|
54
53
|
}, /*#__PURE__*/React.createElement(_Tab.Tab, _extends({}, props?.tab, {
|
|
55
|
-
size: size
|
|
56
|
-
// @ts-ignore - TS2322 - Type '((node: ReferenceType | null) => void) & ((node: ReferenceType | null) => void)' is not assignable to type '{ current: HTMLElement | null | undefined; }'.
|
|
57
|
-
,
|
|
54
|
+
size: size,
|
|
58
55
|
ref: (0, _mergeRefs.mergeRefs)([refs.setReference, triggerRef]),
|
|
59
56
|
onClick: e => {
|
|
60
57
|
e.stopPropagation();
|
|
@@ -66,12 +63,9 @@ const TabDropdown = _ref => {
|
|
|
66
63
|
}
|
|
67
64
|
})), isOpen && props?.menu && /*#__PURE__*/React.createElement(_react2.FloatingPortal, null, /*#__PURE__*/React.createElement(_react2.FloatingFocusManager, {
|
|
68
65
|
modal: false,
|
|
69
|
-
context: context
|
|
70
|
-
// @ts-ignore - TS2322 - Type 'MutableRefObject<ReferenceType | null> & MutableRefObject<ReferenceType | null>' is not assignable to type 'number | MutableRefObject<HTMLElement | null> | undefined'.
|
|
71
|
-
,
|
|
66
|
+
context: context,
|
|
72
67
|
initialFocus: refs.reference
|
|
73
68
|
}, /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
// @ts-ignore - TS2322 - Type '((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void)' is not assignable to type '{ current: HTMLElement | null | undefined; }'.
|
|
75
69
|
ref: (0, _mergeRefs.mergeRefs)([refs.setFloating, boundaryRef]),
|
|
76
70
|
className: _TabDropdownModule.default.menuWrapper,
|
|
77
71
|
style: {
|
|
@@ -83,7 +77,7 @@ const TabDropdown = _ref => {
|
|
|
83
77
|
}
|
|
84
78
|
}, /*#__PURE__*/React.createElement(_Menu.Menu, _extends({}, props.menu, {
|
|
85
79
|
onSelect: (option, e) => {
|
|
86
|
-
onOptionSelect
|
|
80
|
+
onOptionSelect?.(option, e);
|
|
87
81
|
clickAway();
|
|
88
82
|
},
|
|
89
83
|
size: props.menu.size || size,
|
|
@@ -4,21 +4,22 @@ import type { ElevationType } from '../../Tooltip';
|
|
|
4
4
|
type ClassNames = Readonly<{
|
|
5
5
|
wrapper?: string;
|
|
6
6
|
}>;
|
|
7
|
-
export
|
|
7
|
+
export interface TabListProps {
|
|
8
8
|
classNames?: ClassNames;
|
|
9
9
|
onSelect?: (arg1: {
|
|
10
10
|
tabId: string;
|
|
11
11
|
label?: string;
|
|
12
12
|
}) => unknown;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
-
size?: 'medium';
|
|
14
|
+
size?: 'medium' | 'small';
|
|
15
15
|
selectedTab?: {
|
|
16
16
|
tabId: string;
|
|
17
17
|
label?: string;
|
|
18
18
|
};
|
|
19
19
|
menuWidth?: string;
|
|
20
20
|
elevation?: ElevationType;
|
|
21
|
-
|
|
21
|
+
maxTabWidth?: string;
|
|
22
|
+
}
|
|
22
23
|
export declare const TabList: Flow.AbstractComponent<TabListProps, HTMLDivElement>;
|
|
23
24
|
export {};
|
|
24
25
|
//# sourceMappingURL=TabList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAQrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAwBjD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,KAAK,OAAO,CAAC;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAkJtE,CAAC"}
|
|
@@ -13,6 +13,8 @@ var _TabDropdown = require("./TabDropdown");
|
|
|
13
13
|
var _TabListModule = _interopRequireDefault(require("./TabList.module.css"));
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
|
+
// Type definitions for tab child props
|
|
17
|
+
|
|
16
18
|
const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRef) => {
|
|
17
19
|
let {
|
|
18
20
|
classNames,
|
|
@@ -21,10 +23,10 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
21
23
|
onSelect,
|
|
22
24
|
selectedTab,
|
|
23
25
|
menuWidth,
|
|
24
|
-
elevation = 'modal'
|
|
26
|
+
elevation = 'modal',
|
|
27
|
+
maxTabWidth = _size.size120
|
|
25
28
|
} = _ref;
|
|
26
29
|
const ref = React.useRef(null);
|
|
27
|
-
// @ts-ignore - TS2322 - Type 'null' is not assignable to type 'HTMLDivElement'.
|
|
28
30
|
React.useImperativeHandle(forwardRef, () => ref.current);
|
|
29
31
|
const {
|
|
30
32
|
width
|
|
@@ -34,55 +36,49 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
34
36
|
const childrenArray = React.Children.toArray(children);
|
|
35
37
|
const totalChildCount = childrenArray.length;
|
|
36
38
|
let tabListWidth = 0;
|
|
37
|
-
// @ts-ignore
|
|
38
39
|
const menuOptions = [];
|
|
39
40
|
let nodes = [];
|
|
40
41
|
const tabListNodes = [];
|
|
41
42
|
for (let i = 0; i < totalChildCount; i++) {
|
|
42
43
|
const child = childrenArray[i];
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
disabled,
|
|
48
|
-
iconName,
|
|
49
|
-
iconType
|
|
50
|
-
// @ts-ignore - TS2339 - Property 'props' does not exist on type 'string | number | bigint | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>'.
|
|
51
|
-
} = child.props;
|
|
52
|
-
const widthInt = parseInt(width);
|
|
53
|
-
tabListWidth = tabListWidth + widthInt;
|
|
54
|
-
if (tabListWidth < containerWidth || i === 0) {
|
|
55
|
-
const childOnSelect = params => {
|
|
56
|
-
onSelect && onSelect(params); // call the tab level onSelect
|
|
57
|
-
};
|
|
58
|
-
tabListNodes.push(
|
|
59
|
-
/*#__PURE__*/
|
|
60
|
-
// @ts-ignore - TS2769 - No overload matches this call.
|
|
61
|
-
React.cloneElement(child, {
|
|
62
|
-
size,
|
|
63
|
-
onSelect: childOnSelect,
|
|
64
|
-
selectedTab
|
|
65
|
-
}));
|
|
66
|
-
} else {
|
|
67
|
-
menuOptions.push({
|
|
68
|
-
key: tabId,
|
|
44
|
+
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
45
|
+
const {
|
|
46
|
+
maxWidth: maxWidthChild,
|
|
47
|
+
tabId,
|
|
69
48
|
label,
|
|
70
49
|
disabled,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
50
|
+
iconName,
|
|
51
|
+
iconType
|
|
52
|
+
} = child.props;
|
|
53
|
+
const effectiveMaxWidth = maxWidthChild || maxTabWidth;
|
|
54
|
+
const widthInt = parseInt(effectiveMaxWidth);
|
|
55
|
+
tabListWidth = tabListWidth + widthInt;
|
|
56
|
+
if (tabListWidth < containerWidth || i === 0) {
|
|
57
|
+
const childOnSelect = params => {
|
|
58
|
+
onSelect?.(params); // call the tab level onSelect
|
|
59
|
+
};
|
|
60
|
+
tabListNodes.push(/*#__PURE__*/React.cloneElement(child, {
|
|
61
|
+
size,
|
|
62
|
+
onSelect: childOnSelect,
|
|
63
|
+
selectedTab,
|
|
64
|
+
maxWidth: effectiveMaxWidth,
|
|
65
|
+
elevation
|
|
66
|
+
}));
|
|
67
|
+
} else {
|
|
68
|
+
menuOptions.push({
|
|
69
|
+
key: tabId,
|
|
70
|
+
label,
|
|
71
|
+
disabled,
|
|
72
|
+
iconLeft: iconName,
|
|
73
|
+
iconLeftType: iconType
|
|
74
|
+
});
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
key,
|
|
81
|
-
label
|
|
82
|
-
} = _ref2;
|
|
83
|
-
onSelect && onSelect({
|
|
84
|
-
tabId: key,
|
|
85
|
-
label
|
|
78
|
+
const menuOnSelect = option => {
|
|
79
|
+
onSelect?.({
|
|
80
|
+
tabId: option.key,
|
|
81
|
+
label: option.label
|
|
86
82
|
});
|
|
87
83
|
};
|
|
88
84
|
const selectedKeys = [selectedTab?.tabId || ''];
|
|
@@ -96,9 +92,7 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
96
92
|
})();
|
|
97
93
|
const tabDropDownNode = menuOptions.length ? /*#__PURE__*/React.createElement(_TabDropdown.TabDropdown, {
|
|
98
94
|
key: 'tabDropdown' + menuOptions.length,
|
|
99
|
-
size: size
|
|
100
|
-
// @ts-ignore - TS2322 - Type '({ key, label }: { key: any; label: any; }) => void' is not assignable to type '(option: MenuOption, arg2?: SyntheticEvent<HTMLElement, Event> | null | undefined) => unknown'.
|
|
101
|
-
,
|
|
95
|
+
size: size,
|
|
102
96
|
onOptionSelect: menuOnSelect,
|
|
103
97
|
props: {
|
|
104
98
|
tab: {
|
|
@@ -122,11 +116,8 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
122
116
|
return nodes;
|
|
123
117
|
};
|
|
124
118
|
React.useLayoutEffect(() => {
|
|
125
|
-
// @ts-ignore - TS2339 - Property 'offsetWidth' does not exist on type 'never'.
|
|
126
119
|
if (ref.current && ref.current.offsetWidth) {
|
|
127
|
-
const availableContainerWidth =
|
|
128
|
-
// @ts-ignore - TS2339 - Property 'offsetWidth' does not exist on type 'never'.
|
|
129
|
-
ref.current.offsetWidth - (parseInt(_size.size36) + parseInt(_space.spaceMedium));
|
|
120
|
+
const availableContainerWidth = ref.current.offsetWidth - (parseInt(_size.size36) + parseInt(_space.spaceMedium));
|
|
130
121
|
setContainerWidth(availableContainerWidth);
|
|
131
122
|
}
|
|
132
123
|
// it depends on width of the screen as ref.current.offsetWidth will not provide the events when changed.
|
|
@@ -136,7 +127,6 @@ const TabList = exports.TabList = /*#__PURE__*/React.forwardRef((_ref, forwardRe
|
|
|
136
127
|
"data-testid": "Tabs",
|
|
137
128
|
className: (0, _classify.classify)(_TabListModule.default.tabsContainer, {
|
|
138
129
|
[_TabListModule.default.mediumSize]: size === 'medium',
|
|
139
|
-
// @ts-ignore - TS2367 - This condition will always return 'false' since the types '"medium" | undefined' and '"small"' have no overlap.
|
|
140
130
|
[_TabListModule.default.smallSize]: size === 'small'
|
|
141
131
|
}, classNames?.wrapper)
|
|
142
132
|
}, containerWidth ? childrenWithProps() : null);
|
|
@@ -84,6 +84,17 @@ declare const _default: {
|
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
+
maxTabWidth: {
|
|
88
|
+
description: string;
|
|
89
|
+
control: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
table: {
|
|
93
|
+
type: {
|
|
94
|
+
summary: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
87
98
|
};
|
|
88
99
|
parameters: {
|
|
89
100
|
docs: {
|
|
@@ -108,4 +119,15 @@ export declare const _Tabs: {
|
|
|
108
119
|
};
|
|
109
120
|
};
|
|
110
121
|
};
|
|
122
|
+
export declare const TabsWithMaxWidth: {
|
|
123
|
+
(args: TabListProps): React.JSX.Element;
|
|
124
|
+
args: {
|
|
125
|
+
size: string;
|
|
126
|
+
maxTabWidth: string;
|
|
127
|
+
selectedTab: {
|
|
128
|
+
tabId: string;
|
|
129
|
+
label: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
111
133
|
//# sourceMappingURL=TabList.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TabList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/TabList/TabList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOrC,wBAqGE;AAEF,eAAO,MAAM,KAAK;WAAU,YAAY;;;;;;;;CAwDvC,CAAC;AAOF,eAAO,MAAM,gBAAgB;WAAU,YAAY;;;;;;;;;CAgDlD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Flow } from 'flow-to-typescript-codemod';
|
|
3
3
|
import type { ColorTypes } from '../../types/typography';
|
|
4
|
-
export
|
|
4
|
+
export interface TextProps {
|
|
5
5
|
color?: ColorTypes;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
@@ -9,14 +9,14 @@ export type TextProps = {
|
|
|
9
9
|
highlightString?: string | string[];
|
|
10
10
|
caseSensitiveHighlighting?: boolean;
|
|
11
11
|
highlightWithBackground?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export
|
|
12
|
+
}
|
|
13
|
+
export interface HighlightTextProps {
|
|
14
14
|
text: string;
|
|
15
15
|
highlight: string | string[];
|
|
16
16
|
highlightClassName?: string;
|
|
17
17
|
caseSensitiveHighlighting?: boolean;
|
|
18
18
|
highlightWithBackground?: boolean;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
export declare const JumboLarge: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
|
|
21
21
|
export declare const JumboMedium: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
|
|
22
22
|
export declare const JumboSmall: Flow.AbstractComponent<TextProps, HTMLSpanElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAQvD,MAAM,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK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AAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAChD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAChD,SAAS,EACT,oBAAoB,CAiCrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,IAAI,CAAC,iBAAiB,CAClD,SAAS,EACT,eAAe,CAiChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,SAAS,EACT,eAAe,CAiChB,CAAC"}
|
|
@@ -22,7 +22,6 @@ const HighlightText = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
22
22
|
} = _ref;
|
|
23
23
|
// Split text on highlight term, include term itself into parts, ignore case
|
|
24
24
|
// Convert highlight to an array if it's not already
|
|
25
|
-
// @ts-ignore - TS2769 - No overload matches this call.
|
|
26
25
|
const highlightArray = [].concat(highlight).filter(item => item !== '');
|
|
27
26
|
const highlights = highlightArray.map(_string.escapeRegExp).join('|');
|
|
28
27
|
const parts = text.split(new RegExp(`(${highlights})`, caseSensitiveHighlighting ? '' : 'gi')).filter(part => part !== '');
|
|
@@ -5,12 +5,12 @@ type ClassNames = Readonly<{
|
|
|
5
5
|
title?: string;
|
|
6
6
|
wrapper?: string;
|
|
7
7
|
}>;
|
|
8
|
-
export
|
|
8
|
+
export interface TextTileProps {
|
|
9
9
|
header?: React.ReactNode;
|
|
10
10
|
iconName?: string;
|
|
11
11
|
classNames?: ClassNames;
|
|
12
12
|
description?: React.ReactNode;
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
14
|
export declare const TextTile: Flow.AbstractComponent<TextTileProps, HTMLDivElement>;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=TextTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AASrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,
|
|
1
|
+
{"version":3,"file":"TextTile.d.ts","sourceRoot":"","sources":["../../../src/components/TextTile/TextTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AASrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CA+BxE,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Flow } from 'flow-to-typescript-codemod';
|
|
3
|
-
import type { Over } from '../../types/utils';
|
|
4
3
|
type ClassNames = Readonly<{
|
|
5
4
|
box?: string;
|
|
6
5
|
textarea?: string;
|
|
7
6
|
}>;
|
|
8
|
-
export
|
|
7
|
+
export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'name' | 'disabled' | 'placeholder' | 'locked' | 'error' | 'errorText' | 'label' | 'helperText' | 'classNames' | 'size' | 'required' | 'textCountLimit'> {
|
|
9
8
|
value?: string;
|
|
10
|
-
onChange?: (evt: React.ChangeEvent<
|
|
11
|
-
onFocus?: (e: React.
|
|
12
|
-
onBlur?: (e: React.
|
|
13
|
-
onKeyDown?: (e: React.KeyboardEvent<
|
|
9
|
+
onChange?: (evt: React.ChangeEvent<HTMLTextAreaElement>, isEnter?: boolean) => unknown;
|
|
10
|
+
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => unknown;
|
|
11
|
+
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => unknown;
|
|
12
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => unknown;
|
|
14
13
|
name?: string;
|
|
15
14
|
disabled?: boolean;
|
|
16
15
|
placeholder?: string;
|
|
@@ -23,7 +22,7 @@ export type TextareaProps = Over<React.TextareaHTMLAttributes<HTMLTextAreaElemen
|
|
|
23
22
|
size?: 'medium' | 'small';
|
|
24
23
|
required?: boolean;
|
|
25
24
|
textCountLimit?: number;
|
|
26
|
-
}
|
|
25
|
+
}
|
|
27
26
|
export declare const Textarea: Flow.AbstractComponent<TextareaProps, HTMLTextAreaElement>;
|
|
28
27
|
export {};
|
|
29
28
|
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC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AM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA4GD,eAAO,MAAM,QAAQ,EAEhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -17,6 +17,7 @@ const Textarea_ = (props, ref) => {
|
|
|
17
17
|
onChange,
|
|
18
18
|
onFocus,
|
|
19
19
|
onBlur,
|
|
20
|
+
onKeyDown,
|
|
20
21
|
name,
|
|
21
22
|
disabled,
|
|
22
23
|
placeholder,
|
|
@@ -66,21 +67,14 @@ const Textarea_ = (props, ref) => {
|
|
|
66
67
|
}, classNames?.box)
|
|
67
68
|
}, /*#__PURE__*/React.createElement("textarea", _extends({}, textareaProps, {
|
|
68
69
|
disabled: locked || disabled,
|
|
69
|
-
name: name
|
|
70
|
-
// @ts-ignore - TS2322 - Type '{ current: HTMLTextAreaElement | null; } | ((arg1: HTMLTextAreaElement | null) => unknown)' is not assignable to type 'Ref<HTMLTextAreaElement> | undefined'.
|
|
71
|
-
,
|
|
70
|
+
name: name,
|
|
72
71
|
ref: ref,
|
|
73
72
|
placeholder: placeholder,
|
|
74
|
-
value: value
|
|
75
|
-
|
|
76
|
-
,
|
|
77
|
-
onChange: onChange
|
|
78
|
-
// @ts-ignore - TS2322 - Type '((e: ChangeEvent<HTMLInputElement>) => unknown) | undefined' is not assignable to type 'FocusEventHandler<HTMLTextAreaElement> | undefined'.
|
|
79
|
-
,
|
|
80
|
-
onFocus: onFocus
|
|
81
|
-
// @ts-ignore - TS2322 - Type '((e: ChangeEvent<HTMLInputElement>) => unknown) | undefined' is not assignable to type 'FocusEventHandler<HTMLTextAreaElement> | undefined'.
|
|
82
|
-
,
|
|
73
|
+
value: value,
|
|
74
|
+
onChange: onChange,
|
|
75
|
+
onFocus: onFocus,
|
|
83
76
|
onBlur: onBlur,
|
|
77
|
+
onKeyDown: onKeyDown,
|
|
84
78
|
className: classNames?.textarea
|
|
85
79
|
}))), (Boolean(helperText) || error) && /*#__PURE__*/React.createElement("div", {
|
|
86
80
|
className: _TextareaModule.default.info
|
|
@@ -88,8 +82,4 @@ const Textarea_ = (props, ref) => {
|
|
|
88
82
|
color: error && errorText ? 'danger' : disabled ? 'disabled' : 'secondary'
|
|
89
83
|
}, error && errorText ? errorText : helperText ?? '')));
|
|
90
84
|
};
|
|
91
|
-
|
|
92
|
-
// @ts-ignore - TS2345 - Argument of type '(props: TextareaProps, ref: { current: null | HTMLTextAreaElement; } | ((arg1: null | HTMLTextAreaElement) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<HTMLTextAreaElement, TextareaProps>'.
|
|
93
|
-
const Textarea = exports.Textarea = /*#__PURE__*/React.forwardRef(
|
|
94
|
-
//@ts-expect-error
|
|
95
|
-
Textarea_);
|
|
85
|
+
const Textarea = exports.Textarea = /*#__PURE__*/React.forwardRef(Textarea_);
|
|
@@ -8,11 +8,11 @@ type ClassNames = Readonly<{
|
|
|
8
8
|
wrapper?: string;
|
|
9
9
|
}>;
|
|
10
10
|
export type Orientation = (typeof ORIENTATION)[keyof typeof ORIENTATION];
|
|
11
|
-
export
|
|
11
|
+
export interface TimelineProps {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
classNames?: ClassNames;
|
|
14
14
|
orientation?: Orientation;
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
16
|
export declare const Timeline: Flow.AbstractComponent<TimelineProps, HTMLDivElement>;
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAOrD,eAAO,MAAM,WAAW;;;EAGtB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAOrD,eAAO,MAAM,WAAW;;;EAGtB,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAWzE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAkCD,eAAO,MAAM,QAAQ,EAEhB,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -13,6 +13,11 @@ const ORIENTATION = exports.ORIENTATION = Object.freeze({
|
|
|
13
13
|
left: 'left',
|
|
14
14
|
right: 'right'
|
|
15
15
|
});
|
|
16
|
+
|
|
17
|
+
// Define the expected props for timeline item elements
|
|
18
|
+
|
|
19
|
+
// Type for a timeline item element that can be cloned
|
|
20
|
+
|
|
16
21
|
const Timeline_ = (_ref, ref) => {
|
|
17
22
|
let {
|
|
18
23
|
classNames,
|
|
@@ -20,23 +25,24 @@ const Timeline_ = (_ref, ref) => {
|
|
|
20
25
|
children
|
|
21
26
|
} = _ref;
|
|
22
27
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
23
|
-
const timelineItems = childrenArray.map(timelineItem =>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const timelineItems = childrenArray.map(timelineItem => {
|
|
29
|
+
// Type guard to ensure timelineItem is a ReactElement
|
|
30
|
+
if (! /*#__PURE__*/React.isValidElement(timelineItem)) {
|
|
31
|
+
return timelineItem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Cast to our typed timeline item element
|
|
35
|
+
const timelineItemElement = timelineItem;
|
|
36
|
+
const timelineItemProps = timelineItemElement.props;
|
|
37
|
+
return /*#__PURE__*/React.cloneElement(timelineItemElement, {
|
|
38
|
+
...timelineItemProps,
|
|
39
|
+
orientation
|
|
40
|
+
});
|
|
41
|
+
});
|
|
31
42
|
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
// @ts-ignore - TS2322 - Type '{ current: HTMLDivElement | null; } | ((arg1: HTMLDivElement | null) => unknown)' is not assignable to type 'Ref<HTMLDivElement> | undefined'.
|
|
33
43
|
ref: ref,
|
|
34
44
|
className: (0, _classify.classify)(_TimelineModule.default.timelineWrapper, classNames?.wrapper),
|
|
35
45
|
"data-testid": "Timeline"
|
|
36
46
|
}, timelineItems);
|
|
37
47
|
};
|
|
38
|
-
|
|
39
|
-
// @ts-ignore - TS2345 - Argument of type '({ classNames, orientation, children, }: TimelineProps, ref: { current: null | HTMLDivElement; } | ((arg1: null | HTMLDivElement) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<HTMLDivElement, TimelineProps>'.
|
|
40
|
-
const Timeline = exports.Timeline = /*#__PURE__*/React.forwardRef(
|
|
41
|
-
//@ts-expect-error
|
|
42
|
-
Timeline_);
|
|
48
|
+
const Timeline = exports.Timeline = /*#__PURE__*/React.forwardRef(Timeline_);
|
|
@@ -10,7 +10,7 @@ type ClassNames = Readonly<{
|
|
|
10
10
|
wrapper?: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
}>;
|
|
13
|
-
export
|
|
13
|
+
export interface TimelineItemProps {
|
|
14
14
|
id?: string;
|
|
15
15
|
title?: React.ReactNode;
|
|
16
16
|
iconName: string;
|
|
@@ -22,7 +22,7 @@ export type TimelineItemProps = {
|
|
|
22
22
|
orientation?: Orientation;
|
|
23
23
|
parentComponent?: React.ReactNode;
|
|
24
24
|
enableCardWrapper?: boolean;
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
26
|
export declare const TimelineItem: Flow.AbstractComponent<TimelineItemProps, HTMLDivElement>;
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=TimelineItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AAK1D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEzC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAM7C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,W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AAC"}
|
|
@@ -19,7 +19,6 @@ const TimelineItem_ = (_ref, ref) => {
|
|
|
19
19
|
id,
|
|
20
20
|
title,
|
|
21
21
|
iconName,
|
|
22
|
-
// @ts-ignore - TS2322 - Type 'string' is not assignable to type '"regular" | "solid" | "duotone" | "brands"'.
|
|
23
22
|
iconType = _Icon.ICON_TYPE.solid,
|
|
24
23
|
children,
|
|
25
24
|
iconColor = _typography.TEXT_COLORS.information,
|
|
@@ -36,9 +35,7 @@ const TimelineItem_ = (_ref, ref) => {
|
|
|
36
35
|
className: (0, _classify.classify)(_TimelineModule.default.timelineItemWrapper, classNames?.wrapper),
|
|
37
36
|
style: {
|
|
38
37
|
'--align': orientation === 'left' ? 'flex-start' : 'flex-end'
|
|
39
|
-
}
|
|
40
|
-
// @ts-ignore - TS2322 - Type '{ current: HTMLDivElement | null; } | ((arg1: HTMLDivElement | null) => unknown)' is not assignable to type 'Ref<HTMLDivElement> | undefined'.
|
|
41
|
-
,
|
|
38
|
+
},
|
|
42
39
|
ref: ref
|
|
43
40
|
}, parentComponent, /*#__PURE__*/React.createElement("div", {
|
|
44
41
|
style: {
|
|
@@ -76,8 +73,4 @@ const TimelineItem_ = (_ref, ref) => {
|
|
|
76
73
|
}, children)
|
|
77
74
|
}, children))));
|
|
78
75
|
};
|
|
79
|
-
|
|
80
|
-
// @ts-ignore - TS2345 - Argument of type '({ id, title, iconName, iconType, children, iconColor, classNames, description, orientation, parentComponent, enableCardWrapper, }: TimelineItemProps, ref: { current: null | HTMLDivElement; } | ((arg1: null | HTMLDivElement) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<HTMLDivElement, TimelineItemProps>'.
|
|
81
|
-
const TimelineItem = exports.TimelineItem = /*#__PURE__*/React.forwardRef(
|
|
82
|
-
//@ts-expect-error
|
|
83
|
-
TimelineItem_);
|
|
76
|
+
const TimelineItem = exports.TimelineItem = /*#__PURE__*/React.forwardRef(TimelineItem_);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineItem.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAStD,wBAwIE;AAEF,eAAO,MAAM,QAAQ;WAAU,iBAAiB;;;;;;;CAS/C,CAAC;AASF,eAAO,MAAM,oBAAoB;WAAU,iBAAiB;;;;;;;
|
|
1
|
+
{"version":3,"file":"TimelineItem.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/TimelineItem/TimelineItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAStD,wBAwIE;AAEF,eAAO,MAAM,QAAQ;WAAU,iBAAiB;;;;;;;CAS/C,CAAC;AASF,eAAO,MAAM,oBAAoB;WAAU,iBAAiB;;;;;;;CAoC3D,CAAC"}
|
|
@@ -12,7 +12,7 @@ export declare const TOAST_SEMANTIC: Readonly<{
|
|
|
12
12
|
primary: "primary";
|
|
13
13
|
}>;
|
|
14
14
|
export type ToastSemanticType = (typeof TOAST_SEMANTIC)[keyof typeof TOAST_SEMANTIC];
|
|
15
|
-
export
|
|
15
|
+
export interface ToastProps {
|
|
16
16
|
classNames?: ClassNames;
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
time?: string;
|
|
@@ -21,22 +21,22 @@ export type ToastProps = {
|
|
|
21
21
|
initialFocus?: number;
|
|
22
22
|
customIcon?: React.ReactNode;
|
|
23
23
|
hideCloseIcon?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export
|
|
24
|
+
}
|
|
25
|
+
export interface ToastTitleProps {
|
|
26
26
|
children?: React.ReactNode;
|
|
27
27
|
className?: string;
|
|
28
28
|
semantic?: ToastSemanticType;
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
export declare const ToastTitle: Flow.AbstractComponent<ToastTitleProps, HTMLDivElement>;
|
|
31
|
-
export
|
|
31
|
+
export interface ToastBodyProps {
|
|
32
32
|
children?: React.ReactNode;
|
|
33
33
|
className?: string;
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
35
|
export declare const ToastBody: Flow.AbstractComponent<ToastBodyProps, HTMLDivElement>;
|
|
36
|
-
export
|
|
36
|
+
export interface ToastFooterProps {
|
|
37
37
|
children?: React.ReactNode;
|
|
38
38
|
onClose?: () => void;
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
40
|
export declare const ToastFooter: {
|
|
41
41
|
({ children, onClose }: ToastFooterProps): React.JSX.Element | null;
|
|
42
42
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAUrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAA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