@ultraviolet/ui 3.0.0 → 3.1.1

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.
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  /* empty css */
3
2
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
4
3
  var alert = createRuntimeFn({ defaultClassName: "uv_1b838gx0", variantClassNames: { sentiment: { danger: "uv_1b838gx1", info: "uv_1b838gx2", success: "uv_1b838gx3", warning: "uv_1b838gx4", neutral: "uv_1b838gx5" }, size: { medium: "uv_1b838gx6", small: "uv_1b838gx7" } }, defaultVariants: { sentiment: "danger", size: "medium" }, compoundVariants: [] });
@@ -1,3 +1,5 @@
1
+ /* empty css */
2
+ /* empty css */
1
3
  /* empty css */
2
4
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
5
  var containerAvatar = createRuntimeFn({ defaultClassName: "uv_19x8y1k0", variantClassNames: { shape: { circle: "uv_19x8y1k1", square: "uv_19x8y1k2" }, size: { large: "uv_19x8y1k3", medium: "uv_19x8y1k4", small: "uv_19x8y1k5", xsmall: "uv_19x8y1k6" }, sentiment: { primary: "uv_19x8y1k7", neutral: "uv_19x8y1k8" } }, defaultVariants: {}, compoundVariants: [[{ size: "large", shape: "square" }, "uv_19x8y1k9"], [{ size: "medium", shape: "square" }, "uv_19x8y1ka"], [{ size: "small", shape: "square" }, "uv_19x8y1kb"], [{ size: "xsmall", shape: "square" }, "uv_19x8y1kc"]] });
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  var finalSizeAvatar = "var(--uv_18799yd0)";
3
2
  var finalColorAvatar = "var(--uv_18799yd1)";
4
3
  var halvedColorAvatar = "var(--uv_18799yd2)";
@@ -2,6 +2,7 @@ export declare const SIZES: {
2
2
  readonly large: "400";
3
3
  readonly medium: "300";
4
4
  readonly small: "200";
5
+ readonly xsmall: "175";
5
6
  };
6
7
  export declare const PROMINENCES: {
7
8
  default: string;
@@ -11,4 +12,5 @@ export declare const TEXT_VARIANT: {
11
12
  readonly large: "bodySmall";
12
13
  readonly medium: "caption";
13
14
  readonly small: "captionSmall";
15
+ readonly xsmall: "captionSmall";
14
16
  };
@@ -1,7 +1,8 @@
1
1
  const TEXT_VARIANT = {
2
2
  large: "bodySmall",
3
3
  medium: "caption",
4
- small: "captionSmall"
4
+ small: "captionSmall",
5
+ xsmall: "captionSmall"
5
6
  };
6
7
  export {
7
8
  TEXT_VARIANT
@@ -3,17 +3,18 @@ export declare const badge: import("@vanilla-extract/recipes").RuntimeFn<{
3
3
  size: {
4
4
  small: {
5
5
  padding: `0 var(--${string})`;
6
- gap: `var(--${string})`;
7
6
  height: `var(--${string})`;
8
7
  };
9
8
  medium: {
10
9
  padding: `0 var(--${string})`;
11
- gap: `var(--${string})`;
12
10
  height: `var(--${string})`;
13
11
  };
14
12
  large: {
15
13
  padding: `0 var(--${string})`;
16
- gap: `var(--${string})`;
14
+ height: `var(--${string})`;
15
+ };
16
+ xsmall: {
17
+ padding: `0 var(--${string})`;
17
18
  height: `var(--${string})`;
18
19
  };
19
20
  };
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
- var badge = createRuntimeFn({ defaultClassName: "uv_1yf71jy0", variantClassNames: { size: { small: "uv_1yf71jy1", medium: "uv_1yf71jy2", large: "uv_1yf71jy3" }, sentiment: { primary: "uv_1yf71jy4", secondary: "uv_1yf71jy5", danger: "uv_1yf71jy6", info: "uv_1yf71jy7", success: "uv_1yf71jy8", warning: "uv_1yf71jy9", neutral: "uv_1yf71jya", black: "uv_1yf71jyb", white: "uv_1yf71jyc" }, prominence: { "default": "uv_1yf71jyd", strong: "uv_1yf71jye" }, disabled: { true: "uv_1yf71jyf" } }, defaultVariants: { size: "medium", prominence: "default", sentiment: "neutral", disabled: false }, compoundVariants: [[{ prominence: "default", sentiment: "primary", disabled: false }, "uv_1yf71jyg"], [{ prominence: "default", sentiment: "secondary", disabled: false }, "uv_1yf71jyh"], [{ prominence: "default", sentiment: "danger", disabled: false }, "uv_1yf71jyi"], [{ prominence: "default", sentiment: "info", disabled: false }, "uv_1yf71jyj"], [{ prominence: "default", sentiment: "success", disabled: false }, "uv_1yf71jyk"], [{ prominence: "default", sentiment: "warning", disabled: false }, "uv_1yf71jyl"], [{ prominence: "default", sentiment: "neutral", disabled: false }, "uv_1yf71jym"], [{ prominence: "strong", sentiment: "primary", disabled: false }, "uv_1yf71jyn"], [{ prominence: "strong", sentiment: "secondary", disabled: false }, "uv_1yf71jyo"], [{ prominence: "strong", sentiment: "danger", disabled: false }, "uv_1yf71jyp"], [{ prominence: "strong", sentiment: "info", disabled: false }, "uv_1yf71jyq"], [{ prominence: "strong", sentiment: "success", disabled: false }, "uv_1yf71jyr"], [{ prominence: "strong", sentiment: "warning", disabled: false }, "uv_1yf71jys"], [{ prominence: "strong", sentiment: "neutral", disabled: false }, "uv_1yf71jyt"]] });
3
+ var badge = createRuntimeFn({ defaultClassName: "uv_1yf71jy0", variantClassNames: { size: { small: "uv_1yf71jy1", medium: "uv_1yf71jy2", large: "uv_1yf71jy3", xsmall: "uv_1yf71jy4" }, sentiment: { primary: "uv_1yf71jy5", secondary: "uv_1yf71jy6", danger: "uv_1yf71jy7", info: "uv_1yf71jy8", success: "uv_1yf71jy9", warning: "uv_1yf71jya", neutral: "uv_1yf71jyb", black: "uv_1yf71jyc", white: "uv_1yf71jyd" }, prominence: { "default": "uv_1yf71jye", strong: "uv_1yf71jyf" }, disabled: { true: "uv_1yf71jyg" } }, defaultVariants: { size: "medium", prominence: "default", sentiment: "neutral", disabled: false }, compoundVariants: [[{ prominence: "default", sentiment: "primary", disabled: false }, "uv_1yf71jyh"], [{ prominence: "default", sentiment: "secondary", disabled: false }, "uv_1yf71jyi"], [{ prominence: "default", sentiment: "danger", disabled: false }, "uv_1yf71jyj"], [{ prominence: "default", sentiment: "info", disabled: false }, "uv_1yf71jyk"], [{ prominence: "default", sentiment: "success", disabled: false }, "uv_1yf71jyl"], [{ prominence: "default", sentiment: "warning", disabled: false }, "uv_1yf71jym"], [{ prominence: "default", sentiment: "neutral", disabled: false }, "uv_1yf71jyn"], [{ prominence: "strong", sentiment: "primary", disabled: false }, "uv_1yf71jyo"], [{ prominence: "strong", sentiment: "secondary", disabled: false }, "uv_1yf71jyp"], [{ prominence: "strong", sentiment: "danger", disabled: false }, "uv_1yf71jyq"], [{ prominence: "strong", sentiment: "info", disabled: false }, "uv_1yf71jyr"], [{ prominence: "strong", sentiment: "success", disabled: false }, "uv_1yf71jys"], [{ prominence: "strong", sentiment: "warning", disabled: false }, "uv_1yf71jyt"], [{ prominence: "strong", sentiment: "neutral", disabled: false }, "uv_1yf71jyu"]] });
4
4
  export {
5
5
  badge
6
6
  };
@@ -29,10 +29,17 @@ type BarStackProps = {
29
29
  total?: number;
30
30
  className?: string;
31
31
  'data-testid'?: string;
32
+ label?: string;
33
+ labelInformation?: ReactNode;
32
34
  style?: CSSProperties;
35
+ /**
36
+ * Whether to add a legend inside or outside the chart
37
+ */
38
+ legend?: 'inside' | 'outside';
39
+ size?: 'large' | 'medium' | 'small' | 'xsmall';
33
40
  };
34
41
  /**
35
42
  * BarStack is a graphic component that is used to show data in one dimension.
36
43
  */
37
- export declare const BarStack: ({ data, total, className, "data-testid": dataTestId, style, }: BarStackProps) => import("react/jsx-runtime").JSX.Element;
44
+ export declare const BarStack: ({ data, total, className, "data-testid": dataTestId, style, label, labelInformation, legend, size, }: BarStackProps) => import("react/jsx-runtime").JSX.Element;
38
45
  export {};
@@ -1,79 +1,155 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { assignInlineVars } from "@vanilla-extract/dynamic";
4
- import { useMemo } from "react";
4
+ import { useMemo, useState } from "react";
5
+ import { Label } from "../Label/index.js";
6
+ import { Stack } from "../Stack/index.js";
7
+ import { Text } from "../Text/index.js";
5
8
  import { Tooltip } from "../Tooltip/index.js";
6
- import { containerBarStack, wrapperBarStack, barStack, wrapperWidth } from "./styles.css.js";
9
+ import { containerBarStack, wrapperBarStack, barStack, barStackText, wrapperWidth, barStackLegendCircle } from "./styles.css.js";
7
10
  const BarStack = ({
8
11
  data,
9
12
  total,
10
13
  className,
11
14
  "data-testid": dataTestId,
12
- style
15
+ style,
16
+ label,
17
+ labelInformation,
18
+ legend = "inside",
19
+ size
13
20
  }) => {
14
21
  const computedTotal = useMemo(
15
22
  () => total ?? data.reduce((acc, { value }) => acc + value, 0),
16
23
  [total, data]
17
24
  );
18
- return /* @__PURE__ */ jsx(
19
- "div",
20
- {
21
- className: `${className ? `${className} ` : ""}${containerBarStack}`,
22
- "data-testid": dataTestId,
23
- style,
24
- children: data.map(
25
- ({
26
- id,
27
- value,
28
- text,
29
- onClick,
30
- onDoubleClick,
31
- onKeyDown,
32
- onMouseEnter,
33
- onMouseLeave,
34
- onMouseDown,
35
- onMouseUp,
36
- tooltip
37
- }) => /* @__PURE__ */ jsx(
38
- "div",
39
- {
40
- className: wrapperBarStack,
41
- style: assignInlineVars({
42
- [wrapperWidth]: `${value / computedTotal * 100}%`
43
- }),
44
- children: tooltip ? /* @__PURE__ */ jsx(Tooltip, { id: `tooltip-${id}`, text: tooltip, children: /* @__PURE__ */ jsx(
25
+ const [hoveredBarId, setHoveredBarId] = useState(null);
26
+ return /* @__PURE__ */ jsxs(Stack, { gap: 1, children: [
27
+ /* @__PURE__ */ jsxs(Stack, { direction: "column", gap: 0.25, children: [
28
+ labelInformation ? /* @__PURE__ */ jsxs(Stack, { direction: "row", justifyContent: "space-between", children: [
29
+ /* @__PURE__ */ jsx(Label, { children: label }),
30
+ /* @__PURE__ */ jsx(Text, { as: "span", sentiment: "neutral", variant: "body", children: labelInformation })
31
+ ] }) : /* @__PURE__ */ jsx(Label, { children: label }),
32
+ /* @__PURE__ */ jsx(
33
+ "div",
34
+ {
35
+ className: `${className ? `${className} ` : ""}${containerBarStack}`,
36
+ "data-testid": dataTestId,
37
+ style,
38
+ children: data.map(
39
+ ({
40
+ id,
41
+ value,
42
+ text,
43
+ onClick,
44
+ onDoubleClick,
45
+ onKeyDown,
46
+ onMouseEnter,
47
+ onMouseLeave,
48
+ onMouseDown,
49
+ onMouseUp,
50
+ tooltip
51
+ }) => /* @__PURE__ */ jsx(
45
52
  "div",
46
53
  {
47
- className: barStack,
48
- onClick,
49
- onDoubleClick,
50
- onKeyDown,
51
- onMouseDown,
52
- onMouseEnter,
53
- onMouseLeave,
54
- onMouseUp,
55
- children: text
56
- }
57
- ) }) : /* @__PURE__ */ jsx(
58
- "div",
59
- {
60
- className: barStack,
61
- onClick,
62
- onDoubleClick,
63
- onKeyDown,
64
- onMouseDown,
65
- onMouseEnter,
66
- onMouseLeave,
67
- onMouseUp,
68
- children: text
69
- }
54
+ className: wrapperBarStack,
55
+ style: assignInlineVars({
56
+ [wrapperWidth]: `${value / computedTotal * 100}%`
57
+ }),
58
+ children: /* @__PURE__ */ jsx(
59
+ Tooltip,
60
+ {
61
+ text: legend === "outside" ? text : void 0,
62
+ visible: hoveredBarId === id,
63
+ children: tooltip ? /* @__PURE__ */ jsx(Tooltip, { id: `tooltip-${id}`, text: tooltip ?? text, children: /* @__PURE__ */ jsx(
64
+ "div",
65
+ {
66
+ className: barStack({ size }),
67
+ "data-testid": `content-${id}`,
68
+ onClick,
69
+ onDoubleClick,
70
+ onKeyDown,
71
+ onMouseDown,
72
+ onMouseEnter: (event) => {
73
+ onMouseEnter?.(event);
74
+ },
75
+ onMouseLeave: (event) => {
76
+ onMouseLeave?.(event);
77
+ },
78
+ onMouseUp,
79
+ children: /* @__PURE__ */ jsx(
80
+ Text,
81
+ {
82
+ as: "span",
83
+ className: barStackText,
84
+ prominence: "stronger",
85
+ sentiment: "neutral",
86
+ variant: size === "small" || size === "xsmall" ? "captionSmallStrong" : "captionStrong",
87
+ whiteSpace: "nowrap",
88
+ children: legend === "outside" ? "" : text
89
+ }
90
+ )
91
+ }
92
+ ) }) : /* @__PURE__ */ jsx(
93
+ "div",
94
+ {
95
+ className: barStack({ size }),
96
+ "data-testid": `content-${id}`,
97
+ onClick,
98
+ onDoubleClick,
99
+ onKeyDown,
100
+ onMouseDown,
101
+ onMouseEnter,
102
+ onMouseLeave,
103
+ onMouseUp,
104
+ children: /* @__PURE__ */ jsx(
105
+ Text,
106
+ {
107
+ as: "span",
108
+ className: barStackText,
109
+ prominence: "stronger",
110
+ sentiment: "neutral",
111
+ variant: size === "small" || size === "xsmall" ? "captionSmallStrong" : "captionStrong",
112
+ whiteSpace: "nowrap",
113
+ children: legend === "outside" ? "" : text
114
+ }
115
+ )
116
+ }
117
+ )
118
+ }
119
+ )
120
+ },
121
+ id
70
122
  )
71
- },
72
- id
73
- )
123
+ )
124
+ }
74
125
  )
75
- }
76
- );
126
+ ] }),
127
+ legend === "outside" ? /* @__PURE__ */ jsx(Stack, { direction: "row", gap: 2, children: data.map(({ text, id }, index) => /* @__PURE__ */ jsxs(
128
+ Stack,
129
+ {
130
+ alignItems: "center",
131
+ "data-testid": `legend-${id}`,
132
+ direction: "row",
133
+ gap: "0.5",
134
+ onMouseEnter: () => {
135
+ setHoveredBarId(id);
136
+ },
137
+ onMouseLeave: () => setHoveredBarId(null),
138
+ children: [
139
+ /* @__PURE__ */ jsx(
140
+ "span",
141
+ {
142
+ className: barStackLegendCircle({
143
+ child: index % 6
144
+ })
145
+ }
146
+ ),
147
+ /* @__PURE__ */ jsx(Text, { as: "span", sentiment: "neutral", variant: "caption", children: text })
148
+ ]
149
+ },
150
+ id
151
+ )) }) : null
152
+ ] });
77
153
  };
78
154
  export {
79
155
  BarStack
@@ -1,4 +1,47 @@
1
1
  export declare const wrapperWidth: `var(--${string})`;
2
2
  export declare const wrapperBarStack: string;
3
- export declare const barStack: string;
3
+ export declare const barStack: import("@vanilla-extract/recipes").RuntimeFn<{
4
+ size: {
5
+ xsmall: {
6
+ height: `var(--${string})`;
7
+ fontSize: `var(--${string})`;
8
+ };
9
+ small: {
10
+ height: `var(--${string})`;
11
+ fontSize: `var(--${string})`;
12
+ };
13
+ medium: {
14
+ fontSize: `var(--${string})`;
15
+ height: `var(--${string})`;
16
+ };
17
+ fontSize: `var(--${string})`;
18
+ large: {
19
+ height: `var(--${string})`;
20
+ };
21
+ };
22
+ }>;
23
+ export declare const barStackText: string;
4
24
  export declare const containerBarStack: string;
25
+ export declare const barStackLabel: string;
26
+ export declare const barStackLegendCircle: import("@vanilla-extract/recipes").RuntimeFn<{
27
+ child: {
28
+ 0: {
29
+ backgroundColor: `var(--${string})`;
30
+ };
31
+ 1: {
32
+ backgroundColor: `var(--${string})`;
33
+ };
34
+ 2: {
35
+ backgroundColor: `var(--${string})`;
36
+ };
37
+ 3: {
38
+ backgroundColor: `var(--${string})`;
39
+ };
40
+ 4: {
41
+ backgroundColor: `var(--${string})`;
42
+ };
43
+ 5: {
44
+ backgroundColor: `var(--${string})`;
45
+ };
46
+ };
47
+ }>;
@@ -1,10 +1,15 @@
1
1
  /* empty css */
2
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
2
3
  var wrapperWidth = "var(--uv_1s3oplf0)";
3
4
  var wrapperBarStack = "uv_1s3oplf1";
4
- var barStack = "uv_1s3oplf2";
5
- var containerBarStack = "uv_1s3oplf3";
5
+ var barStack = createRuntimeFn({ defaultClassName: "uv_1s3oplf2", variantClassNames: { size: { xsmall: "uv_1s3oplf3", small: "uv_1s3oplf4", medium: "uv_1s3oplf5", fontSize: "uv_1s3oplf6 var(--rwwhslcr)", large: "uv_1s3oplf7" } }, defaultVariants: { size: "medium" }, compoundVariants: [] });
6
+ var barStackText = "uv_1s3oplf8";
7
+ var containerBarStack = "uv_1s3oplf9";
8
+ var barStackLegendCircle = createRuntimeFn({ defaultClassName: "uv_1s3oplfb", variantClassNames: { child: { "0": "uv_1s3oplfc", "1": "uv_1s3oplfd", "2": "uv_1s3oplfe", "3": "uv_1s3oplff", "4": "uv_1s3oplfg", "5": "uv_1s3oplfh" } }, defaultVariants: { child: 0 }, compoundVariants: [] });
6
9
  export {
7
10
  barStack,
11
+ barStackLegendCircle,
12
+ barStackText,
8
13
  containerBarStack,
9
14
  wrapperBarStack,
10
15
  wrapperWidth
@@ -15,7 +15,7 @@ type ChipType = {
15
15
  export declare const Chip: {
16
16
  ({ children, size, disabled, active, className, "data-testid": dataTestId, onClick, style, }: ChipType): import("react/jsx-runtime").JSX.Element;
17
17
  Icon: ({ name, onClick, "data-testid": dataTestId, }: {
18
- name: "search" | "anchor" | "bold" | "filter" | "sort" | "italic" | "underline" | "drag" | "address" | "audio" | "video" | "image" | "stop" | "view" | "id" | "pen" | "download" | "cancel" | "close" | "play" | "send" | "email" | "arrowLeft" | "upload" | "addressOutline" | "addressPlay" | "adjustmentsHorizontal" | "adjustmentsHorizontalOutline" | "alertCircle" | "alertCircleOutline" | "arrowDown" | "arrowLeftBottom" | "arrowLeftDouble" | "arrowRightBottom" | "arrowRightDouble" | "arrowRight" | "arrowUp" | "attach" | "autoFix" | "autoFixOutline" | "bookOpenOutline" | "bookOpenOutlineOutline" | "boxEssentials" | "boxEssentialsOutline" | "bullhorn" | "bullhornOutline" | "burger" | "calculator" | "calculatorOutline" | "calendarRange" | "calendarRangeOutline" | "chat" | "chatOutline" | "checkCircle" | "checkCircleOutline" | "check" | "clickhouse" | "lock" | "clock" | "lockOutline" | "clockOutline" | "closeCircle" | "closeCircleOutline" | "console" | "consoleOutline" | "copyContent" | "credential" | "credentialOutline" | "creditCard" | "creditCardOutline" | "database" | "databaseOutline" | "delete" | "deleteOutline" | "detach" | "doc" | "docOutline" | "dotsHorizontal" | "dotsVertical" | "earth" | "earthOutline" | "east" | "eastShort" | "emailOutline" | "emailRemove" | "emailRemoveOutline" | "equal" | "escape" | "expand" | "expandMore" | "eye" | "eyeOff" | "eyeOffOutline" | "eyeOutline" | "filterOutline" | "folder" | "folderOutline" | "github" | "helpCircle" | "helpCircleOutline" | "idOutline" | "imageOutline" | "information" | "informationOutline" | "instagram" | "leaf" | "leafOutline" | "leftRightArrow" | "lightBulb" | "lightBulbOutline" | "linkedin" | "listBullet" | "listNumber" | "logout" | "members" | "membersOutline" | "minus" | "moon" | "moonOutline" | "mosaic" | "mosaicOutline" | "music" | "musicOutline" | "north" | "northShort" | "notification" | "notificationOutline" | "openInNew" | "organization" | "paperclip" | "partnerSpace" | "pen2" | "pen2Outline" | "pencil" | "pencilOutline" | "penOutline" | "phone" | "phoneOutline" | "pin" | "pinOutline" | "playOutline" | "plus" | "privacy" | "privacyOutline" | "profile" | "profileOutline" | "progressCheck" | "rayEndArrow" | "rayStartArrow" | "rayStartEnd" | "rayTopArrow" | "reboot" | "restore" | "revoke" | "rocket" | "rocketOutline" | "rss" | "sendOutline" | "settings" | "settingsOutline" | "sidebar" | "sidebarOutline" | "slack" | "south" | "southShort" | "sparkles" | "sparklesOutline" | "star" | "starOutline" | "stopOutline" | "sun" | "sunOutline" | "support" | "supportOutline" | "switchOrga" | "thumbsDown" | "thumbsDownOutline" | "thumbsUp" | "thumbsUpOutline" | "twitter" | "unlock" | "unlockOutline" | "unpin" | "unpinOutline" | "videoOutline" | "weatherNight" | "weatherNightOutline" | "west" | "westShort" | "youtube";
18
+ name: "search" | "anchor" | "bold" | "filter" | "sort" | "italic" | "underline" | "drag" | "address" | "audio" | "video" | "image" | "stop" | "view" | "id" | "pen" | "download" | "cancel" | "close" | "play" | "send" | "email" | "arrowLeft" | "upload" | "addressOutline" | "addressPlay" | "adjustmentsHorizontal" | "adjustmentsHorizontalOutline" | "alertCircle" | "alertCircleOutline" | "arrowDown" | "arrowLeftBottom" | "arrowLeftDouble" | "arrowRightBottom" | "arrowRightDouble" | "arrowRight" | "arrowUp" | "attach" | "autoFix" | "autoFixOutline" | "bookOpenOutline" | "bookOpenOutlineOutline" | "boxEssentials" | "boxEssentialsOutline" | "bullhorn" | "bullhornOutline" | "burger" | "calculator" | "calculatorOutline" | "calendarRange" | "calendarRangeOutline" | "chat" | "chatOutline" | "checkCircle" | "checkCircleOutline" | "check" | "clickhouse" | "lock" | "clock" | "lockOutline" | "clockOutline" | "closeCircle" | "closeCircleOutline" | "console" | "consoleOutline" | "copyContent" | "credential" | "credentialOutline" | "creditCard" | "creditCardOutline" | "database" | "databaseOutline" | "delete" | "deleteOutline" | "detach" | "doc" | "docOutline" | "docPaper" | "docPaperOutline" | "dotsHorizontal" | "dotsVertical" | "earth" | "earthOutline" | "east" | "eastShort" | "emailOutline" | "emailRemove" | "emailRemoveOutline" | "equal" | "escape" | "expand" | "expandMore" | "eye" | "eyeOff" | "eyeOffOutline" | "eyeOutline" | "filterOutline" | "folder" | "folderOutline" | "github" | "helpCircle" | "helpCircleOutline" | "idOutline" | "imageOutline" | "information" | "informationOutline" | "instagram" | "leaf" | "leafOutline" | "leftRightArrow" | "lightBulb" | "lightBulbOutline" | "linkedin" | "listBullet" | "listNumber" | "logout" | "members" | "membersOutline" | "minus" | "moon" | "moonOutline" | "mosaic" | "mosaicOutline" | "music" | "musicOutline" | "north" | "northShort" | "notification" | "notificationOutline" | "openInNew" | "organization" | "paperclip" | "partnerSpace" | "pen2" | "pen2Outline" | "pencil" | "pencilOutline" | "penOutline" | "phone" | "phoneOutline" | "pin" | "pinOutline" | "playOutline" | "plus" | "privacy" | "privacyOutline" | "profile" | "profileOutline" | "progressCheck" | "rayEndArrow" | "rayStartArrow" | "rayStartEnd" | "rayTopArrow" | "reboot" | "restore" | "revoke" | "rocket" | "rocketOutline" | "rss" | "sendOutline" | "settings" | "settingsOutline" | "sidebar" | "sidebarOutline" | "slack" | "south" | "southShort" | "sparkles" | "sparklesOutline" | "star" | "starOutline" | "stopOutline" | "sun" | "sunOutline" | "support" | "supportOutline" | "switchOrga" | "thumbsDown" | "thumbsDownOutline" | "thumbsUp" | "thumbsUpOutline" | "twitter" | "unlock" | "unlockOutline" | "unpin" | "unpinOutline" | "videoOutline" | "weatherNight" | "weatherNightOutline" | "west" | "westShort" | "youtube";
19
19
  onClick?: () => void;
20
20
  'data-testid'?: string;
21
21
  }) => import("react/jsx-runtime").JSX.Element;
@@ -30,5 +30,5 @@ export declare const NumberInput: import("react").ForwardRefExoticComponent<{
30
30
  onChange?: (newValue: number | null) => void;
31
31
  min?: number;
32
32
  max?: number;
33
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "style" | "disabled" | "id" | "autoFocus" | "aria-label" | "onFocus" | "onBlur" | "name" | "step" | "placeholder" | "readOnly" | "required"> & import("react").RefAttributes<HTMLInputElement>>;
33
+ } & Pick<InputHTMLAttributes<HTMLInputElement>, "style" | "disabled" | "id" | "autoFocus" | "aria-label" | "onFocus" | "onBlur" | "name" | "step" | "required" | "placeholder" | "readOnly"> & import("react").RefAttributes<HTMLInputElement>>;
34
34
  export {};
@@ -12,7 +12,7 @@ const DEFAULT_DEBOUNCE_DURATION = 200;
12
12
  const noop = () => {
13
13
  };
14
14
  const stopClickPropagation = (event) => {
15
- event.nativeEvent.stopImmediatePropagation();
15
+ event.stopPropagation();
16
16
  };
17
17
  const getPopupPortalTarget = ({
18
18
  node,
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
4
  var containerPopup = createRuntimeFn({ defaultClassName: "uv_w40vpo2", variantClassNames: { hasMaxHeight: { true: "uv_w40vpo3" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  var arrowTop = "var(--uv_ozfz3c0)";
3
2
  var arrowLeft = "var(--uv_ozfz3c1)";
4
3
  var arrowTransform = "var(--uv_ozfz3c2)";
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  var progressContainer = "uv_1pgcd801";
3
4
  var customText = "uv_1pgcd802";
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  var percentageValue = "var(--uv_1taqqht0)";
3
2
  export {
4
3
  percentageValue
@@ -42,7 +42,7 @@ const DisplayOption = ({
42
42
  as: "span",
43
43
  placement: "left",
44
44
  prominence: "weak",
45
- sentiment: "neutral",
45
+ sentiment: option.disabled ? void 0 : "neutral",
46
46
  variant: "bodySmall",
47
47
  children: option.description
48
48
  }
@@ -81,17 +81,7 @@ const DisplayOption = ({
81
81
  children: option.label
82
82
  }
83
83
  ),
84
- option.description ? /* @__PURE__ */ jsx(
85
- Text,
86
- {
87
- as: "span",
88
- placement: "left",
89
- prominence: "weak",
90
- sentiment: "neutral",
91
- variant: "bodySmall",
92
- children: option.description
93
- }
94
- ) : null
84
+ option.description ? /* @__PURE__ */ jsx(Text, { as: "span", placement: "left", variant: "bodySmall", children: option.description }) : null
95
85
  ]
96
86
  }
97
87
  ),
@@ -134,7 +124,7 @@ const DisplayOption = ({
134
124
  as: "span",
135
125
  placement: "left",
136
126
  prominence: "weak",
137
- sentiment: "neutral",
127
+ sentiment: option.disabled ? void 0 : "neutral",
138
128
  variant: "bodySmall",
139
129
  children: option.description
140
130
  }
@@ -182,7 +172,7 @@ const DisplayOption = ({
182
172
  as: "span",
183
173
  placement: "left",
184
174
  prominence: "weak",
185
- sentiment: "neutral",
175
+ sentiment: option.disabled ? void 0 : "neutral",
186
176
  variant: "bodySmall",
187
177
  children: option.description
188
178
  }
@@ -7,6 +7,7 @@ export declare const selectBar: import("@vanilla-extract/recipes").RuntimeFn<{
7
7
  size: {
8
8
  small: {
9
9
  height: `var(--${string})`;
10
+ padding: number;
10
11
  paddingLeft: `var(--${string})`;
11
12
  };
12
13
  medium: {
@@ -1,5 +1,4 @@
1
1
  /* empty css */
2
- /* empty css */
3
2
  /* empty css */
4
3
  /* empty css */
5
4
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  var inputDisplay = "var(--uv_18vc4d30)";
2
3
  var labelDisplay = "var(--uv_18vc4d31)";
3
4
  var widthSelectable = "var(--uv_18vc4d32)";
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, CSSProperties } from 'react';
1
+ import type { ComponentProps, CSSProperties, ReactNode } from 'react';
2
2
  import { CopyButton } from '../CopyButton';
3
3
  type Prefixes = 'lines' | 'command';
4
4
  type SnippetProps = {
@@ -18,10 +18,13 @@ type SnippetProps = {
18
18
  noExpandable?: boolean;
19
19
  onCopy?: () => void;
20
20
  style?: CSSProperties;
21
+ helper?: string;
22
+ label?: string;
23
+ labelDescription?: ReactNode;
21
24
  } & Pick<ComponentProps<typeof CopyButton>, 'copyText' | 'copiedText'>;
22
25
  /**
23
26
  * Snippet component is used to display code snippets with the ability to copy the code.
24
27
  * It also has the ability to show/hide the code snippet if it has more than 4 lines.
25
28
  */
26
- export declare const Snippet: ({ children, copyText, copiedText, showText, hideText, prefix, className, "data-testid": dataTestId, initiallyExpanded, rows, noExpandable, onCopy, style, }: SnippetProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const Snippet: ({ children, copyText, copiedText, showText, hideText, prefix, className, "data-testid": dataTestId, initiallyExpanded, rows, noExpandable, onCopy, style, helper, label, labelDescription, }: SnippetProps) => import("react/jsx-runtime").JSX.Element;
27
30
  export {};