@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.
- package/dist/components/Alert/styles.css.js +0 -1
- package/dist/components/Avatar/styles.css.js +2 -0
- package/dist/components/Avatar/variables.css.js +0 -1
- package/dist/components/Badge/constant.d.ts +2 -0
- package/dist/components/Badge/constant.js +2 -1
- package/dist/components/Badge/styles.css.d.ts +4 -3
- package/dist/components/Badge/styles.css.js +1 -1
- package/dist/components/BarStack/index.d.ts +8 -1
- package/dist/components/BarStack/index.js +135 -59
- package/dist/components/BarStack/styles.css.d.ts +44 -1
- package/dist/components/BarStack/styles.css.js +7 -2
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/Popup/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 +1 -0
- package/dist/components/ProgressBar/variables.css.js +0 -1
- package/dist/components/SelectInput/components/DropdownOption.js +4 -14
- package/dist/components/SelectInput/components/selectBar.css.d.ts +1 -0
- package/dist/components/SelectableCard/styles.css.js +0 -1
- package/dist/components/SelectableCard/variables.css.js +1 -0
- package/dist/components/Snippet/index.d.ts +5 -2
- package/dist/components/Snippet/index.js +85 -77
- package/dist/components/TagInput/styles.css.d.ts +3 -3
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/ui.css +1 -1
- package/package.json +3 -3
|
@@ -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"]] });
|
|
@@ -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
|
};
|
|
@@ -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
|
-
|
|
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: "
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
children:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
|
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" | "
|
|
33
|
+
} & Pick<InputHTMLAttributes<HTMLInputElement>, "style" | "disabled" | "id" | "autoFocus" | "aria-label" | "onFocus" | "onBlur" | "name" | "step" | "required" | "placeholder" | "readOnly"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
34
|
export {};
|
|
@@ -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: [] });
|
|
@@ -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
|
}
|
|
@@ -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 {};
|