@spaced-out/ui-design-system 0.4.12 → 0.4.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cspell/custom-words.txt +6 -0
- package/.storybook/main.js +3 -3
- package/CHANGELOG.md +14 -0
- package/babel.config.js +1 -1
- package/config.js +4 -3
- package/cspell.json +3 -1
- package/docs/FORWARDREF_FIX.md +241 -0
- package/gulpfile.js +5 -33
- package/lib/components/AIPromptFlow/AIPromptFlow.stories.d.ts +19 -0
- package/lib/components/AIPromptFlow/AIPromptFlow.stories.d.ts.map +1 -0
- package/lib/components/AIPromptFlow/AIPromptFlow.stories.js +225 -0
- package/lib/components/Accordion/Accordion.d.ts +21 -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 +143 -0
- package/lib/components/Accordion/Accordion.stories.d.ts.map +1 -0
- package/lib/components/Accordion/Accordion.stories.js +172 -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 +3 -0
- package/lib/components/Accordion/AccordionGroup.stories.d.ts +104 -0
- package/lib/components/Accordion/AccordionGroup.stories.d.ts.map +1 -0
- package/lib/components/Accordion/AccordionGroup.stories.js +202 -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/Avatar.stories.js +174 -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/AvatarGroup.stories.js +160 -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/Badge.stories.js +155 -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/BadgedIcon.stories.js +95 -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/Banner.stories.js +210 -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/BreadcrumbLink.stories.js +122 -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 +5 -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/Breadcrumbs.stories.js +180 -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/Button.stories.js +257 -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 +13 -3
- 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/ButtonDropdown.stories.js +669 -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 +6 -0
- 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/SimpleButtonDropdown.stories.js +651 -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/ButtonTab.stories.js +152 -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/ButtonTabs.stories.js +471 -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/Card.stories.js +236 -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 +23 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.js +12 -7
- 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/ColumnChart.stories.js +654 -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 +28 -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 +226 -0
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/DonutChart/DonutChart.stories.js +387 -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 +25 -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 +307 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/FunnelChart/FunnelChart.stories.js +529 -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 +23 -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 +310 -0
- package/lib/components/Charts/LineChart/LineChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/LineChart/LineChart.stories.js +587 -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 +22 -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 +149 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.stories.d.ts.map +1 -0
- package/lib/components/Charts/SpiderChart/SpiderChart.stories.js +422 -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/ChatAnchor.stories.js +113 -0
- package/lib/components/ChatBubble/ChatBubble.d.ts +76 -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/ChatBubble.stories.js +188 -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/Checkbox.stories.js +210 -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/CheckboxGroup.stories.js +399 -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/Chip.stories.js +362 -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/CircularLoader.stories.js +82 -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/CollapsibleCard.stories.js +298 -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/Combobox.stories.js +343 -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/ConditionalWrapper.stories.js +50 -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/DateRangePicker.stories.js +406 -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/Dialog.stories.js +260 -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/Disclaimer.stories.js +174 -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 +14 -3
- 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/Dropdown.stories.js +729 -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 +7 -1
- 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/SimpleDropdown.stories.js +569 -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/EmptyState.stories.js +115 -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/ErrorMessage.stories.js +125 -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 +14 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.d.ts.map +1 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.stories.d.ts +68 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.stories.d.ts.map +1 -0
- package/lib/components/FileUpload/FileBlock/FileBlock.stories.js +91 -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 +6 -1
- 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/FileUpload.stories.js +952 -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 +9 -1
- 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/FilterButtonOverlay.stories.js +390 -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 +17 -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/FocusManager.stories.js +133 -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 +20 -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/FocusManagerWithArrowKeyNavigation.stories.js +427 -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/FormTitleWrapper.stories.js +189 -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/Col.stories.js +141 -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/GridPatterns.stories.js +392 -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/Row.stories.js +172 -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/Tablist.layout.stories.js +330 -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/Icon.stories.js +73 -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/SemanticIcon.stories.js +75 -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/InContextAlert.stories.js +184 -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 +26 -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/InfinitePagination.stories.js +343 -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 +12 -3
- 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/InlineDropdown.stories.js +397 -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 +7 -0
- 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/SimpleInlineDropdown.stories.js +521 -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 +76 -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/Input.stories.js +608 -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/NativeColorpicker.stories.js +395 -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/NativeDatepicker.stories.js +457 -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 +23 -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/KPIBox.stories.js +246 -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/LinearLoader.stories.js +135 -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/Link.stories.js +350 -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/Menu.stories.js +1048 -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/Modal.stories.js +427 -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/Notification.stories.js +153 -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/OptionButton.stories.js +437 -0
- package/lib/components/OptionButton/SimpleOptionButton.d.ts +47 -0
- package/lib/components/OptionButton/SimpleOptionButton.d.ts.map +1 -0
- package/lib/components/OptionButton/SimpleOptionButton.js +4 -0
- 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/SimpleOptionButton.stories.js +552 -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/PageTitle.stories.js +221 -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/Pagination.stories.js +263 -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/Panel.stories.js +415 -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/ProgressDonut.stories.js +96 -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/PromptChip.stories.js +242 -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/PromptInput.stories.js +390 -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/RadioButton.stories.js +180 -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/RadioGroup.stories.js +317 -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/RadioTile.stories.js +261 -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/RangeSlider.stories.js +379 -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/Rating.stories.js +309 -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 +28 -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/ScoreBar.stories.js +199 -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/SearchInput.stories.js +299 -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/Separator.stories.js +101 -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 +4 -2
- 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/Shimmer.stories.js +323 -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/SideMenuLink.stories.js +162 -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/StatusIndicator.stories.js +145 -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/Step.stories.js +147 -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/Stepper.stories.js +402 -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/StickyBar.stories.js +141 -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/SubMenu.stories.js +373 -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 +14 -4
- 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 +536 -0
- package/lib/components/Table/BasicTable.stories.d.ts.map +1 -0
- package/lib/components/Table/BasicTable.stories.js +552 -0
- package/lib/components/Table/BulkActions.stories.d.ts +257 -0
- package/lib/components/Table/BulkActions.stories.d.ts.map +1 -0
- package/lib/components/Table/BulkActions.stories.js +252 -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 +3 -3
- 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 +2 -2
- 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 +244 -0
- package/lib/components/Table/InlineEdit.stories.d.ts.map +1 -0
- package/lib/components/Table/InlineEdit.stories.js +355 -0
- package/lib/components/Table/StaticTable.d.ts +18 -0
- package/lib/components/Table/StaticTable.d.ts.map +1 -0
- package/lib/components/Table/StaticTable.js +39 -13
- package/lib/components/Table/Table.d.ts +56 -0
- package/lib/components/Table/Table.d.ts.map +1 -0
- package/lib/components/Table/Table.docs.d.ts +229 -0
- package/lib/components/Table/Table.docs.d.ts.map +1 -0
- package/lib/components/Table/Table.docs.js +3 -3
- package/lib/components/Table/Table.js +12 -1
- 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 +7 -0
- 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/Tab.stories.js +179 -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/TabList.stories.js +197 -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/HighlightedText.stories.js +131 -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/Text.stories.js +262 -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/TextTile.stories.js +100 -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 +14 -4
- 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/Textarea.stories.js +329 -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 +8 -1
- 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/Timeline.stories.js +267 -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 +9 -2
- 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/TimelineItem.stories.js +245 -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/Toast.stories.js +237 -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 +1 -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/Toggle.stories.js +207 -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 +30 -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/TokenListInput.stories.js +877 -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/Tooltip.stories.js +321 -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/Truncate.stories.js +118 -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/TruncatedTextWithTooltip.stories.js +161 -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 +4 -0
- 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/SimpleTypeahead.stories.js +591 -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 +12 -3
- 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/Typeahead.stories.js +648 -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/WeekdayPicker.stories.js +330 -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 +48 -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/useArbitraryOptionAddition/useArbitraryOptionAddition.stories.js +171 -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/useCopyToClipboard/useCopyToClipboard.stories.js +107 -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/useDebounce/useDebounce.stories.js +80 -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/useFileUpload/useFileUpload.stories.js +405 -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 +5 -3
- package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.d.ts +18 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.d.ts.map +1 -0
- package/lib/hooks/useFilteredOptions/useFilteredOptions.stories.js +155 -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 +13 -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/useInputState/useInputState.stories.js +67 -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/useLockedBody/useLockedBody.stories.js +69 -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/useModal/useModal.stories.js +138 -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/useMountTransition/useMountTransition.stories.js +64 -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/usePagination/usePagination.stories.js +77 -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/useToggle/useToggle.stories.js +68 -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/hooks/useWindowSize/useWindowSize.stories.js +58 -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/index.js +535 -275
- 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 +224 -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/charts.js +4 -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 +3 -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 +7 -2
- 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 +5 -1
- package/lib/utils/charts/helpers.d.ts +76 -0
- package/lib/utils/charts/helpers.d.ts.map +1 -0
- 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 +3 -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/classify.stories.js +63 -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 +1 -1
- 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/ClickAway.stories.js +260 -0
- package/lib/utils/click-away/click-away.d.ts +77 -0
- package/lib/utils/click-away/click-away.d.ts.map +1 -0
- package/lib/utils/click-away/click-away.js +18 -5
- 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 +63 -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 +17 -2
- 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 +258 -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 +38 -0
- package/lib/utils/dom/dom.d.ts.map +1 -0
- package/lib/utils/dom/dom.js +9 -7
- 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/dom.stories.js +59 -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/helpers.stories.js +111 -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 +9 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.js +21 -7
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.stories.d.ts +15 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.stories.d.ts.map +1 -0
- package/lib/utils/makeClassNameComponent/makeClassNameComponent.stories.js +44 -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.js +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/merge-refs/merge-refs.stories.js +86 -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/string/string.stories.js +63 -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/package.json +32 -6
- package/tsconfig.declaration.json +19 -0
- package/tsconfig.declaration.tsbuildinfo +1 -0
- package/tsconfig.json +40 -0
- package/lib/components/Accordion/Accordion.js.flow +0 -116
- package/lib/components/Accordion/AccordionGroup.js.flow +0 -75
- 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 -97
- 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 -212
- package/lib/components/Table/Table.docs.js.flow +0 -495
- package/lib/components/Table/Table.js.flow +0 -132
- 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 -113
- 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 -55
- 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
|
@@ -0,0 +1,877 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._TokenListInputWithError = exports._TokenListInputLocked = exports._TokenListInputGroup = exports._TokenListInputDisabled = exports._TokenListInput = exports._CustomOptionTokenListInput = exports._AllowArbitraryValues = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _useArbitraryOptionAddition = require("../../hooks/useArbitraryOptionAddition");
|
|
9
|
+
var _useFilteredOptions = require("../../hooks/useFilteredOptions");
|
|
10
|
+
var _classify = require("../../utils/classify");
|
|
11
|
+
var _Icon = require("../Icon");
|
|
12
|
+
var _Text = require("../Text");
|
|
13
|
+
var _Tooltip = require("../Tooltip");
|
|
14
|
+
var _TokenListInput2 = require("./TokenListInput");
|
|
15
|
+
var _TokenListInputStoriesModule = _interopRequireDefault(require("./TokenListInput.stories.module.css"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
19
|
+
const elevationOptions = [...Object.values(_Tooltip.ELEVATION_TYPES)];
|
|
20
|
+
var _default = exports.default = {
|
|
21
|
+
tags: ['autodocs'],
|
|
22
|
+
title: 'Form Components/Token List Input',
|
|
23
|
+
component: _TokenListInput2.TokenListInput,
|
|
24
|
+
argTypes: {
|
|
25
|
+
classNames: {
|
|
26
|
+
description: 'Custom class names for styling the wrapper, box, and input.',
|
|
27
|
+
control: {
|
|
28
|
+
type: 'object'
|
|
29
|
+
},
|
|
30
|
+
table: {
|
|
31
|
+
type: {
|
|
32
|
+
summary: '{ wrapper?: string, box?: string, input?: string }'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
clickAwayRef: {
|
|
37
|
+
description: 'Ref for the click-away handler, used to detect clicks outside the component.',
|
|
38
|
+
control: false,
|
|
39
|
+
table: {
|
|
40
|
+
type: {
|
|
41
|
+
summary: 'ClickAwayRefType'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
disabled: {
|
|
46
|
+
description: 'Disables user interaction with the input and menu.',
|
|
47
|
+
control: {
|
|
48
|
+
type: 'boolean'
|
|
49
|
+
},
|
|
50
|
+
table: {
|
|
51
|
+
type: {
|
|
52
|
+
summary: 'boolean'
|
|
53
|
+
},
|
|
54
|
+
defaultValue: {
|
|
55
|
+
summary: 'false'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
elevation: {
|
|
60
|
+
description: 'This is passed to TokenListInput. Elevation level for the dropdown menu controls the z-index stacking order. Default is set to "modal" elevation. Use higher elevation levels when rendering the dropdown above other elevated elements like Modal, Toast, etc.',
|
|
61
|
+
control: {
|
|
62
|
+
type: 'select'
|
|
63
|
+
},
|
|
64
|
+
options: elevationOptions,
|
|
65
|
+
table: {
|
|
66
|
+
type: {
|
|
67
|
+
summary: 'enum'
|
|
68
|
+
},
|
|
69
|
+
defaultValue: {
|
|
70
|
+
summary: 'modal'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
error: {
|
|
75
|
+
description: 'if **true**, the component is moved to error state, Error state displays a red border surrounding input',
|
|
76
|
+
control: {
|
|
77
|
+
type: 'boolean'
|
|
78
|
+
},
|
|
79
|
+
table: {
|
|
80
|
+
type: {
|
|
81
|
+
summary: 'boolean'
|
|
82
|
+
},
|
|
83
|
+
defaultValue: {
|
|
84
|
+
summary: 'false'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
errorText: {
|
|
89
|
+
description: 'Error text to be displayed on the bottom of the input. This uses `colorTextDanger`',
|
|
90
|
+
control: {
|
|
91
|
+
type: 'text'
|
|
92
|
+
},
|
|
93
|
+
table: {
|
|
94
|
+
type: {
|
|
95
|
+
summary: 'string'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
focusOnMount: {
|
|
100
|
+
description: 'If true, the input will be focused automatically when the component mounts.',
|
|
101
|
+
control: {
|
|
102
|
+
type: 'boolean'
|
|
103
|
+
},
|
|
104
|
+
table: {
|
|
105
|
+
type: {
|
|
106
|
+
summary: 'boolean'
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
helperText: {
|
|
111
|
+
description: 'Additional information or guidance displayed below the input. Hidden if errorText is present.',
|
|
112
|
+
control: {
|
|
113
|
+
type: 'text'
|
|
114
|
+
},
|
|
115
|
+
table: {
|
|
116
|
+
type: {
|
|
117
|
+
summary: 'string'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
placeholder: {
|
|
122
|
+
description: 'Placeholder text for the input field. Used if values are empty.',
|
|
123
|
+
control: {
|
|
124
|
+
type: 'text'
|
|
125
|
+
},
|
|
126
|
+
table: {
|
|
127
|
+
type: {
|
|
128
|
+
summary: 'string'
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
inputValue: {
|
|
133
|
+
description: 'The current value of the input field.',
|
|
134
|
+
control: {
|
|
135
|
+
type: 'text'
|
|
136
|
+
},
|
|
137
|
+
table: {
|
|
138
|
+
type: {
|
|
139
|
+
summary: 'string'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
inputPlaceholder: {
|
|
144
|
+
description: 'Placeholder text for the input field. Used if provided, otherwise falls back to `placeholder`.',
|
|
145
|
+
control: {
|
|
146
|
+
type: 'text'
|
|
147
|
+
},
|
|
148
|
+
table: {
|
|
149
|
+
type: {
|
|
150
|
+
summary: 'string'
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
limit: {
|
|
155
|
+
description: 'Maximum number of tokens that can be added. When the limit is reached, the input is disabled.',
|
|
156
|
+
control: {
|
|
157
|
+
type: 'number'
|
|
158
|
+
},
|
|
159
|
+
table: {
|
|
160
|
+
type: {
|
|
161
|
+
summary: 'number'
|
|
162
|
+
},
|
|
163
|
+
defaultValue: {
|
|
164
|
+
summary: '100'
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
isLoading: {
|
|
169
|
+
description: 'if **true**, the component would add a loader.',
|
|
170
|
+
control: {
|
|
171
|
+
type: 'boolean'
|
|
172
|
+
},
|
|
173
|
+
table: {
|
|
174
|
+
type: {
|
|
175
|
+
summary: 'boolean'
|
|
176
|
+
},
|
|
177
|
+
defaultValue: {
|
|
178
|
+
summary: 'false'
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
locked: {
|
|
183
|
+
description: 'If true, the input and tokens are locked and cannot be changed.',
|
|
184
|
+
control: {
|
|
185
|
+
type: 'boolean'
|
|
186
|
+
},
|
|
187
|
+
table: {
|
|
188
|
+
type: {
|
|
189
|
+
summary: 'boolean'
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
onChange: {
|
|
194
|
+
description: 'Callback fired when the list of selected tokens changes.',
|
|
195
|
+
control: false,
|
|
196
|
+
table: {
|
|
197
|
+
type: {
|
|
198
|
+
summary: '(values: Array<T>) => mixed'
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
onInputBlur: {
|
|
203
|
+
description: 'Callback fired when the input loses focus.',
|
|
204
|
+
control: false,
|
|
205
|
+
table: {
|
|
206
|
+
type: {
|
|
207
|
+
summary: '(e: SyntheticEvent<HTMLInputElement>) => mixed'
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
onInputChange: {
|
|
212
|
+
description: 'Callback fired when the input value changes.',
|
|
213
|
+
control: false,
|
|
214
|
+
table: {
|
|
215
|
+
type: {
|
|
216
|
+
summary: '(value: string) => mixed'
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
onInputFocus: {
|
|
221
|
+
description: 'Callback fired when the input gains focus.',
|
|
222
|
+
control: false,
|
|
223
|
+
table: {
|
|
224
|
+
type: {
|
|
225
|
+
summary: '(e: SyntheticEvent<HTMLInputElement>) => mixed'
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
size: {
|
|
230
|
+
description: 'Controls the overall size of the input field. Choose between "medium" (default) and "small".',
|
|
231
|
+
options: ['medium', 'small'],
|
|
232
|
+
control: {
|
|
233
|
+
type: 'select'
|
|
234
|
+
},
|
|
235
|
+
table: {
|
|
236
|
+
type: {
|
|
237
|
+
summary: '"medium" | "small"'
|
|
238
|
+
},
|
|
239
|
+
defaultValue: {
|
|
240
|
+
summary: 'medium'
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
tabIndex: {
|
|
245
|
+
description: 'Tab index for the input field.',
|
|
246
|
+
control: {
|
|
247
|
+
type: 'number'
|
|
248
|
+
},
|
|
249
|
+
table: {
|
|
250
|
+
type: {
|
|
251
|
+
summary: 'number'
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
values: {
|
|
256
|
+
description: 'The current list of selected tokens.',
|
|
257
|
+
control: {
|
|
258
|
+
type: 'object'
|
|
259
|
+
},
|
|
260
|
+
table: {
|
|
261
|
+
type: {
|
|
262
|
+
summary: 'Array<T>'
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
menu: {
|
|
267
|
+
description: 'Props for the dropdown menu, including options, grouped options, and custom label resolver.',
|
|
268
|
+
control: {
|
|
269
|
+
type: 'object'
|
|
270
|
+
},
|
|
271
|
+
table: {
|
|
272
|
+
type: {
|
|
273
|
+
summary: 'TokenListMenuProps<T>'
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
onMenuOpen: {
|
|
278
|
+
description: 'Callback fired when the menu is opened.',
|
|
279
|
+
control: false,
|
|
280
|
+
table: {
|
|
281
|
+
type: {
|
|
282
|
+
summary: '() => mixed'
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
onMenuClose: {
|
|
287
|
+
description: 'Callback fired when the menu is closed.',
|
|
288
|
+
control: false,
|
|
289
|
+
table: {
|
|
290
|
+
type: {
|
|
291
|
+
summary: '() => mixed'
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
resolveTokenValue: {
|
|
296
|
+
description: 'Custom render function for displaying a token value.',
|
|
297
|
+
control: false,
|
|
298
|
+
table: {
|
|
299
|
+
type: {
|
|
300
|
+
summary: '(ResolveTokenValueProps<T>) => React.ReactNode'
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
inputProps: {
|
|
305
|
+
description: 'Additional props to spread onto the input element.',
|
|
306
|
+
control: {
|
|
307
|
+
type: 'object'
|
|
308
|
+
},
|
|
309
|
+
table: {
|
|
310
|
+
type: {
|
|
311
|
+
summary: 'InputProps'
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
parameters: {
|
|
317
|
+
docs: {
|
|
318
|
+
subtitle: 'A flexible input for managing a list of tokens, supporting both selection from a dropdown and free-form entry.',
|
|
319
|
+
description: {
|
|
320
|
+
component: `
|
|
321
|
+
\`\`\`js
|
|
322
|
+
import { TokenListInput } from '@spaced-out/ui-design-system/lib/components/TokenListInput';
|
|
323
|
+
\`\`\`
|
|
324
|
+
|
|
325
|
+
**TokenListInput** provides a user-friendly interface for entering and managing multiple values as tokens. Users can select from a dropdown menu or add their own custom entries (if enabled). This component is ideal for tagging, multi-select, and similar use cases.
|
|
326
|
+
|
|
327
|
+
**Features:**
|
|
328
|
+
- Add, remove, and manage tokens with ease
|
|
329
|
+
- Supports both predefined and user-defined (arbitrary) options
|
|
330
|
+
- Customizable option rendering (icons, custom components, etc.)
|
|
331
|
+
- Configurable maximum token limit
|
|
332
|
+
- Disabled and locked states for controlled usage
|
|
333
|
+
- Helper and error text for enhanced user feedback
|
|
334
|
+
|
|
335
|
+
**Props Overview:**
|
|
336
|
+
- \`classNames\`: Custom class names for styling
|
|
337
|
+
- \`clickAwayRef\`: Ref for click-away detection
|
|
338
|
+
- \`disabled\`: Disables the input and menu
|
|
339
|
+
- \`errorText\`: Error message below the input
|
|
340
|
+
- \`focusOnMount\`: Auto-focus input on mount
|
|
341
|
+
- \`helperText\`: Guidance below the input
|
|
342
|
+
- \`inputValue\`: Current input value
|
|
343
|
+
- \`inputPlaceholder\`: Placeholder for the input field
|
|
344
|
+
- \`limit\`: Maximum number of tokens
|
|
345
|
+
- \`locked\`: Locks the input and tokens
|
|
346
|
+
- \`onChange\`: Callback for token changes
|
|
347
|
+
- \`onInputBlur\`: Callback for input blur
|
|
348
|
+
- \`onInputChange\`: Callback for input value change
|
|
349
|
+
- \`onInputFocus\`: Callback for input focus
|
|
350
|
+
- \`placeholder\`: Fallback placeholder for the input
|
|
351
|
+
- \`size\`: Input size ("medium" or "small")
|
|
352
|
+
- \`tabIndex\`: Tab index for the input
|
|
353
|
+
- \`values\`: Selected tokens
|
|
354
|
+
- \`menu\`: Dropdown menu props
|
|
355
|
+
- \`onMenuOpen\`: Callback for menu open
|
|
356
|
+
- \`onMenuClose\`: Callback for menu close
|
|
357
|
+
- \`resolveTokenValue\`: Custom token renderer
|
|
358
|
+
- \`inputProps\`: Additional input props
|
|
359
|
+
|
|
360
|
+
**Usage Example:**
|
|
361
|
+
|
|
362
|
+
\`\`\`jsx
|
|
363
|
+
<TokenListInput
|
|
364
|
+
values={[{ key: 'react', label: 'React' }]}
|
|
365
|
+
onChange={setValues}
|
|
366
|
+
inputValue={input}
|
|
367
|
+
onInputChange={setInput}
|
|
368
|
+
inputPlaceholder="Add a tag"
|
|
369
|
+
limit={5}
|
|
370
|
+
helperText="Add up to 5 tags"
|
|
371
|
+
errorText=""
|
|
372
|
+
size="medium"
|
|
373
|
+
disabled={false}
|
|
374
|
+
locked={false}
|
|
375
|
+
menu={{
|
|
376
|
+
options: [
|
|
377
|
+
{ key: 'react', label: 'React' },
|
|
378
|
+
{ key: 'vue', label: 'Vue' },
|
|
379
|
+
{ key: 'angular', label: 'Angular' },
|
|
380
|
+
],
|
|
381
|
+
}}
|
|
382
|
+
/>
|
|
383
|
+
\`\`\`
|
|
384
|
+
`
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
storySource: {
|
|
388
|
+
componentPath: '/src/components/TokenListInput/TokenListInput.jsx'
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
const _TokenListInput = args => {
|
|
393
|
+
const options = [{
|
|
394
|
+
key: '1',
|
|
395
|
+
label: 'Option 1'
|
|
396
|
+
}, {
|
|
397
|
+
key: '2',
|
|
398
|
+
label: 'Option 2'
|
|
399
|
+
}, {
|
|
400
|
+
key: '3',
|
|
401
|
+
label: 'Option 3'
|
|
402
|
+
}, {
|
|
403
|
+
key: '4',
|
|
404
|
+
label: 'Option 4'
|
|
405
|
+
}];
|
|
406
|
+
const [values, setValues] = React.useState([{
|
|
407
|
+
label: 'apple',
|
|
408
|
+
key: 'ap'
|
|
409
|
+
}, {
|
|
410
|
+
label: 'b',
|
|
411
|
+
key: 'b'
|
|
412
|
+
}]);
|
|
413
|
+
const [input, setInput] = React.useState('');
|
|
414
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
415
|
+
className: _TokenListInputStoriesModule.default.tokenListWrapper
|
|
416
|
+
}, /*#__PURE__*/React.createElement(_TokenListInput2.TokenListInput, _extends({}, args, {
|
|
417
|
+
values: values,
|
|
418
|
+
onChange: setValues,
|
|
419
|
+
inputValue: input,
|
|
420
|
+
onInputChange: setInput,
|
|
421
|
+
menu: {
|
|
422
|
+
options
|
|
423
|
+
}
|
|
424
|
+
})));
|
|
425
|
+
};
|
|
426
|
+
exports._TokenListInput = _TokenListInput;
|
|
427
|
+
_TokenListInput.args = {
|
|
428
|
+
classNames: {
|
|
429
|
+
wrapper: ''
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const _TokenListInputWithError = args => {
|
|
433
|
+
const options = [{
|
|
434
|
+
key: '1',
|
|
435
|
+
label: 'Eden Porter',
|
|
436
|
+
iconLeft: 'user'
|
|
437
|
+
}, {
|
|
438
|
+
key: '2',
|
|
439
|
+
label: 'Verda Rodgers',
|
|
440
|
+
iconLeft: 'user'
|
|
441
|
+
}, {
|
|
442
|
+
key: '3',
|
|
443
|
+
label: 'Paisley Badman',
|
|
444
|
+
iconLeft: 'user'
|
|
445
|
+
}, {
|
|
446
|
+
key: '4',
|
|
447
|
+
label: 'Miranda Black',
|
|
448
|
+
iconLeft: 'user'
|
|
449
|
+
}, {
|
|
450
|
+
key: '5',
|
|
451
|
+
label: 'Pamela Fennimore',
|
|
452
|
+
iconLeft: 'user'
|
|
453
|
+
}, {
|
|
454
|
+
key: '6',
|
|
455
|
+
label: 'Geneva Rhodes',
|
|
456
|
+
iconLeft: 'user'
|
|
457
|
+
}, {
|
|
458
|
+
key: '7',
|
|
459
|
+
label: 'Rolf Kim',
|
|
460
|
+
iconLeft: 'user'
|
|
461
|
+
}, {
|
|
462
|
+
key: '8',
|
|
463
|
+
label: 'Marsh Saunders',
|
|
464
|
+
iconLeft: 'user'
|
|
465
|
+
}, {
|
|
466
|
+
key: '9',
|
|
467
|
+
label: 'Prunella Webb',
|
|
468
|
+
iconLeft: 'user'
|
|
469
|
+
}, {
|
|
470
|
+
key: '10',
|
|
471
|
+
label: 'Andy Mullins',
|
|
472
|
+
iconLeft: 'user'
|
|
473
|
+
}, {
|
|
474
|
+
key: '11',
|
|
475
|
+
label: 'Jade Watkins',
|
|
476
|
+
iconLeft: 'user'
|
|
477
|
+
}, {
|
|
478
|
+
key: '12',
|
|
479
|
+
label: 'Wally Wolfe',
|
|
480
|
+
iconLeft: 'user'
|
|
481
|
+
}, {
|
|
482
|
+
key: '13',
|
|
483
|
+
label: 'Misty Lipsey',
|
|
484
|
+
iconLeft: 'user'
|
|
485
|
+
}, {
|
|
486
|
+
key: '14',
|
|
487
|
+
label: 'Dwight Gibbs',
|
|
488
|
+
iconLeft: 'user'
|
|
489
|
+
}, {
|
|
490
|
+
key: '15',
|
|
491
|
+
label: 'Ronald Rhodes',
|
|
492
|
+
iconLeft: 'user'
|
|
493
|
+
}];
|
|
494
|
+
const [values, setValues] = React.useState([]);
|
|
495
|
+
const [input, setInput] = React.useState('');
|
|
496
|
+
const onChangeHandler = newValues => {
|
|
497
|
+
setValues(newValues);
|
|
498
|
+
};
|
|
499
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
500
|
+
className: _TokenListInputStoriesModule.default.tokenListWrapper
|
|
501
|
+
}, /*#__PURE__*/React.createElement(_TokenListInput2.TokenListInput, _extends({}, args, {
|
|
502
|
+
menu: {
|
|
503
|
+
options
|
|
504
|
+
},
|
|
505
|
+
values: values,
|
|
506
|
+
onChange: onChangeHandler,
|
|
507
|
+
errorText: 'This is an error',
|
|
508
|
+
helperText: "Hint text for the users",
|
|
509
|
+
inputValue: input,
|
|
510
|
+
onInputChange: setInput
|
|
511
|
+
})));
|
|
512
|
+
};
|
|
513
|
+
exports._TokenListInputWithError = _TokenListInputWithError;
|
|
514
|
+
const _TokenListInputLocked = args => {
|
|
515
|
+
const values = [{
|
|
516
|
+
key: '1',
|
|
517
|
+
label: 'Eden Porter',
|
|
518
|
+
iconLeft: 'user'
|
|
519
|
+
}, {
|
|
520
|
+
key: '2',
|
|
521
|
+
label: 'Verda Rodgers',
|
|
522
|
+
iconLeft: 'user'
|
|
523
|
+
}, {
|
|
524
|
+
key: '3',
|
|
525
|
+
label: 'Paisley Badman',
|
|
526
|
+
iconLeft: 'user'
|
|
527
|
+
}, {
|
|
528
|
+
key: '4',
|
|
529
|
+
label: 'Miranda Black',
|
|
530
|
+
iconLeft: 'user'
|
|
531
|
+
}, {
|
|
532
|
+
key: '5',
|
|
533
|
+
label: 'Pamela Fennimore',
|
|
534
|
+
iconLeft: 'user'
|
|
535
|
+
}, {
|
|
536
|
+
key: '6',
|
|
537
|
+
label: 'Geneva Rhodes',
|
|
538
|
+
iconLeft: 'user'
|
|
539
|
+
}, {
|
|
540
|
+
key: '7',
|
|
541
|
+
label: 'Rolf Kim',
|
|
542
|
+
iconLeft: 'user'
|
|
543
|
+
}, {
|
|
544
|
+
key: '8',
|
|
545
|
+
label: 'Marsh Saunders',
|
|
546
|
+
iconLeft: 'user'
|
|
547
|
+
}];
|
|
548
|
+
const [input, setInput] = React.useState('');
|
|
549
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
550
|
+
className: _TokenListInputStoriesModule.default.tokenListWrapper
|
|
551
|
+
}, /*#__PURE__*/React.createElement(_TokenListInput2.TokenListInput, _extends({}, args, {
|
|
552
|
+
values: values,
|
|
553
|
+
inputValue: input,
|
|
554
|
+
onInputChange: setInput
|
|
555
|
+
})));
|
|
556
|
+
};
|
|
557
|
+
exports._TokenListInputLocked = _TokenListInputLocked;
|
|
558
|
+
_TokenListInputLocked.args = {
|
|
559
|
+
locked: true
|
|
560
|
+
};
|
|
561
|
+
const _TokenListInputDisabled = args => {
|
|
562
|
+
const values = [{
|
|
563
|
+
key: '1',
|
|
564
|
+
label: 'Eden Porter',
|
|
565
|
+
iconLeft: 'user'
|
|
566
|
+
}, {
|
|
567
|
+
key: '2',
|
|
568
|
+
label: 'Verda Rodgers',
|
|
569
|
+
iconLeft: 'user'
|
|
570
|
+
}, {
|
|
571
|
+
key: '3',
|
|
572
|
+
label: 'Paisley Badman',
|
|
573
|
+
iconLeft: 'user'
|
|
574
|
+
}, {
|
|
575
|
+
key: '4',
|
|
576
|
+
label: 'Miranda Black',
|
|
577
|
+
iconLeft: 'user'
|
|
578
|
+
}, {
|
|
579
|
+
key: '5',
|
|
580
|
+
label: 'Pamela Fennimore',
|
|
581
|
+
iconLeft: 'user'
|
|
582
|
+
}, {
|
|
583
|
+
key: '6',
|
|
584
|
+
label: 'Geneva Rhodes',
|
|
585
|
+
iconLeft: 'user'
|
|
586
|
+
}, {
|
|
587
|
+
key: '7',
|
|
588
|
+
label: 'Rolf Kim',
|
|
589
|
+
iconLeft: 'user'
|
|
590
|
+
}, {
|
|
591
|
+
key: '8',
|
|
592
|
+
label: 'Marsh Saunders',
|
|
593
|
+
iconLeft: 'user'
|
|
594
|
+
}];
|
|
595
|
+
const [input, setInput] = React.useState('');
|
|
596
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
597
|
+
className: _TokenListInputStoriesModule.default.tokenListWrapper
|
|
598
|
+
}, /*#__PURE__*/React.createElement(_TokenListInput2.TokenListInput, _extends({}, args, {
|
|
599
|
+
values: values,
|
|
600
|
+
inputValue: input,
|
|
601
|
+
onInputChange: setInput
|
|
602
|
+
})));
|
|
603
|
+
};
|
|
604
|
+
exports._TokenListInputDisabled = _TokenListInputDisabled;
|
|
605
|
+
_TokenListInputDisabled.args = {
|
|
606
|
+
classNames: {
|
|
607
|
+
wrapper: _TokenListInputStoriesModule.default.tokenListInputWrapper
|
|
608
|
+
},
|
|
609
|
+
disabled: true
|
|
610
|
+
};
|
|
611
|
+
const TokenListInputGroupWrap = args => {
|
|
612
|
+
const [values, setValues] = React.useState([{
|
|
613
|
+
label: 'apple',
|
|
614
|
+
key: 'app'
|
|
615
|
+
}, {
|
|
616
|
+
label: 'banana',
|
|
617
|
+
key: 'ban'
|
|
618
|
+
}]);
|
|
619
|
+
const [inputValue, setInputValue] = React.useState('');
|
|
620
|
+
const {
|
|
621
|
+
filteredGroupTitleOptions
|
|
622
|
+
} = (0, _useFilteredOptions.useFilteredOptions)({
|
|
623
|
+
searchTerm: inputValue,
|
|
624
|
+
// @ts-ignore - TS2322 - Type 'TokenGroupTitleOption<TokenListOption>[] | undefined' is not assignable to type 'GroupTitleOption<TokenListOption>[] | undefined'.
|
|
625
|
+
groupTitleOptions: args.menu?.groupTitleOptions,
|
|
626
|
+
excludedKeys: values.map(value => value.key)
|
|
627
|
+
});
|
|
628
|
+
const {
|
|
629
|
+
groupTitleOptionsWithArbitrary
|
|
630
|
+
} = (0, _useArbitraryOptionAddition.useArbitraryOptionAddition)({
|
|
631
|
+
searchTerm: inputValue,
|
|
632
|
+
groupTitleOptions: filteredGroupTitleOptions,
|
|
633
|
+
excludedKeys: values.map(value => value.key),
|
|
634
|
+
makeArbitraryValue: value => ({
|
|
635
|
+
key: value,
|
|
636
|
+
label: value,
|
|
637
|
+
arbitrary: true
|
|
638
|
+
})
|
|
639
|
+
});
|
|
640
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
641
|
+
className: _TokenListInputStoriesModule.default.tokenListWrapper
|
|
642
|
+
}, /*#__PURE__*/React.createElement(_TokenListInput2.TokenListInput, _extends({}, args, {
|
|
643
|
+
inputValue: inputValue,
|
|
644
|
+
onInputChange: setInputValue,
|
|
645
|
+
values: values,
|
|
646
|
+
onChange: setValues,
|
|
647
|
+
menu: {
|
|
648
|
+
groupTitleOptions: groupTitleOptionsWithArbitrary,
|
|
649
|
+
resolveLabel: option => {
|
|
650
|
+
if (option.arbitrary && option.label) {
|
|
651
|
+
return `Create New "${option.label}"`;
|
|
652
|
+
}
|
|
653
|
+
return option.label || '';
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
})));
|
|
657
|
+
};
|
|
658
|
+
const _TokenListInputGroup = args => /*#__PURE__*/React.createElement(TokenListInputGroupWrap, args);
|
|
659
|
+
exports._TokenListInputGroup = _TokenListInputGroup;
|
|
660
|
+
_TokenListInputGroup.args = {
|
|
661
|
+
menu: {
|
|
662
|
+
groupTitleOptions: [{
|
|
663
|
+
groupTitle: () => /*#__PURE__*/React.createElement("div", {
|
|
664
|
+
className: _TokenListInputStoriesModule.default.titleWrapper
|
|
665
|
+
}, /*#__PURE__*/React.createElement(_Text.FormLabelSmall, {
|
|
666
|
+
color: "tertiary"
|
|
667
|
+
}, "Fast Food"), /*#__PURE__*/React.createElement("div", {
|
|
668
|
+
className: _TokenListInputStoriesModule.default.infoContainer
|
|
669
|
+
}, /*#__PURE__*/React.createElement(_Tooltip.Tooltip, {
|
|
670
|
+
title: "Hello!",
|
|
671
|
+
elevation: "menu"
|
|
672
|
+
}, /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
673
|
+
name: "circle-info",
|
|
674
|
+
size: "small",
|
|
675
|
+
color: "tertiary"
|
|
676
|
+
})))),
|
|
677
|
+
options: [{
|
|
678
|
+
key: 'burger',
|
|
679
|
+
iconLeft: 'burger',
|
|
680
|
+
label: 'Burger'
|
|
681
|
+
}, {
|
|
682
|
+
key: 'pizza',
|
|
683
|
+
iconLeft: 'pizza',
|
|
684
|
+
label: 'Pizza'
|
|
685
|
+
}, {
|
|
686
|
+
key: 'fries',
|
|
687
|
+
iconLeft: 'french-fries',
|
|
688
|
+
label: 'Fries'
|
|
689
|
+
}]
|
|
690
|
+
}, {
|
|
691
|
+
showLineDivider: true,
|
|
692
|
+
groupTitle: /*#__PURE__*/React.createElement("div", {
|
|
693
|
+
className: _TokenListInputStoriesModule.default.titleWrapper
|
|
694
|
+
}, /*#__PURE__*/React.createElement(_Text.FormLabelSmall, {
|
|
695
|
+
color: "tertiary"
|
|
696
|
+
}, "Fruits"), /*#__PURE__*/React.createElement("div", {
|
|
697
|
+
className: _TokenListInputStoriesModule.default.infoContainer
|
|
698
|
+
}, /*#__PURE__*/React.createElement(_Tooltip.Tooltip, {
|
|
699
|
+
title: "Hello!",
|
|
700
|
+
elevation: "menu"
|
|
701
|
+
}, /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
702
|
+
name: "circle-info",
|
|
703
|
+
size: "small",
|
|
704
|
+
color: "tertiary"
|
|
705
|
+
})))),
|
|
706
|
+
options: [{
|
|
707
|
+
key: 'banana',
|
|
708
|
+
iconLeft: 'banana',
|
|
709
|
+
label: 'Banana'
|
|
710
|
+
}, {
|
|
711
|
+
key: 'pear',
|
|
712
|
+
iconLeft: 'pear',
|
|
713
|
+
label: 'Pear'
|
|
714
|
+
}, {
|
|
715
|
+
key: 'lemon',
|
|
716
|
+
iconLeft: 'lemon',
|
|
717
|
+
label: 'Lemon'
|
|
718
|
+
}]
|
|
719
|
+
}]
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
const CustomOptionTokenListInput = args => {
|
|
723
|
+
const options = [{
|
|
724
|
+
key: '1',
|
|
725
|
+
label: 'Mango',
|
|
726
|
+
customComponent: /*#__PURE__*/React.createElement("div", {
|
|
727
|
+
className: _TokenListInputStoriesModule.default.titleWrapper
|
|
728
|
+
}, /*#__PURE__*/React.createElement(_Text.FormLabelSmall, {
|
|
729
|
+
color: "tertiary"
|
|
730
|
+
}, "Mango"), /*#__PURE__*/React.createElement("div", {
|
|
731
|
+
className: _TokenListInputStoriesModule.default.infoContainer
|
|
732
|
+
}, /*#__PURE__*/React.createElement(_Tooltip.Tooltip, {
|
|
733
|
+
title: "Hello!",
|
|
734
|
+
elevation: "menu"
|
|
735
|
+
}, /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
736
|
+
name: "circle-info",
|
|
737
|
+
size: "large",
|
|
738
|
+
color: "success",
|
|
739
|
+
type: "duotone"
|
|
740
|
+
}))))
|
|
741
|
+
}, {
|
|
742
|
+
key: '2',
|
|
743
|
+
label: 'Watermelon',
|
|
744
|
+
customComponent: /*#__PURE__*/React.createElement("div", {
|
|
745
|
+
className: _TokenListInputStoriesModule.default.titleWrapper
|
|
746
|
+
}, /*#__PURE__*/React.createElement(_Text.FormLabelSmall, {
|
|
747
|
+
color: "tertiary"
|
|
748
|
+
}, "Watermelon"), /*#__PURE__*/React.createElement("div", {
|
|
749
|
+
className: _TokenListInputStoriesModule.default.infoContainer
|
|
750
|
+
}, /*#__PURE__*/React.createElement(_Tooltip.Tooltip, {
|
|
751
|
+
title: "Hello!",
|
|
752
|
+
elevation: "menu"
|
|
753
|
+
}, /*#__PURE__*/React.createElement(_Icon.Icon, {
|
|
754
|
+
name: "circle-info",
|
|
755
|
+
size: "large",
|
|
756
|
+
color: "danger",
|
|
757
|
+
type: "duotone"
|
|
758
|
+
}))))
|
|
759
|
+
}, {
|
|
760
|
+
key: '3',
|
|
761
|
+
label: 'Option 3'
|
|
762
|
+
}, {
|
|
763
|
+
key: '4',
|
|
764
|
+
label: 'Option 4'
|
|
765
|
+
}];
|
|
766
|
+
const [values, setValues] = React.useState([{
|
|
767
|
+
label: 'apple',
|
|
768
|
+
key: 'a'
|
|
769
|
+
}, {
|
|
770
|
+
label: 'b',
|
|
771
|
+
key: 'b'
|
|
772
|
+
}]);
|
|
773
|
+
const [input, setInput] = React.useState('');
|
|
774
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
775
|
+
className: _TokenListInputStoriesModule.default.tokenListWrapper
|
|
776
|
+
}, /*#__PURE__*/React.createElement(_TokenListInput2.TokenListInput, _extends({}, args, {
|
|
777
|
+
inputValue: input,
|
|
778
|
+
onInputChange: setInput,
|
|
779
|
+
values: values,
|
|
780
|
+
onChange: setValues,
|
|
781
|
+
menu: {
|
|
782
|
+
options
|
|
783
|
+
}
|
|
784
|
+
})));
|
|
785
|
+
};
|
|
786
|
+
const _CustomOptionTokenListInput = args => /*#__PURE__*/React.createElement(CustomOptionTokenListInput, args);
|
|
787
|
+
exports._CustomOptionTokenListInput = _CustomOptionTokenListInput;
|
|
788
|
+
const _AllowArbitraryValues = args => {
|
|
789
|
+
const [values, setValues] = React.useState([]);
|
|
790
|
+
const [inputValue, setInputValue] = React.useState('');
|
|
791
|
+
const {
|
|
792
|
+
filteredOptions
|
|
793
|
+
} = (0, _useFilteredOptions.useFilteredOptions)({
|
|
794
|
+
searchTerm: inputValue,
|
|
795
|
+
options: args.menu?.options,
|
|
796
|
+
excludedKeys: values.map(value => value.key)
|
|
797
|
+
});
|
|
798
|
+
const {
|
|
799
|
+
optionsWithArbitrary
|
|
800
|
+
} = (0, _useArbitraryOptionAddition.useArbitraryOptionAddition)({
|
|
801
|
+
searchTerm: inputValue,
|
|
802
|
+
options: filteredOptions,
|
|
803
|
+
excludedKeys: values.map(value => value.key),
|
|
804
|
+
makeArbitraryValue: value => ({
|
|
805
|
+
key: value,
|
|
806
|
+
label: value,
|
|
807
|
+
arbitrary: true
|
|
808
|
+
})
|
|
809
|
+
});
|
|
810
|
+
const clearHandler = () => {
|
|
811
|
+
setValues([]);
|
|
812
|
+
setInputValue('');
|
|
813
|
+
};
|
|
814
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
815
|
+
className: _TokenListInputStoriesModule.default.tokenListWrapper
|
|
816
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
817
|
+
className: _TokenListInputStoriesModule.default.tokenListHeader
|
|
818
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
819
|
+
for: "token-list-input"
|
|
820
|
+
}, /*#__PURE__*/React.createElement(_Text.FormLabelSmall, {
|
|
821
|
+
color: _Text.TEXT_COLORS.secondary
|
|
822
|
+
}, "Select Tokens")), !args.disabled && !args.locked && values.length > 0 && /*#__PURE__*/React.createElement(_Text.ButtonTextExtraSmallUnderline, {
|
|
823
|
+
color: _Text.TEXT_COLORS.clickable,
|
|
824
|
+
className: (0, _classify.classify)(_TokenListInputStoriesModule.default.clearAllButton, {})
|
|
825
|
+
// @ts-ignore - TS2769 - No overload matches this call.
|
|
826
|
+
,
|
|
827
|
+
onClick: () => {
|
|
828
|
+
clearHandler();
|
|
829
|
+
}
|
|
830
|
+
// @ts-ignore - TS7006 - Parameter 'e' implicitly has an 'any' type.
|
|
831
|
+
,
|
|
832
|
+
onKeyDown: e => {
|
|
833
|
+
if (e.key === 'Enter') {
|
|
834
|
+
clearHandler();
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
tabIndex: 0
|
|
838
|
+
}, "Clear all")), /*#__PURE__*/React.createElement(_TokenListInput2.TokenListInput, _extends({}, args, {
|
|
839
|
+
values: values,
|
|
840
|
+
inputValue: inputValue,
|
|
841
|
+
onInputChange: setInputValue,
|
|
842
|
+
onChange: newValues => {
|
|
843
|
+
setValues(newValues);
|
|
844
|
+
setInputValue('');
|
|
845
|
+
},
|
|
846
|
+
menu: {
|
|
847
|
+
options: optionsWithArbitrary,
|
|
848
|
+
resolveLabel: option => {
|
|
849
|
+
if (option.arbitrary && option.label) {
|
|
850
|
+
return `Create New \"${option.label}\"`;
|
|
851
|
+
}
|
|
852
|
+
return option.label || '';
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
inputProps: {
|
|
856
|
+
// @ts-ignore - TS2322 - Type '{ id: string; }' is not assignable to type 'InputProps'.
|
|
857
|
+
id: 'token-list-input'
|
|
858
|
+
}
|
|
859
|
+
})));
|
|
860
|
+
};
|
|
861
|
+
exports._AllowArbitraryValues = _AllowArbitraryValues;
|
|
862
|
+
_AllowArbitraryValues.args = {
|
|
863
|
+
menu: {
|
|
864
|
+
options: [{
|
|
865
|
+
key: '1',
|
|
866
|
+
label: 'Option 1'
|
|
867
|
+
}, {
|
|
868
|
+
key: '2',
|
|
869
|
+
label: 'Option 2'
|
|
870
|
+
}, {
|
|
871
|
+
key: '3',
|
|
872
|
+
label: 'Option 3'
|
|
873
|
+
}]
|
|
874
|
+
},
|
|
875
|
+
disabled: false,
|
|
876
|
+
locked: false
|
|
877
|
+
};
|