@ultraviolet/ui 1.51.1 → 1.51.3
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/dist/components/ActionBar/index.d.ts +20 -0
- package/dist/components/ActionBar/index.js +30 -0
- package/dist/components/Alert/index.d.ts +27 -0
- package/dist/components/Alert/index.js +115 -0
- package/dist/components/Avatar/index.d.ts +43 -0
- package/dist/components/Avatar/index.js +57 -0
- package/dist/components/Badge/index.d.ts +31 -0
- package/dist/components/Badge/index.js +99 -0
- package/dist/components/Banner/assets/default-image-small.svg.js +4 -0
- package/dist/components/Banner/assets/default-image.svg.js +4 -0
- package/dist/components/Banner/index.d.ts +24 -0
- package/dist/components/Banner/index.js +116 -0
- package/dist/components/BarChart/Tooltip.d.ts +9 -0
- package/dist/components/BarChart/Tooltip.js +41 -0
- package/dist/components/BarChart/index.d.ts +27 -0
- package/dist/components/BarChart/index.js +69 -0
- package/dist/components/BarStack/index.d.ts +36 -0
- package/dist/components/BarStack/index.js +114 -0
- package/dist/components/Breadcrumbs/index.d.ts +30 -0
- package/dist/components/Breadcrumbs/index.js +73 -0
- package/dist/components/Bullet/index.d.ts +39 -0
- package/dist/components/Bullet/index.js +84 -0
- package/dist/components/Button/index.d.ts +120 -0
- package/dist/components/Button/index.js +249 -0
- package/dist/components/Card/index.d.ts +20 -0
- package/dist/components/Card/index.js +52 -0
- package/dist/components/Carousel/index.d.ts +19 -0
- package/dist/components/Carousel/index.js +123 -0
- package/dist/components/Checkbox/index.d.ts +36 -0
- package/dist/components/Checkbox/index.js +262 -0
- package/dist/components/CheckboxGroup/index.d.ts +24 -0
- package/dist/components/CheckboxGroup/index.js +116 -0
- package/dist/components/CopyButton/index.d.ts +19 -0
- package/dist/components/CopyButton/index.js +23 -0
- package/dist/components/DateInput/datepicker.css.js +4 -0
- package/dist/components/DateInput/index.d.ts +38 -0
- package/dist/components/DateInput/index.js +182 -0
- package/dist/components/Dialog/Context.d.ts +7 -0
- package/dist/components/Dialog/Context.js +13 -0
- package/dist/components/Dialog/constants.d.ts +2 -0
- package/dist/components/Dialog/index.d.ts +87 -0
- package/dist/components/Dialog/index.js +66 -0
- package/dist/components/Dialog/subComponents/Button.d.ts +7 -0
- package/dist/components/Dialog/subComponents/Button.js +15 -0
- package/dist/components/Dialog/subComponents/Buttons.d.ts +7 -0
- package/dist/components/Dialog/subComponents/Buttons.js +12 -0
- package/dist/components/Dialog/subComponents/CancelButton.d.ts +8 -0
- package/dist/components/Dialog/subComponents/CancelButton.js +9 -0
- package/dist/components/Dialog/subComponents/Stack.d.ts +6 -0
- package/dist/components/Dialog/subComponents/Stack.js +8 -0
- package/dist/components/Dialog/subComponents/Text.d.ts +6 -0
- package/dist/components/Dialog/subComponents/Text.js +8 -0
- package/dist/components/EmptyState/index.d.ts +38 -0
- package/dist/components/EmptyState/index.js +90 -0
- package/dist/components/Expandable/index.d.ts +33 -0
- package/dist/components/Expandable/index.js +75 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +3 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.js +23 -0
- package/dist/components/GlobalAlert/index.d.ts +40 -0
- package/dist/components/GlobalAlert/index.js +59 -0
- package/dist/components/LineChart/CustomLegend.d.ts +13 -0
- package/dist/components/LineChart/CustomLegend.js +113 -0
- package/dist/components/LineChart/Tooltip.d.ts +6 -0
- package/dist/components/LineChart/Tooltip.js +35 -0
- package/dist/components/LineChart/helpers.d.ts +8 -0
- package/dist/{src/components → components}/LineChart/helpers.js +22 -10
- package/dist/components/LineChart/index.d.ts +25 -0
- package/dist/components/LineChart/index.js +101 -0
- package/dist/components/Link/index.d.ts +33 -0
- package/dist/components/Link/index.js +128 -0
- package/dist/components/List/Body.d.ts +6 -0
- package/dist/components/List/Body.js +16 -0
- package/dist/components/List/Cell.d.ts +12 -0
- package/dist/components/List/Cell.js +41 -0
- package/dist/components/List/HeaderCell.d.ts +11 -0
- package/dist/components/List/HeaderCell.js +82 -0
- package/dist/components/List/HeaderRow.d.ts +7 -0
- package/dist/components/List/HeaderRow.js +36 -0
- package/dist/components/List/ListContext.d.ts +34 -0
- package/dist/{src/components → components}/List/ListContext.js +27 -29
- package/dist/components/List/Row.d.ts +23 -0
- package/dist/components/List/Row.js +161 -0
- package/dist/components/List/SelectBar.d.ts +15 -0
- package/dist/components/List/SelectBar.js +52 -0
- package/dist/components/List/SkeletonRows.d.ts +7 -0
- package/dist/components/List/SkeletonRows.js +55 -0
- package/dist/components/List/constants.d.ts +2 -0
- package/dist/{src/components → components}/List/constants.js +4 -2
- package/dist/components/List/index.d.ts +68 -0
- package/dist/components/List/index.js +60 -0
- package/dist/components/Loader/index.d.ts +22 -0
- package/dist/components/Loader/index.js +77 -0
- package/dist/components/Menu/Item.d.ts +15 -0
- package/dist/components/Menu/Item.js +91 -0
- package/dist/components/Menu/index.d.ts +49 -0
- package/dist/components/Menu/index.js +116 -0
- package/dist/components/MenuV2/Group.d.ts +7 -0
- package/dist/components/MenuV2/Group.js +21 -0
- package/dist/components/MenuV2/Item.d.ts +16 -0
- package/dist/components/MenuV2/Item.js +113 -0
- package/dist/components/MenuV2/index.d.ts +90 -0
- package/dist/components/MenuV2/index.js +90 -0
- package/dist/components/Meter/index.d.ts +26 -0
- package/dist/components/Meter/index.js +63 -0
- package/dist/components/Modal/Dialog.d.ts +3 -0
- package/dist/components/Modal/Dialog.js +141 -0
- package/dist/components/Modal/Disclosure.d.ts +3 -0
- package/dist/{src/components → components}/Modal/Disclosure.js +12 -12
- package/dist/components/Modal/constants.d.ts +3 -0
- package/dist/{src/components → components}/Modal/constants.js +8 -6
- package/dist/components/Modal/index.d.ts +42 -0
- package/dist/components/Modal/index.js +79 -0
- package/dist/components/Modal/types.d.ts +48 -0
- package/dist/components/Notice/index.d.ts +11 -0
- package/dist/components/Notice/index.js +23 -0
- package/dist/components/Notification/index.d.ts +36 -0
- package/dist/components/Notification/index.js +49 -0
- package/dist/components/Notification/react-toastify.css.js +4 -0
- package/dist/components/NumberInput/helpers.d.ts +4 -0
- package/dist/{src/components → components}/NumberInput/helpers.js +6 -2
- package/dist/components/NumberInput/index.d.ts +41 -0
- package/dist/components/NumberInput/index.js +262 -0
- package/dist/components/NumberInputV2/index.d.ts +27 -0
- package/dist/components/NumberInputV2/index.js +221 -0
- package/dist/components/Pagination/getPageNumbers.d.ts +8 -0
- package/dist/{src/components → components}/Pagination/getPageNumbers.js +3 -9
- package/dist/components/Pagination/index.d.ts +30 -0
- package/dist/components/Pagination/index.js +88 -0
- package/dist/components/PasswordCheck/index.d.ts +20 -0
- package/dist/components/PasswordCheck/index.js +24 -0
- package/dist/components/PasswordStrengthMeter/index.d.ts +39 -0
- package/dist/components/PasswordStrengthMeter/index.js +96 -0
- package/dist/components/PieChart/Legends.d.ts +9 -0
- package/dist/components/PieChart/Legends.js +142 -0
- package/dist/components/PieChart/Tooltip.d.ts +12 -0
- package/dist/components/PieChart/Tooltip.js +49 -0
- package/dist/components/PieChart/index.d.ts +20 -0
- package/dist/components/PieChart/index.js +101 -0
- package/dist/components/PieChart/types.d.ts +7 -0
- package/dist/components/Popover/index.d.ts +55 -0
- package/dist/components/Popover/index.js +100 -0
- package/dist/components/Popup/animations.d.ts +11 -0
- package/dist/{src/components → components}/Popup/animations.js +7 -6
- package/dist/components/Popup/helpers.d.ts +31 -0
- package/dist/components/Popup/helpers.js +216 -0
- package/dist/components/Popup/index.d.ts +72 -0
- package/dist/components/Popup/index.js +297 -0
- package/dist/components/ProgressBar/index.d.ts +14 -0
- package/dist/components/ProgressBar/index.js +53 -0
- package/dist/components/Radio/index.d.ts +21 -0
- package/dist/components/Radio/index.js +133 -0
- package/dist/components/RadioGroup/index.d.ts +25 -0
- package/dist/components/RadioGroup/index.js +99 -0
- package/dist/components/Row/index.d.ts +22 -0
- package/dist/components/Row/index.js +34 -0
- package/dist/components/SelectInput/index.d.ts +75 -0
- package/dist/components/SelectInput/index.js +516 -0
- package/dist/components/SelectInputV2/Dropdown.d.ts +23 -0
- package/dist/components/SelectInputV2/Dropdown.js +429 -0
- package/dist/components/SelectInputV2/DropdownOption.d.ts +8 -0
- package/dist/components/SelectInputV2/DropdownOption.js +62 -0
- package/dist/components/SelectInputV2/SearchBarDropdown.d.ts +9 -0
- package/dist/components/SelectInputV2/SearchBarDropdown.js +107 -0
- package/dist/components/SelectInputV2/SelectBar.d.ts +14 -0
- package/dist/components/SelectInputV2/SelectBar.js +224 -0
- package/dist/components/SelectInputV2/SelectInputProvider.d.ts +41 -0
- package/dist/{src/components → components}/SelectInputV2/SelectInputProvider.js +38 -36
- package/dist/components/SelectInputV2/findOptionInOptions.d.ts +2 -0
- package/dist/components/SelectInputV2/findOptionInOptions.js +12 -0
- package/dist/components/SelectInputV2/index.d.ts +115 -0
- package/dist/components/SelectInputV2/index.js +87 -0
- package/dist/components/SelectInputV2/types.d.ts +38 -0
- package/dist/{src/components → components}/SelectInputV2/types.js +4 -2
- package/dist/components/SelectableCard/index.d.ts +25 -0
- package/dist/components/SelectableCard/index.js +137 -0
- package/dist/components/SelectableCardGroup/index.d.ts +23 -0
- package/dist/components/SelectableCardGroup/index.js +107 -0
- package/dist/components/Separator/index.d.ts +17 -0
- package/dist/components/Separator/index.js +56 -0
- package/dist/components/Skeleton/Block.d.ts +3 -0
- package/dist/components/Skeleton/Block.js +38 -0
- package/dist/components/Skeleton/Blocks.d.ts +4 -0
- package/dist/components/Skeleton/Blocks.js +38 -0
- package/dist/components/Skeleton/BoxWithIcon.d.ts +4 -0
- package/dist/components/Skeleton/BoxWithIcon.js +36 -0
- package/dist/components/Skeleton/Donut.d.ts +1 -0
- package/dist/components/Skeleton/Donut.js +61 -0
- package/dist/components/Skeleton/IconSkeleton.d.ts +5 -0
- package/dist/components/Skeleton/IconSkeleton.js +22 -0
- package/dist/components/Skeleton/Line.d.ts +5 -0
- package/dist/components/Skeleton/Line.js +16 -0
- package/dist/components/Skeleton/List.d.ts +4 -0
- package/dist/components/Skeleton/List.js +56 -0
- package/dist/components/Skeleton/Slider.d.ts +3 -0
- package/dist/components/Skeleton/Slider.js +40 -0
- package/dist/components/Skeleton/Square.d.ts +5 -0
- package/dist/components/Skeleton/Square.js +12 -0
- package/dist/components/Skeleton/index.d.ts +47 -0
- package/dist/components/Skeleton/index.js +79 -0
- package/dist/components/Snippet/index.d.ts +23 -0
- package/dist/components/Snippet/index.js +182 -0
- package/dist/components/Stack/index.d.ts +23 -0
- package/dist/components/Stack/index.js +29 -0
- package/dist/components/Status/index.d.ts +32 -0
- package/dist/components/Status/index.js +72 -0
- package/dist/components/StepList/index.d.ts +33 -0
- package/dist/components/StepList/index.js +58 -0
- package/dist/components/Stepper/index.d.ts +15 -0
- package/dist/components/Stepper/index.js +145 -0
- package/dist/components/SwitchButton/FocusOverlay.d.ts +8 -0
- package/dist/components/SwitchButton/FocusOverlay.js +38 -0
- package/dist/components/SwitchButton/index.d.ts +26 -0
- package/dist/components/SwitchButton/index.js +76 -0
- package/dist/components/Table/Body.d.ts +6 -0
- package/dist/components/Table/Body.js +7 -0
- package/dist/components/Table/Cell.d.ts +9 -0
- package/dist/components/Table/Cell.js +19 -0
- package/dist/components/Table/Header.d.ts +6 -0
- package/dist/components/Table/Header.js +16 -0
- package/dist/components/Table/HeaderCell.d.ts +14 -0
- package/dist/components/Table/HeaderCell.js +80 -0
- package/dist/components/Table/HeaderRow.d.ts +7 -0
- package/dist/components/Table/HeaderRow.js +23 -0
- package/dist/components/Table/Row.d.ts +14 -0
- package/dist/components/Table/Row.js +80 -0
- package/dist/components/Table/SelectBar.d.ts +15 -0
- package/dist/components/Table/SelectBar.js +52 -0
- package/dist/components/Table/SkeletonRows.d.ts +7 -0
- package/dist/components/Table/SkeletonRows.js +54 -0
- package/dist/components/Table/TableContext.d.ts +27 -0
- package/dist/{src/components → components}/Table/TableContext.js +19 -21
- package/dist/components/Table/index.d.ts +60 -0
- package/dist/components/Table/index.js +67 -0
- package/dist/components/Tabs/Tab.d.ts +20 -0
- package/dist/components/Tabs/Tab.js +120 -0
- package/dist/components/Tabs/TabMenu.d.ts +8 -0
- package/dist/components/Tabs/TabMenu.js +62 -0
- package/dist/components/Tabs/TabMenuItem.d.ts +20 -0
- package/dist/components/Tabs/TabMenuItem.js +34 -0
- package/dist/components/Tabs/TabsContext.d.ts +8 -0
- package/dist/components/Tabs/TabsContext.js +7 -0
- package/dist/components/Tabs/index.d.ts +50 -0
- package/dist/components/Tabs/index.js +102 -0
- package/dist/components/Tag/index.d.ts +26 -0
- package/dist/components/Tag/index.js +144 -0
- package/dist/components/TagInput/index.d.ts +55 -0
- package/dist/components/TagInput/index.js +253 -0
- package/dist/components/TagList/index.d.ts +37 -0
- package/dist/components/TagList/index.js +98 -0
- package/dist/components/Text/index.d.ts +40 -0
- package/dist/components/Text/index.js +82 -0
- package/dist/components/TextArea/index.d.ts +50 -0
- package/dist/components/TextArea/index.js +158 -0
- package/dist/components/TextInput/index.d.ts +75 -0
- package/dist/components/TextInput/index.js +387 -0
- package/dist/components/TextInputV2/index.d.ts +30 -0
- package/dist/components/TextInputV2/index.js +190 -0
- package/dist/components/TimeInput/index.d.ts +25 -0
- package/dist/components/TimeInput/index.js +28 -0
- package/dist/components/Toaster/index.d.ts +46 -0
- package/dist/components/Toaster/index.js +83 -0
- package/dist/components/Toaster/react-toastify.css.js +4 -0
- package/dist/components/Toggle/index.d.ts +34 -0
- package/dist/components/Toggle/index.js +136 -0
- package/dist/components/ToggleGroup/index.d.ts +24 -0
- package/dist/components/ToggleGroup/index.js +96 -0
- package/dist/components/Tooltip/index.d.ts +9 -0
- package/dist/components/Tooltip/index.js +40 -0
- package/dist/components/VerificationCode/index.d.ts +36 -0
- package/dist/components/VerificationCode/index.js +217 -0
- package/dist/components/index.d.ts +75 -0
- package/dist/helpers/isJSON.d.ts +2 -0
- package/dist/{src/helpers → helpers}/isJSON.js +4 -3
- package/dist/helpers/jestMockMatchMedia.d.ts +6 -0
- package/dist/helpers/keycode.d.ts +3 -0
- package/dist/helpers/legend.d.ts +2 -0
- package/dist/helpers/legend.js +14 -0
- package/dist/helpers/numbers.d.ts +2 -0
- package/dist/helpers/recursivelyGetChildrenString.d.ts +3 -0
- package/dist/helpers/recursivelyGetChildrenString.js +15 -0
- package/dist/hooks/useIsOverflowing.d.ts +5 -0
- package/dist/hooks/useIsOverflowing.js +23 -0
- package/dist/index.d.ts +4 -3723
- package/dist/index.js +187 -0
- package/dist/mocks/list.d.ts +12 -0
- package/dist/theme/index.d.ts +1573 -0
- package/dist/theme/index.js +27 -0
- package/dist/types.d.ts +6 -0
- package/dist/utils/animations.d.ts +27 -0
- package/dist/{src/utils → utils}/animations.js +30 -4
- package/dist/utils/capitalize.d.ts +2 -0
- package/dist/utils/capitalize.js +4 -0
- package/dist/utils/ids.d.ts +1 -0
- package/dist/{src/utils → utils}/ids.js +5 -4
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/normalize.d.ts +2 -0
- package/dist/{src/utils → utils}/normalize.js +4 -3
- package/dist/utils/orderBy.d.ts +2 -0
- package/dist/utils/responsive/Breakpoint.d.ts +9 -0
- package/dist/utils/responsive/Breakpoint.js +15 -0
- package/dist/utils/responsive/index.d.ts +2 -0
- package/dist/utils/responsive/utilities.d.ts +3 -0
- package/dist/{src/utils → utils}/responsive/utilities.js +9 -6
- package/package.json +18 -8
- package/dist/react-datepicker/dist/react-datepicker.min.css.js +0 -3
- package/dist/react-toastify/dist/ReactToastify.min.css.js +0 -3
- package/dist/src/components/ActionBar/index.js +0 -40
- package/dist/src/components/Alert/index.js +0 -133
- package/dist/src/components/Avatar/index.js +0 -74
- package/dist/src/components/Badge/index.js +0 -116
- package/dist/src/components/Banner/assets/default-image-small.svg.js +0 -5
- package/dist/src/components/Banner/assets/default-image.svg.js +0 -5
- package/dist/src/components/Banner/index.js +0 -159
- package/dist/src/components/BarChart/Tooltip.js +0 -48
- package/dist/src/components/BarChart/index.js +0 -95
- package/dist/src/components/BarStack/index.js +0 -136
- package/dist/src/components/Breadcrumbs/index.js +0 -82
- package/dist/src/components/Bullet/index.js +0 -98
- package/dist/src/components/Button/index.js +0 -311
- package/dist/src/components/Card/index.js +0 -67
- package/dist/src/components/Carousel/index.js +0 -128
- package/dist/src/components/Checkbox/index.js +0 -316
- package/dist/src/components/CheckboxGroup/index.js +0 -143
- package/dist/src/components/CopyButton/index.js +0 -37
- package/dist/src/components/DateInput/index.js +0 -242
- package/dist/src/components/Dialog/Context.js +0 -12
- package/dist/src/components/Dialog/index.js +0 -88
- package/dist/src/components/Dialog/subComponents/Button.js +0 -21
- package/dist/src/components/Dialog/subComponents/Buttons.js +0 -14
- package/dist/src/components/Dialog/subComponents/CancelButton.js +0 -14
- package/dist/src/components/Dialog/subComponents/Stack.js +0 -11
- package/dist/src/components/Dialog/subComponents/Text.js +0 -12
- package/dist/src/components/EmptyState/index.js +0 -112
- package/dist/src/components/Expandable/index.js +0 -96
- package/dist/src/components/GlobalAlert/GlobalAlertLink.js +0 -38
- package/dist/src/components/GlobalAlert/index.js +0 -82
- package/dist/src/components/LineChart/CustomLegend.js +0 -138
- package/dist/src/components/LineChart/Tooltip.js +0 -43
- package/dist/src/components/LineChart/index.js +0 -131
- package/dist/src/components/Link/index.js +0 -147
- package/dist/src/components/List/Body.js +0 -16
- package/dist/src/components/List/Cell.js +0 -43
- package/dist/src/components/List/HeaderCell.js +0 -90
- package/dist/src/components/List/HeaderRow.js +0 -43
- package/dist/src/components/List/Row.js +0 -185
- package/dist/src/components/List/SelectBar.js +0 -48
- package/dist/src/components/List/SkeletonRows.js +0 -53
- package/dist/src/components/List/index.js +0 -75
- package/dist/src/components/Loader/index.js +0 -100
- package/dist/src/components/Menu/Item.js +0 -112
- package/dist/src/components/Menu/index.js +0 -129
- package/dist/src/components/MenuV2/Group.js +0 -25
- package/dist/src/components/MenuV2/Item.js +0 -139
- package/dist/src/components/MenuV2/index.js +0 -118
- package/dist/src/components/Meter/index.js +0 -76
- package/dist/src/components/Modal/Dialog.js +0 -182
- package/dist/src/components/Modal/index.js +0 -113
- package/dist/src/components/Notice/index.js +0 -34
- package/dist/src/components/Notification/index.js +0 -77
- package/dist/src/components/NumberInput/index.js +0 -299
- package/dist/src/components/NumberInputV2/index.js +0 -284
- package/dist/src/components/Pagination/index.js +0 -117
- package/dist/src/components/PasswordCheck/index.js +0 -41
- package/dist/src/components/PasswordStrengthMeter/index.js +0 -102
- package/dist/src/components/PieChart/Legends.js +0 -138
- package/dist/src/components/PieChart/Tooltip.js +0 -61
- package/dist/src/components/PieChart/index.js +0 -125
- package/dist/src/components/Popover/index.js +0 -146
- package/dist/src/components/Popup/helpers.js +0 -252
- package/dist/src/components/Popup/index.js +0 -383
- package/dist/src/components/ProgressBar/index.js +0 -57
- package/dist/src/components/Radio/index.js +0 -157
- package/dist/src/components/RadioGroup/index.js +0 -131
- package/dist/src/components/Row/index.js +0 -41
- package/dist/src/components/SelectInput/index.js +0 -610
- package/dist/src/components/SelectInputV2/Dropdown.js +0 -594
- package/dist/src/components/SelectInputV2/DropdownOption.js +0 -130
- package/dist/src/components/SelectInputV2/SearchBarDropdown.js +0 -122
- package/dist/src/components/SelectInputV2/SelectBar.js +0 -282
- package/dist/src/components/SelectInputV2/findOptionInOptions.js +0 -11
- package/dist/src/components/SelectInputV2/index.js +0 -137
- package/dist/src/components/SelectableCard/index.js +0 -175
- package/dist/src/components/SelectableCardGroup/index.js +0 -141
- package/dist/src/components/Separator/index.js +0 -73
- package/dist/src/components/Skeleton/Block.js +0 -35
- package/dist/src/components/Skeleton/Blocks.js +0 -34
- package/dist/src/components/Skeleton/BoxWithIcon.js +0 -32
- package/dist/src/components/Skeleton/Donut.js +0 -55
- package/dist/src/components/Skeleton/IconSkeleton.js +0 -19
- package/dist/src/components/Skeleton/Line.js +0 -13
- package/dist/src/components/Skeleton/List.js +0 -51
- package/dist/src/components/Skeleton/Slider.js +0 -36
- package/dist/src/components/Skeleton/Square.js +0 -9
- package/dist/src/components/Skeleton/index.js +0 -82
- package/dist/src/components/Snippet/index.js +0 -200
- package/dist/src/components/Stack/index.js +0 -29
- package/dist/src/components/Status/index.js +0 -74
- package/dist/src/components/StepList/index.js +0 -69
- package/dist/src/components/Stepper/index.js +0 -150
- package/dist/src/components/SwitchButton/FocusOverlay.js +0 -37
- package/dist/src/components/SwitchButton/index.js +0 -108
- package/dist/src/components/Table/Body.js +0 -9
- package/dist/src/components/Table/Cell.js +0 -21
- package/dist/src/components/Table/Header.js +0 -15
- package/dist/src/components/Table/HeaderCell.js +0 -103
- package/dist/src/components/Table/HeaderRow.js +0 -32
- package/dist/src/components/Table/Row.js +0 -89
- package/dist/src/components/Table/SelectBar.js +0 -48
- package/dist/src/components/Table/SkeletonRows.js +0 -51
- package/dist/src/components/Table/index.js +0 -82
- package/dist/src/components/Tabs/Tab.js +0 -138
- package/dist/src/components/Tabs/TabMenu.js +0 -59
- package/dist/src/components/Tabs/TabMenuItem.js +0 -36
- package/dist/src/components/Tabs/TabsContext.js +0 -6
- package/dist/src/components/Tabs/index.js +0 -117
- package/dist/src/components/Tag/index.js +0 -169
- package/dist/src/components/TagInput/index.js +0 -309
- package/dist/src/components/TagList/index.js +0 -106
- package/dist/src/components/Text/index.js +0 -107
- package/dist/src/components/TextArea/index.js +0 -210
- package/dist/src/components/TextInput/index.js +0 -451
- package/dist/src/components/TextInputV2/index.js +0 -289
- package/dist/src/components/TimeInput/index.js +0 -37
- package/dist/src/components/Toaster/index.js +0 -131
- package/dist/src/components/Toggle/index.js +0 -160
- package/dist/src/components/ToggleGroup/index.js +0 -122
- package/dist/src/components/Tooltip/index.js +0 -55
- package/dist/src/components/VerificationCode/index.js +0 -222
- package/dist/src/helpers/legend.js +0 -13
- package/dist/src/helpers/recursivelyGetChildrenString.js +0 -11
- package/dist/src/hooks/useIsOverflowing.js +0 -34
- package/dist/src/index.js +0 -77
- package/dist/src/theme/index.js +0 -29
- package/dist/src/utils/capitalize.js +0 -3
- package/dist/src/utils/responsive/Breakpoint.js +0 -12
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const SelectInputContext = /*#__PURE__*/createContext({
|
|
1
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext, useMemo, useState, useReducer, useContext } from "react";
|
|
3
|
+
const SelectInputContext = createContext({
|
|
5
4
|
options: [],
|
|
6
5
|
multiselect: false,
|
|
7
|
-
onSearch: () => {
|
|
6
|
+
onSearch: () => {
|
|
7
|
+
},
|
|
8
8
|
isDropdownVisible: false,
|
|
9
|
-
setIsDropdownVisible: () => {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setIsDropdownVisible: () => {
|
|
10
|
+
},
|
|
11
|
+
searchInput: "",
|
|
12
|
+
setSearchInput: () => {
|
|
13
|
+
},
|
|
12
14
|
selectAll: {
|
|
13
|
-
label:
|
|
15
|
+
label: ""
|
|
14
16
|
},
|
|
15
17
|
selectAllGroup: false,
|
|
16
18
|
numberOfOptions: 0,
|
|
@@ -20,8 +22,10 @@ const SelectInputContext = /*#__PURE__*/createContext({
|
|
|
20
22
|
selectedGroups: [],
|
|
21
23
|
selectedValues: []
|
|
22
24
|
},
|
|
23
|
-
setSelectedData: () => {
|
|
24
|
-
|
|
25
|
+
setSelectedData: () => {
|
|
26
|
+
},
|
|
27
|
+
onChange: () => {
|
|
28
|
+
}
|
|
25
29
|
});
|
|
26
30
|
const useSelectInput = () => useContext(SelectInputContext);
|
|
27
31
|
const SelectInputProvider = ({
|
|
@@ -47,14 +51,14 @@ const SelectInputProvider = ({
|
|
|
47
51
|
if (Array.isArray(options)) {
|
|
48
52
|
return [];
|
|
49
53
|
}
|
|
50
|
-
return Object.keys(options).filter(group => options[group].every(groupOption => currentValue.includes(groupOption.value)));
|
|
54
|
+
return Object.keys(options).filter((group) => options[group].every((groupOption) => currentValue.includes(groupOption.value)));
|
|
51
55
|
}, [currentValue, options]);
|
|
52
56
|
const [displayedOptions, setDisplayedOptions] = useState(options);
|
|
53
57
|
const [isDropdownVisible, setIsDropdownVisible] = useState(false);
|
|
54
|
-
const [searchInput, setSearchInput] = useState(
|
|
58
|
+
const [searchInput, setSearchInput] = useState("");
|
|
55
59
|
const allValues = useMemo(() => {
|
|
56
60
|
if (!Array.isArray(options)) {
|
|
57
|
-
return Object.keys(options).map(group => options[group].filter(option => !option.disabled)).flat();
|
|
61
|
+
return Object.keys(options).map((group) => options[group].filter((option) => !option.disabled)).flat();
|
|
58
62
|
}
|
|
59
63
|
return options;
|
|
60
64
|
}, [options]);
|
|
@@ -66,7 +70,7 @@ const SelectInputProvider = ({
|
|
|
66
70
|
}, [options]);
|
|
67
71
|
const reducer = (state, action) => {
|
|
68
72
|
switch (action.type) {
|
|
69
|
-
case
|
|
73
|
+
case "selectAll":
|
|
70
74
|
if (state.allSelected) {
|
|
71
75
|
return {
|
|
72
76
|
selectedValues: [],
|
|
@@ -75,21 +79,21 @@ const SelectInputProvider = ({
|
|
|
75
79
|
};
|
|
76
80
|
}
|
|
77
81
|
return {
|
|
78
|
-
selectedValues: allValues.map(option => option.value),
|
|
82
|
+
selectedValues: allValues.map((option) => option.value),
|
|
79
83
|
allSelected: true,
|
|
80
84
|
selectedGroups: allGroups
|
|
81
85
|
};
|
|
82
|
-
case
|
|
86
|
+
case "selectGroup":
|
|
83
87
|
if (!Array.isArray(options)) {
|
|
84
88
|
if (state.selectedGroups.includes(action.selectedGroup)) {
|
|
85
89
|
return {
|
|
86
|
-
selectedValues: [...state.selectedValues].filter(selectedValue => !options[action.selectedGroup].find(option => option.value === selectedValue)),
|
|
90
|
+
selectedValues: [...state.selectedValues].filter((selectedValue) => !options[action.selectedGroup].find((option) => option.value === selectedValue)),
|
|
87
91
|
allSelected: false,
|
|
88
|
-
selectedGroups: state.selectedGroups.filter(selectedGroup => selectedGroup !== action.selectedGroup)
|
|
92
|
+
selectedGroups: state.selectedGroups.filter((selectedGroup) => selectedGroup !== action.selectedGroup)
|
|
89
93
|
};
|
|
90
94
|
}
|
|
91
95
|
const newSelectedValues = [...state.selectedValues];
|
|
92
|
-
options[action.selectedGroup].map(option => newSelectedValues.find(aValue => aValue === option.value) || option.disabled ? null : newSelectedValues.push(option.value));
|
|
96
|
+
options[action.selectedGroup].map((option) => newSelectedValues.find((aValue) => aValue === option.value) || option.disabled ? null : newSelectedValues.push(option.value));
|
|
93
97
|
return {
|
|
94
98
|
selectedValues: newSelectedValues,
|
|
95
99
|
allSelected: newSelectedValues.length === numberOfOptions,
|
|
@@ -97,19 +101,19 @@ const SelectInputProvider = ({
|
|
|
97
101
|
};
|
|
98
102
|
}
|
|
99
103
|
return state;
|
|
100
|
-
case
|
|
104
|
+
case "selectOption":
|
|
101
105
|
if (multiselect) {
|
|
102
106
|
if (state.selectedValues.includes(action.clickedOption.value)) {
|
|
103
107
|
return {
|
|
104
|
-
selectedValues: state.selectedValues.filter(val => val !== action.clickedOption.value),
|
|
108
|
+
selectedValues: state.selectedValues.filter((val) => val !== action.clickedOption.value),
|
|
105
109
|
allSelected: false,
|
|
106
|
-
selectedGroups: action.group && state.selectedGroups.includes(action.group) ? state.selectedGroups.filter(selectedGroup => selectedGroup !== action.group) : []
|
|
110
|
+
selectedGroups: action.group && state.selectedGroups.includes(action.group) ? state.selectedGroups.filter((selectedGroup) => selectedGroup !== action.group) : []
|
|
107
111
|
};
|
|
108
112
|
}
|
|
109
113
|
return {
|
|
110
114
|
selectedValues: [...state.selectedValues, action.clickedOption.value],
|
|
111
115
|
allSelected: state.selectedValues.length + 1 === numberOfOptions,
|
|
112
|
-
selectedGroups: !Array.isArray(options) && action.group && options[action.group].every(option => [...state.selectedValues, action.clickedOption.value].includes(option.value) || option.disabled) ? [...state.selectedGroups, action.group] : state.selectedGroups
|
|
116
|
+
selectedGroups: !Array.isArray(options) && action.group && options[action.group].every((option) => [...state.selectedValues, action.clickedOption.value].includes(option.value) || option.disabled) ? [...state.selectedGroups, action.group] : state.selectedGroups
|
|
113
117
|
};
|
|
114
118
|
}
|
|
115
119
|
return {
|
|
@@ -117,22 +121,21 @@ const SelectInputProvider = ({
|
|
|
117
121
|
allSelected: false,
|
|
118
122
|
selectedGroups: state.selectedGroups
|
|
119
123
|
};
|
|
120
|
-
case
|
|
124
|
+
case "clearAll":
|
|
121
125
|
return {
|
|
122
126
|
selectedGroups: [],
|
|
123
127
|
selectedValues: [],
|
|
124
128
|
allSelected: false
|
|
125
129
|
};
|
|
126
|
-
case
|
|
127
|
-
// update the selected values to only keep non-disabled one
|
|
130
|
+
case "update":
|
|
128
131
|
return {
|
|
129
132
|
selectedGroups: state.selectedGroups,
|
|
130
133
|
allSelected: state.allSelected,
|
|
131
|
-
selectedValues: state.selectedValues.filter(selectedValue => {
|
|
134
|
+
selectedValues: state.selectedValues.filter((selectedValue) => {
|
|
132
135
|
if (!Array.isArray(options)) {
|
|
133
|
-
return Object.keys(options).some(group => options[group].some(option => option.value === selectedValue && !option.disabled));
|
|
136
|
+
return Object.keys(options).some((group) => options[group].some((option) => option.value === selectedValue && !option.disabled));
|
|
134
137
|
}
|
|
135
|
-
return options.some(option => option.value === selectedValue && !option.disabled);
|
|
138
|
+
return options.some((option) => option.value === selectedValue && !option.disabled);
|
|
136
139
|
})
|
|
137
140
|
};
|
|
138
141
|
default:
|
|
@@ -160,10 +163,9 @@ const SelectInputProvider = ({
|
|
|
160
163
|
setSelectedData,
|
|
161
164
|
onChange
|
|
162
165
|
}), [displayedOptions, isDropdownVisible, multiselect, numberOfOptions, options, searchInput, selectAll, selectAllGroup, selectedData, onChange]);
|
|
163
|
-
return jsx(SelectInputContext.Provider, {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
return /* @__PURE__ */ jsx(SelectInputContext.Provider, { value: providerValue, children });
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
SelectInputProvider,
|
|
170
|
+
useSelectInput
|
|
167
171
|
};
|
|
168
|
-
|
|
169
|
-
export { SelectInputProvider, useSelectInput };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const findOptionInOptions = (options, optionValue) => {
|
|
2
|
+
let flatOptions = [];
|
|
3
|
+
if (!Array.isArray(options)) {
|
|
4
|
+
flatOptions = Object.keys(options).map((group) => options[group]).flat();
|
|
5
|
+
} else {
|
|
6
|
+
flatOptions = options;
|
|
7
|
+
}
|
|
8
|
+
return flatOptions.find((option) => option.value === optionValue);
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
findOptionInOptions
|
|
12
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { DataType } from './types';
|
|
3
|
+
type SelectInputV2Props<IsMulti extends undefined | boolean = false> = {
|
|
4
|
+
/**
|
|
5
|
+
* Input name
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Place holder when no value defined
|
|
10
|
+
*/
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/**
|
|
13
|
+
* When searchable, placeholder when no value is searched
|
|
14
|
+
*/
|
|
15
|
+
placeholderSearch?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Label of the component
|
|
18
|
+
*/
|
|
19
|
+
label?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Helper text to give more information to the user
|
|
22
|
+
*/
|
|
23
|
+
helper?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Selectable options
|
|
26
|
+
*/
|
|
27
|
+
options: DataType;
|
|
28
|
+
/**
|
|
29
|
+
* Message to show when no option available
|
|
30
|
+
*/
|
|
31
|
+
emptyState?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Whether it is possible to search through the input
|
|
34
|
+
*/
|
|
35
|
+
searchable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the component in disabled
|
|
38
|
+
*/
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the component in readOnly
|
|
42
|
+
*/
|
|
43
|
+
readOnly?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether it is possible to clear the search input
|
|
46
|
+
*/
|
|
47
|
+
clearable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Size of the input
|
|
50
|
+
*/
|
|
51
|
+
size?: 'small' | 'medium' | 'large';
|
|
52
|
+
/**
|
|
53
|
+
* Whether field is required
|
|
54
|
+
*/
|
|
55
|
+
required?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* More information regarding/description ofs the selectInput
|
|
58
|
+
*/
|
|
59
|
+
labelDescription?: ReactNode;
|
|
60
|
+
/**
|
|
61
|
+
* Whether option description is on the right of the option or under it
|
|
62
|
+
*/
|
|
63
|
+
descriptionDirection?: 'row' | 'column';
|
|
64
|
+
/**
|
|
65
|
+
* Where to place the additional info prop
|
|
66
|
+
*/
|
|
67
|
+
optionalInfoPlacement?: 'left' | 'right';
|
|
68
|
+
/**
|
|
69
|
+
* To add custom fixed elements at the bottom of the dropdown
|
|
70
|
+
*/
|
|
71
|
+
footer?: ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Display an error message under the select bar
|
|
74
|
+
*/
|
|
75
|
+
error?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Display a success message under the select bar
|
|
78
|
+
*/
|
|
79
|
+
success?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Load more button to implement lazy loading
|
|
82
|
+
*/
|
|
83
|
+
loadMore?: ReactNode;
|
|
84
|
+
/**
|
|
85
|
+
* When the options are loading, display a skeleton
|
|
86
|
+
*/
|
|
87
|
+
isLoading?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Adds an option to select every selectable options
|
|
90
|
+
*/
|
|
91
|
+
selectAll?: {
|
|
92
|
+
label: ReactNode;
|
|
93
|
+
description?: string;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* When options are group, define a option to select every selectable options of a group
|
|
97
|
+
*/
|
|
98
|
+
selectAllGroup?: boolean;
|
|
99
|
+
autofocus?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Whether it is possible to select multiple options
|
|
102
|
+
*/
|
|
103
|
+
multiselect?: IsMulti;
|
|
104
|
+
/**
|
|
105
|
+
* Default value, must be one of the options
|
|
106
|
+
*/
|
|
107
|
+
value?: IsMulti extends true ? string[] : string;
|
|
108
|
+
onChange?: IsMulti extends true ? (value: string[]) => void : (value: string) => void;
|
|
109
|
+
'data-testid'?: string;
|
|
110
|
+
} & Pick<HTMLAttributes<HTMLDivElement>, 'id' | 'onBlur' | 'onFocus' | 'aria-label' | 'className'>;
|
|
111
|
+
/**
|
|
112
|
+
* SelectInputV2 component is used to select one or many elements from a selection.
|
|
113
|
+
*/
|
|
114
|
+
export declare const SelectInputV2: <IsMulti extends boolean | undefined>({ name, id, onBlur, onFocus, onChange, "aria-label": ariaLabel, value, label, helper, options, size, emptyState, descriptionDirection, success, error, "data-testid": dataTestId, className, footer, placeholderSearch, placeholder, searchable, disabled, readOnly, clearable, multiselect, required, labelDescription, autofocus, loadMore, optionalInfoPlacement, isLoading, selectAll, selectAllGroup, }: SelectInputV2Props<IsMulti>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import _styled from "@emotion/styled/base";
|
|
3
|
+
import { Icon } from "@ultraviolet/icons";
|
|
4
|
+
import { useRef } from "react";
|
|
5
|
+
import { Stack } from "../Stack/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { Dropdown } from "./Dropdown.js";
|
|
8
|
+
import { SelectBar } from "./SelectBar.js";
|
|
9
|
+
import { SelectInputProvider } from "./SelectInputProvider.js";
|
|
10
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
11
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
12
|
+
}
|
|
13
|
+
const SelectInputContainer = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
|
|
14
|
+
target: "ebdnz3x1"
|
|
15
|
+
} : {
|
|
16
|
+
target: "ebdnz3x1",
|
|
17
|
+
label: "SelectInputContainer"
|
|
18
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
19
|
+
name: "1d3w5wq",
|
|
20
|
+
styles: "width:100%"
|
|
21
|
+
} : {
|
|
22
|
+
name: "1d3w5wq",
|
|
23
|
+
styles: "width:100%",
|
|
24
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1NlbGVjdElucHV0VjIvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBIdUMiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvdWkvc3JjL2NvbXBvbmVudHMvU2VsZWN0SW5wdXRWMi9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IEljb24gfSBmcm9tICdAdWx0cmF2aW9sZXQvaWNvbnMnXG5pbXBvcnQgeyB1c2VSZWYgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB0eXBlIHsgSFRNTEF0dHJpYnV0ZXMsIFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgU3RhY2sgfSBmcm9tICcuLi9TdGFjaydcbmltcG9ydCB7IFRleHQgfSBmcm9tICcuLi9UZXh0J1xuaW1wb3J0IHsgRHJvcGRvd24gfSBmcm9tICcuL0Ryb3Bkb3duJ1xuaW1wb3J0IHsgU2VsZWN0QmFyIH0gZnJvbSAnLi9TZWxlY3RCYXInXG5pbXBvcnQgeyBT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wicm93XCIgZ2FwPXswLjV9PlxuICAgICAgICAgICAgICB7bGFiZWwgPyAoXG4gICAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICAgIGFzPVwibGFiZWxcIlxuICAgICAgICAgICAgICAgICAgdmFyaWFudD17c2l6ZSA9PT0gJ2xhcmdlJyA/ICdib2R5U3Ryb25nJyA6ICdib2R5U21hbGxTdHJvbmcnfVxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgIHtsYWJlbH1cbiAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgbGFiZWwgPyAoXG4gICAgICAgICAgICAgICAgPEljb24gbmFtZT1cImFzdGVyaXNrXCIgc2VudGltZW50PVwiZGFuZ2VyXCIgc2l6ZT17OH0gLz5cbiAgICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgICAgIHtsYWJlbERlc2NyaXB0aW9uID8/IG51bGx9XG4gICAgICAgICAgICA8L1N0YWNrPlxuICAgICAgICAgICAgPFNlbGVjdEJhclxuICAgICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgICBjbGVhcmFibGU9e2NsZWFyYWJsZX1cbiAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgIHBsYWNlaG9sZGVyPXtwbGFjZWhvbGRlcn1cbiAgICAgICAgICAgICAgc3VjY2Vzcz17c3VjY2Vzc31cbiAgICAgICAgICAgICAgZXJyb3I9e2Vycm9yfVxuICAgICAgICAgICAgICBhdXRvRm9jdXM9e2F1dG9mb2N1c31cbiAgICAgICAgICAgICAgaW5uZXJSZWY9e3JlZn1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgPC9Ecm9wZG93bj5cbiAgICAgICAgeyFlcnJvciAmJiAhc3VjY2VzcyA/IChcbiAgICAgICAgICA8SGVscGVyVGV4dFxuICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgcHJvbWluZW5jZT1cImRlZmF1bHRcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtoZWxwZXJ9XG4gICAgICAgICAgPC9IZWxwZXJUZXh0PlxuICAgICAgICApIDogbnVsbH1cbiAgICAgICAge2Vycm9yIHx8IHN1Y2Nlc3MgPyAoXG4gICAgICAgICAgPEhlbHBlclRleHRcbiAgICAgICAgICAgIHZhcmlhbnQ9XCJjYXB0aW9uXCJcbiAgICAgICAgICAgIGFzPVwicFwiXG4gICAgICAgICAgICBzZW50aW1lbnQ9e2Vycm9yID8gJ2RhbmdlcicgOiAnc3VjY2Vzcyd9XG4gICAgICAgICAgICBwcm9taW5lbmNlPVwiZGVmYXVsdFwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge2Vycm9yIHx8IHN1Y2Nlc3N9XG4gICAgICAgICAgPC9IZWxwZXJUZXh0PlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvU2VsZWN0SW5wdXRDb250YWluZXI+XG4gICAgPC9TZWxlY3RJbnB1dFByb3ZpZGVyPlxuICApXG59XG4iXX0= */",
|
|
25
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
26
|
+
});
|
|
27
|
+
const HelperText = /* @__PURE__ */ _styled(Text, process.env.NODE_ENV === "production" ? {
|
|
28
|
+
target: "ebdnz3x0"
|
|
29
|
+
} : {
|
|
30
|
+
target: "ebdnz3x0",
|
|
31
|
+
label: "HelperText"
|
|
32
|
+
})("padding-top:", ({
|
|
33
|
+
theme
|
|
34
|
+
}) => theme.space["0.5"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8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IHtsYWJlbH1cbiAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgbGFiZWwgPyAoXG4gICAgICAgICAgICAgICAgPEljb24gbmFtZT1cImFzdGVyaXNrXCIgc2VudGltZW50PVwiZGFuZ2VyXCIgc2l6ZT17OH0gLz5cbiAgICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgICAgIHtsYWJlbERlc2NyaXB0aW9uID8/IG51bGx9XG4gICAgICAgICAgICA8L1N0YWNrPlxuICAgICAgICAgICAgPFNlbGVjdEJhclxuICAgICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgICBjbGVhcmFibGU9e2NsZWFyYWJsZX1cbiAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgIHBsYWNlaG9sZGVyPXtwbGFjZWhvbGRlcn1cbiAgICAgICAgICAgICAgc3VjY2Vzcz17c3VjY2Vzc31cbiAgICAgICAgICAgICAgZXJyb3I9e2Vycm9yfVxuICAgICAgICAgICAgICBhdXRvRm9jdXM9e2F1dG9mb2N1c31cbiAgICAgICAgICAgICAgaW5uZXJSZWY9e3JlZn1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgPC9Ecm9wZG93bj5cbiAgICAgICAgeyFlcnJvciAmJiAhc3VjY2VzcyA/IChcbiAgICAgICAgICA8SGVscGVyVGV4dFxuICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgcHJvbWluZW5jZT1cImRlZmF1bHRcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtoZWxwZXJ9XG4gICAgICAgICAgPC9IZWxwZXJUZXh0PlxuICAgICAgICApIDogbnVsbH1cbiAgICAgICAge2Vycm9yIHx8IHN1Y2Nlc3MgPyAoXG4gICAgICAgICAgPEhlbHBlclRleHRcbiAgICAgICAgICAgIHZhcmlhbnQ9XCJjYXB0aW9uXCJcbiAgICAgICAgICAgIGFzPVwicFwiXG4gICAgICAgICAgICBzZW50aW1lbnQ9e2Vycm9yID8gJ2RhbmdlcicgOiAnc3VjY2Vzcyd9XG4gICAgICAgICAgICBwcm9taW5lbmNlPVwiZGVmYXVsdFwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge2Vycm9yIHx8IHN1Y2Nlc3N9XG4gICAgICAgICAgPC9IZWxwZXJUZXh0PlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvU2VsZWN0SW5wdXRDb250YWluZXI+XG4gICAgPC9TZWxlY3RJbnB1dFByb3ZpZGVyPlxuICApXG59XG4iXX0= */"));
|
|
35
|
+
const SelectInputV2 = ({
|
|
36
|
+
name,
|
|
37
|
+
id,
|
|
38
|
+
onBlur,
|
|
39
|
+
onFocus,
|
|
40
|
+
onChange,
|
|
41
|
+
"aria-label": ariaLabel,
|
|
42
|
+
value,
|
|
43
|
+
label,
|
|
44
|
+
helper,
|
|
45
|
+
options,
|
|
46
|
+
size = "large",
|
|
47
|
+
emptyState,
|
|
48
|
+
descriptionDirection = "column",
|
|
49
|
+
success,
|
|
50
|
+
error,
|
|
51
|
+
"data-testid": dataTestId,
|
|
52
|
+
className,
|
|
53
|
+
footer,
|
|
54
|
+
placeholderSearch = "Search in list",
|
|
55
|
+
placeholder = "Select item",
|
|
56
|
+
searchable = true,
|
|
57
|
+
disabled = false,
|
|
58
|
+
readOnly = false,
|
|
59
|
+
clearable = true,
|
|
60
|
+
multiselect = false,
|
|
61
|
+
required = false,
|
|
62
|
+
labelDescription,
|
|
63
|
+
autofocus,
|
|
64
|
+
loadMore,
|
|
65
|
+
optionalInfoPlacement = "right",
|
|
66
|
+
isLoading,
|
|
67
|
+
selectAll,
|
|
68
|
+
selectAllGroup = false
|
|
69
|
+
}) => {
|
|
70
|
+
const ref = useRef(null);
|
|
71
|
+
const numberOfOptions = Array.isArray(options) ? options.length : Object.values(options).reduce((acc, current) => acc + current.filter((option) => !option.disabled).length, 0);
|
|
72
|
+
return /* @__PURE__ */ jsx(SelectInputProvider, { options, multiselect, selectAll, value, selectAllGroup, numberOfOptions, onChange, children: /* @__PURE__ */ jsxs(SelectInputContainer, { id, onBlur, onFocus, "data-testid": dataTestId, className, "aria-label": name, children: [
|
|
73
|
+
/* @__PURE__ */ jsx(Dropdown, { emptyState, descriptionDirection, searchable, placeholder: placeholderSearch, footer, refSelect: ref, loadMore, optionalInfoPlacement, isLoading, children: /* @__PURE__ */ jsxs(Stack, { gap: 0.5, "aria-label": ariaLabel, children: [
|
|
74
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 0.5, children: [
|
|
75
|
+
label ? /* @__PURE__ */ jsx(Text, { as: "label", variant: size === "large" ? "bodyStrong" : "bodySmallStrong", children: label }) : null,
|
|
76
|
+
required && label ? /* @__PURE__ */ jsx(Icon, { name: "asterisk", sentiment: "danger", size: 8 }) : null,
|
|
77
|
+
labelDescription ?? null
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ jsx(SelectBar, { size, clearable, readOnly, disabled, placeholder, success, error, autoFocus: autofocus, innerRef: ref })
|
|
80
|
+
] }) }),
|
|
81
|
+
!error && !success ? /* @__PURE__ */ jsx(HelperText, { variant: "caption", as: "p", sentiment: "neutral", prominence: "default", children: helper }) : null,
|
|
82
|
+
error || success ? /* @__PURE__ */ jsx(HelperText, { variant: "caption", as: "p", sentiment: error ? "danger" : "success", prominence: "default", children: error || success }) : null
|
|
83
|
+
] }) });
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
SelectInputV2
|
|
87
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type OptionType = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
description?: string;
|
|
7
|
+
optionalInfo?: ReactNode;
|
|
8
|
+
searchText?: string;
|
|
9
|
+
};
|
|
10
|
+
export type DataType = Record<string, OptionType[]> | OptionType[];
|
|
11
|
+
export type ReducerState = {
|
|
12
|
+
selectedValues: string[];
|
|
13
|
+
allSelected: boolean;
|
|
14
|
+
selectedGroups: string[];
|
|
15
|
+
};
|
|
16
|
+
export type ReducerAction = {
|
|
17
|
+
type: 'selectAll';
|
|
18
|
+
} | {
|
|
19
|
+
type: 'selectGroup';
|
|
20
|
+
selectedGroup: string;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'selectOption';
|
|
23
|
+
clickedOption: OptionType;
|
|
24
|
+
group?: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'clearAll';
|
|
27
|
+
} | {
|
|
28
|
+
type: 'update';
|
|
29
|
+
};
|
|
30
|
+
export declare const INPUT_SIZE_HEIGHT: {
|
|
31
|
+
readonly large: 48;
|
|
32
|
+
readonly medium: 40;
|
|
33
|
+
readonly small: 32;
|
|
34
|
+
};
|
|
35
|
+
export declare const SIZES_TAG: {
|
|
36
|
+
readonly letterWidth: 5;
|
|
37
|
+
readonly tagWidth: 72;
|
|
38
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChangeEventHandler, FocusEventHandler, ReactNode } from 'react';
|
|
2
|
+
type SelectableCardProps = {
|
|
3
|
+
name?: string;
|
|
4
|
+
children?: (({ disabled, checked, }: Pick<SelectableCardProps, 'checked' | 'disabled'>) => ReactNode) | ReactNode;
|
|
5
|
+
value: string | number;
|
|
6
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
7
|
+
showTick?: boolean;
|
|
8
|
+
type?: 'radio' | 'checkbox';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
isError?: boolean;
|
|
13
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
14
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
15
|
+
id?: string;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
label?: ReactNode;
|
|
18
|
+
'data-testid'?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* SelectableCard is a component that can be used to create a radio or checkbox card.
|
|
22
|
+
* It can be used to create a list of selectable items or a single selectable item.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SelectableCard: import("react").ForwardRefExoticComponent<SelectableCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export {};
|