@ultraviolet/ui 3.0.0-beta.27 → 3.0.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -18
- package/dist/components/ActionBar/index.js +19 -7
- package/dist/components/Alert/index.d.ts +2 -1
- package/dist/components/Alert/index.js +98 -20
- package/dist/components/Alert/styles.css.d.ts +10 -1
- package/dist/components/Alert/styles.css.js +7 -5
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Avatar/index.js +46 -36
- package/dist/components/Avatar/styles.css.js +0 -1
- package/dist/components/Avatar/variables.css.js +1 -0
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.js +19 -8
- package/dist/components/Banner/index.d.ts +1 -1
- package/dist/components/Banner/index.js +87 -28
- package/dist/components/BarChart/Tooltip.d.ts +1 -1
- package/dist/components/BarChart/Tooltip.js +23 -10
- package/dist/components/BarChart/index.d.ts +1 -1
- package/dist/components/BarChart/index.js +51 -31
- package/dist/components/BarStack/index.d.ts +1 -1
- package/dist/components/BarStack/index.js +64 -19
- package/dist/components/Breadcrumbs/components/Item.d.ts +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +48 -12
- package/dist/components/Breadcrumbs/index.js +11 -2
- package/dist/components/Bullet/index.d.ts +1 -1
- package/dist/components/Bullet/index.js +10 -7
- package/dist/components/Button/index.js +122 -72
- package/dist/components/Card/index.js +80 -20
- package/dist/components/Carousel/index.d.ts +3 -3
- package/dist/components/Carousel/index.js +72 -26
- package/dist/components/Checkbox/index.js +139 -43
- package/dist/components/CheckboxGroup/index.d.ts +3 -3
- package/dist/components/CheckboxGroup/index.js +77 -24
- package/dist/components/Chip/ChipIcon.d.ts +1 -1
- package/dist/components/Chip/ChipIcon.js +46 -12
- package/dist/components/Chip/index.d.ts +3 -3
- package/dist/components/Chip/index.js +36 -11
- package/dist/components/CopyButton/index.d.ts +1 -1
- package/dist/components/CopyButton/index.js +23 -8
- package/dist/components/DateInput/components/CalendarContent.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +61 -26
- package/dist/components/DateInput/components/CalendarDaily.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +105 -62
- package/dist/components/DateInput/components/CalendarMonthly.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +62 -39
- package/dist/components/DateInput/components/Popup.d.ts +1 -1
- package/dist/components/DateInput/components/Popup.js +29 -6
- package/dist/components/DateInput/helpers.js +9 -2
- package/dist/components/DateInput/helpersLocale.js +3 -9
- package/dist/components/DateInput/index.d.ts +1 -1
- package/dist/components/DateInput/index.js +193 -62
- package/dist/components/Dialog/Context.js +3 -1
- package/dist/components/Dialog/components/Button.d.ts +1 -1
- package/dist/components/Dialog/components/Button.js +12 -2
- package/dist/components/Dialog/components/Buttons.d.ts +1 -1
- package/dist/components/Dialog/components/Buttons.js +1 -1
- package/dist/components/Dialog/components/CancelButton.d.ts +1 -1
- package/dist/components/Dialog/components/CancelButton.js +12 -2
- package/dist/components/Dialog/components/Stack.d.ts +1 -1
- package/dist/components/Dialog/components/Stack.js +2 -5
- package/dist/components/Dialog/components/Text.d.ts +1 -1
- package/dist/components/Dialog/components/Text.js +2 -5
- package/dist/components/Dialog/index.d.ts +7 -7
- package/dist/components/Dialog/index.js +43 -12
- package/dist/components/Drawer/index.d.ts +4 -4
- package/dist/components/Drawer/index.js +53 -15
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/EmptyState/index.js +63 -21
- package/dist/components/Expandable/index.d.ts +2 -2
- package/dist/components/Expandable/index.js +52 -15
- package/dist/components/ExpandableCard/components/Title.d.ts +1 -1
- package/dist/components/ExpandableCard/components/Title.js +12 -2
- package/dist/components/ExpandableCard/index.d.ts +1 -1
- package/dist/components/ExpandableCard/index.js +197 -96
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +1 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.js +21 -5
- package/dist/components/GlobalAlert/index.d.ts +2 -2
- package/dist/components/GlobalAlert/index.js +51 -11
- package/dist/components/InfiniteScroll/index.d.ts +1 -1
- package/dist/components/InfiniteScroll/index.js +40 -33
- package/dist/components/Key/index.d.ts +1 -1
- package/dist/components/Key/index.js +29 -8
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/Label/index.js +67 -6
- package/dist/components/LineChart/CustomLegend.d.ts +1 -1
- package/dist/components/LineChart/CustomLegend.js +69 -45
- package/dist/components/LineChart/Tooltip.d.ts +1 -1
- package/dist/components/LineChart/Tooltip.js +31 -9
- package/dist/components/LineChart/helpers.js +13 -12
- package/dist/components/LineChart/index.d.ts +1 -1
- package/dist/components/LineChart/index.js +56 -40
- package/dist/components/Link/index.js +74 -57
- package/dist/components/List/Cell.js +24 -22
- package/dist/components/List/ColumnProvider.d.ts +1 -1
- package/dist/components/List/ColumnProvider.js +12 -6
- package/dist/components/List/HeaderCell.d.ts +1 -1
- package/dist/components/List/HeaderCell.js +36 -19
- package/dist/components/List/HeaderRow.d.ts +1 -1
- package/dist/components/List/HeaderRow.js +14 -12
- package/dist/components/List/ListContext.d.ts +1 -1
- package/dist/components/List/ListContext.js +128 -78
- package/dist/components/List/Row.js +166 -90
- package/dist/components/List/SelectBar.d.ts +1 -1
- package/dist/components/List/SelectBar.js +20 -10
- package/dist/components/List/SkeletonRows.d.ts +1 -1
- package/dist/components/List/SkeletonRows.js +26 -16
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/List/index.js +60 -22
- package/dist/components/Loader/index.d.ts +1 -1
- package/dist/components/Loader/index.js +47 -23
- package/dist/components/Menu/MenuContent.d.ts +1 -1
- package/dist/components/Menu/MenuContent.js +216 -162
- package/dist/components/Menu/MenuProvider.d.ts +1 -1
- package/dist/components/Menu/MenuProvider.js +26 -13
- package/dist/components/Menu/components/Group.d.ts +1 -1
- package/dist/components/Menu/components/Group.js +11 -2
- package/dist/components/Menu/components/Item.js +144 -82
- package/dist/components/Menu/helpers.js +3 -1
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Menu/index.js +5 -11
- package/dist/components/Menu/types.d.ts +2 -2
- package/dist/components/Meter/index.d.ts +1 -1
- package/dist/components/Meter/index.js +43 -12
- package/dist/components/Modal/ModalContent.d.ts +1 -1
- package/dist/components/Modal/ModalContent.js +41 -11
- package/dist/components/Modal/ModalProvider.d.ts +1 -1
- package/dist/components/Modal/ModalProvider.js +14 -11
- package/dist/components/Modal/components/Dialog.js +91 -47
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.js +60 -3
- package/dist/components/Notice/index.d.ts +1 -1
- package/dist/components/Notice/index.js +24 -5
- package/dist/components/Notification/Notification.js +12 -2
- package/dist/components/Notification/NotificationContainer.d.ts +1 -1
- package/dist/components/Notification/NotificationContainer.js +18 -2
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/NumberInput/index.js +239 -130
- package/dist/components/Pagination/PaginationButtons.d.ts +1 -1
- package/dist/components/Pagination/PaginationButtons.js +75 -10
- package/dist/components/Pagination/PerPage.d.ts +1 -1
- package/dist/components/Pagination/PerPage.js +32 -17
- package/dist/components/Pagination/getPageNumbers.js +12 -13
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/Pagination/index.js +26 -3
- package/dist/components/PasswordCheck/index.d.ts +1 -1
- package/dist/components/PasswordCheck/index.js +27 -5
- package/dist/components/PieChart/Legends.d.ts +1 -1
- package/dist/components/PieChart/Legends.js +52 -20
- package/dist/components/PieChart/Tooltip.d.ts +1 -1
- package/dist/components/PieChart/Tooltip.js +2 -4
- package/dist/components/PieChart/index.d.ts +1 -1
- package/dist/components/PieChart/index.js +80 -40
- package/dist/components/Popover/index.js +104 -46
- package/dist/components/Popup/helpers.d.ts +5 -1
- package/dist/components/Popup/helpers.js +49 -35
- package/dist/components/Popup/index.d.ts +2 -1
- package/dist/components/Popup/index.js +373 -255
- package/dist/components/Popup/styles.css.js +0 -1
- package/dist/components/Popup/variables.css.js +1 -0
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.js +74 -20
- package/dist/components/Radio/index.js +83 -51
- package/dist/components/RadioGroup/index.d.ts +2 -2
- package/dist/components/RadioGroup/index.js +74 -20
- package/dist/components/Row/index.d.ts +1 -1
- package/dist/components/Row/index.js +38 -27
- package/dist/components/Row/styles.css.d.ts +11 -0
- package/dist/components/Row/styles.css.js +2 -2
- package/dist/components/SearchInput/KeyGroup.d.ts +1 -1
- package/dist/components/SearchInput/KeyGroup.js +2 -6
- package/dist/components/SearchInput/index.js +232 -164
- package/dist/components/SelectInput/SelectInputProvider.d.ts +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +91 -55
- package/dist/components/SelectInput/components/Dropdown.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown.js +442 -101
- package/dist/components/SelectInput/components/DropdownOption.d.ts +1 -1
- package/dist/components/SelectInput/components/DropdownOption.js +176 -27
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +1 -1
- package/dist/components/SelectInput/components/SearchBarDropdown.js +40 -14
- package/dist/components/SelectInput/components/SelectBar.d.ts +1 -1
- package/dist/components/SelectInput/components/SelectBar.js +252 -97
- package/dist/components/SelectInput/index.d.ts +1 -1
- package/dist/components/SelectInput/index.js +102 -10
- package/dist/components/SelectableCard/index.js +200 -114
- package/dist/components/SelectableCardGroup/index.d.ts +2 -2
- package/dist/components/SelectableCardGroup/index.js +67 -25
- package/dist/components/SelectableCardOptionGroup/Provider.js +3 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.js +12 -8
- package/dist/components/SelectableCardOptionGroup/components/Option.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +96 -19
- package/dist/components/SelectableCardOptionGroup/index.d.ts +2 -2
- package/dist/components/SelectableCardOptionGroup/index.js +53 -17
- package/dist/components/Separator/index.d.ts +1 -1
- package/dist/components/Separator/index.js +43 -26
- package/dist/components/Skeleton/Block.d.ts +1 -1
- package/dist/components/Skeleton/Block.js +2 -6
- package/dist/components/Skeleton/Blocks.d.ts +1 -1
- package/dist/components/Skeleton/Blocks.js +14 -9
- package/dist/components/Skeleton/BoxWithIcon.d.ts +1 -1
- package/dist/components/Skeleton/BoxWithIcon.js +14 -9
- package/dist/components/Skeleton/Donut.d.ts +1 -1
- package/dist/components/Skeleton/Donut.js +10 -2
- package/dist/components/Skeleton/IconSkeleton.d.ts +1 -1
- package/dist/components/Skeleton/IconSkeleton.js +1 -1
- package/dist/components/Skeleton/Line.d.ts +1 -1
- package/dist/components/Skeleton/Line.js +10 -4
- package/dist/components/Skeleton/List.d.ts +1 -1
- package/dist/components/Skeleton/List.js +3 -9
- package/dist/components/Skeleton/Slider.d.ts +1 -1
- package/dist/components/Skeleton/Slider.js +11 -8
- package/dist/components/Skeleton/Square.d.ts +1 -1
- package/dist/components/Skeleton/Square.js +1 -1
- package/dist/components/Skeleton/index.d.ts +9 -9
- package/dist/components/Skeleton/index.js +16 -5
- package/dist/components/Slider/components/DoubleSlider.d.ts +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +191 -88
- package/dist/components/Slider/components/Options.d.ts +1 -1
- package/dist/components/Slider/components/Options.js +44 -28
- package/dist/components/Slider/components/SingleSlider.d.ts +1 -1
- package/dist/components/Slider/components/SingleSlider.js +133 -53
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.js +82 -12
- package/dist/components/Snippet/index.d.ts +1 -1
- package/dist/components/Snippet/index.js +103 -19
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stack/index.js +20 -24
- package/dist/components/Stack/styles.css.js +2 -2
- package/dist/components/Status/index.d.ts +1 -1
- package/dist/components/Status/index.js +13 -11
- package/dist/components/StepList/index.d.ts +2 -2
- package/dist/components/StepList/index.js +31 -10
- package/dist/components/Stepper/Step.d.ts +1 -1
- package/dist/components/Stepper/Step.js +65 -30
- package/dist/components/Stepper/StepperProvider.d.ts +1 -1
- package/dist/components/Stepper/StepperProvider.js +13 -10
- package/dist/components/Stepper/index.d.ts +2 -2
- package/dist/components/Stepper/index.js +46 -26
- package/dist/components/SwitchButton/FocusOverlay.d.ts +1 -1
- package/dist/components/SwitchButton/FocusOverlay.js +11 -5
- package/dist/components/SwitchButton/Option.d.ts +1 -1
- package/dist/components/SwitchButton/Option.js +20 -2
- package/dist/components/SwitchButton/index.d.ts +2 -2
- package/dist/components/SwitchButton/index.js +95 -48
- package/dist/components/Table/Body.d.ts +1 -1
- package/dist/components/Table/Body.js +2 -4
- package/dist/components/Table/Cell.d.ts +1 -1
- package/dist/components/Table/Cell.js +20 -17
- package/dist/components/Table/Header.d.ts +1 -1
- package/dist/components/Table/Header.js +2 -4
- package/dist/components/Table/HeaderCell.d.ts +1 -1
- package/dist/components/Table/HeaderCell.js +46 -22
- package/dist/components/Table/HeaderRow.d.ts +1 -1
- package/dist/components/Table/HeaderRow.js +21 -12
- package/dist/components/Table/Row.d.ts +1 -1
- package/dist/components/Table/Row.js +70 -14
- package/dist/components/Table/SelectBar.d.ts +1 -1
- package/dist/components/Table/SelectBar.js +20 -10
- package/dist/components/Table/SkeletonRows.d.ts +1 -1
- package/dist/components/Table/SkeletonRows.js +17 -16
- package/dist/components/Table/TableContext.d.ts +1 -1
- package/dist/components/Table/TableContext.js +22 -13
- package/dist/components/Table/index.d.ts +6 -6
- package/dist/components/Table/index.js +64 -23
- package/dist/components/Tabs/Tab.js +79 -41
- package/dist/components/Tabs/TabMenu.js +39 -23
- package/dist/components/Tabs/TabMenuItem.d.ts +1 -1
- package/dist/components/Tabs/TabMenuItem.js +20 -11
- package/dist/components/Tabs/TabsContext.js +3 -1
- package/dist/components/Tabs/index.d.ts +3 -3
- package/dist/components/Tabs/index.js +34 -14
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.js +45 -12
- package/dist/components/TagInput/index.d.ts +1 -1
- package/dist/components/TagInput/index.js +131 -52
- package/dist/components/TagInput/styles.css.d.ts +3 -0
- package/dist/components/TagList/index.d.ts +1 -1
- package/dist/components/TagList/index.js +132 -59
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/index.js +21 -17
- package/dist/components/TextArea/index.js +178 -103
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/TextInput/index.js +286 -106
- package/dist/components/TimeInput/constants.js +1 -5
- package/dist/components/TimeInput/index.d.ts +1 -1
- package/dist/components/TimeInput/index.js +207 -118
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/ToasterContainer.d.ts +1 -1
- package/dist/components/Toaster/ToasterContainer.js +21 -2
- package/dist/components/Toaster/components/Button.d.ts +1 -1
- package/dist/components/Toaster/components/CloseButton.d.ts +1 -1
- package/dist/components/Toaster/components/CloseButton.js +12 -2
- package/dist/components/Toaster/components/Content.d.ts +1 -1
- package/dist/components/Toaster/components/Content.js +2 -4
- package/dist/components/Toaster/components/Link.d.ts +1 -1
- package/dist/components/Toaster/index.d.ts +2 -2
- package/dist/components/Toggle/index.js +101 -40
- package/dist/components/ToggleGroup/index.d.ts +3 -3
- package/dist/components/ToggleGroup/index.js +61 -22
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.js +42 -19
- package/dist/components/TreeMapChart/Tooltip.d.ts +1 -1
- package/dist/components/TreeMapChart/Tooltip.js +1 -1
- package/dist/components/TreeMapChart/index.d.ts +1 -1
- package/dist/components/TreeMapChart/index.js +33 -27
- package/dist/components/UnitInput/index.d.ts +1 -1
- package/dist/components/UnitInput/index.js +110 -29
- package/dist/components/VerificationCode/index.d.ts +1 -1
- package/dist/components/VerificationCode/index.js +80 -21
- package/dist/helpers/legend.js +4 -4
- package/dist/helpers/treeMap.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -4
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.js +4 -2
- package/dist/theme/index.js +1 -8
- package/dist/ui.css +1 -1
- package/dist/utils/ids.js +1 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/responsive/index.d.ts +0 -1
- package/dist/utils/responsive/style.css.d.ts +3 -0
- package/package.json +5 -10
- package/dist/utils/responsive/Breakpoint.d.ts +0 -9
- package/dist/utils/responsive/Breakpoint.js +0 -14
|
@@ -21,5 +21,5 @@ type ProgressBarProps = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Progress bar component to display progress of a task. Can be used to display progress of a form or a loading state.
|
|
23
23
|
*/
|
|
24
|
-
export declare const ProgressBar: ({ progress, value, sentiment, className, "data-testid": dataTestId, showProgress, prefix, suffix, max, label, labelDescription, direction, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, style, }: ProgressBarProps) => import("
|
|
24
|
+
export declare const ProgressBar: ({ progress, value, sentiment, className, "data-testid": dataTestId, showProgress, prefix, suffix, max, label, labelDescription, direction, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, style, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx } from "
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
4
4
|
import { Label } from "../Label/index.js";
|
|
5
5
|
import { Stack } from "../Stack/index.js";
|
|
@@ -22,25 +22,79 @@ const ProgressBar = ({
|
|
|
22
22
|
"aria-labelledby": ariaLabelledBy,
|
|
23
23
|
"aria-label": ariaLabel,
|
|
24
24
|
style
|
|
25
|
-
}) => /* @__PURE__ */ jsxs(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
}) => /* @__PURE__ */ jsxs(
|
|
26
|
+
Stack,
|
|
27
|
+
{
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
direction,
|
|
30
|
+
gap: direction === "column" ? 1 : 2,
|
|
31
|
+
children: [
|
|
32
|
+
direction === "column" && (label || showProgress) ? /* @__PURE__ */ jsxs(
|
|
33
|
+
Stack,
|
|
34
|
+
{
|
|
35
|
+
direction: "row",
|
|
36
|
+
justifyContent: !label && showProgress ? "right" : "space-between",
|
|
37
|
+
width: "100%",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx(Label, { labelDescription, size: "medium", children: label }),
|
|
40
|
+
showProgress ? /* @__PURE__ */ jsxs(
|
|
41
|
+
Text,
|
|
42
|
+
{
|
|
43
|
+
as: "label",
|
|
44
|
+
placement: "right",
|
|
45
|
+
sentiment: "neutral",
|
|
46
|
+
variant: "bodySmall",
|
|
47
|
+
children: [
|
|
48
|
+
prefix,
|
|
49
|
+
suffix === "%" ? 100 * value / max : value,
|
|
50
|
+
suffix
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
) : null
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
) : null,
|
|
57
|
+
direction === "row" && label ? /* @__PURE__ */ jsx(Label, { labelDescription, size: "medium", children: label }) : null,
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
"aria-label": ariaLabel,
|
|
62
|
+
"aria-labelledby": ariaLabelledBy,
|
|
63
|
+
"aria-valuemax": max,
|
|
64
|
+
"aria-valuemin": 0,
|
|
65
|
+
"aria-valuenow": value,
|
|
66
|
+
className: `${className ? `${className} ` : ""}${progressContainer}`,
|
|
67
|
+
"data-testid": dataTestId,
|
|
68
|
+
role: "progressbar",
|
|
69
|
+
style,
|
|
70
|
+
children: progress ? /* @__PURE__ */ jsx("div", { className: progressBar }) : /* @__PURE__ */ jsx(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
className: filledBarSentiments[sentiment],
|
|
74
|
+
style: assignInlineVars({
|
|
75
|
+
[percentageValue]: `${100 * Math.max(0, Math.min(max, value)) / max}%`
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
showProgress && direction === "row" ? /* @__PURE__ */ jsx(Stack, { direction: "row", gap: 1, width: "fit-content", children: /* @__PURE__ */ jsxs(
|
|
82
|
+
Text,
|
|
83
|
+
{
|
|
84
|
+
as: "label",
|
|
85
|
+
className: customText,
|
|
86
|
+
sentiment: "neutral",
|
|
87
|
+
variant: "bodySmall",
|
|
88
|
+
children: [
|
|
89
|
+
prefix,
|
|
90
|
+
suffix === "%" ? 100 * value / max : value,
|
|
91
|
+
suffix
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
) }) : null
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
44
98
|
export {
|
|
45
99
|
ProgressBar
|
|
46
100
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs, Fragment } from "
|
|
2
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef, useId } from "react";
|
|
4
4
|
import { Stack } from "../Stack/index.js";
|
|
5
5
|
import { Text } from "../Text/index.js";
|
|
@@ -10,60 +10,92 @@ const RadioMarkedIcon = () => /* @__PURE__ */ jsxs("g", { children: [
|
|
|
10
10
|
/* @__PURE__ */ jsx("circle", { className: innerCircleRing, cx: "12", cy: "12", r: "8" }),
|
|
11
11
|
/* @__PURE__ */ jsx("circle", { className: radioMark, cx: "12", cy: "12", r: "5" })
|
|
12
12
|
] });
|
|
13
|
-
const Radio = forwardRef(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
"
|
|
13
|
+
const Radio = forwardRef(
|
|
14
|
+
({
|
|
15
|
+
checked = false,
|
|
16
|
+
onChange,
|
|
17
|
+
onFocus,
|
|
18
|
+
onBlur,
|
|
19
|
+
disabled = false,
|
|
20
|
+
error,
|
|
21
|
+
name,
|
|
22
|
+
value,
|
|
23
|
+
label,
|
|
24
|
+
helper,
|
|
25
|
+
className,
|
|
26
|
+
autoFocus,
|
|
27
|
+
onKeyDown,
|
|
28
|
+
tooltip,
|
|
29
|
+
"aria-label": ariaLabel,
|
|
30
|
+
"data-testid": dataTestId,
|
|
31
|
+
tabIndex,
|
|
32
|
+
id,
|
|
33
|
+
style
|
|
34
|
+
}, forwadedRef) => {
|
|
35
|
+
const generatedId = useId();
|
|
36
|
+
const localId = id || generatedId;
|
|
37
|
+
return /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxs(Stack, { className: radioStack, gap: 0.5, children: [
|
|
38
|
+
/* @__PURE__ */ jsxs(
|
|
39
|
+
"div",
|
|
40
40
|
{
|
|
41
41
|
"aria-disabled": disabled,
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
42
|
+
className: `${className ? `${className} ` : ""}${container}`,
|
|
43
|
+
"data-checked": checked,
|
|
44
|
+
"data-error": error,
|
|
45
|
+
"data-testid": dataTestId,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(
|
|
48
|
+
"input",
|
|
49
|
+
{
|
|
50
|
+
"aria-disabled": disabled,
|
|
51
|
+
"aria-invalid": !!error,
|
|
52
|
+
"aria-label": ariaLabel,
|
|
53
|
+
autoFocus,
|
|
54
|
+
checked,
|
|
55
|
+
className: radio,
|
|
56
|
+
disabled,
|
|
57
|
+
id: localId,
|
|
58
|
+
name,
|
|
59
|
+
onBlur,
|
|
60
|
+
onChange,
|
|
61
|
+
onFocus,
|
|
62
|
+
onKeyDown,
|
|
63
|
+
ref: forwadedRef,
|
|
64
|
+
style,
|
|
65
|
+
tabIndex,
|
|
66
|
+
type: "radio",
|
|
67
|
+
value
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ jsx("svg", { className: ring, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx(RadioMarkedIcon, {}) }),
|
|
71
|
+
label ? /* @__PURE__ */ jsx(Fragment, { children: typeof label === "string" ? /* @__PURE__ */ jsx(
|
|
72
|
+
Text,
|
|
73
|
+
{
|
|
74
|
+
as: "label",
|
|
75
|
+
className: textLabel,
|
|
76
|
+
htmlFor: localId,
|
|
77
|
+
prominence: "default",
|
|
78
|
+
variant: "body",
|
|
79
|
+
children: label
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ jsx("label", { className: labelStyle, htmlFor: localId, children: label }) }) : null
|
|
82
|
+
]
|
|
59
83
|
}
|
|
60
84
|
),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
85
|
+
helper ? /* @__PURE__ */ jsx(
|
|
86
|
+
Text,
|
|
87
|
+
{
|
|
88
|
+
as: "span",
|
|
89
|
+
className: margedText,
|
|
90
|
+
prominence: "weak",
|
|
91
|
+
sentiment: "neutral",
|
|
92
|
+
variant: "caption",
|
|
93
|
+
children: helper
|
|
94
|
+
}
|
|
95
|
+
) : null
|
|
96
|
+
] }) });
|
|
97
|
+
}
|
|
98
|
+
);
|
|
67
99
|
export {
|
|
68
100
|
Radio
|
|
69
101
|
};
|
|
@@ -16,7 +16,7 @@ type RadioGroupProps = {
|
|
|
16
16
|
* RadioGroup is a component that allows users to select one option from a list of options using radio.
|
|
17
17
|
*/
|
|
18
18
|
export declare const RadioGroup: {
|
|
19
|
-
({ legend, legendDescription, value, className, helper, error, direction, children, onChange, name, description, required, }: RadioGroupProps): import("
|
|
20
|
-
Radio: ({ onFocus, onBlur, disabled, error, value, label, helper, className, autoFocus, onKeyDown, tooltip, "data-testid": dataTestId, style, }: RadioGroupRadioProps) => import("
|
|
19
|
+
({ legend, legendDescription, value, className, helper, error, direction, children, onChange, name, description, required, }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
Radio: ({ onFocus, onBlur, disabled, error, value, label, helper, className, autoFocus, onKeyDown, tooltip, "data-testid": dataTestId, style, }: RadioGroupRadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
};
|
|
22
22
|
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo, createContext, useContext } from "react";
|
|
4
4
|
import { Label } from "../Label/index.js";
|
|
5
5
|
import { Radio } from "../Radio/index.js";
|
|
6
6
|
import { Stack } from "../Stack/index.js";
|
|
7
7
|
import { Text } from "../Text/index.js";
|
|
8
8
|
import { fieldset } from "./styles.css.js";
|
|
9
|
-
const RadioGroupContext = createContext(
|
|
9
|
+
const RadioGroupContext = createContext(
|
|
10
|
+
void 0
|
|
11
|
+
);
|
|
10
12
|
const RadioGroupRadio = ({
|
|
11
13
|
onFocus,
|
|
12
14
|
onBlur,
|
|
@@ -26,13 +28,28 @@ const RadioGroupRadio = ({
|
|
|
26
28
|
if (!context) {
|
|
27
29
|
throw new Error("RadioGroup.Radio can only be used inside a RadioGroup");
|
|
28
30
|
}
|
|
29
|
-
const {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
const { groupName, onChange, groupValue, error: errorContext } = context;
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
Radio,
|
|
34
|
+
{
|
|
35
|
+
autoFocus,
|
|
36
|
+
checked: groupValue === value,
|
|
37
|
+
className,
|
|
38
|
+
"data-testid": dataTestId,
|
|
39
|
+
disabled,
|
|
40
|
+
error: error || errorContext,
|
|
41
|
+
helper,
|
|
42
|
+
label,
|
|
43
|
+
name: groupName,
|
|
44
|
+
onBlur,
|
|
45
|
+
onChange,
|
|
46
|
+
onFocus,
|
|
47
|
+
onKeyDown,
|
|
48
|
+
style,
|
|
49
|
+
tooltip,
|
|
50
|
+
value
|
|
51
|
+
}
|
|
52
|
+
);
|
|
36
53
|
};
|
|
37
54
|
const RadioGroup = ({
|
|
38
55
|
legend,
|
|
@@ -48,22 +65,59 @@ const RadioGroup = ({
|
|
|
48
65
|
description,
|
|
49
66
|
required = false
|
|
50
67
|
}) => {
|
|
51
|
-
const contextValue = useMemo(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
const contextValue = useMemo(
|
|
69
|
+
() => ({
|
|
70
|
+
error: !!error,
|
|
71
|
+
groupName: name,
|
|
72
|
+
groupValue: value,
|
|
73
|
+
onChange,
|
|
74
|
+
required
|
|
75
|
+
}),
|
|
76
|
+
[name, value, onChange, required, error]
|
|
77
|
+
);
|
|
58
78
|
return /* @__PURE__ */ jsx(RadioGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(Stack, { gap: 1, children: [
|
|
59
79
|
/* @__PURE__ */ jsx("fieldset", { className: `${className ? `${className} ` : ""}${fieldset}`, children: /* @__PURE__ */ jsxs(Stack, { gap: 1.5, children: [
|
|
60
80
|
legend || description ? /* @__PURE__ */ jsxs(Stack, { gap: 0.5, children: [
|
|
61
|
-
legend ? /* @__PURE__ */ jsx(
|
|
62
|
-
|
|
81
|
+
legend ? /* @__PURE__ */ jsx(
|
|
82
|
+
Label,
|
|
83
|
+
{
|
|
84
|
+
as: "legend",
|
|
85
|
+
labelDescription: legendDescription,
|
|
86
|
+
required,
|
|
87
|
+
children: legend
|
|
88
|
+
}
|
|
89
|
+
) : null,
|
|
90
|
+
description ? /* @__PURE__ */ jsx(
|
|
91
|
+
Text,
|
|
92
|
+
{
|
|
93
|
+
as: typeof description === "string" ? "p" : "div",
|
|
94
|
+
prominence: "weak",
|
|
95
|
+
sentiment: "neutral",
|
|
96
|
+
variant: "bodySmall",
|
|
97
|
+
children: description
|
|
98
|
+
}
|
|
99
|
+
) : null
|
|
63
100
|
] }) : null,
|
|
64
|
-
/* @__PURE__ */ jsx(
|
|
101
|
+
/* @__PURE__ */ jsx(
|
|
102
|
+
Stack,
|
|
103
|
+
{
|
|
104
|
+
alignItems: "start",
|
|
105
|
+
direction,
|
|
106
|
+
gap: direction === "column" ? 1 : 2,
|
|
107
|
+
children
|
|
108
|
+
}
|
|
109
|
+
)
|
|
65
110
|
] }) }),
|
|
66
|
-
helper ? /* @__PURE__ */ jsx(
|
|
111
|
+
helper ? /* @__PURE__ */ jsx(
|
|
112
|
+
Text,
|
|
113
|
+
{
|
|
114
|
+
as: "span",
|
|
115
|
+
prominence: "weak",
|
|
116
|
+
sentiment: "neutral",
|
|
117
|
+
variant: "caption",
|
|
118
|
+
children: helper
|
|
119
|
+
}
|
|
120
|
+
) : null,
|
|
67
121
|
error ? /* @__PURE__ */ jsx(Text, { as: "span", sentiment: "danger", variant: "caption", children: error }) : null
|
|
68
122
|
] }) });
|
|
69
123
|
};
|
|
@@ -17,5 +17,5 @@ type RowProps = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Row component is a wrapper for grid layout.
|
|
19
19
|
*/
|
|
20
|
-
export declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, padding, style, }: RowProps) => import("
|
|
20
|
+
export declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, padding, style, }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { consoleLightTheme } from "@ultraviolet/themes";
|
|
4
4
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
5
|
import { row, sprinkles } from "./styles.css.js";
|
|
6
6
|
import { paddings, templateColumn } from "./variables.css.js";
|
|
7
|
-
const mapRepsonsiveGap = (object) => object ? Object.keys(object).reduce(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const mapRepsonsiveGap = (object) => object ? Object.keys(object).reduce(
|
|
8
|
+
(acc, key) => ({
|
|
9
|
+
...acc,
|
|
10
|
+
[key]: consoleLightTheme.space[object[key]]
|
|
11
|
+
}),
|
|
12
|
+
{}
|
|
13
|
+
) : {};
|
|
11
14
|
const Row = ({
|
|
12
15
|
className,
|
|
13
16
|
"data-testid": dataTestId,
|
|
@@ -18,29 +21,37 @@ const Row = ({
|
|
|
18
21
|
gap,
|
|
19
22
|
padding,
|
|
20
23
|
style
|
|
21
|
-
}) => /* @__PURE__ */ jsx(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
}) => /* @__PURE__ */ jsx(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: `${className ? `${className} ` : ""}${row} ${sprinkles({
|
|
28
|
+
alignItems: typeof alignItems === "object" ? alignItems : { xxsmall: alignItems },
|
|
29
|
+
gap: typeof gap === "object" ? mapRepsonsiveGap(gap) : { xxsmall: gap ? consoleLightTheme.space[gap] : void 0 },
|
|
30
|
+
justifyContent: typeof justifyContent === "object" ? justifyContent : { xxsmall: justifyContent }
|
|
31
|
+
})}`,
|
|
32
|
+
"data-testid": dataTestId,
|
|
33
|
+
style: {
|
|
34
|
+
...assignInlineVars({
|
|
35
|
+
...Object.keys(templateColumn).reduce(
|
|
36
|
+
(acc, column) => ({
|
|
37
|
+
...acc,
|
|
38
|
+
[templateColumn[column]]: typeof templateColumns === "object" ? templateColumns[column] || "" : templateColumns
|
|
39
|
+
}),
|
|
40
|
+
{}
|
|
41
|
+
),
|
|
42
|
+
...Object.keys(paddings).reduce(
|
|
43
|
+
(acc, localPadding) => ({
|
|
44
|
+
...acc,
|
|
45
|
+
[paddings[localPadding]]: typeof padding === "object" ? padding[localPadding] || "" : padding
|
|
46
|
+
}),
|
|
47
|
+
{}
|
|
48
|
+
)
|
|
49
|
+
}),
|
|
50
|
+
...style
|
|
51
|
+
},
|
|
52
|
+
children
|
|
30
53
|
}
|
|
31
|
-
|
|
32
|
-
...assignInlineVars({
|
|
33
|
-
...Object.keys(templateColumn).reduce((acc, column) => ({
|
|
34
|
-
...acc,
|
|
35
|
-
[templateColumn[column]]: typeof templateColumns === "object" ? templateColumns[column] || "" : templateColumns
|
|
36
|
-
}), {}),
|
|
37
|
-
...Object.keys(paddings).reduce((acc, localPadding) => ({
|
|
38
|
-
...acc,
|
|
39
|
-
[paddings[localPadding]]: typeof padding === "object" ? padding[localPadding] || "" : padding
|
|
40
|
-
}), {})
|
|
41
|
-
}),
|
|
42
|
-
...style
|
|
43
|
-
}, children });
|
|
54
|
+
);
|
|
44
55
|
export {
|
|
45
56
|
Row
|
|
46
57
|
};
|
|
@@ -223,6 +223,17 @@ export declare const responsiveProperties: {
|
|
|
223
223
|
xxsmall: string;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
+
"anchor-center": {
|
|
227
|
+
defaultClass: string;
|
|
228
|
+
conditions: {
|
|
229
|
+
large: string;
|
|
230
|
+
medium: string;
|
|
231
|
+
small: string;
|
|
232
|
+
xlarge: string;
|
|
233
|
+
xsmall: string;
|
|
234
|
+
xxsmall: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
226
237
|
};
|
|
227
238
|
};
|
|
228
239
|
justifyContent: {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { createSprinkles } from "@vanilla-extract/sprinkles/createRuntimeSprinkles";
|
|
4
4
|
var row = "uv_x6hyh50";
|
|
5
|
-
var responsiveProperties = function() {
|
|
5
|
+
var responsiveProperties = (function() {
|
|
6
6
|
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 } } };
|
|
7
7
|
x.styles.gap.responsiveArray = x.conditions.responsiveArray;
|
|
8
8
|
x.styles.alignItems.responsiveArray = x.conditions.responsiveArray;
|
|
9
9
|
x.styles.justifyContent.responsiveArray = x.conditions.responsiveArray;
|
|
10
10
|
return x;
|
|
11
|
-
}();
|
|
11
|
+
})();
|
|
12
12
|
var sprinkles = createSprinkles(responsiveProperties);
|
|
13
13
|
export {
|
|
14
14
|
responsiveProperties,
|
|
@@ -5,5 +5,5 @@ type KeyGroupProps = {
|
|
|
5
5
|
disabled: ComponentProps<typeof Key>['disabled'];
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const KeyGroup: ({ keys, disabled, onClick }: KeyGroupProps) => import("
|
|
8
|
+
export declare const KeyGroup: ({ keys, disabled, onClick }: KeyGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Key } from "../Key/index.js";
|
|
4
4
|
import { Stack } from "../Stack/index.js";
|
|
5
5
|
import { clickableStack } from "./styles.css.js";
|
|
6
|
-
const KeyGroup = ({
|
|
7
|
-
keys,
|
|
8
|
-
disabled,
|
|
9
|
-
onClick
|
|
10
|
-
}) => /* @__PURE__ */ jsx(Stack, { className: clickableStack, direction: "row", gap: 0.5, onClick, children: keys.map((key) => /* @__PURE__ */ jsx(Key, { "data-testid": `key-${key}`, disabled, children: key }, key)) });
|
|
6
|
+
const KeyGroup = ({ keys, disabled, onClick }) => /* @__PURE__ */ jsx(Stack, { className: clickableStack, direction: "row", gap: 0.5, onClick, children: keys.map((key) => /* @__PURE__ */ jsx(Key, { "data-testid": `key-${key}`, disabled, children: key }, key)) });
|
|
11
7
|
export {
|
|
12
8
|
KeyGroup
|
|
13
9
|
};
|