@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,4 +1,4 @@
|
|
|
1
|
-
import type { MouseEvent as ReactMouseEvent, ReactNode } from 'react';
|
|
1
|
+
import type { KeyboardEvent, MouseEvent as ReactMouseEvent, ReactNode } from 'react';
|
|
2
2
|
type ItemProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
|
|
@@ -8,9 +8,10 @@ type ItemProps = {
|
|
|
8
8
|
to?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onClick?: (event: ReactMouseEvent<HTMLLIElement>) => void;
|
|
11
|
+
onKeyDown?: (event: KeyboardEvent<HTMLLIElement>) => void;
|
|
11
12
|
className?: string;
|
|
12
13
|
maxWidth?: string;
|
|
13
14
|
minWidth?: string;
|
|
14
15
|
};
|
|
15
|
-
export declare const Item: ({ to, children, disabled, "aria-current": ariaCurrent, onClick, className, maxWidth, minWidth, }: ItemProps) => import("
|
|
16
|
+
export declare const Item: ({ to, children, disabled, "aria-current": ariaCurrent, onClick, onKeyDown, className, maxWidth, minWidth, }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -1,56 +1,77 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
3
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
4
|
+
import { useMemo } from "react";
|
|
4
5
|
import { Button } from "../../Button/index.js";
|
|
5
6
|
import { Link } from "../../Link/index.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
target: "ebtif2m2"
|
|
9
|
-
} : {
|
|
10
|
-
target: "ebtif2m2",
|
|
11
|
-
label: "StyledLink"
|
|
12
|
-
})("padding-right:", ({
|
|
13
|
-
theme
|
|
14
|
-
}) => theme.space["1"], ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0JyZWFkY3J1bWJzL2NvbXBvbmVudHMvSXRlbS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUStCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0JyZWFkY3J1bWJzL2NvbXBvbmVudHMvSXRlbS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgdHlwZSB7IE1vdXNlRXZlbnQgYXMgUmVhY3RNb3VzZUV2ZW50LCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEJ1dHRvbiB9IGZyb20gJy4uLy4uL0J1dHRvbidcbmltcG9ydCB7IExpbmsgfSBmcm9tICcuLi8uLi9MaW5rJ1xuaW1wb3J0IHsgSEVJR0hUIH0gZnJvbSAnLi4vY29uc3RhbnRzJ1xuXG5jb25zdCBTdHlsZWRMaW5rID0gc3R5bGVkKExpbmspYFxuICBwYWRkaW5nLXJpZ2h0OiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLnN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NsYXNzTmFtZSxcbiAgbWF4V2lkdGgsXG4gIG1pbldpZHRoLFxufTogSXRlbVByb3BzKSA9PiAoXG4gIDxJdGVtQ29udGFpbmVyXG4gICAgYXJpYS1jdXJyZW50PXthcmlhQ3VycmVudH1cbiAgICBhcmlhLWRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICBtYXhXaWR0aD17bWF4V2lkdGh9XG4gICAgbWluV2lkdGg9e21pbldpZHRofVxuICAgIG9uQ2xpY2s9e29uQ2xpY2t9XG4gID5cbiAgICB7dG8gPyAoXG4gICAgICA8U3R5bGVkTGluayBocmVmPXt0b30gcHJvbWluZW5jZT1cInN0cm9uZ2VyXCIgc2l6ZT1cInNtYWxsXCI+XG4gICAgICAgIHtjaGlsZHJlbn1cbiAgICAgIDwvU3R5bGVkTGluaz5cbiAgICApIDogKFxuICAgICAgPFN0eWxlZEJ1dHRvblxuICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgIG1heFdpZHRoPXttYXhXaWR0aH1cbiAgICAgICAgbWluV2lkdGg9e21pbldpZHRofVxuICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgdmFyaWFudD1cImdob3N0XCJcbiAgICAgID5cbiAgICAgICAge2NoaWxkcmVufVxuICAgICAgPC9TdHlsZWRCdXR0b24+XG4gICAgKX1cbiAgPC9JdGVtQ29udGFpbmVyPlxuKVxuIl19 */"));
|
|
15
|
-
const StyledButton = /* @__PURE__ */ _styled(Button, process.env.NODE_ENV === "production" ? {
|
|
16
|
-
target: "ebtif2m1"
|
|
17
|
-
} : {
|
|
18
|
-
target: "ebtif2m1",
|
|
19
|
-
label: "StyledButton"
|
|
20
|
-
})("min-width:", ({
|
|
21
|
-
minWidth
|
|
22
|
-
}) => minWidth || "auto", ";max-width:", ({
|
|
23
|
-
maxWidth
|
|
24
|
-
}) => maxWidth || "fit-content", ";overflow:hidden;white-space:nowrap;display:block;text-overflow:ellipsis;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0JyZWFkY3J1bWJzL2NvbXBvbmVudHMvSXRlbS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZTZFIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0JyZWFkY3J1bWJzL2NvbXBvbmVudHMvSXRlbS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgdHlwZSB7IE1vdXNlRXZlbnQgYXMgUmVhY3RNb3VzZUV2ZW50LCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEJ1dHRvbiB9IGZyb20gJy4uLy4uL0J1dHRvbidcbmltcG9ydCB7IExpbmsgfSBmcm9tICcuLi8uLi9MaW5rJ1xuaW1wb3J0IHsgSEVJR0hUIH0gZnJvbSAnLi4vY29uc3RhbnRzJ1xuXG5jb25zdCBTdHlsZWRMaW5rID0gc3R5bGVkKExpbmspYFxuICBwYWRkaW5nLXJpZ2h0OiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLnNwYWNlWycxJ119O1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbmBcblxuY29uc3QgU3R5bGVkQnV0dG9uID0gc3R5bGVkK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pc2FibGVkPXtkaXNhYmxlZH1cbiAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICBtYXhXaWR0aD17bWF4V2lkdGh9XG4gICAgbWluV2lkdGg9e21pbldpZHRofVxuICAgIG9uQ2xpY2s9e29uQ2xpY2t9XG4gID5cbiAgICB7dG8gPyAoXG4gICAgICA8U3R5bGVkTGluayBocmVmPXt0b30gcHJvbWluZW5jZT1cInN0cm9uZ2VyXCIgc2l6ZT1cInNtYWxsXCI+XG4gICAgICAgIHtjaGlsZHJlbn1cbiAgICAgIDwvU3R5bGVkTGluaz5cbiAgICApIDogKFxuICAgICAgPFN0eWxlZEJ1dHRvblxuICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgIG1heFdpZHRoPXttYXhXaWR0aH1cbiAgICAgICAgbWluV2lkdGg9e21pbldpZHRofVxuICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgdmFyaWFudD1cImdob3N0XCJcbiAgICAgID5cbiAgICAgICAge2NoaWxkcmVufVxuICAgICAgPC9TdHlsZWRCdXR0b24+XG4gICAgKX1cbiAgPC9JdGVtQ29udGFpbmVyPlxuKVxuIl19 */"));
|
|
25
|
-
const ItemContainer = /* @__PURE__ */ _styled("li", process.env.NODE_ENV === "production" ? {
|
|
26
|
-
target: "ebtif2m0"
|
|
27
|
-
} : {
|
|
28
|
-
target: "ebtif2m0",
|
|
29
|
-
label: "ItemContainer"
|
|
30
|
-
})("display:inline;height:", HEIGHT, ";display:flex;align-items:center;flex:1;min-width:", ({
|
|
31
|
-
minWidth
|
|
32
|
-
}) => minWidth || "auto", ";max-width:", ({
|
|
33
|
-
maxWidth
|
|
34
|
-
}) => maxWidth || "fit-content", ";", ({
|
|
35
|
-
onClick
|
|
36
|
-
}) => onClick ? `
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
&[aria-disabled="true"] {
|
|
39
|
-
pointer-events: none;
|
|
40
|
-
}
|
|
41
|
-
` : ``, " &:not(:first-child){", StyledLink, "{padding:0 ", ({
|
|
42
|
-
theme
|
|
43
|
-
}) => theme.space["1"], ";}}&:last-child{", StyledLink, "{pointer-events:none;}", StyledButton, "{pointer-events:none;cursor:default;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0JyZWFkY3J1bWJzL2NvbXBvbmVudHMvSXRlbS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0J5RSIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9CcmVhZGNydW1icy9jb21wb25lbnRzL0l0ZW0udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHR5cGUgeyBNb3VzZUV2ZW50IGFzIFJlYWN0TW91c2VFdmVudCwgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBCdXR0b24gfSBmcm9tICcuLi8uLi9CdXR0b24nXG5pbXBvcnQgeyBMaW5rIH0gZnJvbSAnLi4vLi4vTGluaydcbmltcG9ydCB7IEhFSUdIVCB9IGZyb20gJy4uL2NvbnN0YW50cydcblxuY29uc3QgU3R5bGVkTGluayA9IHN0eWxlZChMaW5rKWBcbiAgcGFkZGluZy1yaWdodDogJHsoeyB0aGVtZSB9KSA9PiB0aGVtZS5zcGFjZVsnMSddfTtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgb3ZlcmZsb3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ZW1Qcm9wcykgPT4gKFxuICA8SXRlbUNvbnRhaW5lclxuICAgIGFyaWEtY3VycmVudD17YXJpYUN1cnJlbnR9XG4gICAgYXJpYS1kaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgbWF4V2lkdGg9e21heFdpZHRofVxuICAgIG1pbldpZHRoPXttaW5XaWR0aH1cbiAgICBvbkNsaWNrPXtvbkNsaWNrfVxuICA+XG4gICAge3RvID8gKFxuICAgICAgPFN0eWxlZExpbmsgaHJlZj17dG99IHByb21pbmVuY2U9XCJzdHJvbmdlclwiIHNpemU9XCJzbWFsbFwiPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L1N0eWxlZExpbms+XG4gICAgKSA6IChcbiAgICAgIDxTdHlsZWRCdXR0b25cbiAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICBtYXhXaWR0aD17bWF4V2lkdGh9XG4gICAgICAgIG1pbldpZHRoPXttaW5XaWR0aH1cbiAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgIHZhcmlhbnQ9XCJnaG9zdFwiXG4gICAgICA+XG4gICAgICAgIHtjaGlsZHJlbn1cbiAgICAgIDwvU3R5bGVkQnV0dG9uPlxuICAgICl9XG4gIDwvSXRlbUNvbnRhaW5lcj5cbilcbiJdfQ== */"));
|
|
7
|
+
import { Text } from "../../Text/index.js";
|
|
8
|
+
import { linkBreadcrumbs, contentBreadcrumbs, maxWidthVar, minWidthVar, contentBreadcrumbsText, itemContainerBreadcrumbs, breadcrumbsItem } from "./styles.css.js";
|
|
44
9
|
const Item = ({
|
|
45
10
|
to,
|
|
46
11
|
children,
|
|
47
12
|
disabled = false,
|
|
48
13
|
"aria-current": ariaCurrent,
|
|
49
14
|
onClick,
|
|
15
|
+
onKeyDown,
|
|
50
16
|
className,
|
|
51
17
|
maxWidth,
|
|
52
18
|
minWidth
|
|
53
|
-
}) =>
|
|
19
|
+
}) => {
|
|
20
|
+
const renderedChildren = useMemo(() => {
|
|
21
|
+
if (to) {
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
Link,
|
|
24
|
+
{
|
|
25
|
+
className: linkBreadcrumbs,
|
|
26
|
+
href: to,
|
|
27
|
+
prominence: "stronger",
|
|
28
|
+
size: "small",
|
|
29
|
+
children
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
if (onClick) {
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
Button,
|
|
36
|
+
{
|
|
37
|
+
className: contentBreadcrumbs,
|
|
38
|
+
disabled,
|
|
39
|
+
sentiment: "neutral",
|
|
40
|
+
size: "small",
|
|
41
|
+
style: assignInlineVars({
|
|
42
|
+
[minWidthVar]: minWidth?.toString(),
|
|
43
|
+
[maxWidthVar]: maxWidth?.toString()
|
|
44
|
+
}),
|
|
45
|
+
variant: "ghost",
|
|
46
|
+
children
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
return /* @__PURE__ */ jsx(
|
|
51
|
+
Text,
|
|
52
|
+
{
|
|
53
|
+
as: "div",
|
|
54
|
+
className: `${contentBreadcrumbs} ${contentBreadcrumbsText}`,
|
|
55
|
+
variant: "bodySmallStrong",
|
|
56
|
+
children
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}, [children, disabled, maxWidth, minWidth, onClick, to]);
|
|
60
|
+
return /* @__PURE__ */ jsx(
|
|
61
|
+
"li",
|
|
62
|
+
{
|
|
63
|
+
"aria-current": ariaCurrent,
|
|
64
|
+
className: `${className ? `${className} ` : ""}${itemContainerBreadcrumbs({ clickable: !!onClick })} ${breadcrumbsItem}`,
|
|
65
|
+
onClick,
|
|
66
|
+
onKeyDown,
|
|
67
|
+
style: assignInlineVars({
|
|
68
|
+
[minWidthVar]: minWidth?.toString(),
|
|
69
|
+
[maxWidthVar]: maxWidth?.toString()
|
|
70
|
+
}),
|
|
71
|
+
children: renderedChildren
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
};
|
|
54
75
|
export {
|
|
55
76
|
Item
|
|
56
77
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const maxWidthVar: `var(--${string})`;
|
|
2
|
+
export declare const minWidthVar: `var(--${string})`;
|
|
3
|
+
export declare const linkBreadcrumbs: string;
|
|
4
|
+
export declare const contentBreadcrumbs: string;
|
|
5
|
+
export declare const itemContainerBreadcrumbs: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
6
|
+
clickable: {
|
|
7
|
+
true: {
|
|
8
|
+
cursor: "pointer";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
12
|
+
export declare const contentBreadcrumbsText: string;
|
|
13
|
+
export declare const breadcrumbsItem: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var maxWidthVar = "var(--uv_1yxbbx40)";
|
|
4
|
+
var minWidthVar = "var(--uv_1yxbbx41)";
|
|
5
|
+
var linkBreadcrumbs = "uv_1yxbbx42";
|
|
6
|
+
var contentBreadcrumbs = "uv_1yxbbx43";
|
|
7
|
+
var itemContainerBreadcrumbs = createRuntimeFn({ defaultClassName: "uv_1yxbbx44", variantClassNames: { clickable: { true: "uv_1yxbbx45" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
|
+
var contentBreadcrumbsText = "uv_1yxbbx46";
|
|
9
|
+
var breadcrumbsItem = "uv_1yxbbx47";
|
|
10
|
+
export {
|
|
11
|
+
breadcrumbsItem,
|
|
12
|
+
contentBreadcrumbs,
|
|
13
|
+
contentBreadcrumbsText,
|
|
14
|
+
itemContainerBreadcrumbs,
|
|
15
|
+
linkBreadcrumbs,
|
|
16
|
+
maxWidthVar,
|
|
17
|
+
minWidthVar
|
|
18
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { JSX, ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, JSX, ReactNode } from 'react';
|
|
2
2
|
import { Item } from './components/Item';
|
|
3
3
|
type BreadcrumbsProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
'data-testid'?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
7
8
|
};
|
|
8
9
|
type BreadcrumbsType = ((props: BreadcrumbsProps) => JSX.Element) & {
|
|
9
10
|
Item: typeof Item;
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { Item } from "./components/Item.js";
|
|
5
|
-
import {
|
|
6
|
-
const StyledOl = /* @__PURE__ */ _styled("ol", process.env.NODE_ENV === "production" ? {
|
|
7
|
-
target: "ej0p0s40"
|
|
8
|
-
} : {
|
|
9
|
-
target: "ej0p0s40",
|
|
10
|
-
label: "StyledOl"
|
|
11
|
-
})("list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;min-height:", HEIGHT, ";>*:not(:last-child){display:flex;align-items:center;&::after{content:'/';color:", ({
|
|
12
|
-
theme
|
|
13
|
-
}) => theme.colors.neutral.textWeak, ";padding:0 ", ({
|
|
14
|
-
theme
|
|
15
|
-
}) => theme.space["0.5"], ";font-size:", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => theme.typography.bodySmallStrong.fontSize, ";font-weight:", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.typography.bodySmallStrong.weight, ";}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdm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
|
23
|
-
"data-testid": dataTestId
|
|
24
|
-
|
|
8
|
+
"data-testid": dataTestId,
|
|
9
|
+
style
|
|
10
|
+
}) => /* @__PURE__ */ jsx(
|
|
11
|
+
"nav",
|
|
12
|
+
{
|
|
13
|
+
"aria-label": "breadcrumb",
|
|
14
|
+
className,
|
|
15
|
+
"data-testid": dataTestId,
|
|
16
|
+
style,
|
|
17
|
+
children: /* @__PURE__ */ jsx("ol", { className: breadcrumbs, children })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
25
20
|
Breadcrumbs.Item = Item;
|
|
26
21
|
export {
|
|
27
22
|
Breadcrumbs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const breadcrumbs: string;
|
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
strong: string;
|
|
5
|
-
};
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { SENTIMENTS } from '../../theme';
|
|
3
|
+
import type { PROMINENCES, SIZES } from './constants';
|
|
6
4
|
type ProminenceType = keyof typeof PROMINENCES;
|
|
7
|
-
declare const BULLET_SENTIMENTS: string[];
|
|
8
|
-
type BulletSentiment = (typeof BULLET_SENTIMENTS)[number];
|
|
9
|
-
declare const SIZES: {
|
|
10
|
-
readonly medium: "400";
|
|
11
|
-
readonly small: "300";
|
|
12
|
-
readonly xsmall: "250";
|
|
13
|
-
readonly xxsmall: "200";
|
|
14
|
-
};
|
|
15
5
|
type BulletProps = {
|
|
16
6
|
className?: string;
|
|
17
7
|
size?: keyof typeof SIZES;
|
|
18
8
|
tooltip?: string;
|
|
19
9
|
tooltipBaseId?: string;
|
|
20
|
-
sentiment?:
|
|
10
|
+
sentiment?: (typeof SENTIMENTS)[number];
|
|
21
11
|
'data-testid'?: string;
|
|
22
12
|
prominence?: ProminenceType;
|
|
23
13
|
children?: ReactNode;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
style?: CSSProperties;
|
|
24
16
|
};
|
|
25
17
|
/**
|
|
26
18
|
* Bullet component is used to display a small icon or text with a colored background in a circle.
|
|
27
19
|
*/
|
|
28
|
-
export declare const Bullet: ({ className, sentiment, size, tooltip, tooltipBaseId, "data-testid": dataTestId, prominence, children, }: BulletProps) => import("
|
|
20
|
+
export declare const Bullet: ({ className, sentiment, size, tooltip, tooltipBaseId, "data-testid": dataTestId, prominence, children, disabled, style, }: BulletProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
21
|
export {};
|
|
@@ -1,76 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
4
|
-
import { SENTIMENTS_WITHOUT_NEUTRAL } from "../../theme/index.js";
|
|
5
|
-
import capitalize from "../../utils/capitalize.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
3
|
import { Tooltip } from "../Tooltip/index.js";
|
|
7
|
-
|
|
8
|
-
strong: "strong"
|
|
9
|
-
};
|
|
10
|
-
const SIZES = {
|
|
11
|
-
medium: "400",
|
|
12
|
-
small: "300",
|
|
13
|
-
xsmall: "250",
|
|
14
|
-
xxsmall: "200"
|
|
15
|
-
};
|
|
16
|
-
const TEXT_VARIANT = {
|
|
17
|
-
medium: "body",
|
|
18
|
-
small: "bodySmall",
|
|
19
|
-
xsmall: "caption",
|
|
20
|
-
xxsmall: "captionSmallStrong"
|
|
21
|
-
};
|
|
22
|
-
const sentimentStyles = ({
|
|
23
|
-
theme,
|
|
24
|
-
prominence
|
|
25
|
-
}) => {
|
|
26
|
-
const definedProminence = prominence === PROMINENCES.strong ? capitalize(PROMINENCES.strong) : "";
|
|
27
|
-
const text = `text${definedProminence}`;
|
|
28
|
-
const background = `background${definedProminence}`;
|
|
29
|
-
return {
|
|
30
|
-
...SENTIMENTS_WITHOUT_NEUTRAL.reduce((reducer, sentiment) => ({
|
|
31
|
-
...reducer,
|
|
32
|
-
[sentiment]: `
|
|
33
|
-
color: ${theme.colors[sentiment][text]};
|
|
34
|
-
background: ${theme.colors[sentiment][background]};
|
|
35
|
-
border: 1px solid ${theme.colors[sentiment][background]};
|
|
36
|
-
`
|
|
37
|
-
}), {}),
|
|
38
|
-
disabled: `
|
|
39
|
-
color: ${theme.colors.neutral.textWeak};
|
|
40
|
-
background: ${theme.colors.neutral.backgroundStrong};
|
|
41
|
-
border: none;
|
|
42
|
-
`,
|
|
43
|
-
neutral: `
|
|
44
|
-
color: ${prominence === PROMINENCES.strong ? theme.colors.neutral[text] : theme.colors.neutral.text};
|
|
45
|
-
background: ${theme.colors.neutral.background};
|
|
46
|
-
border: 1px solid ${theme.colors.neutral.border};
|
|
47
|
-
`
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
const StyledContainer = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
|
|
51
|
-
target: "e11loam60"
|
|
52
|
-
} : {
|
|
53
|
-
target: "e11loam60",
|
|
54
|
-
label: "StyledContainer"
|
|
55
|
-
})("display:flex;border-radius:", ({
|
|
56
|
-
theme
|
|
57
|
-
}) => theme.radii.circle, ";justify-content:center;align-items:center;width:", ({
|
|
58
|
-
size,
|
|
59
|
-
theme
|
|
60
|
-
}) => theme.sizing[SIZES[size]], ";height:", ({
|
|
61
|
-
size,
|
|
62
|
-
theme
|
|
63
|
-
}) => theme.sizing[SIZES[size]], ";font-size:", ({
|
|
64
|
-
size,
|
|
65
|
-
theme
|
|
66
|
-
}) => theme.typography[TEXT_VARIANT[size]].fontSize, ";", ({
|
|
67
|
-
theme,
|
|
68
|
-
prominence,
|
|
69
|
-
sentiment
|
|
70
|
-
}) => sentimentStyles({
|
|
71
|
-
prominence,
|
|
72
|
-
theme
|
|
73
|
-
})[sentiment], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3V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ldCBjb21wb25lbnQgaXMgdXNlZCB0byBkaXNwbGF5IGEgc21hbGwgaWNvbiBvciB0ZXh0IHdpdGggYSBjb2xvcmVkIGJhY2tncm91bmQgaW4gYSBjaXJjbGUuXG4gKi9cbmV4cG9ydCBjb25zdCBCdWxsZXQgPSAoe1xuICBjbGFzc05hbWUsXG4gIHNlbnRpbWVudCA9ICduZXV0cmFsJyxcbiAgc2l6ZSA9ICdtZWRpdW0nLFxuICB0b29sdGlwLFxuICB0b29sdGlwQmFzZUlkLFxuICAnZGF0YS10ZXN0aWQnOiBkYXRhVGVzdElkLFxuICBwcm9taW5lbmNlID0gJ2RlZmF1bHQnLFxuICBjaGlsZHJlbixcbn06IEJ1bGxldFByb3BzKSA9PiAoXG4gIDxUb29sdGlwIGlkPXt0b29sdGlwQmFzZUlkfSB0ZXh0PXt0b29sdGlwfT5cbiAgICA8U3R5bGVkQ29udGFpbmVyXG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgIGRhdGEtdGVzdGlkPXtkYXRhVGVzdElkfVxuICAgICAgcHJvbWluZW5jZT17cHJvbWluZW5jZX1cbiAgICAgIHNlbnRpbWVudD17c2VudGltZW50fVxuICAgICAgc2l6ZT17c2l6ZX1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9TdHlsZWRDb250YWluZXI+XG4gIDwvVG9vbHRpcD5cbilcbiJdfQ== */"));
|
|
4
|
+
import { bullet } from "./styles.css.js";
|
|
74
5
|
const Bullet = ({
|
|
75
6
|
className,
|
|
76
7
|
sentiment = "neutral",
|
|
@@ -79,9 +10,18 @@ const Bullet = ({
|
|
|
79
10
|
tooltipBaseId,
|
|
80
11
|
"data-testid": dataTestId,
|
|
81
12
|
prominence = "default",
|
|
82
|
-
children
|
|
83
|
-
|
|
13
|
+
children,
|
|
14
|
+
disabled,
|
|
15
|
+
style
|
|
16
|
+
}) => /* @__PURE__ */ jsx(Tooltip, { id: tooltipBaseId, text: tooltip, children: /* @__PURE__ */ jsx(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: `${className ? `${className} ` : ""}${bullet({ disabled, prominence, sentiment, size })}`,
|
|
20
|
+
"data-testid": dataTestId,
|
|
21
|
+
style,
|
|
22
|
+
children
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
84
25
|
export {
|
|
85
|
-
Bullet
|
|
86
|
-
PROMINENCES
|
|
26
|
+
Bullet
|
|
87
27
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const bullet: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
size: {
|
|
3
|
+
[k: string]: {
|
|
4
|
+
width: `var(--${string})`;
|
|
5
|
+
height: `var(--${string})`;
|
|
6
|
+
fontSize: `var(--${string})`;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
sentiment: {
|
|
10
|
+
[k: string]: {};
|
|
11
|
+
};
|
|
12
|
+
prominence: {
|
|
13
|
+
default: {};
|
|
14
|
+
strong: {};
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
true: {
|
|
18
|
+
color: `var(--${string})`;
|
|
19
|
+
backgroundColor: `var(--${string})`;
|
|
20
|
+
border: "none";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var bullet = createRuntimeFn({ defaultClassName: "uv_1jy42m00", variantClassNames: { size: { medium: "uv_1jy42m01", small: "uv_1jy42m02", xsmall: "uv_1jy42m03", xxsmall: "uv_1jy42m04" }, sentiment: { "0": "uv_1jy42m05", "1": "uv_1jy42m06", "2": "uv_1jy42m07", "3": "uv_1jy42m08", "4": "uv_1jy42m09", "5": "uv_1jy42m0a", "6": "uv_1jy42m0b" }, prominence: { "default": "uv_1jy42m0c", strong: "uv_1jy42m0d" }, disabled: { true: "uv_1jy42m0e" } }, defaultVariants: { disabled: false, sentiment: "neutral", size: "medium", prominence: "default" }, compoundVariants: [[{ sentiment: "primary", prominence: "default", disabled: false }, "uv_1jy42m0f"], [{ sentiment: "secondary", prominence: "default", disabled: false }, "uv_1jy42m0g"], [{ sentiment: "neutral", prominence: "default", disabled: false }, "uv_1jy42m0h"], [{ sentiment: "success", prominence: "default", disabled: false }, "uv_1jy42m0i"], [{ sentiment: "danger", prominence: "default", disabled: false }, "uv_1jy42m0j"], [{ sentiment: "warning", prominence: "default", disabled: false }, "uv_1jy42m0k"], [{ sentiment: "info", prominence: "default", disabled: false }, "uv_1jy42m0l"], [{ sentiment: "primary", prominence: "strong", disabled: false }, "uv_1jy42m0m"], [{ sentiment: "secondary", prominence: "strong", disabled: false }, "uv_1jy42m0n"], [{ sentiment: "neutral", prominence: "strong", disabled: false }, "uv_1jy42m0o"], [{ sentiment: "success", prominence: "strong", disabled: false }, "uv_1jy42m0p"], [{ sentiment: "danger", prominence: "strong", disabled: false }, "uv_1jy42m0q"], [{ sentiment: "warning", prominence: "strong", disabled: false }, "uv_1jy42m0r"], [{ sentiment: "info", prominence: "strong", disabled: false }, "uv_1jy42m0s"]] });
|
|
4
|
+
export {
|
|
5
|
+
bullet
|
|
6
|
+
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type { AriaRole, ButtonHTMLAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { SIZE_HEIGHT } from './constants';
|
|
3
|
-
type ButtonSize = keyof typeof SIZE_HEIGHT;
|
|
4
|
-
export declare const buttonSizes: ButtonSize[];
|
|
1
|
+
import type { AriaRole, ButtonHTMLAttributes, CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
5
2
|
/**
|
|
6
3
|
* Button component is used to trigger an action or event, such as submitting a form, opening a dialog,
|
|
7
4
|
* canceling an action, or performing a delete operation.
|
|
@@ -22,6 +19,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
|
22
19
|
'aria-disabled'?: boolean;
|
|
23
20
|
'aria-pressed'?: boolean;
|
|
24
21
|
'aria-roledescription'?: string;
|
|
22
|
+
'aria-keyshortcuts'?: string;
|
|
25
23
|
onClick?: MouseEventHandler<HTMLElement>;
|
|
26
24
|
tooltip?: string;
|
|
27
25
|
tabIndex?: ButtonHTMLAttributes<HTMLButtonElement>["tabIndex"];
|
|
@@ -33,10 +31,11 @@ export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
|
33
31
|
onMouseLeave?: MouseEventHandler<HTMLElement>;
|
|
34
32
|
onPointerDown?: ButtonHTMLAttributes<HTMLButtonElement>["onPointerDown"];
|
|
35
33
|
onKeyDown?: ButtonHTMLAttributes<HTMLButtonElement>["onKeyDown"];
|
|
34
|
+
style?: CSSProperties;
|
|
36
35
|
} & {
|
|
37
|
-
size?: "
|
|
36
|
+
size?: "large" | "medium" | "small" | "xsmall" | undefined;
|
|
38
37
|
fullWidth?: boolean | undefined;
|
|
39
|
-
sentiment?: "
|
|
38
|
+
sentiment?: "primary" | "secondary" | "neutral" | "success" | "danger" | "warning" | "info" | "white" | "black" | undefined;
|
|
40
39
|
variant?: "filled" | "outlined" | "ghost" | undefined;
|
|
41
40
|
disabled?: boolean | undefined;
|
|
42
41
|
} & {
|
|
@@ -46,4 +45,3 @@ export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
|
46
45
|
target?: string;
|
|
47
46
|
download?: string;
|
|
48
47
|
} & import("react").RefAttributes<Element>>;
|
|
49
|
-
export {};
|