@spaced-out/ui-design-system 0.4.15 → 0.5.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 +9 -2
- package/.github/workflows/pages.yml +1 -1
- package/.github/workflows/publish_to_npm.yml +3 -20
- package/.github/workflows/pull_request_checks.yml +2 -3
- package/.prettierrc +3 -2
- package/.storybook/SenseTheme.ts +13 -0
- package/.storybook/main.ts +93 -0
- package/.storybook/manager-head.html +4 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/paths-macro.d.ts +6 -0
- package/.storybook/preview.ts +67 -0
- package/.storybook/tsconfig.json +14 -0
- package/.vscode/extensions.json +0 -1
- package/.vscode/settings.json +6 -1
- package/CHANGELOG.md +23 -0
- package/babel.config.js +1 -1
- package/config.js +3 -3
- package/cspell.json +3 -1
- package/eslint.config.mjs +54 -33
- package/gulpfile.js +9 -38
- package/lib/components/AIPromptFlow/AIPromptFlow.stories.d.ts +19 -0
- package/lib/components/AIPromptFlow/AIPromptFlow.stories.d.ts.map +1 -0
- package/lib/components/Accordion/Accordion.d.ts +22 -0
- package/lib/components/Accordion/Accordion.d.ts.map +1 -0
- package/lib/components/Accordion/Accordion.js +3 -1
- package/lib/components/Accordion/Accordion.stories.d.ts +144 -0
- package/lib/components/Accordion/Accordion.stories.d.ts.map +1 -0
- package/lib/components/Accordion/AccordionGroup.d.ts +17 -0
- package/lib/components/Accordion/AccordionGroup.d.ts.map +1 -0
- package/lib/components/Accordion/AccordionGroup.js +8 -1
- package/lib/components/Accordion/AccordionGroup.stories.d.ts +90 -0
- package/lib/components/Accordion/AccordionGroup.stories.d.ts.map +1 -0
- package/lib/components/Accordion/index.d.ts +3 -0
- package/lib/components/Accordion/index.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.d.ts +60 -0
- package/lib/components/Avatar/Avatar.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.js +14 -6
- package/lib/components/Avatar/Avatar.stories.d.ts +149 -0
- package/lib/components/Avatar/Avatar.stories.d.ts.map +1 -0
- package/lib/components/Avatar/index.d.ts +2 -0
- package/lib/components/Avatar/index.d.ts.map +1 -0
- package/lib/components/AvatarGroup/AvatarGroup.d.ts +15 -0
- package/lib/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
- package/lib/components/AvatarGroup/AvatarGroup.js +5 -0
- package/lib/components/AvatarGroup/AvatarGroup.stories.d.ts +101 -0
- package/lib/components/AvatarGroup/AvatarGroup.stories.d.ts.map +1 -0
- package/lib/components/AvatarGroup/index.d.ts +2 -0
- package/lib/components/AvatarGroup/index.d.ts.map +1 -0
- package/lib/components/Badge/Badge.d.ts +40 -0
- package/lib/components/Badge/Badge.d.ts.map +1 -0
- package/lib/components/Badge/Badge.stories.d.ts +123 -0
- package/lib/components/Badge/Badge.stories.d.ts.map +1 -0
- package/lib/components/Badge/index.d.ts +2 -0
- package/lib/components/Badge/index.d.ts.map +1 -0
- package/lib/components/BadgedIcon/BadgedIcon.d.ts +18 -0
- package/lib/components/BadgedIcon/BadgedIcon.d.ts.map +1 -0
- package/lib/components/BadgedIcon/BadgedIcon.js +3 -1
- package/lib/components/BadgedIcon/BadgedIcon.stories.d.ts +111 -0
- package/lib/components/BadgedIcon/BadgedIcon.stories.d.ts.map +1 -0
- package/lib/components/BadgedIcon/index.d.ts +2 -0
- package/lib/components/BadgedIcon/index.d.ts.map +1 -0
- package/lib/components/Banner/Banner.d.ts +7 -0
- package/lib/components/Banner/Banner.d.ts.map +1 -0
- package/lib/components/Banner/Banner.stories.d.ts +187 -0
- package/lib/components/Banner/Banner.stories.d.ts.map +1 -0
- package/lib/components/Banner/index.d.ts +2 -0
- package/lib/components/Banner/index.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts +10 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js +3 -1
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.stories.d.ts +98 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.stories.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/index.d.ts +2 -0
- package/lib/components/Breadcrumbs/BreadcrumbLink/index.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +14 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.js +6 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +57 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/lib/components/Breadcrumbs/index.d.ts +3 -0
- package/lib/components/Breadcrumbs/index.d.ts.map +1 -0
- package/lib/components/Button/Button.d.ts +64 -0
- package/lib/components/Button/Button.d.ts.map +1 -0
- package/lib/components/Button/Button.js +26 -8
- package/lib/components/Button/Button.stories.d.ts +245 -0
- package/lib/components/Button/Button.stories.d.ts.map +1 -0
- package/lib/components/Button/index.d.ts +3 -0
- package/lib/components/Button/index.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +40 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.js +17 -7
- package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +558 -0
- package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +42 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +9 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts +628 -0
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.stories.d.ts.map +1 -0
- package/lib/components/ButtonDropdown/index.d.ts +3 -0
- package/lib/components/ButtonDropdown/index.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts +25 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.stories.d.ts +142 -0
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.stories.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTab/index.d.ts +2 -0
- package/lib/components/ButtonTabs/ButtonTab/index.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts +12 -0
- package/lib/components/ButtonTabs/ButtonTabDropdown.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTabDropdown.js +12 -3
- package/lib/components/ButtonTabs/ButtonTabs.d.ts +24 -0
- package/lib/components/ButtonTabs/ButtonTabs.d.ts.map +1 -0
- package/lib/components/ButtonTabs/ButtonTabs.js +3 -0
- package/lib/components/ButtonTabs/ButtonTabs.stories.d.ts +201 -0
- package/lib/components/ButtonTabs/ButtonTabs.stories.d.ts.map +1 -0
- package/lib/components/ButtonTabs/index.d.ts +3 -0
- package/lib/components/ButtonTabs/index.d.ts.map +1 -0
- package/lib/components/Card/Card.d.ts +37 -0
- package/lib/components/Card/Card.d.ts.map +1 -0
- package/lib/components/Card/Card.js +6 -1
- package/lib/components/Card/Card.stories.d.ts +150 -0
- package/lib/components/Card/Card.stories.d.ts.map +1 -0
- package/lib/components/Card/index.d.ts +2 -0
- package/lib/components/Card/index.d.ts.map +1 -0
- package/lib/components/Charts/ChartTooltip/index.d.ts +3 -0
- package/lib/components/Charts/ChartTooltip/index.d.ts.map +1 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts +50 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.d.ts.map +1 -0
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js +5 -7
- package/lib/components/Charts/ChartWrapper/index.d.ts +2 -0
- package/lib/components/Charts/ChartWrapper/index.d.ts.map +1 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +24 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.js +8 -6
- package/lib/components/Charts/ColumnChart/ColumnChart.stories.d.ts +446 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/ColumnChart/index.d.ts +2 -0
- package/lib/components/Charts/ColumnChart/index.d.ts.map +1 -0
- package/lib/components/Charts/DonutChart/DonutChart.d.ts +29 -0
- package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -0
- package/lib/components/Charts/DonutChart/DonutChart.js +7 -6
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +227 -0
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/DonutChart/index.d.ts +2 -0
- package/lib/components/Charts/DonutChart/index.d.ts.map +1 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts +26 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.d.ts.map +1 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.js +6 -7
- package/lib/components/Charts/FunnelChart/FunnelChart.stories.d.ts +308 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/FunnelChart/index.d.ts +2 -0
- package/lib/components/Charts/FunnelChart/index.d.ts.map +1 -0
- package/lib/components/Charts/LineChart/LineChart.d.ts +24 -0
- package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -0
- package/lib/components/Charts/LineChart/LineChart.js +6 -6
- package/lib/components/Charts/LineChart/LineChart.stories.d.ts +311 -0
- package/lib/components/Charts/LineChart/LineChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/LineChart/index.d.ts +2 -0
- package/lib/components/Charts/LineChart/index.d.ts.map +1 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +23 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.js +0 -5
- package/lib/components/Charts/SpiderChart/SpiderChart.stories.d.ts +150 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/SpiderChart/index.d.ts +2 -0
- package/lib/components/Charts/SpiderChart/index.d.ts.map +1 -0
- package/lib/components/Charts/index.d.ts +8 -0
- package/lib/components/Charts/index.d.ts.map +1 -0
- package/lib/components/ChatBubble/ChatAnchor.stories.d.ts +101 -0
- package/lib/components/ChatBubble/ChatAnchor.stories.d.ts.map +1 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts +77 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts.map +1 -0
- package/lib/components/ChatBubble/ChatBubble.js +5 -2
- package/lib/components/ChatBubble/ChatBubble.stories.d.ts +102 -0
- package/lib/components/ChatBubble/ChatBubble.stories.d.ts.map +1 -0
- package/lib/components/ChatBubble/index.d.ts +2 -0
- package/lib/components/ChatBubble/index.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts +29 -0
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.js +2 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +168 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts +26 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
- package/lib/components/Checkbox/CheckboxGroup.js +8 -0
- package/lib/components/Checkbox/CheckboxGroup.stories.d.ts +163 -0
- package/lib/components/Checkbox/CheckboxGroup.stories.d.ts.map +1 -0
- package/lib/components/Checkbox/index.d.ts +3 -0
- package/lib/components/Checkbox/index.d.ts.map +1 -0
- package/lib/components/Chip/Chip.d.ts +47 -0
- package/lib/components/Chip/Chip.d.ts.map +1 -0
- package/lib/components/Chip/Chip.js +10 -2
- package/lib/components/Chip/Chip.stories.d.ts +238 -0
- package/lib/components/Chip/Chip.stories.d.ts.map +1 -0
- package/lib/components/Chip/index.d.ts +3 -0
- package/lib/components/Chip/index.d.ts.map +1 -0
- package/lib/components/CircularLoader/CircularLoader.d.ts +10 -0
- package/lib/components/CircularLoader/CircularLoader.d.ts.map +1 -0
- package/lib/components/CircularLoader/CircularLoader.stories.d.ts +64 -0
- package/lib/components/CircularLoader/CircularLoader.stories.d.ts.map +1 -0
- package/lib/components/CircularLoader/index.d.ts +2 -0
- package/lib/components/CircularLoader/index.d.ts.map +1 -0
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts +40 -0
- package/lib/components/CollapsibleCard/CollapsibleCard.d.ts.map +1 -0
- package/lib/components/CollapsibleCard/CollapsibleCard.stories.d.ts +225 -0
- package/lib/components/CollapsibleCard/CollapsibleCard.stories.d.ts.map +1 -0
- package/lib/components/CollapsibleCard/index.d.ts +2 -0
- package/lib/components/CollapsibleCard/index.d.ts.map +1 -0
- package/lib/components/Combobox/Combobox.d.ts +78 -0
- package/lib/components/Combobox/Combobox.d.ts.map +1 -0
- package/lib/components/Combobox/Combobox.js +16 -3
- package/lib/components/Combobox/Combobox.stories.d.ts +197 -0
- package/lib/components/Combobox/Combobox.stories.d.ts.map +1 -0
- package/lib/components/Combobox/helper.d.ts +12 -0
- package/lib/components/Combobox/helper.d.ts.map +1 -0
- package/lib/components/Combobox/helper.js +1 -0
- package/lib/components/Combobox/index.d.ts +2 -0
- package/lib/components/Combobox/index.d.ts.map +1 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts +8 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.d.ts.map +1 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.js +0 -2
- package/lib/components/ConditionalWrapper/ConditionalWrapper.stories.d.ts +16 -0
- package/lib/components/ConditionalWrapper/ConditionalWrapper.stories.d.ts.map +1 -0
- package/lib/components/ConditionalWrapper/index.d.ts +2 -0
- package/lib/components/ConditionalWrapper/index.d.ts.map +1 -0
- package/lib/components/DateRangePicker/Calendar.d.ts +22 -0
- package/lib/components/DateRangePicker/Calendar.d.ts.map +1 -0
- package/lib/components/DateRangePicker/Calendar.js +4 -2
- package/lib/components/DateRangePicker/DateRangePicker.d.ts +22 -0
- package/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/lib/components/DateRangePicker/DateRangePicker.js +0 -1
- package/lib/components/DateRangePicker/DateRangePicker.stories.d.ts +184 -0
- package/lib/components/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -0
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts +33 -0
- package/lib/components/DateRangePicker/DateRangeWrapper.d.ts.map +1 -0
- package/lib/components/DateRangePicker/DateRangeWrapper.js +13 -5
- package/lib/components/DateRangePicker/Day.d.ts +17 -0
- package/lib/components/DateRangePicker/Day.d.ts.map +1 -0
- package/lib/components/DateRangePicker/Day.js +6 -4
- package/lib/components/DateRangePicker/index.d.ts +2 -0
- package/lib/components/DateRangePicker/index.d.ts.map +1 -0
- package/lib/components/Dialog/Dialog.d.ts +46 -0
- package/lib/components/Dialog/Dialog.d.ts.map +1 -0
- package/lib/components/Dialog/Dialog.stories.d.ts +171 -0
- package/lib/components/Dialog/Dialog.stories.d.ts.map +1 -0
- package/lib/components/Dialog/index.d.ts +2 -0
- package/lib/components/Dialog/index.d.ts.map +1 -0
- package/lib/components/Disclaimer/Disclaimer.d.ts +5 -0
- package/lib/components/Disclaimer/Disclaimer.d.ts.map +1 -0
- package/lib/components/Disclaimer/Disclaimer.js +1 -0
- package/lib/components/Disclaimer/Disclaimer.stories.d.ts +156 -0
- package/lib/components/Disclaimer/Disclaimer.stories.d.ts.map +1 -0
- package/lib/components/Disclaimer/index.d.ts +2 -0
- package/lib/components/Disclaimer/index.d.ts.map +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts +25 -0
- package/lib/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/lib/components/Dropdown/Dropdown.js +21 -8
- package/lib/components/Dropdown/Dropdown.stories.d.ts +417 -0
- package/lib/components/Dropdown/Dropdown.stories.d.ts.map +1 -0
- package/lib/components/Dropdown/SimpleDropdown.d.ts +44 -0
- package/lib/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
- package/lib/components/Dropdown/SimpleDropdown.js +10 -2
- package/lib/components/Dropdown/SimpleDropdown.stories.d.ts +424 -0
- package/lib/components/Dropdown/SimpleDropdown.stories.d.ts.map +1 -0
- package/lib/components/Dropdown/index.d.ts +3 -0
- package/lib/components/Dropdown/index.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/DataEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/DataEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/FileEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/FileEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.d.ts +3 -0
- package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyImages/index.d.ts +7 -0
- package/lib/components/EmptyState/EmptyImages/index.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyState.d.ts +20 -0
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/lib/components/EmptyState/EmptyState.stories.d.ts +91 -0
- package/lib/components/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/lib/components/EmptyState/index.d.ts +2 -0
- package/lib/components/EmptyState/index.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.d.ts +3 -0
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorImages/index.d.ts +5 -0
- package/lib/components/ErrorMessage/ErrorImages/index.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorMessage.d.ts +22 -0
- package/lib/components/ErrorMessage/ErrorMessage.d.ts.map +1 -0
- package/lib/components/ErrorMessage/ErrorMessage.stories.d.ts +97 -0
- package/lib/components/ErrorMessage/ErrorMessage.stories.d.ts.map +1 -0
- package/lib/components/ErrorMessage/index.d.ts +2 -0
- package/lib/components/ErrorMessage/index.d.ts.map +1 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts +15 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.js +3 -2
- package/lib/components/FileUpload/FileBlock/FileBlock.stories.d.ts +82 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.stories.d.ts.map +1 -0
- package/lib/components/FileUpload/FileBlock/index.d.ts +2 -0
- package/lib/components/FileUpload/FileBlock/index.d.ts.map +1 -0
- package/lib/components/FileUpload/FileUpload.d.ts +62 -0
- package/lib/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/lib/components/FileUpload/FileUpload.js +9 -2
- package/lib/components/FileUpload/FileUpload.stories.d.ts +340 -0
- package/lib/components/FileUpload/FileUpload.stories.d.ts.map +1 -0
- package/lib/components/FileUpload/index.d.ts +3 -0
- package/lib/components/FileUpload/index.d.ts.map +1 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts +30 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.d.ts.map +1 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js +13 -5
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.stories.d.ts +300 -0
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.stories.d.ts.map +1 -0
- package/lib/components/FilterButtonOverlay/index.d.ts +2 -0
- package/lib/components/FilterButtonOverlay/index.d.ts.map +1 -0
- package/lib/components/FocusManager/FocusManager.d.ts +15 -0
- package/lib/components/FocusManager/FocusManager.d.ts.map +1 -0
- package/lib/components/FocusManager/FocusManager.stories.d.ts +103 -0
- package/lib/components/FocusManager/FocusManager.stories.d.ts.map +1 -0
- package/lib/components/FocusManager/index.d.ts +2 -0
- package/lib/components/FocusManager/index.d.ts.map +1 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts +19 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.d.ts.map +1 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js +11 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.stories.d.ts +175 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.stories.d.ts.map +1 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/index.d.ts +2 -0
- package/lib/components/FocusManagerWithArrowKeyNavigation/index.d.ts.map +1 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts +21 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.d.ts.map +1 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.stories.d.ts +128 -0
- package/lib/components/FormTitleWrapper/FormTitleWrapper.stories.d.ts.map +1 -0
- package/lib/components/FormTitleWrapper/index.d.ts +2 -0
- package/lib/components/FormTitleWrapper/index.d.ts.map +1 -0
- package/lib/components/Grid/Col.stories.d.ts +66 -0
- package/lib/components/Grid/Col.stories.d.ts.map +1 -0
- package/lib/components/Grid/Grid.d.ts +20 -0
- package/lib/components/Grid/Grid.d.ts.map +1 -0
- package/lib/components/Grid/Grid.js +8 -0
- package/lib/components/Grid/GridPatterns.stories.d.ts +18 -0
- package/lib/components/Grid/GridPatterns.stories.d.ts.map +1 -0
- package/lib/components/Grid/Row.stories.d.ts +41 -0
- package/lib/components/Grid/Row.stories.d.ts.map +1 -0
- package/lib/components/Grid/Tablist.layout.stories.d.ts +20 -0
- package/lib/components/Grid/Tablist.layout.stories.d.ts.map +1 -0
- package/lib/components/Grid/index.d.ts +2 -0
- package/lib/components/Grid/index.d.ts.map +1 -0
- package/lib/components/Icon/ClickableIcon.d.ts +26 -0
- package/lib/components/Icon/ClickableIcon.d.ts.map +1 -0
- package/lib/components/Icon/ClickableIcon.js +4 -2
- package/lib/components/Icon/Icon.d.ts +31 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -0
- package/lib/components/Icon/Icon.docs.d.ts +134 -0
- package/lib/components/Icon/Icon.docs.d.ts.map +1 -0
- package/lib/components/Icon/Icon.docs.js +1 -1
- package/lib/components/Icon/Icon.js +3 -1
- package/lib/components/Icon/Icon.stories.d.ts +193 -0
- package/lib/components/Icon/Icon.stories.d.ts.map +1 -0
- package/lib/components/Icon/SemanticIcon.d.ts +14 -0
- package/lib/components/Icon/SemanticIcon.d.ts.map +1 -0
- package/lib/components/Icon/SemanticIcon.js +3 -1
- package/lib/components/Icon/SemanticIcon.stories.d.ts +190 -0
- package/lib/components/Icon/SemanticIcon.stories.d.ts.map +1 -0
- package/lib/components/Icon/index.d.ts +4 -0
- package/lib/components/Icon/index.d.ts.map +1 -0
- package/lib/components/InContextAlert/InContextAlert.d.ts +31 -0
- package/lib/components/InContextAlert/InContextAlert.d.ts.map +1 -0
- package/lib/components/InContextAlert/InContextAlert.js +2 -0
- package/lib/components/InContextAlert/InContextAlert.stories.d.ts +164 -0
- package/lib/components/InContextAlert/InContextAlert.stories.d.ts.map +1 -0
- package/lib/components/InContextAlert/index.d.ts +2 -0
- package/lib/components/InContextAlert/index.d.ts.map +1 -0
- package/lib/components/InfinitePagination/InfinitePagination.d.ts +25 -0
- package/lib/components/InfinitePagination/InfinitePagination.d.ts.map +1 -0
- package/lib/components/InfinitePagination/InfinitePagination.js +9 -2
- package/lib/components/InfinitePagination/InfinitePagination.stories.d.ts +145 -0
- package/lib/components/InfinitePagination/InfinitePagination.stories.d.ts.map +1 -0
- package/lib/components/InfinitePagination/index.d.ts +2 -0
- package/lib/components/InfinitePagination/index.d.ts.map +1 -0
- package/lib/components/InlineDropdown/InlineDropdown.d.ts +25 -0
- package/lib/components/InlineDropdown/InlineDropdown.d.ts.map +1 -0
- package/lib/components/InlineDropdown/InlineDropdown.js +16 -7
- package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts +350 -0
- package/lib/components/InlineDropdown/InlineDropdown.stories.d.ts.map +1 -0
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts +40 -0
- package/lib/components/InlineDropdown/SimpleInlineDropdown.d.ts.map +1 -0
- package/lib/components/InlineDropdown/SimpleInlineDropdown.js +10 -1
- package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts +469 -0
- package/lib/components/InlineDropdown/SimpleInlineDropdown.stories.d.ts.map +1 -0
- package/lib/components/InlineDropdown/index.d.ts +3 -0
- package/lib/components/InlineDropdown/index.d.ts.map +1 -0
- package/lib/components/Input/Input.d.ts +74 -0
- package/lib/components/Input/Input.d.ts.map +1 -0
- package/lib/components/Input/Input.js +18 -5
- package/lib/components/Input/Input.stories.d.ts +502 -0
- package/lib/components/Input/Input.stories.d.ts.map +1 -0
- package/lib/components/Input/NativeColorpicker.stories.d.ts +370 -0
- package/lib/components/Input/NativeColorpicker.stories.d.ts.map +1 -0
- package/lib/components/Input/NativeDatepicker.stories.d.ts +388 -0
- package/lib/components/Input/NativeDatepicker.stories.d.ts.map +1 -0
- package/lib/components/Input/index.d.ts +2 -0
- package/lib/components/Input/index.d.ts.map +1 -0
- package/lib/components/KPIBox/KPIBox.d.ts +24 -0
- package/lib/components/KPIBox/KPIBox.d.ts.map +1 -0
- package/lib/components/KPIBox/KPIBox.stories.d.ts +132 -0
- package/lib/components/KPIBox/KPIBox.stories.d.ts.map +1 -0
- package/lib/components/KPIBox/index.d.ts +2 -0
- package/lib/components/KPIBox/index.d.ts.map +1 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts +9 -0
- package/lib/components/LinearLoader/LinearLoader.d.ts.map +1 -0
- package/lib/components/LinearLoader/LinearLoader.stories.d.ts +78 -0
- package/lib/components/LinearLoader/LinearLoader.stories.d.ts.map +1 -0
- package/lib/components/LinearLoader/index.d.ts +2 -0
- package/lib/components/LinearLoader/index.d.ts.map +1 -0
- package/lib/components/Link/Link.d.ts +93 -0
- package/lib/components/Link/Link.d.ts.map +1 -0
- package/lib/components/Link/Link.js +16 -5
- package/lib/components/Link/Link.stories.d.ts +284 -0
- package/lib/components/Link/Link.stories.d.ts.map +1 -0
- package/lib/components/Link/index.d.ts +2 -0
- package/lib/components/Link/index.d.ts.map +1 -0
- package/lib/components/Menu/Menu.d.ts +74 -0
- package/lib/components/Menu/Menu.d.ts.map +1 -0
- package/lib/components/Menu/Menu.js +5 -2
- package/lib/components/Menu/Menu.stories.d.ts +526 -0
- package/lib/components/Menu/Menu.stories.d.ts.map +1 -0
- package/lib/components/Menu/MenuOptionButton.d.ts +9 -0
- package/lib/components/Menu/MenuOptionButton.d.ts.map +1 -0
- package/lib/components/Menu/MenuOptionButton.js +6 -1
- package/lib/components/Menu/index.d.ts +3 -0
- package/lib/components/Menu/index.d.ts.map +1 -0
- package/lib/components/Modal/Modal.d.ts +64 -0
- package/lib/components/Modal/Modal.d.ts.map +1 -0
- package/lib/components/Modal/Modal.js +6 -2
- package/lib/components/Modal/Modal.stories.d.ts +149 -0
- package/lib/components/Modal/Modal.stories.d.ts.map +1 -0
- package/lib/components/Modal/index.d.ts +3 -0
- package/lib/components/Modal/index.d.ts.map +1 -0
- package/lib/components/Notification/Notification.d.ts +37 -0
- package/lib/components/Notification/Notification.d.ts.map +1 -0
- package/lib/components/Notification/Notification.js +1 -0
- package/lib/components/Notification/Notification.stories.d.ts +136 -0
- package/lib/components/Notification/Notification.stories.d.ts.map +1 -0
- package/lib/components/Notification/index.d.ts +2 -0
- package/lib/components/Notification/index.d.ts.map +1 -0
- package/lib/components/OptionButton/OptionButton.d.ts +33 -0
- package/lib/components/OptionButton/OptionButton.d.ts.map +1 -0
- package/lib/components/OptionButton/OptionButton.stories.d.ts +366 -0
- package/lib/components/OptionButton/OptionButton.stories.d.ts.map +1 -0
- package/lib/components/OptionButton/SimpleOptionButton.d.ts +46 -0
- package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -0
- package/lib/components/OptionButton/SimpleOptionButton.js +7 -1
- package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts +502 -0
- package/lib/components/OptionButton/SimpleOptionButton.stories.d.ts.map +1 -0
- package/lib/components/OptionButton/index.d.ts +3 -0
- package/lib/components/OptionButton/index.d.ts.map +1 -0
- package/lib/components/PageTitle/PageTitle.d.ts +156 -0
- package/lib/components/PageTitle/PageTitle.d.ts.map +1 -0
- package/lib/components/PageTitle/PageTitle.js +7 -2
- package/lib/components/PageTitle/PageTitle.stories.d.ts +83 -0
- package/lib/components/PageTitle/PageTitle.stories.d.ts.map +1 -0
- package/lib/components/PageTitle/index.d.ts +2 -0
- package/lib/components/PageTitle/index.d.ts.map +1 -0
- package/lib/components/Pagination/Pagination.d.ts +39 -0
- package/lib/components/Pagination/Pagination.d.ts.map +1 -0
- package/lib/components/Pagination/Pagination.js +3 -1
- package/lib/components/Pagination/Pagination.stories.d.ts +203 -0
- package/lib/components/Pagination/Pagination.stories.d.ts.map +1 -0
- package/lib/components/Pagination/PaginationItem.d.ts +5 -0
- package/lib/components/Pagination/PaginationItem.d.ts.map +1 -0
- package/lib/components/Pagination/PaginationItem.js +3 -0
- package/lib/components/Pagination/index.d.ts +2 -0
- package/lib/components/Pagination/index.d.ts.map +1 -0
- package/lib/components/Panel/Panel.d.ts +35 -0
- package/lib/components/Panel/Panel.d.ts.map +1 -0
- package/lib/components/Panel/Panel.stories.d.ts +187 -0
- package/lib/components/Panel/Panel.stories.d.ts.map +1 -0
- package/lib/components/Panel/index.d.ts +3 -0
- package/lib/components/Panel/index.d.ts.map +1 -0
- package/lib/components/ProgressDonut/ProgressDonut.d.ts +13 -0
- package/lib/components/ProgressDonut/ProgressDonut.d.ts.map +1 -0
- package/lib/components/ProgressDonut/ProgressDonut.js +1 -0
- package/lib/components/ProgressDonut/ProgressDonut.stories.d.ts +72 -0
- package/lib/components/ProgressDonut/ProgressDonut.stories.d.ts.map +1 -0
- package/lib/components/ProgressDonut/index.d.ts +2 -0
- package/lib/components/ProgressDonut/index.d.ts.map +1 -0
- package/lib/components/PromptChip/PromptChip.d.ts +38 -0
- package/lib/components/PromptChip/PromptChip.d.ts.map +1 -0
- package/lib/components/PromptChip/PromptChip.js +8 -2
- package/lib/components/PromptChip/PromptChip.stories.d.ts +205 -0
- package/lib/components/PromptChip/PromptChip.stories.d.ts.map +1 -0
- package/lib/components/PromptChip/index.d.ts +2 -0
- package/lib/components/PromptChip/index.d.ts.map +1 -0
- package/lib/components/PromptInput/PromptInput.d.ts +38 -0
- package/lib/components/PromptInput/PromptInput.d.ts.map +1 -0
- package/lib/components/PromptInput/PromptInput.js +10 -1
- package/lib/components/PromptInput/PromptInput.stories.d.ts +265 -0
- package/lib/components/PromptInput/PromptInput.stories.d.ts.map +1 -0
- package/lib/components/PromptInput/index.d.ts +2 -0
- package/lib/components/PromptInput/index.d.ts.map +1 -0
- package/lib/components/RadioButton/RadioButton.d.ts +31 -0
- package/lib/components/RadioButton/RadioButton.d.ts.map +1 -0
- package/lib/components/RadioButton/RadioButton.js +1 -0
- package/lib/components/RadioButton/RadioButton.stories.d.ts +149 -0
- package/lib/components/RadioButton/RadioButton.stories.d.ts.map +1 -0
- package/lib/components/RadioButton/RadioGroup.d.ts +27 -0
- package/lib/components/RadioButton/RadioGroup.d.ts.map +1 -0
- package/lib/components/RadioButton/RadioGroup.js +2 -0
- package/lib/components/RadioButton/RadioGroup.stories.d.ts +137 -0
- package/lib/components/RadioButton/RadioGroup.stories.d.ts.map +1 -0
- package/lib/components/RadioButton/index.d.ts +3 -0
- package/lib/components/RadioButton/index.d.ts.map +1 -0
- package/lib/components/RadioTile/RadioTile.d.ts +23 -0
- package/lib/components/RadioTile/RadioTile.d.ts.map +1 -0
- package/lib/components/RadioTile/RadioTile.js +2 -0
- package/lib/components/RadioTile/RadioTile.stories.d.ts +171 -0
- package/lib/components/RadioTile/RadioTile.stories.d.ts.map +1 -0
- package/lib/components/RadioTile/index.d.ts +2 -0
- package/lib/components/RadioTile/index.d.ts.map +1 -0
- package/lib/components/RangeSlider/RangeSlider.d.ts +27 -0
- package/lib/components/RangeSlider/RangeSlider.d.ts.map +1 -0
- package/lib/components/RangeSlider/RangeSlider.js +3 -0
- package/lib/components/RangeSlider/RangeSlider.stories.d.ts +287 -0
- package/lib/components/RangeSlider/RangeSlider.stories.d.ts.map +1 -0
- package/lib/components/RangeSlider/index.d.ts +2 -0
- package/lib/components/RangeSlider/index.d.ts.map +1 -0
- package/lib/components/Rating/Rating.d.ts +32 -0
- package/lib/components/Rating/Rating.d.ts.map +1 -0
- package/lib/components/Rating/Rating.js +7 -3
- package/lib/components/Rating/Rating.stories.d.ts +237 -0
- package/lib/components/Rating/Rating.stories.d.ts.map +1 -0
- package/lib/components/Rating/index.d.ts +2 -0
- package/lib/components/Rating/index.d.ts.map +1 -0
- package/lib/components/ScoreBar/ScoreBar.d.ts +29 -0
- package/lib/components/ScoreBar/ScoreBar.d.ts.map +1 -0
- package/lib/components/ScoreBar/ScoreBar.js +1 -1
- package/lib/components/ScoreBar/ScoreBar.stories.d.ts +156 -0
- package/lib/components/ScoreBar/ScoreBar.stories.d.ts.map +1 -0
- package/lib/components/ScoreBar/index.d.ts +2 -0
- package/lib/components/ScoreBar/index.d.ts.map +1 -0
- package/lib/components/SearchInput/SearchInput.d.ts +15 -0
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/lib/components/SearchInput/SearchInput.stories.d.ts +260 -0
- package/lib/components/SearchInput/SearchInput.stories.d.ts.map +1 -0
- package/lib/components/SearchInput/index.d.ts +3 -0
- package/lib/components/SearchInput/index.d.ts.map +1 -0
- package/lib/components/Separator/Separator.d.ts +18 -0
- package/lib/components/Separator/Separator.d.ts.map +1 -0
- package/lib/components/Separator/Separator.stories.d.ts +79 -0
- package/lib/components/Separator/Separator.stories.d.ts.map +1 -0
- package/lib/components/Separator/index.d.ts +2 -0
- package/lib/components/Separator/index.d.ts.map +1 -0
- package/lib/components/Shimmer/Shimmer.d.ts +57 -0
- package/lib/components/Shimmer/Shimmer.d.ts.map +1 -0
- package/lib/components/Shimmer/Shimmer.js +3 -1
- package/lib/components/Shimmer/Shimmer.stories.d.ts +213 -0
- package/lib/components/Shimmer/Shimmer.stories.d.ts.map +1 -0
- package/lib/components/Shimmer/index.d.ts +2 -0
- package/lib/components/Shimmer/index.d.ts.map +1 -0
- package/lib/components/SideMenuLink/SideMenuLink.d.ts +211 -0
- package/lib/components/SideMenuLink/SideMenuLink.d.ts.map +1 -0
- package/lib/components/SideMenuLink/SideMenuLink.js +8 -2
- package/lib/components/SideMenuLink/SideMenuLink.stories.d.ts +96 -0
- package/lib/components/SideMenuLink/SideMenuLink.stories.d.ts.map +1 -0
- package/lib/components/SideMenuLink/index.d.ts +2 -0
- package/lib/components/SideMenuLink/index.d.ts.map +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +25 -0
- package/lib/components/StatusIndicator/StatusIndicator.d.ts.map +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.stories.d.ts +92 -0
- package/lib/components/StatusIndicator/StatusIndicator.stories.d.ts.map +1 -0
- package/lib/components/StatusIndicator/index.d.ts +2 -0
- package/lib/components/StatusIndicator/index.d.ts.map +1 -0
- package/lib/components/Stepper/Step/Step.d.ts +25 -0
- package/lib/components/Stepper/Step/Step.d.ts.map +1 -0
- package/lib/components/Stepper/Step/Step.js +12 -3
- package/lib/components/Stepper/Step/Step.stories.d.ts +120 -0
- package/lib/components/Stepper/Step/Step.stories.d.ts.map +1 -0
- package/lib/components/Stepper/Step/StepContent.d.ts +14 -0
- package/lib/components/Stepper/Step/StepContent.d.ts.map +1 -0
- package/lib/components/Stepper/Step/StepLabel.d.ts +14 -0
- package/lib/components/Stepper/Step/StepLabel.d.ts.map +1 -0
- package/lib/components/Stepper/Step/index.d.ts +4 -0
- package/lib/components/Stepper/Step/index.d.ts.map +1 -0
- package/lib/components/Stepper/Stepper.d.ts +15 -0
- package/lib/components/Stepper/Stepper.d.ts.map +1 -0
- package/lib/components/Stepper/Stepper.js +4 -0
- package/lib/components/Stepper/Stepper.stories.d.ts +210 -0
- package/lib/components/Stepper/Stepper.stories.d.ts.map +1 -0
- package/lib/components/Stepper/index.d.ts +3 -0
- package/lib/components/Stepper/index.d.ts.map +1 -0
- package/lib/components/StickyBar/StickyBar.d.ts +15 -0
- package/lib/components/StickyBar/StickyBar.d.ts.map +1 -0
- package/lib/components/StickyBar/StickyBar.stories.d.ts +35 -0
- package/lib/components/StickyBar/StickyBar.stories.d.ts.map +1 -0
- package/lib/components/StickyBar/index.d.ts +2 -0
- package/lib/components/StickyBar/index.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenu.d.ts +19 -0
- package/lib/components/SubMenu/SubMenu.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenu.stories.d.ts +114 -0
- package/lib/components/SubMenu/SubMenu.stories.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuGroup.d.ts +24 -0
- package/lib/components/SubMenu/SubMenuGroup.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuGroup.js +11 -3
- package/lib/components/SubMenu/SubMenuItem.d.ts +42 -0
- package/lib/components/SubMenu/SubMenuItem.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuItem.js +19 -7
- package/lib/components/SubMenu/SubMenuLink.d.ts +14 -0
- package/lib/components/SubMenu/SubMenuLink.d.ts.map +1 -0
- package/lib/components/SubMenu/SubMenuLink.js +6 -2
- package/lib/components/SubMenu/index.d.ts +5 -0
- package/lib/components/SubMenu/index.d.ts.map +1 -0
- package/lib/components/Table/BasicTable.stories.d.ts +691 -0
- package/lib/components/Table/BasicTable.stories.d.ts.map +1 -0
- package/lib/components/Table/BulkActions.stories.d.ts +327 -0
- package/lib/components/Table/BulkActions.stories.d.ts.map +1 -0
- package/lib/components/Table/Cell.d.ts +37 -0
- package/lib/components/Table/Cell.d.ts.map +1 -0
- package/lib/components/Table/Cell.js +8 -5
- package/lib/components/Table/DefaultRow.d.ts +39 -0
- package/lib/components/Table/DefaultRow.d.ts.map +1 -0
- package/lib/components/Table/DefaultRow.js +1 -1
- package/lib/components/Table/DefaultTableHeader.d.ts +43 -0
- package/lib/components/Table/DefaultTableHeader.d.ts.map +1 -0
- package/lib/components/Table/DefaultTableHeader.js +9 -2
- package/lib/components/Table/InlineEdit.stories.d.ts +314 -0
- package/lib/components/Table/InlineEdit.stories.d.ts.map +1 -0
- package/lib/components/Table/StaticTable.d.ts +24 -0
- package/lib/components/Table/StaticTable.d.ts.map +1 -0
- package/lib/components/Table/StaticTable.js +48 -18
- package/lib/components/Table/Table.d.ts +64 -0
- package/lib/components/Table/Table.d.ts.map +1 -0
- package/lib/components/Table/Table.docs.d.ts +299 -0
- package/lib/components/Table/Table.docs.d.ts.map +1 -0
- package/lib/components/Table/Table.docs.js +4 -4
- package/lib/components/Table/Table.js +15 -11
- package/lib/components/Table/TableActionBar.d.ts +11 -0
- package/lib/components/Table/TableActionBar.d.ts.map +1 -0
- package/lib/components/Table/TableBottomBar.d.ts +7 -0
- package/lib/components/Table/TableBottomBar.d.ts.map +1 -0
- package/lib/components/Table/TableTopBar.d.ts +7 -0
- package/lib/components/Table/TableTopBar.d.ts.map +1 -0
- package/lib/components/Table/dummyTableData.d.ts +1946 -0
- package/lib/components/Table/dummyTableData.d.ts.map +1 -0
- package/lib/components/Table/hooks.d.ts +15 -0
- package/lib/components/Table/hooks.d.ts.map +1 -0
- package/lib/components/Table/hooks.js +8 -1
- package/lib/components/Table/index.d.ts +9 -0
- package/lib/components/Table/index.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/Tab.d.ts +35 -0
- package/lib/components/Tabs/Tab/Tab.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/Tab.js +5 -1
- package/lib/components/Tabs/Tab/Tab.stories.d.ts +156 -0
- package/lib/components/Tabs/Tab/Tab.stories.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/index.d.ts +2 -0
- package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
- package/lib/components/Tabs/TabList/TabDropdown.d.ts +24 -0
- package/lib/components/Tabs/TabList/TabDropdown.d.ts.map +1 -0
- package/lib/components/Tabs/TabList/TabDropdown.js +8 -2
- package/lib/components/Tabs/TabList/TabList.d.ts +24 -0
- package/lib/components/Tabs/TabList/TabList.d.ts.map +1 -0
- package/lib/components/Tabs/TabList/TabList.js +17 -3
- package/lib/components/Tabs/TabList/TabList.stories.d.ts +111 -0
- package/lib/components/Tabs/TabList/TabList.stories.d.ts.map +1 -0
- package/lib/components/Tabs/TabList/index.d.ts +2 -0
- package/lib/components/Tabs/TabList/index.d.ts.map +1 -0
- package/lib/components/Tabs/index.d.ts +3 -0
- package/lib/components/Tabs/index.d.ts.map +1 -0
- package/lib/components/Text/HighlightedText.stories.d.ts +120 -0
- package/lib/components/Text/HighlightedText.stories.d.ts.map +1 -0
- package/lib/components/Text/Text.d.ts +46 -0
- package/lib/components/Text/Text.d.ts.map +1 -0
- package/lib/components/Text/Text.js +1 -0
- package/lib/components/Text/Text.stories.d.ts +271 -0
- package/lib/components/Text/Text.stories.d.ts.map +1 -0
- package/lib/components/Text/index.d.ts +4 -0
- package/lib/components/Text/index.d.ts.map +1 -0
- package/lib/components/TextTile/TextTile.d.ts +14 -0
- package/lib/components/TextTile/TextTile.d.ts.map +1 -0
- package/lib/components/TextTile/TextTile.stories.d.ts +76 -0
- package/lib/components/TextTile/TextTile.stories.d.ts.map +1 -0
- package/lib/components/TextTile/index.d.ts +2 -0
- package/lib/components/TextTile/index.d.ts.map +1 -0
- package/lib/components/Textarea/Textarea.d.ts +28 -0
- package/lib/components/Textarea/Textarea.d.ts.map +1 -0
- package/lib/components/Textarea/Textarea.js +17 -5
- package/lib/components/Textarea/Textarea.stories.d.ts +264 -0
- package/lib/components/Textarea/Textarea.stories.d.ts.map +1 -0
- package/lib/components/Textarea/index.d.ts +3 -0
- package/lib/components/Textarea/index.d.ts.map +1 -0
- package/lib/components/Timeline/Timeline.d.ts +18 -0
- package/lib/components/Timeline/Timeline.d.ts.map +1 -0
- package/lib/components/Timeline/Timeline.js +11 -2
- package/lib/components/Timeline/Timeline.stories.d.ts +62 -0
- package/lib/components/Timeline/Timeline.stories.d.ts.map +1 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +28 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts.map +1 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.js +12 -3
- package/lib/components/Timeline/TimelineItem/TimelineItem.stories.d.ts +184 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.stories.d.ts.map +1 -0
- package/lib/components/Timeline/TimelineItem/index.d.ts +2 -0
- package/lib/components/Timeline/TimelineItem/index.d.ts.map +1 -0
- package/lib/components/Timeline/index.d.ts +3 -0
- package/lib/components/Timeline/index.d.ts.map +1 -0
- package/lib/components/Toast/Toast.d.ts +46 -0
- package/lib/components/Toast/Toast.d.ts.map +1 -0
- package/lib/components/Toast/Toast.js +10 -1
- package/lib/components/Toast/Toast.stories.d.ts +105 -0
- package/lib/components/Toast/Toast.stories.d.ts.map +1 -0
- package/lib/components/Toast/ToastContainer.d.ts +3 -0
- package/lib/components/Toast/ToastContainer.d.ts.map +1 -0
- package/lib/components/Toast/ToastContainer.js +2 -5
- package/lib/components/Toast/ToastManager.d.ts +23 -0
- package/lib/components/Toast/ToastManager.d.ts.map +1 -0
- package/lib/components/Toast/ToastManager.js +1 -0
- package/lib/components/Toast/index.d.ts +5 -0
- package/lib/components/Toast/index.d.ts.map +1 -0
- package/lib/components/Toggle/Toggle.d.ts +30 -0
- package/lib/components/Toggle/Toggle.d.ts.map +1 -0
- package/lib/components/Toggle/Toggle.js +4 -0
- package/lib/components/Toggle/Toggle.stories.d.ts +142 -0
- package/lib/components/Toggle/Toggle.stories.d.ts.map +1 -0
- package/lib/components/Toggle/index.d.ts +2 -0
- package/lib/components/Toggle/index.d.ts.map +1 -0
- package/lib/components/TokenListInput/TokenListInput.d.ts +57 -0
- package/lib/components/TokenListInput/TokenListInput.d.ts.map +1 -0
- package/lib/components/TokenListInput/TokenListInput.js +27 -10
- package/lib/components/TokenListInput/TokenListInput.stories.d.ts +379 -0
- package/lib/components/TokenListInput/TokenListInput.stories.d.ts.map +1 -0
- package/lib/components/TokenListInput/TokenValueChips.d.ts +20 -0
- package/lib/components/TokenListInput/TokenValueChips.d.ts.map +1 -0
- package/lib/components/TokenListInput/TokenValueChips.js +2 -4
- package/lib/components/TokenListInput/index.d.ts +2 -0
- package/lib/components/TokenListInput/index.d.ts.map +1 -0
- package/lib/components/Tooltip/Tooltip.d.ts +44 -0
- package/lib/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/lib/components/Tooltip/Tooltip.js +6 -3
- package/lib/components/Tooltip/Tooltip.stories.d.ts +172 -0
- package/lib/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/lib/components/Tooltip/index.d.ts +2 -0
- package/lib/components/Tooltip/index.d.ts.map +1 -0
- package/lib/components/Truncate/Truncate.d.ts +12 -0
- package/lib/components/Truncate/Truncate.d.ts.map +1 -0
- package/lib/components/Truncate/Truncate.js +5 -1
- package/lib/components/Truncate/Truncate.stories.d.ts +94 -0
- package/lib/components/Truncate/Truncate.stories.d.ts.map +1 -0
- package/lib/components/Truncate/index.d.ts +3 -0
- package/lib/components/Truncate/index.d.ts.map +1 -0
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts +16 -0
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.d.ts.map +1 -0
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js +6 -1
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.d.ts +110 -0
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.d.ts.map +1 -0
- package/lib/components/TruncatedTextWithTooltip/index.d.ts +2 -0
- package/lib/components/TruncatedTextWithTooltip/index.d.ts.map +1 -0
- package/lib/components/Typeahead/SimpleTypeahead.d.ts +41 -0
- package/lib/components/Typeahead/SimpleTypeahead.d.ts.map +1 -0
- package/lib/components/Typeahead/SimpleTypeahead.js +5 -1
- package/lib/components/Typeahead/SimpleTypeahead.stories.d.ts +396 -0
- package/lib/components/Typeahead/SimpleTypeahead.stories.d.ts.map +1 -0
- package/lib/components/Typeahead/Typeahead.d.ts +30 -0
- package/lib/components/Typeahead/Typeahead.d.ts.map +1 -0
- package/lib/components/Typeahead/Typeahead.js +16 -7
- package/lib/components/Typeahead/Typeahead.stories.d.ts +399 -0
- package/lib/components/Typeahead/Typeahead.stories.d.ts.map +1 -0
- package/lib/components/Typeahead/index.d.ts +3 -0
- package/lib/components/Typeahead/index.d.ts.map +1 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts +36 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.d.ts.map +1 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.stories.d.ts +238 -0
- package/lib/components/WeekdayPicker/WeekdayPicker.stories.d.ts.map +1 -0
- package/lib/components/WeekdayPicker/index.d.ts +2 -0
- package/lib/components/WeekdayPicker/index.d.ts.map +1 -0
- package/lib/components/index.d.ts +76 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/flow-to-typescript-codemod.d.ts +49 -0
- package/lib/hooks/index.d.ts +17 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useArbitraryOptionAddition/index.d.ts +2 -0
- package/lib/hooks/useArbitraryOptionAddition/index.d.ts.map +1 -0
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts +24 -0
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.d.ts.map +1 -0
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.js +9 -9
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.d.ts +18 -0
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.d.ts.map +1 -0
- package/lib/hooks/useCopyToClipboard/index.d.ts +2 -0
- package/lib/hooks/useCopyToClipboard/index.d.ts.map +1 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.d.ts +5 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.d.ts.map +1 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js +1 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.stories.d.ts +24 -0
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.stories.d.ts.map +1 -0
- package/lib/hooks/useDebounce/index.d.ts +2 -0
- package/lib/hooks/useDebounce/index.d.ts.map +1 -0
- package/lib/hooks/useDebounce/useDebounce.d.ts +2 -0
- package/lib/hooks/useDebounce/useDebounce.d.ts.map +1 -0
- package/lib/hooks/useDebounce/useDebounce.stories.d.ts +26 -0
- package/lib/hooks/useDebounce/useDebounce.stories.d.ts.map +1 -0
- package/lib/hooks/useFileUpload/index.d.ts +2 -0
- package/lib/hooks/useFileUpload/index.d.ts.map +1 -0
- package/lib/hooks/useFileUpload/useFileUpload.d.ts +17 -0
- package/lib/hooks/useFileUpload/useFileUpload.d.ts.map +1 -0
- package/lib/hooks/useFileUpload/useFileUpload.js +7 -2
- package/lib/hooks/useFileUpload/useFileUpload.stories.d.ts +16 -0
- package/lib/hooks/useFileUpload/useFileUpload.stories.d.ts.map +1 -0
- package/lib/hooks/useFilteredOptions/index.d.ts +2 -0
- package/lib/hooks/useFilteredOptions/index.d.ts.map +1 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts +17 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.d.ts.map +1 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.js +3 -1
- package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.d.ts +18 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.d.ts.map +1 -0
- package/lib/hooks/useInfiniteScroll/index.d.ts +2 -0
- package/lib/hooks/useInfiniteScroll/index.d.ts.map +1 -0
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +15 -0
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.d.ts.map +1 -0
- package/lib/hooks/useInputState/index.d.ts +2 -0
- package/lib/hooks/useInputState/index.d.ts.map +1 -0
- package/lib/hooks/useInputState/useInputState.d.ts +16 -0
- package/lib/hooks/useInputState/useInputState.d.ts.map +1 -0
- package/lib/hooks/useInputState/useInputState.js +3 -1
- package/lib/hooks/useInputState/useInputState.stories.d.ts +16 -0
- package/lib/hooks/useInputState/useInputState.stories.d.ts.map +1 -0
- package/lib/hooks/useLockedBody/index.d.ts +2 -0
- package/lib/hooks/useLockedBody/index.d.ts.map +1 -0
- package/lib/hooks/useLockedBody/useLockedBody.d.ts +4 -0
- package/lib/hooks/useLockedBody/useLockedBody.d.ts.map +1 -0
- package/lib/hooks/useLockedBody/useLockedBody.stories.d.ts +17 -0
- package/lib/hooks/useLockedBody/useLockedBody.stories.d.ts.map +1 -0
- package/lib/hooks/useModal/index.d.ts +2 -0
- package/lib/hooks/useModal/index.d.ts.map +1 -0
- package/lib/hooks/useModal/useModal.d.ts +11 -0
- package/lib/hooks/useModal/useModal.d.ts.map +1 -0
- package/lib/hooks/useModal/useModal.stories.d.ts +16 -0
- package/lib/hooks/useModal/useModal.stories.d.ts.map +1 -0
- package/lib/hooks/useMountTransition/index.d.ts +3 -0
- package/lib/hooks/useMountTransition/index.d.ts.map +1 -0
- package/lib/hooks/useMountTransition/index.js +2 -0
- package/lib/hooks/useMountTransition/useMountTransition.stories.d.ts +16 -0
- package/lib/hooks/useMountTransition/useMountTransition.stories.d.ts.map +1 -0
- package/lib/hooks/usePagination/index.d.ts +2 -0
- package/lib/hooks/usePagination/index.d.ts.map +1 -0
- package/lib/hooks/usePagination/usePagination.d.ts +5 -0
- package/lib/hooks/usePagination/usePagination.d.ts.map +1 -0
- package/lib/hooks/usePagination/usePagination.js +3 -0
- package/lib/hooks/usePagination/usePagination.stories.d.ts +18 -0
- package/lib/hooks/usePagination/usePagination.stories.d.ts.map +1 -0
- package/lib/hooks/useReferenceElementWidth/index.d.ts +2 -0
- package/lib/hooks/useReferenceElementWidth/index.d.ts.map +1 -0
- package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.d.ts +2 -0
- package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.d.ts.map +1 -0
- package/lib/hooks/useResizeObserver/index.d.ts +2 -0
- package/lib/hooks/useResizeObserver/index.d.ts.map +1 -0
- package/lib/hooks/useResizeObserver/useResizeObserver.d.ts +3 -0
- package/lib/hooks/useResizeObserver/useResizeObserver.d.ts.map +1 -0
- package/lib/hooks/useResizeObserver/useResizeObserver.js +3 -0
- package/lib/hooks/useToastPortal/index.d.ts +2 -0
- package/lib/hooks/useToastPortal/index.d.ts.map +1 -0
- package/lib/hooks/useToastPortal/useToastPortal.d.ts +10 -0
- package/lib/hooks/useToastPortal/useToastPortal.d.ts.map +1 -0
- package/lib/hooks/useToastPortal/useToastPortal.js +3 -3
- package/lib/hooks/useToggle/index.d.ts +2 -0
- package/lib/hooks/useToggle/index.d.ts.map +1 -0
- package/lib/hooks/useToggle/useToggle.d.ts +2 -0
- package/lib/hooks/useToggle/useToggle.d.ts.map +1 -0
- package/lib/hooks/useToggle/useToggle.stories.d.ts +17 -0
- package/lib/hooks/useToggle/useToggle.stories.d.ts.map +1 -0
- package/lib/hooks/useWindowSize/index.d.ts +2 -0
- package/lib/hooks/useWindowSize/index.d.ts.map +1 -0
- package/lib/hooks/useWindowSize/useWindowSize.d.ts +7 -0
- package/lib/hooks/useWindowSize/useWindowSize.d.ts.map +1 -0
- package/lib/hooks/useWindowSize/useWindowSize.stories.d.ts +17 -0
- package/lib/hooks/useWindowSize/useWindowSize.stories.d.ts.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/stories/Border/Border.stories.d.ts +12 -0
- package/lib/stories/Border/Border.stories.d.ts.map +1 -0
- package/lib/stories/Color/Color.stories.d.ts +13 -0
- package/lib/stories/Color/Color.stories.d.ts.map +1 -0
- package/lib/stories/Elevation/Elevation.stories.d.ts +12 -0
- package/lib/stories/Elevation/Elevation.stories.d.ts.map +1 -0
- package/lib/stories/Introduction/index.d.ts +3 -0
- package/lib/stories/Introduction/index.d.ts.map +1 -0
- package/lib/stories/Motion/Motion.stories.d.ts +12 -0
- package/lib/stories/Motion/Motion.stories.d.ts.map +1 -0
- package/lib/stories/Opacity/Opacity.stories.d.ts +12 -0
- package/lib/stories/Opacity/Opacity.stories.d.ts.map +1 -0
- package/lib/stories/Shadow/Shadow.stories.d.ts +12 -0
- package/lib/stories/Shadow/Shadow.stories.d.ts.map +1 -0
- package/lib/stories/Size/Size.stories.d.ts +12 -0
- package/lib/stories/Size/Size.stories.d.ts.map +1 -0
- package/lib/stories/Space/Space.stories.d.ts +12 -0
- package/lib/stories/Space/Space.stories.d.ts.map +1 -0
- package/lib/stories/Tokens/index.d.ts +3 -0
- package/lib/stories/Tokens/index.d.ts.map +1 -0
- package/lib/styles/index.d.ts +268 -0
- package/lib/styles/index.d.ts.map +1 -0
- package/lib/styles/variables/_border.d.ts +13 -0
- package/lib/styles/variables/_border.d.ts.map +1 -0
- package/lib/styles/variables/_color.d.ts +105 -0
- package/lib/styles/variables/_color.d.ts.map +1 -0
- package/lib/styles/variables/_elevation.d.ts +8 -0
- package/lib/styles/variables/_elevation.d.ts.map +1 -0
- package/lib/styles/variables/_font.d.ts +31 -0
- package/lib/styles/variables/_font.d.ts.map +1 -0
- package/lib/styles/variables/_motion.d.ts +7 -0
- package/lib/styles/variables/_motion.d.ts.map +1 -0
- package/lib/styles/variables/_opacity.d.ts +16 -0
- package/lib/styles/variables/_opacity.d.ts.map +1 -0
- package/lib/styles/variables/_shadow.d.ts +25 -0
- package/lib/styles/variables/_shadow.d.ts.map +1 -0
- package/lib/styles/variables/_size.d.ts +58 -0
- package/lib/styles/variables/_size.d.ts.map +1 -0
- package/lib/styles/variables/_space.d.ts +13 -0
- package/lib/styles/variables/_space.d.ts.map +1 -0
- package/lib/types/charts.d.ts +233 -0
- package/lib/types/charts.d.ts.map +1 -0
- package/lib/types/charts.js +5 -1
- package/lib/types/common.d.ts +10 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/cssvariables.d.js +3 -0
- package/lib/types/date-range-picker.d.ts +21 -0
- package/lib/types/date-range-picker.d.ts.map +1 -0
- package/lib/types/date-range-picker.js +5 -1
- package/lib/types/flow-to-typescript-codemod.d.js +1 -0
- package/lib/types/global.d.js +1 -0
- package/lib/types/index.d.ts +7 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/menu.d.ts +13 -0
- package/lib/types/menu.d.ts.map +1 -0
- package/lib/types/menu.js +5 -1
- package/lib/types/toast.d.ts +28 -0
- package/lib/types/toast.d.ts.map +1 -0
- package/lib/types/toast.js +0 -2
- package/lib/types/typography.d.ts +17 -0
- package/lib/types/typography.d.ts.map +1 -0
- package/lib/utils/array/are-arrays-equal.d.ts +4 -0
- package/lib/utils/array/are-arrays-equal.d.ts.map +1 -0
- package/lib/utils/array/index.d.ts +2 -0
- package/lib/utils/array/index.d.ts.map +1 -0
- package/lib/utils/charts/charts.d.ts +17 -0
- package/lib/utils/charts/charts.d.ts.map +1 -0
- package/lib/utils/charts/columnChart.d.ts +8 -0
- package/lib/utils/charts/columnChart.d.ts.map +1 -0
- package/lib/utils/charts/columnChart.js +2 -1
- package/lib/utils/charts/donutChart.d.ts +21 -0
- package/lib/utils/charts/donutChart.d.ts.map +1 -0
- package/lib/utils/charts/donutChart.js +0 -1
- package/lib/utils/charts/funnelChart.d.ts +10 -0
- package/lib/utils/charts/funnelChart.d.ts.map +1 -0
- package/lib/utils/charts/funnelChart.js +2 -1
- package/lib/utils/charts/helpers.d.ts +76 -0
- package/lib/utils/charts/helpers.d.ts.map +1 -0
- package/lib/utils/charts/helpers.js +2 -5
- package/lib/utils/charts/index.d.ts +8 -0
- package/lib/utils/charts/index.d.ts.map +1 -0
- package/lib/utils/charts/lineChart.d.ts +7 -0
- package/lib/utils/charts/lineChart.d.ts.map +1 -0
- package/lib/utils/charts/lineChart.js +2 -1
- package/lib/utils/charts/spiderChart.d.ts +18 -0
- package/lib/utils/charts/spiderChart.d.ts.map +1 -0
- package/lib/utils/charts/typography.d.ts +58 -0
- package/lib/utils/charts/typography.d.ts.map +1 -0
- package/lib/utils/classify/classify.stories.d.ts +17 -0
- package/lib/utils/classify/classify.stories.d.ts.map +1 -0
- package/lib/utils/classify/index.d.ts +3 -0
- package/lib/utils/classify/index.d.ts.map +1 -0
- package/lib/utils/classify/index.js +4 -2
- package/lib/utils/click-away/ClickAway.stories.d.ts +106 -0
- package/lib/utils/click-away/ClickAway.stories.d.ts.map +1 -0
- package/lib/utils/click-away/click-away.d.ts +73 -0
- package/lib/utils/click-away/click-away.d.ts.map +1 -0
- package/lib/utils/click-away/click-away.js +4 -3
- package/lib/utils/click-away/index.d.ts +2 -0
- package/lib/utils/click-away/index.d.ts.map +1 -0
- package/lib/utils/date-range-picker/date-range-picker.d.ts +64 -0
- package/lib/utils/date-range-picker/date-range-picker.d.ts.map +1 -0
- package/lib/utils/date-range-picker/date-range-picker.js +9 -10
- package/lib/utils/date-range-picker/index.d.ts +3 -0
- package/lib/utils/date-range-picker/index.d.ts.map +1 -0
- package/lib/utils/date-range-picker/timezones.d.ts +5 -0
- package/lib/utils/date-range-picker/timezones.d.ts.map +1 -0
- package/lib/utils/date-range-picker/timezones.js +0 -1
- package/lib/utils/dom/dom.d.ts +30 -0
- package/lib/utils/dom/dom.d.ts.map +1 -0
- package/lib/utils/dom/dom.js +19 -16
- package/lib/utils/dom/dom.stories.d.ts +15 -0
- package/lib/utils/dom/dom.stories.d.ts.map +1 -0
- package/lib/utils/dom/index.d.ts +2 -0
- package/lib/utils/dom/index.d.ts.map +1 -0
- package/lib/utils/helpers/helpers.d.ts +4 -0
- package/lib/utils/helpers/helpers.d.ts.map +1 -0
- package/lib/utils/helpers/helpers.stories.d.ts +15 -0
- package/lib/utils/helpers/helpers.stories.d.ts.map +1 -0
- package/lib/utils/helpers/index.d.ts +2 -0
- package/lib/utils/helpers/index.d.ts.map +1 -0
- package/lib/utils/index.d.ts +15 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/index.d.ts +2 -0
- package/lib/utils/makeClassNameComponent/index.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts +21 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.js +28 -32
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.stories.d.ts +15 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.stories.d.ts.map +1 -0
- package/lib/utils/menu/index.d.ts +2 -0
- package/lib/utils/menu/index.d.ts.map +1 -0
- package/lib/utils/menu/menu.d.ts +20 -0
- package/lib/utils/menu/menu.d.ts.map +1 -0
- package/lib/utils/menu/menu.js +0 -2
- package/lib/utils/merge-refs/index.d.ts +2 -0
- package/lib/utils/merge-refs/index.d.ts.map +1 -0
- package/lib/utils/merge-refs/merge-refs.d.ts +4 -0
- package/lib/utils/merge-refs/merge-refs.d.ts.map +1 -0
- package/lib/utils/merge-refs/merge-refs.stories.d.ts +15 -0
- package/lib/utils/merge-refs/merge-refs.stories.d.ts.map +1 -0
- package/lib/utils/rating/index.d.ts +2 -0
- package/lib/utils/rating/index.d.ts.map +1 -0
- package/lib/utils/rating/rating.d.ts +13 -0
- package/lib/utils/rating/rating.d.ts.map +1 -0
- package/lib/utils/score-bar/index.d.ts +2 -0
- package/lib/utils/score-bar/index.d.ts.map +1 -0
- package/lib/utils/score-bar/score-bar.d.ts +10 -0
- package/lib/utils/score-bar/score-bar.d.ts.map +1 -0
- package/lib/utils/string/index.d.ts +2 -0
- package/lib/utils/string/index.d.ts.map +1 -0
- package/lib/utils/string/string.d.ts +6 -0
- package/lib/utils/string/string.d.ts.map +1 -0
- package/lib/utils/string/string.stories.d.ts +15 -0
- package/lib/utils/string/string.stories.d.ts.map +1 -0
- package/lib/utils/token-list-input/token-list-input.d.ts +15 -0
- package/lib/utils/token-list-input/token-list-input.d.ts.map +1 -0
- package/lib/utils/token-list-input/token-list-input.js +0 -2
- package/lib/utils/tokens/index.d.ts +2 -0
- package/lib/utils/tokens/index.d.ts.map +1 -0
- package/lib/utils/tokens/tokens.d.ts +41 -0
- package/lib/utils/tokens/tokens.d.ts.map +1 -0
- package/lint-staged.config.js +1 -1
- package/package.json +56 -23
- package/tsconfig.declaration.json +11 -0
- package/tsconfig.json +35 -0
- package/.flowconfig +0 -45
- package/.storybook/SenseTheme.js +0 -11
- package/.storybook/main.js +0 -93
- package/.storybook/manager.js +0 -9
- package/.storybook/preview.js +0 -124
- package/dts-generator/.editorconfig +0 -10
- package/dts-generator/.gitattributes +0 -4
- package/dts-generator/README.md +0 -63
- package/dts-generator/convert.js +0 -107
- package/dts-generator/package.json +0 -16
- package/flow-typed/npm/lodash_v4.x.x.js +0 -6407
- package/lib/components/Accordion/Accordion.js.flow +0 -115
- package/lib/components/Accordion/AccordionGroup.js.flow +0 -77
- package/lib/components/Accordion/index.js.flow +0 -4
- package/lib/components/Avatar/Avatar.js.flow +0 -269
- package/lib/components/Avatar/index.js.flow +0 -3
- package/lib/components/AvatarGroup/AvatarGroup.js.flow +0 -164
- package/lib/components/AvatarGroup/index.js.flow +0 -3
- package/lib/components/Badge/Badge.js.flow +0 -147
- package/lib/components/Badge/index.js.flow +0 -3
- package/lib/components/BadgedIcon/BadgedIcon.js.flow +0 -73
- package/lib/components/BadgedIcon/index.js.flow +0 -3
- package/lib/components/Banner/Banner.js.flow +0 -60
- package/lib/components/Banner/index.js.flow +0 -3
- package/lib/components/Breadcrumbs/BreadcrumbLink/BreadcrumbLink.js.flow +0 -58
- package/lib/components/Breadcrumbs/BreadcrumbLink/index.js.flow +0 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js.flow +0 -59
- package/lib/components/Breadcrumbs/index.js.flow +0 -4
- package/lib/components/Button/Button.js.flow +0 -286
- package/lib/components/Button/index.js.flow +0 -16
- package/lib/components/ButtonDropdown/ButtonDropdown.js.flow +0 -226
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js.flow +0 -169
- package/lib/components/ButtonDropdown/index.js.flow +0 -4
- package/lib/components/ButtonTabs/ButtonTab/ButtonTab.js.flow +0 -82
- package/lib/components/ButtonTabs/ButtonTab/index.js.flow +0 -3
- package/lib/components/ButtonTabs/ButtonTabDropdown.js.flow +0 -150
- package/lib/components/ButtonTabs/ButtonTabs.js.flow +0 -121
- package/lib/components/ButtonTabs/index.js.flow +0 -4
- package/lib/components/Card/Card.js.flow +0 -174
- package/lib/components/Card/index.js.flow +0 -3
- package/lib/components/Charts/ChartTooltip/index.js.flow +0 -15
- package/lib/components/Charts/ChartWrapper/ChartWrapper.js.flow +0 -190
- package/lib/components/Charts/ChartWrapper/index.js.flow +0 -3
- package/lib/components/Charts/ColumnChart/ColumnChart.js.flow +0 -126
- package/lib/components/Charts/ColumnChart/index.js.flow +0 -3
- package/lib/components/Charts/DonutChart/DonutChart.js.flow +0 -158
- package/lib/components/Charts/DonutChart/index.js.flow +0 -3
- package/lib/components/Charts/FunnelChart/FunnelChart.js.flow +0 -115
- package/lib/components/Charts/FunnelChart/index.js.flow +0 -3
- package/lib/components/Charts/LineChart/LineChart.js.flow +0 -113
- package/lib/components/Charts/LineChart/index.js.flow +0 -3
- package/lib/components/Charts/SpiderChart/SpiderChart.js.flow +0 -111
- package/lib/components/Charts/SpiderChart/index.js.flow +0 -3
- package/lib/components/Charts/index.js.flow +0 -9
- package/lib/components/ChatBubble/ChatBubble.js.flow +0 -222
- package/lib/components/ChatBubble/index.js.flow +0 -3
- package/lib/components/Checkbox/Checkbox.js.flow +0 -168
- package/lib/components/Checkbox/CheckboxGroup.js.flow +0 -116
- package/lib/components/Checkbox/index.js.flow +0 -3
- package/lib/components/Chip/Chip.js.flow +0 -199
- package/lib/components/Chip/index.js.flow +0 -4
- package/lib/components/CircularLoader/CircularLoader.js.flow +0 -58
- package/lib/components/CircularLoader/index.js.flow +0 -3
- package/lib/components/CollapsibleCard/CollapsibleCard.js.flow +0 -146
- package/lib/components/CollapsibleCard/index.js.flow +0 -3
- package/lib/components/Combobox/Combobox.js.flow +0 -287
- package/lib/components/Combobox/helper.js.flow +0 -204
- package/lib/components/Combobox/index.js.flow +0 -3
- package/lib/components/ConditionalWrapper/ConditionalWrapper.js.flow +0 -16
- package/lib/components/ConditionalWrapper/index.js.flow +0 -3
- package/lib/components/DateRangePicker/Calendar.js.flow +0 -112
- package/lib/components/DateRangePicker/DateRangePicker.js.flow +0 -214
- package/lib/components/DateRangePicker/DateRangeWrapper.js.flow +0 -384
- package/lib/components/DateRangePicker/Day.js.flow +0 -75
- package/lib/components/DateRangePicker/index.js.flow +0 -3
- package/lib/components/Dialog/Dialog.js.flow +0 -228
- package/lib/components/Dialog/index.js.flow +0 -2
- package/lib/components/Disclaimer/Disclaimer.js.flow +0 -41
- package/lib/components/Disclaimer/index.js.flow +0 -3
- package/lib/components/Dropdown/Dropdown.js.flow +0 -176
- package/lib/components/Dropdown/SimpleDropdown.js.flow +0 -170
- package/lib/components/Dropdown/index.js.flow +0 -4
- package/lib/components/EmptyState/EmptyImages/CalendarEmptyImage.js.flow +0 -112
- package/lib/components/EmptyState/EmptyImages/ChartEmptyImage.js.flow +0 -198
- package/lib/components/EmptyState/EmptyImages/DataEmptyImage.js.flow +0 -120
- package/lib/components/EmptyState/EmptyImages/FileEmptyImage.js.flow +0 -137
- package/lib/components/EmptyState/EmptyImages/MessageEmptyImage.js.flow +0 -68
- package/lib/components/EmptyState/EmptyImages/UploadEmptyImage.js.flow +0 -71
- package/lib/components/EmptyState/EmptyImages/index.js.flow +0 -8
- package/lib/components/EmptyState/EmptyState.js.flow +0 -91
- package/lib/components/EmptyState/index.js.flow +0 -3
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.js.flow +0 -89
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.js.flow +0 -121
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.js.flow +0 -241
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.js.flow +0 -77
- package/lib/components/ErrorMessage/ErrorImages/index.js.flow +0 -6
- package/lib/components/ErrorMessage/ErrorMessage.js.flow +0 -95
- package/lib/components/ErrorMessage/index.js.flow +0 -3
- package/lib/components/FileUpload/FileBlock/FileBlock.js.flow +0 -139
- package/lib/components/FileUpload/FileBlock/index.js.flow +0 -3
- package/lib/components/FileUpload/FileUpload.js.flow +0 -212
- package/lib/components/FileUpload/index.js.flow +0 -4
- package/lib/components/FilterButtonOverlay/FilterButtonOverlay.js.flow +0 -166
- package/lib/components/FilterButtonOverlay/index.js.flow +0 -3
- package/lib/components/FocusManager/FocusManager.js.flow +0 -57
- package/lib/components/FocusManager/index.js.flow +0 -3
- package/lib/components/FocusManagerWithArrowKeyNavigation/FocusManagerWithArrowKeyNavigation.js.flow +0 -152
- package/lib/components/FocusManagerWithArrowKeyNavigation/index.js.flow +0 -3
- package/lib/components/FormTitleWrapper/FormTitleWrapper.js.flow +0 -68
- package/lib/components/FormTitleWrapper/index.js.flow +0 -3
- package/lib/components/Grid/Grid.js.flow +0 -110
- package/lib/components/Grid/index.js.flow +0 -3
- package/lib/components/Icon/ClickableIcon.js.flow +0 -111
- package/lib/components/Icon/Icon.docs.js.flow +0 -120
- package/lib/components/Icon/Icon.js.flow +0 -77
- package/lib/components/Icon/SemanticIcon.js.flow +0 -48
- package/lib/components/Icon/index.js.flow +0 -5
- package/lib/components/InContextAlert/InContextAlert.js.flow +0 -208
- package/lib/components/InContextAlert/index.js.flow +0 -3
- package/lib/components/InfinitePagination/InfinitePagination.js.flow +0 -122
- package/lib/components/InfinitePagination/index.js.flow +0 -3
- package/lib/components/InlineDropdown/InlineDropdown.js.flow +0 -181
- package/lib/components/InlineDropdown/SimpleInlineDropdown.js.flow +0 -167
- package/lib/components/InlineDropdown/index.js.flow +0 -4
- package/lib/components/Input/Input.js.flow +0 -325
- package/lib/components/Input/index.js.flow +0 -3
- package/lib/components/KPIBox/KPIBox.js.flow +0 -98
- package/lib/components/KPIBox/index.js.flow +0 -3
- package/lib/components/LinearLoader/LinearLoader.js.flow +0 -49
- package/lib/components/LinearLoader/index.js.flow +0 -3
- package/lib/components/Link/Link.js.flow +0 -231
- package/lib/components/Link/index.js.flow +0 -3
- package/lib/components/Menu/Menu.js.flow +0 -391
- package/lib/components/Menu/MenuOptionButton.js.flow +0 -201
- package/lib/components/Menu/index.js.flow +0 -4
- package/lib/components/Modal/Modal.js.flow +0 -370
- package/lib/components/Modal/index.js.flow +0 -15
- package/lib/components/Notification/Notification.js.flow +0 -149
- package/lib/components/Notification/index.js.flow +0 -3
- package/lib/components/OptionButton/OptionButton.js.flow +0 -153
- package/lib/components/OptionButton/SimpleOptionButton.js.flow +0 -161
- package/lib/components/OptionButton/index.js.flow +0 -4
- package/lib/components/PageTitle/PageTitle.js.flow +0 -267
- package/lib/components/PageTitle/index.js.flow +0 -3
- package/lib/components/Pagination/Pagination.js.flow +0 -158
- package/lib/components/Pagination/PaginationItem.js.flow +0 -120
- package/lib/components/Pagination/index.js.flow +0 -3
- package/lib/components/Panel/Panel.js.flow +0 -181
- package/lib/components/Panel/index.js.flow +0 -10
- package/lib/components/ProgressDonut/ProgressDonut.js.flow +0 -111
- package/lib/components/ProgressDonut/index.js.flow +0 -3
- package/lib/components/PromptChip/PromptChip.js.flow +0 -166
- package/lib/components/PromptChip/index.js.flow +0 -3
- package/lib/components/PromptInput/PromptInput.js.flow +0 -194
- package/lib/components/PromptInput/index.js.flow +0 -3
- package/lib/components/RadioButton/RadioButton.js.flow +0 -134
- package/lib/components/RadioButton/RadioGroup.js.flow +0 -94
- package/lib/components/RadioButton/index.js.flow +0 -3
- package/lib/components/RadioTile/RadioTile.js.flow +0 -110
- package/lib/components/RadioTile/index.js.flow +0 -3
- package/lib/components/RangeSlider/RangeSlider.js.flow +0 -202
- package/lib/components/RangeSlider/index.js.flow +0 -3
- package/lib/components/Rating/Rating.js.flow +0 -134
- package/lib/components/Rating/index.js.flow +0 -3
- package/lib/components/ScoreBar/ScoreBar.js.flow +0 -135
- package/lib/components/ScoreBar/index.js.flow +0 -3
- package/lib/components/SearchInput/SearchInput.js.flow +0 -88
- package/lib/components/SearchInput/index.js.flow +0 -4
- package/lib/components/Separator/Separator.js.flow +0 -60
- package/lib/components/Separator/index.js.flow +0 -3
- package/lib/components/Shimmer/Shimmer.js.flow +0 -141
- package/lib/components/Shimmer/index.js.flow +0 -3
- package/lib/components/SideMenuLink/SideMenuLink.js.flow +0 -344
- package/lib/components/SideMenuLink/index.js.flow +0 -3
- package/lib/components/StatusIndicator/StatusIndicator.js.flow +0 -68
- package/lib/components/StatusIndicator/index.js.flow +0 -3
- package/lib/components/Stepper/Step/Step.js.flow +0 -123
- package/lib/components/Stepper/Step/StepContent.js.flow +0 -40
- package/lib/components/Stepper/Step/StepLabel.js.flow +0 -40
- package/lib/components/Stepper/Step/index.js.flow +0 -5
- package/lib/components/Stepper/Stepper.js.flow +0 -64
- package/lib/components/Stepper/index.js.flow +0 -4
- package/lib/components/StickyBar/StickyBar.js.flow +0 -67
- package/lib/components/StickyBar/index.js.flow +0 -3
- package/lib/components/SubMenu/SubMenu.js.flow +0 -96
- package/lib/components/SubMenu/SubMenuGroup.js.flow +0 -156
- package/lib/components/SubMenu/SubMenuItem.js.flow +0 -170
- package/lib/components/SubMenu/SubMenuLink.js.flow +0 -89
- package/lib/components/SubMenu/index.js.flow +0 -6
- package/lib/components/Table/Cell.js.flow +0 -122
- package/lib/components/Table/DefaultRow.js.flow +0 -152
- package/lib/components/Table/DefaultTableHeader.js.flow +0 -240
- package/lib/components/Table/StaticTable.js.flow +0 -576
- package/lib/components/Table/Table.docs.js.flow +0 -550
- package/lib/components/Table/Table.js.flow +0 -154
- package/lib/components/Table/TableActionBar.js.flow +0 -55
- package/lib/components/Table/TableBottomBar.js.flow +0 -28
- package/lib/components/Table/TableTopBar.js.flow +0 -28
- package/lib/components/Table/dummyTableData.js.flow +0 -2191
- package/lib/components/Table/hooks.js.flow +0 -97
- package/lib/components/Table/index.js.flow +0 -10
- package/lib/components/Tabs/Tab/Tab.js.flow +0 -140
- package/lib/components/Tabs/Tab/index.js.flow +0 -3
- package/lib/components/Tabs/TabList/TabDropdown.js.flow +0 -123
- package/lib/components/Tabs/TabList/TabList.js.flow +0 -161
- package/lib/components/Tabs/TabList/index.js.flow +0 -3
- package/lib/components/Tabs/index.js.flow +0 -4
- package/lib/components/Text/Text.js.flow +0 -1060
- package/lib/components/Text/index.js.flow +0 -32
- package/lib/components/TextTile/TextTile.js.flow +0 -44
- package/lib/components/TextTile/index.js.flow +0 -3
- package/lib/components/Textarea/Textarea.js.flow +0 -139
- package/lib/components/Textarea/index.js.flow +0 -4
- package/lib/components/Timeline/Timeline.js.flow +0 -47
- package/lib/components/Timeline/TimelineItem/TimelineItem.js.flow +0 -127
- package/lib/components/Timeline/TimelineItem/index.js.flow +0 -3
- package/lib/components/Timeline/index.js.flow +0 -4
- package/lib/components/Toast/Toast.js.flow +0 -249
- package/lib/components/Toast/ToastContainer.js.flow +0 -125
- package/lib/components/Toast/ToastManager.js.flow +0 -67
- package/lib/components/Toast/index.js.flow +0 -12
- package/lib/components/Toggle/Toggle.js.flow +0 -115
- package/lib/components/Toggle/index.js.flow +0 -2
- package/lib/components/TokenListInput/TokenListInput.js.flow +0 -389
- package/lib/components/TokenListInput/TokenValueChips.js.flow +0 -69
- package/lib/components/TokenListInput/index.js.flow +0 -3
- package/lib/components/Tooltip/Tooltip.js.flow +0 -206
- package/lib/components/Tooltip/index.js.flow +0 -3
- package/lib/components/Truncate/Truncate.js.flow +0 -86
- package/lib/components/Truncate/index.js.flow +0 -4
- package/lib/components/TruncatedTextWithTooltip/TruncatedTextWithTooltip.js.flow +0 -104
- package/lib/components/TruncatedTextWithTooltip/index.js.flow +0 -3
- package/lib/components/Typeahead/SimpleTypeahead.js.flow +0 -164
- package/lib/components/Typeahead/Typeahead.js.flow +0 -250
- package/lib/components/Typeahead/index.js.flow +0 -4
- package/lib/components/WeekdayPicker/WeekdayPicker.js.flow +0 -229
- package/lib/components/WeekdayPicker/index.js.flow +0 -3
- package/lib/components/index.js.flow +0 -77
- package/lib/hooks/index.js.flow +0 -18
- package/lib/hooks/useArbitraryOptionAddition/index.js.flow +0 -3
- package/lib/hooks/useArbitraryOptionAddition/useArbitraryOptionAddition.js.flow +0 -117
- package/lib/hooks/useCopyToClipboard/index.js.flow +0 -3
- package/lib/hooks/useCopyToClipboard/useCopyToClipboard.js.flow +0 -31
- package/lib/hooks/useDebounce/index.js.flow +0 -3
- package/lib/hooks/useDebounce/useDebounce.js.flow +0 -17
- package/lib/hooks/useFileUpload/index.js.flow +0 -3
- package/lib/hooks/useFileUpload/useFileUpload.js.flow +0 -304
- package/lib/hooks/useFilteredOptions/index.js.flow +0 -3
- package/lib/hooks/useFilteredOptions/useFilteredOptions.js.flow +0 -81
- package/lib/hooks/useInfiniteScroll/index.js.flow +0 -3
- package/lib/hooks/useInfiniteScroll/useInfiniteScroll.js.flow +0 -82
- package/lib/hooks/useInputState/index.js.flow +0 -3
- package/lib/hooks/useInputState/useInputState.js.flow +0 -28
- package/lib/hooks/useLockedBody/index.js.flow +0 -3
- package/lib/hooks/useLockedBody/useLockedBody.js.flow +0 -54
- package/lib/hooks/useModal/index.js.flow +0 -3
- package/lib/hooks/useModal/useModal.js.flow +0 -39
- package/lib/hooks/useMountTransition/index.js.flow +0 -27
- package/lib/hooks/usePagination/index.js.flow +0 -3
- package/lib/hooks/usePagination/usePagination.js.flow +0 -155
- package/lib/hooks/useReferenceElementWidth/index.js.flow +0 -3
- package/lib/hooks/useReferenceElementWidth/useReferenceElementWidth.js.flow +0 -23
- package/lib/hooks/useResizeObserver/index.js.flow +0 -3
- package/lib/hooks/useResizeObserver/useResizeObserver.js.flow +0 -28
- package/lib/hooks/useToastPortal/index.js.flow +0 -3
- package/lib/hooks/useToastPortal/useToastPortal.js.flow +0 -30
- package/lib/hooks/useToggle/index.js.flow +0 -3
- package/lib/hooks/useToggle/useToggle.js.flow +0 -17
- package/lib/hooks/useWindowSize/index.js.flow +0 -3
- package/lib/hooks/useWindowSize/useWindowSize.js.flow +0 -41
- package/lib/index.js.flow +0 -7
- package/lib/styles/index.js.flow +0 -535
- package/lib/styles/variables/_border.js.flow +0 -25
- package/lib/styles/variables/_color.js.flow +0 -209
- package/lib/styles/variables/_elevation.js.flow +0 -15
- package/lib/styles/variables/_font.js.flow +0 -61
- package/lib/styles/variables/_motion.js.flow +0 -13
- package/lib/styles/variables/_opacity.js.flow +0 -31
- package/lib/styles/variables/_shadow.js.flow +0 -49
- package/lib/styles/variables/_size.js.flow +0 -115
- package/lib/styles/variables/_space.js.flow +0 -25
- package/lib/types/charts.js.flow +0 -263
- package/lib/types/common.js.flow +0 -13
- package/lib/types/date-range-picker.js.flow +0 -17
- package/lib/types/index.js.flow +0 -8
- package/lib/types/menu.js.flow +0 -15
- package/lib/types/toast.js.flow +0 -41
- package/lib/types/typography.js.flow +0 -19
- package/lib/utils/array/are-arrays-equal.js.flow +0 -14
- package/lib/utils/array/index.js.flow +0 -3
- package/lib/utils/charts/charts.js.flow +0 -111
- package/lib/utils/charts/columnChart.js.flow +0 -63
- package/lib/utils/charts/donutChart.js.flow +0 -119
- package/lib/utils/charts/funnelChart.js.flow +0 -102
- package/lib/utils/charts/helpers.js.flow +0 -68
- package/lib/utils/charts/index.js.flow +0 -9
- package/lib/utils/charts/lineChart.js.flow +0 -51
- package/lib/utils/charts/spiderChart.js.flow +0 -59
- package/lib/utils/charts/typography.js.flow +0 -53
- package/lib/utils/classify/index.js.flow +0 -29
- package/lib/utils/click-away/click-away.js.flow +0 -228
- package/lib/utils/click-away/index.js.flow +0 -3
- package/lib/utils/date-range-picker/date-range-picker.js.flow +0 -442
- package/lib/utils/date-range-picker/index.js.flow +0 -4
- package/lib/utils/date-range-picker/timezones.js.flow +0 -269
- package/lib/utils/dom/dom.js.flow +0 -238
- package/lib/utils/dom/index.js.flow +0 -3
- package/lib/utils/helpers/helpers.js.flow +0 -53
- package/lib/utils/helpers/index.js.flow +0 -3
- package/lib/utils/index.js.flow +0 -16
- package/lib/utils/makeClassNameComponent/index.js.flow +0 -3
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.js.flow +0 -70
- package/lib/utils/menu/index.js.flow +0 -3
- package/lib/utils/menu/menu.js.flow +0 -193
- package/lib/utils/merge-refs/index.js.flow +0 -3
- package/lib/utils/merge-refs/merge-refs.js.flow +0 -14
- package/lib/utils/rating/index.js.flow +0 -3
- package/lib/utils/rating/rating.js.flow +0 -35
- package/lib/utils/score-bar/index.js.flow +0 -3
- package/lib/utils/score-bar/score-bar.js.flow +0 -58
- package/lib/utils/string/index.js.flow +0 -3
- package/lib/utils/string/string.js.flow +0 -33
- package/lib/utils/token-list-input/token-list-input.js.flow +0 -37
- package/lib/utils/tokens/index.js.flow +0 -3
- package/lib/utils/tokens/tokens.js.flow +0 -244
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import {classify} from '../../utils/classify';
|
|
6
|
-
import {CircularLoader} from '../CircularLoader';
|
|
7
|
-
import type {IconType} from '../Icon';
|
|
8
|
-
import {Icon} from '../Icon';
|
|
9
|
-
import {Truncate} from '../Truncate';
|
|
10
|
-
|
|
11
|
-
import css from './Button.module.css';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
type ClassNames = $ReadOnly<{wrapper?: string, icon?: string, text?: string}>;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Note(Nishant): Although Button supports gradient as a type, its not currently customizable really.
|
|
18
|
-
* This only supports pre-defined gradient that moves from left to right.
|
|
19
|
-
* If someone wants to add more gradients, the expectation is that they would add it through a wrapper className.
|
|
20
|
-
*
|
|
21
|
-
* We could have taken an extra prop to take in the Gradient colors but that should not be encouraged
|
|
22
|
-
* as it would add an additional overhead on the component to figure out exact color values from string tokens
|
|
23
|
-
* and since this is rarely used type anyway, it should be avoided.
|
|
24
|
-
*/
|
|
25
|
-
export const BUTTON_TYPES = Object.freeze({
|
|
26
|
-
primary: 'primary',
|
|
27
|
-
secondary: 'secondary',
|
|
28
|
-
tertiary: 'tertiary',
|
|
29
|
-
ghost: 'ghost',
|
|
30
|
-
danger: 'danger',
|
|
31
|
-
gradient: 'gradient',
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export const BUTTON_ACTION_TYPE = Object.freeze({
|
|
35
|
-
button: 'button',
|
|
36
|
-
submit: 'submit',
|
|
37
|
-
reset: 'reset',
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
export const BUTTON_SIZE = Object.freeze({
|
|
41
|
-
small: 'small',
|
|
42
|
-
medium: 'medium',
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export type ButtonType = $Values<typeof BUTTON_TYPES>;
|
|
46
|
-
export type ButtonActionType = $Values<typeof BUTTON_ACTION_TYPE>;
|
|
47
|
-
export type ButtonSize = $Keys<typeof BUTTON_SIZE>;
|
|
48
|
-
|
|
49
|
-
export type BaseButtonProps = {
|
|
50
|
-
children?: React.Node,
|
|
51
|
-
disabled?: mixed,
|
|
52
|
-
actionType?: ButtonActionType,
|
|
53
|
-
onClick?: ?(SyntheticEvent<HTMLElement>) => mixed,
|
|
54
|
-
ariaLabel?: string,
|
|
55
|
-
tabIndex?: number,
|
|
56
|
-
isLoading?: boolean,
|
|
57
|
-
role?: string,
|
|
58
|
-
...
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type UnstyledButtonProps = {
|
|
62
|
-
...BaseButtonProps,
|
|
63
|
-
className?: string,
|
|
64
|
-
...
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export type ButtonProps = {
|
|
68
|
-
...BaseButtonProps,
|
|
69
|
-
classNames?: ClassNames,
|
|
70
|
-
iconLeftName?: string,
|
|
71
|
-
iconLeftType?: IconType,
|
|
72
|
-
iconRightName?: string,
|
|
73
|
-
iconRightType?: IconType,
|
|
74
|
-
type?: ButtonType,
|
|
75
|
-
isFluid?: boolean,
|
|
76
|
-
size?: ButtonSize,
|
|
77
|
-
...
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const ButtonTypeToIconColorMap = {
|
|
81
|
-
primary: 'inversePrimary',
|
|
82
|
-
secondary: 'clickable',
|
|
83
|
-
tertiary: 'primary',
|
|
84
|
-
ghost: 'primary',
|
|
85
|
-
danger: 'inversePrimary',
|
|
86
|
-
gradient: 'inversePrimary',
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const ButtonTypeToLoaderColorMap = {
|
|
90
|
-
primary: 'colorTextInversePrimary',
|
|
91
|
-
secondary: 'colorTextClickable',
|
|
92
|
-
tertiary: 'colorTextPrimary',
|
|
93
|
-
ghost: 'colorTextPrimary',
|
|
94
|
-
danger: 'colorTextInversePrimary',
|
|
95
|
-
gradient: 'colorTextInversePrimary',
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export const UnstyledButton: React$AbstractComponent<
|
|
99
|
-
UnstyledButtonProps,
|
|
100
|
-
HTMLButtonElement,
|
|
101
|
-
> = React.forwardRef<UnstyledButtonProps, HTMLButtonElement>(
|
|
102
|
-
(
|
|
103
|
-
{
|
|
104
|
-
disabled,
|
|
105
|
-
onClick,
|
|
106
|
-
className,
|
|
107
|
-
ariaLabel,
|
|
108
|
-
actionType,
|
|
109
|
-
tabIndex = 0,
|
|
110
|
-
isLoading,
|
|
111
|
-
role = 'button',
|
|
112
|
-
...props
|
|
113
|
-
}: UnstyledButtonProps,
|
|
114
|
-
ref,
|
|
115
|
-
) => (
|
|
116
|
-
<button
|
|
117
|
-
{...props}
|
|
118
|
-
{...(ariaLabel ? {'aria-label': ariaLabel} : {})}
|
|
119
|
-
className={className}
|
|
120
|
-
ref={ref}
|
|
121
|
-
role={role}
|
|
122
|
-
disabled={disabled}
|
|
123
|
-
tabIndex={disabled ? -1 : tabIndex}
|
|
124
|
-
type={actionType}
|
|
125
|
-
onClick={(event) => {
|
|
126
|
-
if (disabled || isLoading) {
|
|
127
|
-
event.preventDefault();
|
|
128
|
-
} else if (onClick) {
|
|
129
|
-
onClick(event);
|
|
130
|
-
}
|
|
131
|
-
}}
|
|
132
|
-
/>
|
|
133
|
-
),
|
|
134
|
-
);
|
|
135
|
-
|
|
136
|
-
export const Button: React$AbstractComponent<ButtonProps, HTMLButtonElement> =
|
|
137
|
-
React.forwardRef<ButtonProps, HTMLButtonElement>(
|
|
138
|
-
(
|
|
139
|
-
{
|
|
140
|
-
classNames,
|
|
141
|
-
children,
|
|
142
|
-
iconLeftName = '',
|
|
143
|
-
iconLeftType = 'regular',
|
|
144
|
-
iconRightName = '',
|
|
145
|
-
iconRightType = 'regular',
|
|
146
|
-
type = 'primary',
|
|
147
|
-
isFluid = false,
|
|
148
|
-
disabled = false,
|
|
149
|
-
actionType = 'button',
|
|
150
|
-
size = 'medium',
|
|
151
|
-
isLoading,
|
|
152
|
-
...props
|
|
153
|
-
}: ButtonProps,
|
|
154
|
-
ref,
|
|
155
|
-
) => (
|
|
156
|
-
<UnstyledButton
|
|
157
|
-
{...props}
|
|
158
|
-
actionType={actionType}
|
|
159
|
-
disabled={disabled}
|
|
160
|
-
isLoading={isLoading}
|
|
161
|
-
className={classify(
|
|
162
|
-
css.button,
|
|
163
|
-
{
|
|
164
|
-
[css.primary]: type === 'primary',
|
|
165
|
-
[css.secondary]: type === 'secondary',
|
|
166
|
-
[css.tertiary]: type === 'tertiary',
|
|
167
|
-
[css.ghost]: type === 'ghost',
|
|
168
|
-
[css.danger]: type === 'danger',
|
|
169
|
-
[css.gradient]: type === 'gradient',
|
|
170
|
-
[css.disabled]: disabled,
|
|
171
|
-
[css.small]: size === 'small',
|
|
172
|
-
[css.medium]: size === 'medium',
|
|
173
|
-
[css.isFluid]: isFluid === true,
|
|
174
|
-
[css.withIconLeft]: !!iconLeftName,
|
|
175
|
-
[css.withIconRight]: !!iconRightName,
|
|
176
|
-
[css.withBothIcon]: !!(iconLeftName && iconRightName),
|
|
177
|
-
[css.onlyIcon]: (iconLeftName || iconRightName) && !children,
|
|
178
|
-
},
|
|
179
|
-
classNames?.wrapper,
|
|
180
|
-
)}
|
|
181
|
-
ref={ref}
|
|
182
|
-
>
|
|
183
|
-
<div className={css.buttonRow}>
|
|
184
|
-
{/* Has no icon, only child */}
|
|
185
|
-
{!(iconLeftName || iconRightName) ? (
|
|
186
|
-
<div className={classify(css.textContainer, classNames?.text)}>
|
|
187
|
-
{isLoading && (
|
|
188
|
-
<div className={css.loader}>
|
|
189
|
-
<CircularLoader
|
|
190
|
-
size={size}
|
|
191
|
-
colorToken={
|
|
192
|
-
disabled
|
|
193
|
-
? 'colorTextDisabled'
|
|
194
|
-
: ButtonTypeToLoaderColorMap[type]
|
|
195
|
-
}
|
|
196
|
-
/>
|
|
197
|
-
</div>
|
|
198
|
-
)}
|
|
199
|
-
<Truncate className={classify({[css.hidden]: isLoading})}>
|
|
200
|
-
{children}
|
|
201
|
-
</Truncate>
|
|
202
|
-
</div>
|
|
203
|
-
) : // has icon, but no child
|
|
204
|
-
children == null ? (
|
|
205
|
-
<>
|
|
206
|
-
{isLoading && (
|
|
207
|
-
<div className={css.loader}>
|
|
208
|
-
<CircularLoader
|
|
209
|
-
size={size}
|
|
210
|
-
colorToken={
|
|
211
|
-
disabled
|
|
212
|
-
? 'colorTextDisabled'
|
|
213
|
-
: ButtonTypeToLoaderColorMap[type]
|
|
214
|
-
}
|
|
215
|
-
/>
|
|
216
|
-
</div>
|
|
217
|
-
)}
|
|
218
|
-
<Icon
|
|
219
|
-
name={iconLeftName || iconRightName}
|
|
220
|
-
color={disabled ? 'disabled' : ButtonTypeToIconColorMap[type]}
|
|
221
|
-
size={size === 'medium' ? 'medium' : 'small'}
|
|
222
|
-
type={iconLeftName ? iconLeftType : iconRightType}
|
|
223
|
-
className={classify(
|
|
224
|
-
{[css.hidden]: isLoading},
|
|
225
|
-
classNames?.icon,
|
|
226
|
-
)}
|
|
227
|
-
/>
|
|
228
|
-
</>
|
|
229
|
-
) : (
|
|
230
|
-
// has icon _and_ child
|
|
231
|
-
(iconLeftName || iconRightName) && (
|
|
232
|
-
<>
|
|
233
|
-
{iconLeftName && (
|
|
234
|
-
<Icon
|
|
235
|
-
name={iconLeftName}
|
|
236
|
-
color={
|
|
237
|
-
disabled ? 'disabled' : ButtonTypeToIconColorMap[type]
|
|
238
|
-
}
|
|
239
|
-
size={size === 'medium' ? 'medium' : 'small'}
|
|
240
|
-
type={iconLeftType}
|
|
241
|
-
className={classify(
|
|
242
|
-
{[css.hidden]: isLoading},
|
|
243
|
-
classNames?.icon,
|
|
244
|
-
)}
|
|
245
|
-
/>
|
|
246
|
-
)}
|
|
247
|
-
<div className={classify(css.textContainer, classNames?.text)}>
|
|
248
|
-
{isLoading && (
|
|
249
|
-
<div className={css.loader}>
|
|
250
|
-
<CircularLoader
|
|
251
|
-
size={size}
|
|
252
|
-
colorToken={
|
|
253
|
-
disabled
|
|
254
|
-
? 'colorTextDisabled'
|
|
255
|
-
: ButtonTypeToLoaderColorMap[type]
|
|
256
|
-
}
|
|
257
|
-
/>
|
|
258
|
-
</div>
|
|
259
|
-
)}
|
|
260
|
-
<Truncate className={classify({[css.hidden]: isLoading})}>
|
|
261
|
-
{children}
|
|
262
|
-
</Truncate>
|
|
263
|
-
</div>
|
|
264
|
-
{iconRightName && (
|
|
265
|
-
<Icon
|
|
266
|
-
name={iconRightName}
|
|
267
|
-
color={
|
|
268
|
-
disabled ? 'disabled' : ButtonTypeToIconColorMap[type]
|
|
269
|
-
}
|
|
270
|
-
size={size === 'medium' ? 'medium' : 'small'}
|
|
271
|
-
type={iconRightType}
|
|
272
|
-
className={classify(
|
|
273
|
-
{[css.hidden]: isLoading},
|
|
274
|
-
classNames?.icon,
|
|
275
|
-
)}
|
|
276
|
-
/>
|
|
277
|
-
)}
|
|
278
|
-
</>
|
|
279
|
-
)
|
|
280
|
-
)}
|
|
281
|
-
</div>
|
|
282
|
-
</UnstyledButton>
|
|
283
|
-
),
|
|
284
|
-
);
|
|
285
|
-
|
|
286
|
-
Button.name = Button.displayName = 'Button';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
export type {
|
|
4
|
-
ButtonActionType,
|
|
5
|
-
ButtonProps,
|
|
6
|
-
ButtonSize,
|
|
7
|
-
ButtonType,
|
|
8
|
-
UnstyledButtonProps,
|
|
9
|
-
} from './Button';
|
|
10
|
-
export {
|
|
11
|
-
Button,
|
|
12
|
-
BUTTON_ACTION_TYPE,
|
|
13
|
-
BUTTON_SIZE,
|
|
14
|
-
BUTTON_TYPES,
|
|
15
|
-
UnstyledButton,
|
|
16
|
-
} from './Button';
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
// $FlowFixMe[untyped-import]
|
|
6
|
-
autoUpdate,
|
|
7
|
-
// $FlowFixMe[untyped-import]
|
|
8
|
-
flip,
|
|
9
|
-
// $FlowFixMe[untyped-import]
|
|
10
|
-
FloatingFocusManager,
|
|
11
|
-
// $FlowFixMe[untyped-import]
|
|
12
|
-
FloatingPortal,
|
|
13
|
-
// $FlowFixMe[untyped-import]
|
|
14
|
-
offset,
|
|
15
|
-
// $FlowFixMe[untyped-import]
|
|
16
|
-
shift,
|
|
17
|
-
// $FlowFixMe[untyped-import]
|
|
18
|
-
useFloating,
|
|
19
|
-
} from '@floating-ui/react';
|
|
20
|
-
|
|
21
|
-
import {useReferenceElementWidth} from '../../hooks';
|
|
22
|
-
import {spaceNone, spaceXXSmall} from '../../styles/variables/_space';
|
|
23
|
-
import {classify} from '../../utils/classify';
|
|
24
|
-
import {ClickAway, type ClickAwayRefType} from '../../utils/click-away';
|
|
25
|
-
import {mergeRefs} from '../../utils/merge-refs';
|
|
26
|
-
import type {ButtonProps} from '../Button';
|
|
27
|
-
import {Button} from '../Button';
|
|
28
|
-
import {ConditionalWrapper} from '../ConditionalWrapper';
|
|
29
|
-
import type {MenuOption, MenuProps} from '../Menu';
|
|
30
|
-
import {Menu} from '../Menu';
|
|
31
|
-
import type {BaseTooltipProps, ElevationType} from '../Tooltip';
|
|
32
|
-
import {getElevationValue, Tooltip} from '../Tooltip';
|
|
33
|
-
|
|
34
|
-
import css from './ButtonDropdown.module.css';
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export const ANCHOR_POSITION_TYPE = Object.freeze({
|
|
38
|
-
top: 'top',
|
|
39
|
-
topStart: 'top-start',
|
|
40
|
-
topEnd: 'top-end',
|
|
41
|
-
bottom: 'bottom',
|
|
42
|
-
bottomStart: 'bottom-start',
|
|
43
|
-
bottomEnd: 'bottom-end',
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export const STRATEGY_TYPE = Object.freeze({
|
|
47
|
-
absolute: 'absolute',
|
|
48
|
-
fixed: 'fixed',
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export type AnchorType = $Values<typeof ANCHOR_POSITION_TYPE>;
|
|
52
|
-
export type Strategy = $Values<typeof STRATEGY_TYPE>;
|
|
53
|
-
|
|
54
|
-
type ClassNames = $ReadOnly<{
|
|
55
|
-
buttonWrapper?: string,
|
|
56
|
-
dropdownContainer?: string,
|
|
57
|
-
buttonIcon?: string,
|
|
58
|
-
}>;
|
|
59
|
-
|
|
60
|
-
export type ButtonDropdownProps = {
|
|
61
|
-
...ButtonProps,
|
|
62
|
-
classNames?: ClassNames,
|
|
63
|
-
menu?: MenuProps,
|
|
64
|
-
positionStrategy?: Strategy,
|
|
65
|
-
anchorPosition?: AnchorType,
|
|
66
|
-
onOptionSelect?: (option: MenuOption, ?SyntheticEvent<HTMLElement>) => mixed,
|
|
67
|
-
onMenuOpen?: () => mixed,
|
|
68
|
-
onMenuClose?: () => mixed,
|
|
69
|
-
tooltip?: BaseTooltipProps,
|
|
70
|
-
elevation?: ElevationType,
|
|
71
|
-
clickAwayRef?: ClickAwayRefType,
|
|
72
|
-
...
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const ButtonDropdown: React$AbstractComponent<
|
|
76
|
-
ButtonDropdownProps,
|
|
77
|
-
HTMLDivElement,
|
|
78
|
-
> = React.forwardRef<ButtonDropdownProps, HTMLDivElement>(
|
|
79
|
-
(
|
|
80
|
-
{
|
|
81
|
-
anchorPosition = 'bottom-start',
|
|
82
|
-
positionStrategy = STRATEGY_TYPE.absolute,
|
|
83
|
-
size = 'medium',
|
|
84
|
-
onOptionSelect,
|
|
85
|
-
menu,
|
|
86
|
-
classNames,
|
|
87
|
-
disabled,
|
|
88
|
-
onMenuOpen,
|
|
89
|
-
onMenuClose,
|
|
90
|
-
children,
|
|
91
|
-
iconRightName,
|
|
92
|
-
iconRightType = 'solid',
|
|
93
|
-
isFluid,
|
|
94
|
-
tooltip,
|
|
95
|
-
onClick,
|
|
96
|
-
elevation = 'modal',
|
|
97
|
-
clickAwayRef,
|
|
98
|
-
...restButtonProps
|
|
99
|
-
}: ButtonDropdownProps,
|
|
100
|
-
forwardRef,
|
|
101
|
-
) => {
|
|
102
|
-
const [isMenuOpen, setIsMenuOpen] = React.useState(false);
|
|
103
|
-
|
|
104
|
-
const {x, y, refs, strategy, context} = useFloating({
|
|
105
|
-
open: true,
|
|
106
|
-
strategy: positionStrategy,
|
|
107
|
-
placement: anchorPosition,
|
|
108
|
-
whileElementsMounted: autoUpdate,
|
|
109
|
-
middleware: [shift(), flip(), offset(parseInt(spaceXXSmall))],
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
const dropdownWidth = useReferenceElementWidth(refs.reference?.current);
|
|
113
|
-
|
|
114
|
-
const onMenuToggle = (isOpen: boolean) => {
|
|
115
|
-
if (isOpen) {
|
|
116
|
-
onMenuOpen?.();
|
|
117
|
-
setIsMenuOpen(true);
|
|
118
|
-
} else {
|
|
119
|
-
onMenuClose?.();
|
|
120
|
-
setIsMenuOpen(false);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
return (
|
|
125
|
-
<ClickAway onChange={onMenuToggle} clickAwayRef={clickAwayRef}>
|
|
126
|
-
{({isOpen, onOpen, clickAway, boundaryRef, triggerRef}) => (
|
|
127
|
-
<div
|
|
128
|
-
data-testid="ButtonDropdown"
|
|
129
|
-
className={classify(
|
|
130
|
-
css.buttonDropdownContainer,
|
|
131
|
-
{
|
|
132
|
-
[css.isFluid]: isFluid === true,
|
|
133
|
-
},
|
|
134
|
-
classNames?.dropdownContainer,
|
|
135
|
-
)}
|
|
136
|
-
ref={forwardRef}
|
|
137
|
-
>
|
|
138
|
-
<ConditionalWrapper
|
|
139
|
-
condition={Boolean(tooltip)}
|
|
140
|
-
wrapper={(children) => (
|
|
141
|
-
<Tooltip
|
|
142
|
-
{...tooltip}
|
|
143
|
-
hidden={isMenuOpen ? true : tooltip?.hidden}
|
|
144
|
-
>
|
|
145
|
-
{children}
|
|
146
|
-
</Tooltip>
|
|
147
|
-
)}
|
|
148
|
-
>
|
|
149
|
-
<Button
|
|
150
|
-
{...restButtonProps}
|
|
151
|
-
iconRightName={
|
|
152
|
-
children
|
|
153
|
-
? iconRightName || (isOpen ? 'caret-up' : 'caret-down')
|
|
154
|
-
: iconRightName
|
|
155
|
-
}
|
|
156
|
-
iconRightType={iconRightType}
|
|
157
|
-
disabled={disabled}
|
|
158
|
-
size={size}
|
|
159
|
-
ref={mergeRefs([refs.setReference, triggerRef])}
|
|
160
|
-
onClick={(e) => {
|
|
161
|
-
onClick?.(e);
|
|
162
|
-
e.stopPropagation();
|
|
163
|
-
onOpen();
|
|
164
|
-
}}
|
|
165
|
-
isFluid={isFluid}
|
|
166
|
-
classNames={{
|
|
167
|
-
wrapper: classNames?.buttonWrapper,
|
|
168
|
-
icon: classNames?.buttonIcon,
|
|
169
|
-
}}
|
|
170
|
-
>
|
|
171
|
-
{children}
|
|
172
|
-
</Button>
|
|
173
|
-
</ConditionalWrapper>
|
|
174
|
-
|
|
175
|
-
{isOpen && menu && (
|
|
176
|
-
<FloatingPortal>
|
|
177
|
-
<FloatingFocusManager
|
|
178
|
-
modal={false}
|
|
179
|
-
context={context}
|
|
180
|
-
initialFocus={refs.reference}
|
|
181
|
-
>
|
|
182
|
-
<div
|
|
183
|
-
className={css.menuWrapper}
|
|
184
|
-
ref={mergeRefs([refs.setFloating, boundaryRef])}
|
|
185
|
-
style={{
|
|
186
|
-
display: 'flex',
|
|
187
|
-
position: strategy,
|
|
188
|
-
top: y ?? spaceNone,
|
|
189
|
-
left: x ?? spaceNone,
|
|
190
|
-
/* NOTE(Sharad): The FloatingPortal renders the menu outside the normal DOM structure,
|
|
191
|
-
so its parent is effectively the <body> element. This means the menu
|
|
192
|
-
would otherwise default to the body's width. To support fluid width,
|
|
193
|
-
we must manually set the dropdown width here; otherwise, it uses a fixed width.
|
|
194
|
-
Also, Only treat menu as non-fluid if isFluid is strictly false, since default is true in menu and undefined means fluid. */
|
|
195
|
-
...(menu.isFluid !== false && {
|
|
196
|
-
'--dropdown-width': dropdownWidth,
|
|
197
|
-
}),
|
|
198
|
-
'--menu-elevation': getElevationValue(elevation),
|
|
199
|
-
}}
|
|
200
|
-
>
|
|
201
|
-
<Menu
|
|
202
|
-
{...menu}
|
|
203
|
-
onSelect={(option, e) => {
|
|
204
|
-
onOptionSelect && onOptionSelect(option, e);
|
|
205
|
-
if (
|
|
206
|
-
// option.keepMenuOpenOnOptionSelect - to allow the menu persist its open stat upon option selection in normal variant
|
|
207
|
-
!option.keepMenuOpenOnOptionSelect &&
|
|
208
|
-
(!menu.optionsVariant ||
|
|
209
|
-
menu.optionsVariant === 'normal')
|
|
210
|
-
) {
|
|
211
|
-
clickAway();
|
|
212
|
-
}
|
|
213
|
-
}}
|
|
214
|
-
size={menu.size || size}
|
|
215
|
-
onTabOut={clickAway}
|
|
216
|
-
/>
|
|
217
|
-
</div>
|
|
218
|
-
</FloatingFocusManager>
|
|
219
|
-
</FloatingPortal>
|
|
220
|
-
)}
|
|
221
|
-
</div>
|
|
222
|
-
)}
|
|
223
|
-
</ClickAway>
|
|
224
|
-
);
|
|
225
|
-
},
|
|
226
|
-
);
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
// @flow strict
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import type {MenuClassNames, MenuLabelTooltip} from '../../types/menu';
|
|
6
|
-
import type {ClickAwayRefType} from '../../utils/click-away';
|
|
7
|
-
import {
|
|
8
|
-
getButtonLabelFromSelectedKeys,
|
|
9
|
-
getSelectedKeysFromSelectedOption,
|
|
10
|
-
} from '../../utils/menu';
|
|
11
|
-
import type {ButtonProps} from '../Button';
|
|
12
|
-
import type {MenuOption, MenuOptionsVariant, Virtualization} from '../Menu';
|
|
13
|
-
import type {BaseTooltipProps, ElevationType} from '../Tooltip';
|
|
14
|
-
|
|
15
|
-
import type {AnchorType} from './ButtonDropdown';
|
|
16
|
-
import {ButtonDropdown} from './ButtonDropdown';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
type ClassNames = $ReadOnly<{
|
|
20
|
-
buttonWrapper?: string,
|
|
21
|
-
dropdownContainer?: string,
|
|
22
|
-
buttonIcon?: string,
|
|
23
|
-
}>;
|
|
24
|
-
|
|
25
|
-
export type SimpleButtonDropdownRef = {
|
|
26
|
-
selectedKeys?: Array<string>,
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type SimpleButtonDropdownProps = {
|
|
30
|
-
// Input props
|
|
31
|
-
...ButtonProps,
|
|
32
|
-
|
|
33
|
-
elevation?: ElevationType,
|
|
34
|
-
classNames?: ClassNames,
|
|
35
|
-
anchorPosition?: AnchorType,
|
|
36
|
-
tooltip?: BaseTooltipProps,
|
|
37
|
-
|
|
38
|
-
// Menu props
|
|
39
|
-
options?: Array<MenuOption>,
|
|
40
|
-
optionsVariant?: MenuOptionsVariant,
|
|
41
|
-
allowSearch?: boolean,
|
|
42
|
-
selectedKeys?: Array<string>,
|
|
43
|
-
menuVirtualization?: Virtualization,
|
|
44
|
-
header?: React.Node,
|
|
45
|
-
footer?: React.Node,
|
|
46
|
-
menuClassNames?: MenuClassNames,
|
|
47
|
-
showLabelTooltip?: MenuLabelTooltip,
|
|
48
|
-
allowWrap?: boolean,
|
|
49
|
-
|
|
50
|
-
// events
|
|
51
|
-
onOptionSelect?: (option: MenuOption, ?SyntheticEvent<HTMLElement>) => mixed,
|
|
52
|
-
onMenuOpen?: () => mixed,
|
|
53
|
-
onMenuClose?: () => mixed,
|
|
54
|
-
|
|
55
|
-
// Resolvers
|
|
56
|
-
resolveLabel?: (option: MenuOption) => string | React.Node,
|
|
57
|
-
resolveSecondaryLabel?: (option: MenuOption) => string | React.Node,
|
|
58
|
-
clickAwayRef?: ClickAwayRefType,
|
|
59
|
-
...
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const SimpleButtonDropdownBase = (props: SimpleButtonDropdownProps, ref) => {
|
|
63
|
-
const {
|
|
64
|
-
size = 'medium',
|
|
65
|
-
classNames,
|
|
66
|
-
anchorPosition,
|
|
67
|
-
options,
|
|
68
|
-
optionsVariant,
|
|
69
|
-
allowSearch,
|
|
70
|
-
selectedKeys,
|
|
71
|
-
onOptionSelect,
|
|
72
|
-
onMenuOpen,
|
|
73
|
-
onMenuClose,
|
|
74
|
-
resolveLabel,
|
|
75
|
-
resolveSecondaryLabel,
|
|
76
|
-
children,
|
|
77
|
-
isFluid,
|
|
78
|
-
menuVirtualization,
|
|
79
|
-
header,
|
|
80
|
-
footer,
|
|
81
|
-
menuClassNames,
|
|
82
|
-
showLabelTooltip,
|
|
83
|
-
allowWrap = false,
|
|
84
|
-
clickAwayRef,
|
|
85
|
-
elevation = 'modal',
|
|
86
|
-
...buttonProps
|
|
87
|
-
} = props;
|
|
88
|
-
|
|
89
|
-
const [btnText, setBtnText] = React.useState('');
|
|
90
|
-
const [buttonDropdownSelectedKeys, setButtonDropdownSelectedKeys] =
|
|
91
|
-
React.useState(selectedKeys);
|
|
92
|
-
|
|
93
|
-
React.useEffect(() => {
|
|
94
|
-
const newBtnText = getButtonLabelFromSelectedKeys(selectedKeys, children);
|
|
95
|
-
|
|
96
|
-
setButtonDropdownSelectedKeys(selectedKeys);
|
|
97
|
-
setBtnText(newBtnText);
|
|
98
|
-
}, [selectedKeys]);
|
|
99
|
-
|
|
100
|
-
const handleOptionChange = (selectedOption: MenuOption, e) => {
|
|
101
|
-
e?.stopPropagation();
|
|
102
|
-
let newSelectedKeys = [];
|
|
103
|
-
|
|
104
|
-
if (optionsVariant === 'checkbox') {
|
|
105
|
-
newSelectedKeys = getSelectedKeysFromSelectedOption(
|
|
106
|
-
selectedOption,
|
|
107
|
-
buttonDropdownSelectedKeys,
|
|
108
|
-
);
|
|
109
|
-
} else {
|
|
110
|
-
newSelectedKeys = [selectedOption.key];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const newBtnText = getButtonLabelFromSelectedKeys(
|
|
114
|
-
newSelectedKeys,
|
|
115
|
-
children,
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
setButtonDropdownSelectedKeys(newSelectedKeys);
|
|
119
|
-
setBtnText(newBtnText);
|
|
120
|
-
|
|
121
|
-
setTimeout(() => {
|
|
122
|
-
onOptionSelect?.(selectedOption, e);
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
React.useImperativeHandle(ref, () => ({
|
|
127
|
-
selectedKeys: buttonDropdownSelectedKeys,
|
|
128
|
-
}));
|
|
129
|
-
|
|
130
|
-
return (
|
|
131
|
-
<ButtonDropdown
|
|
132
|
-
{...buttonProps}
|
|
133
|
-
anchorPosition={anchorPosition}
|
|
134
|
-
classNames={classNames}
|
|
135
|
-
size={size}
|
|
136
|
-
onOptionSelect={handleOptionChange}
|
|
137
|
-
onMenuOpen={onMenuOpen}
|
|
138
|
-
elevation={elevation}
|
|
139
|
-
onMenuClose={onMenuClose}
|
|
140
|
-
clickAwayRef={clickAwayRef}
|
|
141
|
-
menu={{
|
|
142
|
-
// TODO (Sharad): The isFluid prop here controls menu width unlike ButtonDropdown, and is independent from the isFluid prop in ButtonDropdown. There should be a way to set the isFluid prop of ButtonDropdown.
|
|
143
|
-
isFluid,
|
|
144
|
-
options,
|
|
145
|
-
selectedKeys: buttonDropdownSelectedKeys,
|
|
146
|
-
optionsVariant,
|
|
147
|
-
allowSearch,
|
|
148
|
-
resolveLabel,
|
|
149
|
-
resolveSecondaryLabel,
|
|
150
|
-
size,
|
|
151
|
-
virtualization: menuVirtualization,
|
|
152
|
-
header,
|
|
153
|
-
footer,
|
|
154
|
-
classNames: menuClassNames,
|
|
155
|
-
showLabelTooltip,
|
|
156
|
-
allowWrap,
|
|
157
|
-
}}
|
|
158
|
-
>
|
|
159
|
-
{optionsVariant === 'checkbox' ? btnText : children}
|
|
160
|
-
</ButtonDropdown>
|
|
161
|
-
);
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
export const SimpleButtonDropdown: React.AbstractComponent<
|
|
165
|
-
SimpleButtonDropdownProps,
|
|
166
|
-
SimpleButtonDropdownRef,
|
|
167
|
-
> = React.forwardRef<SimpleButtonDropdownProps, SimpleButtonDropdownRef>(
|
|
168
|
-
SimpleButtonDropdownBase,
|
|
169
|
-
);
|