@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,145 +1,111 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { forwardRef, useId } from "react";
|
|
5
4
|
import { Row } from "../Row/index.js";
|
|
6
5
|
import { Stack } from "../Stack/index.js";
|
|
7
6
|
import { Text } from "../Text/index.js";
|
|
8
7
|
import { Tooltip } from "../Tooltip/index.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
import { label, toggle, checkbox } from "./styles.css.js";
|
|
9
|
+
const Toggle = forwardRef(
|
|
10
|
+
({
|
|
11
|
+
checked,
|
|
12
|
+
disabled = false,
|
|
13
|
+
id,
|
|
14
|
+
name,
|
|
15
|
+
onChange,
|
|
16
|
+
size = "large",
|
|
17
|
+
tooltip,
|
|
18
|
+
labelPosition = "right",
|
|
19
|
+
label: label$1,
|
|
20
|
+
helper,
|
|
21
|
+
required,
|
|
22
|
+
className,
|
|
23
|
+
"data-testid": dataTestId,
|
|
24
|
+
value,
|
|
25
|
+
error,
|
|
26
|
+
"aria-label": ariaLabel,
|
|
27
|
+
style
|
|
28
|
+
}, ref) => {
|
|
29
|
+
const uniqueId = useId();
|
|
30
|
+
return /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxs(
|
|
31
|
+
"label",
|
|
32
|
+
{
|
|
33
|
+
"aria-disabled": disabled,
|
|
34
|
+
className: `${className ? `${className} ` : ""}${label({
|
|
35
|
+
disabled,
|
|
36
|
+
labelPosition
|
|
37
|
+
})}`,
|
|
38
|
+
"data-testid": dataTestId,
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsxs(Stack, { alignItems: "baseline", gap: 0.25, children: [
|
|
41
|
+
label$1 ? /* @__PURE__ */ jsxs(Row, { alignItems: "center", gap: 1, templateColumns: "auto 1fr", children: [
|
|
42
|
+
typeof label$1 === "string" ? /* @__PURE__ */ jsx(
|
|
43
|
+
Text,
|
|
44
|
+
{
|
|
45
|
+
as: "span",
|
|
46
|
+
prominence: "default",
|
|
47
|
+
sentiment: "neutral",
|
|
48
|
+
variant: size === "large" ? "body" : "bodySmall",
|
|
49
|
+
children: label$1
|
|
50
|
+
}
|
|
51
|
+
) : label$1,
|
|
52
|
+
required ? /* @__PURE__ */ jsx(Text, { as: "sup", sentiment: "danger", variant: "body", children: "*" }) : null
|
|
53
|
+
] }) : null,
|
|
54
|
+
typeof error === "string" ? /* @__PURE__ */ jsx(
|
|
55
|
+
Text,
|
|
56
|
+
{
|
|
57
|
+
as: "p",
|
|
58
|
+
disabled,
|
|
59
|
+
prominence: "default",
|
|
60
|
+
sentiment: "danger",
|
|
61
|
+
variant: "bodySmall",
|
|
62
|
+
children: error
|
|
63
|
+
}
|
|
64
|
+
) : null,
|
|
65
|
+
helper && !error ? /* @__PURE__ */ jsx(
|
|
66
|
+
Text,
|
|
67
|
+
{
|
|
68
|
+
as: "p",
|
|
69
|
+
prominence: "weak",
|
|
70
|
+
sentiment: "neutral",
|
|
71
|
+
variant: "caption",
|
|
72
|
+
children: helper
|
|
73
|
+
}
|
|
74
|
+
) : null
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
className: toggle({
|
|
80
|
+
disabled,
|
|
81
|
+
error: !!error,
|
|
82
|
+
size
|
|
83
|
+
}),
|
|
84
|
+
children: /* @__PURE__ */ jsx(
|
|
85
|
+
"input",
|
|
86
|
+
{
|
|
87
|
+
"aria-invalid": !!error,
|
|
88
|
+
"aria-label": ariaLabel,
|
|
89
|
+
checked,
|
|
90
|
+
className: checkbox,
|
|
91
|
+
disabled,
|
|
92
|
+
id: id ?? uniqueId,
|
|
93
|
+
name,
|
|
94
|
+
onChange,
|
|
95
|
+
ref,
|
|
96
|
+
required,
|
|
97
|
+
style,
|
|
98
|
+
type: "checkbox",
|
|
99
|
+
value
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) });
|
|
23
107
|
}
|
|
24
|
-
|
|
25
|
-
const StyledCheckbox = /* @__PURE__ */ _styled("input", process.env.NODE_ENV === "production" ? {
|
|
26
|
-
target: "e1wstm612"
|
|
27
|
-
} : {
|
|
28
|
-
target: "e1wstm612",
|
|
29
|
-
label: "StyledCheckbox"
|
|
30
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
31
|
-
name: "p9zju0",
|
|
32
|
-
styles: "position:absolute;opacity:0;top:0;left:0;width:100%;height:100%;cursor:pointer;&[disabled]{cursor:not-allowed;}"
|
|
33
|
-
} : {
|
|
34
|
-
name: "p9zju0",
|
|
35
|
-
styles: "position:absolute;opacity:0;top:0;left:0;width:100%;height:100%;cursor:pointer;&[disabled]{cursor:not-allowed;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1RvZ2dsZS9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEJtQyIsIm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ICAgICAgICAgICAgPFJvdyBhbGlnbkl0ZW1zPVwiY2VudGVyXCIgZ2FwPXsxfSB0ZW1wbGF0ZUNvbHVtbnM9XCJhdXRvIDFmclwiPlxuICAgICAgICAgICAgICAgIHt0eXBlb2YgbGFiZWwgPT09ICdzdHJpbmcnID8gKFxuICAgICAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgICAgICAgICAgcHJvbWluZW5jZT1cImRlZmF1bHRcIlxuICAgICAgICAgICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgICAgICAgICAgdmFyaWFudD17c2l6ZSA9PT0gJ2xhcmdlJyA/ICdib2R5JyA6ICdib2R5U21hbGwnfVxuICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICB7bGFiZWx9XG4gICAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgKSA6IChcbiAgICAgICAgICAgICAgICAgIGxhYmVsXG4gICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICB7cmVxdWlyZWQgPyAoXG4gICAgICAgICAgICAgICAgICA8VGV4dCBhcz1cInN1cFwiIHNlbnRpbWVudD1cImRhbmdlclwiIHZhcmlhbnQ9XCJib2R5XCI+XG4gICAgICAgICAgICAgICAgICAgICpcbiAgICAgICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgICAgPC9Sb3c+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgIHt0eXBlb2YgZXJyb3IgPT09ICdzdHJpbmcnID8gKFxuICAgICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICAgIGFzPVwicFwiXG4gICAgICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgICAgIHByb21pbmVuY2U9XCJkZWZhdWx0XCJcbiAgICAgICAgICAgICAgICBzZW50aW1lbnQ9XCJkYW5nZXJcIlxuICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U21hbGxcIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge2Vycm9yfVxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgIHtoZWxwZXIgJiYgIWVycm9yID8gKFxuICAgICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICAgIGFzPVwicFwiXG4gICAgICAgICAgICAgICAgcHJvbWluZW5jZT1cIndlYWtcIlxuICAgICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJjYXB0aW9uXCJcbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtoZWxwZXJ9XG4gICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIDwvU3RhY2s+XG4gICAgICAgICAgPFN0eWxlZFRvZ2dsZVxuICAgICAgICAgICAgZGF0YS1kaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICBkYXRhLWVycm9yPXshIWVycm9yfVxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICA8U3R5bGVkQ2hlY2tib3hcbiAgICAgICAgICAgICAgYXJpYS1pbnZhbGlkPXshIWVycm9yfVxuICAgICAgICAgICAgICBhcmlhLWxhYmVsPXthcmlhTGFiZWx9XG4gICAgICAgICAgICAgIGNoZWNrZWQ9e2NoZWNrZWR9XG4gICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgaWQ9e2lkID8/IHVuaXF1ZUlkfVxuICAgICAgICAgICAgICBuYW1lPXtuYW1lfVxuICAgICAgICAgICAgICBvbkNoYW5nZT17b25DaGFuZ2V9XG4gICAgICAgICAgICAgIHJlZj17cmVmfVxuICAgICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICAgIHR5cGU9XCJjaGVja2JveFwiXG4gICAgICAgICAgICAgIHZhbHVlPXt2YWx1ZX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9TdHlsZWRUb2dnbGU+XG4gICAgICAgIDwvU3R5bGVkTGFiZWw+XG4gICAgICA8L1Rvb2x0aXA+XG4gICAgKVxuICB9LFxuKVxuIl19 */",
|
|
36
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
37
|
-
});
|
|
38
|
-
const StyledToggle = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
|
|
39
|
-
target: "e1wstm611"
|
|
40
|
-
} : {
|
|
41
|
-
target: "e1wstm611",
|
|
42
|
-
label: "StyledToggle"
|
|
43
|
-
})("box-sizing:content-box;outline:none;overflow:hidden;display:flex;align-items:center;border:none;border-radius:", ({
|
|
44
|
-
theme
|
|
45
|
-
}) => theme.radii.xlarge, ";position:relative;transition:all 300ms;background-color:", ({
|
|
46
|
-
theme
|
|
47
|
-
}) => theme.colors.neutral.backgroundStrong, ";width:", ({
|
|
48
|
-
size,
|
|
49
|
-
theme
|
|
50
|
-
}) => theme.sizing[SIZES[size].width], ";height:", ({
|
|
51
|
-
size,
|
|
52
|
-
theme
|
|
53
|
-
}) => theme.sizing[SIZES[size].height], ";&:hover{background-color:", ({
|
|
54
|
-
theme
|
|
55
|
-
}) => theme.colors.neutral.backgroundStrongHover, ';}&:after{content:"";position:absolute;top:', ({
|
|
56
|
-
size,
|
|
57
|
-
theme
|
|
58
|
-
}) => `calc(${theme.sizing[SIZES[size].height]} / 2 - ${theme.sizing[SIZES[size].ball]} / 2)`, ";left:5px;width:", ({
|
|
59
|
-
size,
|
|
60
|
-
theme
|
|
61
|
-
}) => theme.sizing[SIZES[size].ball], ";height:", ({
|
|
62
|
-
size,
|
|
63
|
-
theme
|
|
64
|
-
}) => theme.sizing[SIZES[size].ball], ";border-radius:", ({
|
|
65
|
-
theme
|
|
66
|
-
}) => theme.radii.circle, ";background-color:", ({
|
|
67
|
-
theme
|
|
68
|
-
}) => theme.colors.neutral.background, ";transition:all 300ms;}&:focus-within,&:focus{box-shadow:", ({
|
|
69
|
-
theme
|
|
70
|
-
}) => theme.shadows.focusNeutral, ';}&[data-disabled="false"]:active:after{width:', ({
|
|
71
|
-
size,
|
|
72
|
-
theme
|
|
73
|
-
}) => `calc(${theme.sizing[SIZES[size].ball]} * 1.3775)`, ";}&:has(:checked){color:", ({
|
|
74
|
-
theme
|
|
75
|
-
}) => theme.colors.neutral.textStrong, ";background-color:", ({
|
|
76
|
-
theme
|
|
77
|
-
}) => theme.colors.primary.backgroundStrong, ";&:hover{background-color:", ({
|
|
78
|
-
theme
|
|
79
|
-
}) => theme.colors.primary.backgroundStrongHover, ";}&:after{left:calc(100% - 5px);transform:translateX(-100%);}&:focus-within,&:focus{box-shadow:", ({
|
|
80
|
-
theme
|
|
81
|
-
}) => theme.shadows.focusPrimary, ';}}&[data-disabled="true"]{background:', ({
|
|
82
|
-
theme
|
|
83
|
-
}) => theme.colors.neutral.backgroundStrongDisabled, ";&:has(:checked){background:", ({
|
|
84
|
-
theme
|
|
85
|
-
}) => theme.colors.primary.backgroundStrongDisabled, ';}}&[data-error="true"]{background-color:', ({
|
|
86
|
-
theme
|
|
87
|
-
}) => theme.colors.danger.background, ";&:focus-within,&:focus{box-shadow:", ({
|
|
88
|
-
theme
|
|
89
|
-
}) => theme.shadows.focusDanger, ";}&:has(:checked){background-color:", ({
|
|
90
|
-
theme
|
|
91
|
-
}) => theme.colors.danger.backgroundStrong, ';}&[data-disabled="true"]{background-color:', ({
|
|
92
|
-
theme
|
|
93
|
-
}) => theme.colors.danger.backgroundDisabled, ";&:has(:checked){background-color:", ({
|
|
94
|
-
theme
|
|
95
|
-
}) => theme.colors.danger.backgroundStrongDisabled, ";}}}" + (process.env.NODE_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3NOYW1lfVxuICAgICAgICAgIGRhdGEtdGVzdGlkPXtkYXRhVGVzdElkfVxuICAgICAgICAgIGxhYmVsUG9zaXRpb249e2xhYmVsUG9zaXRpb259XG4gICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgPlxuICAgICAgICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiYmFzZWxpbmVcIiBnYXA9ezAuMjV9PlxuICAgICAgICAgICAge2xhYmVsID8gKFxuICAgICAgICAgICAgICA8Um93IGFsaWduSXRlbXM9XCJjZW50ZXJcIiBnYXA9ezF9IHRlbXBsYXRlQ29sdW1ucz1cImF1dG8gMWZyXCI+XG4gICAgICAgICAgICAgICAge3R5cGVvZiBsYWJlbCA9PT0gJ3N0cmluZycgPyAoXG4gICAgICAgICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwiZGVmYXVsdFwiXG4gICAgICAgICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICAgICAgICB2YXJpYW50PXtzaXplID09PSAnbGFyZ2UnID8gJ2JvZHknIDogJ2JvZHlTbWFsbCd9XG4gICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHtsYWJlbH1cbiAgICAgICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICAgICApIDogKFxuICAgICAgICAgICAgICAgICAgbGFiZWxcbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIHtyZXF1aXJlZCA/IChcbiAgICAgICAgICAgICAgICAgIDxUZXh0IGFzPVwic3VwXCIgc2VudGltZW50PVwiZGFuZ2VyXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAgICAgICAgICAgICAgKlxuICAgICAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAgICA8L1Jvdz5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAge3R5cGVvZiBlcnJvciA9PT0gJ3N0cmluZycgPyAoXG4gICAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgICAgcHJvbWluZW5jZT1cImRlZmF1bHRcIlxuICAgICAgICAgICAgICAgIHNlbnRpbWVudD1cImRhbmdlclwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImJvZHlTbWFsbFwiXG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7ZXJyb3J9XG4gICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAge2hlbHBlciAmJiAhZXJyb3IgPyAoXG4gICAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge2hlbHBlcn1cbiAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgICA8U3R5bGVkVG9nZ2xlXG4gICAgICAgICAgICBkYXRhLWRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgIGRhdGEtZXJyb3I9eyEhZXJyb3J9XG4gICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxTdHlsZWRDaGVja2JveFxuICAgICAgICAgICAgICBhcmlhLWludmFsaWQ9eyEhZXJyb3J9XG4gICAgICAgICAgICAgIGFyaWEtbGFiZWw9e2FyaWFMYWJlbH1cbiAgICAgICAgICAgICAgY2hlY2tlZD17Y2hlY2tlZH1cbiAgICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgICBpZD17aWQgPz8gdW5pcXVlSWR9XG4gICAgICAgICAgICAgIG5hbWU9e25hbWV9XG4gICAgICAgICAgICAgIG9uQ2hhbmdlPXtvbkNoYW5nZX1cbiAgICAgICAgICAgICAgcmVmPXtyZWZ9XG4gICAgICAgICAgICAgIHJlcXVpcmVkPXtyZXF1aXJlZH1cbiAgICAgICAgICAgICAgdHlwZT1cImNoZWNrYm94XCJcbiAgICAgICAgICAgICAgdmFsdWU9e3ZhbHVlfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L1N0eWxlZFRvZ2dsZT5cbiAgICAgICAgPC9TdHlsZWRMYWJlbD5cbiAgICAgIDwvVG9vbHRpcD5cbiAgICApXG4gIH0sXG4pXG4iXX0= */"));
|
|
96
|
-
const StyledLabel = /* @__PURE__ */ _styled("label", process.env.NODE_ENV === "production" ? {
|
|
97
|
-
target: "e1wstm610"
|
|
98
|
-
} : {
|
|
99
|
-
target: "e1wstm610",
|
|
100
|
-
label: "StyledLabel"
|
|
101
|
-
})("display:flex;gap:", ({
|
|
102
|
-
theme
|
|
103
|
-
}) => theme.space["1"], ";align-items:start;width:fit-content;cursor:pointer;flex-direction:", ({
|
|
104
|
-
labelPosition
|
|
105
|
-
}) => labelPosition === "left" ? "row" : "row-reverse", ";&:active ", StyledToggle, "[data-disabled='false']:after{width:", ({
|
|
106
|
-
size,
|
|
107
|
-
theme
|
|
108
|
-
}) => `calc(${theme.sizing[SIZES[size].ball]} * 1.3775)`, ';}&[aria-disabled="true"]{cursor:not-allowed;color:', ({
|
|
109
|
-
theme
|
|
110
|
-
}) => theme.colors.neutral.textDisabled, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uI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AgICAgICAgIGxhYmVsUG9zaXRpb249e2xhYmVsUG9zaXRpb259XG4gICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgPlxuICAgICAgICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiYmFzZWxpbmVcIiBnYXA9ezAuMjV9PlxuICAgICAgICAgICAge2xhYmVsID8gKFxuICAgICAgICAgICAgICA8Um93IGFsaWduSXRlbXM9XCJjZW50ZXJcIiBnYXA9ezF9IHRlbXBsYXRlQ29sdW1ucz1cImF1dG8gMWZyXCI+XG4gICAgICAgICAgICAgICAge3R5cGVvZiBsYWJlbCA9PT0gJ3N0cmluZycgPyAoXG4gICAgICAgICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwiZGVmYXVsdFwiXG4gICAgICAgICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICAgICAgICB2YXJpYW50PXtzaXplID09PSAnbGFyZ2UnID8gJ2JvZHknIDogJ2JvZHlTbWFsbCd9XG4gICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHtsYWJlbH1cbiAgICAgICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICAgICApIDogKFxuICAgICAgICAgICAgICAgICAgbGFiZWxcbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIHtyZXF1aXJlZCA/IChcbiAgICAgICAgICAgICAgICAgIDxUZXh0IGFzPVwic3VwXCIgc2VudGltZW50PVwiZGFuZ2VyXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAgICAgICAgICAgICAgKlxuICAgICAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAgICA8L1Jvdz5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAge3R5cGVvZiBlcnJvciA9PT0gJ3N0cmluZycgPyAoXG4gICAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgICAgcHJvbWluZW5jZT1cImRlZmF1bHRcIlxuICAgICAgICAgICAgICAgIHNlbnRpbWVudD1cImRhbmdlclwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImJvZHlTbWFsbFwiXG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7ZXJyb3J9XG4gICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAge2hlbHBlciAmJiAhZXJyb3IgPyAoXG4gICAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgICAgYXM9XCJwXCJcbiAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge2hlbHBlcn1cbiAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgICA8U3R5bGVkVG9nZ2xlXG4gICAgICAgICAgICBkYXRhLWRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgIGRhdGEtZXJyb3I9eyEhZXJyb3J9XG4gICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxTdHlsZWRDaGVja2JveFxuICAgICAgICAgICAgICBhcmlhLWludmFsaWQ9eyEhZXJyb3J9XG4gICAgICAgICAgICAgIGFyaWEtbGFiZWw9e2FyaWFMYWJlbH1cbiAgICAgICAgICAgICAgY2hlY2tlZD17Y2hlY2tlZH1cbiAgICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgICBpZD17aWQgPz8gdW5pcXVlSWR9XG4gICAgICAgICAgICAgIG5hbWU9e25hbWV9XG4gICAgICAgICAgICAgIG9uQ2hhbmdlPXtvbkNoYW5nZX1cbiAgICAgICAgICAgICAgcmVmPXtyZWZ9XG4gICAgICAgICAgICAgIHJlcXVpcmVkPXtyZXF1aXJlZH1cbiAgICAgICAgICAgICAgdHlwZT1cImNoZWNrYm94XCJcbiAgICAgICAgICAgICAgdmFsdWU9e3ZhbHVlfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L1N0eWxlZFRvZ2dsZT5cbiAgICAgICAgPC9TdHlsZWRMYWJlbD5cbiAgICAgIDwvVG9vbHRpcD5cbiAgICApXG4gIH0sXG4pXG4iXX0= */"));
|
|
111
|
-
const Toggle = forwardRef(({
|
|
112
|
-
checked,
|
|
113
|
-
disabled = false,
|
|
114
|
-
id,
|
|
115
|
-
name,
|
|
116
|
-
onChange,
|
|
117
|
-
size = "large",
|
|
118
|
-
tooltip,
|
|
119
|
-
labelPosition = "right",
|
|
120
|
-
label,
|
|
121
|
-
helper,
|
|
122
|
-
required,
|
|
123
|
-
className,
|
|
124
|
-
"data-testid": dataTestId,
|
|
125
|
-
value,
|
|
126
|
-
error,
|
|
127
|
-
"aria-label": ariaLabel
|
|
128
|
-
}, ref) => {
|
|
129
|
-
const uniqueId = useId();
|
|
130
|
-
return /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxs(StyledLabel, { "aria-disabled": disabled, className, "data-testid": dataTestId, labelPosition, size, children: [
|
|
131
|
-
/* @__PURE__ */ jsxs(Stack, { alignItems: "baseline", gap: 0.25, children: [
|
|
132
|
-
label ? /* @__PURE__ */ jsxs(Row, { alignItems: "center", gap: 1, templateColumns: "auto 1fr", children: [
|
|
133
|
-
typeof label === "string" ? /* @__PURE__ */ jsx(Text, { as: "span", prominence: "default", sentiment: "neutral", variant: size === "large" ? "body" : "bodySmall", children: label }) : label,
|
|
134
|
-
required ? /* @__PURE__ */ jsx(Text, { as: "sup", sentiment: "danger", variant: "body", children: "*" }) : null
|
|
135
|
-
] }) : null,
|
|
136
|
-
typeof error === "string" ? /* @__PURE__ */ jsx(Text, { as: "p", disabled, prominence: "default", sentiment: "danger", variant: "bodySmall", children: error }) : null,
|
|
137
|
-
helper && !error ? /* @__PURE__ */ jsx(Text, { as: "p", prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null
|
|
138
|
-
] }),
|
|
139
|
-
/* @__PURE__ */ jsx(StyledToggle, { "data-disabled": disabled, "data-error": !!error, size, children: /* @__PURE__ */ jsx(StyledCheckbox, { "aria-invalid": !!error, "aria-label": ariaLabel, checked, disabled, id: id ?? uniqueId, name, onChange, ref, required, type: "checkbox", value }) })
|
|
140
|
-
] }) });
|
|
141
|
-
});
|
|
108
|
+
);
|
|
142
109
|
export {
|
|
143
|
-
SIZES,
|
|
144
110
|
Toggle
|
|
145
111
|
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const sizes: {
|
|
2
|
+
large: {
|
|
3
|
+
ball: `var(--${string})`;
|
|
4
|
+
height: `var(--${string})`;
|
|
5
|
+
width: `var(--${string})`;
|
|
6
|
+
};
|
|
7
|
+
small: {
|
|
8
|
+
ball: `var(--${string})`;
|
|
9
|
+
height: `var(--${string})`;
|
|
10
|
+
width: `var(--${string})`;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const toggle: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
14
|
+
size: {
|
|
15
|
+
large: {
|
|
16
|
+
width: `var(--${string})`;
|
|
17
|
+
height: `var(--${string})`;
|
|
18
|
+
selectors: {
|
|
19
|
+
'&:after': {
|
|
20
|
+
width: `var(--${string})`;
|
|
21
|
+
height: `var(--${string})`;
|
|
22
|
+
top: `calc(50% - var(--${string}) / 2)`;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
small: {
|
|
27
|
+
width: `var(--${string})`;
|
|
28
|
+
height: `var(--${string})`;
|
|
29
|
+
selectors: {
|
|
30
|
+
'&:after': {
|
|
31
|
+
width: `var(--${string})`;
|
|
32
|
+
height: `var(--${string})`;
|
|
33
|
+
top: `calc(50% - var(--${string}) / 2)`;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
true: {
|
|
40
|
+
background: `var(--${string})`;
|
|
41
|
+
selectors: {
|
|
42
|
+
'&:hover': {
|
|
43
|
+
background: `var(--${string})`;
|
|
44
|
+
};
|
|
45
|
+
'&:has(input:checked)': {
|
|
46
|
+
color: `var(--${string})`;
|
|
47
|
+
backgroundColor: `var(--${string})`;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
false: {
|
|
52
|
+
selectors: {
|
|
53
|
+
'&:hover': {
|
|
54
|
+
backgroundColor: `var(--${string})`;
|
|
55
|
+
};
|
|
56
|
+
'&:has(input:checked)': {
|
|
57
|
+
color: `var(--${string})`;
|
|
58
|
+
backgroundColor: `var(--${string})`;
|
|
59
|
+
};
|
|
60
|
+
'&:has(input:checked):hover': {
|
|
61
|
+
backgroundColor: `var(--${string})`;
|
|
62
|
+
};
|
|
63
|
+
'&:has(input:checked):focus-within, &:has(input:checked):focus': {
|
|
64
|
+
boxShadow: `var(--${string})`;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
error: {
|
|
70
|
+
true: {
|
|
71
|
+
backgroundColor: `var(--${string})`;
|
|
72
|
+
selectors: {
|
|
73
|
+
'&:hover': {
|
|
74
|
+
background: `var(--${string})`;
|
|
75
|
+
};
|
|
76
|
+
'&:has(input:checked):hover': {
|
|
77
|
+
backgroundColor: `var(--${string})`;
|
|
78
|
+
};
|
|
79
|
+
'&:has(input:checked)': {
|
|
80
|
+
color: `var(--${string})`;
|
|
81
|
+
backgroundColor: `var(--${string})`;
|
|
82
|
+
};
|
|
83
|
+
'&:has(input:checked):focus-within, &:has(input:checked):focus': {
|
|
84
|
+
boxShadow: `var(--${string})`;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
false: {};
|
|
89
|
+
};
|
|
90
|
+
}>;
|
|
91
|
+
export declare const checkbox: string;
|
|
92
|
+
export declare const label: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
93
|
+
labelPosition: {
|
|
94
|
+
left: {
|
|
95
|
+
flexDirection: "row";
|
|
96
|
+
};
|
|
97
|
+
right: {
|
|
98
|
+
flexDirection: "row-reverse";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
disabled: {
|
|
102
|
+
true: {
|
|
103
|
+
cursor: "not-allowed";
|
|
104
|
+
color: `var(--${string})`;
|
|
105
|
+
};
|
|
106
|
+
false: {};
|
|
107
|
+
};
|
|
108
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var toggle = createRuntimeFn({ defaultClassName: "uv_adn1w20", variantClassNames: { size: { large: "uv_adn1w21", small: "uv_adn1w22" }, disabled: { true: "uv_adn1w23", false: "uv_adn1w24" }, error: { true: "uv_adn1w25", false: "uv_adn1w26" } }, defaultVariants: { size: "large", disabled: false, error: false }, compoundVariants: [[{ disabled: true, error: true }, "uv_adn1w27"]] });
|
|
4
|
+
var checkbox = "uv_adn1w28";
|
|
5
|
+
var label = createRuntimeFn({ defaultClassName: "uv_adn1w29", variantClassNames: { labelPosition: { left: "uv_adn1w2a", right: "uv_adn1w2b" }, disabled: { true: "uv_adn1w2c", false: "uv_adn1w2d" } }, defaultVariants: { labelPosition: "right", disabled: false }, compoundVariants: [] });
|
|
6
|
+
export {
|
|
7
|
+
checkbox,
|
|
8
|
+
label,
|
|
9
|
+
toggle
|
|
10
|
+
};
|
|
@@ -6,7 +6,7 @@ type ToggleGroupToggleProps = Omit<ComponentProps<typeof Toggle>, 'onChange' | '
|
|
|
6
6
|
/**
|
|
7
7
|
* ToggleGroup is a component that allows you to group a set of Toggle components together under the same legend.
|
|
8
8
|
*/
|
|
9
|
-
export declare const ToggleGroupToggle: ({ disabled, name, value, label, helper, error, className, "data-testid": dataTestId, }: ToggleGroupToggleProps) => import("
|
|
9
|
+
export declare const ToggleGroupToggle: ({ disabled, name, value, label, helper, error, className, "data-testid": dataTestId, style, }: ToggleGroupToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
type ToggleGroupProps = {
|
|
11
11
|
legend?: string;
|
|
12
12
|
legendDescription?: ReactNode;
|
|
@@ -18,9 +18,9 @@ type ToggleGroupProps = {
|
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
required?: boolean;
|
|
20
20
|
description?: ReactNode;
|
|
21
|
-
} & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'name'>> & Pick<InputHTMLAttributes<HTMLInputElement>, 'required'>;
|
|
21
|
+
} & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'name'>> & Pick<InputHTMLAttributes<HTMLInputElement>, 'required' | 'style'>;
|
|
22
22
|
export declare const ToggleGroup: {
|
|
23
|
-
({ legend, legendDescription, value, className, helper, error, direction, children, onChange, name, description, required, }: ToggleGroupProps): import("
|
|
24
|
-
Toggle: ({ disabled, name, value, label, helper, error, className, "data-testid": dataTestId, }: ToggleGroupToggleProps) => import("
|
|
23
|
+
({ legend, legendDescription, value, className, helper, error, direction, children, onChange, name, description, required, style, }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
Toggle: ({ disabled, name, value, label, helper, error, className, "data-testid": dataTestId, style, }: ToggleGroupToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
};
|
|
26
26
|
export {};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { useMemo, createContext, useContext } from "react";
|
|
5
4
|
import { Label } from "../Label/index.js";
|
|
6
5
|
import { Stack } from "../Stack/index.js";
|
|
7
6
|
import { Text } from "../Text/index.js";
|
|
8
7
|
import { Toggle } from "../Toggle/index.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import { fieldset } from "./styles.css.js";
|
|
9
|
+
const ToggleGroupContext = createContext(
|
|
10
|
+
void 0
|
|
11
|
+
);
|
|
13
12
|
const ToggleGroupToggle = ({
|
|
14
13
|
disabled,
|
|
15
14
|
name,
|
|
@@ -18,35 +17,33 @@ const ToggleGroupToggle = ({
|
|
|
18
17
|
helper,
|
|
19
18
|
error,
|
|
20
19
|
className,
|
|
21
|
-
"data-testid": dataTestId
|
|
20
|
+
"data-testid": dataTestId,
|
|
21
|
+
style
|
|
22
22
|
}) => {
|
|
23
23
|
const context = useContext(ToggleGroupContext);
|
|
24
24
|
if (!context) {
|
|
25
25
|
throw new Error("ToggleGroup.Toggle can only be used inside a ToggleGroup");
|
|
26
26
|
}
|
|
27
|
-
const {
|
|
28
|
-
groupName,
|
|
29
|
-
onChange,
|
|
30
|
-
groupValues,
|
|
31
|
-
error: contextError
|
|
32
|
-
} = context;
|
|
27
|
+
const { groupName, onChange, groupValues, error: contextError } = context;
|
|
33
28
|
const ToggleName = `${groupName}.${name}`;
|
|
34
29
|
const ToggleValue = `${value}`;
|
|
35
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
Toggle,
|
|
32
|
+
{
|
|
33
|
+
checked: groupValues?.includes(ToggleValue),
|
|
34
|
+
className,
|
|
35
|
+
"data-testid": dataTestId,
|
|
36
|
+
disabled,
|
|
37
|
+
error: error || contextError,
|
|
38
|
+
helper,
|
|
39
|
+
label,
|
|
40
|
+
name: ToggleName,
|
|
41
|
+
onChange,
|
|
42
|
+
style,
|
|
43
|
+
value: ToggleValue
|
|
44
|
+
}
|
|
45
|
+
);
|
|
36
46
|
};
|
|
37
|
-
const FieldSet = /* @__PURE__ */ _styled("fieldset", process.env.NODE_ENV === "production" ? {
|
|
38
|
-
target: "e1qvneex0"
|
|
39
|
-
} : {
|
|
40
|
-
target: "e1qvneex0",
|
|
41
|
-
label: "FieldSet"
|
|
42
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
43
|
-
name: "7o2an9",
|
|
44
|
-
styles: "border:none;padding:0;margin:0"
|
|
45
|
-
} : {
|
|
46
|
-
name: "7o2an9",
|
|
47
|
-
styles: "border:none;padding:0;margin:0/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1RvZ2dsZUdyb3VwL2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvRWdDIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1RvZ2dsZUdyb3VwL2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB0eXBlIHsgQ29tcG9uZW50UHJvcHMsIElucHV0SFRNTEF0dHJpYnV0ZXMsIFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3JlYXRlQ29udGV4dCwgdXNlQ29udGV4dCwgdXNlTWVtbyB9IGZyb20gJ3JlYWN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Z3JvdXBWYWx1ZXM6IHZhbHVlID8/IFtdLFxuICAgICAgb25DaGFuZ2UsXG4gICAgfSksXG4gICAgW25hbWUsIHZhbHVlLCBvbkNoYW5nZSwgZXJyb3JdLFxuICApXG5cbiAgcmV0dXJuIChcbiAgICA8VG9nZ2xlR3JvdXBDb250ZXh0LlByb3ZpZGVyIHZhbHVlPXtjb250ZXh0VmFsdWV9PlxuICAgICAgPFN0YWNrIGdhcD17MX0+XG4gICAgICAgIDxGaWVsZFNldCBjbGFzc05hbWU9e2NsYXNzTmFtZX0+XG4gICAgICAgICAgPFN0YWNrIGdhcD17MS41fT5cbiAgICAgICAgICAgIHtsZWdlbmQgfHwgZGVzY3JpcHRpb24gPyAoXG4gICAgICAgICAgICAgIDxTdGFjayBnYXA9ezAuNX0+XG4gICAgICAgICAgICAgICAge2xlZ2VuZCA/IChcbiAgICAgICAgICAgICAgICAgIDxMYWJlbFxuICAgICAgICAgICAgICAgICAgICBhcz1cImxlZ2VuZFwiXG4gICAgICAgICAgICAgICAgICAgIGxhYmVsRGVzY3JpcHRpb249e2xlZ2VuZERlc2NyaXB0aW9ufVxuICAgICAgICAgICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHtsZWdlbmR9XG4gICAgICAgICAgICAgICAgICA8L0xhYmVsPlxuICAgICAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgICAgICAgIHtkZXNjcmlwdGlvbiA/IChcbiAgICAgICAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgICAgICAgIGFzPXt0eXBlb2YgZGVzY3JpcHRpb24gPT09ICdzdHJpbmcnID8gJ3AnIDogJ2Rpdid9XG4gICAgICAgICAgICAgICAgICAgIHByb21pbmVuY2U9XCJ3ZWFrXCJcbiAgICAgICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U21hbGxcIlxuICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICB7ZGVzY3JpcHRpb259XG4gICAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgICAgIDwvU3RhY2s+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgIDxTdGFjayBkaXJlY3Rpb249e2RpcmVjdGlvbn0gZ2FwPXsyfT5cbiAgICAgICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgICA8L1N0YWNrPlxuICAgICAgICA8L0ZpZWxkU2V0PlxuICAgICAgICB7aGVscGVyID8gKFxuICAgICAgICAgIDxUZXh0IGFzPVwicFwiIHByb21pbmVuY2U9XCJ3ZWFrXCIgc2VudGltZW50PVwibmV1dHJhbFwiIHZhcmlhbnQ9XCJjYXB0aW9uXCI+XG4gICAgICAgICAgICB7aGVscGVyfVxuICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIHtlcnJvciA/IChcbiAgICAgICAgICA8VGV4dCBhcz1cInBcIiBwcm9taW5lbmNlPVwid2Vha1wiIHNlbnRpbWVudD1cImRhbmdlclwiIHZhcmlhbnQ9XCJib2R5U21hbGxcIj5cbiAgICAgICAgICAgIHtlcnJvcn1cbiAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9TdGFjaz5cbiAgICA8L1RvZ2dsZUdyb3VwQ29udGV4dC5Qcm92aWRlcj5cbiAgKVxufVxuXG5Ub2dnbGVHcm91cC5Ub2dnbGUgPSBUb2dnbGVHcm91cFRvZ2dsZVxuIl19 */",
|
|
48
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
49
|
-
});
|
|
50
47
|
const ToggleGroup = ({
|
|
51
48
|
legend,
|
|
52
49
|
legendDescription,
|
|
@@ -59,22 +56,50 @@ const ToggleGroup = ({
|
|
|
59
56
|
onChange,
|
|
60
57
|
name,
|
|
61
58
|
description,
|
|
62
|
-
required = false
|
|
59
|
+
required = false,
|
|
60
|
+
style
|
|
63
61
|
}) => {
|
|
64
|
-
const contextValue = useMemo(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
const contextValue = useMemo(
|
|
63
|
+
() => ({
|
|
64
|
+
error: !!error,
|
|
65
|
+
groupName: name,
|
|
66
|
+
groupValues: value ?? [],
|
|
67
|
+
onChange
|
|
68
|
+
}),
|
|
69
|
+
[name, value, onChange, error]
|
|
70
|
+
);
|
|
70
71
|
return /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(Stack, { gap: 1, children: [
|
|
71
|
-
/* @__PURE__ */ jsx(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
/* @__PURE__ */ jsx(
|
|
73
|
+
"fieldset",
|
|
74
|
+
{
|
|
75
|
+
className: `${className ? `${className} ` : ""}${fieldset}`,
|
|
76
|
+
style,
|
|
77
|
+
children: /* @__PURE__ */ jsxs(Stack, { gap: 1.5, children: [
|
|
78
|
+
legend || description ? /* @__PURE__ */ jsxs(Stack, { gap: 0.5, children: [
|
|
79
|
+
legend ? /* @__PURE__ */ jsx(
|
|
80
|
+
Label,
|
|
81
|
+
{
|
|
82
|
+
as: "legend",
|
|
83
|
+
labelDescription: legendDescription,
|
|
84
|
+
required,
|
|
85
|
+
children: legend
|
|
86
|
+
}
|
|
87
|
+
) : null,
|
|
88
|
+
description ? /* @__PURE__ */ jsx(
|
|
89
|
+
Text,
|
|
90
|
+
{
|
|
91
|
+
as: typeof description === "string" ? "p" : "div",
|
|
92
|
+
prominence: "weak",
|
|
93
|
+
sentiment: "neutral",
|
|
94
|
+
variant: "bodySmall",
|
|
95
|
+
children: description
|
|
96
|
+
}
|
|
97
|
+
) : null
|
|
98
|
+
] }) : null,
|
|
99
|
+
/* @__PURE__ */ jsx(Stack, { direction, gap: 2, children })
|
|
100
|
+
] })
|
|
101
|
+
}
|
|
102
|
+
),
|
|
78
103
|
helper ? /* @__PURE__ */ jsx(Text, { as: "p", prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null,
|
|
79
104
|
error ? /* @__PURE__ */ jsx(Text, { as: "p", prominence: "weak", sentiment: "danger", variant: "bodySmall", children: error }) : null
|
|
80
105
|
] }) });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fieldset: string;
|
|
@@ -36,6 +36,7 @@ export declare const Tooltip: import("react").ForwardRefExoticComponent<Pick<{
|
|
|
36
36
|
disableAnimation?: boolean;
|
|
37
37
|
portalTarget?: HTMLElement;
|
|
38
38
|
dynamicDomRendering?: boolean;
|
|
39
|
-
|
|
39
|
+
style?: import("react").CSSProperties;
|
|
40
|
+
} & import("react").RefAttributes<HTMLDivElement>, "text" | "maxWidth" | "visible" | "style" | "className" | "children" | "data-testid" | "id" | "role" | "tabIndex" | "portalTarget" | "containerFullHeight" | "containerFullWidth" | "debounceDelay" | "innerRef"> & {
|
|
40
41
|
placement?: Exclude<ComponentProps<typeof Popup>["placement"], "nested-menu">;
|
|
41
42
|
} & import("react").RefAttributes<HTMLDivElement>>;
|