@ultraviolet/ui 3.21.1 → 3.22.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/dist/_virtual/EstimateCost.js +90 -0
- package/dist/_virtual/Filters.js +18 -0
- package/dist/_virtual/Navigation.js +43 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/asyncToGenerator.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/defineProperty.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/extends.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectDestructuringEmpty.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectSpread2.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutProperties.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutPropertiesLoose.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPrimitive.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPropertyKey.js +7 -5
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/typeof.js +4 -2
- package/dist/components/ActionBar/index.js +20 -18
- package/dist/components/ActionBar/styles.css.js +11 -9
- package/dist/components/ActionBar/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Alert/index.js +79 -77
- package/dist/components/Alert/styles.css.js +34 -32
- package/dist/components/Alert/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Avatar/constants.js +17 -15
- package/dist/components/Avatar/index.js +81 -79
- package/dist/components/Avatar/styles.css.js +161 -159
- package/dist/components/Avatar/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Avatar/variables.css.js +7 -5
- package/dist/components/Badge/constant.js +10 -8
- package/dist/components/Badge/index.js +30 -24
- package/dist/components/Badge/styles.css.js +107 -105
- package/dist/components/Badge/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Banner/assets/default-image-small.js +5 -3
- package/dist/components/Banner/assets/default-image.js +5 -3
- package/dist/components/Banner/index.js +106 -104
- package/dist/components/Banner/styles.css.js +44 -42
- package/dist/components/Banner/styles.css.ts.vanilla.js +3 -1
- package/dist/components/BarChart/Tooltip.js +23 -21
- package/dist/components/BarChart/index.js +63 -61
- package/dist/components/BarChart/styles.css.js +10 -8
- package/dist/components/BarChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/BarStack/index.js +90 -88
- package/dist/components/BarStack/styles.css.js +38 -36
- package/dist/components/BarStack/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Breadcrumbs/components/Item.js +57 -55
- package/dist/components/Breadcrumbs/components/styles.css.js +13 -11
- package/dist/components/Breadcrumbs/components/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Breadcrumbs/index.js +18 -16
- package/dist/components/Breadcrumbs/styles.css.js +19 -17
- package/dist/components/Breadcrumbs/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Bullet/index.js +22 -20
- package/dist/components/Bullet/styles.css.js +105 -103
- package/dist/components/Bullet/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Button/constants.js +10 -8
- package/dist/components/Button/index.js +116 -114
- package/dist/components/Button/styles.css.js +154 -152
- package/dist/components/Button/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Card/index.js +43 -41
- package/dist/components/Card/styles.css.js +9 -7
- package/dist/components/Card/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Carousel/Item.js +14 -12
- package/dist/components/Carousel/index.js +90 -88
- package/dist/components/Carousel/styles.css.js +13 -11
- package/dist/components/Carousel/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Checkbox/CheckboxIconContainer.js +34 -32
- package/dist/components/Checkbox/index.d.ts +3 -14
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +92 -90
- package/dist/components/Checkbox/styles.css.js +26 -24
- package/dist/components/Checkbox/styles.css.ts.vanilla.js +3 -1
- package/dist/components/CheckboxGroup/Context.js +5 -3
- package/dist/components/CheckboxGroup/SingleCheckbox.js +34 -32
- package/dist/components/CheckboxGroup/index.js +67 -65
- package/dist/components/CheckboxGroup/styles.css.js +9 -7
- package/dist/components/CheckboxGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Chip/ChipContext.js +5 -3
- package/dist/components/Chip/ChipIcon.js +36 -34
- package/dist/components/Chip/index.js +66 -64
- package/dist/components/Chip/styles.css.js +9 -7
- package/dist/components/Chip/styles.css.ts.vanilla.js +3 -1
- package/dist/components/CopyButton/index.js +27 -25
- package/dist/components/DateInput/Context.js +22 -20
- package/dist/components/DateInput/components/CalendarContent.js +69 -67
- package/dist/components/DateInput/components/CalendarDaily.js +143 -141
- package/dist/components/DateInput/components/CalendarMonthly.js +86 -84
- package/dist/components/DateInput/components/Popup.js +37 -35
- package/dist/components/DateInput/components/styles.css.ts.vanilla.js +3 -1
- package/dist/components/DateInput/constants.js +5 -3
- package/dist/components/DateInput/helpers.js +68 -66
- package/dist/components/DateInput/helpersLocale.js +54 -52
- package/dist/components/DateInput/index.js +233 -231
- package/dist/components/DateInput/styles.css.js +19 -17
- package/dist/components/DateInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Description/index.js +39 -37
- package/dist/components/Dialog/Context.js +10 -8
- package/dist/components/Dialog/components/Button.d.ts.map +1 -1
- package/dist/components/Dialog/components/Button.js +23 -15
- package/dist/components/Dialog/components/Buttons.js +12 -10
- package/dist/components/Dialog/components/CancelButton.js +14 -12
- package/dist/components/Dialog/components/Stack.js +11 -9
- package/dist/components/Dialog/components/Text.js +13 -11
- package/dist/components/Dialog/index.js +59 -57
- package/dist/components/Dialog/styles.css.js +9 -7
- package/dist/components/Dialog/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Drawer/DrawerContent.js +10 -8
- package/dist/components/Drawer/index.js +94 -92
- package/dist/components/Drawer/styles.css.d.ts +0 -5
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css.js +20 -18
- package/dist/components/Drawer/styles.css.ts.vanilla.js +3 -1
- package/dist/components/EmptyState/index.js +73 -71
- package/dist/components/EmptyState/styles.css.js +29 -27
- package/dist/components/EmptyState/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Expandable/AnimatedExpandable.js +77 -77
- package/dist/components/Expandable/NonAnimatedExpandable.js +15 -13
- package/dist/components/Expandable/index.js +26 -26
- package/dist/components/Expandable/styles.css.js +7 -5
- package/dist/components/Expandable/styles.css.ts.vanilla.js +3 -1
- package/dist/components/ExpandableCard/components/Title.js +14 -12
- package/dist/components/ExpandableCard/index.js +143 -141
- package/dist/components/ExpandableCard/styles.css.js +14 -12
- package/dist/components/ExpandableCard/styles.css.ts.vanilla.js +3 -1
- package/dist/components/FileInput/DropzoneContent.js +19 -17
- package/dist/components/FileInput/FileInputProvider.js +10 -8
- package/dist/components/FileInput/components/Button.js +25 -23
- package/dist/components/FileInput/components/List.js +136 -134
- package/dist/components/FileInput/helpers.js +100 -98
- package/dist/components/FileInput/index.js +238 -236
- package/dist/components/FileInput/styles.css.js +59 -57
- package/dist/components/FileInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.js +24 -22
- package/dist/components/GlobalAlert/index.js +49 -47
- package/dist/components/GlobalAlert/styles.css.js +13 -11
- package/dist/components/GlobalAlert/styles.css.ts.vanilla.js +3 -1
- package/dist/components/InfiniteScroll/index.js +62 -60
- package/dist/components/Key/constants.js +12 -10
- package/dist/components/Key/index.js +39 -37
- package/dist/components/Key/styles.css.js +55 -53
- package/dist/components/Key/styles.css.ts.vanilla.js +3 -1
- package/dist/components/KeyValueInput/index.d.ts +6 -0
- package/dist/components/KeyValueInput/index.d.ts.map +1 -0
- package/dist/components/KeyValueInput/index.js +146 -0
- package/dist/components/KeyValueInput/styles.css.d.ts +5 -0
- package/dist/components/KeyValueInput/styles.css.d.ts.map +1 -0
- package/dist/components/KeyValueInput/styles.css.js +21 -0
- package/dist/components/KeyValueInput/styles.css.ts.vanilla.js +10 -0
- package/dist/components/KeyValueInput/types.d.ts +59 -0
- package/dist/components/KeyValueInput/types.d.ts.map +1 -0
- package/dist/components/Label/LabelContent.js +42 -40
- package/dist/components/Label/index.js +31 -29
- package/dist/components/Label/styles.css.js +10 -8
- package/dist/components/Label/styles.css.ts.vanilla.js +3 -1
- package/dist/components/LineChart/CustomLegend.js +87 -85
- package/dist/components/LineChart/LegendCell.js +13 -11
- package/dist/components/LineChart/Tooltip.js +25 -23
- package/dist/components/LineChart/helpers.js +34 -32
- package/dist/components/LineChart/index.js +93 -91
- package/dist/components/LineChart/styles.css.js +21 -19
- package/dist/components/LineChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Link/index.js +85 -83
- package/dist/components/Link/styles.css.js +78 -76
- package/dist/components/Link/styles.css.ts.vanilla.js +3 -1
- package/dist/components/List/Cell.js +36 -34
- package/dist/components/List/ColumnProvider.js +21 -19
- package/dist/components/List/ExpandButtonCell.js +28 -26
- package/dist/components/List/HeaderCell.js +50 -48
- package/dist/components/List/HeaderRow.js +33 -31
- package/dist/components/List/ListContext.js +207 -205
- package/dist/components/List/Row.js +123 -121
- package/dist/components/List/SelectBar.js +30 -28
- package/dist/components/List/SelectRowCell.js +32 -30
- package/dist/components/List/SkeletonRows.js +27 -25
- package/dist/components/List/SortIcon.js +9 -7
- package/dist/components/List/TableContainer.js +20 -18
- package/dist/components/List/index.js +50 -48
- package/dist/components/List/styles.css.js +45 -43
- package/dist/components/List/styles.css.ts.vanilla.js +3 -1
- package/dist/components/List/variables.css.js +15 -13
- package/dist/components/Loader/constants.js +12 -10
- package/dist/components/Loader/index.js +53 -51
- package/dist/components/Loader/styles.css.js +10 -8
- package/dist/components/Loader/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/components/Menu/MenuContent.js +190 -188
- package/dist/components/Menu/MenuProvider.js +43 -41
- package/dist/components/Menu/components/Group.js +27 -25
- package/dist/components/Menu/components/Item.js +144 -142
- package/dist/components/Menu/helpers.js +29 -27
- package/dist/components/Menu/index.js +32 -30
- package/dist/components/Menu/styles.css.js +76 -74
- package/dist/components/Menu/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Meter/index.js +49 -47
- package/dist/components/Meter/styles.css.js +11 -9
- package/dist/components/Meter/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Modal/ModalContent.d.ts +1 -2
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent.js +50 -41
- package/dist/components/Modal/ModalProvider.js +40 -38
- package/dist/components/Modal/components/Dialog.d.ts +1 -1
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +170 -166
- package/dist/components/Modal/components/Disclosure.js +37 -35
- package/dist/components/Modal/constants.css.d.ts +11 -0
- package/dist/components/Modal/constants.css.d.ts.map +1 -0
- package/dist/components/Modal/index.js +65 -64
- package/dist/components/Modal/styles.css.d.ts +13 -61
- package/dist/components/Modal/styles.css.d.ts.map +1 -1
- package/dist/components/Modal/styles.css.js +48 -80
- package/dist/components/Modal/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Modal/types.d.ts +1 -0
- package/dist/components/Modal/types.d.ts.map +1 -1
- package/dist/components/Modal/useDelayUnmount.d.ts +2 -0
- package/dist/components/Modal/useDelayUnmount.d.ts.map +1 -0
- package/dist/components/Modal/useDelayUnmount.js +27 -0
- package/dist/components/Notice/index.js +19 -17
- package/dist/components/Notice/styles.css.js +6 -4
- package/dist/components/Notice/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Notification/Notification.js +37 -35
- package/dist/components/Notification/NotificationContainer.js +20 -18
- package/dist/components/Notification/styles.css.js +6 -4
- package/dist/components/Notification/styles.css.ts.vanilla.js +3 -1
- package/dist/components/NumberInput/components/Controls.js +61 -59
- package/dist/components/NumberInput/components/Unit.js +18 -16
- package/dist/components/NumberInput/index.d.ts +19 -5
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +158 -156
- package/dist/components/NumberInput/styles.css.js +81 -79
- package/dist/components/NumberInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/NumberInput/types.d.ts +3 -6
- package/dist/components/NumberInput/types.d.ts.map +1 -1
- package/dist/components/Pagination/Ellipsis.js +17 -15
- package/dist/components/Pagination/PaginationButton.js +21 -19
- package/dist/components/Pagination/PaginationButtons.js +74 -72
- package/dist/components/Pagination/PerPage.d.ts.map +1 -1
- package/dist/components/Pagination/PerPage.js +71 -65
- package/dist/components/Pagination/getPageNumbers.js +20 -18
- package/dist/components/Pagination/index.js +46 -44
- package/dist/components/Pagination/styles.css.js +16 -14
- package/dist/components/Pagination/styles.css.ts.vanilla.js +3 -1
- package/dist/components/PasswordCheck/index.js +31 -29
- package/dist/components/PasswordCheck/styles.css.js +6 -4
- package/dist/components/PasswordCheck/styles.css.ts.vanilla.js +3 -1
- package/dist/components/PhoneInput/index.js +131 -129
- package/dist/components/PhoneInput/styles.css.js +15 -13
- package/dist/components/PhoneInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/PieChart/Legends.js +57 -55
- package/dist/components/PieChart/Tooltip.js +39 -37
- package/dist/components/PieChart/index.js +86 -84
- package/dist/components/PieChart/styles.css.js +29 -27
- package/dist/components/PieChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Popover/ContentWrapper.js +34 -32
- package/dist/components/Popover/index.js +53 -51
- package/dist/components/Popover/styles.css.js +23 -21
- package/dist/components/Popover/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Popup/helpers.js +243 -241
- package/dist/components/Popup/index.d.ts.map +1 -1
- package/dist/components/Popup/index.js +325 -319
- package/dist/components/Popup/styles.css.js +40 -38
- package/dist/components/Popup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Popup/variables.css.js +12 -10
- package/dist/components/ProgressBar/index.js +73 -71
- package/dist/components/ProgressBar/styles.css.js +21 -19
- package/dist/components/ProgressBar/styles.css.ts.vanilla.js +3 -1
- package/dist/components/ProgressBar/variables.css.js +5 -3
- package/dist/components/Radio/MarkedIcon.js +32 -30
- package/dist/components/Radio/index.js +75 -73
- package/dist/components/Radio/styles.css.js +27 -25
- package/dist/components/Radio/styles.css.ts.vanilla.js +3 -1
- package/dist/components/RadioGroup/Context.js +5 -3
- package/dist/components/RadioGroup/SingleRadio.js +31 -29
- package/dist/components/RadioGroup/index.js +70 -68
- package/dist/components/RadioGroup/styles.css.js +6 -4
- package/dist/components/RadioGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Row/index.js +20 -18
- package/dist/components/Row/styles.css.js +487 -485
- package/dist/components/Row/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Row/variables.css.js +21 -19
- package/dist/components/Row/variables.css.ts.vanilla.js +3 -1
- package/dist/components/SearchInput/KeyGroup.js +18 -16
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SearchInput/index.js +197 -191
- package/dist/components/SearchInput/styles.css.js +10 -8
- package/dist/components/SearchInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SearchInput/types.d.ts +1 -1
- package/dist/components/SearchInput/types.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +114 -112
- package/dist/components/SelectInput/components/Dropdown/AddOption.js +36 -34
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Content.js +189 -184
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +192 -190
- package/dist/components/SelectInput/components/Dropdown/Group.js +61 -59
- package/dist/components/SelectInput/components/Dropdown/Item.js +64 -62
- package/dist/components/SelectInput/components/Dropdown/Option.js +108 -106
- package/dist/components/SelectInput/components/Dropdown/SearchBar.js +94 -93
- package/dist/components/SelectInput/components/Dropdown/SelectAll.js +63 -61
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.js +33 -31
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.ts.vanilla.js +3 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts +2 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.js +183 -179
- package/dist/components/SelectInput/components/SelectBar/Values.js +73 -71
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.js +46 -44
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.js +3 -1
- package/dist/components/SelectInput/components/helpers.js +61 -59
- package/dist/components/SelectInput/constants.js +15 -13
- package/dist/components/SelectInput/findOptionInOptions.js +10 -8
- package/dist/components/SelectInput/index.d.ts +9 -29
- package/dist/components/SelectInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/index.js +99 -96
- package/dist/components/SelectInput/reducerFunctions.js +54 -52
- package/dist/components/SelectInput/styles.css.js +107 -105
- package/dist/components/SelectInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SelectableCard/IllustrationContainer.js +38 -36
- package/dist/components/SelectableCard/MultiStateInput.js +71 -69
- package/dist/components/SelectableCard/SelectableCard.js +107 -105
- package/dist/components/SelectableCard/styles.css.js +33 -31
- package/dist/components/SelectableCard/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SelectableCard/variables.css.js +7 -5
- package/dist/components/SelectableCardGroup/Context.js +5 -3
- package/dist/components/SelectableCardGroup/SingleCard.js +31 -30
- package/dist/components/SelectableCardGroup/index.js +61 -59
- package/dist/components/SelectableCardGroup/styles.css.js +6 -4
- package/dist/components/SelectableCardGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SelectableCardOptionGroup/Provider.js +19 -17
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +67 -65
- package/dist/components/SelectableCardOptionGroup/components/Image.js +17 -15
- package/dist/components/SelectableCardOptionGroup/components/Option.js +77 -76
- package/dist/components/SelectableCardOptionGroup/styles.css.js +15 -13
- package/dist/components/SelectableCardOptionGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Separator/index.js +44 -42
- package/dist/components/Separator/styles.css.js +55 -53
- package/dist/components/Separator/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Skeleton/Block.js +14 -12
- package/dist/components/Skeleton/Blocks.js +16 -14
- package/dist/components/Skeleton/BoxWithIcon.js +16 -14
- package/dist/components/Skeleton/Donut.js +26 -24
- package/dist/components/Skeleton/IconSkeleton.js +6 -4
- package/dist/components/Skeleton/Line.js +17 -15
- package/dist/components/Skeleton/List.js +16 -14
- package/dist/components/Skeleton/Slider.js +14 -12
- package/dist/components/Skeleton/Square.js +6 -4
- package/dist/components/Skeleton/index.js +40 -38
- package/dist/components/Skeleton/styles.css.js +28 -26
- package/dist/components/Skeleton/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Skeleton/stylesVariants.css.js +9 -7
- package/dist/components/Skeleton/stylesVariants.css.ts.vanilla.js +3 -1
- package/dist/components/Slider/components/DoubleSlider.js +284 -284
- package/dist/components/Slider/components/Options.js +36 -36
- package/dist/components/Slider/components/SingleSlider.js +195 -195
- package/dist/components/Slider/index.js +101 -99
- package/dist/components/Slider/styles.css.js +103 -101
- package/dist/components/Slider/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Snippet/CodeContent.js +23 -21
- package/dist/components/Snippet/index.js +91 -89
- package/dist/components/Snippet/styles.css.js +55 -53
- package/dist/components/Snippet/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Stack/index.js +57 -55
- package/dist/components/Stack/styles.css.js +574 -572
- package/dist/components/Stack/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Stack/variables.css.js +9 -7
- package/dist/components/Stack/variables.css.ts.vanilla.js +3 -1
- package/dist/components/Status/index.js +16 -14
- package/dist/components/Status/styles.css.js +38 -36
- package/dist/components/Status/styles.css.ts.vanilla.js +3 -1
- package/dist/components/StepList/Item.js +22 -20
- package/dist/components/StepList/index.js +14 -12
- package/dist/components/StepList/styles.css.js +26 -24
- package/dist/components/StepList/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Stepper/Bullet.js +31 -29
- package/dist/components/Stepper/Step.js +62 -60
- package/dist/components/Stepper/StepperProvider.js +38 -35
- package/dist/components/Stepper/index.js +46 -44
- package/dist/components/Stepper/styles.css.js +131 -129
- package/dist/components/Stepper/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SwitchButton/FocusOverlay.js +12 -12
- package/dist/components/SwitchButton/Option.js +42 -41
- package/dist/components/SwitchButton/SwitchButtonContext.js +10 -8
- package/dist/components/SwitchButton/index.js +131 -131
- package/dist/components/SwitchButton/styles.css.js +18 -16
- package/dist/components/SwitchButton/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Table/Body.js +6 -4
- package/dist/components/Table/Cell.d.ts.map +1 -1
- package/dist/components/Table/Cell.js +34 -28
- package/dist/components/Table/Header.js +9 -7
- package/dist/components/Table/HeaderCell.d.ts.map +1 -1
- package/dist/components/Table/HeaderCell.js +61 -55
- package/dist/components/Table/HeaderRow.d.ts.map +1 -1
- package/dist/components/Table/HeaderRow.js +32 -29
- package/dist/components/Table/Row.js +87 -91
- package/dist/components/Table/SelectBar.js +30 -28
- package/dist/components/Table/SkeletonRows.js +19 -17
- package/dist/components/Table/SortIcon.js +9 -7
- package/dist/components/Table/TableContainer.js +20 -18
- package/dist/components/Table/TableContext.d.ts +2 -0
- package/dist/components/Table/TableContext.d.ts.map +1 -1
- package/dist/components/Table/TableContext.js +52 -48
- package/dist/components/Table/constants.d.ts +10 -2
- package/dist/components/Table/constants.d.ts.map +1 -1
- package/dist/components/Table/constants.js +11 -2
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +60 -57
- package/dist/components/Table/styles.css.d.ts +22 -6
- package/dist/components/Table/styles.css.d.ts.map +1 -1
- package/dist/components/Table/styles.css.js +65 -53
- package/dist/components/Table/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Table/variables.css.js +10 -8
- package/dist/components/Tabs/Tab.js +86 -84
- package/dist/components/Tabs/TabMenu.js +41 -39
- package/dist/components/Tabs/TabMenuItem.js +29 -27
- package/dist/components/Tabs/TabsContext.js +6 -4
- package/dist/components/Tabs/index.js +77 -75
- package/dist/components/Tabs/styles.css.js +19 -17
- package/dist/components/Tabs/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Tag/index.js +86 -82
- package/dist/components/Tag/styles.css.js +143 -141
- package/dist/components/Tag/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TagInput/index.js +183 -181
- package/dist/components/TagInput/styles.css.js +20 -18
- package/dist/components/TagInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TagList/constant.js +6 -4
- package/dist/components/TagList/index.js +170 -168
- package/dist/components/TagList/styles.css.js +18 -16
- package/dist/components/TagList/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Text/index.js +44 -42
- package/dist/components/Text/style.css.js +449 -447
- package/dist/components/Text/style.css.ts.vanilla.js +3 -1
- package/dist/components/Text/variables.css.js +8 -6
- package/dist/components/TextArea/Icon.js +8 -6
- package/dist/components/TextArea/Notice.js +32 -30
- package/dist/components/TextArea/index.d.ts +4 -25
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +132 -132
- package/dist/components/TextArea/styles.css.js +28 -26
- package/dist/components/TextArea/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TextInput/PrefixSuffix.js +20 -18
- package/dist/components/TextInput/RightIcon.js +48 -46
- package/dist/components/TextInput/ShowHidePassword.js +24 -22
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/TextInput/index.js +138 -136
- package/dist/components/TextInput/styles.css.js +19 -17
- package/dist/components/TextInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TextInput/type.d.ts +1 -1
- package/dist/components/TextInput/type.d.ts.map +1 -1
- package/dist/components/TimeInput/RightIcon.js +25 -23
- package/dist/components/TimeInput/constants.js +16 -14
- package/dist/components/TimeInput/helpers.js +44 -42
- package/dist/components/TimeInput/index.d.ts +5 -23
- package/dist/components/TimeInput/index.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +292 -288
- package/dist/components/TimeInput/styles.css.js +31 -29
- package/dist/components/TimeInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Toaster/Toaster.js +31 -29
- package/dist/components/Toaster/ToasterContainer.js +24 -22
- package/dist/components/Toaster/components/Button.js +22 -20
- package/dist/components/Toaster/components/CloseButton.js +14 -12
- package/dist/components/Toaster/components/Content.js +16 -14
- package/dist/components/Toaster/components/Link.js +18 -15
- package/dist/components/Toaster/constants.js +5 -3
- package/dist/components/Toaster/index.js +12 -10
- package/dist/components/Toaster/styles.css.js +10 -8
- package/dist/components/Toaster/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Toggle/index.js +81 -79
- package/dist/components/Toggle/styles.css.js +49 -47
- package/dist/components/Toggle/styles.css.ts.vanilla.js +3 -1
- package/dist/components/ToggleGroup/Context.js +5 -3
- package/dist/components/ToggleGroup/SingleToggle.js +27 -25
- package/dist/components/ToggleGroup/index.js +65 -63
- package/dist/components/ToggleGroup/styles.css.js +6 -4
- package/dist/components/ToggleGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Tooltip/index.js +27 -25
- package/dist/components/Tooltip/styles.css.js +6 -4
- package/dist/components/Tooltip/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TreeMapChart/Tooltip.js +21 -19
- package/dist/components/TreeMapChart/index.js +49 -47
- package/dist/components/TreeMapChart/styles.css.js +9 -7
- package/dist/components/TreeMapChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/UnitInput/index.d.ts +3 -6
- package/dist/components/UnitInput/index.d.ts.map +1 -1
- package/dist/components/UnitInput/index.js +123 -121
- package/dist/components/UnitInput/styles.css.js +28 -26
- package/dist/components/UnitInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/VerificationCode/index.js +143 -142
- package/dist/components/VerificationCode/styles.css.js +15 -13
- package/dist/components/VerificationCode/styles.css.ts.vanilla.js +3 -1
- package/dist/components/VisuallyHidden/index.d.ts +11 -0
- package/dist/components/VisuallyHidden/index.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/index.js +31 -0
- package/dist/components/VisuallyHidden/styles.css.d.ts +4 -0
- package/dist/components/VisuallyHidden/styles.css.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/styles.css.js +15 -0
- package/dist/components/VisuallyHidden/styles.css.ts.vanilla.js +10 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/styles.d.ts +1 -0
- package/dist/components/styles.d.ts.map +1 -1
- package/dist/composition.js +120 -11
- package/dist/compositions/CodeEditor/components/CopyButton.js +14 -12
- package/dist/compositions/CodeEditor/components/Expandable.js +25 -23
- package/dist/compositions/CodeEditor/index.js +89 -87
- package/dist/compositions/CodeEditor/styles.css.js +30 -28
- package/dist/compositions/CodeEditor/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/ContentCard/Content.js +34 -32
- package/dist/compositions/ContentCard/ImageContent.js +14 -12
- package/dist/compositions/ContentCard/LinkContent.js +19 -17
- package/dist/compositions/ContentCard/Skeleton.js +28 -26
- package/dist/compositions/ContentCard/index.js +68 -66
- package/dist/compositions/ContentCard/styles.css.js +39 -37
- package/dist/compositions/ContentCard/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/ContentCardGroup/Card.js +53 -51
- package/dist/compositions/ContentCardGroup/SkeletonCard.js +26 -24
- package/dist/compositions/ContentCardGroup/index.js +17 -15
- package/dist/compositions/ContentCardGroup/styles.css.js +14 -12
- package/dist/compositions/ContentCardGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Conversation/components/Date.js +15 -13
- package/dist/compositions/Conversation/components/Message.js +20 -18
- package/dist/compositions/Conversation/components/MessageInfos.js +11 -9
- package/dist/compositions/Conversation/components/MessageTag.js +12 -10
- package/dist/compositions/Conversation/index.js +18 -16
- package/dist/compositions/Conversation/styles.css.js +23 -21
- package/dist/compositions/Conversation/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/CustomerSatisfaction/assets/1-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/1-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/2-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/2-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/3-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/3-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/4-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/4-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/5-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/5-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/index.js +86 -84
- package/dist/compositions/CustomerSatisfaction/styles.css.js +21 -19
- package/dist/compositions/CustomerSatisfaction/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/EstimateCost/CompactEstimateCost.js +29 -27
- package/dist/compositions/EstimateCost/Components/Children.js +38 -36
- package/dist/compositions/EstimateCost/Components/CustomUnitInput.js +35 -33
- package/dist/compositions/EstimateCost/Components/Description.js +10 -8
- package/dist/compositions/EstimateCost/Components/Item.js +151 -149
- package/dist/compositions/EstimateCost/Components/ItemLeftSide.js +70 -68
- package/dist/compositions/EstimateCost/Components/ItemPrice.js +51 -49
- package/dist/compositions/EstimateCost/Components/LineThrough.js +15 -13
- package/dist/compositions/EstimateCost/Components/NumberInput.js +31 -29
- package/dist/compositions/EstimateCost/Components/Region.js +33 -31
- package/dist/compositions/EstimateCost/Components/Regular.js +17 -15
- package/dist/compositions/EstimateCost/Components/Strong.js +11 -9
- package/dist/compositions/EstimateCost/Components/Title.js +13 -11
- package/dist/compositions/EstimateCost/Components/Total.js +61 -59
- package/dist/compositions/EstimateCost/Components/Unit.js +47 -45
- package/dist/compositions/EstimateCost/Components/Zone.js +32 -30
- package/dist/compositions/EstimateCost/Components/components.css.js +59 -57
- package/dist/compositions/EstimateCost/Components/components.css.ts.vanilla.js +3 -1
- package/dist/compositions/EstimateCost/Ellipsis.js +25 -23
- package/dist/compositions/EstimateCost/EstimateCostContent.js +191 -189
- package/dist/compositions/EstimateCost/EstimateCostProvider.js +28 -26
- package/dist/compositions/EstimateCost/Image.js +13 -11
- package/dist/compositions/EstimateCost/OverlayComponent.js +91 -89
- package/dist/compositions/EstimateCost/OverlayContext.js +10 -8
- package/dist/compositions/EstimateCost/constants.js +26 -24
- package/dist/compositions/EstimateCost/helper.js +9 -7
- package/dist/compositions/EstimateCost/index.js +2 -86
- package/dist/compositions/EstimateCost/locales/en.js +25 -23
- package/dist/compositions/EstimateCost/styles.css.js +136 -134
- package/dist/compositions/EstimateCost/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/FAQ/index.js +36 -34
- package/dist/compositions/FAQ/styles.css.js +6 -4
- package/dist/compositions/FAQ/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Filters/Filters.js +27 -25
- package/dist/compositions/Filters/filterTypes/FilterDateRange.js +27 -26
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/Dropdown.js +117 -115
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/FilterDatetimeRange.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/FilterDatetimeRange.js +59 -56
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/filterDatetimeRange.styles.css.js +9 -7
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/filterDatetimeRange.styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.js +42 -39
- package/dist/compositions/Filters/filterTypes/FilterNumber.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterNumber.js +17 -14
- package/dist/compositions/Filters/filterTypes/FilterSearch.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSearch.js +33 -30
- package/dist/compositions/Filters/filterTypes/FilterSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.js +37 -34
- package/dist/compositions/Filters/filterTypes/FilterSlider.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSlider.js +23 -20
- package/dist/compositions/Filters/filterTypes/FilterText.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterText.js +33 -30
- package/dist/compositions/Filters/index.js +4 -13
- package/dist/compositions/Filters/parts/AbstractFilter.js +43 -41
- package/dist/compositions/Filters/parts/ExpandableFilterGroup.d.ts +2 -1
- package/dist/compositions/Filters/parts/ExpandableFilterGroup.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/ExpandableFilterGroup.js +44 -41
- package/dist/compositions/Filters/parts/FiltersDrawer.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/FiltersDrawer.js +75 -72
- package/dist/compositions/Filters/parts/FiltersMainRow.js +65 -63
- package/dist/compositions/Filters/parts/FiltersProvider.js +46 -44
- package/dist/compositions/Filters/parts/helpers.js +32 -30
- package/dist/compositions/Filters/parts/reducer.js +48 -46
- package/dist/compositions/Filters/parts/styles.css.js +6 -4
- package/dist/compositions/Filters/parts/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Filters/parts/useFilters.js +89 -86
- package/dist/compositions/Filters/types.d.ts +2 -1
- package/dist/compositions/Filters/types.d.ts.map +1 -1
- package/dist/compositions/InfoTable/Context.js +5 -3
- package/dist/compositions/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Cell.js +36 -32
- package/dist/compositions/InfoTable/components/CellWithCopyButton.js +32 -30
- package/dist/compositions/InfoTable/components/Row.js +20 -18
- package/dist/compositions/InfoTable/index.js +40 -39
- package/dist/compositions/InfoTable/styles.css.js +141 -137
- package/dist/compositions/InfoTable/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/Footer.js +56 -54
- package/dist/compositions/Navigation/Header.js +18 -16
- package/dist/compositions/Navigation/NavigationContent.js +104 -101
- package/dist/compositions/Navigation/NavigationProvider.js +137 -135
- package/dist/compositions/Navigation/components/Group.js +36 -34
- package/dist/compositions/Navigation/components/Item/Badge.js +14 -12
- package/dist/compositions/Navigation/components/Item/Children.js +22 -20
- package/dist/compositions/Navigation/components/Item/Content.js +66 -64
- package/dist/compositions/Navigation/components/Item/Item.js +201 -199
- package/dist/compositions/Navigation/components/Item/ItemExpanded.js +120 -118
- package/dist/compositions/Navigation/components/Item/ItemProvider.js +12 -10
- package/dist/compositions/Navigation/components/Item/PinnedButton.js +46 -44
- package/dist/compositions/Navigation/components/Menu/Menu.js +57 -55
- package/dist/compositions/Navigation/components/Menu/MenuItem.js +77 -75
- package/dist/compositions/Navigation/components/Menu/NestedMenu.js +40 -38
- package/dist/compositions/Navigation/components/PinnedItems.js +97 -95
- package/dist/compositions/Navigation/components/Separator.js +14 -12
- package/dist/compositions/Navigation/components/ShowHide.js +46 -44
- package/dist/compositions/Navigation/components/items.css.d.ts +2 -2
- package/dist/compositions/Navigation/components/items.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/components/styles.css.d.ts +2 -2
- package/dist/compositions/Navigation/components/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/constants.d.ts +1 -1
- package/dist/compositions/Navigation/constants.js +5 -3
- package/dist/compositions/Navigation/index.js +2 -39
- package/dist/compositions/Navigation/locales/en.js +13 -11
- package/dist/compositions/Navigation/styles.css.d.ts +5 -5
- package/dist/compositions/Navigation/styles.css.js +133 -131
- package/dist/compositions/Navigation/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/variables.css.js +7 -5
- package/dist/compositions/OfferList/OfferListProvider.js +39 -37
- package/dist/compositions/OfferList/components/Banner.js +30 -28
- package/dist/compositions/OfferList/components/Cell.js +28 -26
- package/dist/compositions/OfferList/components/OfferListRowProvider.js +9 -7
- package/dist/compositions/OfferList/components/Row.js +139 -137
- package/dist/compositions/OfferList/components/SelectableCell.js +54 -52
- package/dist/compositions/OfferList/index.js +47 -45
- package/dist/compositions/OfferList/styles.css.js +123 -121
- package/dist/compositions/OfferList/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/OptionSelector/components/ArrowIcon.js +16 -14
- package/dist/compositions/OptionSelector/components/IconWithContent.js +11 -9
- package/dist/compositions/OptionSelector/components/RevealOnHover.js +14 -12
- package/dist/compositions/OptionSelector/components/Selector.js +31 -29
- package/dist/compositions/OptionSelector/index.js +147 -145
- package/dist/compositions/OptionSelector/styles.css.js +148 -144
- package/dist/compositions/OptionSelector/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/OrderSummary/NonScrollableContent.js +101 -99
- package/dist/compositions/OrderSummary/Provider.js +18 -16
- package/dist/compositions/OrderSummary/ScrollableContent.js +30 -28
- package/dist/compositions/OrderSummary/components/Category.js +96 -94
- package/dist/compositions/OrderSummary/components/SubCategory.js +90 -88
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.js +36 -34
- package/dist/compositions/OrderSummary/constants.js +18 -16
- package/dist/compositions/OrderSummary/helpers.js +128 -126
- package/dist/compositions/OrderSummary/index.js +132 -130
- package/dist/compositions/OrderSummary/locales/en.js +13 -11
- package/dist/compositions/OrderSummary/styles.css.js +50 -48
- package/dist/compositions/OrderSummary/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Plans/FeatureHint.js +34 -32
- package/dist/compositions/Plans/PlanHeader.js +90 -88
- package/dist/compositions/Plans/index.js +148 -146
- package/dist/compositions/Plans/locales/en.js +9 -7
- package/dist/compositions/Plans/styles.css.js +39 -37
- package/dist/compositions/Plans/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/RichTextInput/Toolbar.js +110 -108
- package/dist/compositions/RichTextInput/editorCore.js +50 -48
- package/dist/compositions/RichTextInput/helpers.js +14 -12
- package/dist/compositions/RichTextInput/index.js +113 -111
- package/dist/compositions/RichTextInput/styles.css.js +38 -36
- package/dist/compositions/RichTextInput/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/SteppedListCard/Step.js +41 -39
- package/dist/compositions/SteppedListCard/SteppedListContent.js +51 -49
- package/dist/compositions/SteppedListCard/helper.js +26 -24
- package/dist/compositions/SteppedListCard/index.js +87 -85
- package/dist/compositions/SteppedListCard/styles.css.js +15 -13
- package/dist/compositions/SteppedListCard/styles.css.ts.vanilla.js +3 -1
- package/dist/helpers/hasHelperText.js +6 -4
- package/dist/helpers/isClientSide.js +6 -4
- package/dist/helpers/isStringOrNumberArray.d.ts +2 -0
- package/dist/helpers/isStringOrNumberArray.d.ts.map +1 -0
- package/dist/helpers/isStringOrNumberArray.js +13 -0
- package/dist/helpers/legend.js +11 -9
- package/dist/helpers/nivoTheme.js +20 -18
- package/dist/helpers/recursivelyGetChildrenString.d.ts.map +1 -1
- package/dist/helpers/recursivelyGetChildrenString.js +17 -12
- package/dist/helpers/treeMap.js +23 -21
- package/dist/hooks/useIsOverflowing.js +23 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +202 -46
- package/dist/theme/ThemeProvider.js +39 -37
- package/dist/theme/index.js +18 -16
- package/dist/types.d.ts +35 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils/animations/animations.js +3 -1
- package/dist/utils/animations/animations2.js +31 -29
- package/dist/utils/animations/animationsVanillaExtract.css.js +32 -30
- package/dist/utils/animations/animationsVanillaExtract.css.ts.vanilla.js +3 -1
- package/dist/utils/index.js +8 -7
- package/dist/utils/normalize.js +6 -4
- package/dist/utils/responsive/utilities.js +13 -11
- package/package.json +14 -14
- package/dist/components/Expandable/constant.js +0 -8
- package/dist/components/Modal/constants.d.ts +0 -44
- package/dist/components/Modal/constants.d.ts.map +0 -1
- package/dist/components/Notification/index.js +0 -13
- package/dist/components/SelectableCard/index.js +0 -11
- package/dist/components/SelectableCardOptionGroup/index.js +0 -11
- package/dist/components/Slider/constant.js +0 -8
- package/dist/components/SwitchButton/constant.js +0 -8
- package/dist/components/TextArea/constant.js +0 -8
- package/dist/components/index.js +0 -170
- package/dist/components/styles.js +0 -157
- package/dist/compositions/index.js +0 -47
- package/dist/compositions/styles.js +0 -37
- package/dist/utils/responsive/index.js +0 -11
|
@@ -14,79 +14,81 @@ import { PlusIcon } from "@ultraviolet/icons/PlusIcon";
|
|
|
14
14
|
|
|
15
15
|
//#region src/components/SelectInput/components/SelectBar/Values.tsx
|
|
16
16
|
var DisplayValues;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
onClose: readOnly ? void 0 : (event) => {
|
|
50
|
-
var _selectedData$selecte;
|
|
51
|
-
event.stopPropagation();
|
|
52
|
-
setSelectedData({
|
|
53
|
-
clickedOption: option,
|
|
54
|
-
type: "selectOption"
|
|
55
|
-
});
|
|
56
|
-
const newSelectedValues = (_selectedData$selecte = selectedData.selectedValues) === null || _selectedData$selecte === void 0 ? void 0 : _selectedData$selecte.filter((val) => val !== option.value);
|
|
57
|
-
onChange === null || onChange === void 0 || onChange(newSelectedValues);
|
|
58
|
-
},
|
|
59
|
-
sentiment: "neutral",
|
|
60
|
-
style: index === nonOverflowedValues.length - 1 && overflow ? assignInlineVars({
|
|
61
|
-
[minWidthTag]: "auto",
|
|
62
|
-
[maxWidthTag]: `${lastElementMaxWidth}px`
|
|
63
|
-
}) : void 0,
|
|
64
|
-
children: option === null || option === void 0 ? void 0 : option.label
|
|
65
|
-
}, option === null || option === void 0 ? void 0 : option.value)),
|
|
66
|
-
overflowed ? /* @__PURE__ */ jsx(Stack, {
|
|
67
|
-
justifyContent: "center",
|
|
68
|
-
ref: refPlusTag,
|
|
69
|
-
children: /* @__PURE__ */ jsxs(Tag, {
|
|
70
|
-
"aria-label": "Plus tag",
|
|
71
|
-
className: selectInputStyle.plusTag,
|
|
72
|
-
"data-testid": "plus-tag",
|
|
17
|
+
function init_Values() {
|
|
18
|
+
return (init_Values = __esmMin(() => {
|
|
19
|
+
init_Stack();
|
|
20
|
+
init_Tag();
|
|
21
|
+
init_Text();
|
|
22
|
+
init_findOptionInOptions();
|
|
23
|
+
init_SelectInputProvider();
|
|
24
|
+
init_styles_css();
|
|
25
|
+
init_selectBar_css();
|
|
26
|
+
DisplayValues = ({ refTag, nonOverflowedValues, potentiallyNonOverflowedValues, disabled, readOnly, overflowed, overflowAmount, measureRef, lastElementMaxWidth, overflow, refPlusTag, displayShadowCopy, textVariant }) => {
|
|
27
|
+
var _findOptionInOptions;
|
|
28
|
+
const { multiselect, selectedData, setSelectedData, options, onChange } = useSelectInput();
|
|
29
|
+
return multiselect ? /* @__PURE__ */ jsxs(Stack, {
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
className: selectInputStyle.multiselectStack,
|
|
32
|
+
direction: "row",
|
|
33
|
+
gap: "1",
|
|
34
|
+
ref: refTag,
|
|
35
|
+
wrap: "nowrap",
|
|
36
|
+
children: [
|
|
37
|
+
displayShadowCopy ? /* @__PURE__ */ jsx("div", {
|
|
38
|
+
ref: measureRef,
|
|
39
|
+
style: { position: "absolute" },
|
|
40
|
+
children: potentiallyNonOverflowedValues.map((option) => /* @__PURE__ */ jsx(Tag, {
|
|
41
|
+
className: cn(option.value, selectInputStyle.selectBarTags.hidden),
|
|
42
|
+
onClose: () => {},
|
|
43
|
+
children: option === null || option === void 0 ? void 0 : option.label
|
|
44
|
+
}, option.value))
|
|
45
|
+
}) : null,
|
|
46
|
+
nonOverflowedValues.map((option, index) => /* @__PURE__ */ jsx(Tag, {
|
|
47
|
+
className: selectInputStyle.selectBarTags.visible,
|
|
48
|
+
"data-testid": "selected-options-tags",
|
|
73
49
|
disabled,
|
|
50
|
+
onClose: readOnly ? void 0 : (event) => {
|
|
51
|
+
var _selectedData$selecte;
|
|
52
|
+
event.stopPropagation();
|
|
53
|
+
setSelectedData({
|
|
54
|
+
clickedOption: option,
|
|
55
|
+
type: "selectOption"
|
|
56
|
+
});
|
|
57
|
+
const newSelectedValues = (_selectedData$selecte = selectedData.selectedValues) === null || _selectedData$selecte === void 0 ? void 0 : _selectedData$selecte.filter((val) => val !== option.value);
|
|
58
|
+
onChange === null || onChange === void 0 || onChange(newSelectedValues);
|
|
59
|
+
},
|
|
74
60
|
sentiment: "neutral",
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
61
|
+
style: index === nonOverflowedValues.length - 1 && overflow ? assignInlineVars({
|
|
62
|
+
[minWidthTag]: "auto",
|
|
63
|
+
[maxWidthTag]: `${lastElementMaxWidth}px`
|
|
64
|
+
}) : void 0,
|
|
65
|
+
children: option === null || option === void 0 ? void 0 : option.label
|
|
66
|
+
}, option === null || option === void 0 ? void 0 : option.value)),
|
|
67
|
+
overflowed ? /* @__PURE__ */ jsx(Stack, {
|
|
68
|
+
justifyContent: "center",
|
|
69
|
+
ref: refPlusTag,
|
|
70
|
+
children: /* @__PURE__ */ jsxs(Tag, {
|
|
71
|
+
"aria-label": "Plus tag",
|
|
72
|
+
className: selectInputStyle.plusTag,
|
|
73
|
+
"data-testid": "plus-tag",
|
|
74
|
+
disabled,
|
|
75
|
+
sentiment: "neutral",
|
|
76
|
+
children: [/* @__PURE__ */ jsx(PlusIcon, { size: "xsmall" }), overflowAmount]
|
|
77
|
+
}, "+")
|
|
78
|
+
}) : null
|
|
79
|
+
]
|
|
80
|
+
}) : /* @__PURE__ */ jsx(Text, {
|
|
81
|
+
as: "span",
|
|
82
|
+
className: selectInputStyle.selectedValues,
|
|
83
|
+
disabled,
|
|
84
|
+
prominence: "default",
|
|
85
|
+
sentiment: "neutral",
|
|
86
|
+
variant: textVariant,
|
|
87
|
+
children: selectedData.selectedValues[0] ? (_findOptionInOptions = findOptionInOptions(options, selectedData.selectedValues[0])) === null || _findOptionInOptions === void 0 ? void 0 : _findOptionInOptions.label : null
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
}))();
|
|
91
|
+
}
|
|
90
92
|
|
|
91
93
|
//#endregion
|
|
92
94
|
init_Values();
|
|
@@ -6,52 +6,54 @@ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
|
6
6
|
|
|
7
7
|
//#region src/components/SelectInput/components/SelectBar/selectBar.css.ts
|
|
8
8
|
var maxWidthTag, minWidthTag, selectBar;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
function init_selectBar_css() {
|
|
10
|
+
return (init_selectBar_css = __esmMin(() => {
|
|
11
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla();
|
|
12
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$1();
|
|
13
|
+
/* @__PURE__ */ init_selectBar_css_ts_vanilla();
|
|
14
|
+
maxWidthTag = "var(--uv_r8qe40)";
|
|
15
|
+
minWidthTag = "var(--uv_r8qe41)";
|
|
16
|
+
selectBar = createRuntimeFn({
|
|
17
|
+
defaultClassName: "uv_r8qe46 uv_r8qe45",
|
|
18
|
+
variantClassNames: {
|
|
19
|
+
disabled: { true: "uv_r8qe47" },
|
|
20
|
+
dropdownVisible: { true: "uv_r8qe48" },
|
|
21
|
+
readOnly: { true: "uv_r8qe49" },
|
|
22
|
+
size: {
|
|
23
|
+
large: "uv_r8qe4a",
|
|
24
|
+
medium: "uv_r8qe4b",
|
|
25
|
+
small: "uv_r8qe4c"
|
|
26
|
+
},
|
|
27
|
+
state: {
|
|
28
|
+
danger: "uv_r8qe4d",
|
|
29
|
+
neutral: "uv_r8qe4e",
|
|
30
|
+
success: "uv_r8qe4f"
|
|
31
|
+
}
|
|
25
32
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
defaultVariants: {
|
|
33
|
-
disabled: false,
|
|
34
|
-
dropdownVisible: false,
|
|
35
|
-
readOnly: false,
|
|
36
|
-
size: "large",
|
|
37
|
-
state: "neutral"
|
|
38
|
-
},
|
|
39
|
-
compoundVariants: [
|
|
40
|
-
[{
|
|
41
|
-
dropdownVisible: true,
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
disabled: false,
|
|
35
|
+
dropdownVisible: false,
|
|
36
|
+
readOnly: false,
|
|
37
|
+
size: "large",
|
|
42
38
|
state: "neutral"
|
|
43
|
-
},
|
|
44
|
-
[
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
39
|
+
},
|
|
40
|
+
compoundVariants: [
|
|
41
|
+
[{
|
|
42
|
+
dropdownVisible: true,
|
|
43
|
+
state: "neutral"
|
|
44
|
+
}, "uv_r8qe4g"],
|
|
45
|
+
[{
|
|
46
|
+
dropdownVisible: true,
|
|
47
|
+
state: "success"
|
|
48
|
+
}, "uv_r8qe4h"],
|
|
49
|
+
[{
|
|
50
|
+
dropdownVisible: true,
|
|
51
|
+
state: "danger"
|
|
52
|
+
}, "uv_r8qe4i"]
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
}))();
|
|
56
|
+
}
|
|
55
57
|
|
|
56
58
|
//#endregion
|
|
57
59
|
init_selectBar_css();
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __esmMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.css
|
|
4
|
-
|
|
4
|
+
function init_selectBar_css_ts_vanilla() {
|
|
5
|
+
return (init_selectBar_css_ts_vanilla = __esmMin(() => {}))();
|
|
6
|
+
}
|
|
5
7
|
|
|
6
8
|
//#endregion
|
|
7
9
|
init_selectBar_css_ts_vanilla();
|
|
@@ -3,74 +3,76 @@ import { SIZES_TAG, init_constants } from "../constants.js";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/SelectInput/components/helpers.ts
|
|
5
5
|
var getTagsWidth, computeOverflowVars, computeSelectedDataMultiselect, computeSelectedDataSingleSelect;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
accumulatedWidth: canBeVisible ? newAccumulatedWidth : accumulator.accumulatedWidth,
|
|
14
|
-
lastVisibleElementWidth: canBeVisible ? elementWidth : accumulator.lastVisibleElementWidth,
|
|
15
|
-
lastVisibleLabel: canBeVisible ? potentiallyNonOverflowedValues[index].label : accumulator.lastVisibleLabel,
|
|
16
|
-
measuredHiddenTags: accumulator.measuredHiddenTags + (canBeVisible ? 0 : 1),
|
|
17
|
-
measuredVisibleTags: [...accumulator.measuredVisibleTags, ...canBeVisible ? [potentiallyNonOverflowedValues[index]] : []]
|
|
18
|
-
};
|
|
19
|
-
}, {
|
|
20
|
-
accumulatedWidth: 0,
|
|
21
|
-
lastVisibleElementWidth: 0,
|
|
22
|
-
lastVisibleLabel: "",
|
|
23
|
-
measuredHiddenTags: 0,
|
|
24
|
-
measuredVisibleTags: []
|
|
25
|
-
});
|
|
26
|
-
computeOverflowVars = (tagsWidth, hasOverflow, lastVisibleElementMaxSize, hasHiddenTags, potentiallyNonOverflowedValues, additionnalElementsWidth) => {
|
|
27
|
-
if (tagsWidth.measuredHiddenTags === 1 && tagsWidth.measuredVisibleTags.length === 0) {
|
|
28
|
-
const newOverflowPx = tagsWidth.lastVisibleElementWidth + (tagsWidth.measuredHiddenTags > 1 ? additionnalElementsWidth : 0) - innerWidth;
|
|
6
|
+
function init_helpers() {
|
|
7
|
+
return (init_helpers = __esmMin(() => {
|
|
8
|
+
init_constants();
|
|
9
|
+
getTagsWidth = (toMeasureElementsArray, innerWidth, potentiallyNonOverflowedValues) => toMeasureElementsArray.reduce((accumulator, currentValue, index) => {
|
|
10
|
+
const elementWidth = currentValue.offsetWidth;
|
|
11
|
+
const newAccumulatedWidth = accumulator.accumulatedWidth + elementWidth + SIZES_TAG.gap;
|
|
12
|
+
const canBeVisible = newAccumulatedWidth <= innerWidth;
|
|
29
13
|
return {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
accumulatedWidth: canBeVisible ? newAccumulatedWidth : accumulator.accumulatedWidth,
|
|
15
|
+
lastVisibleElementWidth: canBeVisible ? elementWidth : accumulator.lastVisibleElementWidth,
|
|
16
|
+
lastVisibleLabel: canBeVisible ? potentiallyNonOverflowedValues[index].label : accumulator.lastVisibleLabel,
|
|
17
|
+
measuredHiddenTags: accumulator.measuredHiddenTags + (canBeVisible ? 0 : 1),
|
|
18
|
+
measuredVisibleTags: [...accumulator.measuredVisibleTags, ...canBeVisible ? [potentiallyNonOverflowedValues[index]] : []]
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
accumulatedWidth: 0,
|
|
22
|
+
lastVisibleElementWidth: 0,
|
|
23
|
+
lastVisibleLabel: "",
|
|
24
|
+
measuredHiddenTags: 0,
|
|
25
|
+
measuredVisibleTags: []
|
|
26
|
+
});
|
|
27
|
+
computeOverflowVars = (tagsWidth, hasOverflow, lastVisibleElementMaxSize, hasHiddenTags, potentiallyNonOverflowedValues, additionnalElementsWidth) => {
|
|
28
|
+
if (tagsWidth.measuredHiddenTags === 1 && tagsWidth.measuredVisibleTags.length === 0) {
|
|
29
|
+
const newOverflowPx = tagsWidth.lastVisibleElementWidth + (tagsWidth.measuredHiddenTags > 1 ? additionnalElementsWidth : 0) - innerWidth;
|
|
30
|
+
return {
|
|
31
|
+
overflowAmount: 0,
|
|
32
|
+
nonOverflowedValues: [potentiallyNonOverflowedValues[0]],
|
|
33
|
+
lastElementMaxWidth: tagsWidth.lastVisibleElementWidth - newOverflowPx,
|
|
34
|
+
hasOverflow: true
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
if (hasOverflow && hasHiddenTags && (lastVisibleElementMaxSize > 65 || tagsWidth.measuredVisibleTags.length === 1 && lastVisibleElementMaxSize > 65) && typeof tagsWidth.lastVisibleLabel === "string") return {
|
|
38
|
+
overflowAmount: tagsWidth.measuredHiddenTags,
|
|
39
|
+
nonOverflowedValues: tagsWidth.measuredVisibleTags,
|
|
40
|
+
lastElementMaxWidth: lastVisibleElementMaxSize,
|
|
33
41
|
hasOverflow: true
|
|
34
42
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
return {
|
|
49
|
-
overflowAmount: tagsWidth.measuredHiddenTags,
|
|
50
|
-
nonOverflowedValues: tagsWidth.measuredVisibleTags,
|
|
51
|
-
lastElementMaxWidth: lastVisibleElementMaxSize,
|
|
52
|
-
hasOverflow: false
|
|
43
|
+
if (hasOverflow && hasHiddenTags) return {
|
|
44
|
+
overflowAmount: tagsWidth.measuredHiddenTags + 1,
|
|
45
|
+
nonOverflowedValues: tagsWidth.measuredVisibleTags.slice(0, -1),
|
|
46
|
+
lastElementMaxWidth: 0,
|
|
47
|
+
hasOverflow: false
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
overflowAmount: tagsWidth.measuredHiddenTags,
|
|
51
|
+
nonOverflowedValues: tagsWidth.measuredVisibleTags,
|
|
52
|
+
lastElementMaxWidth: lastVisibleElementMaxSize,
|
|
53
|
+
hasOverflow: false
|
|
54
|
+
};
|
|
53
55
|
};
|
|
54
|
-
|
|
55
|
-
computeSelectedDataMultiselect = (closestOption, options, selectedData) => ({
|
|
56
|
-
computedData: {
|
|
57
|
-
clickedOption: closestOption,
|
|
58
|
-
group: Array.isArray(options) ? void 0 : Object.keys(options).find((group) => options[group].includes(closestOption)),
|
|
59
|
-
type: "selectOption"
|
|
60
|
-
},
|
|
61
|
-
onChangeData: selectedData.selectedValues.includes(closestOption.value) ? selectedData.selectedValues : [...selectedData.selectedValues, closestOption.value]
|
|
62
|
-
});
|
|
63
|
-
computeSelectedDataSingleSelect = (closestOption, selectedData) => {
|
|
64
|
-
var _selectedData$selecte;
|
|
65
|
-
return {
|
|
56
|
+
computeSelectedDataMultiselect = (closestOption, options, selectedData) => ({
|
|
66
57
|
computedData: {
|
|
67
58
|
clickedOption: closestOption,
|
|
59
|
+
group: Array.isArray(options) ? void 0 : Object.keys(options).find((group) => options[group].includes(closestOption)),
|
|
68
60
|
type: "selectOption"
|
|
69
61
|
},
|
|
70
|
-
onChangeData:
|
|
62
|
+
onChangeData: selectedData.selectedValues.includes(closestOption.value) ? selectedData.selectedValues : [...selectedData.selectedValues, closestOption.value]
|
|
63
|
+
});
|
|
64
|
+
computeSelectedDataSingleSelect = (closestOption, selectedData) => {
|
|
65
|
+
var _selectedData$selecte;
|
|
66
|
+
return {
|
|
67
|
+
computedData: {
|
|
68
|
+
clickedOption: closestOption,
|
|
69
|
+
type: "selectOption"
|
|
70
|
+
},
|
|
71
|
+
onChangeData: (_selectedData$selecte = selectedData.selectedValues[0]) !== null && _selectedData$selecte !== void 0 ? _selectedData$selecte : ""
|
|
72
|
+
};
|
|
71
73
|
};
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
+
}))();
|
|
75
|
+
}
|
|
74
76
|
|
|
75
77
|
//#endregion
|
|
76
78
|
init_helpers();
|
|
@@ -2,19 +2,21 @@ import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/SelectInput/constants.ts
|
|
4
4
|
var OPTION_SELECTOR, SIZES_TAG, INPUT_SIZE_HEIGHT;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
5
|
+
function init_constants() {
|
|
6
|
+
return (init_constants = __esmMin(() => {
|
|
7
|
+
OPTION_SELECTOR = "#items > div[role=\"option\"]:not([aria-disabled=\"true\"]), #add-option";
|
|
8
|
+
SIZES_TAG = {
|
|
9
|
+
gap: 8,
|
|
10
|
+
paddings: 16,
|
|
11
|
+
plusTag: 48
|
|
12
|
+
};
|
|
13
|
+
INPUT_SIZE_HEIGHT = {
|
|
14
|
+
large: "600",
|
|
15
|
+
medium: "500",
|
|
16
|
+
small: "400"
|
|
17
|
+
};
|
|
18
|
+
}))();
|
|
19
|
+
}
|
|
18
20
|
|
|
19
21
|
//#endregion
|
|
20
22
|
init_constants();
|
|
@@ -2,14 +2,16 @@ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/SelectInput/findOptionInOptions.ts
|
|
4
4
|
var findOptionInOptions;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
5
|
+
function init_findOptionInOptions() {
|
|
6
|
+
return (init_findOptionInOptions = __esmMin(() => {
|
|
7
|
+
findOptionInOptions = (options, optionValue) => {
|
|
8
|
+
let flatOptions = [];
|
|
9
|
+
if (Array.isArray(options)) flatOptions = options;
|
|
10
|
+
else flatOptions = Object.keys(options).flatMap((group) => options[group]);
|
|
11
|
+
return flatOptions.find((option) => option.value === optionValue);
|
|
12
|
+
};
|
|
13
|
+
}))();
|
|
14
|
+
}
|
|
13
15
|
|
|
14
16
|
//#endregion
|
|
15
17
|
init_findOptionInOptions();
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
import type { ComponentProps,
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import type { BaseFormComponentProps } from '../../types';
|
|
2
3
|
import type { Popup } from '../Popup';
|
|
3
4
|
import type { DataType } from './types';
|
|
4
|
-
type SelectInputProps<IsMulti extends undefined | boolean = false> = {
|
|
5
|
-
/**
|
|
6
|
-
* Input name
|
|
7
|
-
*/
|
|
8
|
-
name?: string;
|
|
5
|
+
type SelectInputProps<IsMulti extends undefined | boolean = false> = BaseFormComponentProps<HTMLDivElement> & {
|
|
9
6
|
/**
|
|
10
7
|
* Place holder when no value defined
|
|
11
8
|
*/
|
|
12
9
|
placeholder?: string;
|
|
13
10
|
/**
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
placeholderSearch?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Label of the component
|
|
11
|
+
* Whether the component in readOnly
|
|
19
12
|
*/
|
|
20
|
-
|
|
13
|
+
readOnly?: boolean;
|
|
21
14
|
/**
|
|
22
|
-
*
|
|
15
|
+
* When searchable, placeholder when no value is searched
|
|
23
16
|
*/
|
|
24
|
-
|
|
17
|
+
placeholderSearch?: string;
|
|
25
18
|
/**
|
|
26
19
|
* Selectable options
|
|
27
20
|
*/
|
|
@@ -30,14 +23,6 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
|
|
|
30
23
|
* Message to show when no option available
|
|
31
24
|
*/
|
|
32
25
|
emptyState?: ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the component in disabled
|
|
35
|
-
*/
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Whether the component in readOnly
|
|
39
|
-
*/
|
|
40
|
-
readOnly?: boolean;
|
|
41
26
|
/**
|
|
42
27
|
* Whether it is possible to clear the search input
|
|
43
28
|
*/
|
|
@@ -46,10 +31,6 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
|
|
|
46
31
|
* Size of the input
|
|
47
32
|
*/
|
|
48
33
|
size?: 'small' | 'medium' | 'large';
|
|
49
|
-
/**
|
|
50
|
-
* Whether field is required
|
|
51
|
-
*/
|
|
52
|
-
required?: boolean;
|
|
53
34
|
/**
|
|
54
35
|
* More information regarding/description ofs the selectInput
|
|
55
36
|
*/
|
|
@@ -120,7 +101,6 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
|
|
|
120
101
|
*/
|
|
121
102
|
value?: IsMulti extends true ? string[] : string;
|
|
122
103
|
onChange?: IsMulti extends true ? (value: string[]) => void : (value: string) => void;
|
|
123
|
-
'data-testid'?: string;
|
|
124
104
|
/**
|
|
125
105
|
* In some cases, when the space is limited, you will need to change the `portalTarget` of the dropdown for a higher parent element.
|
|
126
106
|
* If you don't know which element to target, you can use `document.body`.
|
|
@@ -133,8 +113,8 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
|
|
|
133
113
|
onOpen?: () => void;
|
|
134
114
|
groupError?: Record<string, ReactNode>;
|
|
135
115
|
groupEmptyState?: Record<string, ReactNode>;
|
|
136
|
-
}
|
|
137
|
-
export declare function SelectInput<IsMulti extends undefined | boolean>({
|
|
116
|
+
};
|
|
117
|
+
export declare function SelectInput<IsMulti extends undefined | boolean>({ 'aria-describedby': ariaDescribedBy, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'data-testid': dataTestId, addOption, autofocus, className, clearable, descriptionDirection, disabled, dropdownAlign, emptyState, error, footer, groupEmptyState, groupError, helper, id, isLoading, label, labelDescription, loadMore, multiselect, name, onBlur, onChange, onFocus, onOpen, optionalInfoPlacement, options, placeholder, placeholderSearch, portalTarget, readOnly, required, selectAll, selectAllGroup, size, style, success, tooltip, value, }: SelectInputProps<IsMulti>): import("react").JSX.Element;
|
|
138
118
|
export declare namespace SelectInput {
|
|
139
119
|
var displayName: string;
|
|
140
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectInput/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectInput/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAGzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAKrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGvC,KAAK,gBAAgB,CAAC,OAAO,SAAS,SAAS,GAAG,OAAO,GAAG,KAAK,IAAI,sBAAsB,CAAC,cAAc,CAAC,GAAG;IAC5G;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAA;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IACvC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,GAAG,SAAS,CAAA;IAC/D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAA;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtD;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC,CAAA;IACrD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,SAAS,IAAI,GAAG,MAAM,EAAE,GAAG,MAAM,CAAA;IAChD,QAAQ,CAAC,EAAE,OAAO,SAAS,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrF;;;OAGG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,cAAc,CAAC,CAAA;IAC3D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;CAC5C,CAAA;oCAI2B,OAAO,SAAS,SAAS,GAAG,OAAO,EAAE,EAC/D,kBAAkB,EAAE,eAAe,EACnC,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,aAAa,EAAE,UAAU,EACzB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAiB,EACjB,oBAA+B,EAC/B,QAAgB,EAChB,aAAa,EACb,UAAU,EACV,KAAK,EACL,MAAM,EACN,eAAe,EACf,UAAU,EACV,MAAM,EACN,EAAE,EACF,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACR,WAAmB,EACnB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,qBAA+B,EAC/B,OAAO,EACP,WAA2B,EAC3B,iBAAoC,EACpC,YAAY,EACZ,QAAgB,EAChB,QAAgB,EAChB,SAAS,EACT,cAAsB,EACtB,IAAc,EACd,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,GACN,EAAE,gBAAgB,CAAC,OAAO,CAAC"}
|