@ultraviolet/ui 3.0.0-beta.26 → 3.0.0-beta.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/constants.d.ts +5 -5
- package/dist/components/Avatar/constants.js +1 -1
- package/dist/components/Avatar/styles.css.d.ts +24 -24
- package/dist/components/BarChart/Tooltip.d.ts +3 -3
- package/dist/components/BarChart/Tooltip.js +2 -2
- package/dist/components/BarChart/index.d.ts +1 -1
- package/dist/components/BarChart/index.js +2 -2
- package/dist/components/Button/constants.d.ts +1 -0
- package/dist/components/Button/index.d.ts +0 -4
- package/dist/components/ExpandableCard/constants.d.ts +1 -0
- package/dist/components/ExpandableCard/index.d.ts +1 -1
- package/dist/components/ExpandableCard/styles.css.d.ts +1 -1
- package/dist/components/ExpandableCard/styles.css.js +2 -2
- package/dist/components/Key/constants.d.ts +8 -0
- package/dist/components/Key/constants.js +11 -0
- package/dist/components/Key/index.d.ts +0 -8
- package/dist/components/Key/index.js +1 -9
- package/dist/components/LineChart/helpers.js +2 -2
- package/dist/components/List/Row.js +1 -1
- package/dist/components/Loader/constants.d.ts +8 -0
- package/dist/components/Loader/constants.js +11 -0
- package/dist/components/Loader/index.d.ts +1 -8
- package/dist/components/Loader/index.js +5 -24
- package/dist/components/Loader/styles.css.d.ts +1 -0
- package/dist/components/Loader/styles.css.js +3 -1
- package/dist/components/Menu/MenuContent.js +7 -1
- package/dist/components/Menu/components/Item.d.ts +2 -2
- package/dist/components/Menu/components/Item.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Notification/Notification.d.ts +10 -0
- package/dist/components/Notification/{index.js → Notification.js} +2 -14
- package/dist/components/Notification/NotificationContainer.d.ts +30 -0
- package/dist/components/Notification/NotificationContainer.js +17 -0
- package/dist/components/Notification/index.d.ts +2 -37
- package/dist/components/PieChart/Legends.d.ts +2 -2
- package/dist/components/PieChart/Legends.js +2 -2
- package/dist/components/PieChart/Tooltip.d.ts +2 -2
- package/dist/components/PieChart/Tooltip.js +1 -1
- package/dist/components/PieChart/index.js +1 -1
- package/dist/components/Popup/styles.css.js +1 -0
- package/dist/components/Popup/variables.css.js +0 -1
- package/dist/components/ProgressBar/styles.css.js +0 -1
- package/dist/components/ProgressBar/variables.css.js +1 -0
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +1 -3
- package/dist/components/SelectInput/components/SearchBarDropdown.js +7 -4
- package/dist/components/SelectableCard/styles.css.js +0 -1
- package/dist/components/SelectableCard/variables.css.js +1 -0
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/TagList/index.js +1 -1
- package/dist/components/Text/constants.d.ts +9 -0
- package/dist/components/Text/index.d.ts +1 -4
- package/dist/components/Text/style.css.js +1 -0
- package/dist/components/Text/variables.css.js +0 -1
- 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 +18 -0
- package/dist/components/Toaster/components/CloseButton.d.ts +8 -0
- package/dist/components/Toaster/components/CloseButton.js +12 -0
- package/dist/components/Toaster/components/Content.d.ts +6 -0
- package/dist/components/Toaster/components/Content.js +10 -0
- package/dist/components/Toaster/constants.d.ts +1 -0
- package/dist/components/Toaster/constants.js +4 -0
- package/dist/components/Toaster/index.d.ts +3 -45
- 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 +68 -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/VerificationCode/constants.d.ts +1 -0
- package/dist/components/VerificationCode/index.d.ts +0 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/helpers/legend.d.ts +2 -2
- package/dist/helpers/legend.js +1 -1
- package/dist/helpers/nivoTheme.d.ts +1 -1
- package/dist/helpers/treeMap.d.ts +90 -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 +37 -9
- 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/index.d.ts +2 -2
- package/package.json +5 -4
- package/dist/components/ActionBar/index.cjs +0 -22
- package/dist/components/ActionBar/styles.css.cjs +0 -11
- package/dist/components/Alert/index.cjs +0 -55
- package/dist/components/Alert/styles.css.cjs +0 -14
- package/dist/components/Avatar/constants.cjs +0 -19
- package/dist/components/Avatar/index.cjs +0 -66
- package/dist/components/Avatar/styles.css.cjs +0 -17
- package/dist/components/Avatar/variables.css.cjs +0 -8
- package/dist/components/Badge/constant.cjs +0 -8
- package/dist/components/Badge/index.cjs +0 -27
- 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 -22
- package/dist/components/BarChart/index.cjs +0 -60
- package/dist/components/BarChart/styles.css.cjs +0 -9
- package/dist/components/BarStack/index.cjs +0 -35
- package/dist/components/BarStack/styles.css.cjs +0 -11
- package/dist/components/Breadcrumbs/components/Item.cjs +0 -41
- package/dist/components/Breadcrumbs/components/styles.css.cjs +0 -18
- package/dist/components/Breadcrumbs/index.cjs +0 -14
- package/dist/components/Breadcrumbs/styles.css.cjs +0 -5
- package/dist/components/Bullet/index.cjs +0 -24
- package/dist/components/Bullet/styles.css.cjs +0 -6
- package/dist/components/Button/constants.cjs +0 -6
- package/dist/components/Button/index.cjs +0 -84
- package/dist/components/Button/styles.css.cjs +0 -6
- package/dist/components/Card/index.cjs +0 -28
- package/dist/components/Card/styles.css.cjs +0 -7
- package/dist/components/Carousel/index.cjs +0 -74
- package/dist/components/Carousel/styles.css.cjs +0 -15
- package/dist/components/Checkbox/index.cjs +0 -58
- package/dist/components/Checkbox/styles.css.cjs +0 -17
- package/dist/components/CheckboxGroup/index.cjs +0 -78
- package/dist/components/CheckboxGroup/styles.css.cjs +0 -7
- package/dist/components/Chip/ChipContext.cjs +0 -6
- package/dist/components/Chip/ChipIcon.cjs +0 -52
- package/dist/components/Chip/index.cjs +0 -60
- package/dist/components/Chip/styles.css.cjs +0 -7
- package/dist/components/CopyButton/index.cjs +0 -35
- package/dist/components/DateInput/Context.cjs +0 -23
- package/dist/components/DateInput/components/CalendarContent.cjs +0 -61
- package/dist/components/DateInput/components/CalendarDaily.cjs +0 -169
- package/dist/components/DateInput/components/CalendarMonthly.cjs +0 -105
- package/dist/components/DateInput/components/Popup.cjs +0 -28
- package/dist/components/DateInput/components/styles.css.cjs +0 -12
- package/dist/components/DateInput/constants.cjs +0 -6
- package/dist/components/DateInput/helpers.cjs +0 -69
- package/dist/components/DateInput/helpersLocale.cjs +0 -64
- package/dist/components/DateInput/index.cjs +0 -192
- package/dist/components/DateInput/styles.css.cjs +0 -8
- package/dist/components/Dialog/Context.cjs +0 -14
- package/dist/components/Dialog/components/Button.cjs +0 -17
- package/dist/components/Dialog/components/Buttons.cjs +0 -13
- package/dist/components/Dialog/components/CancelButton.cjs +0 -12
- package/dist/components/Dialog/components/Stack.cjs +0 -10
- package/dist/components/Dialog/components/Text.cjs +0 -10
- package/dist/components/Dialog/index.cjs +0 -60
- package/dist/components/Dialog/styles.css.cjs +0 -7
- package/dist/components/Drawer/index.cjs +0 -56
- package/dist/components/Drawer/styles.css.cjs +0 -17
- package/dist/components/EmptyState/index.cjs +0 -42
- package/dist/components/EmptyState/styles.css.cjs +0 -10
- package/dist/components/Expandable/index.cjs +0 -108
- package/dist/components/Expandable/styles.css.cjs +0 -7
- package/dist/components/ExpandableCard/components/Title.cjs +0 -13
- package/dist/components/ExpandableCard/index.cjs +0 -114
- package/dist/components/ExpandableCard/styles.css.cjs +0 -17
- package/dist/components/GlobalAlert/GlobalAlertLink.cjs +0 -25
- package/dist/components/GlobalAlert/index.cjs +0 -39
- package/dist/components/GlobalAlert/styles.css.cjs +0 -7
- package/dist/components/InfiniteScroll/index.cjs +0 -91
- package/dist/components/Key/index.cjs +0 -45
- package/dist/components/Key/styles.css.cjs +0 -6
- package/dist/components/Label/index.cjs +0 -52
- package/dist/components/Label/styles.css.cjs +0 -5
- package/dist/components/LineChart/CustomLegend.cjs +0 -64
- package/dist/components/LineChart/Tooltip.cjs +0 -19
- package/dist/components/LineChart/helpers.cjs +0 -57
- package/dist/components/LineChart/index.cjs +0 -92
- package/dist/components/LineChart/styles.css.cjs +0 -27
- package/dist/components/Link/index.cjs +0 -69
- package/dist/components/Link/styles.css.cjs +0 -14
- package/dist/components/List/Cell.cjs +0 -31
- package/dist/components/List/ColumnProvider.cjs +0 -28
- package/dist/components/List/HeaderCell.cjs +0 -49
- package/dist/components/List/HeaderRow.cjs +0 -26
- package/dist/components/List/ListContext.cjs +0 -210
- package/dist/components/List/Row.cjs +0 -107
- package/dist/components/List/SelectBar.cjs +0 -28
- package/dist/components/List/SkeletonRows.cjs +0 -31
- package/dist/components/List/index.cjs +0 -49
- package/dist/components/List/styles.css.cjs +0 -35
- package/dist/components/List/variables.css.cjs +0 -16
- package/dist/components/Loader/index.cjs +0 -66
- package/dist/components/Loader/styles.css.cjs +0 -7
- package/dist/components/Menu/MenuContent.cjs +0 -177
- package/dist/components/Menu/MenuProvider.cjs +0 -44
- package/dist/components/Menu/components/Group.cjs +0 -25
- package/dist/components/Menu/components/Item.cjs +0 -97
- package/dist/components/Menu/helpers.cjs +0 -48
- package/dist/components/Menu/index.cjs +0 -20
- package/dist/components/Menu/styles.css.cjs +0 -24
- package/dist/components/Meter/index.cjs +0 -34
- package/dist/components/Meter/styles.css.cjs +0 -11
- package/dist/components/Modal/ModalContent.cjs +0 -39
- package/dist/components/Modal/ModalProvider.cjs +0 -41
- package/dist/components/Modal/components/Dialog.cjs +0 -148
- package/dist/components/Modal/components/Disclosure.cjs +0 -42
- package/dist/components/Modal/index.cjs +0 -58
- package/dist/components/Modal/styles.css.cjs +0 -21
- package/dist/components/Notice/index.cjs +0 -17
- package/dist/components/Notice/styles.css.cjs +0 -5
- package/dist/components/Notification/index.cjs +0 -35
- package/dist/components/Notification/styles.css.cjs +0 -5
- package/dist/components/NumberInput/index.cjs +0 -145
- package/dist/components/NumberInput/styles.css.cjs +0 -14
- package/dist/components/Pagination/PaginationButtons.cjs +0 -49
- package/dist/components/Pagination/PerPage.cjs +0 -49
- package/dist/components/Pagination/getPageNumbers.cjs +0 -23
- package/dist/components/Pagination/index.cjs +0 -43
- package/dist/components/Pagination/styles.css.cjs +0 -9
- package/dist/components/PasswordCheck/index.cjs +0 -18
- package/dist/components/PasswordCheck/styles.css.cjs +0 -5
- package/dist/components/PieChart/Legends.cjs +0 -36
- package/dist/components/PieChart/Tooltip.cjs +0 -18
- package/dist/components/PieChart/index.cjs +0 -71
- package/dist/components/PieChart/styles.css.cjs +0 -36
- package/dist/components/Popover/index.cjs +0 -67
- package/dist/components/Popover/styles.css.cjs +0 -8
- package/dist/components/Popup/helpers.cjs +0 -264
- package/dist/components/Popup/index.cjs +0 -291
- package/dist/components/Popup/styles.css.cjs +0 -12
- package/dist/components/Popup/variables.css.cjs +0 -19
- package/dist/components/ProgressBar/index.cjs +0 -46
- package/dist/components/ProgressBar/styles.css.cjs +0 -12
- package/dist/components/ProgressBar/variables.css.cjs +0 -4
- package/dist/components/Radio/index.cjs +0 -69
- package/dist/components/Radio/styles.css.cjs +0 -21
- package/dist/components/RadioGroup/index.cjs +0 -73
- package/dist/components/RadioGroup/styles.css.cjs +0 -5
- package/dist/components/Row/index.cjs +0 -46
- package/dist/components/Row/styles.css.cjs +0 -17
- package/dist/components/Row/variables.css.cjs +0 -7
- package/dist/components/SearchInput/KeyGroup.cjs +0 -13
- package/dist/components/SearchInput/index.cjs +0 -186
- package/dist/components/SearchInput/styles.css.cjs +0 -10
- package/dist/components/SelectInput/SelectInputProvider.cjs +0 -203
- package/dist/components/SelectInput/components/Dropdown.cjs +0 -341
- package/dist/components/SelectInput/components/DropdownOption.cjs +0 -47
- package/dist/components/SelectInput/components/SearchBarDropdown.cjs +0 -117
- package/dist/components/SelectInput/components/SelectBar.cjs +0 -237
- package/dist/components/SelectInput/components/dropdown.css.cjs +0 -34
- package/dist/components/SelectInput/components/selectBar.css.cjs +0 -22
- package/dist/components/SelectInput/findOptionInOptions.cjs +0 -12
- package/dist/components/SelectInput/index.cjs +0 -68
- package/dist/components/SelectInput/styles.css.cjs +0 -7
- package/dist/components/SelectInput/types.cjs +0 -9
- package/dist/components/SelectableCard/index.cjs +0 -149
- package/dist/components/SelectableCard/styles.css.cjs +0 -21
- package/dist/components/SelectableCard/variables.css.cjs +0 -8
- package/dist/components/SelectableCardGroup/index.cjs +0 -75
- package/dist/components/SelectableCardGroup/styles.css.cjs +0 -5
- package/dist/components/SelectableCardOptionGroup/Provider.cjs +0 -24
- package/dist/components/SelectableCardOptionGroup/components/Image.cjs +0 -17
- package/dist/components/SelectableCardOptionGroup/components/Option.cjs +0 -60
- package/dist/components/SelectableCardOptionGroup/index.cjs +0 -51
- package/dist/components/SelectableCardOptionGroup/styles.css.cjs +0 -21
- package/dist/components/Separator/index.cjs +0 -40
- package/dist/components/Separator/styles.css.cjs +0 -10
- package/dist/components/Skeleton/Block.cjs +0 -17
- package/dist/components/Skeleton/Blocks.cjs +0 -20
- package/dist/components/Skeleton/BoxWithIcon.cjs +0 -20
- package/dist/components/Skeleton/Donut.cjs +0 -16
- package/dist/components/Skeleton/IconSkeleton.cjs +0 -7
- package/dist/components/Skeleton/Line.cjs +0 -12
- package/dist/components/Skeleton/List.cjs +0 -18
- package/dist/components/Skeleton/Slider.cjs +0 -14
- package/dist/components/Skeleton/Square.cjs +0 -7
- package/dist/components/Skeleton/index.cjs +0 -39
- package/dist/components/Skeleton/styles.css.cjs +0 -7
- package/dist/components/Skeleton/stylesVariants.css.cjs +0 -47
- package/dist/components/Slider/components/DoubleSlider.cjs +0 -236
- package/dist/components/Slider/components/Options.cjs +0 -35
- package/dist/components/Slider/components/SingleSlider.cjs +0 -153
- package/dist/components/Slider/constant.cjs +0 -4
- package/dist/components/Slider/index.cjs +0 -61
- package/dist/components/Slider/styles.css.cjs +0 -36
- package/dist/components/Snippet/index.cjs +0 -64
- package/dist/components/Snippet/styles.css.cjs +0 -26
- package/dist/components/Stack/index.cjs +0 -85
- package/dist/components/Stack/styles.css.cjs +0 -19
- package/dist/components/Stack/variables.css.cjs +0 -11
- package/dist/components/Status/index.cjs +0 -25
- package/dist/components/Status/styles.css.cjs +0 -11
- package/dist/components/StepList/index.cjs +0 -32
- package/dist/components/StepList/styles.css.cjs +0 -10
- package/dist/components/Stepper/Step.cjs +0 -72
- package/dist/components/Stepper/StepperProvider.cjs +0 -41
- package/dist/components/Stepper/index.cjs +0 -49
- package/dist/components/Stepper/styles.css.cjs +0 -20
- package/dist/components/SwitchButton/FocusOverlay.cjs +0 -16
- package/dist/components/SwitchButton/Option.cjs +0 -40
- package/dist/components/SwitchButton/SwitchButtonContext.cjs +0 -13
- package/dist/components/SwitchButton/constant.cjs +0 -4
- package/dist/components/SwitchButton/index.cjs +0 -110
- package/dist/components/SwitchButton/styles.css.cjs +0 -9
- package/dist/components/Table/Body.cjs +0 -8
- package/dist/components/Table/Cell.cjs +0 -35
- package/dist/components/Table/Header.cjs +0 -9
- package/dist/components/Table/HeaderCell.cjs +0 -55
- package/dist/components/Table/HeaderRow.cjs +0 -28
- package/dist/components/Table/Row.cjs +0 -88
- package/dist/components/Table/SelectBar.cjs +0 -28
- package/dist/components/Table/SkeletonRows.cjs +0 -24
- package/dist/components/Table/TableContext.cjs +0 -43
- package/dist/components/Table/constants.cjs +0 -4
- package/dist/components/Table/index.cjs +0 -56
- package/dist/components/Table/styles.css.cjs +0 -29
- package/dist/components/Table/variables.css.cjs +0 -14
- package/dist/components/Tabs/Tab.cjs +0 -52
- package/dist/components/Tabs/TabMenu.cjs +0 -32
- package/dist/components/Tabs/TabMenuItem.cjs +0 -27
- package/dist/components/Tabs/TabsContext.cjs +0 -7
- package/dist/components/Tabs/index.cjs +0 -74
- package/dist/components/Tabs/styles.css.cjs +0 -21
- package/dist/components/Tag/index.cjs +0 -63
- package/dist/components/Tag/styles.css.cjs +0 -10
- package/dist/components/TagInput/index.cjs +0 -163
- package/dist/components/TagInput/styles.css.cjs +0 -12
- package/dist/components/TagList/constant.cjs +0 -5
- package/dist/components/TagList/index.cjs +0 -163
- package/dist/components/TagList/styles.css.cjs +0 -14
- 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 -6
- package/dist/components/Text/variables.css.cjs +0 -7
- package/dist/components/TextArea/index.cjs +0 -123
- package/dist/components/TextArea/styles.css.cjs +0 -12
- package/dist/components/TextInput/index.cjs +0 -119
- package/dist/components/TextInput/styles.css.cjs +0 -17
- package/dist/components/TimeInput/constants.cjs +0 -13
- package/dist/components/TimeInput/helpers.cjs +0 -66
- package/dist/components/TimeInput/index.cjs +0 -273
- package/dist/components/TimeInput/styles.css.cjs +0 -10
- package/dist/components/Toaster/index.cjs +0 -47
- package/dist/components/Toaster/index.js +0 -47
- package/dist/components/Toaster/styles.css.cjs +0 -7
- package/dist/components/Toggle/index.cjs +0 -50
- package/dist/components/Toggle/styles.css.cjs +0 -10
- package/dist/components/ToggleGroup/index.cjs +0 -72
- package/dist/components/ToggleGroup/styles.css.cjs +0 -5
- package/dist/components/Tooltip/index.cjs +0 -26
- package/dist/components/Tooltip/styles.css.cjs +0 -5
- package/dist/components/UnitInput/index.cjs +0 -111
- package/dist/components/UnitInput/styles.css.cjs +0 -18
- package/dist/components/VerificationCode/index.cjs +0 -148
- package/dist/components/VerificationCode/styles.css.cjs +0 -9
- 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 -214
- package/dist/theme/ThemeProvider.cjs +0 -16
- package/dist/theme/index.cjs +0 -38
- package/dist/utils/animationVanillaExtract.css.cjs +0 -11
- package/dist/utils/animationVanillaExtract.css.d.ts +0 -4
- package/dist/utils/animationVanillaExtract.css.js +0 -11
- 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/ids.cjs +0 -8
- package/dist/utils/normalize.cjs +0 -35
- package/dist/utils/responsive/Breakpoint.cjs +0 -15
- package/dist/utils/responsive/utilities.cjs +0 -17
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const react = require("react");
|
|
4
|
-
const SelectableCardOptionGroupContext = react.createContext({
|
|
5
|
-
disabled: false,
|
|
6
|
-
error: false,
|
|
7
|
-
groupName: "",
|
|
8
|
-
onChange: () => {
|
|
9
|
-
},
|
|
10
|
-
onChangeOption: () => {
|
|
11
|
-
},
|
|
12
|
-
optionValue: "",
|
|
13
|
-
required: false,
|
|
14
|
-
size: "large"
|
|
15
|
-
});
|
|
16
|
-
const useSelectableCardOptionGroup = () => {
|
|
17
|
-
const context = react.useContext(SelectableCardOptionGroupContext);
|
|
18
|
-
if (!context) {
|
|
19
|
-
throw new Error("SelectableCardOptionGroup.Option must be used inside a SelectableCardOptionGroup");
|
|
20
|
-
}
|
|
21
|
-
return context;
|
|
22
|
-
};
|
|
23
|
-
exports.SelectableCardOptionGroupContext = SelectableCardOptionGroupContext;
|
|
24
|
-
exports.useSelectableCardOptionGroup = useSelectableCardOptionGroup;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const styles_css = require("../styles.css.cjs");
|
|
6
|
-
const IMAGE_SIZES = {
|
|
7
|
-
large: 56,
|
|
8
|
-
medium: 40
|
|
9
|
-
};
|
|
10
|
-
const Image = ({
|
|
11
|
-
src,
|
|
12
|
-
alt,
|
|
13
|
-
size,
|
|
14
|
-
disabled,
|
|
15
|
-
className
|
|
16
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("img", { alt, className: `${className ? `${className} ` : ""}${disabled ? styles_css.disabledImage : ""}`, "data-disabled": disabled, height: IMAGE_SIZES[size], src, width: IMAGE_SIZES[size] });
|
|
17
|
-
exports.Image = Image;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const react = require("react");
|
|
6
|
-
const index$2 = require("../../Label/index.cjs");
|
|
7
|
-
const index = require("../../SelectableCard/index.cjs");
|
|
8
|
-
const index$3 = require("../../SelectInput/index.cjs");
|
|
9
|
-
const index$1 = require("../../Stack/index.cjs");
|
|
10
|
-
const Provider = require("../Provider.cjs");
|
|
11
|
-
const styles_css = require("../styles.css.cjs");
|
|
12
|
-
const Image = require("./Image.cjs");
|
|
13
|
-
const Option = ({
|
|
14
|
-
value,
|
|
15
|
-
label,
|
|
16
|
-
labelDescription,
|
|
17
|
-
"aria-label": ariaLabel,
|
|
18
|
-
children,
|
|
19
|
-
className,
|
|
20
|
-
options,
|
|
21
|
-
optionPlaceholder,
|
|
22
|
-
image,
|
|
23
|
-
disabled,
|
|
24
|
-
id,
|
|
25
|
-
"data-testid": dataTestId,
|
|
26
|
-
tooltip,
|
|
27
|
-
style
|
|
28
|
-
}) => {
|
|
29
|
-
const {
|
|
30
|
-
onChange,
|
|
31
|
-
onChangeOption,
|
|
32
|
-
groupValue,
|
|
33
|
-
disabled: groupDisabled,
|
|
34
|
-
size,
|
|
35
|
-
error,
|
|
36
|
-
optionValue
|
|
37
|
-
} = Provider.useSelectableCardOptionGroup();
|
|
38
|
-
const generatedId = react.useId();
|
|
39
|
-
const inputId = id || generatedId;
|
|
40
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index.SelectableCard, { checked: groupValue === value, className: `${className ? `${className} ` : ""}${styles_css.selectableCard}`, "data-testid": dataTestId, disabled: disabled || groupDisabled, isError: error, onChange: (event) => {
|
|
41
|
-
onChange?.(event);
|
|
42
|
-
if (Array.isArray(options)) {
|
|
43
|
-
onChangeOption?.(options?.[0]?.value);
|
|
44
|
-
}
|
|
45
|
-
}, showTick: true, style, tooltip, type: "radio", value, ...label ? {
|
|
46
|
-
id: inputId
|
|
47
|
-
} : {
|
|
48
|
-
"aria-label": ariaLabel
|
|
49
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsxs(index$1.Stack, { className: styles_css.optionFullHeight, direction: "column", flex: "1 1 auto", gap: 2, justifyContent: "space-between", width: "100%", children: [
|
|
50
|
-
/* @__PURE__ */ jsxRuntime.jsxs(index$1.Stack, { alignItems: "center", className: styles_css.optionPadded, direction: "column", gap: 1, justifyContent: "center", width: "100%", children: [
|
|
51
|
-
typeof image === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Image.Image, { alt: typeof label === "string" ? label : value, disabled: disabled || groupDisabled, size, src: image }) : image,
|
|
52
|
-
/* @__PURE__ */ jsxRuntime.jsxs(index$1.Stack, { alignItems: "center", direction: "column", gap: 0.5, justifyContent: "center", width: "100%", children: [
|
|
53
|
-
typeof label === "string" ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Label, { disabled: disabled || groupDisabled, htmlFor: inputId, labelDescription, sentiment: groupValue === value ? "primary" : "neutral", children: label }) : label,
|
|
54
|
-
children
|
|
55
|
-
] })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ jsxRuntime.jsx(index$3.SelectInput, { "aria-label": typeof label === "string" ? `${label} option` : `${value} option`, className: `${styles_css.optionSelectInput} ${disabled || groupDisabled ? styles_css.optionSelectInputDisabled : ""} ${error ? styles_css.optionSelectInputError : ""}`, "data-testid": dataTestId ? `${dataTestId}-select` : void 0, disabled: disabled || groupDisabled, error, name: "selectable-card-option", onChange: onChangeOption, options, placeholder: optionPlaceholder, size: "medium", value: optionValue })
|
|
58
|
-
] }) });
|
|
59
|
-
};
|
|
60
|
-
exports.Option = Option;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const react = require("react");
|
|
6
|
-
const index$1 = require("../Label/index.cjs");
|
|
7
|
-
const index$2 = require("../Row/index.cjs");
|
|
8
|
-
const index = require("../Stack/index.cjs");
|
|
9
|
-
const index$3 = require("../Text/index.cjs");
|
|
10
|
-
const Option = require("./components/Option.cjs");
|
|
11
|
-
const Provider = require("./Provider.cjs");
|
|
12
|
-
const styles_css = require("./styles.css.cjs");
|
|
13
|
-
const SelectableCardOptionGroup = ({
|
|
14
|
-
legend,
|
|
15
|
-
legendDescription,
|
|
16
|
-
className,
|
|
17
|
-
required,
|
|
18
|
-
columns = 3,
|
|
19
|
-
children,
|
|
20
|
-
helper,
|
|
21
|
-
error,
|
|
22
|
-
onChange,
|
|
23
|
-
value,
|
|
24
|
-
optionValue,
|
|
25
|
-
onChangeOption,
|
|
26
|
-
name,
|
|
27
|
-
disabled,
|
|
28
|
-
size = "large",
|
|
29
|
-
style
|
|
30
|
-
}) => {
|
|
31
|
-
const contextValue = react.useMemo(() => ({
|
|
32
|
-
disabled,
|
|
33
|
-
error: !!error,
|
|
34
|
-
groupName: name,
|
|
35
|
-
groupValue: value,
|
|
36
|
-
onChange,
|
|
37
|
-
onChangeOption,
|
|
38
|
-
optionValue,
|
|
39
|
-
required,
|
|
40
|
-
size
|
|
41
|
-
}), [disabled, error, name, onChange, onChangeOption, optionValue, required, value, size]);
|
|
42
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Provider.SelectableCardOptionGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { gap: 1, style, children: [
|
|
43
|
-
/* @__PURE__ */ jsxRuntime.jsx("fieldset", { className: `${className ? `${className} ` : ""}${styles_css.selectableCardOptionFieldSet}`, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { gap: 1.5, children: [
|
|
44
|
-
legend ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Label, { as: "legend", labelDescription: legendDescription, required, children: legend }) : null,
|
|
45
|
-
/* @__PURE__ */ jsxRuntime.jsx(index$2.Row, { gap: 2, templateColumns: `repeat(${columns}, minmax(0, 1fr))`, children })
|
|
46
|
-
] }) }),
|
|
47
|
-
error && typeof error === "string" || helper ? /* @__PURE__ */ jsxRuntime.jsx(index$3.Text, { as: "span", prominence: "weak", sentiment: error ? "danger" : "neutral", variant: "caption", children: helper || error }) : null
|
|
48
|
-
] }) });
|
|
49
|
-
};
|
|
50
|
-
SelectableCardOptionGroup.Option = Option.Option;
|
|
51
|
-
exports.SelectableCardOptionGroup = SelectableCardOptionGroup;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
;/* empty css */
|
|
5
|
-
;/* empty css */
|
|
6
|
-
var selectableCardOptionFieldSet = "uv_12n1yvr0";
|
|
7
|
-
var disabledImage = "uv_12n1yvr1";
|
|
8
|
-
var selectableCard = "uv_12n1yvr2";
|
|
9
|
-
var optionFullHeight = "uv_12n1yvr3";
|
|
10
|
-
var optionSelectInput = "uv_12n1yvr4";
|
|
11
|
-
var optionSelectInputDisabled = "uv_12n1yvr5";
|
|
12
|
-
var optionSelectInputError = "uv_12n1yvr6";
|
|
13
|
-
var optionPadded = "uv_12n1yvr7";
|
|
14
|
-
exports.disabledImage = disabledImage;
|
|
15
|
-
exports.optionFullHeight = optionFullHeight;
|
|
16
|
-
exports.optionPadded = optionPadded;
|
|
17
|
-
exports.optionSelectInput = optionSelectInput;
|
|
18
|
-
exports.optionSelectInputDisabled = optionSelectInputDisabled;
|
|
19
|
-
exports.optionSelectInputError = optionSelectInputError;
|
|
20
|
-
exports.selectableCard = selectableCard;
|
|
21
|
-
exports.selectableCardOptionFieldSet = selectableCardOptionFieldSet;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
6
|
-
const styles_css = require("./styles.css.cjs");
|
|
7
|
-
const Separator = ({
|
|
8
|
-
direction = "horizontal",
|
|
9
|
-
thickness = 1,
|
|
10
|
-
sentiment = "neutral",
|
|
11
|
-
className,
|
|
12
|
-
"data-testid": dataTestId,
|
|
13
|
-
children,
|
|
14
|
-
style
|
|
15
|
-
}) => children ? /* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-orientation": direction, className: `${className ? `${className} ` : ""}${styles_css.iconWraperSeparator({
|
|
16
|
-
direction,
|
|
17
|
-
sentiment
|
|
18
|
-
})}`, "data-testid": dataTestId, role: "separator", style, children: [
|
|
19
|
-
/* @__PURE__ */ jsxRuntime.jsx("hr", { className: styles_css.hr({
|
|
20
|
-
direction,
|
|
21
|
-
hasIcon: true,
|
|
22
|
-
sentiment
|
|
23
|
-
}), style: dynamic.assignInlineVars({
|
|
24
|
-
[styles_css.thicknessSeparator]: `${thickness}px`
|
|
25
|
-
}) }),
|
|
26
|
-
children,
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx("hr", { className: styles_css.hr({
|
|
28
|
-
direction,
|
|
29
|
-
hasIcon: true,
|
|
30
|
-
sentiment
|
|
31
|
-
}), style: dynamic.assignInlineVars({
|
|
32
|
-
[styles_css.thicknessSeparator]: `${thickness}px`
|
|
33
|
-
}) })
|
|
34
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx("hr", { "aria-orientation": direction, className: `${className ? `${className} ` : ""}${styles_css.hr({
|
|
35
|
-
direction,
|
|
36
|
-
sentiment
|
|
37
|
-
})}`, "data-testid": dataTestId, role: "separator", style: dynamic.assignInlineVars({
|
|
38
|
-
[styles_css.thicknessSeparator]: `${thickness}px`
|
|
39
|
-
}) });
|
|
40
|
-
exports.Separator = Separator;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
5
|
-
var thicknessSeparator = "var(--uv_bu43fb0)";
|
|
6
|
-
var iconWraperSeparator = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_bu43fb1", variantClassNames: { direction: { horizontal: "uv_bu43fb2", vertical: "uv_bu43fb3" }, sentiment: { danger: "uv_bu43fb4", info: "uv_bu43fb5", neutral: "uv_bu43fb6", primary: "uv_bu43fb7", secondary: "uv_bu43fb8", success: "uv_bu43fb9", warning: "uv_bu43fba" } }, defaultVariants: { direction: "horizontal", sentiment: "neutral" }, compoundVariants: [] });
|
|
7
|
-
var hr = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_bu43fbb", variantClassNames: { direction: { horizontal: "uv_bu43fbc", vertical: "uv_bu43fbd" }, hasIcon: { false: "uv_bu43fbe", true: "uv_bu43fbf" }, sentiment: { danger: "uv_bu43fbg", info: "uv_bu43fbh", neutral: "uv_bu43fbi", primary: "uv_bu43fbj", secondary: "uv_bu43fbk", success: "uv_bu43fbl", warning: "uv_bu43fbm" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
|
-
exports.hr = hr;
|
|
9
|
-
exports.iconWraperSeparator = iconWraperSeparator;
|
|
10
|
-
exports.thicknessSeparator = thicknessSeparator;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const react = require("react");
|
|
6
|
-
const IconSkeleton = require("./IconSkeleton.cjs");
|
|
7
|
-
const Line = require("./Line.cjs");
|
|
8
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
9
|
-
const Block = ({
|
|
10
|
-
length = 3
|
|
11
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("ul", { className: stylesVariants_css.blockSkeletonList, children: Array.from({
|
|
12
|
-
length
|
|
13
|
-
}, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("li", { className: stylesVariants_css.blockSkeletonLine, children: [
|
|
14
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconSkeleton.IconSkeleton, {}),
|
|
15
|
-
/* @__PURE__ */ jsxRuntime.jsx(Line.Line, {})
|
|
16
|
-
] }) }, `skeleton-block-${i}`)) });
|
|
17
|
-
exports.Block = Block;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
6
|
-
const IconSkeleton = require("./IconSkeleton.cjs");
|
|
7
|
-
const Line = require("./Line.cjs");
|
|
8
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
9
|
-
const Blocks = ({
|
|
10
|
-
col = 4,
|
|
11
|
-
length = 8
|
|
12
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.blocksContainer, style: dynamic.assignInlineVars({
|
|
13
|
-
[stylesVariants_css.columns]: col.toString()
|
|
14
|
-
}), children: Array.from({
|
|
15
|
-
length
|
|
16
|
-
}, (_, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: stylesVariants_css.blocksSkeleton, children: [
|
|
17
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconSkeleton.IconSkeleton, {}),
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.jsx(Line.Line, {})
|
|
19
|
-
] }, `skeleton-blocks-${i}`)) });
|
|
20
|
-
exports.Blocks = Blocks;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
6
|
-
const IconSkeleton = require("./IconSkeleton.cjs");
|
|
7
|
-
const Line = require("./Line.cjs");
|
|
8
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
9
|
-
const BoxWithIcon = ({
|
|
10
|
-
col = 4,
|
|
11
|
-
length = 8
|
|
12
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.blocksContainer, style: dynamic.assignInlineVars({
|
|
13
|
-
[stylesVariants_css.columns]: col.toString()
|
|
14
|
-
}), children: Array.from({
|
|
15
|
-
length
|
|
16
|
-
}, (_, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: stylesVariants_css.boxWithIconSkeleton, children: [
|
|
17
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconSkeleton.IconSkeleton, {}),
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.jsx(Line.Line, {})
|
|
19
|
-
] }, `skeleton-box-${i}`)) });
|
|
20
|
-
exports.BoxWithIcon = BoxWithIcon;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const Line = require("./Line.cjs");
|
|
6
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
7
|
-
const Donut = () => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: stylesVariants_css.donutSkeletonContainer, children: [
|
|
8
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { className: stylesVariants_css.donutSkeletonSvg, children: /* @__PURE__ */ jsxRuntime.jsx("circle", { className: stylesVariants_css.donutSkeletonCircle, cx: `${stylesVariants_css.CIRCLE_SIZE / 2}rem`, cy: `${stylesVariants_css.CIRCLE_SIZE / 2}rem`, r: "90" }) }),
|
|
9
|
-
/* @__PURE__ */ jsxRuntime.jsxs("ul", { className: stylesVariants_css.donutSkeletonLineList, children: [
|
|
10
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(Line.Line, {}) }),
|
|
11
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(Line.Line, {}) }),
|
|
12
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(Line.Line, {}) }),
|
|
13
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(Line.Line, {}) })
|
|
14
|
-
] })
|
|
15
|
-
] });
|
|
16
|
-
exports.Donut = Donut;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
6
|
-
const IconSkeleton = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.iconSkeleton });
|
|
7
|
-
exports.IconSkeleton = IconSkeleton;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
6
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
7
|
-
const sizes = ["5rem", "7.5rem", "10rem", "12.5rem"];
|
|
8
|
-
const randomSize = () => sizes[Math.floor(Math.random() * sizes.length)];
|
|
9
|
-
const Line = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.lineSkeleton, style: dynamic.assignInlineVars({
|
|
10
|
-
[stylesVariants_css.widthLine]: randomSize()
|
|
11
|
-
}) });
|
|
12
|
-
exports.Line = Line;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const Line = require("./Line.cjs");
|
|
6
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
7
|
-
const Item = ({
|
|
8
|
-
col = 3
|
|
9
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: stylesVariants_css.listSkeletonLi, children: Array.from({
|
|
10
|
-
length: col
|
|
11
|
-
}, (_, i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.listSkeletonDiv, children: /* @__PURE__ */ jsxRuntime.jsx(Line.Line, {}) }, `skeleton-list-col-${i}`)) });
|
|
12
|
-
const List = ({
|
|
13
|
-
length = 3,
|
|
14
|
-
col = 3
|
|
15
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("ul", { className: stylesVariants_css.listSkeletonUl, children: Array.from({
|
|
16
|
-
length
|
|
17
|
-
}, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(Item, { col }, `skeleton-list-${i}`)) });
|
|
18
|
-
exports.List = List;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
6
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
7
|
-
const Slider = ({
|
|
8
|
-
length = 4
|
|
9
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.sliderSkeletonContainer, style: dynamic.assignInlineVars({
|
|
10
|
-
[stylesVariants_css.sliderLength]: length.toString()
|
|
11
|
-
}), children: Array.from({
|
|
12
|
-
length
|
|
13
|
-
}, (_, i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.sliderSkeletonCard, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.sliderSkeletonBanner }) }, `skeleton-slider-card-${i}`)) });
|
|
14
|
-
exports.Slider = Slider;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const stylesVariants_css = require("./stylesVariants.css.cjs");
|
|
6
|
-
const Square = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: stylesVariants_css.squareSkeleton });
|
|
7
|
-
exports.Square = Square;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const Block = require("./Block.cjs");
|
|
6
|
-
const Blocks = require("./Blocks.cjs");
|
|
7
|
-
const BoxWithIcon = require("./BoxWithIcon.cjs");
|
|
8
|
-
const Donut = require("./Donut.cjs");
|
|
9
|
-
const Line = require("./Line.cjs");
|
|
10
|
-
const List = require("./List.cjs");
|
|
11
|
-
const Slider = require("./Slider.cjs");
|
|
12
|
-
const Square = require("./Square.cjs");
|
|
13
|
-
const styles_css = require("./styles.css.cjs");
|
|
14
|
-
const variants = {
|
|
15
|
-
block: Block.Block,
|
|
16
|
-
blocks: Blocks.Blocks,
|
|
17
|
-
box: BoxWithIcon.BoxWithIcon,
|
|
18
|
-
donut: Donut.Donut,
|
|
19
|
-
line: Line.Line,
|
|
20
|
-
list: List.List,
|
|
21
|
-
slider: Slider.Slider,
|
|
22
|
-
square: Square.Square
|
|
23
|
-
};
|
|
24
|
-
const Skeleton = ({
|
|
25
|
-
variant = "blocks",
|
|
26
|
-
length,
|
|
27
|
-
col,
|
|
28
|
-
className,
|
|
29
|
-
"aria-label": ariaLabel,
|
|
30
|
-
"data-testid": dataTestId,
|
|
31
|
-
style
|
|
32
|
-
}) => {
|
|
33
|
-
const Component = variants[variant];
|
|
34
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-busy": true, "aria-label": ariaLabel, "aria-live": "polite", className: `${className ? `${className} ` : ""}${styles_css.skeletonContainer}`, "data-testid": dataTestId, style, children: [
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx(Component, { col, length }),
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.skeletonHighlight })
|
|
37
|
-
] });
|
|
38
|
-
};
|
|
39
|
-
exports.Skeleton = Skeleton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
var skeletonContainer = "uv_c2hb451";
|
|
5
|
-
var skeletonHighlight = "uv_c2hb452";
|
|
6
|
-
exports.skeletonContainer = skeletonContainer;
|
|
7
|
-
exports.skeletonHighlight = skeletonHighlight;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
var columns = "var(--uv_fr4c0t0)";
|
|
5
|
-
var widthLine = "var(--uv_fr4c0t1)";
|
|
6
|
-
var sliderLength = "var(--uv_fr4c0t2)";
|
|
7
|
-
var CIRCLE_SIZE = 12.875;
|
|
8
|
-
var blockSkeletonLine = "uv_fr4c0t3";
|
|
9
|
-
var blockSkeletonList = "uv_fr4c0t4";
|
|
10
|
-
var blocksContainer = "uv_fr4c0t5";
|
|
11
|
-
var blocksSkeleton = "uv_fr4c0t6";
|
|
12
|
-
var boxWithIconSkeleton = "uv_fr4c0t7";
|
|
13
|
-
var donutSkeletonContainer = "uv_fr4c0t8";
|
|
14
|
-
var donutSkeletonSvg = "uv_fr4c0t9";
|
|
15
|
-
var donutSkeletonCircle = "uv_fr4c0ta";
|
|
16
|
-
var donutSkeletonLineList = "uv_fr4c0tb";
|
|
17
|
-
var iconSkeleton = "uv_fr4c0tc";
|
|
18
|
-
var lineSkeleton = "uv_fr4c0td";
|
|
19
|
-
var listSkeletonLi = "uv_fr4c0te";
|
|
20
|
-
var listSkeletonDiv = "uv_fr4c0tf";
|
|
21
|
-
var listSkeletonUl = "uv_fr4c0tg";
|
|
22
|
-
var sliderSkeletonContainer = "uv_fr4c0th";
|
|
23
|
-
var sliderSkeletonCard = "uv_fr4c0ti";
|
|
24
|
-
var sliderSkeletonBanner = "uv_fr4c0tj";
|
|
25
|
-
var squareSkeleton = "uv_fr4c0tk";
|
|
26
|
-
exports.CIRCLE_SIZE = CIRCLE_SIZE;
|
|
27
|
-
exports.blockSkeletonLine = blockSkeletonLine;
|
|
28
|
-
exports.blockSkeletonList = blockSkeletonList;
|
|
29
|
-
exports.blocksContainer = blocksContainer;
|
|
30
|
-
exports.blocksSkeleton = blocksSkeleton;
|
|
31
|
-
exports.boxWithIconSkeleton = boxWithIconSkeleton;
|
|
32
|
-
exports.columns = columns;
|
|
33
|
-
exports.donutSkeletonCircle = donutSkeletonCircle;
|
|
34
|
-
exports.donutSkeletonContainer = donutSkeletonContainer;
|
|
35
|
-
exports.donutSkeletonLineList = donutSkeletonLineList;
|
|
36
|
-
exports.donutSkeletonSvg = donutSkeletonSvg;
|
|
37
|
-
exports.iconSkeleton = iconSkeleton;
|
|
38
|
-
exports.lineSkeleton = lineSkeleton;
|
|
39
|
-
exports.listSkeletonDiv = listSkeletonDiv;
|
|
40
|
-
exports.listSkeletonLi = listSkeletonLi;
|
|
41
|
-
exports.listSkeletonUl = listSkeletonUl;
|
|
42
|
-
exports.sliderLength = sliderLength;
|
|
43
|
-
exports.sliderSkeletonBanner = sliderSkeletonBanner;
|
|
44
|
-
exports.sliderSkeletonCard = sliderSkeletonCard;
|
|
45
|
-
exports.sliderSkeletonContainer = sliderSkeletonContainer;
|
|
46
|
-
exports.squareSkeleton = squareSkeleton;
|
|
47
|
-
exports.widthLine = widthLine;
|