@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Flow } from 'flow-to-typescript-codemod';
|
|
2
2
|
import type { DateRange, DateRangeWithTimezone } from '../../types';
|
|
3
3
|
import { MARKERS, NAVIGATION_ACTION } from '../../utils';
|
|
4
|
-
|
|
4
|
+
interface DateRangeWrapperProps {
|
|
5
5
|
dateRange: DateRange;
|
|
6
6
|
hoverDay: string;
|
|
7
7
|
minDate: string;
|
|
@@ -27,7 +27,7 @@ type DateRangeWrapperProps = {
|
|
|
27
27
|
endDateLabel?: string;
|
|
28
28
|
t?: ((key: string, fallback: string) => string) | null | undefined;
|
|
29
29
|
locale?: string;
|
|
30
|
-
}
|
|
30
|
+
}
|
|
31
31
|
export declare const DateRangeWrapper: Flow.AbstractComponent<DateRangeWrapperProps, HTMLDivElement>;
|
|
32
32
|
export {};
|
|
33
33
|
//# sourceMappingURL=DateRangeWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangeWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/DateRangePicker/DateRangeWrapper.tsx"],"names":[],"mappings":"AACA,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C;QAClC,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,eAAe,EAAE,CACf,MAAM,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,EAC9C,MAAM,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,KAC/D,IAAI,CAAC;KACX,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAyFD,eAAO,MAAM,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,CACnD,qBAAqB,EACrB,cAAc,CA8Mf,CAAC"}
|
|
@@ -70,8 +70,7 @@ const CalendarHeader = _ref => {
|
|
|
70
70
|
options: availableMonths
|
|
71
71
|
},
|
|
72
72
|
onChange: event => {
|
|
73
|
-
|
|
74
|
-
setMonth((0, _utils.getMonthEndDate)(_moment.default.utc(date).set('M', event.key)));
|
|
73
|
+
setMonth((0, _utils.getMonthEndDate)(_moment.default.utc(date).set('M', Number(event.key))));
|
|
75
74
|
},
|
|
76
75
|
dropdownInputText: MONTHS[_moment.default.utc(date).month()].label,
|
|
77
76
|
scrollMenuToBottom: true
|
|
@@ -83,12 +82,9 @@ const CalendarHeader = _ref => {
|
|
|
83
82
|
},
|
|
84
83
|
size: "small",
|
|
85
84
|
onChange: event => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// @ts-ignore - TS2322 - Type 'number' is not assignable to type 'string'.
|
|
90
|
-
,
|
|
91
|
-
dropdownInputText: _moment.default.utc(date).year(),
|
|
85
|
+
setMonth((0, _utils.getMonthEndDate)(_moment.default.utc(date).set('y', Number(event.key))));
|
|
86
|
+
},
|
|
87
|
+
dropdownInputText: _moment.default.utc(date).year().toString(),
|
|
92
88
|
scrollMenuToBottom: true
|
|
93
89
|
}), /*#__PURE__*/React.createElement(_Icon.ClickableIcon, {
|
|
94
90
|
size: "small",
|
|
@@ -227,16 +223,12 @@ const DateRangeWrapper = exports.DateRangeWrapper = /*#__PURE__*/React.forwardRe
|
|
|
227
223
|
RESULT: (0, _dateRangePicker.getTranslation)(t, 'result'),
|
|
228
224
|
RESULTS: (0, _dateRangePicker.getTranslation)(t, 'results')
|
|
229
225
|
}
|
|
230
|
-
}
|
|
231
|
-
// @ts-ignore - TS7053 - Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ readonly 'Pacific/Niue': "(GMT-11:00) Niue"; readonly 'Pacific/Pago_Pago': "(GMT-11:00) Pago Pago"; readonly 'Pacific/Honolulu': "(GMT-10:00) Hawaii Time"; readonly 'Pacific/Rarotonga': "(GMT-10:00) Rarotonga"; ... 247 more ...; readonly 'Pacific/Kiritimati': "(GMT+14:00) Kiritimati"; }'.
|
|
232
|
-
,
|
|
226
|
+
},
|
|
233
227
|
dropdownInputText: (0, _dateRangePicker.getTranslation)(t, _dateRangePicker.TIMEZONES[timezone]),
|
|
234
228
|
disabled: (0, _dateRangePicker.isAfter)(minDate, maxDate),
|
|
235
229
|
classNames: {
|
|
236
230
|
box: _DateRangeWrapperModule.default.timezoneDropdown
|
|
237
|
-
}
|
|
238
|
-
// @ts-ignore - TS2339 - Property 'key' does not exist on type 'ChangeEvent<HTMLInputElement> | MenuOption'.
|
|
239
|
-
,
|
|
231
|
+
},
|
|
240
232
|
onChange: event => setTimezone(event.key),
|
|
241
233
|
size: "small"
|
|
242
234
|
})), /*#__PURE__*/React.createElement(_Card.CardActions, null, /*#__PURE__*/React.createElement(_Button.Button, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
interface DayProps {
|
|
3
3
|
date: string;
|
|
4
4
|
value: string;
|
|
5
5
|
filled: boolean;
|
|
@@ -11,7 +11,7 @@ type DayProps = {
|
|
|
11
11
|
startOfRange: boolean;
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
onHover: () => void;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
export declare const Day: ({ date, value, filled, onHover, onClick, disabled, hoverDay, outlined, endOfRange, highlighted, startOfRange, }: DayProps) => React.JSX.Element;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=Day.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Day.d.ts","sourceRoot":"","sources":["../../../src/components/DateRangePicker/Day.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,
|
|
1
|
+
{"version":3,"file":"Day.d.ts","sourceRoot":"","sources":["../../../src/components/DateRangePicker/Day.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAYD,eAAO,MAAM,GAAG,GAAI,iHAYjB,QAAQ,sBAwBV,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Over } from '../../types/utils';
|
|
3
2
|
import type { ModalProps } from '../Modal';
|
|
4
3
|
type FooterClassNames = Readonly<{
|
|
5
4
|
wrapper?: string;
|
|
@@ -13,31 +12,31 @@ export declare const DIALOG_SEMANTIC: Readonly<{
|
|
|
13
12
|
danger: "danger";
|
|
14
13
|
}>;
|
|
15
14
|
export type DialogSemanticType = (typeof DIALOG_SEMANTIC)[keyof typeof DIALOG_SEMANTIC];
|
|
16
|
-
export
|
|
15
|
+
export interface DialogHeaderProps {
|
|
17
16
|
children?: React.ReactNode;
|
|
18
17
|
className?: string;
|
|
19
|
-
}
|
|
20
|
-
export
|
|
18
|
+
}
|
|
19
|
+
export interface DialogFooterProps {
|
|
21
20
|
children?: React.ReactNode;
|
|
22
21
|
classNames?: FooterClassNames;
|
|
23
|
-
}
|
|
24
|
-
export
|
|
22
|
+
}
|
|
23
|
+
export interface DialogBodyProps {
|
|
25
24
|
children?: React.ReactNode;
|
|
26
25
|
className?: string;
|
|
27
|
-
}
|
|
26
|
+
}
|
|
28
27
|
export type DialogPropsBase = ModalProps;
|
|
29
|
-
export
|
|
28
|
+
export interface DialogProps extends Omit<DialogPropsBase, 'semantic' | 'iconName'> {
|
|
30
29
|
semantic?: DialogSemanticType;
|
|
31
30
|
iconName?: string;
|
|
32
|
-
}
|
|
33
|
-
export
|
|
31
|
+
}
|
|
32
|
+
export interface BasicDialogProps extends Omit<DialogProps, 'heading' | 'body' | 'confirmText' | 'abortText' | 'handleConfirm' | 'handleAbort'> {
|
|
34
33
|
heading?: React.ReactNode;
|
|
35
34
|
body?: React.ReactNode;
|
|
36
35
|
confirmText?: string;
|
|
37
36
|
abortText?: string;
|
|
38
37
|
handleConfirm?: (event: React.SyntheticEvent) => unknown;
|
|
39
38
|
handleAbort?: (event: React.SyntheticEvent) => unknown;
|
|
40
|
-
}
|
|
39
|
+
}
|
|
41
40
|
export declare const DialogHeader: ({ children, className }: DialogHeaderProps) => React.JSX.Element;
|
|
42
41
|
export declare const DialogBody: ({ children, className }: DialogBodyProps) => React.JSX.Element;
|
|
43
42
|
export declare const DialogFooter: ({ children, classNames }: DialogFooterProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAMzC,KAAK,gBAAgB,GAAG,QAAQ,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;EAM1B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AAEzC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,UAAU,CAAC;IACtD,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,WAAW,EACT,SAAS,GACT,MAAM,GACN,aAAa,GACb,WAAW,GACX,eAAe,GACf,aAAa,CAChB;IACD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,OAAO,CAAC;IACzD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,OAAO,CAAC;CACxD;AAiED,eAAO,MAAM,YAAY,GAAI,yBAAuB,iBAAiB,sBAQpE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,yBAAuB,eAAe,sBAEhE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,0BAAwB,iBAAiB,sBAUrE,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,oHAUpB,WAAW,sBA4Bb,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,2FAQzB,gBAAgB,sBAiBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disclaimer.d.ts","sourceRoot":"","sources":["../../../src/components/Disclaimer/Disclaimer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAO3C,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC;AAE1C,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,
|
|
1
|
+
{"version":3,"file":"Disclaimer.d.ts","sourceRoot":"","sources":["../../../src/components/Disclaimer/Disclaimer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAO3C,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC;AAE1C,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,CAuBf,CAAC"}
|
|
@@ -15,7 +15,6 @@ const Disclaimer = exports.Disclaimer = /*#__PURE__*/React.forwardRef((_ref, ref
|
|
|
15
15
|
let {
|
|
16
16
|
classNames,
|
|
17
17
|
leftIconName = 'info-circle',
|
|
18
|
-
// @ts-ignore - TS2322 - Type 'string' is not assignable to type '"regular" | "solid" | "duotone" | "brands"'.
|
|
19
18
|
leftIconType = _Icon.ICON_TYPE.regular,
|
|
20
19
|
...restProps
|
|
21
20
|
} = _ref;
|
|
@@ -1,6 +1,5 @@
|
|
|
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
|
import type { ClickAwayRefType } from '../../utils/click-away';
|
|
5
4
|
import type { InputProps } from '../Input';
|
|
6
5
|
import type { MenuOption, MenuProps } from '../Menu';
|
|
@@ -10,7 +9,7 @@ type ClassNames = Readonly<{
|
|
|
10
9
|
box?: string;
|
|
11
10
|
iconRight?: string;
|
|
12
11
|
}>;
|
|
13
|
-
export
|
|
12
|
+
export interface DropdownProps extends Omit<InputProps, 'classNames' | 'onChange' | 'onMenuOpen' | 'onMenuClose' | 'scrollMenuToBottom' | 'dropdownInputText' | 'menu' | 'elevation' | 'clickAwayRef'> {
|
|
14
13
|
classNames?: ClassNames;
|
|
15
14
|
onChange?: (option: MenuOption, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
|
|
16
15
|
onMenuOpen?: () => unknown;
|
|
@@ -19,8 +18,8 @@ export type DropdownProps = Over<InputProps, {
|
|
|
19
18
|
dropdownInputText?: string;
|
|
20
19
|
menu?: MenuProps;
|
|
21
20
|
elevation?: ElevationType;
|
|
22
|
-
clickAwayRef?: ClickAwayRefType
|
|
23
|
-
}
|
|
21
|
+
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
22
|
+
}
|
|
24
23
|
export declare const Dropdown: Flow.AbstractComponent<DropdownProps, HTMLInputElement>;
|
|
25
24
|
export {};
|
|
26
25
|
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAKrD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAG7D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAEnD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAM9C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,UAAU,EACR,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,aAAa,GACb,oBAAoB,GACpB,mBAAmB,GACnB,MAAM,GACN,WAAW,GACX,cAAc,CACjB;IACD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CACT,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,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,CAyI1E,CAAC"}
|
|
@@ -33,8 +33,7 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
33
33
|
elevation = 'modal',
|
|
34
34
|
...inputProps
|
|
35
35
|
} = _ref;
|
|
36
|
-
|
|
37
|
-
const menuRef = React.useRef();
|
|
36
|
+
const menuRef = React.useRef(null);
|
|
38
37
|
const {
|
|
39
38
|
x,
|
|
40
39
|
y,
|
|
@@ -48,12 +47,14 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
48
47
|
whileElementsMounted: _react2.autoUpdate,
|
|
49
48
|
middleware: [(0, _react2.flip)(), (0, _react2.offset)(parseInt(_space.spaceXXSmall))]
|
|
50
49
|
});
|
|
51
|
-
// @ts-ignore - TS2345 - Argument of type '(ReferenceType & ReferenceType) | null' is not assignable to parameter of type 'HTMLElement | null | undefined'.
|
|
52
50
|
const dropdownWidth = (0, _hooks.useReferenceElementWidth)(refs.reference?.current);
|
|
53
51
|
const onMenuToggle = isOpen => {
|
|
54
|
-
|
|
52
|
+
if (isOpen) {
|
|
53
|
+
onMenuOpen?.();
|
|
54
|
+
} else {
|
|
55
|
+
onMenuClose?.();
|
|
56
|
+
}
|
|
55
57
|
if (scrollMenuToBottom && menuRef.current && isOpen) {
|
|
56
|
-
// @ts-ignore - TS2571 - Object is of type 'unknown'. | TS2571 - Object is of type 'unknown'.
|
|
57
58
|
menuRef.current.scrollTop = isOpen ? menuRef.current.scrollHeight : 0;
|
|
58
59
|
}
|
|
59
60
|
};
|
|
@@ -75,11 +76,13 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
75
76
|
onKeyDown: e => {
|
|
76
77
|
if (e.keyCode === 32) {
|
|
77
78
|
e.preventDefault();
|
|
78
|
-
|
|
79
|
+
if (isOpen) {
|
|
80
|
+
clickAway();
|
|
81
|
+
} else {
|
|
82
|
+
onOpen();
|
|
83
|
+
}
|
|
79
84
|
}
|
|
80
|
-
}
|
|
81
|
-
// @ts-ignore - TS2741 - Property 'current' is missing in type '((node: ReferenceType | null) => void) & ((node: ReferenceType | null) => void)' but required in type '{ current: HTMLElement | null | undefined; }'.
|
|
82
|
-
,
|
|
85
|
+
},
|
|
83
86
|
boxRef: (0, _mergeRefs.mergeRefs)([refs.setReference, triggerRef]),
|
|
84
87
|
size: size,
|
|
85
88
|
placeholder: placeholder,
|
|
@@ -97,12 +100,9 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
97
100
|
ref: ref
|
|
98
101
|
})), isOpen && menu && /*#__PURE__*/React.createElement(_react2.FloatingPortal, null, /*#__PURE__*/React.createElement(_react2.FloatingFocusManager, {
|
|
99
102
|
modal: false,
|
|
100
|
-
context: context
|
|
101
|
-
// @ts-ignore - TS2322 - Type 'MutableRefObject<ReferenceType | null> & MutableRefObject<ReferenceType | null>' is not assignable to type 'number | MutableRefObject<HTMLElement | null> | undefined'.
|
|
102
|
-
,
|
|
103
|
+
context: context,
|
|
103
104
|
initialFocus: refs.reference
|
|
104
105
|
}, /*#__PURE__*/React.createElement("div", {
|
|
105
|
-
// @ts-ignore - TS2741 - Property 'current' is missing in type '((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void)' but required in type '{ current: HTMLElement | null | undefined; }'.
|
|
106
106
|
ref: (0, _mergeRefs.mergeRefs)([refs.setFloating, boundaryRef]),
|
|
107
107
|
className: _DropdownModule.default.menuWrapper,
|
|
108
108
|
style: {
|
|
@@ -121,15 +121,14 @@ const Dropdown = exports.Dropdown = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
121
121
|
}
|
|
122
122
|
}, /*#__PURE__*/React.createElement(_Menu.Menu, _extends({}, menu, {
|
|
123
123
|
onSelect: (option, e) => {
|
|
124
|
-
onChange
|
|
124
|
+
onChange?.(option, e);
|
|
125
125
|
if (
|
|
126
126
|
// option.keepMenuOpenOnOptionSelect - to allow the menu persist its open stat upon option selection in normal variant
|
|
127
127
|
!option.keepMenuOpenOnOptionSelect && (!menu.optionsVariant || menu.optionsVariant === 'normal')) {
|
|
128
128
|
clickAway();
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
.querySelector('input').focus();
|
|
129
|
+
if (refs.reference?.current) {
|
|
130
|
+
refs.reference.current?.querySelector('input')?.focus();
|
|
131
|
+
}
|
|
133
132
|
}
|
|
134
133
|
},
|
|
135
134
|
size: menu.size || size,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAC,oBAAoB,EAAE,UAAU,EAAE,SAAS,E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* 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 { InputProps } from '../Input';
|
|
7
6
|
import type { MenuOption, MenuOptionsVariant, Virtualization } from '../Menu';
|
|
@@ -10,13 +9,13 @@ type ClassNames = Readonly<{
|
|
|
10
9
|
wrapper?: string;
|
|
11
10
|
box?: string;
|
|
12
11
|
}>;
|
|
13
|
-
export
|
|
12
|
+
export interface SimpleDropdownRef {
|
|
14
13
|
selectedKeys?: Array<string>;
|
|
15
|
-
}
|
|
16
|
-
export
|
|
14
|
+
}
|
|
15
|
+
export interface SimpleDropdownProps extends Omit<InputProps, 'elevation' | 'classNames' | 'clickAwayRef' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'isMenuFluid' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'showLabelTooltip' | 'allowWrap' | 'staticLabels' | 'onChange' | 'onMenuOpen' | 'onMenuClose' | 'resolveLabel' | 'resolveSecondaryLabel'> {
|
|
17
16
|
elevation?: ElevationType;
|
|
18
17
|
classNames?: ClassNames;
|
|
19
|
-
clickAwayRef?: ClickAwayRefType
|
|
18
|
+
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
20
19
|
options?: Array<MenuOption>;
|
|
21
20
|
optionsVariant?: MenuOptionsVariant;
|
|
22
21
|
allowSearch?: boolean;
|
|
@@ -38,7 +37,7 @@ export type SimpleDropdownProps = Over<InputProps, {
|
|
|
38
37
|
onMenuClose?: () => unknown;
|
|
39
38
|
resolveLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
40
39
|
resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
41
|
-
}
|
|
40
|
+
}
|
|
42
41
|
export declare const SimpleDropdown: Flow.AbstractComponent<SimpleDropdownProps, SimpleDropdownRef>;
|
|
43
42
|
export {};
|
|
44
43
|
//# sourceMappingURL=SimpleDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/SimpleDropdown.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":"SimpleDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/SimpleDropdown.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,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAK7D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAC,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAC5E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAK9C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CACV,UAAU,EACR,WAAW,GACX,YAAY,GACZ,cAAc,GACd,SA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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;CAC1E;AA6GD,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,mBAAmB,EACnB,iBAAiB,CAGlB,CAAC"}
|
|
@@ -57,8 +57,6 @@ const SimpleDropdownBase = (props, ref) => {
|
|
|
57
57
|
onChange?.(selectedOption, e);
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
// @ts-ignore - TS2345 - Argument of type '{ current: SimpleDropdownRef | null; } | ((arg1: SimpleDropdownRef | null) => unknown)' is not assignable to parameter of type 'Ref<SimpleDropdownRef> | undefined'.
|
|
62
60
|
React.useImperativeHandle(ref, () => ({
|
|
63
61
|
selectedKeys: dropdownSelectedKeys
|
|
64
62
|
}));
|
|
@@ -91,8 +89,4 @@ const SimpleDropdownBase = (props, ref) => {
|
|
|
91
89
|
}
|
|
92
90
|
}));
|
|
93
91
|
};
|
|
94
|
-
|
|
95
|
-
// @ts-ignore - TS2345 - Argument of type '(props: SimpleDropdownProps, ref: { current: null | SimpleDropdownRef; } | ((arg1: null | SimpleDropdownRef) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<SimpleDropdownProps, SimpleDropdownRef>'.
|
|
96
|
-
const SimpleDropdown = exports.SimpleDropdown = /*#__PURE__*/React.forwardRef(
|
|
97
|
-
//@ts-expect-error
|
|
98
|
-
SimpleDropdownBase);
|
|
92
|
+
const SimpleDropdown = exports.SimpleDropdown = /*#__PURE__*/React.forwardRef(SimpleDropdownBase);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleDropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/SimpleDropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SimpleDropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/SimpleDropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAIxC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ1D,wBA2XE;AAwCF,eAAO,MAAM,kBAAkB;WAAU,mBAAmB;;;;;CAM3D,CAAC;AAOF,eAAO,MAAM,yBAAyB;WAAU,mBAAmB;;;;;;;;CAMlE,CAAC;AAQF,eAAO,MAAM,WAAW;WAAU,mBAAmB;;;;;;CAMpD,CAAC;AAQF,eAAO,MAAM,oBAAoB;WAAU,mBAAmB;;;;;;;CAe7D,CAAC;AASF,eAAO,MAAM,iBAAiB;WAAU,mBAAmB;;;;;;;CAM1D,CAAC;AASF,eAAO,MAAM,oBAAoB;WAAU,mBAAmB;;;;;;;CAoB7D,CAAC"}
|
|
@@ -7,14 +7,14 @@ type ClassNames = Readonly<{
|
|
|
7
7
|
description?: string;
|
|
8
8
|
children?: string;
|
|
9
9
|
}>;
|
|
10
|
-
export
|
|
10
|
+
export interface EmptyStateProps {
|
|
11
11
|
classNames?: ClassNames;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
imageVariant?: 'calendar' | 'data' | 'file' | 'message' | 'upload' | 'chart';
|
|
14
14
|
title?: React.ReactNode;
|
|
15
15
|
description?: React.ReactNode;
|
|
16
16
|
customImageUrl?: string;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
export declare const EmptyState: Flow.AbstractComponent<EmptyStateProps, HTMLDivElement>;
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAgBrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAgBrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC7E,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,CAoDf,CAAC"}
|
|
@@ -8,7 +8,7 @@ type ClassNames = Readonly<{
|
|
|
8
8
|
description?: string;
|
|
9
9
|
children?: string;
|
|
10
10
|
}>;
|
|
11
|
-
export
|
|
11
|
+
export interface ErrorMessageProps {
|
|
12
12
|
classNames?: ClassNames;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
imageVariant?: 'unauthorized' | 'forbidden' | 'notFound' | 'serverError';
|
|
@@ -16,7 +16,7 @@ export type ErrorMessageProps = {
|
|
|
16
16
|
description?: React.ReactNode;
|
|
17
17
|
heading?: React.ReactNode;
|
|
18
18
|
customImageUrl?: string;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
export declare const ErrorMessage: Flow.AbstractComponent<ErrorMessageProps, HTMLDivElement>;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=ErrorMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorMessage/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAcrD,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 +3,13 @@ import type { FileObject } from '../FileUpload';
|
|
|
3
3
|
type ClassNames = Readonly<{
|
|
4
4
|
wrapper?: string;
|
|
5
5
|
}>;
|
|
6
|
-
export
|
|
6
|
+
export interface FileBlockProps {
|
|
7
7
|
classNames?: ClassNames;
|
|
8
8
|
fileObject: FileObject;
|
|
9
9
|
onFileRefreshClick?: (file: FileObject) => unknown;
|
|
10
10
|
handleFileClear?: (id: string) => unknown;
|
|
11
11
|
showRemoveFile?: boolean;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
export declare const FileBlock: Flow.AbstractComponent<FileBlockProps, HTMLDivElement>;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=FileBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileBlock/FileBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAK9C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,
|
|
1
|
+
{"version":3,"file":"FileBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileBlock/FileBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAK9C,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC;IACnD,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CA6E1E,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
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
|
wrapper?: string;
|
|
6
5
|
instruction?: string;
|
|
@@ -9,7 +8,7 @@ type ClassNames = Readonly<{
|
|
|
9
8
|
files?: string;
|
|
10
9
|
}>;
|
|
11
10
|
export type FileProgress = number | 'indeterminate';
|
|
12
|
-
export
|
|
11
|
+
export interface FileObject {
|
|
13
12
|
file: File;
|
|
14
13
|
id: string;
|
|
15
14
|
reject?: boolean;
|
|
@@ -18,15 +17,16 @@ export type FileObject = {
|
|
|
18
17
|
success?: boolean;
|
|
19
18
|
successMessage?: string;
|
|
20
19
|
showReUpload?: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export interface FileError {
|
|
23
23
|
code: string;
|
|
24
|
-
}
|
|
25
|
-
export
|
|
24
|
+
}
|
|
25
|
+
export interface FileRejection {
|
|
26
26
|
errors: Array<FileError>;
|
|
27
27
|
file: File;
|
|
28
|
-
}
|
|
29
|
-
export
|
|
28
|
+
}
|
|
29
|
+
export interface FileUploadRef {
|
|
30
30
|
moveFileToProgress: (id: string, progress: FileProgress) => unknown;
|
|
31
31
|
moveFileToSuccess: (id: string, successMessage?: string) => unknown;
|
|
32
32
|
moveFileToReject: (id: string, rejectReason?: string) => unknown;
|
|
@@ -35,20 +35,21 @@ export type FileUploadRef = {
|
|
|
35
35
|
validFiles: Array<FileObject>;
|
|
36
36
|
rejectedFiles: Array<FileObject>;
|
|
37
37
|
files: Array<FileObject>;
|
|
38
|
-
}
|
|
39
|
-
export
|
|
38
|
+
}
|
|
39
|
+
export interface FileUploadBaseProps {
|
|
40
40
|
maxFiles?: number;
|
|
41
41
|
maxSize?: number;
|
|
42
42
|
accept?: {
|
|
43
43
|
[key: string]: string[];
|
|
44
44
|
};
|
|
45
45
|
disabled?: boolean;
|
|
46
|
+
error?: boolean;
|
|
46
47
|
onValidFilesDrop?: (acceptedFiles: Array<FileObject>) => unknown;
|
|
47
48
|
onRejectedFilesDrop?: (fileRejections: Array<FileObject>) => unknown;
|
|
48
49
|
onFileClear?: (id: string) => unknown;
|
|
49
50
|
onClear?: () => unknown;
|
|
50
|
-
}
|
|
51
|
-
export
|
|
51
|
+
}
|
|
52
|
+
export interface FileUploadProps extends Omit<FileUploadBaseProps, 'classNames' | 'label' | 'instruction' | 'draggingInstruction' | 'secondaryInstruction' | 'required' | 'handleFileDeletionExternally' | 'onFileRefreshClick'> {
|
|
52
53
|
classNames?: ClassNames;
|
|
53
54
|
label?: React.ReactNode;
|
|
54
55
|
instruction?: React.ReactNode;
|
|
@@ -57,7 +58,7 @@ export type FileUploadProps = Over<FileUploadBaseProps, {
|
|
|
57
58
|
required?: boolean;
|
|
58
59
|
handleFileDeletionExternally?: boolean;
|
|
59
60
|
onFileRefreshClick?: (file: FileObject) => unknown;
|
|
60
|
-
}
|
|
61
|
+
}
|
|
61
62
|
export declare const FileUpload: Flow.AbstractComponent<FileUploadProps, FileUploadRef>;
|
|
62
63
|
export {};
|
|
63
64
|
//# sourceMappingURL=FileUpload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B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C9B,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC;CACpD;AAuHD,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,aAAa,CACqD,CAAC"}
|
|
@@ -29,7 +29,6 @@ const FileUploadBase = (props, ref) => {
|
|
|
29
29
|
disabled = false,
|
|
30
30
|
instruction = 'Drag and drop or click to upload',
|
|
31
31
|
draggingInstruction = 'Drop here to start uploading..',
|
|
32
|
-
// @ts-ignore - TS2339 - Property 'error' does not exist on type 'FileUploadProps'.
|
|
33
32
|
error = false,
|
|
34
33
|
required = false,
|
|
35
34
|
secondaryInstruction = '',
|
|
@@ -67,7 +66,7 @@ const FileUploadBase = (props, ref) => {
|
|
|
67
66
|
});
|
|
68
67
|
|
|
69
68
|
// Expose file upload actions to parent component
|
|
70
|
-
|
|
69
|
+
|
|
71
70
|
React.useImperativeHandle(ref, () => ({
|
|
72
71
|
moveFileToProgress,
|
|
73
72
|
moveFileToSuccess,
|
|
@@ -112,8 +111,4 @@ const FileUploadBase = (props, ref) => {
|
|
|
112
111
|
}
|
|
113
112
|
})))));
|
|
114
113
|
};
|
|
115
|
-
|
|
116
|
-
// @ts-ignore - TS2322 - Type 'ForwardRefExoticComponent<FileUploadRef & RefAttributes<FileUploadProps>>' is not assignable to type 'AbstractComponent<FileUploadProps, FileUploadRef>'. | TS2345 - Argument of type '(props: FileUploadProps, ref: { current: null | FileUploadRef; } | ((arg1: null | FileUploadRef) => unknown)) => React.JSX.Element' is not assignable to parameter of type 'ForwardRefRenderFunction<FileUploadProps, FileUploadRef>'.
|
|
117
|
-
const FileUpload = exports.FileUpload = /*#__PURE__*/React.forwardRef(
|
|
118
|
-
//@ts-expect-error
|
|
119
|
-
FileUploadBase);
|
|
114
|
+
const FileUpload = exports.FileUpload = /*#__PURE__*/React.forwardRef(FileUploadBase);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { FileUploadProps } from './';
|
|
3
|
+
import type { FileUploadRef } from './FileUpload';
|
|
3
4
|
declare const _default: {
|
|
4
5
|
tags: string[];
|
|
5
6
|
title: string;
|
|
6
|
-
component: import("flow-to-typescript-codemod").Flow.AbstractComponent<FileUploadProps,
|
|
7
|
+
component: import("flow-to-typescript-codemod").Flow.AbstractComponent<FileUploadProps, FileUploadRef>;
|
|
7
8
|
argTypes: {
|
|
8
9
|
classNames: {
|
|
9
10
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FileUpload.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,IAAI,CAAC;AACxC,OAAO,KAAK,EAAa,aAAa,EAAC,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM5D,wBAyTE;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW;WAAU,eAAe;;;;;;;;;;CA8BhD,CAAC;AAYF;;;;GAIG;AACH,eAAO,MAAM,UAAU;WAAU,eAAe;;;;;;;;;;CA6B/C,CAAC;AAYF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;WAAU,eAAe;;;;;;;;;;CAoD9D,CAAC;AAYF;;;;GAIG;AACH,eAAO,MAAM,aAAa;WAAU,eAAe;;;;;;;;;;CA+ClD,CAAC;AAYF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;WAAU,eAAe;;;;;;;;;;CAwC/D,CAAC;AAYF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;WAAU,eAAe;;;;;;CAsD7D,CAAC;AAQF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;WAAU,eAAe;;;;;;;CA+C3D,CAAC;AASF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;WAAU,eAAe;;;;;;;CA2DrD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
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
|
import type { ClickAwayRefType } from '../../utils';
|
|
5
4
|
import type { ButtonProps, ButtonSize } from '../Button';
|
|
6
5
|
import type { AnchorType, Strategy } from '../ButtonDropdown';
|
|
@@ -13,19 +12,19 @@ export type FilterButtonOverlaySizeTypes = 'medium' | 'small';
|
|
|
13
12
|
export type NewButtonProps = Flow.Diff<ButtonProps, {
|
|
14
13
|
children?: React.ReactNode;
|
|
15
14
|
}>;
|
|
16
|
-
export
|
|
15
|
+
export interface FilterButtonOverlayProps extends Omit<NewButtonProps, 'classNames' | 'children' | 'positionStrategy' | 'anchorPosition' | 'clickAwayRef' | 'isFluid' | 'size' | 'buttonLabel' | 'buttonSize' | 'elevation' | 'buttonIsFluid'> {
|
|
17
16
|
classNames?: ClassNames;
|
|
18
17
|
children: React.ReactNode;
|
|
19
18
|
positionStrategy?: Strategy;
|
|
20
19
|
anchorPosition?: AnchorType;
|
|
21
|
-
clickAwayRef?: ClickAwayRefType
|
|
20
|
+
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
22
21
|
isFluid?: boolean;
|
|
23
22
|
size?: FilterButtonOverlaySizeTypes;
|
|
24
23
|
buttonLabel?: React.ReactNode;
|
|
25
24
|
buttonSize?: ButtonSize;
|
|
26
25
|
elevation?: ElevationType;
|
|
27
26
|
buttonIsFluid?: boolean;
|
|
28
|
-
}
|
|
27
|
+
}
|
|
29
28
|
export declare const FilterButtonOverlay: Flow.AbstractComponent<FilterButtonOverlayProps, HTMLDivElement>;
|
|
30
29
|
export {};
|
|
31
30
|
//# sourceMappingURL=FilterButtonOverlay.d.ts.map
|