@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,230 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const _styled = require("@emotion/styled/base");
|
|
6
|
-
const react = require("react");
|
|
7
|
-
const index = require("../Label/index.cjs");
|
|
8
|
-
const index$1 = require("../Text/index.cjs");
|
|
9
|
-
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
10
|
-
const _styled__default = /* @__PURE__ */ _interopDefaultCompat(_styled);
|
|
11
|
-
const SIZE_HEIGHT = {
|
|
12
|
-
large: "600",
|
|
13
|
-
medium: "500",
|
|
14
|
-
small: "400",
|
|
15
|
-
xlarge: "800"
|
|
16
|
-
};
|
|
17
|
-
const SIZE_WIDTH = {
|
|
18
|
-
large: "500",
|
|
19
|
-
medium: "400",
|
|
20
|
-
small: "300",
|
|
21
|
-
xlarge: "700"
|
|
22
|
-
};
|
|
23
|
-
const StyledInput = /* @__PURE__ */ _styled__default.default("input", process.env.NODE_ENV === "production" ? {
|
|
24
|
-
shouldForwardProp: (prop) => !["inputSize"].includes(prop),
|
|
25
|
-
target: "e1a2bx9q1"
|
|
26
|
-
} : {
|
|
27
|
-
shouldForwardProp: (prop) => !["inputSize"].includes(prop),
|
|
28
|
-
target: "e1a2bx9q1",
|
|
29
|
-
label: "StyledInput"
|
|
30
|
-
})("background:", ({
|
|
31
|
-
theme
|
|
32
|
-
}) => theme.colors.neutral.background, ";color:", ({
|
|
33
|
-
theme
|
|
34
|
-
}) => theme.colors.neutral.text, ";", ({
|
|
35
|
-
inputSize,
|
|
36
|
-
theme
|
|
37
|
-
}) => {
|
|
38
|
-
if (inputSize === "small") {
|
|
39
|
-
return `
|
|
40
|
-
font-size: ${theme.typography.caption.fontSize};
|
|
41
|
-
font-weight: ${theme.typography.caption.weight};
|
|
42
|
-
`;
|
|
43
|
-
}
|
|
44
|
-
return `
|
|
45
|
-
font-size: ${theme.typography.body.fontSize};
|
|
46
|
-
font-weight: ${theme.typography.body.weight};
|
|
47
|
-
`;
|
|
48
|
-
}, " text-align:center;border-radius:", ({
|
|
49
|
-
theme
|
|
50
|
-
}) => theme.radii.default, ";margin-right:", ({
|
|
51
|
-
theme
|
|
52
|
-
}) => theme.space["1"], ";width:", ({
|
|
53
|
-
inputSize,
|
|
54
|
-
theme
|
|
55
|
-
}) => theme.sizing[SIZE_WIDTH[inputSize]], ";height:", ({
|
|
56
|
-
inputSize,
|
|
57
|
-
theme
|
|
58
|
-
}) => theme.sizing[SIZE_HEIGHT[inputSize]], ";outline-style:none;transition:border-color 0.2s ease,box-shadow 0.2s ease;border:solid 1px ", ({
|
|
59
|
-
theme
|
|
60
|
-
}) => theme.colors.neutral.border, ";&[aria-invalid='true']{border-color:", ({
|
|
61
|
-
theme
|
|
62
|
-
}) => theme.colors.danger.border, ";}&[data-success='true']{border-color:", ({
|
|
63
|
-
theme
|
|
64
|
-
}) => theme.colors.success.border, ";}&:hover,&:focus{border-color:", ({
|
|
65
|
-
theme
|
|
66
|
-
}) => theme.colors.primary.borderHover, ";&[aria-invalid='true']{border-color:", ({
|
|
67
|
-
theme
|
|
68
|
-
}) => theme.colors.danger.borderHover, ";}&[data-success='true']{border-color:", ({
|
|
69
|
-
theme
|
|
70
|
-
}) => theme.colors.success.borderHover, ";}}&:focus{box-shadow:", ({
|
|
71
|
-
theme: {
|
|
72
|
-
shadows
|
|
73
|
-
}
|
|
74
|
-
}) => shadows.focusPrimary, ";}&:last-child{margin-right:0;}&::placeholder{color:", ({
|
|
75
|
-
disabled,
|
|
76
|
-
theme
|
|
77
|
-
}) => disabled ? theme.colors.neutral.textWeakDisabled : theme.colors.neutral.textWeak, ";}&:disabled{cursor:not-allowed;background:", ({
|
|
78
|
-
theme
|
|
79
|
-
}) => theme.colors.neutral.backgroundDisabled, ";color:", ({
|
|
80
|
-
theme
|
|
81
|
-
}) => theme.colors.neutral.textDisabled, ";border:solid 1px ", ({
|
|
82
|
-
theme
|
|
83
|
-
}) => theme.colors.neutral.borderDisabled, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1ZlcmlmaWNhdGlvbkNvZGUvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9DRSIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9WZXJpZmljYXRpb25Db2RlL2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB0eXBlIHtcbiAgQ2hhbmdlRXZlbnQsXG4gIENsaXBib2FyZEV2ZW50SGFuZGxlcixcbiAgRm9jdXNFdmVudEhhbmRsZXIsXG4gIEtleWJvYXJkRXZlbnRIYW5kbGVyLFxuICBSZWFjdE5vZGUsXG59IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3JlYXRlUmVmLCB1c2VJZCwgdXNlTWVtbywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCdcbmltcG9yd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ib2FyZEV2ZW50SGFuZGxlcjxIVE1MSW5wdXRFbGVtZW50PiA9PlxuICAgIGV2ZW50ID0+IHtcbiAgICAgIGNvbnN0IHByZXZJbmRleCA9IGluZGV4IC0gMVxuICAgICAgY29uc3QgbmV4dEluZGV4ID0gaW5kZXggKyAxXG4gICAgICBjb25zdCBmaXJzdCA9IGlucHV0UmVmc1swXVxuICAgICAgY29uc3QgbGFzdCA9IGlucHV0UmVmc1tpbnB1dFJlZnMubGVuZ3RoIC0gMV1cbiAgICAgIGNvbnN0IHByZXYgPSBpbnB1dFJlZnNbcHJldkluZGV4XVxuICAgICAgY29uc3QgbmV4dCA9IGlucHV0UmVmc1tuZXh0SW5kZXhdXG4gICAgICBjb25zdCB2YWxzID0gWy4uLnZhbHVlc11cblxuICAgICAgc3dpdGNoIChldmVudC5rZXkpIHtcbiAgICAgICAgY2FzZSAnQmFja3NwYWNlJzoge1xuICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KClcblxuICAgICAgICAgIGlmICh2YWx1ZXNbaW5kZXhdKSB7XG4gICAgICAgICAgICB2YWxzW2luZGV4XSA9ICcnXG4gICAgICAgICAgICBzZXRWYWx1ZXModmFscylcbiAgICAgICAgICAgIHRyaWdnZXJDaGFuZ2UodmFscylcbiAgICAgICAgICB9IGVsc2UgaWYgKHByZXYpIHtcbiAgICAgICAgICAgIHZhbHNbcHJldkluZGV4XSA9ICcnXG4gICAgICAgICAgICBwcmV2Py5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgICBzZXRWYWx1ZXModmFscylcbiAgICAgICAgICAgIHRyaWdnZXJDaGFuZ2UodmFscylcbiAgICAgICAgICB9XG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ0Fycm93TGVmdCc6IHtcbiAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgcHJldj8uY3VycmVudD8uZm9jdXMoKVxuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cblxuICAgICAgICBjYXNlICdBcnJvd1JpZ2h0Jzoge1xuICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KClcbiAgICAgICAgICBuZXh0Py5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ0Fycm93VXAnOiB7XG4gICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgICAgIGZpcnN0Py5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ0Fycm93RG93bic6IHtcbiAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgbGFzdD8uY3VycmVudD8uZm9jdXMoKVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGRlZmF1bHQ6IHtcbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gIGNvbnN0IGlucHV0T25QYXN0ZSA9XG4gICAgKGN1cnJlbnRJbmRleDogbnVtYmVyKTogQ2xpcGJvYXJkRXZlbnRIYW5kbGVyPEhUTUxJbnB1dEVsZW1lbnQ+ID0+XG4gICAgZXZlbnQgPT4ge1xuICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgY29uc3QgcGFzdGVkVmFsdWUgPSBbLi4uZXZlbnQuY2xpcGJvYXJkRGF0YS5nZXREYXRhKCdUZXh0JyldLm1hcChcbiAgICAgICAgKGNvcGllZFZhbHVlOiBzdHJpbmcpID0+XG4gICAgICAgICAgLy8gUmVwbGFjZSBub24gbnVtYmVyIGNoYXIgd2l0aCBlbXB0eSBjaGFyIHdoZW4gdHlwZSBpcyBudW1iZXJcbiAgICAgICAgICB0eXBlID09PSAnbnVtYmVyJyA/IGNvcGllZFZhbHVlLnJlcGxhY2UoL1teXFxkXS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PVwiY2FwdGlvblwiXG4gICAgICAgID5cbiAgICAgICAgICB7ZXJyb3IgfHwgc3VjY2VzcyB8fCBoZWxwZXJ9XG4gICAgICAgIDwvVGV4dD5cbiAgICAgICkgOiBudWxsfVxuICAgICAgeyFlcnJvciAmJiAhc3VjY2VzcyAmJiB0eXBlb2YgaGVscGVyICE9PSAnc3RyaW5nJyAmJiBoZWxwZXJcbiAgICAgICAgPyBoZWxwZXJcbiAgICAgICAgOiBudWxsfVxuICAgIDwvRmllbGRTZXQ+XG4gIClcbn1cbiJdfQ== */"));
|
|
84
|
-
const FieldSet = /* @__PURE__ */ _styled__default.default("fieldset", process.env.NODE_ENV === "production" ? {
|
|
85
|
-
target: "e1a2bx9q0"
|
|
86
|
-
} : {
|
|
87
|
-
target: "e1a2bx9q0",
|
|
88
|
-
label: "FieldSet"
|
|
89
|
-
})("border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:", ({
|
|
90
|
-
theme
|
|
91
|
-
}) => theme.space["0.5"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1ZlcmlmaWNhdGlvbkNvZGUvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTRHZ0MiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvdWkvc3JjL2NvbXBvbmVudHMvVmVyaWZpY2F0aW9uQ29kZS9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgdHlwZSB7XG4gIENoYW5n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gICAgICAgICAgICB0cmlnZ2VyQ2hhbmdlKHZhbHMpXG4gICAgICAgICAgfVxuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cblxuICAgICAgICBjYXNlICdBcnJvd0xlZnQnOiB7XG4gICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgICAgIHByZXY/LmN1cnJlbnQ/LmZvY3VzKClcbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG5cbiAgICAgICAgY2FzZSAnQXJyb3dSaWdodCc6IHtcbiAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgbmV4dD8uY3VycmVudD8uZm9jdXMoKVxuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cblxuICAgICAgICBjYXNlICdBcnJvd1VwJzoge1xuICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KClcbiAgICAgICAgICBmaXJzdD8uY3VycmVudD8uZm9jdXMoKVxuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cblxuICAgICAgICBjYXNlICdBcnJvd0Rvd24nOiB7XG4gICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgICAgIGxhc3Q/LmN1cnJlbnQ/LmZvY3VzKClcblxuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cblxuICAgICAgICBkZWZhdWx0OiB7XG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICBjb25zdCBpbnB1dE9uUGFzdGUgPVxuICAgIChjdXJyZW50SW5kZXg6IG51bWJlcik6IENsaXBib2FyZEV2ZW50SGFuZGxlcjxIVE1MSW5wdXRFbGVtZW50PiA9PlxuICAgIGV2ZW50ID0+IHtcbiAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KClcbiAgICAgIGNvbnN0IHBhc3RlZFZhbHVlID0gWy4uLmV2ZW50LmNsaXBib2FyZERhdGEuZ2V0RGF0YSgnVGV4dCcpXS5t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dG9Db21wbGV0ZT1cIm9mZlwiXG4gICAgICAgICAgICBjc3M9e1tpbnB1dFN0eWxlXX1cbiAgICAgICAgICAgIGRhdGEtc3VjY2Vzcz17ISFzdWNjZXNzfVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9e2luZGV4fVxuICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgaWQ9e2Ake2lucHV0SWQgfHwgdW5pcXVlSWR9LSR7aW5kZXh9YH1cbiAgICAgICAgICAgIGlucHV0U2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIGtleT17YGZpZWxkLSR7aW5kZXh9YH1cbiAgICAgICAgICAgIG9uQ2hhbmdlPXtpbnB1dE9uQ2hhbmdlKGluZGV4KX1cbiAgICAgICAgICAgIG9uRm9jdXM9e2lucHV0T25Gb2N1c31cbiAgICAgICAgICAgIG9uS2V5RG93bj17aW5wdXRPbktleURvd24oaW5kZXgpfVxuICAgICAgICAgICAgb25QYXN0ZT17aW5wdXRPblBhc3RlKGluZGV4KX1cbiAgICAgICAgICAgIHBhdHRlcm49e3R5cGUgPT09ICdudW1iZXInID8gJ1swLTldKicgOiB1bmRlZmluZWR9XG4gICAgICAgICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXI/LltpbmRleF0gPz8gJyd9XG4gICAgICAgICAgICByZWY9e2lucHV0UmVmc1tpbmRleF19XG4gICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICB0eXBlPXt0eXBlID09PSAnbnVtYmVyJyA/ICd0ZWwnIDogdHlwZX1cbiAgICAgICAgICAgIHZhbHVlPXt2YWx1ZX1cbiAgICAgICAgICAvPlxuICAgICAgICApKX1cbiAgICAgIDwvZGl2PlxuICAgICAge2Vycm9yIHx8IHR5cGVvZiBzdWNjZXNzID09PSAnc3RyaW5nJyB8fCB0eXBlb2YgaGVscGVyID09PSAnc3RyaW5nJyA/IChcbiAgICAgICAgPFRleHRcbiAgICAgICAgICBhcz1cInBcIlxuICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICBwcm9taW5lbmNlPXshZXJyb3IgJiYgIXN1Y2Nlc3MgPyAnd2VhaycgOiAnZGVmYXVsdCd9XG4gICAgICAgICAgc2VudGltZW50PXtzZW50aW1lbnR9XG4gICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICA+XG4gICAgICAgICAge2Vycm9yIHx8IHN1Y2Nlc3MgfHwgaGVscGVyfVxuICAgICAgICA8L1RleHQ+XG4gICAgICApIDogbnVsbH1cbiAgICAgIHshZXJyb3IgJiYgIXN1Y2Nlc3MgJiYgdHlwZW9mIGhlbHBlciAhPT0gJ3N0cmluZycgJiYgaGVscGVyXG4gICAgICAgID8gaGVscGVyXG4gICAgICAgIDogbnVsbH1cbiAgICA8L0ZpZWxkU2V0PlxuICApXG59XG4iXX0= */"));
|
|
92
|
-
const DEFAULT_ON_FUNCTION = () => {
|
|
93
|
-
};
|
|
94
|
-
const inputOnFocus = (event) => event.target.select();
|
|
95
|
-
const VerificationCode = ({
|
|
96
|
-
disabled = false,
|
|
97
|
-
className,
|
|
98
|
-
error = false,
|
|
99
|
-
fields = 4,
|
|
100
|
-
initialValue = "",
|
|
101
|
-
inputId,
|
|
102
|
-
inputStyle = "",
|
|
103
|
-
size = "large",
|
|
104
|
-
onChange = DEFAULT_ON_FUNCTION,
|
|
105
|
-
onComplete = DEFAULT_ON_FUNCTION,
|
|
106
|
-
placeholder = "",
|
|
107
|
-
required = false,
|
|
108
|
-
type = "number",
|
|
109
|
-
"data-testid": dataTestId,
|
|
110
|
-
"aria-label": ariaLabel = "Verification code",
|
|
111
|
-
label,
|
|
112
|
-
labelDescription,
|
|
113
|
-
helper,
|
|
114
|
-
success
|
|
115
|
-
}) => {
|
|
116
|
-
const uniqueId = react.useId();
|
|
117
|
-
const valuesArray = Object.assign(new Array(fields).fill(""), [...initialValue.substring(0, fields)]);
|
|
118
|
-
const [values, setValues] = react.useState(valuesArray);
|
|
119
|
-
const inputRefs = Array.from({
|
|
120
|
-
length: fields
|
|
121
|
-
}, () => react.createRef());
|
|
122
|
-
const triggerChange = (inputValues) => {
|
|
123
|
-
const stringValue = inputValues.join("");
|
|
124
|
-
if (onChange) {
|
|
125
|
-
onChange(stringValue);
|
|
126
|
-
}
|
|
127
|
-
if (onComplete && stringValue.length >= fields) {
|
|
128
|
-
onComplete(stringValue);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
const inputOnChange = (index2) => (event) => {
|
|
132
|
-
let {
|
|
133
|
-
value
|
|
134
|
-
} = event.target;
|
|
135
|
-
if (type === "number") {
|
|
136
|
-
value = event.target.value.replace(/[^\d]/gi, "");
|
|
137
|
-
}
|
|
138
|
-
const newValues = [...values];
|
|
139
|
-
if (value === "" || type === "number" && !new RegExp(event.target.pattern).test(value)) {
|
|
140
|
-
newValues[index2] = "";
|
|
141
|
-
setValues(newValues);
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
const sanitizedValue = value[0];
|
|
145
|
-
newValues[index2] = sanitizedValue ?? "";
|
|
146
|
-
setValues(newValues);
|
|
147
|
-
const nextIndex = Math.min(index2 + 1, fields - 1);
|
|
148
|
-
const next = inputRefs[nextIndex];
|
|
149
|
-
next?.current?.focus();
|
|
150
|
-
triggerChange(newValues);
|
|
151
|
-
};
|
|
152
|
-
const inputOnKeyDown = (index2) => (event) => {
|
|
153
|
-
const prevIndex = index2 - 1;
|
|
154
|
-
const nextIndex = index2 + 1;
|
|
155
|
-
const first = inputRefs[0];
|
|
156
|
-
const last = inputRefs[inputRefs.length - 1];
|
|
157
|
-
const prev = inputRefs[prevIndex];
|
|
158
|
-
const next = inputRefs[nextIndex];
|
|
159
|
-
const vals = [...values];
|
|
160
|
-
switch (event.key) {
|
|
161
|
-
case "Backspace": {
|
|
162
|
-
event.preventDefault();
|
|
163
|
-
if (values[index2]) {
|
|
164
|
-
vals[index2] = "";
|
|
165
|
-
setValues(vals);
|
|
166
|
-
triggerChange(vals);
|
|
167
|
-
} else if (prev) {
|
|
168
|
-
vals[prevIndex] = "";
|
|
169
|
-
prev?.current?.focus();
|
|
170
|
-
setValues(vals);
|
|
171
|
-
triggerChange(vals);
|
|
172
|
-
}
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
case "ArrowLeft": {
|
|
176
|
-
event.preventDefault();
|
|
177
|
-
prev?.current?.focus();
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
case "ArrowRight": {
|
|
181
|
-
event.preventDefault();
|
|
182
|
-
next?.current?.focus();
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
case "ArrowUp": {
|
|
186
|
-
event.preventDefault();
|
|
187
|
-
first?.current?.focus();
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
case "ArrowDown": {
|
|
191
|
-
event.preventDefault();
|
|
192
|
-
last?.current?.focus();
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
const inputOnPaste = (currentIndex) => (event) => {
|
|
198
|
-
event.preventDefault();
|
|
199
|
-
const pastedValue = [...event.clipboardData.getData("Text")].map((copiedValue) => (
|
|
200
|
-
// Replace non number char with empty char when type is number
|
|
201
|
-
type === "number" ? copiedValue.replace(/[^\d]/gi, "") : copiedValue
|
|
202
|
-
));
|
|
203
|
-
pastedValue.splice(fields - currentIndex < pastedValue.length ? fields - currentIndex : pastedValue.length);
|
|
204
|
-
setValues((vals) => {
|
|
205
|
-
const newArray = structuredClone(vals);
|
|
206
|
-
newArray.splice(currentIndex, pastedValue.length, ...pastedValue);
|
|
207
|
-
return newArray;
|
|
208
|
-
});
|
|
209
|
-
const nextIndex = Math.min(currentIndex + pastedValue.filter((item) => item !== "").length, inputRefs.length - 1);
|
|
210
|
-
const next = inputRefs[nextIndex];
|
|
211
|
-
next?.current?.focus();
|
|
212
|
-
triggerChange(pastedValue);
|
|
213
|
-
};
|
|
214
|
-
const sentiment = react.useMemo(() => {
|
|
215
|
-
if (error) {
|
|
216
|
-
return "danger";
|
|
217
|
-
}
|
|
218
|
-
if (success) {
|
|
219
|
-
return "success";
|
|
220
|
-
}
|
|
221
|
-
return "neutral";
|
|
222
|
-
}, [error, success]);
|
|
223
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(FieldSet, { className, "data-testid": dataTestId, children: [
|
|
224
|
-
label || labelDescription ? /* @__PURE__ */ jsxRuntime.jsx(index.Label, { labelDescription, required, size: size === "xlarge" ? "large" : size, children: label }) : null,
|
|
225
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { children: values.map((value, index2) => /* @__PURE__ */ jsxRuntime.jsx(StyledInput, { "aria-invalid": !!error, "aria-label": `${ariaLabel} ${index2}`, autoComplete: "off", css: [inputStyle, process.env.NODE_ENV === "production" ? "" : ";label:VerificationCode;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1ZlcmlmaWNhdGlvbkNvZGUvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdXWSIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9WZXJpZmljYXRpb25Db2RlL2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB0eXBlIHtcbiAgQ2hhbmdlRXZlbnQsXG4gIENsaXBib2FyZEV2ZW50SGFuZGxlcixcbiAgRm9jdXNFdmVudEhhbmRsZXIsXG4gI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uXG4gICAgICBuZXh0Py5jdXJyZW50Py5mb2N1cygpXG5cbiAgICAgIHRyaWdnZXJDaGFuZ2UobmV3VmFsdWVzKVxuICAgIH1cblxuICBjb25zdCBpbnB1dE9uS2V5RG93biA9XG4gICAgKGluZGV4OiBudW1iZXIpOiBLZXlib2FyZEV2ZW50SGFuZGxlcjxIVE1MSW5wdXRFbGVtZW50PiA9PlxuICAgIGV2ZW50ID0+IHtcbiAgICAgIGNvbnN0IHByZXZJbmRleCA9IGluZGV4IC0gMVxuICAgICAgY29uc3QgbmV4dEluZGV4ID0gaW5kZXggKyAxXG4gICAgICBjb25zdCBmaXJzdCA9IGlucHV0UmVmc1swXVxuICAgICAgY29uc3QgbGFzdCA9IGlucHV0UmVmc1tpbnB1dFJlZnMubGVuZ3RoIC0gMV1cbiAgICAgIGNvbnN0IHByZXYgPSBpbnB1dFJlZnNbcHJldkluZGV4XVxuICAgICAgY29uc3QgbmV4dCA9IGlucHV0UmVmc1tuZXh0SW5kZXhdXG4gICAgICBjb25zdCB2YWxzID0gWy4uLnZhbHVlc11cblxuICAgICAgc3dpdGNoIChldmVudC5rZXkpIHtcbiAgICAgICAgY2FzZSAnQmFja3NwYWNlJzoge1xuICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KClcblxuICAgICAgICAgIGlmICh2YWx1ZXNbaW5kZXhdKSB7XG4gICAgICAgICAgICB2YWxzW2luZGV4XSA9ICcnXG4gICAgICAgICAgICBzZXRWYWx1ZXModmFscylcbiAgICAgICAgICAgIHRyaWdnZXJDaGFuZ2UodmFscylcbiAgICAgICAgICB9IGVsc2UgaWYgKHByZXYpIHtcbiAgICAgICAgICAgIHZhbHNbcHJldkluZGV4XSA9ICcnXG4gICAgICAgICAgICBwcmV2Py5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgICBzZXRWYWx1ZXModmFscylcbiAgICAgICAgICAgIHRyaWdnZXJDaGFuZ2UodmFscylcbiAgICAgICAgICB9XG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ0Fycm93TGVmdCc6IHtcbiAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgcHJldj8uY3VycmVudD8uZm9jdXMoKVxuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cblxuICAgICAgICBjYXNlICdBcnJvd1JpZ2h0Jzoge1xuICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KClcbiAgICAgICAgICBuZXh0Py5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ0Fycm93VXAnOiB7XG4gICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgICAgIGZpcnN0Py5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGNhc2UgJ0Fycm93RG93bic6IHtcbiAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgbGFzdD8uY3VycmVudD8uZm9jdXMoKVxuXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIGRlZmF1bHQ6IHtcbiAgICAgICAgICBicmVha1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gIGNvbnN0IGlucHV0T25QYXN0ZSA9XG4gICAgKGN1cnJlbnRJbmRleDogbnVtYmVyKTogQ2xpcGJvYXJkRXZlbnRIYW5kbGVyPEhUTUxJbnB1dEVsZW1lbnQ+ID0+XG4gICAgZXZlbnQgPT4ge1xuICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgY29uc3QgcGFzdGVkVmFsdWUgPSBbLi4uZXZlbnQuY2xpcGJvYXJkRGF0YS5nZXREYXRhKCdUZXh0JyldLm1hcChcbiAgICAgICAgKGNvcGllZFZhbHVlOiBzdHJpbmcpID0+XG4gICAgICAgIC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HV0U3R5bGVdfVxuICAgICAgICAgICAgZGF0YS1zdWNjZXNzPXshIXN1Y2Nlc3N9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD17aW5kZXh9XG4gICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICBpZD17YCR7aW5wdXRJZCB8fCB1bmlxdWVJZH0tJHtpbmRleH1gfVxuICAgICAgICAgICAgaW5wdXRTaXplPXtzaXplfVxuICAgICAgICAgICAga2V5PXtgZmllbGQtJHtpbmRleH1gfVxuICAgICAgICAgICAgb25DaGFuZ2U9e2lucHV0T25DaGFuZ2UoaW5kZXgpfVxuICAgICAgICAgICAgb25Gb2N1cz17aW5wdXRPbkZvY3VzfVxuICAgICAgICAgICAgb25LZXlEb3duPXtpbnB1dE9uS2V5RG93bihpbmRleCl9XG4gICAgICAgICAgICBvblBhc3RlPXtpbnB1dE9uUGFzdGUoaW5kZXgpfVxuICAgICAgICAgICAgcGF0dGVybj17dHlwZSA9PT0gJ251bWJlcicgPyAnWzAtOV0qJyA6IHVuZGVmaW5lZH1cbiAgICAgICAgICAgIHBsYWNlaG9sZGVyPXtwbGFjZWhvbGRlcj8uW2luZGV4XSA/PyAnJ31cbiAgICAgICAgICAgIHJlZj17aW5wdXRSZWZzW2luZGV4XX1cbiAgICAgICAgICAgIHJlcXVpcmVkPXtyZXF1aXJlZH1cbiAgICAgICAgICAgIHR5cGU9e3R5cGUgPT09ICdudW1iZXInID8gJ3RlbCcgOiB0eXBlfVxuICAgICAgICAgICAgdmFsdWU9e3ZhbHVlfVxuICAgICAgICAgIC8+XG4gICAgICAgICkpfVxuICAgICAgPC9kaXY+XG4gICAgICB7ZXJyb3IgfHwgdHlwZW9mIHN1Y2Nlc3MgPT09ICdzdHJpbmcnIHx8IHR5cGVvZiBoZWxwZXIgPT09ICdzdHJpbmcnID8gKFxuICAgICAgICA8VGV4dFxuICAgICAgICAgIGFzPVwicFwiXG4gICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgIHByb21pbmVuY2U9eyFlcnJvciAmJiAhc3VjY2VzcyA/ICd3ZWFrJyA6ICdkZWZhdWx0J31cbiAgICAgICAgICBzZW50aW1lbnQ9e3NlbnRpbWVudH1cbiAgICAgICAgICB2YXJpYW50PVwiY2FwdGlvblwiXG4gICAgICAgID5cbiAgICAgICAgICB7ZXJyb3IgfHwgc3VjY2VzcyB8fCBoZWxwZXJ9XG4gICAgICAgIDwvVGV4dD5cbiAgICAgICkgOiBudWxsfVxuICAgICAgeyFlcnJvciAmJiAhc3VjY2VzcyAmJiB0eXBlb2YgaGVscGVyICE9PSAnc3RyaW5nJyAmJiBoZWxwZXJcbiAgICAgICAgPyBoZWxwZXJcbiAgICAgICAgOiBudWxsfVxuICAgIDwvRmllbGRTZXQ+XG4gIClcbn1cbiJdfQ== */"], "data-success": !!success, "data-testid": index2, disabled, id: `${inputId || uniqueId}-${index2}`, inputSize: size, onChange: inputOnChange(index2), onFocus: inputOnFocus, onKeyDown: inputOnKeyDown(index2), onPaste: inputOnPaste(index2), pattern: type === "number" ? "[0-9]*" : void 0, placeholder: placeholder?.[index2] ?? "", ref: inputRefs[index2], required, type: type === "number" ? "tel" : type, value }, `field-${index2}`)) }),
|
|
226
|
-
error || typeof success === "string" || typeof helper === "string" ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "p", disabled, prominence: !error && !success ? "weak" : "default", sentiment, variant: "caption", children: error || success || helper }) : null,
|
|
227
|
-
!error && !success && typeof helper !== "string" && helper ? helper : null
|
|
228
|
-
] });
|
|
229
|
-
};
|
|
230
|
-
exports.VerificationCode = VerificationCode;
|
package/dist/helpers/legend.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const getLegendColor = (theme) => {
|
|
4
|
-
const {
|
|
5
|
-
colors
|
|
6
|
-
} = theme;
|
|
7
|
-
return Object.keys(colors.other.data.charts).filter((key) => !["success", "danger"].includes(key)).sort((a, b) => {
|
|
8
|
-
if (Number(a.replace("data", "")) < Number(b.replace("data", ""))) {
|
|
9
|
-
return -1;
|
|
10
|
-
}
|
|
11
|
-
return 1;
|
|
12
|
-
}).map((key) => colors.other.data.charts[key]);
|
|
13
|
-
};
|
|
14
|
-
exports.getLegendColor = getLegendColor;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const getNivoTheme = (theme) => ({
|
|
4
|
-
axis: {
|
|
5
|
-
ticks: {
|
|
6
|
-
line: {
|
|
7
|
-
stroke: theme.colors.neutral.backgroundStrong,
|
|
8
|
-
strokeWidth: 1
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
text: {
|
|
13
|
-
fill: theme.colors.neutral.text,
|
|
14
|
-
fontFamily: theme.typography.body.fontFamily,
|
|
15
|
-
fontSize: theme.typography.bodySmall.fontSize,
|
|
16
|
-
fontWeight: theme.typography.bodySmall.fontWeight,
|
|
17
|
-
letterSpacing: theme.typography.bodySmall.letterSpacing,
|
|
18
|
-
lineHeight: theme.typography.bodySmall.lineHeight,
|
|
19
|
-
outlineColor: theme.colors.neutral.background
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
exports.getNivoTheme = getNivoTheme;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const recursivelyGetChildrenString = (children) => {
|
|
3
|
-
if (typeof children === "string") {
|
|
4
|
-
return children;
|
|
5
|
-
}
|
|
6
|
-
if (Array.isArray(children)) {
|
|
7
|
-
return "";
|
|
8
|
-
}
|
|
9
|
-
if (typeof children === "object") {
|
|
10
|
-
const childProps = children?.["props"]?.["children"];
|
|
11
|
-
if (childProps) {
|
|
12
|
-
return recursivelyGetChildrenString(childProps);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return "";
|
|
16
|
-
};
|
|
17
|
-
module.exports = recursivelyGetChildrenString;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const react = require("react");
|
|
4
|
-
const useIsOverflowing = (ref, callback) => {
|
|
5
|
-
const [isOverflowing, setIsOverflowing] = react.useState(false);
|
|
6
|
-
react.useEffect(() => {
|
|
7
|
-
const handleResize = () => {
|
|
8
|
-
if (!ref.current) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
const element = ref.current;
|
|
12
|
-
const hasOverflow = element.clientWidth < element.scrollWidth;
|
|
13
|
-
setIsOverflowing(hasOverflow);
|
|
14
|
-
};
|
|
15
|
-
setTimeout(() => handleResize(), 0);
|
|
16
|
-
window.addEventListener("resize", handleResize);
|
|
17
|
-
return () => {
|
|
18
|
-
window.removeEventListener("resize", handleResize);
|
|
19
|
-
};
|
|
20
|
-
}, [ref, callback]);
|
|
21
|
-
return isOverflowing;
|
|
22
|
-
};
|
|
23
|
-
exports.useIsOverflowing = useIsOverflowing;
|
package/dist/index.cjs
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./theme/index.cjs");
|
|
4
|
-
const Breakpoint = require("./utils/responsive/Breakpoint.cjs");
|
|
5
|
-
const normalize = require("./utils/normalize.cjs");
|
|
6
|
-
const themes = require("@ultraviolet/themes");
|
|
7
|
-
const ThemeProvider = require("./theme/ThemeProvider.cjs");
|
|
8
|
-
const animations = require("./utils/animations.cjs");
|
|
9
|
-
const utilities = require("./utils/responsive/utilities.cjs");
|
|
10
|
-
const ids = require("./utils/ids.cjs");
|
|
11
|
-
const index$1 = require("./components/ActionBar/index.cjs");
|
|
12
|
-
const index$2 = require("./components/Alert/index.cjs");
|
|
13
|
-
const index$3 = require("./components/Avatar/index.cjs");
|
|
14
|
-
const index$4 = require("./components/Badge/index.cjs");
|
|
15
|
-
const index$5 = require("./components/Banner/index.cjs");
|
|
16
|
-
const index$6 = require("./components/BarChart/index.cjs");
|
|
17
|
-
const index$7 = require("./components/BarStack/index.cjs");
|
|
18
|
-
const index$8 = require("./components/Breadcrumbs/index.cjs");
|
|
19
|
-
const index$9 = require("./components/Bullet/index.cjs");
|
|
20
|
-
const index$a = require("./components/Button/index.cjs");
|
|
21
|
-
const index$b = require("./components/Card/index.cjs");
|
|
22
|
-
const index$c = require("./components/Carousel/index.cjs");
|
|
23
|
-
const index$d = require("./components/Checkbox/index.cjs");
|
|
24
|
-
const index$e = require("./components/CheckboxGroup/index.cjs");
|
|
25
|
-
const index$f = require("./components/Chip/index.cjs");
|
|
26
|
-
const index$g = require("./components/CopyButton/index.cjs");
|
|
27
|
-
const index$h = require("./components/DateInput/index.cjs");
|
|
28
|
-
const index$i = require("./components/Dialog/index.cjs");
|
|
29
|
-
const index$j = require("./components/Drawer/index.cjs");
|
|
30
|
-
const index$k = require("./components/EmptyState/index.cjs");
|
|
31
|
-
const index$l = require("./components/Expandable/index.cjs");
|
|
32
|
-
const index$m = require("./components/ExpandableCard/index.cjs");
|
|
33
|
-
const index$n = require("./components/GlobalAlert/index.cjs");
|
|
34
|
-
const index$o = require("./components/InfiniteScroll/index.cjs");
|
|
35
|
-
const index$p = require("./components/Key/index.cjs");
|
|
36
|
-
const index$q = require("./components/Label/index.cjs");
|
|
37
|
-
const index$r = require("./components/LineChart/index.cjs");
|
|
38
|
-
const index$s = require("./components/Link/index.cjs");
|
|
39
|
-
const index$t = require("./components/List/index.cjs");
|
|
40
|
-
const index$u = require("./components/Loader/index.cjs");
|
|
41
|
-
const index$v = require("./components/Menu/index.cjs");
|
|
42
|
-
const index$w = require("./components/Meter/index.cjs");
|
|
43
|
-
const index$x = require("./components/Modal/index.cjs");
|
|
44
|
-
const index$y = require("./components/Notice/index.cjs");
|
|
45
|
-
const index$z = require("./components/Notification/index.cjs");
|
|
46
|
-
const index$A = require("./components/NumberInput/index.cjs");
|
|
47
|
-
const index$B = require("./components/Pagination/index.cjs");
|
|
48
|
-
const index$C = require("./components/PasswordCheck/index.cjs");
|
|
49
|
-
const index$D = require("./components/PieChart/index.cjs");
|
|
50
|
-
const index$E = require("./components/Popover/index.cjs");
|
|
51
|
-
const index$F = require("./components/Popup/index.cjs");
|
|
52
|
-
const index$G = require("./components/ProgressBar/index.cjs");
|
|
53
|
-
const index$H = require("./components/Radio/index.cjs");
|
|
54
|
-
const index$I = require("./components/RadioGroup/index.cjs");
|
|
55
|
-
const index$J = require("./components/Row/index.cjs");
|
|
56
|
-
const index$K = require("./components/SearchInput/index.cjs");
|
|
57
|
-
const index$L = require("./components/SelectableCard/index.cjs");
|
|
58
|
-
const index$M = require("./components/SelectableCardGroup/index.cjs");
|
|
59
|
-
const index$N = require("./components/SelectableCardOptionGroup/index.cjs");
|
|
60
|
-
const index$O = require("./components/SelectInput/index.cjs");
|
|
61
|
-
const index$P = require("./components/Separator/index.cjs");
|
|
62
|
-
const index$Q = require("./components/Skeleton/index.cjs");
|
|
63
|
-
const index$R = require("./components/Slider/index.cjs");
|
|
64
|
-
const index$S = require("./components/Snippet/index.cjs");
|
|
65
|
-
const index$T = require("./components/Stack/index.cjs");
|
|
66
|
-
const index$U = require("./components/Status/index.cjs");
|
|
67
|
-
const index$V = require("./components/StepList/index.cjs");
|
|
68
|
-
const index$W = require("./components/Stepper/index.cjs");
|
|
69
|
-
const index$X = require("./components/SwitchButton/index.cjs");
|
|
70
|
-
const index$Y = require("./components/Table/index.cjs");
|
|
71
|
-
const index$Z = require("./components/Tabs/index.cjs");
|
|
72
|
-
const index$_ = require("./components/Tag/index.cjs");
|
|
73
|
-
const index$$ = require("./components/TagInput/index.cjs");
|
|
74
|
-
const index$10 = require("./components/TagList/index.cjs");
|
|
75
|
-
const index$11 = require("./components/Text/index.cjs");
|
|
76
|
-
const index$12 = require("./components/TextArea/index.cjs");
|
|
77
|
-
const index$13 = require("./components/TextInput/index.cjs");
|
|
78
|
-
const index$14 = require("./components/TimeInput/index.cjs");
|
|
79
|
-
const index$15 = require("./components/Toaster/index.cjs");
|
|
80
|
-
const index$16 = require("./components/Toggle/index.cjs");
|
|
81
|
-
const index$17 = require("./components/ToggleGroup/index.cjs");
|
|
82
|
-
const index$18 = require("./components/Tooltip/index.cjs");
|
|
83
|
-
const index$19 = require("./components/UnitInput/index.cjs");
|
|
84
|
-
const index$1a = require("./components/VerificationCode/index.cjs");
|
|
85
|
-
exports.extendTheme = index.extendTheme;
|
|
86
|
-
exports.Breakpoint = Breakpoint;
|
|
87
|
-
exports.normalize = normalize;
|
|
88
|
-
Object.defineProperty(exports, "darkTheme", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: () => themes.consoleDarkTheme
|
|
91
|
-
});
|
|
92
|
-
Object.defineProperty(exports, "theme", {
|
|
93
|
-
enumerable: true,
|
|
94
|
-
get: () => themes.consoleLightTheme
|
|
95
|
-
});
|
|
96
|
-
exports.ThemeProvider = ThemeProvider.ThemeProvider;
|
|
97
|
-
exports.useTheme = ThemeProvider.useTheme;
|
|
98
|
-
exports.bounce = animations.bounce;
|
|
99
|
-
exports.fadeIn = animations.fadeIn;
|
|
100
|
-
exports.fadeOut = animations.fadeOut;
|
|
101
|
-
exports.flash = animations.flash;
|
|
102
|
-
exports.ping = animations.ping;
|
|
103
|
-
exports.pulse = animations.pulse;
|
|
104
|
-
exports.quickScaleDown = animations.quickScaleDown;
|
|
105
|
-
exports.scaleBack = animations.scaleBack;
|
|
106
|
-
exports.scaleDown = animations.scaleDown;
|
|
107
|
-
exports.scaleForward = animations.scaleForward;
|
|
108
|
-
exports.scaleUp = animations.scaleUp;
|
|
109
|
-
exports.sketchIn = animations.sketchIn;
|
|
110
|
-
exports.sketchOut = animations.sketchOut;
|
|
111
|
-
exports.slideDownLarge = animations.slideDownLarge;
|
|
112
|
-
exports.slideFromBottom = animations.slideFromBottom;
|
|
113
|
-
exports.slideFromLeft = animations.slideFromLeft;
|
|
114
|
-
exports.slideFromRight = animations.slideFromRight;
|
|
115
|
-
exports.slideFromTop = animations.slideFromTop;
|
|
116
|
-
exports.slideToBottom = animations.slideToBottom;
|
|
117
|
-
exports.slideToLeft = animations.slideToLeft;
|
|
118
|
-
exports.slideToRight = animations.slideToRight;
|
|
119
|
-
exports.slideToTop = animations.slideToTop;
|
|
120
|
-
exports.slideUpLarge = animations.slideUpLarge;
|
|
121
|
-
exports.unfoldIn = animations.unfoldIn;
|
|
122
|
-
exports.unfoldOut = animations.unfoldOut;
|
|
123
|
-
exports.zoomIn = animations.zoomIn;
|
|
124
|
-
exports.zoomOut = animations.zoomOut;
|
|
125
|
-
exports.down = utilities.down;
|
|
126
|
-
exports.up = utilities.up;
|
|
127
|
-
exports.getUUID = ids.getUUID;
|
|
128
|
-
exports.ActionBar = index$1.ActionBar;
|
|
129
|
-
exports.Alert = index$2.Alert;
|
|
130
|
-
exports.Avatar = index$3.Avatar;
|
|
131
|
-
exports.Badge = index$4.Badge;
|
|
132
|
-
exports.Banner = index$5.Banner;
|
|
133
|
-
exports.BarChart = index$6.BarChart;
|
|
134
|
-
exports.BarStack = index$7.BarStack;
|
|
135
|
-
exports.Breadcrumbs = index$8.Breadcrumbs;
|
|
136
|
-
exports.Bullet = index$9.Bullet;
|
|
137
|
-
exports.Button = index$a.Button;
|
|
138
|
-
exports.Card = index$b.Card;
|
|
139
|
-
exports.Carousel = index$c.Carousel;
|
|
140
|
-
exports.Checkbox = index$d.Checkbox;
|
|
141
|
-
exports.CheckboxGroup = index$e.CheckboxGroup;
|
|
142
|
-
exports.CheckboxGroupCheckbox = index$e.CheckboxGroupCheckbox;
|
|
143
|
-
exports.Chip = index$f.Chip;
|
|
144
|
-
exports.CopyButton = index$g.CopyButton;
|
|
145
|
-
exports.DateInput = index$h.DateInput;
|
|
146
|
-
exports.Dialog = index$i.Dialog;
|
|
147
|
-
exports.Drawer = index$j.Drawer;
|
|
148
|
-
exports.EmptyState = index$k.EmptyState;
|
|
149
|
-
exports.Expandable = index$l.Expandable;
|
|
150
|
-
exports.ExpandableCard = index$m.ExpandableCard;
|
|
151
|
-
exports.GlobalAlert = index$n.GlobalAlert;
|
|
152
|
-
exports.InfiniteScroll = index$o.InfiniteScroll;
|
|
153
|
-
exports.Key = index$p.Key;
|
|
154
|
-
exports.Label = index$q.Label;
|
|
155
|
-
exports.LineChart = index$r.LineChart;
|
|
156
|
-
exports.Link = index$s.Link;
|
|
157
|
-
exports.List = index$t.List;
|
|
158
|
-
exports.Loader = index$u.Loader;
|
|
159
|
-
exports.Menu = index$v.Menu;
|
|
160
|
-
exports.Meter = index$w.Meter;
|
|
161
|
-
exports.Modal = index$x.Modal;
|
|
162
|
-
exports.Notice = index$y.Notice;
|
|
163
|
-
exports.NotificationContainer = index$z.NotificationContainer;
|
|
164
|
-
exports.notification = index$z.notification;
|
|
165
|
-
exports.NumberInput = index$A.NumberInput;
|
|
166
|
-
exports.Pagination = index$B.Pagination;
|
|
167
|
-
exports.PasswordCheck = index$C.PasswordCheck;
|
|
168
|
-
exports.PieChart = index$D.PieChart;
|
|
169
|
-
exports.Popover = index$E.Popover;
|
|
170
|
-
exports.Popup = index$F.Popup;
|
|
171
|
-
exports.ProgressBar = index$G.ProgressBar;
|
|
172
|
-
exports.Radio = index$H.Radio;
|
|
173
|
-
exports.RadioGroup = index$I.RadioGroup;
|
|
174
|
-
exports.Row = index$J.Row;
|
|
175
|
-
exports.SearchInput = index$K.SearchInput;
|
|
176
|
-
exports.SelectableCard = index$L.SelectableCard;
|
|
177
|
-
exports.SelectableCardGroup = index$M.SelectableCardGroup;
|
|
178
|
-
exports.SelectableCardOptionGroup = index$N.SelectableCardOptionGroup;
|
|
179
|
-
exports.SelectInput = index$O.SelectInput;
|
|
180
|
-
exports.Separator = index$P.Separator;
|
|
181
|
-
exports.Skeleton = index$Q.Skeleton;
|
|
182
|
-
exports.Slider = index$R.Slider;
|
|
183
|
-
exports.Snippet = index$S.Snippet;
|
|
184
|
-
exports.Stack = index$T.Stack;
|
|
185
|
-
exports.Status = index$U.Status;
|
|
186
|
-
exports.StepList = index$V.StepList;
|
|
187
|
-
exports.Stepper = index$W.Stepper;
|
|
188
|
-
exports.SwitchButton = index$X.SwitchButton;
|
|
189
|
-
exports.Table = index$Y.Table;
|
|
190
|
-
exports.Tabs = index$Z.Tabs;
|
|
191
|
-
exports.Tag = index$_.Tag;
|
|
192
|
-
exports.TagInput = index$$.TagInput;
|
|
193
|
-
exports.TagList = index$10.TagList;
|
|
194
|
-
exports.Text = index$11.Text;
|
|
195
|
-
exports.TextArea = index$12.TextArea;
|
|
196
|
-
exports.TextInput = index$13.TextInput;
|
|
197
|
-
exports.TimeInput = index$14.TimeInput;
|
|
198
|
-
exports.ToastContainer = index$15.ToastContainer;
|
|
199
|
-
exports.toast = index$15.toast;
|
|
200
|
-
exports.Toggle = index$16.Toggle;
|
|
201
|
-
exports.ToggleGroup = index$17.ToggleGroup;
|
|
202
|
-
exports.Tooltip = index$18.Tooltip;
|
|
203
|
-
exports.UnitInput = index$19.UnitInput;
|
|
204
|
-
exports.VerificationCode = index$1a.VerificationCode;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const themes = require("@ultraviolet/themes");
|
|
6
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
7
|
-
const react = require("react");
|
|
8
|
-
const ThemeContext = react.createContext(themes.consoleLightTheme);
|
|
9
|
-
const useTheme = () => {
|
|
10
|
-
const context = react.useContext(ThemeContext);
|
|
11
|
-
if (!context) {
|
|
12
|
-
throw new Error("useTheme must be used within a ThemeProvider imported from @ultraviolet/ui");
|
|
13
|
-
}
|
|
14
|
-
return context;
|
|
15
|
-
};
|
|
16
|
-
const ThemeProvider = ({
|
|
17
|
-
children,
|
|
18
|
-
theme = themes.consoleLightTheme
|
|
19
|
-
}) => {
|
|
20
|
-
react.useEffect(() => {
|
|
21
|
-
const styleId = "uv-theme";
|
|
22
|
-
const existingStyle = document.getElementById(styleId);
|
|
23
|
-
const cssVars = dynamic.assignInlineVars(themes.theme, theme);
|
|
24
|
-
const cssString = `:root { ${Object.entries(cssVars).map(([key, value]) => `${key}: ${value};`).join(" ")} }`;
|
|
25
|
-
if (existingStyle) {
|
|
26
|
-
existingStyle.textContent = cssString;
|
|
27
|
-
} else {
|
|
28
|
-
const style = document.createElement("style");
|
|
29
|
-
style.id = styleId;
|
|
30
|
-
style.textContent = cssString;
|
|
31
|
-
document.head.appendChild(style);
|
|
32
|
-
}
|
|
33
|
-
return () => {
|
|
34
|
-
const style = document.getElementById(styleId);
|
|
35
|
-
if (style) {
|
|
36
|
-
style.remove();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}, [theme]);
|
|
40
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: theme, children });
|
|
41
|
-
};
|
|
42
|
-
exports.ThemeProvider = ThemeProvider;
|
|
43
|
-
exports.useTheme = useTheme;
|