@ultraviolet/ui 3.0.0-beta.8 → 3.0.0
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/README.md +66 -30
- package/dist/components/ActionBar/index.d.ts +3 -2
- package/dist/components/ActionBar/index.js +20 -4
- package/dist/components/ActionBar/styles.css.js +0 -1
- package/dist/components/Alert/index.d.ts +4 -2
- package/dist/components/Alert/index.js +100 -21
- package/dist/components/Alert/styles.css.d.ts +10 -1
- package/dist/components/Alert/styles.css.js +8 -5
- package/dist/components/Avatar/constants.d.ts +5 -5
- package/dist/components/Avatar/constants.js +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Avatar/index.js +48 -36
- package/dist/components/Avatar/styles.css.d.ts +24 -24
- package/dist/components/Avatar/types.d.ts +2 -1
- package/dist/components/Badge/index.d.ts +3 -2
- package/dist/components/Badge/index.js +21 -9
- package/dist/components/Banner/index.d.ts +3 -2
- package/dist/components/Banner/index.js +90 -31
- package/dist/components/Banner/styles.css.d.ts +1 -1
- package/dist/components/BarChart/Tooltip.d.ts +3 -3
- package/dist/components/BarChart/Tooltip.js +27 -43
- package/dist/components/BarChart/index.d.ts +4 -3
- package/dist/components/BarChart/index.js +55 -33
- package/dist/components/BarChart/styles.css.d.ts +3 -0
- package/dist/components/BarChart/styles.css.js +9 -0
- package/dist/components/BarStack/index.d.ts +3 -2
- package/dist/components/BarStack/index.js +67 -36
- package/dist/components/BarStack/styles.css.d.ts +1 -0
- package/dist/components/BarStack/styles.css.js +6 -4
- package/dist/components/Breadcrumbs/components/Item.d.ts +3 -2
- package/dist/components/Breadcrumbs/components/Item.js +62 -41
- package/dist/components/Breadcrumbs/components/styles.css.d.ts +13 -0
- package/dist/components/Breadcrumbs/components/styles.css.js +18 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -1
- package/dist/components/Breadcrumbs/index.js +14 -19
- package/dist/components/Breadcrumbs/styles.css.d.ts +1 -0
- package/dist/components/Breadcrumbs/styles.css.js +5 -0
- package/dist/components/Bullet/constants.d.ts +10 -0
- package/dist/components/Bullet/index.d.ts +7 -15
- package/dist/components/Bullet/index.js +15 -75
- package/dist/components/Bullet/styles.css.d.ts +23 -0
- package/dist/components/Bullet/styles.css.js +6 -0
- package/dist/components/Button/constants.d.ts +1 -0
- package/dist/components/Button/constants.js +0 -1
- package/dist/components/Button/index.d.ts +5 -7
- package/dist/components/Button/index.js +123 -71
- package/dist/components/Card/index.d.ts +2 -1
- package/dist/components/Card/index.js +81 -52
- package/dist/components/Card/styles.css.d.ts +2 -0
- package/dist/components/Card/styles.css.js +7 -0
- package/dist/components/Carousel/index.d.ts +5 -4
- package/dist/components/Carousel/index.js +76 -79
- package/dist/components/Carousel/styles.css.d.ts +6 -0
- package/dist/components/Carousel/styles.css.js +15 -0
- package/dist/components/Checkbox/index.d.ts +1 -21
- package/dist/components/Checkbox/index.js +142 -241
- package/dist/components/Checkbox/styles.css.d.ts +7 -0
- package/dist/components/Checkbox/styles.css.js +17 -0
- package/dist/components/CheckboxGroup/index.d.ts +4 -4
- package/dist/components/CheckboxGroup/index.js +82 -56
- package/dist/components/CheckboxGroup/styles.css.d.ts +2 -0
- package/dist/components/CheckboxGroup/styles.css.js +7 -0
- package/dist/components/Chip/ChipIcon.d.ts +1 -1
- package/dist/components/Chip/ChipIcon.js +46 -12
- package/dist/components/Chip/index.d.ts +5 -4
- package/dist/components/Chip/index.js +38 -12
- package/dist/components/CopyButton/index.d.ts +3 -1
- package/dist/components/CopyButton/index.js +25 -9
- package/dist/components/DateInput/components/CalendarContent.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +62 -43
- package/dist/components/DateInput/components/CalendarDaily.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +106 -101
- package/dist/components/DateInput/components/CalendarMonthly.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +63 -60
- package/dist/components/DateInput/components/Popup.d.ts +1 -1
- package/dist/components/DateInput/components/Popup.js +30 -18
- package/dist/components/DateInput/components/styles.css.d.ts +4 -0
- package/dist/components/DateInput/components/styles.css.js +12 -0
- package/dist/components/DateInput/helpers.d.ts +0 -2
- package/dist/components/DateInput/helpers.js +10 -11
- package/dist/components/DateInput/helpersLocale.js +3 -9
- package/dist/components/DateInput/index.d.ts +3 -2
- package/dist/components/DateInput/index.js +197 -83
- package/dist/components/DateInput/styles.css.d.ts +8 -0
- package/dist/components/DateInput/styles.css.js +8 -0
- package/dist/components/Dialog/Context.js +3 -1
- package/dist/components/Dialog/components/Button.d.ts +2 -2
- package/dist/components/Dialog/components/Button.js +14 -3
- package/dist/components/Dialog/components/Buttons.d.ts +1 -1
- package/dist/components/Dialog/components/Buttons.js +1 -1
- package/dist/components/Dialog/components/CancelButton.d.ts +3 -2
- package/dist/components/Dialog/components/CancelButton.js +14 -3
- package/dist/components/Dialog/components/Stack.d.ts +3 -2
- package/dist/components/Dialog/components/Stack.js +2 -4
- package/dist/components/Dialog/components/Text.d.ts +3 -1
- package/dist/components/Dialog/components/Text.js +2 -4
- package/dist/components/Dialog/constants.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +19 -14
- package/dist/components/Dialog/index.js +46 -30
- package/dist/components/Dialog/styles.css.d.ts +2 -0
- package/dist/components/Dialog/styles.css.js +7 -0
- package/dist/components/Drawer/index.d.ts +12 -19
- package/dist/components/Drawer/index.js +57 -102
- package/dist/components/Drawer/styles.css.d.ts +12 -0
- package/dist/components/Drawer/styles.css.js +17 -0
- package/dist/components/EmptyState/index.d.ts +4 -8
- package/dist/components/EmptyState/index.js +66 -84
- package/dist/components/EmptyState/styles.css.d.ts +29 -0
- package/dist/components/EmptyState/styles.css.js +10 -0
- package/dist/components/Expandable/index.d.ts +4 -9
- package/dist/components/Expandable/index.js +60 -26
- package/dist/components/Expandable/styles.css.d.ts +2 -0
- package/dist/components/Expandable/styles.css.js +7 -0
- package/dist/components/ExpandableCard/components/Title.d.ts +2 -2
- package/dist/components/ExpandableCard/components/Title.js +14 -3
- package/dist/components/ExpandableCard/constants.d.ts +1 -0
- package/dist/components/ExpandableCard/index.d.ts +4 -3
- package/dist/components/ExpandableCard/index.js +199 -179
- package/dist/components/ExpandableCard/styles.css.d.ts +7 -0
- package/dist/components/ExpandableCard/styles.css.js +17 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +1 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.js +24 -7
- package/dist/components/GlobalAlert/index.d.ts +4 -3
- package/dist/components/GlobalAlert/index.js +54 -38
- package/dist/components/GlobalAlert/styles.css.d.ts +2 -0
- package/dist/components/GlobalAlert/styles.css.js +7 -0
- package/dist/components/InfiniteScroll/index.d.ts +3 -2
- package/dist/components/InfiniteScroll/index.js +42 -33
- package/dist/components/Key/constants.d.ts +8 -0
- package/dist/components/Key/constants.js +11 -0
- package/dist/components/Key/index.d.ts +3 -9
- package/dist/components/Key/index.js +33 -58
- package/dist/components/Key/styles.css.d.ts +29 -0
- package/dist/components/Key/styles.css.js +6 -0
- package/dist/components/Label/index.d.ts +3 -2
- package/dist/components/Label/index.js +88 -27
- package/dist/components/Label/styles.css.d.ts +1 -0
- package/dist/components/Label/styles.css.js +5 -0
- package/dist/components/LineChart/CustomLegend.d.ts +1 -1
- package/dist/components/LineChart/CustomLegend.js +55 -95
- package/dist/components/LineChart/Tooltip.d.ts +1 -1
- package/dist/components/LineChart/Tooltip.js +33 -38
- package/dist/components/LineChart/helpers.js +15 -14
- package/dist/components/LineChart/index.d.ts +3 -2
- package/dist/components/LineChart/index.js +58 -40
- package/dist/components/LineChart/styles.css.d.ts +12 -0
- package/dist/components/LineChart/styles.css.js +27 -0
- package/dist/components/Link/constants.d.ts +6 -0
- package/dist/components/Link/index.d.ts +4 -7
- package/dist/components/Link/index.js +76 -158
- package/dist/components/Link/styles.css.d.ts +78 -0
- package/dist/components/Link/styles.css.js +14 -0
- package/dist/components/List/Cell.d.ts +2 -1
- package/dist/components/List/Cell.js +28 -18
- package/dist/components/List/ColumnProvider.d.ts +14 -0
- package/dist/components/List/ColumnProvider.js +34 -0
- package/dist/components/List/HeaderCell.d.ts +2 -2
- package/dist/components/List/HeaderCell.js +41 -56
- package/dist/components/List/HeaderRow.d.ts +1 -1
- package/dist/components/List/HeaderRow.js +17 -34
- package/dist/components/List/ListContext.d.ts +1 -1
- package/dist/components/List/ListContext.js +128 -78
- package/dist/components/List/Row.d.ts +0 -16
- package/dist/components/List/Row.js +171 -253
- package/dist/components/List/SelectBar.d.ts +1 -1
- package/dist/components/List/SelectBar.js +20 -10
- package/dist/components/List/SkeletonRows.d.ts +1 -1
- package/dist/components/List/SkeletonRows.js +28 -45
- package/dist/components/List/index.d.ts +6 -4
- package/dist/components/List/index.js +62 -49
- package/dist/components/List/styles.css.d.ts +24 -0
- package/dist/components/List/styles.css.js +35 -0
- package/dist/components/List/variables.css.d.ts +7 -0
- package/dist/components/List/variables.css.js +16 -0
- package/dist/components/Loader/constants.d.ts +8 -0
- package/dist/components/Loader/constants.js +11 -0
- package/dist/components/Loader/index.d.ts +4 -9
- package/dist/components/Loader/index.js +53 -46
- package/dist/components/Loader/styles.css.d.ts +1 -0
- package/dist/components/Loader/styles.css.js +3 -1
- package/dist/components/Menu/MenuContent.d.ts +3 -2
- package/dist/components/Menu/MenuContent.js +218 -219
- package/dist/components/Menu/MenuProvider.d.ts +1 -1
- package/dist/components/Menu/MenuProvider.js +26 -13
- package/dist/components/Menu/components/Group.d.ts +3 -2
- package/dist/components/Menu/components/Group.js +15 -13
- package/dist/components/Menu/components/Item.d.ts +4 -3
- package/dist/components/Menu/components/Item.js +146 -159
- package/dist/components/Menu/helpers.js +3 -1
- package/dist/components/Menu/index.d.ts +8 -5
- package/dist/components/Menu/index.js +6 -12
- package/dist/components/Menu/styles.css.d.ts +47 -0
- package/dist/components/Menu/styles.css.js +24 -0
- package/dist/components/Menu/types.d.ts +3 -3
- package/dist/components/Meter/index.d.ts +3 -1
- package/dist/components/Meter/index.js +44 -12
- package/dist/components/Modal/ModalContent.d.ts +3 -2
- package/dist/components/Modal/ModalContent.js +44 -23
- package/dist/components/Modal/ModalProvider.d.ts +1 -1
- package/dist/components/Modal/ModalProvider.js +14 -11
- package/dist/components/Modal/components/Dialog.d.ts +2 -14
- package/dist/components/Modal/components/Dialog.js +96 -110
- package/dist/components/Modal/constants.d.ts +42 -2
- package/dist/components/Modal/index.d.ts +3 -2
- package/dist/components/Modal/index.js +62 -4
- package/dist/components/Modal/styles.css.d.ts +78 -0
- package/dist/components/Modal/styles.css.js +21 -0
- package/dist/components/Modal/types.d.ts +2 -1
- package/dist/components/Notice/index.d.ts +3 -2
- package/dist/components/Notice/index.js +26 -6
- package/dist/components/Notification/Notification.d.ts +10 -0
- package/dist/components/Notification/Notification.js +33 -0
- package/dist/components/Notification/NotificationContainer.d.ts +30 -0
- package/dist/components/Notification/NotificationContainer.js +33 -0
- package/dist/components/Notification/index.d.ts +2 -36
- package/dist/components/Notification/styles.css.d.ts +1 -0
- package/dist/components/Notification/styles.css.js +5 -0
- package/dist/components/NumberInput/constant.d.ts +5 -0
- package/dist/components/NumberInput/index.d.ts +2 -6
- package/dist/components/NumberInput/index.js +241 -246
- package/dist/components/NumberInput/styles.css.d.ts +109 -0
- package/dist/components/NumberInput/styles.css.js +14 -0
- package/dist/components/Pagination/PaginationButtons.d.ts +1 -1
- package/dist/components/Pagination/PaginationButtons.js +76 -46
- package/dist/components/Pagination/PerPage.d.ts +1 -1
- package/dist/components/Pagination/PerPage.js +32 -32
- package/dist/components/Pagination/getPageNumbers.js +12 -13
- package/dist/components/Pagination/index.d.ts +3 -1
- package/dist/components/Pagination/index.js +29 -5
- package/dist/components/Pagination/styles.css.d.ts +3 -0
- package/dist/components/Pagination/styles.css.js +9 -0
- package/dist/components/PasswordCheck/index.d.ts +3 -1
- package/dist/components/PasswordCheck/index.js +30 -15
- package/dist/components/PasswordCheck/styles.css.d.ts +1 -0
- package/dist/components/PasswordCheck/styles.css.js +5 -0
- package/dist/components/PieChart/Legends.d.ts +2 -2
- package/dist/components/PieChart/Legends.js +57 -127
- package/dist/components/PieChart/Tooltip.d.ts +2 -2
- package/dist/components/PieChart/Tooltip.js +6 -37
- package/dist/components/PieChart/index.d.ts +3 -2
- package/dist/components/PieChart/index.js +86 -63
- package/dist/components/PieChart/styles.css.d.ts +49 -0
- package/dist/components/PieChart/styles.css.js +36 -0
- package/dist/components/Popover/index.d.ts +2 -1
- package/dist/components/Popover/index.js +104 -45
- package/dist/components/Popup/helpers.d.ts +5 -1
- package/dist/components/Popup/helpers.js +57 -39
- package/dist/components/Popup/index.d.ts +4 -2
- package/dist/components/Popup/index.js +373 -243
- package/dist/components/Popup/styles.css.js +0 -1
- package/dist/components/Popup/variables.css.js +1 -0
- package/dist/components/ProgressBar/constants.d.ts +1 -0
- package/dist/components/ProgressBar/index.d.ts +5 -4
- package/dist/components/ProgressBar/index.js +79 -92
- package/dist/components/ProgressBar/styles.css.d.ts +4 -0
- package/dist/components/ProgressBar/styles.css.js +11 -0
- package/dist/components/ProgressBar/variables.css.d.ts +1 -0
- package/dist/components/ProgressBar/variables.css.js +5 -0
- package/dist/components/Radio/index.d.ts +1 -31
- package/dist/components/Radio/index.js +91 -161
- package/dist/components/Radio/styles.css.d.ts +9 -0
- package/dist/components/Radio/styles.css.js +21 -0
- package/dist/components/RadioGroup/index.d.ts +2 -2
- package/dist/components/RadioGroup/index.js +78 -39
- package/dist/components/RadioGroup/styles.css.d.ts +1 -0
- package/dist/components/RadioGroup/styles.css.js +5 -0
- package/dist/components/Row/index.d.ts +2 -1
- package/dist/components/Row/index.js +40 -25
- package/dist/components/Row/styles.css.d.ts +56 -45
- package/dist/components/Row/styles.css.js +2 -2
- package/dist/components/Row/variables.css.js +1 -0
- package/dist/components/SearchInput/KeyGroup.d.ts +1 -1
- package/dist/components/SearchInput/KeyGroup.js +3 -23
- package/dist/components/SearchInput/index.js +234 -199
- package/dist/components/SearchInput/styles.css.d.ts +3 -0
- package/dist/components/SearchInput/styles.css.js +10 -0
- package/dist/components/SelectInput/SelectInputProvider.d.ts +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +91 -55
- package/dist/components/SelectInput/{Dropdown.d.ts → components/Dropdown.d.ts} +2 -2
- package/dist/components/SelectInput/components/Dropdown.js +682 -0
- package/dist/components/SelectInput/{DropdownOption.d.ts → components/DropdownOption.d.ts} +2 -2
- package/dist/components/SelectInput/components/DropdownOption.js +196 -0
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +9 -0
- package/dist/components/SelectInput/components/SearchBarDropdown.js +146 -0
- package/dist/components/SelectInput/{SelectBar.d.ts → components/SelectBar.d.ts} +2 -13
- package/dist/components/SelectInput/components/SelectBar.js +392 -0
- package/dist/components/SelectInput/components/dropdown.css.d.ts +35 -0
- package/dist/components/SelectInput/components/dropdown.css.js +34 -0
- package/dist/components/SelectInput/components/selectBar.css.d.ts +108 -0
- package/dist/components/SelectInput/components/selectBar.css.js +22 -0
- package/dist/components/SelectInput/index.d.ts +2 -2
- package/dist/components/SelectInput/index.js +107 -38
- package/dist/components/SelectInput/styles.css.d.ts +2 -0
- package/dist/components/SelectInput/styles.css.js +7 -0
- package/dist/components/SelectableCard/index.d.ts +2 -1
- package/dist/components/SelectableCard/index.js +206 -275
- package/dist/components/SelectableCard/styles.css.d.ts +26 -0
- package/dist/components/SelectableCard/styles.css.js +21 -0
- package/dist/components/SelectableCard/variables.css.d.ts +3 -0
- package/dist/components/SelectableCard/variables.css.js +8 -0
- package/dist/components/SelectableCardGroup/index.d.ts +2 -2
- package/dist/components/SelectableCardGroup/index.js +69 -42
- package/dist/components/SelectableCardGroup/styles.css.d.ts +1 -0
- package/dist/components/SelectableCardGroup/styles.css.js +5 -0
- package/dist/components/SelectableCardOptionGroup/Provider.js +3 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.js +13 -25
- package/dist/components/SelectableCardOptionGroup/components/Option.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +99 -81
- package/dist/components/SelectableCardOptionGroup/index.d.ts +4 -4
- package/dist/components/SelectableCardOptionGroup/index.js +57 -36
- package/dist/components/SelectableCardOptionGroup/styles.css.d.ts +8 -0
- package/dist/components/SelectableCardOptionGroup/styles.css.js +21 -0
- package/dist/components/Separator/index.d.ts +3 -2
- package/dist/components/Separator/index.js +44 -26
- package/dist/components/Skeleton/Block.d.ts +1 -1
- package/dist/components/Skeleton/Block.js +3 -29
- package/dist/components/Skeleton/Blocks.d.ts +1 -1
- package/dist/components/Skeleton/Blocks.js +16 -30
- package/dist/components/Skeleton/BoxWithIcon.d.ts +1 -1
- package/dist/components/Skeleton/BoxWithIcon.js +16 -28
- package/dist/components/Skeleton/Donut.d.ts +1 -1
- package/dist/components/Skeleton/Donut.js +13 -44
- package/dist/components/Skeleton/IconSkeleton.d.ts +1 -4
- package/dist/components/Skeleton/IconSkeleton.js +3 -19
- package/dist/components/Skeleton/Line.d.ts +1 -4
- package/dist/components/Skeleton/Line.js +12 -13
- package/dist/components/Skeleton/List.d.ts +1 -1
- package/dist/components/Skeleton/List.js +4 -46
- package/dist/components/Skeleton/Slider.d.ts +1 -1
- package/dist/components/Skeleton/Slider.js +13 -37
- package/dist/components/Skeleton/Square.d.ts +1 -4
- package/dist/components/Skeleton/Square.js +3 -9
- package/dist/components/Skeleton/index.d.ts +11 -15
- package/dist/components/Skeleton/index.js +19 -48
- package/dist/components/Skeleton/styles.css.d.ts +2 -0
- package/dist/components/Skeleton/styles.css.js +7 -0
- package/dist/components/Skeleton/stylesVariants.css.d.ts +22 -0
- package/dist/components/Skeleton/stylesVariants.css.js +47 -0
- package/dist/components/Slider/components/DoubleSlider.d.ts +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +197 -144
- package/dist/components/Slider/components/Options.d.ts +1 -13
- package/dist/components/Slider/components/Options.js +46 -49
- package/dist/components/Slider/components/SingleSlider.d.ts +1 -1
- package/dist/components/Slider/components/SingleSlider.js +138 -112
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.js +85 -13
- package/dist/components/Slider/styles.css.d.ts +171 -0
- package/dist/components/Slider/styles.css.js +36 -0
- package/dist/components/Slider/types.d.ts +1 -1
- package/dist/components/Snippet/index.d.ts +3 -2
- package/dist/components/Snippet/index.js +110 -157
- package/dist/components/Snippet/styles.css.d.ts +48 -0
- package/dist/components/Snippet/styles.css.js +26 -0
- package/dist/components/Stack/index.d.ts +6 -5
- package/dist/components/Stack/index.js +38 -34
- package/dist/components/Stack/styles.css.d.ts +51 -51
- package/dist/components/Stack/styles.css.js +2 -2
- package/dist/components/Stack/types.d.ts +8 -0
- package/dist/components/Stack/variables.css.js +1 -0
- package/dist/components/Status/index.d.ts +3 -1
- package/dist/components/Status/index.js +15 -12
- package/dist/components/StepList/index.d.ts +4 -3
- package/dist/components/StepList/index.js +32 -10
- package/dist/components/Stepper/Step.d.ts +3 -2
- package/dist/components/Stepper/Step.js +82 -114
- package/dist/components/Stepper/StepperProvider.d.ts +1 -1
- package/dist/components/Stepper/StepperProvider.js +13 -10
- package/dist/components/Stepper/index.d.ts +6 -4
- package/dist/components/Stepper/index.js +49 -81
- package/dist/components/Stepper/styles.css.d.ts +122 -0
- package/dist/components/Stepper/styles.css.js +20 -0
- package/dist/components/SwitchButton/FocusOverlay.d.ts +1 -1
- package/dist/components/SwitchButton/FocusOverlay.js +12 -20
- package/dist/components/SwitchButton/Option.d.ts +3 -2
- package/dist/components/SwitchButton/Option.js +23 -45
- package/dist/components/SwitchButton/index.d.ts +6 -4
- package/dist/components/SwitchButton/index.js +98 -73
- package/dist/components/SwitchButton/styles.css.d.ts +7 -0
- package/dist/components/SwitchButton/styles.css.js +9 -0
- package/dist/components/Table/Body.d.ts +1 -1
- package/dist/components/Table/Body.js +2 -4
- package/dist/components/Table/Cell.d.ts +3 -2
- package/dist/components/Table/Cell.js +28 -21
- package/dist/components/Table/Header.d.ts +1 -1
- package/dist/components/Table/Header.js +3 -13
- package/dist/components/Table/HeaderCell.d.ts +1 -1
- package/dist/components/Table/HeaderCell.js +51 -57
- package/dist/components/Table/HeaderRow.d.ts +1 -1
- package/dist/components/Table/HeaderRow.js +22 -13
- package/dist/components/Table/Row.d.ts +3 -2
- package/dist/components/Table/Row.js +75 -95
- package/dist/components/Table/SelectBar.d.ts +1 -1
- package/dist/components/Table/SelectBar.js +20 -10
- package/dist/components/Table/SkeletonRows.d.ts +1 -1
- package/dist/components/Table/SkeletonRows.js +18 -46
- package/dist/components/Table/TableContext.d.ts +1 -1
- package/dist/components/Table/TableContext.js +22 -13
- package/dist/components/Table/constants.js +0 -2
- package/dist/components/Table/index.d.ts +13 -9
- package/dist/components/Table/index.js +67 -68
- package/dist/components/Table/styles.css.d.ts +68 -0
- package/dist/components/Table/styles.css.js +29 -0
- package/dist/components/Table/variables.css.d.ts +6 -0
- package/dist/components/Table/variables.css.js +14 -0
- package/dist/components/Tabs/Tab.d.ts +2 -5
- package/dist/components/Tabs/Tab.js +80 -112
- package/dist/components/Tabs/TabMenu.js +40 -55
- package/dist/components/Tabs/TabMenuItem.d.ts +3 -19
- package/dist/components/Tabs/TabMenuItem.js +21 -20
- package/dist/components/Tabs/TabsContext.js +3 -1
- package/dist/components/Tabs/index.d.ts +6 -6
- package/dist/components/Tabs/index.js +36 -46
- package/dist/components/Tabs/styles.css.d.ts +9 -0
- package/dist/components/Tabs/styles.css.js +21 -0
- package/dist/components/Tag/index.d.ts +5 -4
- package/dist/components/Tag/index.js +40 -93
- package/dist/components/Tag/styles.css.d.ts +34 -0
- package/dist/components/Tag/styles.css.js +10 -0
- package/dist/components/TagInput/index.d.ts +4 -7
- package/dist/components/TagInput/index.js +138 -150
- package/dist/components/TagInput/styles.css.d.ts +24 -0
- package/dist/components/TagInput/styles.css.js +12 -0
- package/dist/components/TagList/constant.d.ts +1 -0
- package/dist/components/TagList/constant.js +5 -0
- package/dist/components/TagList/index.d.ts +3 -2
- package/dist/components/TagList/index.js +138 -106
- package/dist/components/TagList/styles.css.d.ts +11 -0
- package/dist/components/TagList/styles.css.js +14 -0
- package/dist/components/Text/constants.d.ts +9 -0
- package/dist/components/Text/index.d.ts +2 -5
- package/dist/components/Text/index.js +21 -17
- package/dist/components/Text/style.css.js +0 -1
- package/dist/components/Text/variables.css.js +1 -0
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/TextArea/index.js +182 -166
- package/dist/components/TextArea/styles.css.d.ts +15 -0
- package/dist/components/TextArea/styles.css.js +12 -0
- package/dist/components/TextInput/constants.d.ts +5 -0
- package/dist/components/TextInput/index.d.ts +3 -51
- package/dist/components/TextInput/index.js +287 -209
- package/dist/components/TextInput/styles.css.d.ts +8 -0
- package/dist/components/TextInput/styles.css.js +17 -0
- package/dist/components/TimeInput/constants.js +1 -11
- package/dist/components/TimeInput/index.d.ts +3 -9
- package/dist/components/TimeInput/index.js +211 -199
- package/dist/components/TimeInput/styles.css.d.ts +82 -0
- package/dist/components/TimeInput/styles.css.js +10 -0
- package/dist/components/Toaster/Toaster.d.ts +7 -0
- package/dist/components/Toaster/Toaster.js +25 -0
- package/dist/components/Toaster/ToasterContainer.d.ts +38 -0
- package/dist/components/Toaster/ToasterContainer.js +37 -0
- package/dist/components/Toaster/components/Button.d.ts +1 -1
- package/dist/components/Toaster/components/CloseButton.d.ts +8 -0
- package/dist/components/Toaster/components/CloseButton.js +22 -0
- package/dist/components/Toaster/components/Content.d.ts +6 -0
- package/dist/components/Toaster/components/Content.js +8 -0
- package/dist/components/Toaster/components/Link.d.ts +1 -1
- package/dist/components/Toaster/constants.d.ts +1 -0
- package/dist/components/Toaster/constants.js +4 -0
- package/dist/components/Toaster/index.d.ts +4 -45
- package/dist/components/Toaster/styles.css.d.ts +3 -0
- package/dist/components/Toaster/styles.css.js +7 -0
- package/dist/components/Toggle/index.d.ts +1 -19
- package/dist/components/Toggle/index.js +101 -135
- package/dist/components/Toggle/styles.css.d.ts +108 -0
- package/dist/components/Toggle/styles.css.js +10 -0
- package/dist/components/ToggleGroup/index.d.ts +4 -4
- package/dist/components/ToggleGroup/index.js +66 -41
- package/dist/components/ToggleGroup/styles.css.d.ts +1 -0
- package/dist/components/ToggleGroup/styles.css.js +5 -0
- package/dist/components/Tooltip/index.d.ts +2 -1
- package/dist/components/Tooltip/index.js +42 -18
- package/dist/components/TreeMapChart/Tooltip.d.ts +6 -0
- package/dist/components/TreeMapChart/Tooltip.js +15 -0
- package/dist/components/TreeMapChart/index.d.ts +18 -0
- package/dist/components/TreeMapChart/index.js +74 -0
- package/dist/components/TreeMapChart/styles.css.d.ts +2 -0
- package/dist/components/TreeMapChart/styles.css.js +7 -0
- package/dist/components/TreeMapChart/types.d.ts +7 -0
- package/dist/components/UnitInput/index.d.ts +3 -2
- package/dist/components/UnitInput/index.js +130 -139
- package/dist/components/UnitInput/styles.css.d.ts +7 -0
- package/dist/components/UnitInput/styles.css.js +18 -0
- package/dist/components/VerificationCode/constants.d.ts +13 -0
- package/dist/components/VerificationCode/index.d.ts +3 -4
- package/dist/components/VerificationCode/index.js +84 -105
- package/dist/components/VerificationCode/styles.css.d.ts +3 -0
- package/dist/components/VerificationCode/styles.css.js +9 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/helpers/legend.d.ts +2 -2
- package/dist/helpers/legend.js +5 -5
- package/dist/helpers/nivoTheme.d.ts +1 -1
- package/dist/helpers/treeMap.d.ts +91 -0
- package/dist/helpers/treeMap.js +42 -0
- package/dist/hooks/useIsOverflowing.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +40 -10
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.js +7 -32
- package/dist/theme/index.d.ts +2 -3
- package/dist/theme/index.js +5 -14
- package/dist/ui.css +1 -1
- package/dist/utils/animations/animations.d.ts +27 -0
- package/dist/utils/animations/animations.js +271 -0
- package/dist/utils/animations/animationsVE.css.d.ts +27 -0
- package/dist/utils/animations/animationsVE.css.js +57 -0
- package/dist/utils/ids.js +1 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/responsive/index.d.ts +0 -1
- package/dist/utils/responsive/style.css.d.ts +3 -0
- package/package.json +12 -14
- package/dist/components/ActionBar/index.cjs +0 -18
- package/dist/components/ActionBar/styles.css.cjs +0 -11
- package/dist/components/Alert/index.cjs +0 -54
- package/dist/components/Alert/styles.css.cjs +0 -14
- package/dist/components/Avatar/constants.cjs +0 -19
- package/dist/components/Avatar/index.cjs +0 -64
- package/dist/components/Avatar/styles.css.cjs +0 -16
- package/dist/components/Avatar/variables.css.cjs +0 -9
- package/dist/components/Badge/constant.cjs +0 -8
- package/dist/components/Badge/index.cjs +0 -26
- package/dist/components/Badge/styles.css.cjs +0 -6
- package/dist/components/Banner/assets/default-image-small.svg.cjs +0 -3
- package/dist/components/Banner/assets/default-image.svg.cjs +0 -3
- package/dist/components/Banner/index.cjs +0 -74
- package/dist/components/Banner/styles.css.cjs +0 -10
- package/dist/components/BarChart/Tooltip.cjs +0 -53
- package/dist/components/BarChart/index.cjs +0 -58
- package/dist/components/BarStack/index.cjs +0 -49
- package/dist/components/BarStack/styles.css.cjs +0 -9
- package/dist/components/BarStack/variables.css.cjs +0 -25
- package/dist/components/BarStack/variables.css.d.ts +0 -11
- package/dist/components/BarStack/variables.css.js +0 -25
- package/dist/components/Breadcrumbs/components/Item.cjs +0 -58
- package/dist/components/Breadcrumbs/constants.cjs +0 -4
- package/dist/components/Breadcrumbs/constants.js +0 -4
- package/dist/components/Breadcrumbs/index.cjs +0 -30
- package/dist/components/Bullet/index.cjs +0 -89
- package/dist/components/Button/constants.cjs +0 -7
- package/dist/components/Button/index.cjs +0 -82
- package/dist/components/Button/styles.css.cjs +0 -6
- package/dist/components/Card/index.cjs +0 -61
- package/dist/components/Carousel/index.cjs +0 -125
- package/dist/components/Checkbox/index.cjs +0 -255
- package/dist/components/CheckboxGroup/index.cjs +0 -107
- package/dist/components/Chip/ChipContext.cjs +0 -6
- package/dist/components/Chip/ChipIcon.cjs +0 -52
- package/dist/components/Chip/index.cjs +0 -59
- package/dist/components/Chip/styles.css.cjs +0 -7
- package/dist/components/CopyButton/index.cjs +0 -34
- package/dist/components/DateInput/Context.cjs +0 -23
- package/dist/components/DateInput/components/CalendarContent.cjs +0 -79
- package/dist/components/DateInput/components/CalendarDaily.cjs +0 -209
- package/dist/components/DateInput/components/CalendarMonthly.cjs +0 -127
- package/dist/components/DateInput/components/Popup.cjs +0 -41
- package/dist/components/DateInput/constants.cjs +0 -6
- package/dist/components/DateInput/helpers.cjs +0 -77
- package/dist/components/DateInput/helpersLocale.cjs +0 -64
- package/dist/components/DateInput/index.cjs +0 -211
- package/dist/components/Dialog/Context.cjs +0 -14
- package/dist/components/Dialog/components/Button.cjs +0 -16
- package/dist/components/Dialog/components/Buttons.cjs +0 -13
- package/dist/components/Dialog/components/CancelButton.cjs +0 -11
- package/dist/components/Dialog/components/Stack.cjs +0 -9
- package/dist/components/Dialog/components/Text.cjs +0 -9
- package/dist/components/Dialog/index.cjs +0 -77
- package/dist/components/Drawer/index.cjs +0 -141
- package/dist/components/EmptyState/index.cjs +0 -104
- package/dist/components/Expandable/index.cjs +0 -113
- package/dist/components/ExpandableCard/components/Title.cjs +0 -12
- package/dist/components/ExpandableCard/index.cjs +0 -197
- package/dist/components/GlobalAlert/GlobalAlertLink.cjs +0 -24
- package/dist/components/GlobalAlert/index.cjs +0 -65
- package/dist/components/InfiniteScroll/index.cjs +0 -89
- package/dist/components/Key/index.cjs +0 -85
- package/dist/components/Label/index.cjs +0 -54
- package/dist/components/LineChart/CustomLegend.cjs +0 -130
- package/dist/components/LineChart/Tooltip.cjs +0 -48
- package/dist/components/LineChart/helpers.cjs +0 -57
- package/dist/components/LineChart/index.cjs +0 -90
- package/dist/components/Link/index.cjs +0 -170
- package/dist/components/List/Cell.cjs +0 -25
- package/dist/components/List/HeaderCell.cjs +0 -83
- package/dist/components/List/HeaderRow.cjs +0 -47
- package/dist/components/List/ListContext.cjs +0 -210
- package/dist/components/List/Row.cjs +0 -267
- package/dist/components/List/SelectBar.cjs +0 -28
- package/dist/components/List/SkeletonRows.cjs +0 -60
- package/dist/components/List/constants.cjs +0 -5
- package/dist/components/List/constants.js +0 -5
- package/dist/components/List/index.cjs +0 -76
- package/dist/components/Loader/index.cjs +0 -64
- package/dist/components/Loader/styles.css.cjs +0 -7
- package/dist/components/Menu/MenuContent.cjs +0 -240
- package/dist/components/Menu/MenuProvider.cjs +0 -44
- package/dist/components/Menu/components/Group.cjs +0 -34
- package/dist/components/Menu/components/Item.cjs +0 -174
- package/dist/components/Menu/constants.cjs +0 -7
- package/dist/components/Menu/constants.js +0 -7
- package/dist/components/Menu/helpers.cjs +0 -48
- package/dist/components/Menu/index.cjs +0 -20
- package/dist/components/Meter/index.cjs +0 -33
- package/dist/components/Meter/styles.css.cjs +0 -11
- package/dist/components/Modal/ModalContent.cjs +0 -50
- package/dist/components/Modal/ModalProvider.cjs +0 -41
- package/dist/components/Modal/components/Dialog.cjs +0 -208
- package/dist/components/Modal/components/Disclosure.cjs +0 -42
- package/dist/components/Modal/constants.cjs +0 -53
- package/dist/components/Modal/constants.js +0 -53
- package/dist/components/Modal/index.cjs +0 -57
- package/dist/components/Notice/index.cjs +0 -16
- package/dist/components/Notice/styles.css.cjs +0 -5
- package/dist/components/Notification/index.cjs +0 -51
- package/dist/components/Notification/index.js +0 -51
- package/dist/components/NumberInput/index.cjs +0 -261
- package/dist/components/Pagination/PaginationButtons.cjs +0 -86
- package/dist/components/Pagination/PerPage.cjs +0 -66
- package/dist/components/Pagination/getPageNumbers.cjs +0 -23
- package/dist/components/Pagination/index.cjs +0 -42
- package/dist/components/PasswordCheck/index.cjs +0 -27
- package/dist/components/PieChart/Legends.cjs +0 -140
- package/dist/components/PieChart/Tooltip.cjs +0 -49
- package/dist/components/PieChart/index.cjs +0 -90
- package/dist/components/Popover/index.cjs +0 -66
- package/dist/components/Popover/styles.css.cjs +0 -8
- package/dist/components/Popup/helpers.cjs +0 -260
- package/dist/components/Popup/index.cjs +0 -279
- package/dist/components/Popup/styles.css.cjs +0 -13
- package/dist/components/Popup/variables.css.cjs +0 -18
- package/dist/components/ProgressBar/index.cjs +0 -115
- package/dist/components/Radio/index.cjs +0 -173
- package/dist/components/RadioGroup/index.cjs +0 -90
- package/dist/components/Row/index.cjs +0 -42
- package/dist/components/Row/styles.css.cjs +0 -17
- package/dist/components/Row/variables.css.cjs +0 -6
- package/dist/components/SearchInput/KeyGroup.cjs +0 -31
- package/dist/components/SearchInput/index.cjs +0 -221
- package/dist/components/SelectInput/Dropdown.cjs +0 -488
- package/dist/components/SelectInput/Dropdown.js +0 -486
- package/dist/components/SelectInput/DropdownOption.cjs +0 -91
- package/dist/components/SelectInput/DropdownOption.js +0 -89
- package/dist/components/SelectInput/SearchBarDropdown.cjs +0 -133
- package/dist/components/SelectInput/SearchBarDropdown.d.ts +0 -11
- package/dist/components/SelectInput/SearchBarDropdown.js +0 -131
- package/dist/components/SelectInput/SelectBar.cjs +0 -366
- package/dist/components/SelectInput/SelectBar.js +0 -364
- package/dist/components/SelectInput/SelectInputProvider.cjs +0 -203
- package/dist/components/SelectInput/findOptionInOptions.cjs +0 -12
- package/dist/components/SelectInput/index.cjs +0 -93
- package/dist/components/SelectInput/types.cjs +0 -9
- package/dist/components/SelectableCard/index.cjs +0 -306
- package/dist/components/SelectableCardGroup/index.cjs +0 -92
- package/dist/components/SelectableCardOptionGroup/Provider.cjs +0 -24
- package/dist/components/SelectableCardOptionGroup/components/Image.cjs +0 -35
- package/dist/components/SelectableCardOptionGroup/components/Option.cjs +0 -121
- package/dist/components/SelectableCardOptionGroup/index.cjs +0 -68
- package/dist/components/Separator/index.cjs +0 -39
- package/dist/components/Separator/styles.css.cjs +0 -10
- package/dist/components/Skeleton/Block.cjs +0 -41
- package/dist/components/Skeleton/Blocks.cjs +0 -41
- package/dist/components/Skeleton/BoxWithIcon.cjs +0 -39
- package/dist/components/Skeleton/Donut.cjs +0 -57
- package/dist/components/Skeleton/IconSkeleton.cjs +0 -25
- package/dist/components/Skeleton/Line.cjs +0 -21
- package/dist/components/Skeleton/List.cjs +0 -56
- package/dist/components/Skeleton/Slider.cjs +0 -43
- package/dist/components/Skeleton/Square.cjs +0 -15
- package/dist/components/Skeleton/index.cjs +0 -81
- package/dist/components/Slider/components/DoubleSlider.cjs +0 -288
- package/dist/components/Slider/components/Options.cjs +0 -56
- package/dist/components/Slider/components/SingleSlider.cjs +0 -209
- package/dist/components/Slider/constant.cjs +0 -4
- package/dist/components/Slider/index.cjs +0 -59
- package/dist/components/Slider/styles.cjs +0 -63
- package/dist/components/Slider/styles.d.ts +0 -62
- package/dist/components/Slider/styles.js +0 -61
- package/dist/components/Snippet/index.cjs +0 -197
- package/dist/components/Stack/index.cjs +0 -77
- package/dist/components/Stack/styles.css.cjs +0 -19
- package/dist/components/Stack/variables.css.cjs +0 -10
- package/dist/components/Status/index.cjs +0 -24
- package/dist/components/Status/styles.css.cjs +0 -11
- package/dist/components/StepList/index.cjs +0 -31
- package/dist/components/StepList/styles.css.cjs +0 -10
- package/dist/components/Stepper/Step.cjs +0 -141
- package/dist/components/Stepper/StepperProvider.cjs +0 -41
- package/dist/components/Stepper/index.cjs +0 -103
- package/dist/components/SwitchButton/FocusOverlay.cjs +0 -32
- package/dist/components/SwitchButton/Option.cjs +0 -82
- package/dist/components/SwitchButton/SwitchButtonContext.cjs +0 -13
- package/dist/components/SwitchButton/constant.cjs +0 -4
- package/dist/components/SwitchButton/index.cjs +0 -134
- package/dist/components/Table/Body.cjs +0 -8
- package/dist/components/Table/Cell.cjs +0 -33
- package/dist/components/Table/Header.cjs +0 -19
- package/dist/components/Table/HeaderCell.cjs +0 -87
- package/dist/components/Table/HeaderRow.cjs +0 -28
- package/dist/components/Table/Row.cjs +0 -166
- package/dist/components/Table/SelectBar.cjs +0 -28
- package/dist/components/Table/SkeletonRows.cjs +0 -55
- package/dist/components/Table/TableContext.cjs +0 -43
- package/dist/components/Table/constants.cjs +0 -6
- package/dist/components/Table/index.cjs +0 -100
- package/dist/components/Tabs/Tab.cjs +0 -124
- package/dist/components/Tabs/TabMenu.cjs +0 -65
- package/dist/components/Tabs/TabMenuItem.cjs +0 -37
- package/dist/components/Tabs/TabsContext.cjs +0 -7
- package/dist/components/Tabs/index.cjs +0 -106
- package/dist/components/Tag/index.cjs +0 -150
- package/dist/components/TagInput/index.cjs +0 -256
- package/dist/components/TagList/index.cjs +0 -206
- package/dist/components/Text/constant.d.ts +0 -6
- package/dist/components/Text/index.cjs +0 -53
- package/dist/components/Text/style.css.cjs +0 -7
- package/dist/components/Text/variables.css.cjs +0 -6
- package/dist/components/TextArea/index.cjs +0 -184
- package/dist/components/TextInput/index.cjs +0 -223
- package/dist/components/TimeInput/constants.cjs +0 -19
- package/dist/components/TimeInput/helpers.cjs +0 -66
- package/dist/components/TimeInput/index.cjs +0 -352
- package/dist/components/Toaster/components/Button.cjs +0 -15
- package/dist/components/Toaster/components/Button.js +0 -12
- package/dist/components/Toaster/index.cjs +0 -66
- package/dist/components/Toaster/index.js +0 -64
- package/dist/components/Toggle/index.cjs +0 -147
- package/dist/components/ToggleGroup/index.cjs +0 -88
- package/dist/components/Tooltip/index.cjs +0 -25
- package/dist/components/Tooltip/styles.css.cjs +0 -5
- package/dist/components/UnitInput/index.cjs +0 -203
- package/dist/components/VerificationCode/index.cjs +0 -230
- package/dist/helpers/isClientSide.cjs +0 -4
- package/dist/helpers/legend.cjs +0 -14
- package/dist/helpers/nivoTheme.cjs +0 -22
- package/dist/helpers/recursivelyGetChildrenString.cjs +0 -17
- package/dist/hooks/useIsOverflowing.cjs +0 -23
- package/dist/index.cjs +0 -204
- package/dist/theme/ThemeProvider.cjs +0 -43
- package/dist/theme/index.cjs +0 -34
- package/dist/utils/animationVanillaExtract.css.d.ts +0 -2
- package/dist/utils/animations.cjs +0 -276
- package/dist/utils/animations.d.ts +0 -162
- package/dist/utils/animations.js +0 -276
- package/dist/utils/capitalize.cjs +0 -3
- package/dist/utils/capitalize.js +0 -4
- package/dist/utils/ids.cjs +0 -8
- package/dist/utils/normalize.cjs +0 -35
- package/dist/utils/responsive/Breakpoint.cjs +0 -15
- package/dist/utils/responsive/Breakpoint.d.ts +0 -9
- package/dist/utils/responsive/Breakpoint.js +0 -14
- package/dist/utils/responsive/utilities.cjs +0 -17
- package/dist/utils/searchAlgorithm.cjs +0 -40
- package/dist/utils/searchAlgorithm.d.ts +0 -12
- package/dist/utils/searchAlgorithm.js +0 -40
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const react = require("react");
|
|
6
|
-
const SelectInputContext = react.createContext({
|
|
7
|
-
displayedOptions: [],
|
|
8
|
-
isDropdownVisible: false,
|
|
9
|
-
multiselect: false,
|
|
10
|
-
numberOfOptions: 0,
|
|
11
|
-
onChange: () => {
|
|
12
|
-
},
|
|
13
|
-
onSearch: () => {
|
|
14
|
-
},
|
|
15
|
-
options: [],
|
|
16
|
-
searchInput: "",
|
|
17
|
-
selectAll: {
|
|
18
|
-
label: ""
|
|
19
|
-
},
|
|
20
|
-
selectAllGroup: false,
|
|
21
|
-
selectedData: {
|
|
22
|
-
allSelected: false,
|
|
23
|
-
selectedGroups: [],
|
|
24
|
-
selectedValues: []
|
|
25
|
-
},
|
|
26
|
-
setIsDropdownVisible: () => {
|
|
27
|
-
},
|
|
28
|
-
setSearchInput: () => {
|
|
29
|
-
},
|
|
30
|
-
setSelectedData: () => {
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const useSelectInput = () => react.useContext(SelectInputContext);
|
|
34
|
-
const SelectInputProvider = ({
|
|
35
|
-
options,
|
|
36
|
-
multiselect,
|
|
37
|
-
selectAll,
|
|
38
|
-
value,
|
|
39
|
-
selectAllGroup,
|
|
40
|
-
numberOfOptions,
|
|
41
|
-
children,
|
|
42
|
-
onChange,
|
|
43
|
-
refSelect,
|
|
44
|
-
onOpen
|
|
45
|
-
}) => {
|
|
46
|
-
const currentValue = react.useMemo(() => {
|
|
47
|
-
if (value) {
|
|
48
|
-
if (Array.isArray(value)) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return [value];
|
|
52
|
-
}
|
|
53
|
-
return [];
|
|
54
|
-
}, [value]);
|
|
55
|
-
const selectedGroups = react.useMemo(() => {
|
|
56
|
-
if (Array.isArray(options)) {
|
|
57
|
-
return [];
|
|
58
|
-
}
|
|
59
|
-
return Object.keys(options).filter((group) => options[group].every((groupOption) => currentValue.includes(groupOption.value)));
|
|
60
|
-
}, [currentValue, options]);
|
|
61
|
-
const [displayedOptions, setDisplayedOptions] = react.useState(options);
|
|
62
|
-
const [isDropdownVisible, setIsDropdownVisible] = react.useState(false);
|
|
63
|
-
const [searchInput, setSearchInput] = react.useState("");
|
|
64
|
-
const handleDropDownVisible = react.useCallback((newValue) => {
|
|
65
|
-
setIsDropdownVisible(newValue);
|
|
66
|
-
if (newValue) {
|
|
67
|
-
onOpen?.();
|
|
68
|
-
}
|
|
69
|
-
if (!newValue && refSelect) {
|
|
70
|
-
refSelect.current?.focus();
|
|
71
|
-
}
|
|
72
|
-
}, [refSelect, onOpen]);
|
|
73
|
-
const allValues = react.useMemo(() => {
|
|
74
|
-
if (!Array.isArray(options)) {
|
|
75
|
-
return Object.keys(options).flatMap((group) => options[group].filter((option) => !option.disabled));
|
|
76
|
-
}
|
|
77
|
-
return options;
|
|
78
|
-
}, [options]);
|
|
79
|
-
const allGroups = react.useMemo(() => {
|
|
80
|
-
if (!Array.isArray(options)) {
|
|
81
|
-
return Object.keys(options);
|
|
82
|
-
}
|
|
83
|
-
return [];
|
|
84
|
-
}, [options]);
|
|
85
|
-
const reducer = (state, action) => {
|
|
86
|
-
switch (action.type) {
|
|
87
|
-
case "selectAll": {
|
|
88
|
-
if (state.allSelected) {
|
|
89
|
-
return {
|
|
90
|
-
allSelected: false,
|
|
91
|
-
selectedGroups: [],
|
|
92
|
-
selectedValues: []
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
return {
|
|
96
|
-
allSelected: true,
|
|
97
|
-
selectedGroups: allGroups,
|
|
98
|
-
selectedValues: allValues.map((option) => option.value)
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
case "selectGroup": {
|
|
102
|
-
if (!Array.isArray(options)) {
|
|
103
|
-
if (state.selectedGroups.includes(action.selectedGroup)) {
|
|
104
|
-
return {
|
|
105
|
-
allSelected: false,
|
|
106
|
-
selectedGroups: state.selectedGroups.filter((selectedGroup) => selectedGroup !== action.selectedGroup),
|
|
107
|
-
selectedValues: [...state.selectedValues].filter((selectedValue) => !options[action.selectedGroup].find((option) => option.value === selectedValue))
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
const newSelectedValues = [...state.selectedValues];
|
|
111
|
-
options[action.selectedGroup].map((option) => newSelectedValues.find((aValue) => aValue === option.value) || option.disabled ? null : newSelectedValues.push(option.value));
|
|
112
|
-
return {
|
|
113
|
-
allSelected: newSelectedValues.length === numberOfOptions,
|
|
114
|
-
selectedGroups: [...state.selectedGroups, action.selectedGroup],
|
|
115
|
-
selectedValues: newSelectedValues
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
return state;
|
|
119
|
-
}
|
|
120
|
-
case "selectOption": {
|
|
121
|
-
if (multiselect) {
|
|
122
|
-
if (state.selectedValues.includes(action.clickedOption.value)) {
|
|
123
|
-
return {
|
|
124
|
-
allSelected: false,
|
|
125
|
-
selectedGroups: action.group && state.selectedGroups.includes(action.group) ? state.selectedGroups.filter((selectedGroup) => selectedGroup !== action.group) : [],
|
|
126
|
-
selectedValues: state.selectedValues.filter((val) => val !== action.clickedOption.value)
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
return {
|
|
130
|
-
allSelected: state.selectedValues.length + 1 === numberOfOptions,
|
|
131
|
-
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,
|
|
132
|
-
selectedValues: [...state.selectedValues, action.clickedOption.value]
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
return {
|
|
136
|
-
allSelected: false,
|
|
137
|
-
selectedGroups: state.selectedGroups,
|
|
138
|
-
selectedValues: [action.clickedOption.value]
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
case "clearAll": {
|
|
142
|
-
return {
|
|
143
|
-
allSelected: false,
|
|
144
|
-
selectedGroups: [],
|
|
145
|
-
selectedValues: []
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
case "update": {
|
|
149
|
-
return {
|
|
150
|
-
allSelected: state.allSelected,
|
|
151
|
-
selectedGroups: state.selectedGroups,
|
|
152
|
-
selectedValues: state.selectedValues.filter((selectedValue) => {
|
|
153
|
-
if (!Array.isArray(options)) {
|
|
154
|
-
return Object.keys(options).some((group) => options[group].some((option) => option.value === selectedValue && !option.disabled));
|
|
155
|
-
}
|
|
156
|
-
return options.some((option) => option.value === selectedValue && !option.disabled);
|
|
157
|
-
})
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
case "reset": {
|
|
161
|
-
return {
|
|
162
|
-
allSelected: false,
|
|
163
|
-
selectedGroups: action.selectedGroups,
|
|
164
|
-
selectedValues: action.selectedValues
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
default: {
|
|
168
|
-
return state;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
const [selectedData, setSelectedData] = react.useReducer(reducer, {
|
|
173
|
-
allSelected: false,
|
|
174
|
-
selectedGroups,
|
|
175
|
-
selectedValues: currentValue
|
|
176
|
-
});
|
|
177
|
-
react.useEffect(() => {
|
|
178
|
-
setSelectedData({
|
|
179
|
-
selectedGroups,
|
|
180
|
-
selectedValues: currentValue,
|
|
181
|
-
type: "reset"
|
|
182
|
-
});
|
|
183
|
-
}, [currentValue, selectedGroups]);
|
|
184
|
-
const providerValue = react.useMemo(() => ({
|
|
185
|
-
displayedOptions,
|
|
186
|
-
isDropdownVisible,
|
|
187
|
-
multiselect,
|
|
188
|
-
numberOfOptions,
|
|
189
|
-
onChange,
|
|
190
|
-
onSearch: setDisplayedOptions,
|
|
191
|
-
options,
|
|
192
|
-
searchInput,
|
|
193
|
-
selectAll,
|
|
194
|
-
selectAllGroup,
|
|
195
|
-
selectedData,
|
|
196
|
-
setIsDropdownVisible: handleDropDownVisible,
|
|
197
|
-
setSearchInput,
|
|
198
|
-
setSelectedData
|
|
199
|
-
}), [isDropdownVisible, handleDropDownVisible, searchInput, options, multiselect, selectAll, selectAllGroup, numberOfOptions, displayedOptions, selectedData, onChange]);
|
|
200
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SelectInputContext.Provider, { value: providerValue, children });
|
|
201
|
-
};
|
|
202
|
-
exports.SelectInputProvider = SelectInputProvider;
|
|
203
|
-
exports.useSelectInput = useSelectInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const findOptionInOptions = (options, optionValue) => {
|
|
4
|
-
let flatOptions = [];
|
|
5
|
-
if (!Array.isArray(options)) {
|
|
6
|
-
flatOptions = Object.keys(options).flatMap((group) => options[group]);
|
|
7
|
-
} else {
|
|
8
|
-
flatOptions = options;
|
|
9
|
-
}
|
|
10
|
-
return flatOptions.find((option) => option.value === optionValue);
|
|
11
|
-
};
|
|
12
|
-
exports.findOptionInOptions = findOptionInOptions;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const _styled = require("@emotion/styled/base");
|
|
6
|
-
const react = require("react");
|
|
7
|
-
const index$1 = require("../Label/index.cjs");
|
|
8
|
-
const index = require("../Stack/index.cjs");
|
|
9
|
-
const index$2 = require("../Text/index.cjs");
|
|
10
|
-
const Dropdown = require("./Dropdown.cjs");
|
|
11
|
-
const SelectBar = require("./SelectBar.cjs");
|
|
12
|
-
const SelectInputProvider = require("./SelectInputProvider.cjs");
|
|
13
|
-
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
14
|
-
const _styled__default = /* @__PURE__ */ _interopDefaultCompat(_styled);
|
|
15
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
16
|
-
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).";
|
|
17
|
-
}
|
|
18
|
-
const SelectInputContainer = /* @__PURE__ */ _styled__default.default("div", process.env.NODE_ENV === "production" ? {
|
|
19
|
-
target: "e11gt5pw1"
|
|
20
|
-
} : {
|
|
21
|
-
target: "e11gt5pw1",
|
|
22
|
-
label: "SelectInputContainer"
|
|
23
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
24
|
-
name: "1d3w5wq",
|
|
25
|
-
styles: "width:100%"
|
|
26
|
-
} : {
|
|
27
|
-
name: "1d3w5wq",
|
|
28
|
-
styles: "width:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1NlbGVjdElucHV0L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0SXVDIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1NlbGVjdElucHV0L2luZGV4LnRzeC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cGRvd25cbiAgICAgICAgICBkZXNjcmlwdGlvbkRpcmVjdGlvbj17ZGVzY3JpcHRpb25EaXJlY3Rpb259XG4gICAgICAgICAgZHJvcGRvd25BbGlnbj17ZHJvcGRvd25BbGlnbn1cbiAgICAgICAgICBlbXB0eVN0YXRlPXtlbXB0eVN0YXRlfVxuICAgICAgICAgIGZvb3Rlcj17Zm9vdGVyfVxuICAgICAgICAgIGlkPXtkcm9wZG93bklkfVxuICAgICAgICAgIGlzTG9hZGluZz17aXNMb2FkaW5nfVxuICAgICAgICAgIGxvYWRNb3JlPXtsb2FkTW9yZX1cbiAgICAgICAgICBvcHRpb25hbEluZm9QbGFjZW1lbnQ9e29wdGlvbmFsSW5mb1BsYWNlbWVudH1cbiAgICAgICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJTZWFyY2h9XG4gICAgICAgICAgcG9ydGFsVGFyZ2V0PXtwb3J0YWxUYXJnZXR9XG4gICAgICAgICAgcmVmU2VsZWN0PXtyZWZ9XG4gICAgICAgICAgc2VhcmNoYWJsZT17c2VhcmNoYWJsZX1cbiAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICA+XG4gICAgICAgICAgPFN0YWNrIGFyaWEtbGFiZWw9e2FyaWFMYWJlbH0gZ2FwPXswLjV9PlxuICAgICAgICAgICAge2xhYmVsIHx8IGxhYmVsRGVzY3JpcHRpb24gPyAoXG4gICAgICAgICAgICAgIDxMYWJlbFxuICAgICAgICAgICAgICAgIGh0bWxGb3I9e2ZpbmFsSWR9XG4gICAgICAgICAgICAgICAgbGFiZWxEZXNjcmlwdGlvbj17bGFiZWxEZXNjcmlwdGlvbn1cbiAgICAgICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtsYWJlbH1cbiAgICAgICAgICAgICAgPC9MYWJlbD5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAgPFNlbGVjdEJhclxuICAgICAgICAgICAgICBhdXRvRm9jdXM9e2F1dG9mb2N1c31cbiAgICAgICAgICAgICAgY2xlYXJhYmxlPXtjbGVhcmFibGV9XG4gICAgICAgICAgICAgIGRhdGEtdGVzdGlkPXtmaW5hbERhdGFUZXN0SWR9XG4gICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgZHJvcGRvd25JZD17ZHJvcGRvd25JZH1cbiAgICAgICAgICAgICAgZXJyb3I9e2Vycm9yfVxuICAgICAgICAgICAgICBpZD17ZmluYWxJZH1cbiAgICAgICAgICAgICAgaW5uZXJSZWY9e3JlZn1cbiAgICAgICAgICAgICAgbGFiZWw9e2xhYmVsfVxuICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJ9XG4gICAgICAgICAgICAgIHJlYWRPbmx5PXtyZWFkT25seX1cbiAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgc3VjY2Vzcz17c3VjY2Vzc31cbiAgICAgICAgICAgICAgdG9vbHRpcD17dG9vbHRpcH1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgPC9Ecm9wZG93bj5cbiAgICAgICAgeyFlcnJvciAmJiAhc3VjY2VzcyAmJiBoZWxwZXIgPyAoXG4gICAgICAgICAgPEhlbHBlclRleHRcbiAgICAgICAgICAgIGFzPVwicFwiXG4gICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgIHZhcmlhbnQ9XCJjYXB0aW9uXCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICB7aGVscGVyfVxuICAgICAgICAgIDwvSGVscGVyVGV4dD5cbiAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIHsoZXJyb3IgJiYgdHlwZW9mIGVycm9yID09PSAnc3RyaW5nJykgfHwgc3VjY2VzcyA/IChcbiAgICAgICAgICA8SGVscGVyVGV4dFxuICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgIHByb21pbmVuY2U9XCJkZWZhdWx0XCJcbiAgICAgICAgICAgIHNlbnRpbWVudD17ZXJyb3IgPyAnZGFuZ2VyJyA6ICdzdWNjZXNzJ31cbiAgICAgICAgICAgIHZhcmlhbnQ9XCJjYXB0aW9uXCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICB7ZXJyb3IgfHwgc3VjY2Vzc31cbiAgICAgICAgICA8L0hlbHBlclRleHQ+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9TZWxlY3RJbnB1dENvbnRhaW5lcj5cbiAgICA8L1NlbGVjdElucHV0UHJvdmlkZXI+XG4gIClcbn1cbiJdfQ== */",
|
|
29
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
30
|
-
});
|
|
31
|
-
const HelperText = /* @__PURE__ */ _styled__default.default(index$2.Text, process.env.NODE_ENV === "production" ? {
|
|
32
|
-
target: "e11gt5pw0"
|
|
33
|
-
} : {
|
|
34
|
-
target: "e11gt5pw0",
|
|
35
|
-
label: "HelperText"
|
|
36
|
-
})("padding-top:", ({
|
|
37
|
-
theme
|
|
38
|
-
}) => theme.space["0.5"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1NlbGVjdElucHV0L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUErSStCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21w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kZvY3VzfVxuICAgICAgPlxuICAgICAgICA8RHJvcGRvd25cbiAgICAgICAgICBkZXNjcmlwdGlvbkRpcmVjdGlvbj17ZGVzY3JpcHRpb25EaXJlY3Rpb259XG4gICAgICAgICAgZHJvcGRvd25BbGlnbj17ZHJvcGRvd25BbGlnbn1cbiAgICAgICAgICBlbXB0eVN0YXRlPXtlbXB0eVN0YXRlfVxuICAgICAgICAgIGZvb3Rlcj17Zm9vdGVyfVxuICAgICAgICAgIGlkPXtkcm9wZG93bklkfVxuICAgICAgICAgIGlzTG9hZGluZz17aXNMb2FkaW5nfVxuICAgICAgICAgIGxvYWRNb3JlPXtsb2FkTW9yZX1cbiAgICAgICAgICBvcHRpb25hbEluZm9QbGFjZW1lbnQ9e29wdGlvbmFsSW5mb1BsYWNlbWVudH1cbiAgICAgICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJTZWFyY2h9XG4gICAgICAgICAgcG9ydGFsVGFyZ2V0PXtwb3J0YWxUYXJnZXR9XG4gICAgICAgICAgcmVmU2VsZWN0PXtyZWZ9XG4gICAgICAgICAgc2VhcmNoYWJsZT17c2VhcmNoYWJsZX1cbiAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICA+XG4gICAgICAgICAgPFN0YWNrIGFyaWEtbGFiZWw9e2FyaWFMYWJlbH0gZ2FwPXswLjV9PlxuICAgICAgICAgICAge2xhYmVsIHx8IGxhYmVsRGVzY3JpcHRpb24gPyAoXG4gICAgICAgICAgICAgIDxMYWJlbFxuICAgICAgICAgICAgICAgIGh0bWxGb3I9e2ZpbmFsSWR9XG4gICAgICAgICAgICAgICAgbGFiZWxEZXNjcmlwdGlvbj17bGFiZWxEZXNjcmlwdGlvbn1cbiAgICAgICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtsYWJlbH1cbiAgICAgICAgICAgICAgPC9MYWJlbD5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAgPFNlbGVjdEJhclxuICAgICAgICAgICAgICBhdXRvRm9jdXM9e2F1dG9mb2N1c31cbiAgICAgICAgICAgICAgY2xlYXJhYmxlPXtjbGVhcmFibGV9XG4gICAgICAgICAgICAgIGRhdGEtdGVzdGlkPXtmaW5hbERhdGFUZXN0SWR9XG4gICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgZHJvcGRvd25JZD17ZHJvcGRvd25JZH1cbiAgICAgICAgICAgICAgZXJyb3I9e2Vycm9yfVxuICAgICAgICAgICAgICBpZD17ZmluYWxJZH1cbiAgICAgICAgICAgICAgaW5uZXJSZWY9e3JlZn1cbiAgICAgICAgICAgICAgbGFiZWw9e2xhYmVsfVxuICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJ9XG4gICAgICAgICAgICAgIHJlYWRPbmx5PXtyZWFkT25seX1cbiAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgc3VjY2Vzcz17c3VjY2Vzc31cbiAgICAgICAgICAgICAgdG9vbHRpcD17dG9vbHRpcH1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgPC9Ecm9wZG93bj5cbiAgICAgICAgeyFlcnJvciAmJiAhc3VjY2VzcyAmJiBoZWxwZXIgPyAoXG4gICAgICAgICAgPEhlbHBlclRleHRcbiAgICAgICAgICAgIGFzPVwicFwiXG4gICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgIHZhcmlhbnQ9XCJjYXB0aW9uXCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICB7aGVscGVyfVxuICAgICAgICAgIDwvSGVscGVyVGV4dD5cbiAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIHsoZXJyb3IgJiYgdHlwZW9mIGVycm9yID09PSAnc3RyaW5nJykgfHwgc3VjY2VzcyA/IChcbiAgICAgICAgICA8SGVscGVyVGV4dFxuICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgIHByb21pbmVuY2U9XCJkZWZhdWx0XCJcbiAgICAgICAgICAgIHNlbnRpbWVudD17ZXJyb3IgPyAnZGFuZ2VyJyA6ICdzdWNjZXNzJ31cbiAgICAgICAgICAgIHZhcmlhbnQ9XCJjYXB0aW9uXCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICB7ZXJyb3IgfHwgc3VjY2Vzc31cbiAgICAgICAgICA8L0hlbHBlclRleHQ+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9TZWxlY3RJbnB1dENvbnRhaW5lcj5cbiAgICA8L1NlbGVjdElucHV0UHJvdmlkZXI+XG4gIClcbn1cbiJdfQ== */"));
|
|
39
|
-
const SelectInput = ({
|
|
40
|
-
name,
|
|
41
|
-
id,
|
|
42
|
-
onBlur,
|
|
43
|
-
onFocus,
|
|
44
|
-
onChange,
|
|
45
|
-
"aria-label": ariaLabel,
|
|
46
|
-
value,
|
|
47
|
-
label,
|
|
48
|
-
helper,
|
|
49
|
-
options,
|
|
50
|
-
size = "large",
|
|
51
|
-
emptyState,
|
|
52
|
-
descriptionDirection = "column",
|
|
53
|
-
success,
|
|
54
|
-
error,
|
|
55
|
-
"data-testid": dataTestId,
|
|
56
|
-
className,
|
|
57
|
-
tooltip,
|
|
58
|
-
footer,
|
|
59
|
-
placeholderSearch = "Search in list",
|
|
60
|
-
placeholder = "Select item",
|
|
61
|
-
searchable = true,
|
|
62
|
-
disabled = false,
|
|
63
|
-
readOnly = false,
|
|
64
|
-
clearable = false,
|
|
65
|
-
multiselect = false,
|
|
66
|
-
required = false,
|
|
67
|
-
labelDescription,
|
|
68
|
-
autofocus,
|
|
69
|
-
loadMore,
|
|
70
|
-
optionalInfoPlacement = "right",
|
|
71
|
-
isLoading,
|
|
72
|
-
selectAll,
|
|
73
|
-
selectAllGroup = false,
|
|
74
|
-
dropdownAlign,
|
|
75
|
-
portalTarget,
|
|
76
|
-
onOpen
|
|
77
|
-
}) => {
|
|
78
|
-
const localId = react.useId();
|
|
79
|
-
const finalId = id ?? localId;
|
|
80
|
-
const dropdownId = react.useId();
|
|
81
|
-
const ref = react.useRef(null);
|
|
82
|
-
const numberOfOptions = Array.isArray(options) ? options.length : Object.values(options).reduce((acc, current) => acc + current.filter((option) => !option.disabled).length, 0);
|
|
83
|
-
const finalDataTestId = dataTestId ?? `select-input-${name ?? "name"}`;
|
|
84
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SelectInputProvider.SelectInputProvider, { multiselect, numberOfOptions, onChange, onOpen, options, refSelect: ref, selectAll, selectAllGroup, value, children: /* @__PURE__ */ jsxRuntime.jsxs(SelectInputContainer, { "aria-label": name, className, onBlur, onFocus, children: [
|
|
85
|
-
/* @__PURE__ */ jsxRuntime.jsx(Dropdown.Dropdown, { descriptionDirection, dropdownAlign, emptyState, footer, id: dropdownId, isLoading, loadMore, optionalInfoPlacement, placeholder: placeholderSearch, portalTarget, refSelect: ref, searchable, size, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { "aria-label": ariaLabel, gap: 0.5, children: [
|
|
86
|
-
label || labelDescription ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Label, { htmlFor: finalId, labelDescription, required, size, children: label }) : null,
|
|
87
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectBar.SelectBar, { autoFocus: autofocus, clearable, "data-testid": finalDataTestId, disabled, dropdownId, error, id: finalId, innerRef: ref, label, placeholder, readOnly, size, success, tooltip })
|
|
88
|
-
] }) }),
|
|
89
|
-
!error && !success && helper ? /* @__PURE__ */ jsxRuntime.jsx(HelperText, { as: "p", prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null,
|
|
90
|
-
error && typeof error === "string" || success ? /* @__PURE__ */ jsxRuntime.jsx(HelperText, { as: "p", prominence: "default", sentiment: error ? "danger" : "success", variant: "caption", children: error || success }) : null
|
|
91
|
-
] }) });
|
|
92
|
-
};
|
|
93
|
-
exports.SelectInput = SelectInput;
|