@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
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const numberinputSideContainer: Record<"large" | "medium" | "small", string>;
|
|
2
|
+
export declare const inputContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
+
controls: {
|
|
4
|
+
false: {
|
|
5
|
+
borderWidth: number;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export declare const unit: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
10
|
+
size: {
|
|
11
|
+
small: {
|
|
12
|
+
height: `var(--${string})`;
|
|
13
|
+
fontSize: `var(--${string})`;
|
|
14
|
+
};
|
|
15
|
+
medium: {
|
|
16
|
+
height: `var(--${string})`;
|
|
17
|
+
fontSize: `var(--${string})`;
|
|
18
|
+
};
|
|
19
|
+
large: {
|
|
20
|
+
height: `var(--${string})`;
|
|
21
|
+
fontSize: `var(--${string})`;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
true: {
|
|
26
|
+
background: `var(--${string})`;
|
|
27
|
+
cursor: "not-allowed";
|
|
28
|
+
userSelect: "none";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readOnly: {
|
|
32
|
+
true: {
|
|
33
|
+
background: `var(--${string})`;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
export declare const numberinput: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
38
|
+
hasUnit: {
|
|
39
|
+
true: {
|
|
40
|
+
textAlign: "left";
|
|
41
|
+
padding: `var(--${string}) 0 var(--${string}) var(--${string})`;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
small: {
|
|
46
|
+
height: `var(--${string})`;
|
|
47
|
+
};
|
|
48
|
+
medium: {
|
|
49
|
+
height: `var(--${string})`;
|
|
50
|
+
};
|
|
51
|
+
large: {
|
|
52
|
+
height: `var(--${string})`;
|
|
53
|
+
fontSize: `var(--${string})`;
|
|
54
|
+
fontFamily: `var(--${string})`;
|
|
55
|
+
fontWeight: `var(--${string})`;
|
|
56
|
+
lineHeight: `var(--${string})`;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
controls: {
|
|
60
|
+
false: {
|
|
61
|
+
textAlign: "left";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
65
|
+
export declare const numberinputContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
66
|
+
state: {
|
|
67
|
+
default: {};
|
|
68
|
+
success: {
|
|
69
|
+
borderColor: `var(--${string})`;
|
|
70
|
+
};
|
|
71
|
+
error: {
|
|
72
|
+
borderColor: `var(--${string})`;
|
|
73
|
+
};
|
|
74
|
+
readOnly: {
|
|
75
|
+
borderColor: `var(--${string})`;
|
|
76
|
+
background: `var(--${string})`;
|
|
77
|
+
cursor: "not-allowed";
|
|
78
|
+
selectors: {
|
|
79
|
+
'&:hover': {
|
|
80
|
+
borderColor: `var(--${string})`;
|
|
81
|
+
};
|
|
82
|
+
'&:focus-within': {
|
|
83
|
+
borderColor: `var(--${string})`;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
disabled: {
|
|
88
|
+
borderColor: `var(--${string})`;
|
|
89
|
+
background: `var(--${string})`;
|
|
90
|
+
cursor: "not-allowed";
|
|
91
|
+
selectors: {
|
|
92
|
+
'&:hover': {
|
|
93
|
+
borderColor: `var(--${string})`;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
size: {
|
|
99
|
+
small: {
|
|
100
|
+
height: `var(--${string})`;
|
|
101
|
+
};
|
|
102
|
+
medium: {
|
|
103
|
+
height: `var(--${string})`;
|
|
104
|
+
};
|
|
105
|
+
large: {
|
|
106
|
+
height: `var(--${string})`;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var numberinputSideContainer = { small: "uv_1ce7gb60", medium: "uv_1ce7gb61", large: "uv_1ce7gb62" };
|
|
4
|
+
var inputContainer = createRuntimeFn({ defaultClassName: "uv_1ce7gb63", variantClassNames: { controls: { false: "uv_1ce7gb64" } }, defaultVariants: { controls: true }, compoundVariants: [] });
|
|
5
|
+
var unit = createRuntimeFn({ defaultClassName: "uv_1ce7gb65", variantClassNames: { size: { small: "uv_1ce7gb66", medium: "uv_1ce7gb67", large: "uv_1ce7gb68" }, disabled: { true: "uv_1ce7gb69" }, readOnly: { true: "uv_1ce7gb6a" } }, defaultVariants: { size: "large", disabled: false, readOnly: false }, compoundVariants: [] });
|
|
6
|
+
var numberinput = createRuntimeFn({ defaultClassName: "uv_1ce7gb6b", variantClassNames: { hasUnit: { true: "uv_1ce7gb6c" }, size: { small: "uv_1ce7gb6d", medium: "uv_1ce7gb6e", large: "uv_1ce7gb6f" }, controls: { false: "uv_1ce7gb6g" } }, defaultVariants: { hasUnit: false, size: "large", controls: true }, compoundVariants: [] });
|
|
7
|
+
var numberinputContainer = createRuntimeFn({ defaultClassName: "uv_1ce7gb6h", variantClassNames: { state: { "default": "uv_1ce7gb6i", success: "uv_1ce7gb6j", error: "uv_1ce7gb6k", readOnly: "uv_1ce7gb6l", disabled: "uv_1ce7gb6m" }, size: { small: "uv_1ce7gb6n", medium: "uv_1ce7gb6o", large: "uv_1ce7gb6p" } }, defaultVariants: { size: "large", state: "default" }, compoundVariants: [] });
|
|
8
|
+
export {
|
|
9
|
+
inputContainer,
|
|
10
|
+
numberinput,
|
|
11
|
+
numberinputContainer,
|
|
12
|
+
numberinputSideContainer,
|
|
13
|
+
unit
|
|
14
|
+
};
|
|
@@ -8,5 +8,5 @@ type PaginationButtonsProps = {
|
|
|
8
8
|
'data-testid'?: string;
|
|
9
9
|
perPage: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const PaginationButtons: ({ page, disabled, onChange, pageCount, pageTabCount, "data-testid": dataTestId, className, perPage, }: PaginationButtonsProps) => import("
|
|
11
|
+
export declare const PaginationButtons: ({ page, disabled, onChange, pageCount, pageTabCount, "data-testid": dataTestId, className, perPage, }: PaginationButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,47 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx, Fragment } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
4
3
|
import { ArrowLeftIcon, ArrowRightIcon } from "@ultraviolet/icons";
|
|
5
4
|
import { useCallback, useMemo } from "react";
|
|
6
5
|
import { Button } from "../Button/index.js";
|
|
7
6
|
import { Stack } from "../Stack/index.js";
|
|
8
7
|
import { Text } from "../Text/index.js";
|
|
9
8
|
import { getPageNumbers } from "./getPageNumbers.js";
|
|
10
|
-
|
|
11
|
-
target: "ej6cbx62"
|
|
12
|
-
} : {
|
|
13
|
-
target: "ej6cbx62",
|
|
14
|
-
label: "PageNumbersContainer"
|
|
15
|
-
})("margin:0 ", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => theme.space["1"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy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gICApXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBrZXk9e3BhZ2VOdW1iZXJ9XG4gICAgICAgICAgICBwYWdlPXtwYWdlfVxuICAgICAgICAgICAgcGFnZU51bWJlcj17cGFnZU51bWJlcn1cbiAgICAgICAgICAgIHBlclBhZ2U9e3BlclBhZ2V9XG4gICAgICAgICAgLz5cbiAgICAgICAgKSl9XG4gICAgICA8L1BhZ2VOdW1iZXJzQ29udGFpbmVyPlxuICAgICAgPFN0YWNrIGdhcD17MX0+XG4gICAgICAgIDxCdXR0b25cbiAgICAgICAgICBhcmlhLWxhYmVsPVwiTmV4dFwiXG4gICAgICAgICAgZGlzYWJsZWQ9e3BhZ2UgPj0gcGFnZUNvdW50IHx8IGRpc2FibGVkfVxuICAgICAgICAgIG9uQ2xpY2s9e2dvVG9OZXh0UGFnZX1cbiAgICAgICAgICBzZW50aW1lbnQ9XCJwcmltYXJ5XCJcbiAgICAgICAgICBzaXplPXtwZXJQYWdlID8gJ3NtYWxsJyA6ICdtZWRpdW0nfVxuICAgICAgICAgIHZhcmlhbnQ9XCJvdXRsaW5lZFwiXG4gICAgICAgID5cbiAgICAgICAgICA8QXJyb3dSaWdodEljb24gLz5cbiAgICAgICAgPC9CdXR0b24+XG4gICAgICA8L1N0YWNrPlxuICAgIDwvU3RhY2s+XG4gIClcbn1cbiJdfQ== */"));
|
|
18
|
-
const PageButton = /* @__PURE__ */ _styled(Button, process.env.NODE_ENV === "production" ? {
|
|
19
|
-
shouldForwardProp: (prop) => !["width"].includes(prop),
|
|
20
|
-
target: "ej6cbx61"
|
|
21
|
-
} : {
|
|
22
|
-
shouldForwardProp: (prop) => !["width"].includes(prop),
|
|
23
|
-
target: "ej6cbx61",
|
|
24
|
-
label: "PageButton"
|
|
25
|
-
})("width:", ({
|
|
26
|
-
theme,
|
|
27
|
-
width
|
|
28
|
-
}) => width === "small" ? theme.sizing[400] : theme.sizing[500], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=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AgIGluZGV4ID09PSAwIHx8XG4gICAgICAgICAgICAgICAgcGFnZU51bWJlcnNUb0Rpc3BsYXlbaW5kZXggLSAxXSA9PT0gcGFnZU51bWJlciAtIDFcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAga2V5PXtwYWdlTnVtYmVyfVxuICAgICAgICAgICAgcGFnZT17cGFnZX1cbiAgICAgICAgICAgIHBhZ2VOdW1iZXI9e3BhZ2VOdW1iZXJ9XG4gICAgICAgICAgICBwZXJQYWdlPXtwZXJQYWdlfVxuICAgICAgICAgIC8+XG4gICAgICAgICkpfVxuICAgICAgPC9QYWdlTnVtYmVyc0NvbnRhaW5lcj5cbiAgICAgIDxTdGFjayBnYXA9ezF9PlxuICAgICAgICA8QnV0dG9uXG4gICAgICAgICAgYXJpYS1sYWJlbD1cIk5leHRcIlxuICAgICAgICAgIGRpc2FibGVkPXtwYWdlID49IHBhZ2VDb3VudCB8fCBkaXNhYmxlZH1cbiAgICAgICAgICBvbkNsaWNrPXtnb1RvTmV4dFBhZ2V9XG4gICAgICAgICAgc2VudGltZW50PVwicHJpbWFyeVwiXG4gICAgICAgICAgc2l6ZT17cGVyUGFnZSA/ICdzbWFsbCcgOiAnbWVkaXVtJ31cbiAgICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgICA+XG4gICAgICAgICAgPEFycm93UmlnaHRJY29uIC8+XG4gICAgICAgIDwvQnV0dG9uPlxuICAgICAgPC9TdGFjaz5cbiAgICA8L1N0YWNrPlxuICApXG59XG4iXX0= */"));
|
|
29
|
-
const Ellipsis = /* @__PURE__ */ _styled(Text, process.env.NODE_ENV === "production" ? {
|
|
30
|
-
shouldForwardProp: (prop) => !["width"].includes(prop),
|
|
31
|
-
target: "ej6cbx60"
|
|
32
|
-
} : {
|
|
33
|
-
shouldForwardProp: (prop) => !["width"].includes(prop),
|
|
34
|
-
target: "ej6cbx60",
|
|
35
|
-
label: "Ellipsis"
|
|
36
|
-
})("align-content:center;padding:", ({
|
|
37
|
-
theme
|
|
38
|
-
}) => theme.space[1], ";height:", ({
|
|
39
|
-
theme,
|
|
40
|
-
size
|
|
41
|
-
}) => size === "small" ? theme.sizing[400] : theme.sizing[500], ";width:", ({
|
|
42
|
-
theme,
|
|
43
|
-
size
|
|
44
|
-
}) => size === "small" ? theme.sizing[400] : theme.sizing[500], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1BhZ2luYXRpb24vUGFnaW5hdGlvbkJ1dHRvbnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNCb0IiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvdWkvc3JjL2NvbXBvbmVudHMvUGFnaW5hdGlvbi9QYWdpbmF0aW9uQnV0dG9ucy50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBBcnJvd0xlZnRJY29uLCBBcnJvd1JpZ2h0SWNvbiB9IGZyb20gJ0B1bHRyYXZpb2xldC9pY29ucydcbmltcG9ydCB7IHVzZUNhbGxiYWNrLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBCdXR0b24gfSBmcm9tICcuLi9CdXR0b24nXG5pbXBvcnQgeyBTdGFjayB9IGZyb20gJy4uL1N0YWNrJ1xuaW1wb3J0IHsgVGV4dCB9IGZyb20gJy4uL1RleHQnXG5pbXBvcnQgeyBnZXRQYWdlTnVtYmVycyB9IGZyb20gJy4vZ2V0UGFnZU51b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KHBhZ2VOdW1iZXIsIGluZGV4KSA9PiAoXG4gICAgICAgICAgPE1ha2VCdXR0b25cbiAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgIGhhbmRsZVBhZ2VDbGljaz17aGFuZGxlUGFnZUNsaWNrfVxuICAgICAgICAgICAgaGFzRWxsaXBzaXNCZWZvcmU9e1xuICAgICAgICAgICAgICAhKFxuICAgICAgICAgICAgICAgIGluZGV4ID09PSAwIHx8XG4gICAgICAgICAgICAgICAgcGFnZU51bWJlcnNUb0Rpc3BsYXlbaW5kZXggLSAxXSA9PT0gcGFnZU51bWJlciAtIDFcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAga2V5PXtwYWdlTnVtYmVyfVxuICAgICAgICAgICAgcGFnZT17cGFnZX1cbiAgICAgICAgICAgIHBhZ2VOdW1iZXI9e3BhZ2VOdW1iZXJ9XG4gICAgICAgICAgICBwZXJQYWdlPXtwZXJQYWdlfVxuICAgICAgICAgIC8+XG4gICAgICAgICkpfVxuICAgICAgPC9QYWdlTnVtYmVyc0NvbnRhaW5lcj5cbiAgICAgIDxTdGFjayBnYXA9ezF9PlxuICAgICAgICA8QnV0dG9uXG4gICAgICAgICAgYXJpYS1sYWJlbD1cIk5leHRcIlxuICAgICAgICAgIGRpc2FibGVkPXtwYWdlID49IHBhZ2VDb3VudCB8fCBkaXNhYmxlZH1cbiAgICAgICAgICBvbkNsaWNrPXtnb1RvTmV4dFBhZ2V9XG4gICAgICAgICAgc2VudGltZW50PVwicHJpbWFyeVwiXG4gICAgICAgICAgc2l6ZT17cGVyUGFnZSA/ICdzbWFsbCcgOiAnbWVkaXVtJ31cbiAgICAgICAgICB2YXJpYW50PVwib3V0bGluZWRcIlxuICAgICAgICA+XG4gICAgICAgICAgPEFycm93UmlnaHRJY29uIC8+XG4gICAgICAgIDwvQnV0dG9uPlxuICAgICAgPC9TdGFjaz5cbiAgICA8L1N0YWNrPlxuICApXG59XG4iXX0= */"));
|
|
9
|
+
import { pageNumbersContainer, ellipsisClass, pageButton } from "./styles.css.js";
|
|
45
10
|
const MakeButton = ({
|
|
46
11
|
hasEllipsisBefore,
|
|
47
12
|
pageNumber,
|
|
@@ -50,8 +15,34 @@ const MakeButton = ({
|
|
|
50
15
|
handlePageClick,
|
|
51
16
|
perPage
|
|
52
17
|
}) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
|
-
hasEllipsisBefore ? /* @__PURE__ */ jsx(
|
|
54
|
-
|
|
18
|
+
hasEllipsisBefore ? /* @__PURE__ */ jsx(
|
|
19
|
+
Text,
|
|
20
|
+
{
|
|
21
|
+
"aria-label": "ellipsis",
|
|
22
|
+
as: "span",
|
|
23
|
+
className: ellipsisClass[perPage ? "small" : "medium"],
|
|
24
|
+
disabled,
|
|
25
|
+
placement: "center",
|
|
26
|
+
prominence: "default",
|
|
27
|
+
sentiment: "neutral",
|
|
28
|
+
variant: "body",
|
|
29
|
+
children: "..."
|
|
30
|
+
}
|
|
31
|
+
) : null,
|
|
32
|
+
/* @__PURE__ */ jsx(
|
|
33
|
+
Button,
|
|
34
|
+
{
|
|
35
|
+
"aria-current": pageNumber === page,
|
|
36
|
+
className: pageButton[perPage ? "small" : "medium"],
|
|
37
|
+
disabled,
|
|
38
|
+
onClick: handlePageClick(pageNumber),
|
|
39
|
+
sentiment: pageNumber === page ? "primary" : "neutral",
|
|
40
|
+
size: perPage ? "small" : "medium",
|
|
41
|
+
type: "button",
|
|
42
|
+
variant: pageNumber === page ? "filled" : "outlined",
|
|
43
|
+
children: pageNumber
|
|
44
|
+
}
|
|
45
|
+
)
|
|
55
46
|
] });
|
|
56
47
|
const PaginationButtons = ({
|
|
57
48
|
page,
|
|
@@ -69,14 +60,53 @@ const PaginationButtons = ({
|
|
|
69
60
|
const goToPreviousPage = useCallback(() => {
|
|
70
61
|
onChange(page - 1);
|
|
71
62
|
}, [onChange, page]);
|
|
72
|
-
const pageNumbersToDisplay = useMemo(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
const pageNumbersToDisplay = useMemo(
|
|
64
|
+
() => pageCount > 1 ? getPageNumbers(page, pageCount, pageTabCount) : [1],
|
|
65
|
+
[page, pageCount, pageTabCount]
|
|
66
|
+
);
|
|
67
|
+
const handlePageClick = useCallback(
|
|
68
|
+
(pageNumber) => () => {
|
|
69
|
+
onChange(pageNumber);
|
|
70
|
+
},
|
|
71
|
+
[onChange]
|
|
72
|
+
);
|
|
76
73
|
return /* @__PURE__ */ jsxs(Stack, { className, "data-testid": dataTestId, direction: "row", children: [
|
|
77
|
-
/* @__PURE__ */ jsx(Stack, { gap: 1, children: /* @__PURE__ */ jsx(
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
/* @__PURE__ */ jsx(Stack, { gap: 1, children: /* @__PURE__ */ jsx(
|
|
75
|
+
Button,
|
|
76
|
+
{
|
|
77
|
+
"aria-label": "Back",
|
|
78
|
+
disabled: page <= 1 || disabled,
|
|
79
|
+
onClick: goToPreviousPage,
|
|
80
|
+
sentiment: "primary",
|
|
81
|
+
size: perPage ? "small" : "medium",
|
|
82
|
+
variant: "outlined",
|
|
83
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
84
|
+
}
|
|
85
|
+
) }),
|
|
86
|
+
/* @__PURE__ */ jsx(Stack, { className: pageNumbersContainer, direction: "row", gap: 1, children: pageNumbersToDisplay.map((pageNumber, index) => /* @__PURE__ */ jsx(
|
|
87
|
+
MakeButton,
|
|
88
|
+
{
|
|
89
|
+
disabled,
|
|
90
|
+
handlePageClick,
|
|
91
|
+
hasEllipsisBefore: !(index === 0 || pageNumbersToDisplay[index - 1] === pageNumber - 1),
|
|
92
|
+
page,
|
|
93
|
+
pageNumber,
|
|
94
|
+
perPage
|
|
95
|
+
},
|
|
96
|
+
pageNumber
|
|
97
|
+
)) }),
|
|
98
|
+
/* @__PURE__ */ jsx(Stack, { gap: 1, children: /* @__PURE__ */ jsx(
|
|
99
|
+
Button,
|
|
100
|
+
{
|
|
101
|
+
"aria-label": "Next",
|
|
102
|
+
disabled: page >= pageCount || disabled,
|
|
103
|
+
onClick: goToNextPage,
|
|
104
|
+
sentiment: "primary",
|
|
105
|
+
size: perPage ? "small" : "medium",
|
|
106
|
+
variant: "outlined",
|
|
107
|
+
children: /* @__PURE__ */ jsx(ArrowRightIcon, {})
|
|
108
|
+
}
|
|
109
|
+
) })
|
|
80
110
|
] });
|
|
81
111
|
};
|
|
82
112
|
export {
|
|
@@ -8,5 +8,5 @@ type PerPageProps = {
|
|
|
8
8
|
page: number;
|
|
9
9
|
numberOfItems: number;
|
|
10
10
|
};
|
|
11
|
-
export declare const PerPage: ({ perPage, onChangePerPage, perPageText, setPerPage, numberOfItemsText, page, numberOfItems, }: PerPageProps) => import("
|
|
11
|
+
export declare const PerPage: ({ perPage, onChangePerPage, perPageText, setPerPage, numberOfItemsText, page, numberOfItems, }: PerPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,38 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
3
|
import { SelectInput } from "../SelectInput/index.js";
|
|
5
4
|
import { Stack } from "../Stack/index.js";
|
|
6
5
|
import { Text } from "../Text/index.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} : {
|
|
26
|
-
target: "ehm0l0i0",
|
|
27
|
-
label: "StyledSelectInput"
|
|
28
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
29
|
-
name: "1vwd1t",
|
|
30
|
-
styles: "width:fit-content;min-width:none"
|
|
31
|
-
} : {
|
|
32
|
-
name: "1vwd1t",
|
|
33
|
-
styles: "width:fit-content;min-width:none/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1BhZ2luYXRpb24vUGVyUGFnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkI2QyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9QYWdpbmF0aW9uL1BlclBhZ2UudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHR5cGUgeyBEaXNwYXRjaCwgU2V0U3RhdGVBY3Rpb24gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFNlbGVjdElucHV0IH0gZnJvbSAnLi4vU2VsZWN0SW5wdXQnXG5pbXBvcnQgeyBTdGFjayB9IGZyb20gJy4uL1N0YWNrJ1xuaW1wb3J0IHsgVGV4dCB9IGZyb20gJy4uL1RleHQnXG5cbmNvbnN0IG9wdGlvbnNJdGVtc1BlclBhZ2UgPSBbXG4gIHtcbiAgICBsYWJlbDogJzEwJyxcbiAgICB2YWx1ZTogJzEwJyxcbiAgfSxcbiAge1xuICAgIGxhYmVsOiAnMjUnLFxuICAgIHZhbHVlOiAnMjUnLFxuICB9LFxuICB7XG4gICAgbGFiZWw6ICc1MCcsXG4gICAgdmFsdWU6ICc1MCcsXG4gIH0sXG4gIHtcbiAgICBsYWJlbDogJzEwMCcsXG4gICAgdmFsdWU6ICcxMDAnLFxu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dmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAge3BlclBhZ2VUZXh0ID8/ICdJdGVtcyBwZXIgcGFnZSd9XG4gICAgICA8L1RleHQ+XG4gICAgICA8U3R5bGVkU2VsZWN0SW5wdXRcbiAgICAgICAgbmFtZT1cInNlbGVjdC1pdGVtcy1wZXItcGFnZVwiXG4gICAgICAgIG9uQ2hhbmdlPXtoYW5kbGVDaGFuZ2V9XG4gICAgICAgIG9wdGlvbnM9e29wdGlvbnNJdGVtc1BlclBhZ2V9XG4gICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgIHZhbHVlPXtwZXJQYWdlLnRvU3RyaW5nKCl9XG4gICAgICAvPlxuICAgICAgPFRleHQgYXM9XCJzcGFuXCIgcHJvbWluZW5jZT1cIndlYWtcIiBzZW50aW1lbnQ9XCJuZXV0cmFsXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAgeyhwYWdlIC0gMSkgKiBwZXJQYWdlICsgMX0te01hdGgubWluKHBhZ2UgKiBwZXJQYWdlLCBudW1iZXJPZkl0ZW1zKX17JyAnfVxuICAgICAgICB7bnVtYmVyT2ZJdGVtc1RleHQgPz8gYG9mICR7bnVtYmVyT2ZJdGVtc30gaXRlbXNcImB9XG4gICAgICA8L1RleHQ+XG4gICAgPC9TdGFjaz5cbiAgKVxufVxuIl19 */",
|
|
34
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
35
|
-
});
|
|
6
|
+
const optionsItemsPerPage = [
|
|
7
|
+
{
|
|
8
|
+
label: "10",
|
|
9
|
+
value: "10"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
label: "25",
|
|
13
|
+
value: "25"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
label: "50",
|
|
17
|
+
value: "50"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "100",
|
|
21
|
+
value: "100"
|
|
22
|
+
}
|
|
23
|
+
];
|
|
36
24
|
const PerPage = ({
|
|
37
25
|
perPage,
|
|
38
26
|
onChangePerPage,
|
|
@@ -49,7 +37,19 @@ const PerPage = ({
|
|
|
49
37
|
};
|
|
50
38
|
return /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", gap: "2", children: [
|
|
51
39
|
/* @__PURE__ */ jsx(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "body", children: perPageText ?? "Items per page" }),
|
|
52
|
-
/* @__PURE__ */ jsx(
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
SelectInput,
|
|
42
|
+
{
|
|
43
|
+
name: "select-items-per-page",
|
|
44
|
+
onChange: handleChange,
|
|
45
|
+
options: optionsItemsPerPage,
|
|
46
|
+
size: "small",
|
|
47
|
+
style: {
|
|
48
|
+
width: "fit-content"
|
|
49
|
+
},
|
|
50
|
+
value: perPage.toString()
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
53
|
/* @__PURE__ */ jsxs(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "body", children: [
|
|
54
54
|
(page - 1) * perPage + 1,
|
|
55
55
|
"-",
|
|
@@ -3,20 +3,19 @@ const getPageNumbers = (currentPage, pageCount, range = 5) => {
|
|
|
3
3
|
const truncationBefore = currentPage >= range;
|
|
4
4
|
const truncationAfter = currentPage <= pageCount - range + 1 || currentPage < range;
|
|
5
5
|
if (pageCount <= range) {
|
|
6
|
-
return Array.from({
|
|
7
|
-
length: pageCount
|
|
8
|
-
}, (_, index) => index + 1);
|
|
6
|
+
return Array.from({ length: pageCount }, (_, index) => index + 1);
|
|
9
7
|
}
|
|
10
|
-
const pagesToShowBeforeTruncation = truncationBefore ? [1] : Array.from({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
const pagesToShowBeforeTruncation = truncationBefore ? [1] : Array.from({ length: range }, (_, index) => index + 1);
|
|
9
|
+
const pagesToShowAfterTruncation = truncationAfter ? [pageCount] : Array.from({ length: range }, (_, index) => index + pageCount - range + 1);
|
|
10
|
+
const pagesToShowBetweenTruncation = truncationBefore && truncationAfter ? Array.from(
|
|
11
|
+
{ length: NUMBER_OF_BUTTONS_IN_BETWEEN },
|
|
12
|
+
(_, index) => currentPage + index - 1
|
|
13
|
+
) : [];
|
|
14
|
+
return [
|
|
15
|
+
...pagesToShowBeforeTruncation,
|
|
16
|
+
...pagesToShowBetweenTruncation,
|
|
17
|
+
...pagesToShowAfterTruncation
|
|
18
|
+
];
|
|
20
19
|
};
|
|
21
20
|
export {
|
|
22
21
|
getPageNumbers
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
type PaginationProps = {
|
|
2
3
|
/**
|
|
3
4
|
Event function called when changing the page
|
|
@@ -20,6 +21,7 @@ type PaginationProps = {
|
|
|
20
21
|
*/
|
|
21
22
|
disabled?: boolean;
|
|
22
23
|
className?: string;
|
|
24
|
+
style?: CSSProperties;
|
|
23
25
|
'data-testid'?: string;
|
|
24
26
|
} & ({
|
|
25
27
|
/**
|
|
@@ -53,5 +55,5 @@ type PaginationProps = {
|
|
|
53
55
|
* Pagination is a component to navigate between pages, it is composed of 2 buttons to go to the previous and next page,
|
|
54
56
|
* and a list of buttons to go to a specific page.
|
|
55
57
|
*/
|
|
56
|
-
export declare const Pagination: ({ disabled, page, pageCount, onChange, pageTabCount, className, perPage, onChangePerPage, perPageText, numberOfItemsText, numberOfItems, "data-testid": dataTestId, }: PaginationProps) => import("
|
|
58
|
+
export declare const Pagination: ({ disabled, page, pageCount, onChange, pageTabCount, className, perPage, onChangePerPage, perPageText, numberOfItemsText, numberOfItems, "data-testid": dataTestId, style, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
59
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx } from "
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { Stack } from "../Stack/index.js";
|
|
5
5
|
import { PaginationButtons } from "./PaginationButtons.js";
|
|
@@ -16,7 +16,8 @@ const Pagination = ({
|
|
|
16
16
|
perPageText,
|
|
17
17
|
numberOfItemsText,
|
|
18
18
|
numberOfItems,
|
|
19
|
-
"data-testid": dataTestId
|
|
19
|
+
"data-testid": dataTestId,
|
|
20
|
+
style
|
|
20
21
|
}) => {
|
|
21
22
|
const [perPageComputed, setPerPage] = useState(perPage ?? 10);
|
|
22
23
|
useEffect(() => {
|
|
@@ -32,9 +33,32 @@ const Pagination = ({
|
|
|
32
33
|
setPerPage(perPage);
|
|
33
34
|
}
|
|
34
35
|
}, [perPage]);
|
|
35
|
-
return /* @__PURE__ */ jsxs(Stack, { direction: "row", justifyContent: "space-between", children: [
|
|
36
|
-
perPage ? /* @__PURE__ */ jsx(
|
|
37
|
-
|
|
36
|
+
return /* @__PURE__ */ jsxs(Stack, { direction: "row", justifyContent: "space-between", style, children: [
|
|
37
|
+
perPage ? /* @__PURE__ */ jsx(
|
|
38
|
+
PerPage,
|
|
39
|
+
{
|
|
40
|
+
numberOfItems,
|
|
41
|
+
numberOfItemsText,
|
|
42
|
+
onChangePerPage,
|
|
43
|
+
page,
|
|
44
|
+
perPage: perPageComputed,
|
|
45
|
+
perPageText,
|
|
46
|
+
setPerPage
|
|
47
|
+
}
|
|
48
|
+
) : null,
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
PaginationButtons,
|
|
51
|
+
{
|
|
52
|
+
className,
|
|
53
|
+
"data-testid": dataTestId,
|
|
54
|
+
disabled,
|
|
55
|
+
onChange,
|
|
56
|
+
page,
|
|
57
|
+
pageCount,
|
|
58
|
+
pageTabCount,
|
|
59
|
+
perPage: !!perPage
|
|
60
|
+
}
|
|
61
|
+
)
|
|
38
62
|
] });
|
|
39
63
|
};
|
|
40
64
|
export {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
var pageNumbersContainer = "uv_a0295u0";
|
|
3
|
+
var pageButton = { small: "uv_a0295u1", medium: "uv_a0295u2" };
|
|
4
|
+
var ellipsisClass = { small: "uv_a0295u4 uv_a0295u3", medium: "uv_a0295u5 uv_a0295u3" };
|
|
5
|
+
export {
|
|
6
|
+
ellipsisClass,
|
|
7
|
+
pageButton,
|
|
8
|
+
pageNumbersContainer
|
|
9
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
type Rule = {
|
|
2
3
|
name: string;
|
|
3
4
|
text: string;
|
|
@@ -11,10 +12,11 @@ type PasswordCheckProps = {
|
|
|
11
12
|
rules: Rule[];
|
|
12
13
|
className?: string;
|
|
13
14
|
'data-testid'?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* PasswordCheck is a component that display a list of password rules with a check or a cross depending on the validity
|
|
17
19
|
* of the rule.
|
|
18
20
|
*/
|
|
19
|
-
export declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, }: PasswordCheckProps) => import("
|
|
21
|
+
export declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, style, }: PasswordCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -1,25 +1,40 @@
|
|
|
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 { CheckCircleOutlineIcon, CloseCircleOutlineIcon } from "@ultraviolet/icons";
|
|
5
4
|
import { Stack } from "../Stack/index.js";
|
|
6
5
|
import { Text } from "../Text/index.js";
|
|
7
|
-
|
|
8
|
-
target: "eunxap90"
|
|
9
|
-
} : {
|
|
10
|
-
target: "eunxap90",
|
|
11
|
-
label: "PasswordCheckContainer"
|
|
12
|
-
})("display:grid;grid-template-columns:repeat(2, 1fr);gap:", ({
|
|
13
|
-
theme
|
|
14
|
-
}) => theme.space["1"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1Bhc3N3b3JkQ2hlY2svaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBCeUMiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvdWkvc3JjL2NvbXBvbmVudHMvUGFzc3dvcmRDaGVjay9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQge1xuICBDaGVja0NpcmNsZU91dGxpbmVJY29uLFxuICBDbG9zZUNpcmNsZU91dGxpbmVJY29uLFxufSBmcm9tICdAdWx0cmF2aW9sZXQvaWNvbnMnXG5pbXBvcnQgeyBTdGFjayB9IGZyb20gJy4uL1N0YWNrJ1xuaW1wb3J0IHsgVGV4dCB9IGZyb20gJy4uL1RleHQnXG5cbnR5cGUgUnVsZSA9IHtcbiAgbmFtZTogc3RyaW5nXG4gIHRleHQ6IHN0cmluZ1xuICB2YWxpZDogYm9vbGVhblxufVxuXG50eXBlIFBhc3N3b3JkQ2hlY2tQcm9wcyA9IHtcbiAgLyoqXG4gICAqIElzIGFuIGFycmF5IG9mIG9iamVjdCB0aGF0IGNvbnRhaW5zIHBhc3N3b3JkIHJ1bGVzLiBgbmFtZWAgaXMgdGhlIG5hbWUgb2YgdGhlIHJ1bGUsIGB0ZXh0YCB0aGUgdGV4dCBh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PENoZWNrQ2lyY2xlT3V0bGluZUljb25cbiAgICAgICAgICAgIHByb21pbmVuY2U9XCJ3ZWFrXCJcbiAgICAgICAgICAgIHNlbnRpbWVudD1cInN1Y2Nlc3NcIlxuICAgICAgICAgICAgc2l6ZT1cImxhcmdlXCJcbiAgICAgICAgICAvPlxuICAgICAgICApIDogKFxuICAgICAgICAgIDxDbG9zZUNpcmNsZU91dGxpbmVJY29uXG4gICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgIHNpemU9XCJsYXJnZVwiXG4gICAgICAgICAgLz5cbiAgICAgICAgKX1cblxuICAgICAgICA8VGV4dCBhcz1cInBcIiB2YXJpYW50PVwiYm9keVNtYWxsXCI+XG4gICAgICAgICAge3J1bGUudGV4dH1cbiAgICAgICAgPC9UZXh0PlxuICAgICAgPC9TdGFjaz5cbiAgICApKX1cbiAgPC9QYXNzd29yZENoZWNrQ29udGFpbmVyPlxuKVxuIl19 */"));
|
|
6
|
+
import { passwordCheckContainer } from "./styles.css.js";
|
|
15
7
|
const PasswordCheck = ({
|
|
16
8
|
rules,
|
|
17
9
|
className,
|
|
18
|
-
"data-testid": dataTestId
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
"data-testid": dataTestId,
|
|
11
|
+
style
|
|
12
|
+
}) => /* @__PURE__ */ jsx(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
className: `${className ? `${className} ` : ""}${passwordCheckContainer}`,
|
|
16
|
+
"data-testid": dataTestId,
|
|
17
|
+
style,
|
|
18
|
+
children: rules.map((rule) => /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", gap: 1, children: [
|
|
19
|
+
rule.valid ? /* @__PURE__ */ jsx(
|
|
20
|
+
CheckCircleOutlineIcon,
|
|
21
|
+
{
|
|
22
|
+
prominence: "weak",
|
|
23
|
+
sentiment: "success",
|
|
24
|
+
size: "large"
|
|
25
|
+
}
|
|
26
|
+
) : /* @__PURE__ */ jsx(
|
|
27
|
+
CloseCircleOutlineIcon,
|
|
28
|
+
{
|
|
29
|
+
prominence: "weak",
|
|
30
|
+
sentiment: "neutral",
|
|
31
|
+
size: "large"
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ jsx(Text, { as: "p", variant: "bodySmall", children: rule.text })
|
|
35
|
+
] }, rule.name))
|
|
36
|
+
}
|
|
37
|
+
);
|
|
23
38
|
export {
|
|
24
39
|
PasswordCheck
|
|
25
40
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const passwordCheckContainer: string;
|
|
@@ -5,5 +5,5 @@ type LegendsProps = {
|
|
|
5
5
|
onFocusChange: (index?: string) => void;
|
|
6
6
|
colors: string[];
|
|
7
7
|
};
|
|
8
|
-
declare const Legends: ({ focused, data, onFocusChange, colors }: LegendsProps) => import("
|
|
9
|
-
export
|
|
8
|
+
export declare const Legends: ({ focused, data, onFocusChange, colors, }: LegendsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|