@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,291 +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 react = require("react");
|
|
7
|
-
const reactDom = require("react-dom");
|
|
8
|
-
const isClientSide = require("../../helpers/isClientSide.cjs");
|
|
9
|
-
const helpers = require("./helpers.cjs");
|
|
10
|
-
const styles_css = require("./styles.css.cjs");
|
|
11
|
-
const variables_css = require("./variables.css.cjs");
|
|
12
|
-
const DEFAULT_ANIMATION_DURATION = 230;
|
|
13
|
-
const DEFAULT_DEBOUNCE_DURATION = 200;
|
|
14
|
-
const noop = () => {
|
|
15
|
-
};
|
|
16
|
-
const stopClickPropagation = (event) => {
|
|
17
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
18
|
-
};
|
|
19
|
-
const Popup = react.forwardRef(({
|
|
20
|
-
children,
|
|
21
|
-
text = "",
|
|
22
|
-
placement = "auto",
|
|
23
|
-
align = "center",
|
|
24
|
-
id,
|
|
25
|
-
className,
|
|
26
|
-
containerFullWidth,
|
|
27
|
-
containerFullHeight,
|
|
28
|
-
maxWidth = "14.5rem",
|
|
29
|
-
maxHeight,
|
|
30
|
-
visible,
|
|
31
|
-
innerRef,
|
|
32
|
-
role = "popup",
|
|
33
|
-
"data-testid": dataTestId,
|
|
34
|
-
hasArrow = true,
|
|
35
|
-
onClose,
|
|
36
|
-
tabIndex = 0,
|
|
37
|
-
onKeyDown,
|
|
38
|
-
"aria-haspopup": ariaHasPopup,
|
|
39
|
-
hideOnClickOutside = false,
|
|
40
|
-
debounceDelay = DEFAULT_DEBOUNCE_DURATION,
|
|
41
|
-
disableAnimation = false,
|
|
42
|
-
portalTarget,
|
|
43
|
-
dynamicDomRendering = true,
|
|
44
|
-
style
|
|
45
|
-
}, ref) => {
|
|
46
|
-
const childrenRef = react.useRef(null);
|
|
47
|
-
react.useImperativeHandle(innerRef, () => childrenRef.current);
|
|
48
|
-
const innerPopupRef = react.useRef(null);
|
|
49
|
-
react.useImperativeHandle(ref, () => innerPopupRef.current);
|
|
50
|
-
const timer = react.useRef(void 0);
|
|
51
|
-
const popupPortalTarget = react.useMemo(() => {
|
|
52
|
-
if (portalTarget) {
|
|
53
|
-
return portalTarget;
|
|
54
|
-
}
|
|
55
|
-
if (role === "dialog") {
|
|
56
|
-
if (childrenRef.current) {
|
|
57
|
-
return childrenRef.current;
|
|
58
|
-
}
|
|
59
|
-
if (isClientSide.isClientSide) {
|
|
60
|
-
return document.body;
|
|
61
|
-
}
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
if (typeof window !== "undefined") {
|
|
65
|
-
return document.body;
|
|
66
|
-
}
|
|
67
|
-
return null;
|
|
68
|
-
}, [portalTarget, role, childrenRef.current]);
|
|
69
|
-
const animationDuration = disableAnimation || maxHeight ? 0 : DEFAULT_ANIMATION_DURATION;
|
|
70
|
-
const debounceTimer = react.useRef(void 0);
|
|
71
|
-
const [visibleInDom, setVisibleInDom] = react.useState(false);
|
|
72
|
-
const [reverseAnimation, setReverseAnimation] = react.useState(false);
|
|
73
|
-
const [positions, setPositions] = react.useState({
|
|
74
|
-
...helpers.DEFAULT_POSITIONS
|
|
75
|
-
});
|
|
76
|
-
const uniqueId = react.useId();
|
|
77
|
-
const generatedId = id ?? uniqueId;
|
|
78
|
-
const isControlled = visible !== void 0;
|
|
79
|
-
const isAnimated = react.useMemo(() => animationDuration > 0 && !maxHeight, [animationDuration, maxHeight]);
|
|
80
|
-
const generatePopupPositions = react.useCallback(() => {
|
|
81
|
-
if (childrenRef.current && innerPopupRef.current) {
|
|
82
|
-
setPositions(helpers.computePositions({
|
|
83
|
-
align,
|
|
84
|
-
childrenRef,
|
|
85
|
-
hasArrow,
|
|
86
|
-
placement,
|
|
87
|
-
popupPortalTarget,
|
|
88
|
-
popupRef: innerPopupRef
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
}, [hasArrow, placement, popupPortalTarget, align]);
|
|
92
|
-
const onWindowChangeDetected = react.useCallback(() => {
|
|
93
|
-
if (innerPopupRef.current) {
|
|
94
|
-
innerPopupRef.current.style.animation = "none";
|
|
95
|
-
}
|
|
96
|
-
generatePopupPositions();
|
|
97
|
-
}, [generatePopupPositions, innerPopupRef]);
|
|
98
|
-
const unmountPopupFromDom = react.useCallback(() => {
|
|
99
|
-
setVisibleInDom(false);
|
|
100
|
-
setReverseAnimation(false);
|
|
101
|
-
window.removeEventListener("scroll", onWindowChangeDetected, true);
|
|
102
|
-
}, [onWindowChangeDetected]);
|
|
103
|
-
const closePopup = react.useCallback(() => {
|
|
104
|
-
const closeFunction = () => {
|
|
105
|
-
if (!disableAnimation) {
|
|
106
|
-
setReverseAnimation(true);
|
|
107
|
-
timer.current = setTimeout(() => {
|
|
108
|
-
onClose?.();
|
|
109
|
-
unmountPopupFromDom();
|
|
110
|
-
}, animationDuration);
|
|
111
|
-
} else {
|
|
112
|
-
onClose?.();
|
|
113
|
-
unmountPopupFromDom();
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
if (!disableAnimation) {
|
|
117
|
-
debounceTimer.current = setTimeout(() => {
|
|
118
|
-
closeFunction();
|
|
119
|
-
}, debounceDelay && !disableAnimation ? debounceDelay : 0);
|
|
120
|
-
} else {
|
|
121
|
-
closeFunction();
|
|
122
|
-
}
|
|
123
|
-
}, [animationDuration, disableAnimation, debounceDelay, onClose, unmountPopupFromDom]);
|
|
124
|
-
const onPointerEvent = react.useCallback((isVisible) => () => {
|
|
125
|
-
if (!visible && debounceDelay > 0 && debounceTimer.current) {
|
|
126
|
-
clearTimeout(debounceTimer.current);
|
|
127
|
-
debounceTimer.current = void 0;
|
|
128
|
-
}
|
|
129
|
-
if (!isVisible && innerPopupRef.current && !debounceTimer.current) {
|
|
130
|
-
closePopup();
|
|
131
|
-
} else if (isVisible) {
|
|
132
|
-
if (timer.current) {
|
|
133
|
-
setReverseAnimation(false);
|
|
134
|
-
clearTimeout(timer.current);
|
|
135
|
-
timer.current = void 0;
|
|
136
|
-
}
|
|
137
|
-
if (debounceTimer.current) {
|
|
138
|
-
clearTimeout(debounceTimer.current);
|
|
139
|
-
debounceTimer.current = void 0;
|
|
140
|
-
}
|
|
141
|
-
if (debounceDelay > 0) {
|
|
142
|
-
debounceTimer.current = setTimeout(() => {
|
|
143
|
-
setVisibleInDom(true);
|
|
144
|
-
}, debounceDelay);
|
|
145
|
-
} else {
|
|
146
|
-
react.startTransition(() => {
|
|
147
|
-
setVisibleInDom(true);
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}, [closePopup, debounceDelay, visible]);
|
|
152
|
-
react.useEffect(() => {
|
|
153
|
-
if (visibleInDom) {
|
|
154
|
-
generatePopupPositions();
|
|
155
|
-
if (popupPortalTarget === document.body) {
|
|
156
|
-
window.addEventListener("scroll", onWindowChangeDetected, true);
|
|
157
|
-
}
|
|
158
|
-
window.addEventListener("resize", onWindowChangeDetected, true);
|
|
159
|
-
}
|
|
160
|
-
return () => {
|
|
161
|
-
window.removeEventListener("scroll", onWindowChangeDetected, true);
|
|
162
|
-
window.removeEventListener("resize", onWindowChangeDetected, true);
|
|
163
|
-
if (timer.current) {
|
|
164
|
-
clearTimeout(timer.current);
|
|
165
|
-
timer.current = void 0;
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
}, [generatePopupPositions, onWindowChangeDetected, visibleInDom, maxWidth, popupPortalTarget]);
|
|
169
|
-
react.useEffect(() => {
|
|
170
|
-
if (visibleInDom && innerPopupRef.current) {
|
|
171
|
-
innerPopupRef.current.style.opacity = "1";
|
|
172
|
-
}
|
|
173
|
-
}, [positions]);
|
|
174
|
-
react.useEffect(() => {
|
|
175
|
-
if (isControlled) {
|
|
176
|
-
onPointerEvent(visible)();
|
|
177
|
-
}
|
|
178
|
-
}, [isControlled, onPointerEvent, visible]);
|
|
179
|
-
react.useEffect(() => {
|
|
180
|
-
const handleEscPress = (event) => {
|
|
181
|
-
if (event.key === "Escape") {
|
|
182
|
-
event.preventDefault();
|
|
183
|
-
event.stopPropagation();
|
|
184
|
-
closePopup();
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
const handleClickOutside = (event) => {
|
|
188
|
-
const popupCurrent = innerPopupRef.current;
|
|
189
|
-
const childrenCurrent = childrenRef.current;
|
|
190
|
-
if (popupCurrent && hideOnClickOutside && !event.defaultPrevented && event.target && event.target !== popupCurrent && event.target !== childrenCurrent && !childrenCurrent?.contains(event.target) && !popupCurrent.contains(event.target)) {
|
|
191
|
-
event.preventDefault();
|
|
192
|
-
event.stopPropagation();
|
|
193
|
-
closePopup();
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
if (visibleInDom) {
|
|
197
|
-
document.body.addEventListener("keyup", handleEscPress);
|
|
198
|
-
document.body.addEventListener("click", handleClickOutside);
|
|
199
|
-
}
|
|
200
|
-
return () => {
|
|
201
|
-
document.body.removeEventListener("keyup", handleEscPress);
|
|
202
|
-
document.body.removeEventListener("click", handleClickOutside);
|
|
203
|
-
};
|
|
204
|
-
}, [closePopup, visibleInDom, innerPopupRef, childrenRef, hideOnClickOutside]);
|
|
205
|
-
const handleFocusTrap = react.useCallback((event) => {
|
|
206
|
-
const isTabPressed = event.key === "Tab";
|
|
207
|
-
if (!isTabPressed) {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
event.stopPropagation();
|
|
211
|
-
const focusableEls = innerPopupRef.current?.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])") ?? [];
|
|
212
|
-
if (focusableEls.length === 0) {
|
|
213
|
-
event.preventDefault();
|
|
214
|
-
}
|
|
215
|
-
const firstFocusableEl = focusableEls[0];
|
|
216
|
-
const lastFocusableEl = focusableEls[focusableEls.length - 1];
|
|
217
|
-
if (event.shiftKey) {
|
|
218
|
-
if (document.activeElement === firstFocusableEl || document.activeElement === innerPopupRef.current) {
|
|
219
|
-
lastFocusableEl.focus();
|
|
220
|
-
event.preventDefault();
|
|
221
|
-
}
|
|
222
|
-
} else if (document.activeElement === lastFocusableEl || document.activeElement === innerPopupRef.current) {
|
|
223
|
-
firstFocusableEl.focus();
|
|
224
|
-
event.preventDefault();
|
|
225
|
-
}
|
|
226
|
-
}, []);
|
|
227
|
-
react.useEffect(() => () => {
|
|
228
|
-
if (timer.current) {
|
|
229
|
-
clearTimeout(timer.current);
|
|
230
|
-
}
|
|
231
|
-
if (debounceTimer.current) {
|
|
232
|
-
clearTimeout(debounceTimer.current);
|
|
233
|
-
}
|
|
234
|
-
}, []);
|
|
235
|
-
const renderChildren = react.useCallback(() => {
|
|
236
|
-
if (typeof children === "function") {
|
|
237
|
-
return children({
|
|
238
|
-
onBlur: !isControlled ? onPointerEvent(false) : noop,
|
|
239
|
-
onFocus: !isControlled ? onPointerEvent(true) : noop,
|
|
240
|
-
onPointerEnter: !isControlled ? onPointerEvent(true) : noop,
|
|
241
|
-
onPointerLeave: !isControlled ? onPointerEvent(false) : noop,
|
|
242
|
-
ref: childrenRef
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "aria-controls": generatedId, "aria-describedby": generatedId, "aria-haspopup": ariaHasPopup, className: styles_css.childrenContainerPopup({
|
|
246
|
-
fullHeight: containerFullHeight,
|
|
247
|
-
fullWidth: containerFullWidth
|
|
248
|
-
}), onBlur: !isControlled ? onPointerEvent(false) : noop, onFocus: !isControlled ? onPointerEvent(true) : noop, onKeyDown: (event) => {
|
|
249
|
-
onKeyDown?.(event);
|
|
250
|
-
}, onPointerEnter: !isControlled ? onPointerEvent(true) : noop, onPointerLeave: !isControlled ? onPointerEvent(false) : noop, ref: childrenRef, tabIndex, children });
|
|
251
|
-
}, [ariaHasPopup, children, containerFullHeight, containerFullWidth, generatedId, isControlled, onKeyDown, onPointerEvent, tabIndex]);
|
|
252
|
-
const shouldRender = react.useMemo(() => {
|
|
253
|
-
if (!dynamicDomRendering) {
|
|
254
|
-
return true;
|
|
255
|
-
}
|
|
256
|
-
if (dynamicDomRendering && visibleInDom) {
|
|
257
|
-
return true;
|
|
258
|
-
}
|
|
259
|
-
return false;
|
|
260
|
-
}, [dynamicDomRendering, visibleInDom]);
|
|
261
|
-
if (!text) {
|
|
262
|
-
if (typeof children === "function") {
|
|
263
|
-
return null;
|
|
264
|
-
}
|
|
265
|
-
return children;
|
|
266
|
-
}
|
|
267
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
268
|
-
renderChildren(),
|
|
269
|
-
shouldRender ? reactDom.createPortal(/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${className ? `${className} ` : ""}${styles_css.popup({
|
|
270
|
-
hasArrow,
|
|
271
|
-
visibleInDom: !dynamicDomRendering ? visibleInDom : void 0
|
|
272
|
-
})} ${isAnimated ? styles_css.animationPopup[reverseAnimation ? "reverse" : "notReverse"] : null}`, "data-testid": dataTestId, "data-visible-in-dom": !dynamicDomRendering ? visibleInDom : void 0, id: generatedId, onClick: stopClickPropagation, onKeyDown: role === "dialog" ? handleFocusTrap : void 0, onPointerEnter: !isControlled ? onPointerEvent(true) : noop, onPointerLeave: !isControlled ? onPointerEvent(false) : noop, ref: innerPopupRef, role, style: {
|
|
273
|
-
...dynamic.assignInlineVars({
|
|
274
|
-
[variables_css.arrowTop]: `${positions.arrowTop}px`,
|
|
275
|
-
[variables_css.arrowLeft]: `${positions.arrowLeft}px`,
|
|
276
|
-
[variables_css.arrowTransform]: `${positions.arrowTransform} rotate(${positions.rotate}deg)`,
|
|
277
|
-
[variables_css.popupPosition]: positions.popupPosition,
|
|
278
|
-
[variables_css.animationDurationPopup]: `${animationDuration}ms`,
|
|
279
|
-
[variables_css.popupInitialPosition]: positions.popupInitialPosition,
|
|
280
|
-
[variables_css.maxWidthPopup]: `${typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth}`,
|
|
281
|
-
[variables_css.maxHeightPopup]: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
|
|
282
|
-
}),
|
|
283
|
-
...style
|
|
284
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.containerPopup({
|
|
285
|
-
hasMaxHeight: !!maxHeight
|
|
286
|
-
}), style: dynamic.assignInlineVars({
|
|
287
|
-
[variables_css.maxHeightPopup]: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
|
|
288
|
-
}), children: text }) }), popupPortalTarget) : null
|
|
289
|
-
] });
|
|
290
|
-
});
|
|
291
|
-
exports.Popup = Popup;
|
|
@@ -1,12 +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 containerPopup = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_w40vpo2", variantClassNames: { hasMaxHeight: { true: "uv_w40vpo3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
|
-
var popup = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_w40vpo4", variantClassNames: { hasArrow: { true: "uv_w40vpo5" }, visibleInDom: { false: "uv_w40vpo6" } }, defaultVariants: { hasArrow: true, visibleInDom: true }, compoundVariants: [] });
|
|
7
|
-
var animationPopup = { reverse: "uv_w40vpo7", notReverse: "uv_w40vpo8" };
|
|
8
|
-
var childrenContainerPopup = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_w40vpo9", variantClassNames: { fullHeight: { true: "uv_w40vpoa" }, fullWidth: { true: "uv_w40vpob" } }, defaultVariants: {}, compoundVariants: [] });
|
|
9
|
-
exports.animationPopup = animationPopup;
|
|
10
|
-
exports.childrenContainerPopup = childrenContainerPopup;
|
|
11
|
-
exports.containerPopup = containerPopup;
|
|
12
|
-
exports.popup = popup;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
var arrowTop = "var(--uv_ozfz3c0)";
|
|
5
|
-
var arrowLeft = "var(--uv_ozfz3c1)";
|
|
6
|
-
var arrowTransform = "var(--uv_ozfz3c2)";
|
|
7
|
-
var maxHeightPopup = "var(--uv_ozfz3c3)";
|
|
8
|
-
var popupInitialPosition = "var(--uv_ozfz3c6)";
|
|
9
|
-
var popupPosition = "var(--uv_ozfz3c4)";
|
|
10
|
-
var animationDurationPopup = "var(--uv_ozfz3c5)";
|
|
11
|
-
var maxWidthPopup = "var(--uv_ozfz3c7)";
|
|
12
|
-
exports.animationDurationPopup = animationDurationPopup;
|
|
13
|
-
exports.arrowLeft = arrowLeft;
|
|
14
|
-
exports.arrowTop = arrowTop;
|
|
15
|
-
exports.arrowTransform = arrowTransform;
|
|
16
|
-
exports.maxHeightPopup = maxHeightPopup;
|
|
17
|
-
exports.maxWidthPopup = maxWidthPopup;
|
|
18
|
-
exports.popupInitialPosition = popupInitialPosition;
|
|
19
|
-
exports.popupPosition = popupPosition;
|
|
@@ -1,46 +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 index$1 = require("../Label/index.cjs");
|
|
7
|
-
const index = require("../Stack/index.cjs");
|
|
8
|
-
const index$2 = require("../Text/index.cjs");
|
|
9
|
-
const styles_css = require("./styles.css.cjs");
|
|
10
|
-
const variables_css = require("./variables.css.cjs");
|
|
11
|
-
const ProgressBar = ({
|
|
12
|
-
progress = false,
|
|
13
|
-
value = 0,
|
|
14
|
-
sentiment = "primary",
|
|
15
|
-
className,
|
|
16
|
-
"data-testid": dataTestId,
|
|
17
|
-
showProgress = false,
|
|
18
|
-
prefix,
|
|
19
|
-
suffix = "%",
|
|
20
|
-
max = 100,
|
|
21
|
-
label,
|
|
22
|
-
labelDescription,
|
|
23
|
-
direction = "column",
|
|
24
|
-
"aria-labelledby": ariaLabelledBy,
|
|
25
|
-
"aria-label": ariaLabel,
|
|
26
|
-
style
|
|
27
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", direction, gap: direction === "column" ? 1 : 2, children: [
|
|
28
|
-
direction === "column" && (label || showProgress) ? /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { direction: "row", justifyContent: !label && showProgress ? "right" : "space-between", width: "100%", children: [
|
|
29
|
-
/* @__PURE__ */ jsxRuntime.jsx(index$1.Label, { labelDescription, size: "medium", children: label }),
|
|
30
|
-
showProgress ? /* @__PURE__ */ jsxRuntime.jsxs(index$2.Text, { as: "label", placement: "right", sentiment: "neutral", variant: "bodySmall", children: [
|
|
31
|
-
prefix,
|
|
32
|
-
suffix === "%" ? 100 * value / max : value,
|
|
33
|
-
suffix
|
|
34
|
-
] }) : null
|
|
35
|
-
] }) : null,
|
|
36
|
-
direction === "row" && label ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Label, { labelDescription, size: "medium", children: label }) : null,
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-valuemax": max, "aria-valuemin": 0, "aria-valuenow": value, className: `${className ? `${className} ` : ""}${styles_css.progressContainer}`, "data-testid": dataTestId, role: "progressbar", style, children: progress ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.progressBar }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.filledBarSentiments[sentiment], style: dynamic.assignInlineVars({
|
|
38
|
-
[variables_css.percentageValue]: `${100 * Math.max(0, Math.min(max, value)) / max}%`
|
|
39
|
-
}) }) }),
|
|
40
|
-
showProgress && direction === "row" ? /* @__PURE__ */ jsxRuntime.jsx(index.Stack, { direction: "row", gap: 1, width: "fit-content", children: /* @__PURE__ */ jsxRuntime.jsxs(index$2.Text, { as: "label", className: styles_css.customText, sentiment: "neutral", variant: "bodySmall", children: [
|
|
41
|
-
prefix,
|
|
42
|
-
suffix === "%" ? 100 * value / max : value,
|
|
43
|
-
suffix
|
|
44
|
-
] }) }) : null
|
|
45
|
-
] });
|
|
46
|
-
exports.ProgressBar = ProgressBar;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
;/* empty css */
|
|
5
|
-
var progressContainer = "uv_1pgcd801";
|
|
6
|
-
var customText = "uv_1pgcd802";
|
|
7
|
-
var progressBar = "uv_1pgcd803";
|
|
8
|
-
var filledBarSentiments = { primary: "uv_1pgcd805 uv_1pgcd804", secondary: "uv_1pgcd806 uv_1pgcd804", success: "uv_1pgcd807 uv_1pgcd804", danger: "uv_1pgcd808 uv_1pgcd804", warning: "uv_1pgcd809 uv_1pgcd804", info: "uv_1pgcd80a uv_1pgcd804" };
|
|
9
|
-
exports.customText = customText;
|
|
10
|
-
exports.filledBarSentiments = filledBarSentiments;
|
|
11
|
-
exports.progressBar = progressBar;
|
|
12
|
-
exports.progressContainer = progressContainer;
|
|
@@ -1,69 +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("../Stack/index.cjs");
|
|
7
|
-
const index$2 = require("../Text/index.cjs");
|
|
8
|
-
const index = require("../Tooltip/index.cjs");
|
|
9
|
-
const styles_css = require("./styles.css.cjs");
|
|
10
|
-
const RadioMarkedIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
|
|
11
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10", strokeWidth: "2" }),
|
|
12
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { className: styles_css.innerCircleRing, cx: "12", cy: "12", r: "8" }),
|
|
13
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { className: styles_css.radioMark, cx: "12", cy: "12", r: "5" })
|
|
14
|
-
] });
|
|
15
|
-
const Radio = react.forwardRef(({
|
|
16
|
-
checked = false,
|
|
17
|
-
onChange,
|
|
18
|
-
onFocus,
|
|
19
|
-
onBlur,
|
|
20
|
-
disabled = false,
|
|
21
|
-
error,
|
|
22
|
-
name,
|
|
23
|
-
value,
|
|
24
|
-
label,
|
|
25
|
-
helper,
|
|
26
|
-
className,
|
|
27
|
-
autoFocus,
|
|
28
|
-
onKeyDown,
|
|
29
|
-
tooltip,
|
|
30
|
-
"aria-label": ariaLabel,
|
|
31
|
-
"data-testid": dataTestId,
|
|
32
|
-
tabIndex,
|
|
33
|
-
id,
|
|
34
|
-
style
|
|
35
|
-
}, forwadedRef) => {
|
|
36
|
-
const generatedId = react.useId();
|
|
37
|
-
const localId = id || generatedId;
|
|
38
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxRuntime.jsxs(index$1.Stack, { className: styles_css.radioStack, gap: 0.5, children: [
|
|
39
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-disabled": disabled, className: `${className ? `${className} ` : ""}${styles_css.container}`, "data-checked": checked, "data-error": error, "data-testid": dataTestId, children: [
|
|
40
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
-
"input",
|
|
42
|
-
{
|
|
43
|
-
"aria-disabled": disabled,
|
|
44
|
-
"aria-invalid": !!error,
|
|
45
|
-
"aria-label": ariaLabel,
|
|
46
|
-
autoFocus,
|
|
47
|
-
checked,
|
|
48
|
-
className: styles_css.radio,
|
|
49
|
-
disabled,
|
|
50
|
-
id: localId,
|
|
51
|
-
name,
|
|
52
|
-
onBlur,
|
|
53
|
-
onChange,
|
|
54
|
-
onFocus,
|
|
55
|
-
onKeyDown,
|
|
56
|
-
ref: forwadedRef,
|
|
57
|
-
style,
|
|
58
|
-
tabIndex,
|
|
59
|
-
type: "radio",
|
|
60
|
-
value
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { className: styles_css.ring, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx(RadioMarkedIcon, {}) }),
|
|
64
|
-
label ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: typeof label === "string" ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "label", className: styles_css.textLabel, htmlFor: localId, prominence: "default", variant: "body", children: label }) : /* @__PURE__ */ jsxRuntime.jsx("label", { className: styles_css.labelStyle, htmlFor: localId, children: label }) }) : null
|
|
65
|
-
] }),
|
|
66
|
-
helper ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "span", className: styles_css.margedText, prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null
|
|
67
|
-
] }) });
|
|
68
|
-
});
|
|
69
|
-
exports.Radio = Radio;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
var innerCircleRing = "uv_17da2jl0";
|
|
5
|
-
var radioStack = "uv_17da2jl1";
|
|
6
|
-
var margedText = "uv_17da2jl2";
|
|
7
|
-
var container = "uv_17da2jl3";
|
|
8
|
-
var textLabel = "uv_17da2jl4";
|
|
9
|
-
var labelStyle = "uv_17da2jl5";
|
|
10
|
-
var radio = "uv_17da2jl6";
|
|
11
|
-
var ring = "uv_17da2jl7";
|
|
12
|
-
var radioMark = "uv_17da2jl8";
|
|
13
|
-
exports.container = container;
|
|
14
|
-
exports.innerCircleRing = innerCircleRing;
|
|
15
|
-
exports.labelStyle = labelStyle;
|
|
16
|
-
exports.margedText = margedText;
|
|
17
|
-
exports.radio = radio;
|
|
18
|
-
exports.radioMark = radioMark;
|
|
19
|
-
exports.radioStack = radioStack;
|
|
20
|
-
exports.ring = ring;
|
|
21
|
-
exports.textLabel = textLabel;
|
|
@@ -1,73 +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$3 = require("../Radio/index.cjs");
|
|
8
|
-
const index = require("../Stack/index.cjs");
|
|
9
|
-
const index$2 = require("../Text/index.cjs");
|
|
10
|
-
const styles_css = require("./styles.css.cjs");
|
|
11
|
-
const RadioGroupContext = react.createContext(void 0);
|
|
12
|
-
const RadioGroupRadio = ({
|
|
13
|
-
onFocus,
|
|
14
|
-
onBlur,
|
|
15
|
-
disabled,
|
|
16
|
-
error,
|
|
17
|
-
value,
|
|
18
|
-
label,
|
|
19
|
-
helper,
|
|
20
|
-
className,
|
|
21
|
-
autoFocus,
|
|
22
|
-
onKeyDown,
|
|
23
|
-
tooltip,
|
|
24
|
-
"data-testid": dataTestId,
|
|
25
|
-
style
|
|
26
|
-
}) => {
|
|
27
|
-
const context = react.useContext(RadioGroupContext);
|
|
28
|
-
if (!context) {
|
|
29
|
-
throw new Error("RadioGroup.Radio can only be used inside a RadioGroup");
|
|
30
|
-
}
|
|
31
|
-
const {
|
|
32
|
-
groupName,
|
|
33
|
-
onChange,
|
|
34
|
-
groupValue,
|
|
35
|
-
error: errorContext
|
|
36
|
-
} = context;
|
|
37
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index$3.Radio, { autoFocus, checked: groupValue === value, className, "data-testid": dataTestId, disabled, error: error || errorContext, helper, label, name: groupName, onBlur, onChange, onFocus, onKeyDown, style, tooltip, value });
|
|
38
|
-
};
|
|
39
|
-
const RadioGroup = ({
|
|
40
|
-
legend,
|
|
41
|
-
legendDescription,
|
|
42
|
-
value,
|
|
43
|
-
className,
|
|
44
|
-
helper,
|
|
45
|
-
error,
|
|
46
|
-
direction = "column",
|
|
47
|
-
children,
|
|
48
|
-
onChange,
|
|
49
|
-
name,
|
|
50
|
-
description,
|
|
51
|
-
required = false
|
|
52
|
-
}) => {
|
|
53
|
-
const contextValue = react.useMemo(() => ({
|
|
54
|
-
error: !!error,
|
|
55
|
-
groupName: name,
|
|
56
|
-
groupValue: value,
|
|
57
|
-
onChange,
|
|
58
|
-
required
|
|
59
|
-
}), [name, value, onChange, required, error]);
|
|
60
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { gap: 1, children: [
|
|
61
|
-
/* @__PURE__ */ jsxRuntime.jsx("fieldset", { className: `${className ? `${className} ` : ""}${styles_css.fieldset}`, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { gap: 1.5, children: [
|
|
62
|
-
legend || description ? /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { gap: 0.5, children: [
|
|
63
|
-
legend ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Label, { as: "legend", labelDescription: legendDescription, required, children: legend }) : null,
|
|
64
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: typeof description === "string" ? "p" : "div", prominence: "weak", sentiment: "neutral", variant: "bodySmall", children: description }) : null
|
|
65
|
-
] }) : null,
|
|
66
|
-
/* @__PURE__ */ jsxRuntime.jsx(index.Stack, { alignItems: "start", direction, gap: direction === "column" ? 1 : 2, children })
|
|
67
|
-
] }) }),
|
|
68
|
-
helper ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null,
|
|
69
|
-
error ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "span", sentiment: "danger", variant: "caption", children: error }) : null
|
|
70
|
-
] }) });
|
|
71
|
-
};
|
|
72
|
-
RadioGroup.Radio = RadioGroupRadio;
|
|
73
|
-
exports.RadioGroup = RadioGroup;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const themes = require("@ultraviolet/themes");
|
|
6
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
7
|
-
const styles_css = require("./styles.css.cjs");
|
|
8
|
-
const variables_css = require("./variables.css.cjs");
|
|
9
|
-
const mapRepsonsiveGap = (object) => object ? Object.keys(object).reduce((acc, key) => ({
|
|
10
|
-
...acc,
|
|
11
|
-
[key]: themes.consoleLightTheme.space[object[key]]
|
|
12
|
-
}), {}) : {};
|
|
13
|
-
const Row = ({
|
|
14
|
-
className,
|
|
15
|
-
"data-testid": dataTestId,
|
|
16
|
-
children,
|
|
17
|
-
templateColumns,
|
|
18
|
-
alignItems,
|
|
19
|
-
justifyContent,
|
|
20
|
-
gap,
|
|
21
|
-
padding,
|
|
22
|
-
style
|
|
23
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${className ? `${className} ` : ""}${styles_css.row} ${styles_css.sprinkles({
|
|
24
|
-
alignItems: typeof alignItems === "object" ? alignItems : {
|
|
25
|
-
xxsmall: alignItems
|
|
26
|
-
},
|
|
27
|
-
gap: typeof gap === "object" ? mapRepsonsiveGap(gap) : {
|
|
28
|
-
xxsmall: gap ? themes.consoleLightTheme.space[gap] : void 0
|
|
29
|
-
},
|
|
30
|
-
justifyContent: typeof justifyContent === "object" ? justifyContent : {
|
|
31
|
-
xxsmall: justifyContent
|
|
32
|
-
}
|
|
33
|
-
})}`, "data-testid": dataTestId, style: {
|
|
34
|
-
...dynamic.assignInlineVars({
|
|
35
|
-
...Object.keys(variables_css.templateColumn).reduce((acc, column) => ({
|
|
36
|
-
...acc,
|
|
37
|
-
[variables_css.templateColumn[column]]: typeof templateColumns === "object" ? templateColumns[column] || "" : templateColumns
|
|
38
|
-
}), {}),
|
|
39
|
-
...Object.keys(variables_css.paddings).reduce((acc, localPadding) => ({
|
|
40
|
-
...acc,
|
|
41
|
-
[variables_css.paddings[localPadding]]: typeof padding === "object" ? padding[localPadding] || "" : padding
|
|
42
|
-
}), {})
|
|
43
|
-
}),
|
|
44
|
-
...style
|
|
45
|
-
}, children });
|
|
46
|
-
exports.Row = Row;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const createRuntimeSprinkles = require("@vanilla-extract/sprinkles/createRuntimeSprinkles");
|
|
6
|
-
var row = "uv_x6hyh50";
|
|
7
|
-
var responsiveProperties = function() {
|
|
8
|
-
var x = { conditions: { defaultCondition: "xxsmall", conditionNames: ["xxsmall", "xsmall", "small", "medium", "large", "xlarge"], responsiveArray: ["xxsmall", "xsmall", "small", "medium", "large"] }, styles: { gap: { values: { "0rem": { conditions: { xxsmall: "uv_x6hyh51", xsmall: "uv_x6hyh52", small: "uv_x6hyh53", medium: "uv_x6hyh54", large: "uv_x6hyh55", xlarge: "uv_x6hyh56" }, defaultClass: "uv_x6hyh51" }, "0.5rem": { conditions: { xxsmall: "uv_x6hyh57", xsmall: "uv_x6hyh58", small: "uv_x6hyh59", medium: "uv_x6hyh5a", large: "uv_x6hyh5b", xlarge: "uv_x6hyh5c" }, defaultClass: "uv_x6hyh57" }, "1rem": { conditions: { xxsmall: "uv_x6hyh5d", xsmall: "uv_x6hyh5e", small: "uv_x6hyh5f", medium: "uv_x6hyh5g", large: "uv_x6hyh5h", xlarge: "uv_x6hyh5i" }, defaultClass: "uv_x6hyh5d" }, "1.5rem": { conditions: { xxsmall: "uv_x6hyh5j", xsmall: "uv_x6hyh5k", small: "uv_x6hyh5l", medium: "uv_x6hyh5m", large: "uv_x6hyh5n", xlarge: "uv_x6hyh5o" }, defaultClass: "uv_x6hyh5j" }, "2rem": { conditions: { xxsmall: "uv_x6hyh5p", xsmall: "uv_x6hyh5q", small: "uv_x6hyh5r", medium: "uv_x6hyh5s", large: "uv_x6hyh5t", xlarge: "uv_x6hyh5u" }, defaultClass: "uv_x6hyh5p" }, "2.5rem": { conditions: { xxsmall: "uv_x6hyh5v", xsmall: "uv_x6hyh5w", small: "uv_x6hyh5x", medium: "uv_x6hyh5y", large: "uv_x6hyh5z", xlarge: "uv_x6hyh510" }, defaultClass: "uv_x6hyh5v" }, "3rem": { conditions: { xxsmall: "uv_x6hyh511", xsmall: "uv_x6hyh512", small: "uv_x6hyh513", medium: "uv_x6hyh514", large: "uv_x6hyh515", xlarge: "uv_x6hyh516" }, defaultClass: "uv_x6hyh511" }, "3.5rem": { conditions: { xxsmall: "uv_x6hyh517", xsmall: "uv_x6hyh518", small: "uv_x6hyh519", medium: "uv_x6hyh51a", large: "uv_x6hyh51b", xlarge: "uv_x6hyh51c" }, defaultClass: "uv_x6hyh517" }, "4rem": { conditions: { xxsmall: "uv_x6hyh51d", xsmall: "uv_x6hyh51e", small: "uv_x6hyh51f", medium: "uv_x6hyh51g", large: "uv_x6hyh51h", xlarge: "uv_x6hyh51i" }, defaultClass: "uv_x6hyh51d" }, "4.5rem": { conditions: { xxsmall: "uv_x6hyh51j", xsmall: "uv_x6hyh51k", small: "uv_x6hyh51l", medium: "uv_x6hyh51m", large: "uv_x6hyh51n", xlarge: "uv_x6hyh51o" }, defaultClass: "uv_x6hyh51j" }, "5rem": { conditions: { xxsmall: "uv_x6hyh51p", xsmall: "uv_x6hyh51q", small: "uv_x6hyh51r", medium: "uv_x6hyh51s", large: "uv_x6hyh51t", xlarge: "uv_x6hyh51u" }, defaultClass: "uv_x6hyh51p" }, "0.25rem": { conditions: { xxsmall: "uv_x6hyh51v", xsmall: "uv_x6hyh51w", small: "uv_x6hyh51x", medium: "uv_x6hyh51y", large: "uv_x6hyh51z", xlarge: "uv_x6hyh520" }, defaultClass: "uv_x6hyh51v" }, "0.125rem": { conditions: { xxsmall: "uv_x6hyh521", xsmall: "uv_x6hyh522", small: "uv_x6hyh523", medium: "uv_x6hyh524", large: "uv_x6hyh525", xlarge: "uv_x6hyh526" }, defaultClass: "uv_x6hyh521" }, "0.75rem": { conditions: { xxsmall: "uv_x6hyh527", xsmall: "uv_x6hyh528", small: "uv_x6hyh529", medium: "uv_x6hyh52a", large: "uv_x6hyh52b", xlarge: "uv_x6hyh52c" }, defaultClass: "uv_x6hyh527" } }, responsiveArray: void 0 }, alignItems: { values: { normal: { conditions: { xxsmall: "uv_x6hyh52d", xsmall: "uv_x6hyh52e", small: "uv_x6hyh52f", medium: "uv_x6hyh52g", large: "uv_x6hyh52h", xlarge: "uv_x6hyh52i" }, defaultClass: "uv_x6hyh52d" }, stretch: { conditions: { xxsmall: "uv_x6hyh52j", xsmall: "uv_x6hyh52k", small: "uv_x6hyh52l", medium: "uv_x6hyh52m", large: "uv_x6hyh52n", xlarge: "uv_x6hyh52o" }, defaultClass: "uv_x6hyh52j" }, center: { conditions: { xxsmall: "uv_x6hyh52p", xsmall: "uv_x6hyh52q", small: "uv_x6hyh52r", medium: "uv_x6hyh52s", large: "uv_x6hyh52t", xlarge: "uv_x6hyh52u" }, defaultClass: "uv_x6hyh52p" }, start: { conditions: { xxsmall: "uv_x6hyh52v", xsmall: "uv_x6hyh52w", small: "uv_x6hyh52x", medium: "uv_x6hyh52y", large: "uv_x6hyh52z", xlarge: "uv_x6hyh530" }, defaultClass: "uv_x6hyh52v" }, end: { conditions: { xxsmall: "uv_x6hyh531", xsmall: "uv_x6hyh532", small: "uv_x6hyh533", medium: "uv_x6hyh534", large: "uv_x6hyh535", xlarge: "uv_x6hyh536" }, defaultClass: "uv_x6hyh531" }, "flex-start": { conditions: { xxsmall: "uv_x6hyh537", xsmall: "uv_x6hyh538", small: "uv_x6hyh539", medium: "uv_x6hyh53a", large: "uv_x6hyh53b", xlarge: "uv_x6hyh53c" }, defaultClass: "uv_x6hyh537" }, "flex-end": { conditions: { xxsmall: "uv_x6hyh53d", xsmall: "uv_x6hyh53e", small: "uv_x6hyh53f", medium: "uv_x6hyh53g", large: "uv_x6hyh53h", xlarge: "uv_x6hyh53i" }, defaultClass: "uv_x6hyh53d" }, "self-start": { conditions: { xxsmall: "uv_x6hyh53j", xsmall: "uv_x6hyh53k", small: "uv_x6hyh53l", medium: "uv_x6hyh53m", large: "uv_x6hyh53n", xlarge: "uv_x6hyh53o" }, defaultClass: "uv_x6hyh53j" }, "self-end": { conditions: { xxsmall: "uv_x6hyh53p", xsmall: "uv_x6hyh53q", small: "uv_x6hyh53r", medium: "uv_x6hyh53s", large: "uv_x6hyh53t", xlarge: "uv_x6hyh53u" }, defaultClass: "uv_x6hyh53p" }, baseline: { conditions: { xxsmall: "uv_x6hyh53v", xsmall: "uv_x6hyh53w", small: "uv_x6hyh53x", medium: "uv_x6hyh53y", large: "uv_x6hyh53z", xlarge: "uv_x6hyh540" }, defaultClass: "uv_x6hyh53v" }, "first baseline": { conditions: { xxsmall: "uv_x6hyh541", xsmall: "uv_x6hyh542", small: "uv_x6hyh543", medium: "uv_x6hyh544", large: "uv_x6hyh545", xlarge: "uv_x6hyh546" }, defaultClass: "uv_x6hyh541" }, "last baseline": { conditions: { xxsmall: "uv_x6hyh547", xsmall: "uv_x6hyh548", small: "uv_x6hyh549", medium: "uv_x6hyh54a", large: "uv_x6hyh54b", xlarge: "uv_x6hyh54c" }, defaultClass: "uv_x6hyh547" }, "safe center": { conditions: { xxsmall: "uv_x6hyh54d", xsmall: "uv_x6hyh54e", small: "uv_x6hyh54f", medium: "uv_x6hyh54g", large: "uv_x6hyh54h", xlarge: "uv_x6hyh54i" }, defaultClass: "uv_x6hyh54d" }, "unsafe center": { conditions: { xxsmall: "uv_x6hyh54j", xsmall: "uv_x6hyh54k", small: "uv_x6hyh54l", medium: "uv_x6hyh54m", large: "uv_x6hyh54n", xlarge: "uv_x6hyh54o" }, defaultClass: "uv_x6hyh54j" } }, responsiveArray: void 0 }, justifyContent: { values: { normal: { conditions: { xxsmall: "uv_x6hyh54p", xsmall: "uv_x6hyh54q", small: "uv_x6hyh54r", medium: "uv_x6hyh54s", large: "uv_x6hyh54t", xlarge: "uv_x6hyh54u" }, defaultClass: "uv_x6hyh54p" }, center: { conditions: { xxsmall: "uv_x6hyh54v", xsmall: "uv_x6hyh54w", small: "uv_x6hyh54x", medium: "uv_x6hyh54y", large: "uv_x6hyh54z", xlarge: "uv_x6hyh550" }, defaultClass: "uv_x6hyh54v" }, start: { conditions: { xxsmall: "uv_x6hyh551", xsmall: "uv_x6hyh552", small: "uv_x6hyh553", medium: "uv_x6hyh554", large: "uv_x6hyh555", xlarge: "uv_x6hyh556" }, defaultClass: "uv_x6hyh551" }, end: { conditions: { xxsmall: "uv_x6hyh557", xsmall: "uv_x6hyh558", small: "uv_x6hyh559", medium: "uv_x6hyh55a", large: "uv_x6hyh55b", xlarge: "uv_x6hyh55c" }, defaultClass: "uv_x6hyh557" }, "flex-start": { conditions: { xxsmall: "uv_x6hyh55d", xsmall: "uv_x6hyh55e", small: "uv_x6hyh55f", medium: "uv_x6hyh55g", large: "uv_x6hyh55h", xlarge: "uv_x6hyh55i" }, defaultClass: "uv_x6hyh55d" }, "flex-end": { conditions: { xxsmall: "uv_x6hyh55j", xsmall: "uv_x6hyh55k", small: "uv_x6hyh55l", medium: "uv_x6hyh55m", large: "uv_x6hyh55n", xlarge: "uv_x6hyh55o" }, defaultClass: "uv_x6hyh55j" }, left: { conditions: { xxsmall: "uv_x6hyh55p", xsmall: "uv_x6hyh55q", small: "uv_x6hyh55r", medium: "uv_x6hyh55s", large: "uv_x6hyh55t", xlarge: "uv_x6hyh55u" }, defaultClass: "uv_x6hyh55p" }, right: { conditions: { xxsmall: "uv_x6hyh55v", xsmall: "uv_x6hyh55w", small: "uv_x6hyh55x", medium: "uv_x6hyh55y", large: "uv_x6hyh55z", xlarge: "uv_x6hyh560" }, defaultClass: "uv_x6hyh55v" }, "space-between": { conditions: { xxsmall: "uv_x6hyh561", xsmall: "uv_x6hyh562", small: "uv_x6hyh563", medium: "uv_x6hyh564", large: "uv_x6hyh565", xlarge: "uv_x6hyh566" }, defaultClass: "uv_x6hyh561" }, "space-around": { conditions: { xxsmall: "uv_x6hyh567", xsmall: "uv_x6hyh568", small: "uv_x6hyh569", medium: "uv_x6hyh56a", large: "uv_x6hyh56b", xlarge: "uv_x6hyh56c" }, defaultClass: "uv_x6hyh567" }, "space-evenly": { conditions: { xxsmall: "uv_x6hyh56d", xsmall: "uv_x6hyh56e", small: "uv_x6hyh56f", medium: "uv_x6hyh56g", large: "uv_x6hyh56h", xlarge: "uv_x6hyh56i" }, defaultClass: "uv_x6hyh56d" }, stretch: { conditions: { xxsmall: "uv_x6hyh56j", xsmall: "uv_x6hyh56k", small: "uv_x6hyh56l", medium: "uv_x6hyh56m", large: "uv_x6hyh56n", xlarge: "uv_x6hyh56o" }, defaultClass: "uv_x6hyh56j" } }, responsiveArray: void 0 } } };
|
|
9
|
-
x.styles.gap.responsiveArray = x.conditions.responsiveArray;
|
|
10
|
-
x.styles.alignItems.responsiveArray = x.conditions.responsiveArray;
|
|
11
|
-
x.styles.justifyContent.responsiveArray = x.conditions.responsiveArray;
|
|
12
|
-
return x;
|
|
13
|
-
}();
|
|
14
|
-
var sprinkles = createRuntimeSprinkles.createSprinkles(responsiveProperties);
|
|
15
|
-
exports.responsiveProperties = responsiveProperties;
|
|
16
|
-
exports.row = row;
|
|
17
|
-
exports.sprinkles = sprinkles;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
var templateColumn = { large: "var(--uv_3mg8xe0)", xlarge: "var(--uv_3mg8xe1)", medium: "var(--uv_3mg8xe2)", small: "var(--uv_3mg8xe3)", xsmall: "var(--uv_3mg8xe4)", xxsmall: "var(--uv_3mg8xe5)" };
|
|
5
|
-
var paddings = { large: "var(--uv_3mg8xe6)", xlarge: "var(--uv_3mg8xe7)", medium: "var(--uv_3mg8xe8)", small: "var(--uv_3mg8xe9)", xsmall: "var(--uv_3mg8xea)", xxsmall: "var(--uv_3mg8xeb)" };
|
|
6
|
-
exports.paddings = paddings;
|
|
7
|
-
exports.templateColumn = templateColumn;
|