@x-plat/design-system 0.1.2 → 0.1.4
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/Accordion/index.cjs +1021 -0
- package/dist/components/Accordion/index.css +51 -0
- package/dist/components/Accordion/index.d.cts +16 -0
- package/dist/components/Accordion/index.d.ts +16 -0
- package/dist/components/Accordion/index.js +984 -0
- package/dist/components/Alert/index.cjs +72 -0
- package/dist/components/Alert/index.css +60 -0
- package/dist/components/Alert/index.d.cts +12 -0
- package/dist/components/Alert/index.d.ts +12 -0
- package/dist/components/Alert/index.js +45 -0
- package/dist/components/Avatar/index.cjs +196 -0
- package/dist/components/Avatar/index.css +322 -0
- package/dist/components/Avatar/index.d.cts +133 -0
- package/dist/components/Avatar/index.d.ts +133 -0
- package/dist/components/Avatar/index.js +169 -0
- package/dist/components/Badge/index.cjs +200 -0
- package/dist/components/Badge/index.css +307 -0
- package/dist/components/Badge/index.d.cts +133 -0
- package/dist/components/Badge/index.d.ts +133 -0
- package/dist/components/Badge/index.js +173 -0
- package/dist/components/Breadcrumb/index.cjs +60 -0
- package/dist/components/Breadcrumb/index.css +37 -0
- package/dist/components/Breadcrumb/index.d.cts +15 -0
- package/dist/components/Breadcrumb/index.d.ts +15 -0
- package/dist/components/Breadcrumb/index.js +33 -0
- package/dist/components/Chart/index.cjs +6 -3
- package/dist/components/Chart/index.js +6 -3
- package/dist/components/CheckBox/index.cjs +1 -1
- package/dist/components/CheckBox/index.css +13 -1
- package/dist/components/CheckBox/index.js +1 -1
- package/dist/components/DatePicker/index.cjs +77 -5
- package/dist/components/DatePicker/index.css +20 -2
- package/dist/components/DatePicker/index.d.cts +245 -4
- package/dist/components/DatePicker/index.d.ts +245 -4
- package/dist/components/DatePicker/index.js +77 -5
- package/dist/components/Divider/index.cjs +61 -0
- package/dist/components/Divider/index.css +15 -0
- package/dist/components/Divider/index.d.cts +10 -0
- package/dist/components/Divider/index.d.ts +10 -0
- package/dist/components/Divider/index.js +34 -0
- package/dist/components/Drawer/index.cjs +111 -0
- package/dist/components/Drawer/index.css +70 -0
- package/dist/components/Drawer/index.d.cts +14 -0
- package/dist/components/Drawer/index.d.ts +14 -0
- package/dist/components/Drawer/index.js +74 -0
- package/dist/components/Dropdown/index.cjs +185 -0
- package/dist/components/Dropdown/index.css +54 -0
- package/dist/components/Dropdown/index.d.cts +17 -0
- package/dist/components/Dropdown/index.d.ts +17 -0
- package/dist/components/Dropdown/index.js +148 -0
- package/dist/components/EmptyState/index.cjs +60 -0
- package/dist/components/EmptyState/index.css +32 -0
- package/dist/components/EmptyState/index.d.cts +12 -0
- package/dist/components/EmptyState/index.d.ts +12 -0
- package/dist/components/EmptyState/index.js +33 -0
- package/dist/components/FileUpload/index.cjs +1039 -0
- package/dist/components/FileUpload/index.css +42 -0
- package/dist/components/FileUpload/index.d.cts +14 -0
- package/dist/components/FileUpload/index.d.ts +14 -0
- package/dist/components/FileUpload/index.js +1002 -0
- package/dist/components/ImageSelector/index.cjs +9 -3
- package/dist/components/ImageSelector/index.js +9 -3
- package/dist/components/Modal/index.cjs +2 -0
- package/dist/components/Modal/index.js +2 -0
- package/dist/components/Pagination/index.cjs +1167 -0
- package/dist/components/Pagination/index.css +325 -0
- package/dist/components/Pagination/index.d.cts +133 -0
- package/dist/components/Pagination/index.d.ts +133 -0
- package/dist/components/Pagination/index.js +1140 -0
- package/dist/components/Progress/index.cjs +218 -0
- package/dist/components/Progress/index.css +313 -0
- package/dist/components/Progress/index.d.cts +133 -0
- package/dist/components/Progress/index.d.ts +133 -0
- package/dist/components/Progress/index.js +191 -0
- package/dist/components/Radio/index.css +1 -1
- package/dist/components/Skeleton/index.cjs +65 -0
- package/dist/components/Skeleton/index.css +27 -0
- package/dist/components/Skeleton/index.d.cts +12 -0
- package/dist/components/Skeleton/index.d.ts +12 -0
- package/dist/components/Skeleton/index.js +38 -0
- package/dist/components/Spinner/index.cjs +222 -0
- package/dist/components/Spinner/index.css +317 -0
- package/dist/components/Spinner/index.d.cts +130 -0
- package/dist/components/Spinner/index.d.ts +130 -0
- package/dist/components/Spinner/index.js +195 -0
- package/dist/components/Steps/index.cjs +1105 -0
- package/dist/components/Steps/index.css +918 -0
- package/dist/components/Steps/index.d.cts +134 -0
- package/dist/components/Steps/index.d.ts +134 -0
- package/dist/components/Steps/index.js +1078 -0
- package/dist/components/Tag/index.cjs +1090 -0
- package/dist/components/Tag/index.css +498 -0
- package/dist/components/Tag/index.d.cts +131 -0
- package/dist/components/Tag/index.d.ts +131 -0
- package/dist/components/Tag/index.js +1063 -0
- package/dist/components/Toast/index.cjs +150 -0
- package/dist/components/Toast/index.css +111 -0
- package/dist/components/Toast/index.d.cts +15 -0
- package/dist/components/Toast/index.d.ts +15 -0
- package/dist/components/Toast/index.js +112 -0
- package/dist/components/Tooltip/index.css +3 -0
- package/dist/components/index.cjs +1992 -1101
- package/dist/components/index.css +10623 -7074
- package/dist/components/index.d.cts +19 -2
- package/dist/components/index.d.ts +19 -2
- package/dist/components/index.js +1950 -1077
- package/dist/index.cjs +2935 -2080
- package/dist/index.css +10619 -7070
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +2980 -2143
- package/package.json +2 -2
package/dist/components/index.js
CHANGED
|
@@ -1,441 +1,15 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
var colors = {
|
|
3
|
-
xplat: {
|
|
4
|
-
red: {
|
|
5
|
-
50: "#FFF0F0",
|
|
6
|
-
100: "#FFDDDE",
|
|
7
|
-
200: "#FFC1C2",
|
|
8
|
-
300: "#FF9698",
|
|
9
|
-
400: "#FF5A5D",
|
|
10
|
-
500: "#FF272B",
|
|
11
|
-
600: "#F80409",
|
|
12
|
-
700: "#D40105",
|
|
13
|
-
800: "#AE0609",
|
|
14
|
-
900: "#900C0F"
|
|
15
|
-
},
|
|
16
|
-
green: {
|
|
17
|
-
50: "#E5F6EA",
|
|
18
|
-
100: "#C1E7CC",
|
|
19
|
-
200: "#98D8AC",
|
|
20
|
-
300: "#6CCA8B",
|
|
21
|
-
400: "#47BE72",
|
|
22
|
-
500: "#10B259",
|
|
23
|
-
600: "#00A34F",
|
|
24
|
-
700: "#009143",
|
|
25
|
-
800: "#007F38",
|
|
26
|
-
900: "#006024"
|
|
27
|
-
},
|
|
28
|
-
orange: {
|
|
29
|
-
50: "#FFF8EC",
|
|
30
|
-
100: "#FFF0D3",
|
|
31
|
-
200: "#FFDDA5",
|
|
32
|
-
300: "#FFC46D",
|
|
33
|
-
400: "#FF9F32",
|
|
34
|
-
500: "#FF820A",
|
|
35
|
-
600: "#FF6900",
|
|
36
|
-
700: "#CC4B02",
|
|
37
|
-
800: "#A13A0B",
|
|
38
|
-
900: "#82320C"
|
|
39
|
-
},
|
|
40
|
-
yellow: {
|
|
41
|
-
50: "#FFFDE7",
|
|
42
|
-
100: "#FFFAC1",
|
|
43
|
-
200: "#FFF186",
|
|
44
|
-
300: "#FFE041",
|
|
45
|
-
400: "#FFCC0D",
|
|
46
|
-
500: "#F0B100",
|
|
47
|
-
600: "#D18800",
|
|
48
|
-
700: "#A66002",
|
|
49
|
-
800: "#894B0A",
|
|
50
|
-
900: "#743D0F"
|
|
51
|
-
},
|
|
52
|
-
blue: {
|
|
53
|
-
50: "#F1F4FD",
|
|
54
|
-
100: "#DFE7FA",
|
|
55
|
-
200: "#C5D4F8",
|
|
56
|
-
300: "#9EB8F2",
|
|
57
|
-
400: "#7093EA",
|
|
58
|
-
500: "#4D6DE3",
|
|
59
|
-
600: "#3950D7",
|
|
60
|
-
700: "#303EC5",
|
|
61
|
-
800: "#2D35A0",
|
|
62
|
-
900: "#29317F"
|
|
63
|
-
},
|
|
64
|
-
lightblue: {
|
|
65
|
-
50: "#EEFAFF",
|
|
66
|
-
100: "#D9F4FF",
|
|
67
|
-
200: "#BBEDFF",
|
|
68
|
-
300: "#8DE3FF",
|
|
69
|
-
400: "#57D0FF",
|
|
70
|
-
500: "#30B6FF",
|
|
71
|
-
600: "#1999F7",
|
|
72
|
-
700: "#1280E3",
|
|
73
|
-
800: "#1566B8",
|
|
74
|
-
900: "#175791"
|
|
75
|
-
},
|
|
76
|
-
purple: {
|
|
77
|
-
50: "#FBF6FE",
|
|
78
|
-
100: "#F5EAFD",
|
|
79
|
-
200: "#EDD8FC",
|
|
80
|
-
300: "#E0BAF8",
|
|
81
|
-
400: "#CD8DF3",
|
|
82
|
-
500: "#B961EB",
|
|
83
|
-
600: "#A541DC",
|
|
84
|
-
700: "#9230C5",
|
|
85
|
-
800: "#782B9E",
|
|
86
|
-
900: "#62247F"
|
|
87
|
-
},
|
|
88
|
-
pink: {
|
|
89
|
-
50: "#FFF4FE",
|
|
90
|
-
100: "#FFE7FD",
|
|
91
|
-
200: "#FFCFFA",
|
|
92
|
-
300: "#FEA9F1",
|
|
93
|
-
400: "#FD75E7",
|
|
94
|
-
500: "#F553DA",
|
|
95
|
-
600: "#D821B6",
|
|
96
|
-
700: "#B31892",
|
|
97
|
-
800: "#921676",
|
|
98
|
-
900: "#781761"
|
|
99
|
-
},
|
|
100
|
-
neutral: {
|
|
101
|
-
50: "#FAFAFA",
|
|
102
|
-
100: "#F5F5F5",
|
|
103
|
-
200: "#E5E5E5",
|
|
104
|
-
300: "#D4D4D4",
|
|
105
|
-
400: "#A1A1A1",
|
|
106
|
-
500: "#737373",
|
|
107
|
-
600: "#525252",
|
|
108
|
-
700: "#404040",
|
|
109
|
-
800: "#262626",
|
|
110
|
-
900: "#171717"
|
|
111
|
-
},
|
|
112
|
-
black: "#000000",
|
|
113
|
-
white: "#FFFFFF"
|
|
114
|
-
},
|
|
115
|
-
test: {
|
|
116
|
-
default: "#ffffff"
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
// src/util/getColor.ts
|
|
121
|
-
var getColorClass = (namespace, palette, shade) => {
|
|
122
|
-
const namespaceMap = colors[namespace];
|
|
123
|
-
const paletteMap = namespaceMap[palette];
|
|
124
|
-
const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
|
|
125
|
-
return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
129
|
-
function r(e) {
|
|
130
|
-
var t, f, n = "";
|
|
131
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
132
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
133
|
-
var o = e.length;
|
|
134
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
135
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
136
|
-
return n;
|
|
137
|
-
}
|
|
138
|
-
function clsx() {
|
|
139
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
140
|
-
return n;
|
|
141
|
-
}
|
|
142
|
-
var clsx_default = clsx;
|
|
143
|
-
|
|
144
|
-
// src/components/Button/Button.tsx
|
|
145
|
-
import { jsx } from "react/jsx-runtime";
|
|
146
|
-
var Button = (props) => {
|
|
147
|
-
const {
|
|
148
|
-
children,
|
|
149
|
-
type = "primary",
|
|
150
|
-
colorNamespace = "xplat",
|
|
151
|
-
color = "black",
|
|
152
|
-
colorDepth,
|
|
153
|
-
disabled,
|
|
154
|
-
className,
|
|
155
|
-
...rest
|
|
156
|
-
} = props;
|
|
157
|
-
const colorClass = getColorClass(
|
|
158
|
-
colorNamespace,
|
|
159
|
-
color,
|
|
160
|
-
colorDepth ?? 500
|
|
161
|
-
);
|
|
162
|
-
return /* @__PURE__ */ jsx(
|
|
163
|
-
"button",
|
|
164
|
-
{
|
|
165
|
-
className: clsx_default("lib-xplat-button", type, colorClass, className),
|
|
166
|
-
disabled,
|
|
167
|
-
...rest,
|
|
168
|
-
children
|
|
169
|
-
}
|
|
170
|
-
);
|
|
171
|
-
};
|
|
172
|
-
Button.displayName = "Button";
|
|
173
|
-
var Button_default = Button;
|
|
174
|
-
|
|
175
|
-
// src/components/Card/Card.tsx
|
|
176
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
177
|
-
var Card = ({ children, title, className }) => {
|
|
178
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-card", className), children: [
|
|
179
|
-
title && /* @__PURE__ */ jsx2("div", { className: "title", children: title }),
|
|
180
|
-
/* @__PURE__ */ jsx2("div", { className: "content", children })
|
|
181
|
-
] });
|
|
182
|
-
};
|
|
183
|
-
Card.displayName = "Card";
|
|
184
|
-
var Card_default = Card;
|
|
185
|
-
|
|
186
|
-
// src/components/Chart/Chart.tsx
|
|
1
|
+
// src/components/Accordion/Accordion.tsx
|
|
187
2
|
import React from "react";
|
|
188
|
-
import {
|
|
189
|
-
ArcElement,
|
|
190
|
-
BarElement,
|
|
191
|
-
CategoryScale,
|
|
192
|
-
Chart as ChartJS,
|
|
193
|
-
Legend,
|
|
194
|
-
LinearScale,
|
|
195
|
-
LineElement,
|
|
196
|
-
PointElement,
|
|
197
|
-
Title,
|
|
198
|
-
Tooltip
|
|
199
|
-
} from "chart.js";
|
|
200
|
-
import ChartDataLabels from "chartjs-plugin-datalabels";
|
|
201
|
-
import { Bar, Doughnut, Line, Pie } from "react-chartjs-2";
|
|
202
|
-
|
|
203
|
-
// src/components/Chart/token/colorSet.ts
|
|
204
|
-
var presets = [
|
|
205
|
-
[
|
|
206
|
-
colors.xplat.red[100],
|
|
207
|
-
colors.xplat.red[200],
|
|
208
|
-
colors.xplat.red[300],
|
|
209
|
-
colors.xplat.red[400],
|
|
210
|
-
colors.xplat.red[500],
|
|
211
|
-
colors.xplat.red[600]
|
|
212
|
-
],
|
|
213
|
-
[
|
|
214
|
-
colors.xplat.orange[100],
|
|
215
|
-
colors.xplat.orange[200],
|
|
216
|
-
colors.xplat.orange[300],
|
|
217
|
-
colors.xplat.orange[400],
|
|
218
|
-
colors.xplat.orange[500],
|
|
219
|
-
colors.xplat.orange[600]
|
|
220
|
-
],
|
|
221
|
-
[
|
|
222
|
-
colors.xplat.yellow[100],
|
|
223
|
-
colors.xplat.yellow[200],
|
|
224
|
-
colors.xplat.yellow[300],
|
|
225
|
-
colors.xplat.yellow[400],
|
|
226
|
-
colors.xplat.yellow[500],
|
|
227
|
-
colors.xplat.yellow[600]
|
|
228
|
-
],
|
|
229
|
-
[
|
|
230
|
-
colors.xplat.green[100],
|
|
231
|
-
colors.xplat.green[200],
|
|
232
|
-
colors.xplat.green[300],
|
|
233
|
-
colors.xplat.green[400],
|
|
234
|
-
colors.xplat.green[500],
|
|
235
|
-
colors.xplat.green[600]
|
|
236
|
-
],
|
|
237
|
-
[
|
|
238
|
-
colors.xplat.blue[100],
|
|
239
|
-
colors.xplat.blue[200],
|
|
240
|
-
colors.xplat.blue[300],
|
|
241
|
-
colors.xplat.blue[400],
|
|
242
|
-
colors.xplat.blue[500],
|
|
243
|
-
colors.xplat.blue[600]
|
|
244
|
-
],
|
|
245
|
-
[
|
|
246
|
-
colors.xplat.lightblue[100],
|
|
247
|
-
colors.xplat.lightblue[200],
|
|
248
|
-
colors.xplat.lightblue[300],
|
|
249
|
-
colors.xplat.lightblue[400],
|
|
250
|
-
colors.xplat.lightblue[500],
|
|
251
|
-
colors.xplat.lightblue[600]
|
|
252
|
-
],
|
|
253
|
-
[
|
|
254
|
-
colors.xplat.purple[100],
|
|
255
|
-
colors.xplat.purple[200],
|
|
256
|
-
colors.xplat.purple[300],
|
|
257
|
-
colors.xplat.purple[400],
|
|
258
|
-
colors.xplat.purple[500],
|
|
259
|
-
colors.xplat.purple[600]
|
|
260
|
-
],
|
|
261
|
-
[
|
|
262
|
-
colors.xplat.pink[100],
|
|
263
|
-
colors.xplat.pink[200],
|
|
264
|
-
colors.xplat.pink[300],
|
|
265
|
-
colors.xplat.pink[400],
|
|
266
|
-
colors.xplat.pink[500],
|
|
267
|
-
colors.xplat.pink[600]
|
|
268
|
-
],
|
|
269
|
-
[
|
|
270
|
-
colors.xplat.orange[300],
|
|
271
|
-
colors.xplat.red[300],
|
|
272
|
-
colors.xplat.yellow[300],
|
|
273
|
-
colors.xplat.green[300],
|
|
274
|
-
colors.xplat.blue[300],
|
|
275
|
-
colors.xplat.lightblue[300]
|
|
276
|
-
],
|
|
277
|
-
[
|
|
278
|
-
colors.xplat.orange[400],
|
|
279
|
-
colors.xplat.red[400],
|
|
280
|
-
colors.xplat.yellow[400],
|
|
281
|
-
colors.xplat.green[400],
|
|
282
|
-
colors.xplat.blue[400],
|
|
283
|
-
colors.xplat.lightblue[400]
|
|
284
|
-
],
|
|
285
|
-
[
|
|
286
|
-
colors.xplat.orange[500],
|
|
287
|
-
colors.xplat.red[500],
|
|
288
|
-
colors.xplat.yellow[500],
|
|
289
|
-
colors.xplat.green[500],
|
|
290
|
-
colors.xplat.blue[500],
|
|
291
|
-
colors.xplat.lightblue[500]
|
|
292
|
-
]
|
|
293
|
-
];
|
|
294
|
-
var colorPresets = {
|
|
295
|
-
line: [
|
|
296
|
-
presets[0],
|
|
297
|
-
presets[1],
|
|
298
|
-
presets[2],
|
|
299
|
-
presets[3],
|
|
300
|
-
presets[4],
|
|
301
|
-
presets[5],
|
|
302
|
-
presets[6],
|
|
303
|
-
presets[7]
|
|
304
|
-
],
|
|
305
|
-
bar: [
|
|
306
|
-
presets[0],
|
|
307
|
-
presets[1],
|
|
308
|
-
presets[2],
|
|
309
|
-
presets[3],
|
|
310
|
-
presets[4],
|
|
311
|
-
presets[5],
|
|
312
|
-
presets[6],
|
|
313
|
-
presets[7]
|
|
314
|
-
],
|
|
315
|
-
doughnut: [presets[8], presets[9], presets[10]],
|
|
316
|
-
pie: [presets[8], presets[9], presets[10]]
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
// src/components/Chart/util.ts
|
|
320
|
-
var getChartColorPreset = (type) => {
|
|
321
|
-
const index = Math.floor(Math.random() * colorPresets[type].length);
|
|
322
|
-
return colorPresets[type][index];
|
|
323
|
-
};
|
|
324
|
-
var getIndexColorByPreset = (preset, index) => {
|
|
325
|
-
const idx = index % preset.length;
|
|
326
|
-
return preset[idx];
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
// src/components/Chart/Chart.tsx
|
|
330
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
331
|
-
ChartJS.register(
|
|
332
|
-
CategoryScale,
|
|
333
|
-
LinearScale,
|
|
334
|
-
PointElement,
|
|
335
|
-
LineElement,
|
|
336
|
-
BarElement,
|
|
337
|
-
ArcElement,
|
|
338
|
-
Title,
|
|
339
|
-
Tooltip,
|
|
340
|
-
Legend,
|
|
341
|
-
ChartDataLabels
|
|
342
|
-
);
|
|
343
|
-
var Chart = (props) => {
|
|
344
|
-
const { type, data, labels } = props;
|
|
345
|
-
const chartRef = React.useRef(null);
|
|
346
|
-
const containerRef = React.useRef(null);
|
|
347
|
-
const datasets = React.useMemo(() => {
|
|
348
|
-
const pallette = getChartColorPreset(type);
|
|
349
|
-
return Object.entries(data).map(([key, values], index) => {
|
|
350
|
-
const uniqueColors = getIndexColorByPreset(pallette, index);
|
|
351
|
-
if (type === "pie" || type === "doughnut") {
|
|
352
|
-
return {
|
|
353
|
-
label: key,
|
|
354
|
-
data: values,
|
|
355
|
-
backgroundColor: uniqueColors
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
return {
|
|
359
|
-
label: key,
|
|
360
|
-
data: values,
|
|
361
|
-
backgroundColor: uniqueColors,
|
|
362
|
-
borderColor: uniqueColors,
|
|
363
|
-
maxBarThickness: 32
|
|
364
|
-
};
|
|
365
|
-
});
|
|
366
|
-
}, [data, type]);
|
|
367
|
-
const chartData = {
|
|
368
|
-
labels,
|
|
369
|
-
datasets
|
|
370
|
-
};
|
|
371
|
-
const options = {
|
|
372
|
-
plugins: {
|
|
373
|
-
legend: { display: false },
|
|
374
|
-
datalabels: { display: false },
|
|
375
|
-
tooltip: { enabled: true }
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
if (type === "line" || type === "bar") {
|
|
379
|
-
options.scales = {
|
|
380
|
-
y: {
|
|
381
|
-
beginAtZero: true,
|
|
382
|
-
drawBorder: false,
|
|
383
|
-
suggestedMax: Math.max(...Object.values(data).flat()) * 1.2,
|
|
384
|
-
ticks: {
|
|
385
|
-
maxTicksLimit: 7
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
x: {
|
|
389
|
-
grid: { display: false },
|
|
390
|
-
ticks: { display: false }
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
if (type === "pie" || type === "doughnut") {
|
|
395
|
-
options.plugins.datalabels = {
|
|
396
|
-
color: colors.xplat.white,
|
|
397
|
-
font: { weight: "bold" },
|
|
398
|
-
formatter: (value) => `${value}`
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
const renderChart = React.useMemo(() => {
|
|
402
|
-
switch (type) {
|
|
403
|
-
case "line":
|
|
404
|
-
return /* @__PURE__ */ jsx3(Line, { ref: chartRef, data: chartData, options });
|
|
405
|
-
case "bar":
|
|
406
|
-
return /* @__PURE__ */ jsx3(Bar, { ref: chartRef, data: chartData, options });
|
|
407
|
-
case "pie":
|
|
408
|
-
return /* @__PURE__ */ jsx3(Pie, { ref: chartRef, data: chartData, options });
|
|
409
|
-
case "doughnut":
|
|
410
|
-
return /* @__PURE__ */ jsx3(Doughnut, { ref: chartRef, data: chartData, options });
|
|
411
|
-
default:
|
|
412
|
-
return null;
|
|
413
|
-
}
|
|
414
|
-
}, [chartData, options, type]);
|
|
415
|
-
React.useEffect(() => {
|
|
416
|
-
if (!containerRef.current || !chartRef.current) return;
|
|
417
|
-
const observer = new ResizeObserver(() => {
|
|
418
|
-
requestAnimationFrame(() => {
|
|
419
|
-
chartRef.current?.resize();
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
observer.observe(containerRef.current);
|
|
423
|
-
return () => observer.disconnect();
|
|
424
|
-
}, []);
|
|
425
|
-
return /* @__PURE__ */ jsx3("div", { className: "lib-xplat-chart", ref: containerRef, children: renderChart });
|
|
426
|
-
};
|
|
427
|
-
Chart.displayName = "Chart";
|
|
428
|
-
var Chart_default = Chart;
|
|
429
3
|
|
|
430
4
|
// src/tokens/svg/action/CopyIcon.tsx
|
|
431
|
-
import { jsx
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
432
6
|
|
|
433
7
|
// src/tokens/svg/action/CropIcon.tsx
|
|
434
|
-
import { jsx as
|
|
8
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
435
9
|
|
|
436
10
|
// src/tokens/svg/action/DeleteIcon.tsx
|
|
437
|
-
import { jsx as
|
|
438
|
-
var DeleteIcon = () => /* @__PURE__ */
|
|
11
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
12
|
+
var DeleteIcon = () => /* @__PURE__ */ jsxs3(
|
|
439
13
|
"svg",
|
|
440
14
|
{
|
|
441
15
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -444,21 +18,21 @@ var DeleteIcon = () => /* @__PURE__ */ jsxs4(
|
|
|
444
18
|
viewBox: "0 0 16 16",
|
|
445
19
|
fill: "none",
|
|
446
20
|
children: [
|
|
447
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ jsx3(
|
|
448
22
|
"path",
|
|
449
23
|
{
|
|
450
24
|
d: "M6.66709 6.7334C6.99828 6.73361 7.26709 7.00216 7.26709 7.3334V11.3334C7.26698 11.6645 6.99822 11.9332 6.66709 11.9334C6.33578 11.9334 6.0672 11.6647 6.06709 11.3334V7.3334C6.06709 7.00203 6.33572 6.7334 6.66709 6.7334Z",
|
|
451
25
|
fill: "currentColor"
|
|
452
26
|
}
|
|
453
27
|
),
|
|
454
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ jsx3(
|
|
455
29
|
"path",
|
|
456
30
|
{
|
|
457
31
|
d: "M9.3335 6.7334C9.66469 6.73361 9.9335 7.00216 9.9335 7.3334V11.3334C9.93339 11.6645 9.66462 11.9332 9.3335 11.9334C9.00219 11.9334 8.7336 11.6647 8.7335 11.3334V7.3334C8.7335 7.00203 9.00213 6.7334 9.3335 6.7334Z",
|
|
458
32
|
fill: "currentColor"
|
|
459
33
|
}
|
|
460
34
|
),
|
|
461
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ jsx3(
|
|
462
36
|
"path",
|
|
463
37
|
{
|
|
464
38
|
fillRule: "evenodd",
|
|
@@ -473,77 +47,77 @@ var DeleteIcon = () => /* @__PURE__ */ jsxs4(
|
|
|
473
47
|
var DeleteIcon_default = DeleteIcon;
|
|
474
48
|
|
|
475
49
|
// src/tokens/svg/action/DownloadCloudIcon.tsx
|
|
476
|
-
import { jsx as
|
|
50
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
477
51
|
|
|
478
52
|
// src/tokens/svg/action/DownloadIcon.tsx
|
|
479
|
-
import { jsx as
|
|
53
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
480
54
|
|
|
481
55
|
// src/tokens/svg/action/Edit2Icon.tsx
|
|
482
|
-
import { jsx as
|
|
56
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
483
57
|
|
|
484
58
|
// src/tokens/svg/action/Edit3Icon.tsx
|
|
485
|
-
import { jsx as
|
|
59
|
+
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
486
60
|
|
|
487
61
|
// src/tokens/svg/action/EditIcon.tsx
|
|
488
|
-
import { jsx as
|
|
62
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
489
63
|
|
|
490
64
|
// src/tokens/svg/action/ExternalLinkIcon.tsx
|
|
491
|
-
import { jsx as
|
|
65
|
+
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
492
66
|
|
|
493
67
|
// src/tokens/svg/action/FilterIcon.tsx
|
|
494
|
-
import { jsx as
|
|
68
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
495
69
|
|
|
496
70
|
// src/tokens/svg/action/Link2Icon.tsx
|
|
497
|
-
import { jsx as
|
|
71
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
498
72
|
|
|
499
73
|
// src/tokens/svg/action/LinkIcon.tsx
|
|
500
|
-
import { jsx as
|
|
74
|
+
import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
501
75
|
|
|
502
76
|
// src/tokens/svg/action/MoveIcon.tsx
|
|
503
|
-
import { jsx as
|
|
77
|
+
import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
504
78
|
|
|
505
79
|
// src/tokens/svg/action/RefreshCcwIcon.tsx
|
|
506
|
-
import { jsx as
|
|
80
|
+
import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
507
81
|
|
|
508
82
|
// src/tokens/svg/action/RefreshCwIcon.tsx
|
|
509
|
-
import { jsx as
|
|
83
|
+
import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
510
84
|
|
|
511
85
|
// src/tokens/svg/action/RotateCcwIcon.tsx
|
|
512
|
-
import { jsx as
|
|
86
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
513
87
|
|
|
514
88
|
// src/tokens/svg/action/RotateCwIcon.tsx
|
|
515
|
-
import { jsx as
|
|
89
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
516
90
|
|
|
517
91
|
// src/tokens/svg/action/SaveIcon.tsx
|
|
518
|
-
import { jsx as
|
|
92
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
519
93
|
|
|
520
94
|
// src/tokens/svg/action/ScissorsIcon.tsx
|
|
521
|
-
import { jsx as
|
|
95
|
+
import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
522
96
|
|
|
523
97
|
// src/tokens/svg/action/SearchIcon.tsx
|
|
524
|
-
import { jsx as
|
|
98
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
525
99
|
|
|
526
100
|
// src/tokens/svg/action/SendIcon.tsx
|
|
527
|
-
import { jsx as
|
|
101
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
528
102
|
|
|
529
103
|
// src/tokens/svg/action/Share2Icon.tsx
|
|
530
|
-
import { jsx as
|
|
104
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
531
105
|
|
|
532
106
|
// src/tokens/svg/action/ShareIcon.tsx
|
|
533
|
-
import { jsx as
|
|
107
|
+
import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
534
108
|
|
|
535
109
|
// src/tokens/svg/action/Trash2Icon.tsx
|
|
536
|
-
import { jsx as
|
|
110
|
+
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
537
111
|
|
|
538
112
|
// src/tokens/svg/action/TrashIcon.tsx
|
|
539
|
-
import { jsx as
|
|
113
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
540
114
|
|
|
541
115
|
// src/tokens/svg/action/UploadCloudIcon.tsx
|
|
542
|
-
import { jsx as
|
|
116
|
+
import { jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
543
117
|
|
|
544
118
|
// src/tokens/svg/action/UploadIcon.tsx
|
|
545
|
-
import { jsx as
|
|
546
|
-
var UploadIcon = () => /* @__PURE__ */
|
|
119
|
+
import { jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
120
|
+
var UploadIcon = () => /* @__PURE__ */ jsxs19(
|
|
547
121
|
"svg",
|
|
548
122
|
{
|
|
549
123
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -552,14 +126,14 @@ var UploadIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
552
126
|
viewBox: "0 0 16 16",
|
|
553
127
|
fill: "none",
|
|
554
128
|
children: [
|
|
555
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ jsx27(
|
|
556
130
|
"path",
|
|
557
131
|
{
|
|
558
132
|
d: "M13.9999 9.40039C14.3313 9.40039 14.5999 9.66902 14.5999 10.0004V12.6668C14.5999 13.1796 14.3961 13.6714 14.0335 14.034C13.6709 14.3966 13.1791 14.6004 12.6663 14.6004H3.3335C2.82074 14.6004 2.32888 14.3966 1.96631 14.034C1.60374 13.6714 1.3999 13.1796 1.3999 12.6668V10.0004C1.3999 9.66902 1.66853 9.40039 1.9999 9.40039C2.33127 9.40039 2.5999 9.66902 2.5999 10.0004V12.6668C2.5999 12.8613 2.67722 13.048 2.81475 13.1855C2.95227 13.3231 3.139 13.4004 3.3335 13.4004H12.6663C12.8608 13.4004 13.0475 13.3231 13.1851 13.1855C13.3226 13.048 13.3999 12.8613 13.3999 12.6668V10.0004C13.3999 9.66902 13.6685 9.40039 13.9999 9.40039Z",
|
|
559
133
|
fill: "currentColor"
|
|
560
134
|
}
|
|
561
135
|
),
|
|
562
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ jsx27(
|
|
563
137
|
"path",
|
|
564
138
|
{
|
|
565
139
|
d: "M8.021 1.40117C8.02595 1.40134 8.03089 1.40166 8.03584 1.40195C8.06704 1.4038 8.09751 1.40802 8.12725 1.41445C8.14906 1.41917 8.17003 1.42682 8.19131 1.43398C8.20533 1.43872 8.21996 1.44154 8.2335 1.44727L8.23975 1.45039C8.3068 1.47957 8.37009 1.52135 8.4249 1.57617L11.7577 4.90977C11.9918 5.14403 11.9918 5.52394 11.7577 5.7582C11.5234 5.99219 11.1435 5.99224 10.9093 5.7582L8.5999 3.44883V10.0004C8.5999 10.3318 8.33127 10.6004 7.9999 10.6004C7.66853 10.6004 7.3999 10.3318 7.3999 10.0004V3.44883L5.09131 5.7582C4.85709 5.99228 4.47717 5.99215 4.24287 5.7582C4.0086 5.52393 4.00869 5.14409 4.24287 4.90977L7.57178 1.58008C7.57552 1.57627 7.57965 1.57285 7.5835 1.56914L7.62178 1.53477C7.62876 1.52908 7.63648 1.52446 7.64365 1.51914C7.65829 1.50829 7.67335 1.49818 7.68897 1.48867C7.70584 1.4784 7.72293 1.469 7.74053 1.46055C7.75681 1.45271 7.77347 1.44582 7.79053 1.43945C7.81028 1.4321 7.8304 1.42669 7.85068 1.42148C7.87179 1.41606 7.89281 1.40976 7.91475 1.40664C7.91788 1.40619 7.92098 1.40548 7.92412 1.40508C7.94894 1.40195 7.97424 1.40039 7.9999 1.40039C8.00697 1.40039 8.01399 1.40093 8.021 1.40117Z",
|
|
@@ -572,59 +146,59 @@ var UploadIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
572
146
|
var UploadIcon_default = UploadIcon;
|
|
573
147
|
|
|
574
148
|
// src/tokens/svg/action/ZoomInIcon.tsx
|
|
575
|
-
import { jsx as
|
|
149
|
+
import { jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
576
150
|
|
|
577
151
|
// src/tokens/svg/action/ZoomOutIcon.tsx
|
|
578
|
-
import { jsx as
|
|
152
|
+
import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
579
153
|
|
|
580
154
|
// src/tokens/svg/call/CallActiveIcon.tsx
|
|
581
|
-
import { jsx as
|
|
155
|
+
import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
582
156
|
|
|
583
157
|
// src/tokens/svg/call/CallForwardedIcon.tsx
|
|
584
|
-
import { jsx as
|
|
158
|
+
import { jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
585
159
|
|
|
586
160
|
// src/tokens/svg/call/CallIcon.tsx
|
|
587
|
-
import { jsx as
|
|
161
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
588
162
|
|
|
589
163
|
// src/tokens/svg/call/CallIncomingIcon.tsx
|
|
590
|
-
import { jsx as
|
|
164
|
+
import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
591
165
|
|
|
592
166
|
// src/tokens/svg/call/CallMissedIcon.tsx
|
|
593
|
-
import { jsx as
|
|
167
|
+
import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
594
168
|
|
|
595
169
|
// src/tokens/svg/call/CallOffIcon.tsx
|
|
596
|
-
import { jsx as
|
|
170
|
+
import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
597
171
|
|
|
598
172
|
// src/tokens/svg/call/CallOutgoingIcon.tsx
|
|
599
|
-
import { jsx as
|
|
173
|
+
import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
600
174
|
|
|
601
175
|
// src/tokens/svg/call/VoicemailIcon.tsx
|
|
602
|
-
import { jsx as
|
|
176
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
603
177
|
|
|
604
178
|
// src/tokens/svg/chart/BarChart2Icon.tsx
|
|
605
|
-
import { jsx as
|
|
179
|
+
import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
606
180
|
|
|
607
181
|
// src/tokens/svg/chart/BarChartIcon.tsx
|
|
608
|
-
import { jsx as
|
|
182
|
+
import { jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
609
183
|
|
|
610
184
|
// src/tokens/svg/chart/PieChartIcon.tsx
|
|
611
|
-
import { jsx as
|
|
185
|
+
import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
612
186
|
|
|
613
187
|
// src/tokens/svg/chart/TableIcon.tsx
|
|
614
|
-
import { jsx as
|
|
188
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
615
189
|
|
|
616
190
|
// src/tokens/svg/chart/TrendingDownIcon.tsx
|
|
617
|
-
import { jsx as
|
|
191
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
618
192
|
|
|
619
193
|
// src/tokens/svg/chart/TrendingUpIcon.tsx
|
|
620
|
-
import { jsx as
|
|
194
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
621
195
|
|
|
622
196
|
// src/tokens/svg/date/CalendarIcon.tsx
|
|
623
|
-
import { jsx as
|
|
197
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
624
198
|
|
|
625
199
|
// src/tokens/svg/date/CalenderIcon.tsx
|
|
626
|
-
import { jsx as
|
|
627
|
-
var CalenderIcon = () => /* @__PURE__ */
|
|
200
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
201
|
+
var CalenderIcon = () => /* @__PURE__ */ jsx45(
|
|
628
202
|
"svg",
|
|
629
203
|
{
|
|
630
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -632,7 +206,7 @@ var CalenderIcon = () => /* @__PURE__ */ jsx48(
|
|
|
632
206
|
height: "1em",
|
|
633
207
|
viewBox: "0 0 16 16",
|
|
634
208
|
fill: "none",
|
|
635
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ jsx45(
|
|
636
210
|
"path",
|
|
637
211
|
{
|
|
638
212
|
fillRule: "evenodd",
|
|
@@ -646,161 +220,161 @@ var CalenderIcon = () => /* @__PURE__ */ jsx48(
|
|
|
646
220
|
var CalenderIcon_default = CalenderIcon;
|
|
647
221
|
|
|
648
222
|
// src/tokens/svg/date/ClockIcon.tsx
|
|
649
|
-
import { jsx as
|
|
223
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
650
224
|
|
|
651
225
|
// src/tokens/svg/date/SunriseIcon.tsx
|
|
652
|
-
import { jsx as
|
|
226
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
653
227
|
|
|
654
228
|
// src/tokens/svg/date/SunsetIcon.tsx
|
|
655
|
-
import { jsx as
|
|
229
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
656
230
|
|
|
657
231
|
// src/tokens/svg/device/BatteryChargingIcon.tsx
|
|
658
|
-
import { jsx as
|
|
232
|
+
import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
659
233
|
|
|
660
234
|
// src/tokens/svg/device/BatteryIcon.tsx
|
|
661
|
-
import { jsx as
|
|
235
|
+
import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
662
236
|
|
|
663
237
|
// src/tokens/svg/device/BluetoothIcon.tsx
|
|
664
|
-
import { jsx as
|
|
238
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
665
239
|
|
|
666
240
|
// src/tokens/svg/device/CommandIcon.tsx
|
|
667
|
-
import { jsx as
|
|
241
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
668
242
|
|
|
669
243
|
// src/tokens/svg/device/CpuIcon.tsx
|
|
670
|
-
import { jsx as
|
|
244
|
+
import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
671
245
|
|
|
672
246
|
// src/tokens/svg/device/DatabaseIcon.tsx
|
|
673
|
-
import { jsx as
|
|
247
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
674
248
|
|
|
675
249
|
// src/tokens/svg/device/HardDriveIcon.tsx
|
|
676
|
-
import { jsx as
|
|
250
|
+
import { jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
677
251
|
|
|
678
252
|
// src/tokens/svg/device/MonitorIcon.tsx
|
|
679
|
-
import { jsx as
|
|
253
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
680
254
|
|
|
681
255
|
// src/tokens/svg/device/PrinterIcon.tsx
|
|
682
|
-
import { jsx as
|
|
256
|
+
import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
683
257
|
|
|
684
258
|
// src/tokens/svg/device/ServerIcon.tsx
|
|
685
|
-
import { jsx as
|
|
259
|
+
import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
686
260
|
|
|
687
261
|
// src/tokens/svg/device/SmartphoneIcon.tsx
|
|
688
|
-
import { jsx as
|
|
262
|
+
import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
689
263
|
|
|
690
264
|
// src/tokens/svg/device/TabletIcon.tsx
|
|
691
|
-
import { jsx as
|
|
265
|
+
import { jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
692
266
|
|
|
693
267
|
// src/tokens/svg/device/TerminalIcon.tsx
|
|
694
|
-
import { jsx as
|
|
268
|
+
import { jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
695
269
|
|
|
696
270
|
// src/tokens/svg/device/TvIcon.tsx
|
|
697
|
-
import { jsx as
|
|
271
|
+
import { jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
698
272
|
|
|
699
273
|
// src/tokens/svg/device/WatchIcon.tsx
|
|
700
|
-
import { jsx as
|
|
274
|
+
import { jsx as jsx63, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
701
275
|
|
|
702
276
|
// src/tokens/svg/device/WifiIcon.tsx
|
|
703
|
-
import { jsx as
|
|
277
|
+
import { jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
704
278
|
|
|
705
279
|
// src/tokens/svg/device/WifiOffIcon.tsx
|
|
706
|
-
import { jsx as
|
|
280
|
+
import { jsx as jsx65, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
707
281
|
|
|
708
282
|
// src/tokens/svg/edit/AlignCenterIcon.tsx
|
|
709
|
-
import { jsx as
|
|
283
|
+
import { jsx as jsx66, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
710
284
|
|
|
711
285
|
// src/tokens/svg/edit/AlignJustifyIcon.tsx
|
|
712
|
-
import { jsx as
|
|
286
|
+
import { jsx as jsx67, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
713
287
|
|
|
714
288
|
// src/tokens/svg/edit/AlignLeftIcon.tsx
|
|
715
|
-
import { jsx as
|
|
289
|
+
import { jsx as jsx68, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
716
290
|
|
|
717
291
|
// src/tokens/svg/edit/AlignRightIcon.tsx
|
|
718
|
-
import { jsx as
|
|
292
|
+
import { jsx as jsx69, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
719
293
|
|
|
720
294
|
// src/tokens/svg/edit/BoldIcon.tsx
|
|
721
|
-
import { jsx as
|
|
295
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
722
296
|
|
|
723
297
|
// src/tokens/svg/edit/CodeIcon.tsx
|
|
724
|
-
import { jsx as
|
|
298
|
+
import { jsx as jsx71, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
725
299
|
|
|
726
300
|
// src/tokens/svg/edit/ItalicIcon.tsx
|
|
727
|
-
import { jsx as
|
|
301
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
728
302
|
|
|
729
303
|
// src/tokens/svg/edit/PenToolIcon.tsx
|
|
730
|
-
import { jsx as
|
|
304
|
+
import { jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
731
305
|
|
|
732
306
|
// src/tokens/svg/edit/TypeIcon.tsx
|
|
733
|
-
import { jsx as
|
|
307
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
734
308
|
|
|
735
309
|
// src/tokens/svg/edit/UnderlineIcon.tsx
|
|
736
|
-
import { jsx as
|
|
310
|
+
import { jsx as jsx75, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
737
311
|
|
|
738
312
|
// src/tokens/svg/file/ArchiveIcon.tsx
|
|
739
|
-
import { jsx as
|
|
313
|
+
import { jsx as jsx76, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
740
314
|
|
|
741
315
|
// src/tokens/svg/file/BookIcon.tsx
|
|
742
|
-
import { jsx as
|
|
316
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
743
317
|
|
|
744
318
|
// src/tokens/svg/file/BookOpenIcon.tsx
|
|
745
|
-
import { jsx as
|
|
319
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
746
320
|
|
|
747
321
|
// src/tokens/svg/file/BookmarkIcon.tsx
|
|
748
|
-
import { jsx as
|
|
322
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
749
323
|
|
|
750
324
|
// src/tokens/svg/file/ClipboardIcon.tsx
|
|
751
|
-
import { jsx as
|
|
325
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
752
326
|
|
|
753
327
|
// src/tokens/svg/file/FileIcon.tsx
|
|
754
|
-
import { jsx as
|
|
328
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
755
329
|
|
|
756
330
|
// src/tokens/svg/file/FileMinusIcon.tsx
|
|
757
|
-
import { jsx as
|
|
331
|
+
import { jsx as jsx82, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
758
332
|
|
|
759
333
|
// src/tokens/svg/file/FilePlusIcon.tsx
|
|
760
|
-
import { jsx as
|
|
334
|
+
import { jsx as jsx83, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
761
335
|
|
|
762
336
|
// src/tokens/svg/file/FileTextIcon.tsx
|
|
763
|
-
import { jsx as
|
|
337
|
+
import { jsx as jsx84, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
764
338
|
|
|
765
339
|
// src/tokens/svg/file/FolderIcon.tsx
|
|
766
|
-
import { jsx as
|
|
340
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
767
341
|
|
|
768
342
|
// src/tokens/svg/file/FolderMinusIcon.tsx
|
|
769
|
-
import { jsx as
|
|
343
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
770
344
|
|
|
771
345
|
// src/tokens/svg/file/FolderPlusIcon.tsx
|
|
772
|
-
import { jsx as
|
|
346
|
+
import { jsx as jsx87, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
773
347
|
|
|
774
348
|
// src/tokens/svg/file/PackageIcon.tsx
|
|
775
|
-
import { jsx as
|
|
349
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
776
350
|
|
|
777
351
|
// src/tokens/svg/media/AirplayIcon.tsx
|
|
778
|
-
import { jsx as
|
|
352
|
+
import { jsx as jsx89, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
779
353
|
|
|
780
354
|
// src/tokens/svg/media/CameraIcon.tsx
|
|
781
|
-
import { jsx as
|
|
355
|
+
import { jsx as jsx90, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
782
356
|
|
|
783
357
|
// src/tokens/svg/media/CameraOffIcon.tsx
|
|
784
|
-
import { jsx as
|
|
358
|
+
import { jsx as jsx91, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
785
359
|
|
|
786
360
|
// src/tokens/svg/media/CastIcon.tsx
|
|
787
|
-
import { jsx as
|
|
361
|
+
import { jsx as jsx92, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
788
362
|
|
|
789
363
|
// src/tokens/svg/media/DiscIcon.tsx
|
|
790
|
-
import { jsx as
|
|
364
|
+
import { jsx as jsx93, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
791
365
|
|
|
792
366
|
// src/tokens/svg/media/FastForwardIcon.tsx
|
|
793
|
-
import { jsx as
|
|
367
|
+
import { jsx as jsx94, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
794
368
|
|
|
795
369
|
// src/tokens/svg/media/FilmIcon.tsx
|
|
796
|
-
import { jsx as
|
|
370
|
+
import { jsx as jsx95, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
797
371
|
|
|
798
372
|
// src/tokens/svg/media/HeadphonesIcon.tsx
|
|
799
|
-
import { jsx as
|
|
373
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
800
374
|
|
|
801
375
|
// src/tokens/svg/media/ImageIcon.tsx
|
|
802
|
-
import { jsx as
|
|
803
|
-
var ImageIcon = () => /* @__PURE__ */
|
|
376
|
+
import { jsx as jsx97, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
377
|
+
var ImageIcon = () => /* @__PURE__ */ jsxs67(
|
|
804
378
|
"svg",
|
|
805
379
|
{
|
|
806
380
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -809,7 +383,7 @@ var ImageIcon = () => /* @__PURE__ */ jsxs68(
|
|
|
809
383
|
viewBox: "0 0 20 20",
|
|
810
384
|
fill: "none",
|
|
811
385
|
children: [
|
|
812
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ jsx97(
|
|
813
387
|
"path",
|
|
814
388
|
{
|
|
815
389
|
fillRule: "evenodd",
|
|
@@ -818,7 +392,7 @@ var ImageIcon = () => /* @__PURE__ */ jsxs68(
|
|
|
818
392
|
fill: "currentColor"
|
|
819
393
|
}
|
|
820
394
|
),
|
|
821
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ jsx97(
|
|
822
396
|
"path",
|
|
823
397
|
{
|
|
824
398
|
fillRule: "evenodd",
|
|
@@ -833,20 +407,20 @@ var ImageIcon = () => /* @__PURE__ */ jsxs68(
|
|
|
833
407
|
var ImageIcon_default = ImageIcon;
|
|
834
408
|
|
|
835
409
|
// src/tokens/svg/media/MicIcon.tsx
|
|
836
|
-
import { jsx as
|
|
410
|
+
import { jsx as jsx98, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
837
411
|
|
|
838
412
|
// src/tokens/svg/media/MicOffIcon.tsx
|
|
839
|
-
import { jsx as
|
|
413
|
+
import { jsx as jsx99, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
840
414
|
|
|
841
415
|
// src/tokens/svg/media/MusicIcon.tsx
|
|
842
|
-
import { jsx as
|
|
416
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
843
417
|
|
|
844
418
|
// src/tokens/svg/media/PauseCircleIcon.tsx
|
|
845
|
-
import { jsx as
|
|
419
|
+
import { jsx as jsx101, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
846
420
|
|
|
847
421
|
// src/tokens/svg/media/PauseIcon.tsx
|
|
848
|
-
import { jsx as
|
|
849
|
-
var PauseIcon = () => /* @__PURE__ */
|
|
422
|
+
import { jsx as jsx102, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
423
|
+
var PauseIcon = () => /* @__PURE__ */ jsxs71(
|
|
850
424
|
"svg",
|
|
851
425
|
{
|
|
852
426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -855,16 +429,16 @@ var PauseIcon = () => /* @__PURE__ */ jsxs72(
|
|
|
855
429
|
viewBox: "0 0 20 20",
|
|
856
430
|
fill: "none",
|
|
857
431
|
children: [
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ jsx102("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.33301 2.58301C8.74714 2.58301 9.08288 2.91891 9.08301 3.33301V16.666C9.08301 17.0802 8.74722 17.416 8.33301 17.416H5C4.58579 17.416 4.25 17.0802 4.25 16.666V3.33301C4.25013 2.91891 4.58587 2.58301 5 2.58301H8.33301ZM5.75 15.916H7.58301V4.08301H5.75V15.916Z", fill: "currentColor" }),
|
|
433
|
+
/* @__PURE__ */ jsx102("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 2.58301C15.4139 2.58327 15.7499 2.91907 15.75 3.33301V16.666C15.75 17.0801 15.414 17.4158 15 17.416H11.667C11.2528 17.416 10.917 17.0802 10.917 16.666V3.33301C10.9171 2.91891 11.2529 2.58301 11.667 2.58301H15ZM12.417 15.916H14.25V4.08301H12.417V15.916Z", fill: "currentColor" })
|
|
860
434
|
]
|
|
861
435
|
}
|
|
862
436
|
);
|
|
863
437
|
var PauseIcon_default = PauseIcon;
|
|
864
438
|
|
|
865
439
|
// src/tokens/svg/media/PlayCircleIcon.tsx
|
|
866
|
-
import { jsx as
|
|
867
|
-
var PlayCircleIcon = () => /* @__PURE__ */
|
|
440
|
+
import { jsx as jsx103, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
441
|
+
var PlayCircleIcon = () => /* @__PURE__ */ jsxs72(
|
|
868
442
|
"svg",
|
|
869
443
|
{
|
|
870
444
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -873,241 +447,241 @@ var PlayCircleIcon = () => /* @__PURE__ */ jsxs73(
|
|
|
873
447
|
viewBox: "0 0 20 20",
|
|
874
448
|
fill: "none",
|
|
875
449
|
children: [
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
-
/* @__PURE__ */
|
|
878
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ jsxs72("g", { clipPath: "url(#playcircle-clip)", children: [
|
|
451
|
+
/* @__PURE__ */ jsx103("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.98047 6.00586C8.22424 5.87564 8.52002 5.88965 8.75 6.04297L13.75 9.37598C13.9583 9.51505 14.0839 9.74954 14.084 10C14.0839 10.2505 13.9584 10.4849 13.75 10.624L8.75 13.958C8.52015 14.1112 8.22412 14.1251 7.98047 13.9951C7.73677 13.8647 7.58419 13.6104 7.58398 13.334V6.66699L7.59082 6.56445C7.6233 6.32874 7.7671 6.12005 7.98047 6.00586ZM9.08398 11.9316L11.9814 10L9.08398 8.06738V11.9316Z", fill: "currentColor" }),
|
|
452
|
+
/* @__PURE__ */ jsx103("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 0.916992C15.0163 0.917256 19.0838 4.98373 19.084 10C19.0839 15.0163 15.0163 19.0837 10 19.084C4.98364 19.0838 0.916148 15.0164 0.916016 10C0.916191 4.98367 4.98367 0.917168 10 0.916992ZM10 2.41699C5.8121 2.41717 2.41717 5.8121 2.41699 10C2.41712 14.1879 5.81207 17.5838 10 17.584C14.1879 17.5837 17.5839 14.1879 17.584 10C17.5838 5.81215 14.1878 2.41726 10 2.41699Z", fill: "currentColor" })
|
|
879
453
|
] }),
|
|
880
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ jsx103("defs", { children: /* @__PURE__ */ jsx103("clipPath", { id: "playcircle-clip", children: /* @__PURE__ */ jsx103("rect", { width: "20", height: "20", fill: "currentColor" }) }) })
|
|
881
455
|
]
|
|
882
456
|
}
|
|
883
457
|
);
|
|
884
458
|
var PlayCircleIcon_default = PlayCircleIcon;
|
|
885
459
|
|
|
886
460
|
// src/tokens/svg/media/PlayIcon.tsx
|
|
887
|
-
import { jsx as
|
|
461
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
888
462
|
|
|
889
463
|
// src/tokens/svg/media/RepeatIcon.tsx
|
|
890
|
-
import { jsx as
|
|
464
|
+
import { jsx as jsx105, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
891
465
|
|
|
892
466
|
// src/tokens/svg/media/RewindIcon.tsx
|
|
893
|
-
import { jsx as
|
|
467
|
+
import { jsx as jsx106, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
894
468
|
|
|
895
469
|
// src/tokens/svg/media/SkipBackIcon.tsx
|
|
896
|
-
import { jsx as
|
|
470
|
+
import { jsx as jsx107, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
897
471
|
|
|
898
472
|
// src/tokens/svg/media/SkipForwardIcon.tsx
|
|
899
|
-
import { jsx as
|
|
473
|
+
import { jsx as jsx108, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
900
474
|
|
|
901
475
|
// src/tokens/svg/media/SpeakerIcon.tsx
|
|
902
|
-
import { jsx as
|
|
476
|
+
import { jsx as jsx109, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
903
477
|
|
|
904
478
|
// src/tokens/svg/media/StopCircleIcon.tsx
|
|
905
|
-
import { jsx as
|
|
479
|
+
import { jsx as jsx110, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
906
480
|
|
|
907
481
|
// src/tokens/svg/media/VideoIcon.tsx
|
|
908
|
-
import { jsx as
|
|
482
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
909
483
|
|
|
910
484
|
// src/tokens/svg/media/VideoOffIcon.tsx
|
|
911
|
-
import { jsx as
|
|
485
|
+
import { jsx as jsx112, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
912
486
|
|
|
913
487
|
// src/tokens/svg/media/Volume1Icon.tsx
|
|
914
|
-
import { jsx as
|
|
488
|
+
import { jsx as jsx113, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
915
489
|
|
|
916
490
|
// src/tokens/svg/media/Volume2Icon.tsx
|
|
917
|
-
import { jsx as
|
|
491
|
+
import { jsx as jsx114, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
918
492
|
|
|
919
493
|
// src/tokens/svg/media/VolumeIcon.tsx
|
|
920
|
-
import { jsx as
|
|
494
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
921
495
|
|
|
922
496
|
// src/tokens/svg/media/VolumeXIcon.tsx
|
|
923
|
-
import { jsx as
|
|
497
|
+
import { jsx as jsx116, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
924
498
|
|
|
925
499
|
// src/tokens/svg/misc/ActivityIcon.tsx
|
|
926
|
-
import { jsx as
|
|
500
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
927
501
|
|
|
928
502
|
// src/tokens/svg/misc/AnchorIcon.tsx
|
|
929
|
-
import { jsx as
|
|
503
|
+
import { jsx as jsx118, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
930
504
|
|
|
931
505
|
// src/tokens/svg/misc/ApertureIcon.tsx
|
|
932
|
-
import { jsx as
|
|
506
|
+
import { jsx as jsx119, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
933
507
|
|
|
934
508
|
// src/tokens/svg/misc/AwardIcon.tsx
|
|
935
|
-
import { jsx as
|
|
509
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
936
510
|
|
|
937
511
|
// src/tokens/svg/misc/BellIcon.tsx
|
|
938
|
-
import { jsx as
|
|
512
|
+
import { jsx as jsx121, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
939
513
|
|
|
940
514
|
// src/tokens/svg/misc/BellOffIcon.tsx
|
|
941
|
-
import { jsx as
|
|
515
|
+
import { jsx as jsx122, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
942
516
|
|
|
943
517
|
// src/tokens/svg/misc/BoxIcon.tsx
|
|
944
|
-
import { jsx as
|
|
518
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
945
519
|
|
|
946
520
|
// src/tokens/svg/misc/BriefcaseIcon.tsx
|
|
947
|
-
import { jsx as
|
|
521
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
948
522
|
|
|
949
523
|
// src/tokens/svg/misc/CloudDrizzleIcon.tsx
|
|
950
|
-
import { jsx as
|
|
524
|
+
import { jsx as jsx125, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
951
525
|
|
|
952
526
|
// src/tokens/svg/misc/CloudIcon.tsx
|
|
953
|
-
import { jsx as
|
|
527
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
954
528
|
|
|
955
529
|
// src/tokens/svg/misc/CloudLightningIcon.tsx
|
|
956
|
-
import { jsx as
|
|
530
|
+
import { jsx as jsx127, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
957
531
|
|
|
958
532
|
// src/tokens/svg/misc/CloudOffIcon.tsx
|
|
959
|
-
import { jsx as
|
|
533
|
+
import { jsx as jsx128, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
960
534
|
|
|
961
535
|
// src/tokens/svg/misc/CloudRainIcon.tsx
|
|
962
|
-
import { jsx as
|
|
536
|
+
import { jsx as jsx129, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
963
537
|
|
|
964
538
|
// src/tokens/svg/misc/CloudSnowIcon.tsx
|
|
965
|
-
import { jsx as
|
|
539
|
+
import { jsx as jsx130, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
966
540
|
|
|
967
541
|
// src/tokens/svg/misc/CoffeeIcon.tsx
|
|
968
|
-
import { jsx as
|
|
542
|
+
import { jsx as jsx131, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
969
543
|
|
|
970
544
|
// src/tokens/svg/misc/CreditCardIcon.tsx
|
|
971
|
-
import { jsx as
|
|
545
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
972
546
|
|
|
973
547
|
// src/tokens/svg/misc/CrosshairIcon.tsx
|
|
974
|
-
import { jsx as
|
|
548
|
+
import { jsx as jsx133, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
975
549
|
|
|
976
550
|
// src/tokens/svg/misc/DollarSignIcon.tsx
|
|
977
|
-
import { jsx as
|
|
551
|
+
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
978
552
|
|
|
979
553
|
// src/tokens/svg/misc/DropletIcon.tsx
|
|
980
|
-
import { jsx as
|
|
554
|
+
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
981
555
|
|
|
982
556
|
// src/tokens/svg/misc/FeatherIcon.tsx
|
|
983
|
-
import { jsx as
|
|
557
|
+
import { jsx as jsx136, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
984
558
|
|
|
985
559
|
// src/tokens/svg/misc/FlagIcon.tsx
|
|
986
|
-
import { jsx as
|
|
560
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
987
561
|
|
|
988
562
|
// src/tokens/svg/misc/FrownIcon.tsx
|
|
989
|
-
import { jsx as
|
|
563
|
+
import { jsx as jsx138, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
990
564
|
|
|
991
565
|
// src/tokens/svg/misc/GiftIcon.tsx
|
|
992
|
-
import { jsx as
|
|
566
|
+
import { jsx as jsx139, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
993
567
|
|
|
994
568
|
// src/tokens/svg/misc/GitBranchIcon.tsx
|
|
995
|
-
import { jsx as
|
|
569
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
996
570
|
|
|
997
571
|
// src/tokens/svg/misc/GitCommitIcon.tsx
|
|
998
|
-
import { jsx as
|
|
572
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
999
573
|
|
|
1000
574
|
// src/tokens/svg/misc/GitMergeIcon.tsx
|
|
1001
|
-
import { jsx as
|
|
575
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
1002
576
|
|
|
1003
577
|
// src/tokens/svg/misc/GitPullRequestIcon.tsx
|
|
1004
|
-
import { jsx as
|
|
578
|
+
import { jsx as jsx143, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
1005
579
|
|
|
1006
580
|
// src/tokens/svg/misc/GlobeIcon.tsx
|
|
1007
|
-
import { jsx as
|
|
581
|
+
import { jsx as jsx144, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
1008
582
|
|
|
1009
583
|
// src/tokens/svg/misc/HeartIcon.tsx
|
|
1010
|
-
import { jsx as
|
|
584
|
+
import { jsx as jsx145 } from "react/jsx-runtime";
|
|
1011
585
|
|
|
1012
586
|
// src/tokens/svg/misc/HomeIcon.tsx
|
|
1013
|
-
import { jsx as
|
|
587
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
1014
588
|
|
|
1015
589
|
// src/tokens/svg/misc/InboxIcon.tsx
|
|
1016
|
-
import { jsx as
|
|
590
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
1017
591
|
|
|
1018
592
|
// src/tokens/svg/misc/LayersIcon.tsx
|
|
1019
|
-
import { jsx as
|
|
593
|
+
import { jsx as jsx148, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
1020
594
|
|
|
1021
595
|
// src/tokens/svg/misc/LifeBuoyIcon.tsx
|
|
1022
|
-
import { jsx as
|
|
596
|
+
import { jsx as jsx149, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
1023
597
|
|
|
1024
598
|
// src/tokens/svg/misc/MehIcon.tsx
|
|
1025
|
-
import { jsx as
|
|
599
|
+
import { jsx as jsx150, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
1026
600
|
|
|
1027
601
|
// src/tokens/svg/misc/MessageCircleIcon.tsx
|
|
1028
|
-
import { jsx as
|
|
602
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
1029
603
|
|
|
1030
604
|
// src/tokens/svg/misc/MessageSquareIcon.tsx
|
|
1031
|
-
import { jsx as
|
|
605
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
1032
606
|
|
|
1033
607
|
// src/tokens/svg/misc/MoonIcon.tsx
|
|
1034
|
-
import { jsx as
|
|
608
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
1035
609
|
|
|
1036
610
|
// src/tokens/svg/misc/MousePointerIcon.tsx
|
|
1037
|
-
import { jsx as
|
|
611
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
1038
612
|
|
|
1039
613
|
// src/tokens/svg/misc/PaperclipIcon.tsx
|
|
1040
|
-
import { jsx as
|
|
614
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
1041
615
|
|
|
1042
616
|
// src/tokens/svg/misc/PocketIcon.tsx
|
|
1043
|
-
import { jsx as
|
|
617
|
+
import { jsx as jsx156, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
1044
618
|
|
|
1045
619
|
// src/tokens/svg/misc/PowerIcon.tsx
|
|
1046
|
-
import { jsx as
|
|
620
|
+
import { jsx as jsx157, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
1047
621
|
|
|
1048
622
|
// src/tokens/svg/misc/RadioIcon.tsx
|
|
1049
|
-
import { jsx as
|
|
623
|
+
import { jsx as jsx158, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
1050
624
|
|
|
1051
625
|
// src/tokens/svg/misc/ShieldIcon.tsx
|
|
1052
|
-
import { jsx as
|
|
626
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
1053
627
|
|
|
1054
628
|
// src/tokens/svg/misc/ShieldOffIcon.tsx
|
|
1055
|
-
import { jsx as
|
|
629
|
+
import { jsx as jsx160, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
1056
630
|
|
|
1057
631
|
// src/tokens/svg/misc/ShoppingBagIcon.tsx
|
|
1058
|
-
import { jsx as
|
|
632
|
+
import { jsx as jsx161, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
1059
633
|
|
|
1060
634
|
// src/tokens/svg/misc/ShoppingCartIcon.tsx
|
|
1061
|
-
import { jsx as
|
|
635
|
+
import { jsx as jsx162, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
1062
636
|
|
|
1063
637
|
// src/tokens/svg/misc/ShuffleIcon.tsx
|
|
1064
|
-
import { jsx as
|
|
638
|
+
import { jsx as jsx163, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
1065
639
|
|
|
1066
640
|
// src/tokens/svg/misc/SmileIcon.tsx
|
|
1067
|
-
import { jsx as
|
|
641
|
+
import { jsx as jsx164, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
1068
642
|
|
|
1069
643
|
// src/tokens/svg/misc/StarIcon.tsx
|
|
1070
|
-
import { jsx as
|
|
644
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
1071
645
|
|
|
1072
646
|
// src/tokens/svg/misc/SunIcon.tsx
|
|
1073
|
-
import { jsx as
|
|
647
|
+
import { jsx as jsx166, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
1074
648
|
|
|
1075
649
|
// src/tokens/svg/misc/TagIcon.tsx
|
|
1076
|
-
import { jsx as
|
|
650
|
+
import { jsx as jsx167, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
1077
651
|
|
|
1078
652
|
// src/tokens/svg/misc/TargetIcon.tsx
|
|
1079
|
-
import { jsx as
|
|
653
|
+
import { jsx as jsx168, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
1080
654
|
|
|
1081
655
|
// src/tokens/svg/misc/ThermometerIcon.tsx
|
|
1082
|
-
import { jsx as
|
|
656
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
1083
657
|
|
|
1084
658
|
// src/tokens/svg/misc/ThumbsDownIcon.tsx
|
|
1085
|
-
import { jsx as
|
|
659
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
1086
660
|
|
|
1087
661
|
// src/tokens/svg/misc/ThumbsUpIcon.tsx
|
|
1088
|
-
import { jsx as
|
|
662
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
1089
663
|
|
|
1090
664
|
// src/tokens/svg/misc/ToolIcon.tsx
|
|
1091
|
-
import { jsx as
|
|
665
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
1092
666
|
|
|
1093
667
|
// src/tokens/svg/misc/TruckIcon.tsx
|
|
1094
|
-
import { jsx as
|
|
668
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
1095
669
|
|
|
1096
670
|
// src/tokens/svg/misc/UmbrellaIcon.tsx
|
|
1097
|
-
import { jsx as
|
|
671
|
+
import { jsx as jsx174, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
1098
672
|
|
|
1099
673
|
// src/tokens/svg/misc/WindIcon.tsx
|
|
1100
|
-
import { jsx as
|
|
674
|
+
import { jsx as jsx175, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
1101
675
|
|
|
1102
676
|
// src/tokens/svg/misc/ZapIcon.tsx
|
|
1103
|
-
import { jsx as
|
|
677
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
1104
678
|
|
|
1105
679
|
// src/tokens/svg/misc/ZapOffIcon.tsx
|
|
1106
|
-
import { jsx as
|
|
680
|
+
import { jsx as jsx177, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
1107
681
|
|
|
1108
682
|
// src/tokens/svg/Input/CloseEyeIcon.tsx
|
|
1109
|
-
import { jsx as
|
|
1110
|
-
var CloseEyeIcon = () => /* @__PURE__ */
|
|
683
|
+
import { jsx as jsx178, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
684
|
+
var CloseEyeIcon = () => /* @__PURE__ */ jsxs116(
|
|
1111
685
|
"svg",
|
|
1112
686
|
{
|
|
1113
687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1116,7 +690,7 @@ var CloseEyeIcon = () => /* @__PURE__ */ jsxs117(
|
|
|
1116
690
|
viewBox: "0 0 20 20",
|
|
1117
691
|
fill: "none",
|
|
1118
692
|
children: [
|
|
1119
|
-
/* @__PURE__ */
|
|
693
|
+
/* @__PURE__ */ jsx178(
|
|
1120
694
|
"path",
|
|
1121
695
|
{
|
|
1122
696
|
fillRule: "evenodd",
|
|
@@ -1125,7 +699,7 @@ var CloseEyeIcon = () => /* @__PURE__ */ jsxs117(
|
|
|
1125
699
|
fill: "currentColor"
|
|
1126
700
|
}
|
|
1127
701
|
),
|
|
1128
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ jsx178(
|
|
1129
703
|
"path",
|
|
1130
704
|
{
|
|
1131
705
|
d: "M9.91701 2.5008C13.1328 2.5011 15.609 4.33645 17.2344 6.07014C18.0538 6.94422 18.6805 7.81555 19.1016 8.4676C19.3125 8.79427 19.473 9.06857 19.582 9.26252C19.6366 9.35947 19.6784 9.43688 19.707 9.49103C19.7213 9.51797 19.7325 9.53938 19.7402 9.55451C19.744 9.56183 19.7478 9.5677 19.75 9.57209L19.7539 9.5799L19.7901 9.66486C19.8604 9.86248 19.8453 10.0829 19.7451 10.2703C19.2148 11.2625 18.5817 12.1966 17.8574 13.0574C17.5908 13.3743 17.1177 13.4147 16.8008 13.1483C16.4839 12.8816 16.4424 12.4085 16.709 12.0916C17.2798 11.4133 17.7876 10.6845 18.2266 9.91486C18.1327 9.75115 18.0048 9.53442 17.8418 9.28205C17.4558 8.68431 16.8833 7.88875 16.1406 7.0965C14.6413 5.49721 12.5337 4.00013 9.91701 3.99982H9.91505C9.3843 3.99858 8.85471 4.05957 8.33791 4.18049C7.93468 4.27487 7.53105 4.02408 7.43654 3.62092C7.34213 3.21761 7.5928 2.81396 7.99611 2.71955C8.62561 2.57227 9.27051 2.49939 9.91701 2.5008Z",
|
|
@@ -1138,14 +712,14 @@ var CloseEyeIcon = () => /* @__PURE__ */ jsxs117(
|
|
|
1138
712
|
var CloseEyeIcon_default = CloseEyeIcon;
|
|
1139
713
|
|
|
1140
714
|
// src/tokens/svg/Input/EyeIcon.tsx
|
|
1141
|
-
import { jsx as
|
|
715
|
+
import { jsx as jsx179, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
1142
716
|
|
|
1143
717
|
// src/tokens/svg/Input/EyeOffIcon.tsx
|
|
1144
|
-
import { jsx as
|
|
718
|
+
import { jsx as jsx180, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
1145
719
|
|
|
1146
720
|
// src/tokens/svg/Input/OpenEyeIcon.tsx
|
|
1147
|
-
import { jsx as
|
|
1148
|
-
var OpenEyeIcon = () => /* @__PURE__ */
|
|
721
|
+
import { jsx as jsx181, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
722
|
+
var OpenEyeIcon = () => /* @__PURE__ */ jsxs119(
|
|
1149
723
|
"svg",
|
|
1150
724
|
{
|
|
1151
725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1154,7 +728,7 @@ var OpenEyeIcon = () => /* @__PURE__ */ jsxs120(
|
|
|
1154
728
|
viewBox: "0 0 20 20",
|
|
1155
729
|
fill: "none",
|
|
1156
730
|
children: [
|
|
1157
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ jsx181(
|
|
1158
732
|
"path",
|
|
1159
733
|
{
|
|
1160
734
|
fillRule: "evenodd",
|
|
@@ -1163,7 +737,7 @@ var OpenEyeIcon = () => /* @__PURE__ */ jsxs120(
|
|
|
1163
737
|
fill: "currentColor"
|
|
1164
738
|
}
|
|
1165
739
|
),
|
|
1166
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ jsx181(
|
|
1167
741
|
"path",
|
|
1168
742
|
{
|
|
1169
743
|
fillRule: "evenodd",
|
|
@@ -1178,140 +752,140 @@ var OpenEyeIcon = () => /* @__PURE__ */ jsxs120(
|
|
|
1178
752
|
var OpenEyeIcon_default = OpenEyeIcon;
|
|
1179
753
|
|
|
1180
754
|
// src/tokens/svg/navigation/ArrowDownCircleIcon.tsx
|
|
1181
|
-
import { jsx as
|
|
755
|
+
import { jsx as jsx182, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
1182
756
|
|
|
1183
757
|
// src/tokens/svg/navigation/ArrowDownIcon.tsx
|
|
1184
|
-
import { jsx as
|
|
758
|
+
import { jsx as jsx183 } from "react/jsx-runtime";
|
|
1185
759
|
|
|
1186
760
|
// src/tokens/svg/navigation/ArrowDownLeftIcon.tsx
|
|
1187
|
-
import { jsx as
|
|
761
|
+
import { jsx as jsx184 } from "react/jsx-runtime";
|
|
1188
762
|
|
|
1189
763
|
// src/tokens/svg/navigation/ArrowDownRightIcon.tsx
|
|
1190
|
-
import { jsx as
|
|
764
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
1191
765
|
|
|
1192
766
|
// src/tokens/svg/navigation/ArrowLeftCircleIcon.tsx
|
|
1193
|
-
import { jsx as
|
|
767
|
+
import { jsx as jsx186, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
1194
768
|
|
|
1195
769
|
// src/tokens/svg/navigation/ArrowLeftIcon.tsx
|
|
1196
|
-
import { jsx as
|
|
770
|
+
import { jsx as jsx187 } from "react/jsx-runtime";
|
|
1197
771
|
|
|
1198
772
|
// src/tokens/svg/navigation/ArrowRightCircleIcon.tsx
|
|
1199
|
-
import { jsx as
|
|
773
|
+
import { jsx as jsx188, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
1200
774
|
|
|
1201
775
|
// src/tokens/svg/navigation/ArrowRightIcon.tsx
|
|
1202
|
-
import { jsx as
|
|
776
|
+
import { jsx as jsx189 } from "react/jsx-runtime";
|
|
1203
777
|
|
|
1204
778
|
// src/tokens/svg/navigation/ArrowUpCircleIcon.tsx
|
|
1205
|
-
import { jsx as
|
|
779
|
+
import { jsx as jsx190, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
1206
780
|
|
|
1207
781
|
// src/tokens/svg/navigation/ArrowUpIcon.tsx
|
|
1208
|
-
import { jsx as
|
|
782
|
+
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
1209
783
|
|
|
1210
784
|
// src/tokens/svg/navigation/ArrowUpLeftIcon.tsx
|
|
1211
|
-
import { jsx as
|
|
785
|
+
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
1212
786
|
|
|
1213
787
|
// src/tokens/svg/navigation/ArrowUpRightIcon.tsx
|
|
1214
|
-
import { jsx as
|
|
788
|
+
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
1215
789
|
|
|
1216
790
|
// src/tokens/svg/navigation/CompassIcon.tsx
|
|
1217
|
-
import { jsx as
|
|
791
|
+
import { jsx as jsx194, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
1218
792
|
|
|
1219
793
|
// src/tokens/svg/navigation/CornerDownLeftIcon.tsx
|
|
1220
|
-
import { jsx as
|
|
794
|
+
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
1221
795
|
|
|
1222
796
|
// src/tokens/svg/navigation/CornerDownRightIcon.tsx
|
|
1223
|
-
import { jsx as
|
|
797
|
+
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
1224
798
|
|
|
1225
799
|
// src/tokens/svg/navigation/CornerLeftDownIcon.tsx
|
|
1226
|
-
import { jsx as
|
|
800
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
1227
801
|
|
|
1228
802
|
// src/tokens/svg/navigation/CornerLeftUpIcon.tsx
|
|
1229
|
-
import { jsx as
|
|
803
|
+
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
1230
804
|
|
|
1231
805
|
// src/tokens/svg/navigation/CornerRightDownIcon.tsx
|
|
1232
|
-
import { jsx as
|
|
806
|
+
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
1233
807
|
|
|
1234
808
|
// src/tokens/svg/navigation/CornerRightUpIcon.tsx
|
|
1235
|
-
import { jsx as
|
|
809
|
+
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
1236
810
|
|
|
1237
811
|
// src/tokens/svg/navigation/CornerUpLeftIcon.tsx
|
|
1238
|
-
import { jsx as
|
|
812
|
+
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
1239
813
|
|
|
1240
814
|
// src/tokens/svg/navigation/CornerUpRightIcon.tsx
|
|
1241
|
-
import { jsx as
|
|
815
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
1242
816
|
|
|
1243
817
|
// src/tokens/svg/navigation/MapIcon.tsx
|
|
1244
|
-
import { jsx as
|
|
818
|
+
import { jsx as jsx203, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
1245
819
|
|
|
1246
820
|
// src/tokens/svg/navigation/MapPinIcon.tsx
|
|
1247
|
-
import { jsx as
|
|
821
|
+
import { jsx as jsx204, jsxs as jsxs126 } from "react/jsx-runtime";
|
|
1248
822
|
|
|
1249
823
|
// src/tokens/svg/navigation/Navigation2Icon.tsx
|
|
1250
|
-
import { jsx as
|
|
824
|
+
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
1251
825
|
|
|
1252
826
|
// src/tokens/svg/navigation/NavigationIcon.tsx
|
|
1253
|
-
import { jsx as
|
|
827
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
1254
828
|
|
|
1255
829
|
// src/tokens/svg/social/ChromeIcon.tsx
|
|
1256
|
-
import { jsx as
|
|
830
|
+
import { jsx as jsx207, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
1257
831
|
|
|
1258
832
|
// src/tokens/svg/social/CodepenIcon.tsx
|
|
1259
|
-
import { jsx as
|
|
833
|
+
import { jsx as jsx208, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
1260
834
|
|
|
1261
835
|
// src/tokens/svg/social/CodesandboxIcon.tsx
|
|
1262
|
-
import { jsx as
|
|
836
|
+
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
1263
837
|
|
|
1264
838
|
// src/tokens/svg/social/DribbbleIcon.tsx
|
|
1265
|
-
import { jsx as
|
|
839
|
+
import { jsx as jsx210, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
1266
840
|
|
|
1267
841
|
// src/tokens/svg/social/FacebookIcon.tsx
|
|
1268
|
-
import { jsx as
|
|
842
|
+
import { jsx as jsx211 } from "react/jsx-runtime";
|
|
1269
843
|
|
|
1270
844
|
// src/tokens/svg/social/FigmaIcon.tsx
|
|
1271
|
-
import { jsx as
|
|
845
|
+
import { jsx as jsx212 } from "react/jsx-runtime";
|
|
1272
846
|
|
|
1273
847
|
// src/tokens/svg/social/FramerIcon.tsx
|
|
1274
|
-
import { jsx as
|
|
848
|
+
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
1275
849
|
|
|
1276
850
|
// src/tokens/svg/social/GithubIcon.tsx
|
|
1277
|
-
import { jsx as
|
|
851
|
+
import { jsx as jsx214 } from "react/jsx-runtime";
|
|
1278
852
|
|
|
1279
853
|
// src/tokens/svg/social/GitlabIcon.tsx
|
|
1280
|
-
import { jsx as
|
|
854
|
+
import { jsx as jsx215, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
1281
855
|
|
|
1282
856
|
// src/tokens/svg/social/InstagramIcon.tsx
|
|
1283
|
-
import { jsx as
|
|
857
|
+
import { jsx as jsx216, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
1284
858
|
|
|
1285
859
|
// src/tokens/svg/social/LinkedinIcon.tsx
|
|
1286
|
-
import { jsx as
|
|
860
|
+
import { jsx as jsx217, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
1287
861
|
|
|
1288
862
|
// src/tokens/svg/social/RssIcon.tsx
|
|
1289
|
-
import { jsx as
|
|
863
|
+
import { jsx as jsx218, jsxs as jsxs133 } from "react/jsx-runtime";
|
|
1290
864
|
|
|
1291
865
|
// src/tokens/svg/social/SlackIcon.tsx
|
|
1292
|
-
import { jsx as
|
|
866
|
+
import { jsx as jsx219, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
1293
867
|
|
|
1294
868
|
// src/tokens/svg/social/TrelloIcon.tsx
|
|
1295
|
-
import { jsx as
|
|
869
|
+
import { jsx as jsx220, jsxs as jsxs135 } from "react/jsx-runtime";
|
|
1296
870
|
|
|
1297
871
|
// src/tokens/svg/social/TwitchIcon.tsx
|
|
1298
|
-
import { jsx as
|
|
872
|
+
import { jsx as jsx221, jsxs as jsxs136 } from "react/jsx-runtime";
|
|
1299
873
|
|
|
1300
874
|
// src/tokens/svg/social/TwitterIcon.tsx
|
|
1301
|
-
import { jsx as
|
|
875
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
1302
876
|
|
|
1303
877
|
// src/tokens/svg/social/YoutubeIcon.tsx
|
|
1304
|
-
import { jsx as
|
|
878
|
+
import { jsx as jsx223, jsxs as jsxs137 } from "react/jsx-runtime";
|
|
1305
879
|
|
|
1306
880
|
// src/tokens/svg/ui/AtSignIcon.tsx
|
|
1307
|
-
import { jsx as
|
|
881
|
+
import { jsx as jsx224, jsxs as jsxs138 } from "react/jsx-runtime";
|
|
1308
882
|
|
|
1309
883
|
// src/tokens/svg/ui/CheckCircleIcon.tsx
|
|
1310
|
-
import { jsx as
|
|
884
|
+
import { jsx as jsx225, jsxs as jsxs139 } from "react/jsx-runtime";
|
|
1311
885
|
|
|
1312
886
|
// src/tokens/svg/ui/CheckIcon.tsx
|
|
1313
|
-
import { jsx as
|
|
1314
|
-
var CheckIcon = () => /* @__PURE__ */
|
|
887
|
+
import { jsx as jsx226 } from "react/jsx-runtime";
|
|
888
|
+
var CheckIcon = () => /* @__PURE__ */ jsx226(
|
|
1315
889
|
"svg",
|
|
1316
890
|
{
|
|
1317
891
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1319,7 +893,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx229(
|
|
|
1319
893
|
height: "1em",
|
|
1320
894
|
viewBox: "0 0 12 9",
|
|
1321
895
|
fill: "none",
|
|
1322
|
-
children: /* @__PURE__ */
|
|
896
|
+
children: /* @__PURE__ */ jsx226(
|
|
1323
897
|
"path",
|
|
1324
898
|
{
|
|
1325
899
|
d: "M10.842 0.175637C11.0762 -0.0586118 11.4561 -0.0584793 11.6904 0.175637C11.9247 0.409951 11.9247 0.78976 11.6904 1.02407L4.35759 8.35767C4.24516 8.46996 4.09228 8.53338 3.93338 8.53345C3.77449 8.53336 3.62157 8.46994 3.50916 8.35767L0.175563 5.02407C-0.0585904 4.78985 -0.0584518 4.40995 0.175563 4.17564C0.409855 3.94135 0.789681 3.94139 1.024 4.17564L3.93259 7.08423L10.842 0.175637Z",
|
|
@@ -1331,11 +905,11 @@ var CheckIcon = () => /* @__PURE__ */ jsx229(
|
|
|
1331
905
|
var CheckIcon_default = CheckIcon;
|
|
1332
906
|
|
|
1333
907
|
// src/tokens/svg/ui/CheckSquareIcon.tsx
|
|
1334
|
-
import { jsx as
|
|
908
|
+
import { jsx as jsx227, jsxs as jsxs140 } from "react/jsx-runtime";
|
|
1335
909
|
|
|
1336
910
|
// src/tokens/svg/ui/ChevronDownIcon.tsx
|
|
1337
|
-
import { jsx as
|
|
1338
|
-
var ChevronDownIcon = () => /* @__PURE__ */
|
|
911
|
+
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
912
|
+
var ChevronDownIcon = () => /* @__PURE__ */ jsx228(
|
|
1339
913
|
"svg",
|
|
1340
914
|
{
|
|
1341
915
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1343,7 +917,7 @@ var ChevronDownIcon = () => /* @__PURE__ */ jsx231(
|
|
|
1343
917
|
height: "1em",
|
|
1344
918
|
viewBox: "0 0 20 20",
|
|
1345
919
|
fill: "none",
|
|
1346
|
-
children: /* @__PURE__ */
|
|
920
|
+
children: /* @__PURE__ */ jsx228(
|
|
1347
921
|
"path",
|
|
1348
922
|
{
|
|
1349
923
|
d: "M14.4698 6.96967C14.7627 6.67678 15.2374 6.67678 15.5303 6.96967C15.8232 7.26257 15.8232 7.73734 15.5303 8.03022L10.5303 13.0302C10.2375 13.3231 9.76269 13.3231 9.46979 13.0302L4.46979 8.03022C4.1769 7.73732 4.1769 7.26256 4.46979 6.96967C4.76269 6.67678 5.23745 6.67678 5.53034 6.96967L10.0001 11.4394L14.4698 6.96967Z",
|
|
@@ -1355,294 +929,919 @@ var ChevronDownIcon = () => /* @__PURE__ */ jsx231(
|
|
|
1355
929
|
var ChevronDownIcon_default = ChevronDownIcon;
|
|
1356
930
|
|
|
1357
931
|
// src/tokens/svg/ui/ChevronLeftIcon.tsx
|
|
1358
|
-
import { jsx as
|
|
932
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
933
|
+
var ChevronLeftIcon = () => /* @__PURE__ */ jsx229(
|
|
934
|
+
"svg",
|
|
935
|
+
{
|
|
936
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
937
|
+
width: "1em",
|
|
938
|
+
height: "1em",
|
|
939
|
+
viewBox: "0 0 20 20",
|
|
940
|
+
fill: "none",
|
|
941
|
+
children: /* @__PURE__ */ jsx229("path", { d: "M11.9697 4.46978C12.2626 4.17689 12.7373 4.17689 13.0302 4.46978C13.3231 4.76268 13.3231 5.23746 13.0302 5.53033L8.56049 10.0001L13.0302 14.4698C13.3231 14.7627 13.3231 15.2375 13.0302 15.5303C12.7373 15.8232 12.2626 15.8232 11.9697 15.5303L6.96967 10.5303C6.67678 10.2374 6.67678 9.76268 6.96967 9.46978L11.9697 4.46978Z", fill: "currentColor" })
|
|
942
|
+
}
|
|
943
|
+
);
|
|
944
|
+
var ChevronLeftIcon_default = ChevronLeftIcon;
|
|
1359
945
|
|
|
1360
946
|
// src/tokens/svg/ui/ChevronRightIcon.tsx
|
|
1361
|
-
import { jsx as
|
|
947
|
+
import { jsx as jsx230 } from "react/jsx-runtime";
|
|
948
|
+
var ChevronRightIcon = () => /* @__PURE__ */ jsx230(
|
|
949
|
+
"svg",
|
|
950
|
+
{
|
|
951
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
952
|
+
width: "1em",
|
|
953
|
+
height: "1em",
|
|
954
|
+
viewBox: "0 0 20 20",
|
|
955
|
+
fill: "none",
|
|
956
|
+
children: /* @__PURE__ */ jsx230("path", { d: "M6.96967 4.46978C7.26256 4.17689 7.73732 4.17689 8.03022 4.46978L13.0302 9.46978C13.3231 9.76268 13.3231 10.2375 13.0302 10.5303L8.03022 15.5303C7.73734 15.8232 7.26257 15.8232 6.96967 15.5303C6.67678 15.2374 6.67678 14.7627 6.96967 14.4698L11.4394 10.0001L6.96967 5.53033C6.67678 5.23744 6.67678 4.76268 6.96967 4.46978Z", fill: "currentColor" })
|
|
957
|
+
}
|
|
958
|
+
);
|
|
959
|
+
var ChevronRightIcon_default = ChevronRightIcon;
|
|
1362
960
|
|
|
1363
961
|
// src/tokens/svg/ui/ChevronUpIcon.tsx
|
|
1364
|
-
import { jsx as
|
|
962
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
1365
963
|
|
|
1366
964
|
// src/tokens/svg/ui/ChevronsDownIcon.tsx
|
|
1367
|
-
import { jsx as
|
|
965
|
+
import { jsx as jsx232, jsxs as jsxs141 } from "react/jsx-runtime";
|
|
1368
966
|
|
|
1369
967
|
// src/tokens/svg/ui/ChevronsLeftIcon.tsx
|
|
1370
|
-
import { jsx as
|
|
968
|
+
import { jsx as jsx233, jsxs as jsxs142 } from "react/jsx-runtime";
|
|
1371
969
|
|
|
1372
970
|
// src/tokens/svg/ui/ChevronsRightIcon.tsx
|
|
1373
|
-
import { jsx as
|
|
971
|
+
import { jsx as jsx234, jsxs as jsxs143 } from "react/jsx-runtime";
|
|
1374
972
|
|
|
1375
973
|
// src/tokens/svg/ui/ChevronsUpIcon.tsx
|
|
1376
|
-
import { jsx as
|
|
974
|
+
import { jsx as jsx235, jsxs as jsxs144 } from "react/jsx-runtime";
|
|
1377
975
|
|
|
1378
976
|
// src/tokens/svg/ui/CircleIcon.tsx
|
|
1379
|
-
import { jsx as
|
|
977
|
+
import { jsx as jsx236, jsxs as jsxs145 } from "react/jsx-runtime";
|
|
1380
978
|
|
|
1381
979
|
// src/tokens/svg/ui/ColumnsIcon.tsx
|
|
1382
|
-
import { jsx as
|
|
980
|
+
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
1383
981
|
|
|
1384
982
|
// src/tokens/svg/ui/DivideCircleIcon.tsx
|
|
1385
|
-
import { jsx as
|
|
983
|
+
import { jsx as jsx238, jsxs as jsxs146 } from "react/jsx-runtime";
|
|
1386
984
|
|
|
1387
985
|
// src/tokens/svg/ui/DivideIcon.tsx
|
|
1388
|
-
import { jsx as
|
|
986
|
+
import { jsx as jsx239, jsxs as jsxs147 } from "react/jsx-runtime";
|
|
1389
987
|
|
|
1390
988
|
// src/tokens/svg/ui/DivideSquareIcon.tsx
|
|
1391
|
-
import { jsx as
|
|
989
|
+
import { jsx as jsx240, jsxs as jsxs148 } from "react/jsx-runtime";
|
|
1392
990
|
|
|
1393
991
|
// src/tokens/svg/ui/GridIcon.tsx
|
|
1394
|
-
import { jsx as
|
|
992
|
+
import { jsx as jsx241, jsxs as jsxs149 } from "react/jsx-runtime";
|
|
1395
993
|
|
|
1396
994
|
// src/tokens/svg/ui/HashIcon.tsx
|
|
1397
|
-
import { jsx as
|
|
995
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
1398
996
|
|
|
1399
997
|
// src/tokens/svg/ui/HexagonIcon.tsx
|
|
1400
|
-
import { jsx as
|
|
998
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
1401
999
|
|
|
1402
1000
|
// src/tokens/svg/ui/LayoutIcon.tsx
|
|
1403
|
-
import { jsx as
|
|
1001
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
1404
1002
|
|
|
1405
1003
|
// src/tokens/svg/ui/ListIcon.tsx
|
|
1406
|
-
import { jsx as
|
|
1004
|
+
import { jsx as jsx245, jsxs as jsxs150 } from "react/jsx-runtime";
|
|
1407
1005
|
|
|
1408
1006
|
// src/tokens/svg/ui/LoaderIcon.tsx
|
|
1409
|
-
import { jsx as
|
|
1007
|
+
import { jsx as jsx246, jsxs as jsxs151 } from "react/jsx-runtime";
|
|
1410
1008
|
|
|
1411
1009
|
// src/tokens/svg/ui/Maximize2Icon.tsx
|
|
1412
|
-
import { jsx as
|
|
1010
|
+
import { jsx as jsx247, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
1413
1011
|
|
|
1414
1012
|
// src/tokens/svg/ui/MaximizeIcon.tsx
|
|
1415
|
-
import { jsx as
|
|
1013
|
+
import { jsx as jsx248, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
1416
1014
|
|
|
1417
1015
|
// src/tokens/svg/ui/MenuIcon.tsx
|
|
1418
|
-
import { jsx as
|
|
1016
|
+
import { jsx as jsx249, jsxs as jsxs154 } from "react/jsx-runtime";
|
|
1419
1017
|
|
|
1420
1018
|
// src/tokens/svg/ui/Minimize2Icon.tsx
|
|
1421
|
-
import { jsx as
|
|
1019
|
+
import { jsx as jsx250, jsxs as jsxs155 } from "react/jsx-runtime";
|
|
1422
1020
|
|
|
1423
1021
|
// src/tokens/svg/ui/MinimizeIcon.tsx
|
|
1424
|
-
import { jsx as
|
|
1022
|
+
import { jsx as jsx251, jsxs as jsxs156 } from "react/jsx-runtime";
|
|
1425
1023
|
|
|
1426
1024
|
// src/tokens/svg/ui/MinusCircleIcon.tsx
|
|
1427
|
-
import { jsx as
|
|
1025
|
+
import { jsx as jsx252, jsxs as jsxs157 } from "react/jsx-runtime";
|
|
1428
1026
|
|
|
1429
1027
|
// src/tokens/svg/ui/MinusIcon.tsx
|
|
1430
|
-
import { jsx as
|
|
1028
|
+
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
1431
1029
|
|
|
1432
1030
|
// src/tokens/svg/ui/MinusSquareIcon.tsx
|
|
1433
|
-
import { jsx as
|
|
1031
|
+
import { jsx as jsx254, jsxs as jsxs158 } from "react/jsx-runtime";
|
|
1434
1032
|
|
|
1435
1033
|
// src/tokens/svg/ui/MoreHorizontalIcon.tsx
|
|
1436
|
-
import { jsx as
|
|
1034
|
+
import { jsx as jsx255, jsxs as jsxs159 } from "react/jsx-runtime";
|
|
1437
1035
|
|
|
1438
1036
|
// src/tokens/svg/ui/MoreVerticalIcon.tsx
|
|
1439
|
-
import { jsx as
|
|
1037
|
+
import { jsx as jsx256, jsxs as jsxs160 } from "react/jsx-runtime";
|
|
1440
1038
|
|
|
1441
1039
|
// src/tokens/svg/ui/OctagonIcon.tsx
|
|
1442
|
-
import { jsx as
|
|
1040
|
+
import { jsx as jsx257, jsxs as jsxs161 } from "react/jsx-runtime";
|
|
1443
1041
|
|
|
1444
1042
|
// src/tokens/svg/ui/PercentIcon.tsx
|
|
1445
|
-
import { jsx as
|
|
1043
|
+
import { jsx as jsx258, jsxs as jsxs162 } from "react/jsx-runtime";
|
|
1446
1044
|
|
|
1447
1045
|
// src/tokens/svg/ui/PlusCircleIcon.tsx
|
|
1448
|
-
import { jsx as
|
|
1046
|
+
import { jsx as jsx259, jsxs as jsxs163 } from "react/jsx-runtime";
|
|
1449
1047
|
|
|
1450
1048
|
// src/tokens/svg/ui/PlusIcon.tsx
|
|
1451
|
-
import { jsx as
|
|
1049
|
+
import { jsx as jsx260 } from "react/jsx-runtime";
|
|
1452
1050
|
|
|
1453
1051
|
// src/tokens/svg/ui/PlusSquareIcon.tsx
|
|
1454
|
-
import { jsx as
|
|
1052
|
+
import { jsx as jsx261, jsxs as jsxs164 } from "react/jsx-runtime";
|
|
1455
1053
|
|
|
1456
1054
|
// src/tokens/svg/ui/SettingsIcon.tsx
|
|
1457
|
-
import { jsx as
|
|
1055
|
+
import { jsx as jsx262, jsxs as jsxs165 } from "react/jsx-runtime";
|
|
1458
1056
|
|
|
1459
1057
|
// src/tokens/svg/ui/SidebarIcon.tsx
|
|
1460
|
-
import { jsx as
|
|
1058
|
+
import { jsx as jsx263 } from "react/jsx-runtime";
|
|
1461
1059
|
|
|
1462
1060
|
// src/tokens/svg/ui/SlashIcon.tsx
|
|
1463
|
-
import { jsx as
|
|
1061
|
+
import { jsx as jsx264, jsxs as jsxs166 } from "react/jsx-runtime";
|
|
1464
1062
|
|
|
1465
1063
|
// src/tokens/svg/ui/SlidersIcon.tsx
|
|
1466
|
-
import { jsx as
|
|
1064
|
+
import { jsx as jsx265, jsxs as jsxs167 } from "react/jsx-runtime";
|
|
1467
1065
|
|
|
1468
1066
|
// src/tokens/svg/ui/SquareIcon.tsx
|
|
1469
|
-
import { jsx as
|
|
1067
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
1470
1068
|
|
|
1471
1069
|
// src/tokens/svg/ui/ToggleLeftIcon.tsx
|
|
1472
|
-
import { jsx as
|
|
1070
|
+
import { jsx as jsx267, jsxs as jsxs168 } from "react/jsx-runtime";
|
|
1473
1071
|
|
|
1474
1072
|
// src/tokens/svg/ui/ToggleRightIcon.tsx
|
|
1475
|
-
import { jsx as
|
|
1073
|
+
import { jsx as jsx268, jsxs as jsxs169 } from "react/jsx-runtime";
|
|
1476
1074
|
|
|
1477
1075
|
// src/tokens/svg/ui/TriangleIcon.tsx
|
|
1478
|
-
import { jsx as
|
|
1076
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
1479
1077
|
|
|
1480
1078
|
// src/tokens/svg/ui/XCircleIcon.tsx
|
|
1481
|
-
import { jsx as
|
|
1079
|
+
import { jsx as jsx270, jsxs as jsxs170 } from "react/jsx-runtime";
|
|
1482
1080
|
|
|
1483
1081
|
// src/tokens/svg/ui/XIcon.tsx
|
|
1484
|
-
import { jsx as
|
|
1082
|
+
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
1083
|
+
var XIcon = () => /* @__PURE__ */ jsx271(
|
|
1084
|
+
"svg",
|
|
1085
|
+
{
|
|
1086
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1087
|
+
width: "1em",
|
|
1088
|
+
height: "1em",
|
|
1089
|
+
viewBox: "0 0 20 20",
|
|
1090
|
+
fill: "none",
|
|
1091
|
+
children: /* @__PURE__ */ jsx271("path", { d: "M14.4697 4.46979C14.7626 4.1769 15.2373 4.1769 15.5302 4.46979C15.8231 4.76269 15.8231 5.23746 15.5302 5.53034L11.0605 10.0001L15.5302 14.4698C15.8231 14.7627 15.8231 15.2375 15.5302 15.5303C15.2373 15.8232 14.7626 15.8232 14.4697 15.5303L9.99994 11.0606L5.53022 15.5303C5.23734 15.8232 4.76257 15.8232 4.46967 15.5303C4.17678 15.2374 4.17678 14.7627 4.46967 14.4698L8.9394 10.0001L4.46967 5.53034C4.17678 5.23745 4.17678 4.76269 4.46967 4.46979C4.76256 4.1769 5.23732 4.1769 5.53022 4.46979L9.99994 8.93952L14.4697 4.46979Z", fill: "currentColor" })
|
|
1092
|
+
}
|
|
1093
|
+
);
|
|
1094
|
+
var XIcon_default = XIcon;
|
|
1485
1095
|
|
|
1486
1096
|
// src/tokens/svg/ui/XOctagonIcon.tsx
|
|
1487
|
-
import { jsx as
|
|
1097
|
+
import { jsx as jsx272, jsxs as jsxs171 } from "react/jsx-runtime";
|
|
1488
1098
|
|
|
1489
1099
|
// src/tokens/svg/ui/XSquareIcon.tsx
|
|
1490
|
-
import { jsx as
|
|
1100
|
+
import { jsx as jsx273, jsxs as jsxs172 } from "react/jsx-runtime";
|
|
1491
1101
|
|
|
1492
1102
|
// src/tokens/svg/user/GierIcon.tsx
|
|
1493
|
-
import { jsx as
|
|
1103
|
+
import { jsx as jsx274, jsxs as jsxs173 } from "react/jsx-runtime";
|
|
1494
1104
|
|
|
1495
1105
|
// src/tokens/svg/user/KeyIcon.tsx
|
|
1496
|
-
import { jsx as
|
|
1106
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
1497
1107
|
|
|
1498
1108
|
// src/tokens/svg/user/LockIcon.tsx
|
|
1499
|
-
import { jsx as
|
|
1109
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
1500
1110
|
|
|
1501
1111
|
// src/tokens/svg/user/LogInIcon.tsx
|
|
1502
|
-
import { jsx as
|
|
1112
|
+
import { jsx as jsx277, jsxs as jsxs174 } from "react/jsx-runtime";
|
|
1503
1113
|
|
|
1504
1114
|
// src/tokens/svg/user/LogOutIcon.tsx
|
|
1505
|
-
import { jsx as
|
|
1115
|
+
import { jsx as jsx278, jsxs as jsxs175 } from "react/jsx-runtime";
|
|
1506
1116
|
|
|
1507
1117
|
// src/tokens/svg/user/MailIcon.tsx
|
|
1508
|
-
import { jsx as
|
|
1118
|
+
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
1509
1119
|
|
|
1510
1120
|
// src/tokens/svg/user/ProfileIcon.tsx
|
|
1511
|
-
import { jsx as
|
|
1121
|
+
import { jsx as jsx280, jsxs as jsxs176 } from "react/jsx-runtime";
|
|
1512
1122
|
|
|
1513
1123
|
// src/tokens/svg/user/UnlockIcon.tsx
|
|
1514
|
-
import { jsx as
|
|
1124
|
+
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
1515
1125
|
|
|
1516
1126
|
// src/tokens/svg/user/UserCheckIcon.tsx
|
|
1517
|
-
import { jsx as
|
|
1127
|
+
import { jsx as jsx282, jsxs as jsxs177 } from "react/jsx-runtime";
|
|
1518
1128
|
|
|
1519
1129
|
// src/tokens/svg/user/UserIcon.tsx
|
|
1520
|
-
import { jsx as
|
|
1130
|
+
import { jsx as jsx283, jsxs as jsxs178 } from "react/jsx-runtime";
|
|
1521
1131
|
|
|
1522
1132
|
// src/tokens/svg/user/UserMinusIcon.tsx
|
|
1523
|
-
import { jsx as
|
|
1133
|
+
import { jsx as jsx284, jsxs as jsxs179 } from "react/jsx-runtime";
|
|
1134
|
+
|
|
1135
|
+
// src/tokens/svg/user/UserPlusIcon.tsx
|
|
1136
|
+
import { jsx as jsx285, jsxs as jsxs180 } from "react/jsx-runtime";
|
|
1137
|
+
|
|
1138
|
+
// src/tokens/svg/user/UserXIcon.tsx
|
|
1139
|
+
import { jsx as jsx286, jsxs as jsxs181 } from "react/jsx-runtime";
|
|
1140
|
+
|
|
1141
|
+
// src/tokens/svg/user/UsersIcon.tsx
|
|
1142
|
+
import { jsx as jsx287, jsxs as jsxs182 } from "react/jsx-runtime";
|
|
1143
|
+
|
|
1144
|
+
// src/tokens/svg/validation/AlertCircleIcon.tsx
|
|
1145
|
+
import { jsx as jsx288, jsxs as jsxs183 } from "react/jsx-runtime";
|
|
1146
|
+
|
|
1147
|
+
// src/tokens/svg/validation/AlertOctagonIcon.tsx
|
|
1148
|
+
import { jsx as jsx289, jsxs as jsxs184 } from "react/jsx-runtime";
|
|
1149
|
+
|
|
1150
|
+
// src/tokens/svg/validation/AlertTriangleIcon.tsx
|
|
1151
|
+
import { jsx as jsx290, jsxs as jsxs185 } from "react/jsx-runtime";
|
|
1152
|
+
|
|
1153
|
+
// src/tokens/svg/validation/ErrorIcon.tsx
|
|
1154
|
+
import { jsx as jsx291, jsxs as jsxs186 } from "react/jsx-runtime";
|
|
1155
|
+
var ErrorIcon = () => /* @__PURE__ */ jsxs186(
|
|
1156
|
+
"svg",
|
|
1157
|
+
{
|
|
1158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1159
|
+
width: "1em",
|
|
1160
|
+
height: "1em",
|
|
1161
|
+
viewBox: "0 0 16 16",
|
|
1162
|
+
fill: "none",
|
|
1163
|
+
children: [
|
|
1164
|
+
/* @__PURE__ */ jsxs186("g", { clipPath: "url(#clip0_1196_9603)", children: [
|
|
1165
|
+
/* @__PURE__ */ jsx291(
|
|
1166
|
+
"path",
|
|
1167
|
+
{
|
|
1168
|
+
d: "M9.57588 5.57559C9.81019 5.34127 10.19 5.34127 10.4243 5.57559C10.6586 5.8099 10.6586 6.18971 10.4243 6.42402L8.84854 7.9998L10.4243 9.57559C10.6586 9.8099 10.6586 10.1897 10.4243 10.424C10.19 10.6583 9.81019 10.6583 9.57588 10.424L8.0001 8.84824L6.42432 10.424C6.19 10.6583 5.81019 10.6583 5.57588 10.424C5.34156 10.1897 5.34156 9.8099 5.57588 9.57559L7.15166 7.9998L5.57588 6.42402C5.34156 6.18971 5.34156 5.8099 5.57588 5.57559C5.81019 5.34127 6.19 5.34127 6.42432 5.57559L8.0001 7.15137L9.57588 5.57559Z",
|
|
1169
|
+
fill: "currentColor"
|
|
1170
|
+
}
|
|
1171
|
+
),
|
|
1172
|
+
/* @__PURE__ */ jsx291(
|
|
1173
|
+
"path",
|
|
1174
|
+
{
|
|
1175
|
+
fillRule: "evenodd",
|
|
1176
|
+
clipRule: "evenodd",
|
|
1177
|
+
d: "M8.0001 0.733398C12.0131 0.73361 15.2671 3.98679 15.2673 7.9998C15.2672 12.0129 12.0131 15.2668 8.0001 15.267C3.98701 15.2669 0.733016 12.0129 0.73291 7.9998C0.733051 3.98674 3.98704 0.733539 8.0001 0.733398ZM8.0001 1.9334C4.64978 1.93354 1.93383 4.64948 1.93369 7.9998C1.9338 11.3502 4.64975 14.0669 8.0001 14.067C11.3504 14.0668 14.0672 11.3501 14.0673 7.9998C14.0671 4.64953 11.3504 1.93361 8.0001 1.9334Z",
|
|
1178
|
+
fill: "currentColor"
|
|
1179
|
+
}
|
|
1180
|
+
)
|
|
1181
|
+
] }),
|
|
1182
|
+
/* @__PURE__ */ jsx291("defs", { children: /* @__PURE__ */ jsx291("clipPath", { id: "clip0_1196_9603", children: /* @__PURE__ */ jsx291("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1183
|
+
]
|
|
1184
|
+
}
|
|
1185
|
+
);
|
|
1186
|
+
var ErrorIcon_default = ErrorIcon;
|
|
1187
|
+
|
|
1188
|
+
// src/tokens/svg/validation/HelpCircleIcon.tsx
|
|
1189
|
+
import { jsx as jsx292, jsxs as jsxs187 } from "react/jsx-runtime";
|
|
1190
|
+
|
|
1191
|
+
// src/tokens/svg/validation/InfoIcon.tsx
|
|
1192
|
+
import { jsx as jsx293, jsxs as jsxs188 } from "react/jsx-runtime";
|
|
1193
|
+
var InfoIcon = () => /* @__PURE__ */ jsxs188(
|
|
1194
|
+
"svg",
|
|
1195
|
+
{
|
|
1196
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1197
|
+
width: "1em",
|
|
1198
|
+
height: "1em",
|
|
1199
|
+
viewBox: "0 0 16 16",
|
|
1200
|
+
fill: "none",
|
|
1201
|
+
children: [
|
|
1202
|
+
/* @__PURE__ */ jsxs188("g", { clipPath: "url(#clip0_1188_11261)", children: [
|
|
1203
|
+
/* @__PURE__ */ jsx293(
|
|
1204
|
+
"path",
|
|
1205
|
+
{
|
|
1206
|
+
d: "M8.00156 7.39999C8.33293 7.39999 8.60156 7.66862 8.60156 7.99999V10.6664C8.60156 10.9978 8.33293 11.2664 8.00156 11.2664C7.67019 11.2664 7.40156 10.9978 7.40156 10.6664V7.99999C7.40156 7.66862 7.67019 7.39999 8.00156 7.39999Z",
|
|
1207
|
+
fill: "currentColor"
|
|
1208
|
+
}
|
|
1209
|
+
),
|
|
1210
|
+
/* @__PURE__ */ jsx293(
|
|
1211
|
+
"path",
|
|
1212
|
+
{
|
|
1213
|
+
d: "M8.00859 4.73358C8.3398 4.73378 8.60859 5.00233 8.60859 5.33358C8.60849 5.66474 8.33973 5.93338 8.00859 5.93358H8.00156C7.67026 5.93358 7.40167 5.66486 7.40156 5.33358C7.40156 5.00221 7.67019 4.73358 8.00156 4.73358H8.00859Z",
|
|
1214
|
+
fill: "currentColor"
|
|
1215
|
+
}
|
|
1216
|
+
),
|
|
1217
|
+
/* @__PURE__ */ jsx293(
|
|
1218
|
+
"path",
|
|
1219
|
+
{
|
|
1220
|
+
fillRule: "evenodd",
|
|
1221
|
+
clipRule: "evenodd",
|
|
1222
|
+
d: "M8.00156 0.733582C12.0146 0.733793 15.2686 3.98697 15.2688 7.99999C15.2686 12.013 12.0146 15.267 8.00156 15.2672C3.98848 15.267 0.734481 12.0131 0.734375 7.99999C0.734516 3.98693 3.9885 0.733722 8.00156 0.733582ZM8.00156 1.93358C4.65124 1.93372 1.9353 4.64967 1.93516 7.99999C1.93526 11.3503 4.65122 14.067 8.00156 14.0672C11.3518 14.067 14.0686 11.3503 14.0688 7.99999C14.0686 4.64971 11.3518 1.93379 8.00156 1.93358Z",
|
|
1223
|
+
fill: "currentColor"
|
|
1224
|
+
}
|
|
1225
|
+
)
|
|
1226
|
+
] }),
|
|
1227
|
+
/* @__PURE__ */ jsx293("defs", { children: /* @__PURE__ */ jsx293("clipPath", { id: "clip0_1188_11261", children: /* @__PURE__ */ jsx293("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1228
|
+
]
|
|
1229
|
+
}
|
|
1230
|
+
);
|
|
1231
|
+
var InfoIcon_default = InfoIcon;
|
|
1232
|
+
|
|
1233
|
+
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
1234
|
+
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
1235
|
+
var SuccessIcon = () => /* @__PURE__ */ jsx294(
|
|
1236
|
+
"svg",
|
|
1237
|
+
{
|
|
1238
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1239
|
+
width: "1em",
|
|
1240
|
+
height: "1em",
|
|
1241
|
+
viewBox: "0 0 16 16",
|
|
1242
|
+
fill: "none",
|
|
1243
|
+
children: /* @__PURE__ */ jsx294(
|
|
1244
|
+
"path",
|
|
1245
|
+
{
|
|
1246
|
+
d: "M12.9084 3.57597C13.1426 3.34172 13.5225 3.34185 13.7568 3.57597C13.9911 3.81028 13.9911 4.19009 13.7568 4.4244L6.424 11.758C6.31157 11.8703 6.15869 11.9337 5.99978 11.9338C5.8409 11.9337 5.68798 11.8703 5.57556 11.758L2.24197 8.4244C2.00782 8.19018 2.00795 7.81028 2.24197 7.57597C2.47626 7.34167 2.85609 7.34172 3.09041 7.57597L5.999 10.4846L12.9084 3.57597Z",
|
|
1247
|
+
fill: "currentColor"
|
|
1248
|
+
}
|
|
1249
|
+
)
|
|
1250
|
+
}
|
|
1251
|
+
);
|
|
1252
|
+
var SuccessIcon_default = SuccessIcon;
|
|
1253
|
+
|
|
1254
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
1255
|
+
function r(e) {
|
|
1256
|
+
var t, f, n = "";
|
|
1257
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
1258
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
1259
|
+
var o = e.length;
|
|
1260
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
1261
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
1262
|
+
return n;
|
|
1263
|
+
}
|
|
1264
|
+
function clsx() {
|
|
1265
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
1266
|
+
return n;
|
|
1267
|
+
}
|
|
1268
|
+
var clsx_default = clsx;
|
|
1269
|
+
|
|
1270
|
+
// src/components/Accordion/Accordion.tsx
|
|
1271
|
+
import { jsx as jsx295, jsxs as jsxs189 } from "react/jsx-runtime";
|
|
1272
|
+
var AccordionItem = ({ item, isOpen, onToggle }) => {
|
|
1273
|
+
const bodyRef = React.useRef(null);
|
|
1274
|
+
const [height, setHeight] = React.useState(0);
|
|
1275
|
+
React.useEffect(() => {
|
|
1276
|
+
if (bodyRef.current) {
|
|
1277
|
+
setHeight(bodyRef.current.scrollHeight);
|
|
1278
|
+
}
|
|
1279
|
+
}, [isOpen, item.content]);
|
|
1280
|
+
return /* @__PURE__ */ jsxs189("div", { className: clsx_default("accordion-item", { open: isOpen }), children: [
|
|
1281
|
+
/* @__PURE__ */ jsxs189(
|
|
1282
|
+
"button",
|
|
1283
|
+
{
|
|
1284
|
+
className: "accordion-header",
|
|
1285
|
+
onClick: onToggle,
|
|
1286
|
+
"aria-expanded": isOpen,
|
|
1287
|
+
children: [
|
|
1288
|
+
/* @__PURE__ */ jsx295("span", { className: "title", children: item.title }),
|
|
1289
|
+
/* @__PURE__ */ jsx295("span", { className: "chevron", children: /* @__PURE__ */ jsx295(ChevronDownIcon_default, {}) })
|
|
1290
|
+
]
|
|
1291
|
+
}
|
|
1292
|
+
),
|
|
1293
|
+
/* @__PURE__ */ jsx295(
|
|
1294
|
+
"div",
|
|
1295
|
+
{
|
|
1296
|
+
ref: bodyRef,
|
|
1297
|
+
className: "accordion-body",
|
|
1298
|
+
style: { maxHeight: isOpen ? height : 0 },
|
|
1299
|
+
children: /* @__PURE__ */ jsx295("div", { className: "accordion-content", children: item.content })
|
|
1300
|
+
}
|
|
1301
|
+
)
|
|
1302
|
+
] });
|
|
1303
|
+
};
|
|
1304
|
+
var Accordion = (props) => {
|
|
1305
|
+
const { items, multiple = false, defaultActiveKeys = [], className } = props;
|
|
1306
|
+
const [activeKeys, setActiveKeys] = React.useState(
|
|
1307
|
+
new Set(defaultActiveKeys)
|
|
1308
|
+
);
|
|
1309
|
+
const toggle = (key) => {
|
|
1310
|
+
setActiveKeys((prev) => {
|
|
1311
|
+
const next = new Set(multiple ? prev : []);
|
|
1312
|
+
if (prev.has(key)) {
|
|
1313
|
+
next.delete(key);
|
|
1314
|
+
} else {
|
|
1315
|
+
next.add(key);
|
|
1316
|
+
}
|
|
1317
|
+
return next;
|
|
1318
|
+
});
|
|
1319
|
+
};
|
|
1320
|
+
return /* @__PURE__ */ jsx295("div", { className: clsx_default("lib-xplat-accordion", className), children: items.map((item) => /* @__PURE__ */ jsx295(
|
|
1321
|
+
AccordionItem,
|
|
1322
|
+
{
|
|
1323
|
+
item,
|
|
1324
|
+
isOpen: activeKeys.has(item.key),
|
|
1325
|
+
onToggle: () => toggle(item.key)
|
|
1326
|
+
},
|
|
1327
|
+
item.key
|
|
1328
|
+
)) });
|
|
1329
|
+
};
|
|
1330
|
+
Accordion.displayName = "Accordion";
|
|
1331
|
+
var Accordion_default = Accordion;
|
|
1332
|
+
|
|
1333
|
+
// src/components/Alert/Alert.tsx
|
|
1334
|
+
import { jsx as jsx296, jsxs as jsxs190 } from "react/jsx-runtime";
|
|
1335
|
+
var Alert = (props) => {
|
|
1336
|
+
const { type = "info", children, onClose, className } = props;
|
|
1337
|
+
return /* @__PURE__ */ jsxs190(
|
|
1338
|
+
"div",
|
|
1339
|
+
{
|
|
1340
|
+
className: clsx_default("lib-xplat-alert", type, className),
|
|
1341
|
+
role: "alert",
|
|
1342
|
+
children: [
|
|
1343
|
+
/* @__PURE__ */ jsx296("div", { className: "content", children }),
|
|
1344
|
+
onClose && /* @__PURE__ */ jsx296(
|
|
1345
|
+
"button",
|
|
1346
|
+
{
|
|
1347
|
+
className: "close-btn",
|
|
1348
|
+
onClick: onClose,
|
|
1349
|
+
"aria-label": "\uB2EB\uAE30",
|
|
1350
|
+
children: "\xD7"
|
|
1351
|
+
}
|
|
1352
|
+
)
|
|
1353
|
+
]
|
|
1354
|
+
}
|
|
1355
|
+
);
|
|
1356
|
+
};
|
|
1357
|
+
Alert.displayName = "Alert";
|
|
1358
|
+
var Alert_default = Alert;
|
|
1359
|
+
|
|
1360
|
+
// src/tokens/colors.ts
|
|
1361
|
+
var colors = {
|
|
1362
|
+
xplat: {
|
|
1363
|
+
red: {
|
|
1364
|
+
50: "#FFF0F0",
|
|
1365
|
+
100: "#FFDDDE",
|
|
1366
|
+
200: "#FFC1C2",
|
|
1367
|
+
300: "#FF9698",
|
|
1368
|
+
400: "#FF5A5D",
|
|
1369
|
+
500: "#FF272B",
|
|
1370
|
+
600: "#F80409",
|
|
1371
|
+
700: "#D40105",
|
|
1372
|
+
800: "#AE0609",
|
|
1373
|
+
900: "#900C0F"
|
|
1374
|
+
},
|
|
1375
|
+
green: {
|
|
1376
|
+
50: "#E5F6EA",
|
|
1377
|
+
100: "#C1E7CC",
|
|
1378
|
+
200: "#98D8AC",
|
|
1379
|
+
300: "#6CCA8B",
|
|
1380
|
+
400: "#47BE72",
|
|
1381
|
+
500: "#10B259",
|
|
1382
|
+
600: "#00A34F",
|
|
1383
|
+
700: "#009143",
|
|
1384
|
+
800: "#007F38",
|
|
1385
|
+
900: "#006024"
|
|
1386
|
+
},
|
|
1387
|
+
orange: {
|
|
1388
|
+
50: "#FFF8EC",
|
|
1389
|
+
100: "#FFF0D3",
|
|
1390
|
+
200: "#FFDDA5",
|
|
1391
|
+
300: "#FFC46D",
|
|
1392
|
+
400: "#FF9F32",
|
|
1393
|
+
500: "#FF820A",
|
|
1394
|
+
600: "#FF6900",
|
|
1395
|
+
700: "#CC4B02",
|
|
1396
|
+
800: "#A13A0B",
|
|
1397
|
+
900: "#82320C"
|
|
1398
|
+
},
|
|
1399
|
+
yellow: {
|
|
1400
|
+
50: "#FFFDE7",
|
|
1401
|
+
100: "#FFFAC1",
|
|
1402
|
+
200: "#FFF186",
|
|
1403
|
+
300: "#FFE041",
|
|
1404
|
+
400: "#FFCC0D",
|
|
1405
|
+
500: "#F0B100",
|
|
1406
|
+
600: "#D18800",
|
|
1407
|
+
700: "#A66002",
|
|
1408
|
+
800: "#894B0A",
|
|
1409
|
+
900: "#743D0F"
|
|
1410
|
+
},
|
|
1411
|
+
blue: {
|
|
1412
|
+
50: "#F1F4FD",
|
|
1413
|
+
100: "#DFE7FA",
|
|
1414
|
+
200: "#C5D4F8",
|
|
1415
|
+
300: "#9EB8F2",
|
|
1416
|
+
400: "#7093EA",
|
|
1417
|
+
500: "#4D6DE3",
|
|
1418
|
+
600: "#3950D7",
|
|
1419
|
+
700: "#303EC5",
|
|
1420
|
+
800: "#2D35A0",
|
|
1421
|
+
900: "#29317F"
|
|
1422
|
+
},
|
|
1423
|
+
lightblue: {
|
|
1424
|
+
50: "#EEFAFF",
|
|
1425
|
+
100: "#D9F4FF",
|
|
1426
|
+
200: "#BBEDFF",
|
|
1427
|
+
300: "#8DE3FF",
|
|
1428
|
+
400: "#57D0FF",
|
|
1429
|
+
500: "#30B6FF",
|
|
1430
|
+
600: "#1999F7",
|
|
1431
|
+
700: "#1280E3",
|
|
1432
|
+
800: "#1566B8",
|
|
1433
|
+
900: "#175791"
|
|
1434
|
+
},
|
|
1435
|
+
purple: {
|
|
1436
|
+
50: "#FBF6FE",
|
|
1437
|
+
100: "#F5EAFD",
|
|
1438
|
+
200: "#EDD8FC",
|
|
1439
|
+
300: "#E0BAF8",
|
|
1440
|
+
400: "#CD8DF3",
|
|
1441
|
+
500: "#B961EB",
|
|
1442
|
+
600: "#A541DC",
|
|
1443
|
+
700: "#9230C5",
|
|
1444
|
+
800: "#782B9E",
|
|
1445
|
+
900: "#62247F"
|
|
1446
|
+
},
|
|
1447
|
+
pink: {
|
|
1448
|
+
50: "#FFF4FE",
|
|
1449
|
+
100: "#FFE7FD",
|
|
1450
|
+
200: "#FFCFFA",
|
|
1451
|
+
300: "#FEA9F1",
|
|
1452
|
+
400: "#FD75E7",
|
|
1453
|
+
500: "#F553DA",
|
|
1454
|
+
600: "#D821B6",
|
|
1455
|
+
700: "#B31892",
|
|
1456
|
+
800: "#921676",
|
|
1457
|
+
900: "#781761"
|
|
1458
|
+
},
|
|
1459
|
+
neutral: {
|
|
1460
|
+
50: "#FAFAFA",
|
|
1461
|
+
100: "#F5F5F5",
|
|
1462
|
+
200: "#E5E5E5",
|
|
1463
|
+
300: "#D4D4D4",
|
|
1464
|
+
400: "#A1A1A1",
|
|
1465
|
+
500: "#737373",
|
|
1466
|
+
600: "#525252",
|
|
1467
|
+
700: "#404040",
|
|
1468
|
+
800: "#262626",
|
|
1469
|
+
900: "#171717"
|
|
1470
|
+
},
|
|
1471
|
+
black: "#000000",
|
|
1472
|
+
white: "#FFFFFF"
|
|
1473
|
+
},
|
|
1474
|
+
test: {
|
|
1475
|
+
default: "#ffffff"
|
|
1476
|
+
}
|
|
1477
|
+
};
|
|
1524
1478
|
|
|
1525
|
-
// src/
|
|
1526
|
-
|
|
1479
|
+
// src/util/getColor.ts
|
|
1480
|
+
var getColorClass = (namespace, palette, shade) => {
|
|
1481
|
+
const namespaceMap = colors[namespace];
|
|
1482
|
+
const paletteMap = namespaceMap[palette];
|
|
1483
|
+
const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
|
|
1484
|
+
return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
|
|
1485
|
+
};
|
|
1527
1486
|
|
|
1528
|
-
// src/
|
|
1529
|
-
import { jsx as
|
|
1487
|
+
// src/components/Avatar/Avatar.tsx
|
|
1488
|
+
import { jsx as jsx297 } from "react/jsx-runtime";
|
|
1489
|
+
var Avatar = (props) => {
|
|
1490
|
+
const {
|
|
1491
|
+
src,
|
|
1492
|
+
alt,
|
|
1493
|
+
name,
|
|
1494
|
+
size = "md",
|
|
1495
|
+
colorNamespace = "xplat",
|
|
1496
|
+
color = "blue",
|
|
1497
|
+
colorDepth,
|
|
1498
|
+
className
|
|
1499
|
+
} = props;
|
|
1500
|
+
const colorClass = getColorClass(
|
|
1501
|
+
colorNamespace,
|
|
1502
|
+
color,
|
|
1503
|
+
colorDepth ?? 500
|
|
1504
|
+
);
|
|
1505
|
+
const initials = name ? name.split(" ").map((s) => s[0]).join("").slice(0, 2).toUpperCase() : "";
|
|
1506
|
+
return /* @__PURE__ */ jsx297("div", { className: clsx_default("lib-xplat-avatar", size, className), children: src ? /* @__PURE__ */ jsx297("img", { src, alt: alt || name || "avatar" }) : /* @__PURE__ */ jsx297("div", { className: clsx_default("fallback", colorClass), children: initials || /* @__PURE__ */ jsx297("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx297("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) }) }) });
|
|
1507
|
+
};
|
|
1508
|
+
Avatar.displayName = "Avatar";
|
|
1509
|
+
var Avatar_default = Avatar;
|
|
1530
1510
|
|
|
1531
|
-
// src/
|
|
1532
|
-
import { jsx as
|
|
1511
|
+
// src/components/Badge/Badge.tsx
|
|
1512
|
+
import { jsx as jsx298, jsxs as jsxs191 } from "react/jsx-runtime";
|
|
1513
|
+
var Badge = (props) => {
|
|
1514
|
+
const {
|
|
1515
|
+
children,
|
|
1516
|
+
count,
|
|
1517
|
+
maxCount = 99,
|
|
1518
|
+
dot = false,
|
|
1519
|
+
colorNamespace = "xplat",
|
|
1520
|
+
color = "red",
|
|
1521
|
+
colorDepth,
|
|
1522
|
+
className
|
|
1523
|
+
} = props;
|
|
1524
|
+
const colorClass = getColorClass(
|
|
1525
|
+
colorNamespace,
|
|
1526
|
+
color,
|
|
1527
|
+
colorDepth ?? 500
|
|
1528
|
+
);
|
|
1529
|
+
const showBadge = dot || count !== void 0 && count > 0;
|
|
1530
|
+
const displayCount = count !== void 0 && count > maxCount ? `${maxCount}+` : count;
|
|
1531
|
+
return /* @__PURE__ */ jsxs191("div", { className: clsx_default("lib-xplat-badge", className), children: [
|
|
1532
|
+
children,
|
|
1533
|
+
showBadge && /* @__PURE__ */ jsx298("span", { className: clsx_default("badge-indicator", colorClass, { dot }), children: !dot && displayCount })
|
|
1534
|
+
] });
|
|
1535
|
+
};
|
|
1536
|
+
Badge.displayName = "Badge";
|
|
1537
|
+
var Badge_default = Badge;
|
|
1538
|
+
|
|
1539
|
+
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
1540
|
+
import { jsx as jsx299, jsxs as jsxs192 } from "react/jsx-runtime";
|
|
1541
|
+
var Breadcrumb = (props) => {
|
|
1542
|
+
const { items, separator = "/", className } = props;
|
|
1543
|
+
return /* @__PURE__ */ jsx299("nav", { className: clsx_default("lib-xplat-breadcrumb", className), "aria-label": "\uACBD\uB85C", children: /* @__PURE__ */ jsx299("ol", { children: items.map((item, index) => {
|
|
1544
|
+
const isLast = index === items.length - 1;
|
|
1545
|
+
return /* @__PURE__ */ jsxs192("li", { children: [
|
|
1546
|
+
isLast ? /* @__PURE__ */ jsx299("span", { className: "current", "aria-current": "page", children: item.label }) : item.href ? /* @__PURE__ */ jsx299("a", { href: item.href, className: "link", children: item.label }) : /* @__PURE__ */ jsx299("button", { className: "link", onClick: item.onClick, children: item.label }),
|
|
1547
|
+
!isLast && /* @__PURE__ */ jsx299("span", { className: "separator", children: separator })
|
|
1548
|
+
] }, index);
|
|
1549
|
+
}) }) });
|
|
1550
|
+
};
|
|
1551
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
1552
|
+
var Breadcrumb_default = Breadcrumb;
|
|
1533
1553
|
|
|
1534
|
-
// src/
|
|
1535
|
-
import { jsx as
|
|
1554
|
+
// src/components/Button/Button.tsx
|
|
1555
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
1556
|
+
var Button = (props) => {
|
|
1557
|
+
const {
|
|
1558
|
+
children,
|
|
1559
|
+
type = "primary",
|
|
1560
|
+
colorNamespace = "xplat",
|
|
1561
|
+
color = "black",
|
|
1562
|
+
colorDepth,
|
|
1563
|
+
disabled,
|
|
1564
|
+
className,
|
|
1565
|
+
...rest
|
|
1566
|
+
} = props;
|
|
1567
|
+
const colorClass = getColorClass(
|
|
1568
|
+
colorNamespace,
|
|
1569
|
+
color,
|
|
1570
|
+
colorDepth ?? 500
|
|
1571
|
+
);
|
|
1572
|
+
return /* @__PURE__ */ jsx300(
|
|
1573
|
+
"button",
|
|
1574
|
+
{
|
|
1575
|
+
className: clsx_default("lib-xplat-button", type, colorClass, className),
|
|
1576
|
+
disabled,
|
|
1577
|
+
...rest,
|
|
1578
|
+
children
|
|
1579
|
+
}
|
|
1580
|
+
);
|
|
1581
|
+
};
|
|
1582
|
+
Button.displayName = "Button";
|
|
1583
|
+
var Button_default = Button;
|
|
1536
1584
|
|
|
1537
|
-
// src/
|
|
1538
|
-
import { jsx as
|
|
1585
|
+
// src/components/Card/Card.tsx
|
|
1586
|
+
import { jsx as jsx301, jsxs as jsxs193 } from "react/jsx-runtime";
|
|
1587
|
+
var Card = ({ children, title, className }) => {
|
|
1588
|
+
return /* @__PURE__ */ jsxs193("div", { className: clsx_default("lib-xplat-card", className), children: [
|
|
1589
|
+
title && /* @__PURE__ */ jsx301("div", { className: "title", children: title }),
|
|
1590
|
+
/* @__PURE__ */ jsx301("div", { className: "content", children })
|
|
1591
|
+
] });
|
|
1592
|
+
};
|
|
1593
|
+
Card.displayName = "Card";
|
|
1594
|
+
var Card_default = Card;
|
|
1539
1595
|
|
|
1540
|
-
// src/
|
|
1541
|
-
import
|
|
1596
|
+
// src/components/Chart/Chart.tsx
|
|
1597
|
+
import React2 from "react";
|
|
1598
|
+
import {
|
|
1599
|
+
ArcElement,
|
|
1600
|
+
BarElement,
|
|
1601
|
+
CategoryScale,
|
|
1602
|
+
Chart as ChartJS,
|
|
1603
|
+
Legend,
|
|
1604
|
+
LinearScale,
|
|
1605
|
+
LineElement,
|
|
1606
|
+
PointElement,
|
|
1607
|
+
Title,
|
|
1608
|
+
Tooltip
|
|
1609
|
+
} from "chart.js";
|
|
1610
|
+
import ChartDataLabels from "chartjs-plugin-datalabels";
|
|
1611
|
+
import { Bar, Doughnut, Line, Pie } from "react-chartjs-2";
|
|
1542
1612
|
|
|
1543
|
-
// src/
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
]
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1613
|
+
// src/components/Chart/token/colorSet.ts
|
|
1614
|
+
var presets = [
|
|
1615
|
+
[
|
|
1616
|
+
colors.xplat.red[100],
|
|
1617
|
+
colors.xplat.red[200],
|
|
1618
|
+
colors.xplat.red[300],
|
|
1619
|
+
colors.xplat.red[400],
|
|
1620
|
+
colors.xplat.red[500],
|
|
1621
|
+
colors.xplat.red[600]
|
|
1622
|
+
],
|
|
1623
|
+
[
|
|
1624
|
+
colors.xplat.orange[100],
|
|
1625
|
+
colors.xplat.orange[200],
|
|
1626
|
+
colors.xplat.orange[300],
|
|
1627
|
+
colors.xplat.orange[400],
|
|
1628
|
+
colors.xplat.orange[500],
|
|
1629
|
+
colors.xplat.orange[600]
|
|
1630
|
+
],
|
|
1631
|
+
[
|
|
1632
|
+
colors.xplat.yellow[100],
|
|
1633
|
+
colors.xplat.yellow[200],
|
|
1634
|
+
colors.xplat.yellow[300],
|
|
1635
|
+
colors.xplat.yellow[400],
|
|
1636
|
+
colors.xplat.yellow[500],
|
|
1637
|
+
colors.xplat.yellow[600]
|
|
1638
|
+
],
|
|
1639
|
+
[
|
|
1640
|
+
colors.xplat.green[100],
|
|
1641
|
+
colors.xplat.green[200],
|
|
1642
|
+
colors.xplat.green[300],
|
|
1643
|
+
colors.xplat.green[400],
|
|
1644
|
+
colors.xplat.green[500],
|
|
1645
|
+
colors.xplat.green[600]
|
|
1646
|
+
],
|
|
1647
|
+
[
|
|
1648
|
+
colors.xplat.blue[100],
|
|
1649
|
+
colors.xplat.blue[200],
|
|
1650
|
+
colors.xplat.blue[300],
|
|
1651
|
+
colors.xplat.blue[400],
|
|
1652
|
+
colors.xplat.blue[500],
|
|
1653
|
+
colors.xplat.blue[600]
|
|
1654
|
+
],
|
|
1655
|
+
[
|
|
1656
|
+
colors.xplat.lightblue[100],
|
|
1657
|
+
colors.xplat.lightblue[200],
|
|
1658
|
+
colors.xplat.lightblue[300],
|
|
1659
|
+
colors.xplat.lightblue[400],
|
|
1660
|
+
colors.xplat.lightblue[500],
|
|
1661
|
+
colors.xplat.lightblue[600]
|
|
1662
|
+
],
|
|
1663
|
+
[
|
|
1664
|
+
colors.xplat.purple[100],
|
|
1665
|
+
colors.xplat.purple[200],
|
|
1666
|
+
colors.xplat.purple[300],
|
|
1667
|
+
colors.xplat.purple[400],
|
|
1668
|
+
colors.xplat.purple[500],
|
|
1669
|
+
colors.xplat.purple[600]
|
|
1670
|
+
],
|
|
1671
|
+
[
|
|
1672
|
+
colors.xplat.pink[100],
|
|
1673
|
+
colors.xplat.pink[200],
|
|
1674
|
+
colors.xplat.pink[300],
|
|
1675
|
+
colors.xplat.pink[400],
|
|
1676
|
+
colors.xplat.pink[500],
|
|
1677
|
+
colors.xplat.pink[600]
|
|
1678
|
+
],
|
|
1679
|
+
[
|
|
1680
|
+
colors.xplat.orange[300],
|
|
1681
|
+
colors.xplat.red[300],
|
|
1682
|
+
colors.xplat.yellow[300],
|
|
1683
|
+
colors.xplat.green[300],
|
|
1684
|
+
colors.xplat.blue[300],
|
|
1685
|
+
colors.xplat.lightblue[300]
|
|
1686
|
+
],
|
|
1687
|
+
[
|
|
1688
|
+
colors.xplat.orange[400],
|
|
1689
|
+
colors.xplat.red[400],
|
|
1690
|
+
colors.xplat.yellow[400],
|
|
1691
|
+
colors.xplat.green[400],
|
|
1692
|
+
colors.xplat.blue[400],
|
|
1693
|
+
colors.xplat.lightblue[400]
|
|
1694
|
+
],
|
|
1695
|
+
[
|
|
1696
|
+
colors.xplat.orange[500],
|
|
1697
|
+
colors.xplat.red[500],
|
|
1698
|
+
colors.xplat.yellow[500],
|
|
1699
|
+
colors.xplat.green[500],
|
|
1700
|
+
colors.xplat.blue[500],
|
|
1701
|
+
colors.xplat.lightblue[500]
|
|
1702
|
+
]
|
|
1703
|
+
];
|
|
1704
|
+
var colorPresets = {
|
|
1705
|
+
line: [
|
|
1706
|
+
presets[0],
|
|
1707
|
+
presets[1],
|
|
1708
|
+
presets[2],
|
|
1709
|
+
presets[3],
|
|
1710
|
+
presets[4],
|
|
1711
|
+
presets[5],
|
|
1712
|
+
presets[6],
|
|
1713
|
+
presets[7]
|
|
1714
|
+
],
|
|
1715
|
+
bar: [
|
|
1716
|
+
presets[0],
|
|
1717
|
+
presets[1],
|
|
1718
|
+
presets[2],
|
|
1719
|
+
presets[3],
|
|
1720
|
+
presets[4],
|
|
1721
|
+
presets[5],
|
|
1722
|
+
presets[6],
|
|
1723
|
+
presets[7]
|
|
1724
|
+
],
|
|
1725
|
+
doughnut: [presets[8], presets[9], presets[10]],
|
|
1726
|
+
pie: [presets[8], presets[9], presets[10]]
|
|
1727
|
+
};
|
|
1577
1728
|
|
|
1578
|
-
// src/
|
|
1579
|
-
|
|
1729
|
+
// src/components/Chart/util.ts
|
|
1730
|
+
var getChartColorPreset = (type) => {
|
|
1731
|
+
const index = Math.floor(Math.random() * colorPresets[type].length);
|
|
1732
|
+
return colorPresets[type][index];
|
|
1733
|
+
};
|
|
1734
|
+
var getIndexColorByPreset = (preset, index) => {
|
|
1735
|
+
const idx = index % preset.length;
|
|
1736
|
+
return preset[idx];
|
|
1737
|
+
};
|
|
1580
1738
|
|
|
1581
|
-
// src/
|
|
1582
|
-
import { jsx as
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
"path",
|
|
1595
|
-
{
|
|
1596
|
-
d: "M8.00156 7.39999C8.33293 7.39999 8.60156 7.66862 8.60156 7.99999V10.6664C8.60156 10.9978 8.33293 11.2664 8.00156 11.2664C7.67019 11.2664 7.40156 10.9978 7.40156 10.6664V7.99999C7.40156 7.66862 7.67019 7.39999 8.00156 7.39999Z",
|
|
1597
|
-
fill: "currentColor"
|
|
1598
|
-
}
|
|
1599
|
-
),
|
|
1600
|
-
/* @__PURE__ */ jsx296(
|
|
1601
|
-
"path",
|
|
1602
|
-
{
|
|
1603
|
-
d: "M8.00859 4.73358C8.3398 4.73378 8.60859 5.00233 8.60859 5.33358C8.60849 5.66474 8.33973 5.93338 8.00859 5.93358H8.00156C7.67026 5.93358 7.40167 5.66486 7.40156 5.33358C7.40156 5.00221 7.67019 4.73358 8.00156 4.73358H8.00859Z",
|
|
1604
|
-
fill: "currentColor"
|
|
1605
|
-
}
|
|
1606
|
-
),
|
|
1607
|
-
/* @__PURE__ */ jsx296(
|
|
1608
|
-
"path",
|
|
1609
|
-
{
|
|
1610
|
-
fillRule: "evenodd",
|
|
1611
|
-
clipRule: "evenodd",
|
|
1612
|
-
d: "M8.00156 0.733582C12.0146 0.733793 15.2686 3.98697 15.2688 7.99999C15.2686 12.013 12.0146 15.267 8.00156 15.2672C3.98848 15.267 0.734481 12.0131 0.734375 7.99999C0.734516 3.98693 3.9885 0.733722 8.00156 0.733582ZM8.00156 1.93358C4.65124 1.93372 1.9353 4.64967 1.93516 7.99999C1.93526 11.3503 4.65122 14.067 8.00156 14.0672C11.3518 14.067 14.0686 11.3503 14.0688 7.99999C14.0686 4.64971 11.3518 1.93379 8.00156 1.93358Z",
|
|
1613
|
-
fill: "currentColor"
|
|
1614
|
-
}
|
|
1615
|
-
)
|
|
1616
|
-
] }),
|
|
1617
|
-
/* @__PURE__ */ jsx296("defs", { children: /* @__PURE__ */ jsx296("clipPath", { id: "clip0_1188_11261", children: /* @__PURE__ */ jsx296("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1618
|
-
]
|
|
1619
|
-
}
|
|
1739
|
+
// src/components/Chart/Chart.tsx
|
|
1740
|
+
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
1741
|
+
ChartJS.register(
|
|
1742
|
+
CategoryScale,
|
|
1743
|
+
LinearScale,
|
|
1744
|
+
PointElement,
|
|
1745
|
+
LineElement,
|
|
1746
|
+
BarElement,
|
|
1747
|
+
ArcElement,
|
|
1748
|
+
Title,
|
|
1749
|
+
Tooltip,
|
|
1750
|
+
Legend,
|
|
1751
|
+
ChartDataLabels
|
|
1620
1752
|
);
|
|
1621
|
-
var
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1753
|
+
var Chart = (props) => {
|
|
1754
|
+
const { type, data, labels } = props;
|
|
1755
|
+
const chartInstanceRef = React2.useRef(null);
|
|
1756
|
+
const containerRef = React2.useRef(null);
|
|
1757
|
+
const chartRef = React2.useCallback((instance) => {
|
|
1758
|
+
chartInstanceRef.current = instance ?? null;
|
|
1759
|
+
}, []);
|
|
1760
|
+
const datasets = React2.useMemo(() => {
|
|
1761
|
+
const pallette = getChartColorPreset(type);
|
|
1762
|
+
return Object.entries(data).map(([key, values], index) => {
|
|
1763
|
+
const uniqueColors = getIndexColorByPreset(pallette, index);
|
|
1764
|
+
if (type === "pie" || type === "doughnut") {
|
|
1765
|
+
return {
|
|
1766
|
+
label: key,
|
|
1767
|
+
data: values,
|
|
1768
|
+
backgroundColor: uniqueColors
|
|
1769
|
+
};
|
|
1638
1770
|
}
|
|
1639
|
-
|
|
1771
|
+
return {
|
|
1772
|
+
label: key,
|
|
1773
|
+
data: values,
|
|
1774
|
+
backgroundColor: uniqueColors,
|
|
1775
|
+
borderColor: uniqueColors,
|
|
1776
|
+
maxBarThickness: 32
|
|
1777
|
+
};
|
|
1778
|
+
});
|
|
1779
|
+
}, [data, type]);
|
|
1780
|
+
const chartData = {
|
|
1781
|
+
labels,
|
|
1782
|
+
datasets
|
|
1783
|
+
};
|
|
1784
|
+
const options = {
|
|
1785
|
+
plugins: {
|
|
1786
|
+
legend: { display: false },
|
|
1787
|
+
datalabels: { display: false },
|
|
1788
|
+
tooltip: { enabled: true }
|
|
1789
|
+
}
|
|
1790
|
+
};
|
|
1791
|
+
if (type === "line" || type === "bar") {
|
|
1792
|
+
options.scales = {
|
|
1793
|
+
y: {
|
|
1794
|
+
beginAtZero: true,
|
|
1795
|
+
drawBorder: false,
|
|
1796
|
+
suggestedMax: Math.max(...Object.values(data).flat()) * 1.2,
|
|
1797
|
+
ticks: {
|
|
1798
|
+
maxTicksLimit: 7
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
x: {
|
|
1802
|
+
grid: { display: false },
|
|
1803
|
+
ticks: { display: false }
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1640
1806
|
}
|
|
1641
|
-
)
|
|
1642
|
-
|
|
1807
|
+
if (type === "pie" || type === "doughnut") {
|
|
1808
|
+
options.plugins.datalabels = {
|
|
1809
|
+
color: colors.xplat.white,
|
|
1810
|
+
font: { weight: "bold" },
|
|
1811
|
+
formatter: (value) => `${value}`
|
|
1812
|
+
};
|
|
1813
|
+
}
|
|
1814
|
+
const renderChart = React2.useMemo(() => {
|
|
1815
|
+
switch (type) {
|
|
1816
|
+
case "line":
|
|
1817
|
+
return /* @__PURE__ */ jsx302(Line, { ref: chartRef, data: chartData, options });
|
|
1818
|
+
case "bar":
|
|
1819
|
+
return /* @__PURE__ */ jsx302(Bar, { ref: chartRef, data: chartData, options });
|
|
1820
|
+
case "pie":
|
|
1821
|
+
return /* @__PURE__ */ jsx302(Pie, { ref: chartRef, data: chartData, options });
|
|
1822
|
+
case "doughnut":
|
|
1823
|
+
return /* @__PURE__ */ jsx302(Doughnut, { ref: chartRef, data: chartData, options });
|
|
1824
|
+
default:
|
|
1825
|
+
return null;
|
|
1826
|
+
}
|
|
1827
|
+
}, [chartData, options, type]);
|
|
1828
|
+
React2.useEffect(() => {
|
|
1829
|
+
if (!containerRef.current || !chartInstanceRef.current) return;
|
|
1830
|
+
const observer = new ResizeObserver(() => {
|
|
1831
|
+
requestAnimationFrame(() => {
|
|
1832
|
+
chartInstanceRef.current?.resize();
|
|
1833
|
+
});
|
|
1834
|
+
});
|
|
1835
|
+
observer.observe(containerRef.current);
|
|
1836
|
+
return () => observer.disconnect();
|
|
1837
|
+
}, []);
|
|
1838
|
+
return /* @__PURE__ */ jsx302("div", { className: "lib-xplat-chart", ref: containerRef, children: renderChart });
|
|
1839
|
+
};
|
|
1840
|
+
Chart.displayName = "Chart";
|
|
1841
|
+
var Chart_default = Chart;
|
|
1643
1842
|
|
|
1644
1843
|
// src/components/CheckBox/CheckBox.tsx
|
|
1645
|
-
import { jsx as
|
|
1844
|
+
import { jsx as jsx303, jsxs as jsxs194 } from "react/jsx-runtime";
|
|
1646
1845
|
var CheckBox = (props) => {
|
|
1647
1846
|
const {
|
|
1648
1847
|
colorNamespace = "xplat",
|
|
@@ -1667,8 +1866,8 @@ var CheckBox = (props) => {
|
|
|
1667
1866
|
const checkedClasses = `checked ${mainColor}`;
|
|
1668
1867
|
const disabledClasses = "disabled";
|
|
1669
1868
|
const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
|
|
1670
|
-
return /* @__PURE__ */
|
|
1671
|
-
/* @__PURE__ */
|
|
1869
|
+
return /* @__PURE__ */ jsxs194("label", { className: clsx_default("lib-xplat-checkbox", className), children: [
|
|
1870
|
+
/* @__PURE__ */ jsx303(
|
|
1672
1871
|
"input",
|
|
1673
1872
|
{
|
|
1674
1873
|
type: "checkbox",
|
|
@@ -1678,15 +1877,15 @@ var CheckBox = (props) => {
|
|
|
1678
1877
|
...rest
|
|
1679
1878
|
}
|
|
1680
1879
|
),
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
label && /* @__PURE__ */
|
|
1880
|
+
/* @__PURE__ */ jsx303("span", { className: clsx_default("checkbox", boxClasses), children: /* @__PURE__ */ jsx303("span", { className: clsx_default("check-icon", { visible: checked }), children: /* @__PURE__ */ jsx303(CheckIcon_default, {}) }) }),
|
|
1881
|
+
label && /* @__PURE__ */ jsx303("span", { className: "label", children: label })
|
|
1683
1882
|
] });
|
|
1684
1883
|
};
|
|
1685
1884
|
CheckBox.displayName = "CheckBox";
|
|
1686
1885
|
var CheckBox_default = CheckBox;
|
|
1687
1886
|
|
|
1688
1887
|
// src/components/Chip/Chip.tsx
|
|
1689
|
-
import { jsx as
|
|
1888
|
+
import { jsx as jsx304 } from "react/jsx-runtime";
|
|
1690
1889
|
var Chip = (props) => {
|
|
1691
1890
|
const {
|
|
1692
1891
|
children,
|
|
@@ -1701,29 +1900,29 @@ var Chip = (props) => {
|
|
|
1701
1900
|
color,
|
|
1702
1901
|
colorDepth ?? 500
|
|
1703
1902
|
);
|
|
1704
|
-
return /* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ jsx304("div", { className: clsx_default("lib-xplat-chip", type, colorClass, className), children });
|
|
1705
1904
|
};
|
|
1706
1905
|
Chip.displayName = "Chip";
|
|
1707
1906
|
var Chip_default = Chip;
|
|
1708
1907
|
|
|
1709
1908
|
// src/components/DatePicker/InputDatePicker/index.tsx
|
|
1710
|
-
import
|
|
1909
|
+
import React5 from "react";
|
|
1711
1910
|
|
|
1712
1911
|
// src/components/Input/Input.tsx
|
|
1713
|
-
import
|
|
1912
|
+
import React3 from "react";
|
|
1714
1913
|
|
|
1715
1914
|
// src/components/Input/InputValidations.tsx
|
|
1716
|
-
import { jsx as
|
|
1915
|
+
import { jsx as jsx305, jsxs as jsxs195 } from "react/jsx-runtime";
|
|
1717
1916
|
var InputValidations = (props) => {
|
|
1718
1917
|
const { message, status = "default" } = props;
|
|
1719
|
-
return /* @__PURE__ */
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
status === "default" && /* @__PURE__ */
|
|
1722
|
-
status === "success" && /* @__PURE__ */
|
|
1723
|
-
status === "warning" && /* @__PURE__ */
|
|
1724
|
-
status === "error" && /* @__PURE__ */
|
|
1918
|
+
return /* @__PURE__ */ jsxs195("div", { className: clsx_default("lib-xplat-input-validation", status), children: [
|
|
1919
|
+
/* @__PURE__ */ jsxs195("div", { className: "icon", children: [
|
|
1920
|
+
status === "default" && /* @__PURE__ */ jsx305(InfoIcon_default, {}),
|
|
1921
|
+
status === "success" && /* @__PURE__ */ jsx305(SuccessIcon_default, {}),
|
|
1922
|
+
status === "warning" && /* @__PURE__ */ jsx305(InfoIcon_default, {}),
|
|
1923
|
+
status === "error" && /* @__PURE__ */ jsx305(ErrorIcon_default, {})
|
|
1725
1924
|
] }),
|
|
1726
|
-
/* @__PURE__ */
|
|
1925
|
+
/* @__PURE__ */ jsx305("div", { className: "message", children: message })
|
|
1727
1926
|
] });
|
|
1728
1927
|
};
|
|
1729
1928
|
InputValidations.displayName = "InputValidations";
|
|
@@ -1764,7 +1963,7 @@ var handleTelBackspace = (prevValue, currValue) => {
|
|
|
1764
1963
|
};
|
|
1765
1964
|
|
|
1766
1965
|
// src/components/Input/Input.tsx
|
|
1767
|
-
import { jsx as
|
|
1966
|
+
import { jsx as jsx306, jsxs as jsxs196 } from "react/jsx-runtime";
|
|
1768
1967
|
import { createElement } from "react";
|
|
1769
1968
|
var formatValue = (type, value) => {
|
|
1770
1969
|
if (value === null || value === void 0) return "";
|
|
@@ -1813,7 +2012,7 @@ var parseValue = (type, value) => {
|
|
|
1813
2012
|
return value;
|
|
1814
2013
|
}
|
|
1815
2014
|
};
|
|
1816
|
-
var Input =
|
|
2015
|
+
var Input = React3.forwardRef((props, ref) => {
|
|
1817
2016
|
const {
|
|
1818
2017
|
value,
|
|
1819
2018
|
onChange,
|
|
@@ -1839,13 +2038,13 @@ var Input = React2.forwardRef((props, ref) => {
|
|
|
1839
2038
|
onChange(event);
|
|
1840
2039
|
}
|
|
1841
2040
|
};
|
|
1842
|
-
return /* @__PURE__ */
|
|
1843
|
-
/* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ jsxs196("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
|
|
2042
|
+
/* @__PURE__ */ jsxs196(
|
|
1844
2043
|
"div",
|
|
1845
2044
|
{
|
|
1846
2045
|
className: clsx_default("lib-xplat-input", disabled ? "disabled" : void 0),
|
|
1847
2046
|
children: [
|
|
1848
|
-
/* @__PURE__ */
|
|
2047
|
+
/* @__PURE__ */ jsx306(
|
|
1849
2048
|
"input",
|
|
1850
2049
|
{
|
|
1851
2050
|
...inputProps,
|
|
@@ -1856,11 +2055,11 @@ var Input = React2.forwardRef((props, ref) => {
|
|
|
1856
2055
|
onChange: handleChange
|
|
1857
2056
|
}
|
|
1858
2057
|
),
|
|
1859
|
-
suffix && /* @__PURE__ */
|
|
2058
|
+
suffix && /* @__PURE__ */ jsx306("div", { className: "suffix", children: suffix })
|
|
1860
2059
|
]
|
|
1861
2060
|
}
|
|
1862
2061
|
),
|
|
1863
|
-
validations && /* @__PURE__ */
|
|
2062
|
+
validations && /* @__PURE__ */ jsx306("div", { className: "lib-xplat-input-validation-wrap", children: validations?.map((validation, idx) => /* @__PURE__ */ createElement(
|
|
1864
2063
|
InputValidations_default,
|
|
1865
2064
|
{
|
|
1866
2065
|
...validation,
|
|
@@ -1873,20 +2072,20 @@ Input.displayName = "Input";
|
|
|
1873
2072
|
var Input_default = Input;
|
|
1874
2073
|
|
|
1875
2074
|
// src/components/Input/PasswordInput/PasswordInput.tsx
|
|
1876
|
-
import
|
|
1877
|
-
import { jsx as
|
|
1878
|
-
var PasswordInput =
|
|
2075
|
+
import React4 from "react";
|
|
2076
|
+
import { jsx as jsx307 } from "react/jsx-runtime";
|
|
2077
|
+
var PasswordInput = React4.forwardRef(
|
|
1879
2078
|
(props, ref) => {
|
|
1880
2079
|
const { reg: _reg, ...inputProps } = props;
|
|
1881
|
-
const [isView, setIsView] =
|
|
2080
|
+
const [isView, setIsView] = React4.useState(false);
|
|
1882
2081
|
const handleChangeView = () => {
|
|
1883
2082
|
setIsView((prev) => !prev);
|
|
1884
2083
|
};
|
|
1885
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ jsx307(
|
|
1886
2085
|
Input_default,
|
|
1887
2086
|
{
|
|
1888
2087
|
...inputProps,
|
|
1889
|
-
suffix: /* @__PURE__ */
|
|
2088
|
+
suffix: /* @__PURE__ */ jsx307("div", { className: "wrapper pointer", onClick: handleChangeView, children: isView ? /* @__PURE__ */ jsx307(OpenEyeIcon_default, {}) : /* @__PURE__ */ jsx307(CloseEyeIcon_default, {}) }),
|
|
1890
2089
|
type: isView ? "text" : "password",
|
|
1891
2090
|
ref
|
|
1892
2091
|
}
|
|
@@ -1899,8 +2098,8 @@ var PasswordInput_default = PasswordInput;
|
|
|
1899
2098
|
// src/components/DatePicker/InputDatePicker/index.tsx
|
|
1900
2099
|
import DatePicker from "react-datepicker";
|
|
1901
2100
|
import "react-datepicker/dist/react-datepicker.css";
|
|
1902
|
-
import { jsx as
|
|
1903
|
-
var Suffix = () => /* @__PURE__ */
|
|
2101
|
+
import { jsx as jsx308 } from "react/jsx-runtime";
|
|
2102
|
+
var Suffix = () => /* @__PURE__ */ jsx308("div", { children: /* @__PURE__ */ jsx308(CalenderIcon_default, {}) });
|
|
1904
2103
|
var InputDatePicker = (props) => {
|
|
1905
2104
|
const { value, onChange, disabled, ...rest } = props;
|
|
1906
2105
|
const handleChange = (date) => {
|
|
@@ -1914,22 +2113,22 @@ var InputDatePicker = (props) => {
|
|
|
1914
2113
|
const d = String(date.getDate()).padStart(2, "0");
|
|
1915
2114
|
return `${y}/${m}/${d}`;
|
|
1916
2115
|
};
|
|
1917
|
-
const CustomInput =
|
|
2116
|
+
const CustomInput = React5.forwardRef(({ onClick }, _ref) => /* @__PURE__ */ jsx308("div", { onClick, children: /* @__PURE__ */ jsx308(
|
|
1918
2117
|
Input_default,
|
|
1919
2118
|
{
|
|
1920
2119
|
value: formatDate(value),
|
|
1921
|
-
suffix: /* @__PURE__ */
|
|
2120
|
+
suffix: /* @__PURE__ */ jsx308(Suffix, {}),
|
|
1922
2121
|
disabled
|
|
1923
2122
|
}
|
|
1924
2123
|
) }));
|
|
1925
2124
|
CustomInput.displayName = "InputDatePickerCustomInput";
|
|
1926
|
-
return /* @__PURE__ */
|
|
2125
|
+
return /* @__PURE__ */ jsx308("div", { className: "lib-xplat-datepicker", children: /* @__PURE__ */ jsx308(
|
|
1927
2126
|
DatePicker,
|
|
1928
2127
|
{
|
|
1929
2128
|
selected: value,
|
|
1930
2129
|
onChange: handleChange,
|
|
1931
2130
|
...rest,
|
|
1932
|
-
customInput: /* @__PURE__ */
|
|
2131
|
+
customInput: /* @__PURE__ */ jsx308(CustomInput, {}),
|
|
1933
2132
|
dateFormat: "YYYY/MM/dd"
|
|
1934
2133
|
}
|
|
1935
2134
|
) });
|
|
@@ -1938,18 +2137,18 @@ InputDatePicker.displayName = "InputDatePicker";
|
|
|
1938
2137
|
var InputDatePicker_default = InputDatePicker;
|
|
1939
2138
|
|
|
1940
2139
|
// src/components/DatePicker/PopupPicker/index.tsx
|
|
1941
|
-
import
|
|
2140
|
+
import React7 from "react";
|
|
1942
2141
|
|
|
1943
2142
|
// src/components/Modal/Modal.tsx
|
|
1944
|
-
import
|
|
2143
|
+
import React6 from "react";
|
|
1945
2144
|
import { createPortal } from "react-dom";
|
|
1946
|
-
import { jsx as
|
|
2145
|
+
import { jsx as jsx309 } from "react/jsx-runtime";
|
|
1947
2146
|
var ANIMATION_DURATION_MS = 200;
|
|
1948
2147
|
var Modal = (props) => {
|
|
1949
2148
|
const { isOpen, onClose, children } = props;
|
|
1950
|
-
const [mounted, setMounted] =
|
|
1951
|
-
const [visible, setVisible] =
|
|
1952
|
-
|
|
2149
|
+
const [mounted, setMounted] = React6.useState(false);
|
|
2150
|
+
const [visible, setVisible] = React6.useState(false);
|
|
2151
|
+
React6.useEffect(() => {
|
|
1953
2152
|
if (isOpen) {
|
|
1954
2153
|
setMounted(true);
|
|
1955
2154
|
const t2 = setTimeout(() => setVisible(true), 1);
|
|
@@ -1963,15 +2162,17 @@ var Modal = (props) => {
|
|
|
1963
2162
|
if (!mounted) return null;
|
|
1964
2163
|
const stateClass = visible ? "enter" : "exit";
|
|
1965
2164
|
return createPortal(
|
|
1966
|
-
/* @__PURE__ */
|
|
2165
|
+
/* @__PURE__ */ jsx309(
|
|
1967
2166
|
"div",
|
|
1968
2167
|
{
|
|
1969
2168
|
className: clsx_default("lib-xplat-modal", "dim", stateClass),
|
|
1970
2169
|
onClick: onClose,
|
|
1971
|
-
children: /* @__PURE__ */
|
|
2170
|
+
children: /* @__PURE__ */ jsx309(
|
|
1972
2171
|
"div",
|
|
1973
2172
|
{
|
|
1974
2173
|
className: clsx_default("lib-xplat-modal", "modal-box", stateClass),
|
|
2174
|
+
role: "dialog",
|
|
2175
|
+
"aria-modal": "true",
|
|
1975
2176
|
onClick: (e) => e.stopPropagation(),
|
|
1976
2177
|
children
|
|
1977
2178
|
}
|
|
@@ -1987,23 +2188,58 @@ var Modal_default = Modal;
|
|
|
1987
2188
|
// src/components/DatePicker/SingleDatePicker/index.tsx
|
|
1988
2189
|
import DatePicker2 from "react-datepicker";
|
|
1989
2190
|
import "react-datepicker/dist/react-datepicker.css";
|
|
1990
|
-
import { jsx as
|
|
2191
|
+
import { jsx as jsx310 } from "react/jsx-runtime";
|
|
2192
|
+
function getColorValue(ns, color, depth) {
|
|
2193
|
+
const nsColors = colors[ns];
|
|
2194
|
+
const colorEntry = nsColors[color];
|
|
2195
|
+
if (typeof colorEntry === "string") return colorEntry;
|
|
2196
|
+
return colorEntry[String(depth)] ?? "";
|
|
2197
|
+
}
|
|
1991
2198
|
var SingleDatePicker = (props) => {
|
|
1992
|
-
const {
|
|
2199
|
+
const {
|
|
2200
|
+
value,
|
|
2201
|
+
onChange,
|
|
2202
|
+
colorNamespace = "xplat",
|
|
2203
|
+
color = "blue",
|
|
2204
|
+
colorDepth,
|
|
2205
|
+
highlightDates,
|
|
2206
|
+
...rest
|
|
2207
|
+
} = props;
|
|
1993
2208
|
const handleChange = (date) => {
|
|
1994
2209
|
if (Array.isArray(date)) return;
|
|
1995
2210
|
onChange?.(date);
|
|
1996
2211
|
};
|
|
1997
|
-
|
|
2212
|
+
const activeColor = getColorValue(
|
|
2213
|
+
colorNamespace,
|
|
2214
|
+
color,
|
|
2215
|
+
colorDepth ?? 500
|
|
2216
|
+
);
|
|
2217
|
+
return /* @__PURE__ */ jsx310(
|
|
2218
|
+
"div",
|
|
2219
|
+
{
|
|
2220
|
+
className: "lib-xplat-datepicker",
|
|
2221
|
+
style: { "--datepicker-active-color": activeColor },
|
|
2222
|
+
children: /* @__PURE__ */ jsx310(
|
|
2223
|
+
DatePicker2,
|
|
2224
|
+
{
|
|
2225
|
+
selected: value,
|
|
2226
|
+
onChange: handleChange,
|
|
2227
|
+
inline: true,
|
|
2228
|
+
highlightDates,
|
|
2229
|
+
...rest
|
|
2230
|
+
}
|
|
2231
|
+
)
|
|
2232
|
+
}
|
|
2233
|
+
);
|
|
1998
2234
|
};
|
|
1999
2235
|
SingleDatePicker.displayName = "SingleDatePicker";
|
|
2000
2236
|
var SingleDatePicker_default = SingleDatePicker;
|
|
2001
2237
|
|
|
2002
2238
|
// src/components/DatePicker/PopupPicker/index.tsx
|
|
2003
|
-
import { jsx as
|
|
2239
|
+
import { jsx as jsx311, jsxs as jsxs197 } from "react/jsx-runtime";
|
|
2004
2240
|
var PopupPicker = (props) => {
|
|
2005
2241
|
const { component, type } = props;
|
|
2006
|
-
const [isOpen, setIsOpen] =
|
|
2242
|
+
const [isOpen, setIsOpen] = React7.useState(false);
|
|
2007
2243
|
const handleClick = () => setIsOpen(true);
|
|
2008
2244
|
const handleClose = () => setIsOpen(false);
|
|
2009
2245
|
const handleSingleChange = (date) => {
|
|
@@ -2011,11 +2247,11 @@ var PopupPicker = (props) => {
|
|
|
2011
2247
|
props.onChange?.(date);
|
|
2012
2248
|
handleClose();
|
|
2013
2249
|
};
|
|
2014
|
-
return /* @__PURE__ */
|
|
2015
|
-
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
2018
|
-
type === "single" && /* @__PURE__ */
|
|
2250
|
+
return /* @__PURE__ */ jsxs197("div", { className: "lib-xplat-popup-datepicker", children: [
|
|
2251
|
+
React7.cloneElement(component, { onClick: handleClick }),
|
|
2252
|
+
/* @__PURE__ */ jsx311(Modal_default, { isOpen, onClose: handleClose, children: /* @__PURE__ */ jsxs197("div", { className: "lib-xplat-popup-datepicker-card", children: [
|
|
2253
|
+
/* @__PURE__ */ jsxs197("div", { className: "popup-datepicker-content", children: [
|
|
2254
|
+
type === "single" && /* @__PURE__ */ jsx311(
|
|
2019
2255
|
SingleDatePicker_default,
|
|
2020
2256
|
{
|
|
2021
2257
|
value: props.value,
|
|
@@ -2024,7 +2260,7 @@ var PopupPicker = (props) => {
|
|
|
2024
2260
|
maxDate: props.maxDate
|
|
2025
2261
|
}
|
|
2026
2262
|
),
|
|
2027
|
-
type === "range" && /* @__PURE__ */
|
|
2263
|
+
type === "range" && /* @__PURE__ */ jsx311(
|
|
2028
2264
|
RangePicker_default,
|
|
2029
2265
|
{
|
|
2030
2266
|
startDate: props.startDate,
|
|
@@ -2035,8 +2271,8 @@ var PopupPicker = (props) => {
|
|
|
2035
2271
|
}
|
|
2036
2272
|
)
|
|
2037
2273
|
] }),
|
|
2038
|
-
/* @__PURE__ */
|
|
2039
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ jsxs197("div", { className: "popup-datepicker-footer", children: [
|
|
2275
|
+
/* @__PURE__ */ jsx311(
|
|
2040
2276
|
Button_default,
|
|
2041
2277
|
{
|
|
2042
2278
|
type: "secondary",
|
|
@@ -2046,7 +2282,7 @@ var PopupPicker = (props) => {
|
|
|
2046
2282
|
children: "\uCDE8\uC18C"
|
|
2047
2283
|
}
|
|
2048
2284
|
),
|
|
2049
|
-
/* @__PURE__ */
|
|
2285
|
+
/* @__PURE__ */ jsx311(Button_default, { type: "primary", color: "blue", onClick: handleClose, children: "\uC801\uC6A9" })
|
|
2050
2286
|
] })
|
|
2051
2287
|
] }) })
|
|
2052
2288
|
] });
|
|
@@ -2055,50 +2291,155 @@ PopupPicker.displayName = "PopupPicker";
|
|
|
2055
2291
|
var PopupPicker_default = PopupPicker;
|
|
2056
2292
|
|
|
2057
2293
|
// src/components/DatePicker/RangePicker/index.tsx
|
|
2058
|
-
import
|
|
2294
|
+
import React8 from "react";
|
|
2295
|
+
import { jsx as jsx312, jsxs as jsxs198 } from "react/jsx-runtime";
|
|
2296
|
+
function getDatesBetween(start, end) {
|
|
2297
|
+
const dates = [];
|
|
2298
|
+
const current = new Date(start);
|
|
2299
|
+
current.setHours(0, 0, 0, 0);
|
|
2300
|
+
const last = new Date(end);
|
|
2301
|
+
last.setHours(0, 0, 0, 0);
|
|
2302
|
+
while (current <= last) {
|
|
2303
|
+
dates.push(new Date(current));
|
|
2304
|
+
current.setDate(current.getDate() + 1);
|
|
2305
|
+
}
|
|
2306
|
+
return dates;
|
|
2307
|
+
}
|
|
2059
2308
|
var RangePicker = (props) => {
|
|
2060
|
-
const {
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2309
|
+
const {
|
|
2310
|
+
startDate,
|
|
2311
|
+
endDate,
|
|
2312
|
+
onChange,
|
|
2313
|
+
minDate,
|
|
2314
|
+
maxDate,
|
|
2315
|
+
colorNamespace,
|
|
2316
|
+
color,
|
|
2317
|
+
colorDepth
|
|
2318
|
+
} = props;
|
|
2319
|
+
const rangeDates = React8.useMemo(
|
|
2320
|
+
() => getDatesBetween(startDate, endDate),
|
|
2321
|
+
[startDate, endDate]
|
|
2322
|
+
);
|
|
2323
|
+
const colorProps = {
|
|
2324
|
+
...colorNamespace !== void 0 && { colorNamespace },
|
|
2325
|
+
...color !== void 0 && { color },
|
|
2326
|
+
...colorDepth !== void 0 && { colorDepth }
|
|
2327
|
+
};
|
|
2328
|
+
return /* @__PURE__ */ jsxs198("div", { className: "lib-xplat-range-datepicker", children: [
|
|
2329
|
+
/* @__PURE__ */ jsxs198("div", { className: "lib-xplat-range-datepicker-from", children: [
|
|
2330
|
+
/* @__PURE__ */ jsx312("span", { className: "lib-xplat-range-datepicker-label", children: "\uC2DC\uC791" }),
|
|
2331
|
+
/* @__PURE__ */ jsx312(
|
|
2065
2332
|
SingleDatePicker_default,
|
|
2066
2333
|
{
|
|
2067
2334
|
value: startDate,
|
|
2068
2335
|
onChange: (date) => date != null && onChange?.({ startDate: date, endDate }),
|
|
2069
2336
|
minDate,
|
|
2070
|
-
maxDate: endDate
|
|
2337
|
+
maxDate: endDate,
|
|
2338
|
+
highlightDates: rangeDates,
|
|
2339
|
+
...colorProps
|
|
2071
2340
|
}
|
|
2072
2341
|
)
|
|
2073
2342
|
] }),
|
|
2074
|
-
/* @__PURE__ */
|
|
2075
|
-
/* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2343
|
+
/* @__PURE__ */ jsxs198("div", { className: "lib-xplat-range-datepicker-to", children: [
|
|
2344
|
+
/* @__PURE__ */ jsx312("span", { className: "lib-xplat-range-datepicker-label", children: "\uC885\uB8CC" }),
|
|
2345
|
+
/* @__PURE__ */ jsx312(
|
|
2077
2346
|
SingleDatePicker_default,
|
|
2078
2347
|
{
|
|
2079
2348
|
value: endDate,
|
|
2080
2349
|
onChange: (date) => date != null && onChange?.({ startDate, endDate: date }),
|
|
2081
2350
|
minDate: startDate,
|
|
2082
|
-
maxDate
|
|
2351
|
+
maxDate,
|
|
2352
|
+
highlightDates: rangeDates,
|
|
2353
|
+
...colorProps
|
|
2083
2354
|
}
|
|
2084
2355
|
)
|
|
2085
2356
|
] })
|
|
2086
2357
|
] });
|
|
2087
2358
|
};
|
|
2088
|
-
RangePicker.displayName = "RangePicker";
|
|
2089
|
-
var RangePicker_default = RangePicker;
|
|
2359
|
+
RangePicker.displayName = "RangePicker";
|
|
2360
|
+
var RangePicker_default = RangePicker;
|
|
2361
|
+
|
|
2362
|
+
// src/components/Divider/Divider.tsx
|
|
2363
|
+
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
2364
|
+
var Divider = (props) => {
|
|
2365
|
+
const { orientation = "horizontal", className } = props;
|
|
2366
|
+
return /* @__PURE__ */ jsx313(
|
|
2367
|
+
"div",
|
|
2368
|
+
{
|
|
2369
|
+
className: clsx_default("lib-xplat-divider", orientation, className),
|
|
2370
|
+
role: "separator",
|
|
2371
|
+
"aria-orientation": orientation
|
|
2372
|
+
}
|
|
2373
|
+
);
|
|
2374
|
+
};
|
|
2375
|
+
Divider.displayName = "Divider";
|
|
2376
|
+
var Divider_default = Divider;
|
|
2377
|
+
|
|
2378
|
+
// src/components/Drawer/Drawer.tsx
|
|
2379
|
+
import React9 from "react";
|
|
2380
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
2381
|
+
import { jsx as jsx314, jsxs as jsxs199 } from "react/jsx-runtime";
|
|
2382
|
+
var ANIMATION_DURATION_MS2 = 250;
|
|
2383
|
+
var Drawer = (props) => {
|
|
2384
|
+
const { isOpen, onClose, placement = "right", width = 320, title, children } = props;
|
|
2385
|
+
const [mounted, setMounted] = React9.useState(false);
|
|
2386
|
+
const [visible, setVisible] = React9.useState(false);
|
|
2387
|
+
React9.useEffect(() => {
|
|
2388
|
+
if (isOpen) {
|
|
2389
|
+
setMounted(true);
|
|
2390
|
+
const t2 = setTimeout(() => setVisible(true), 1);
|
|
2391
|
+
return () => clearTimeout(t2);
|
|
2392
|
+
}
|
|
2393
|
+
setVisible(false);
|
|
2394
|
+
const t = setTimeout(() => setMounted(false), ANIMATION_DURATION_MS2);
|
|
2395
|
+
return () => clearTimeout(t);
|
|
2396
|
+
}, [isOpen]);
|
|
2397
|
+
if (typeof document === "undefined") return null;
|
|
2398
|
+
if (!mounted) return null;
|
|
2399
|
+
const stateClass = visible ? "enter" : "exit";
|
|
2400
|
+
const widthValue = typeof width === "number" ? `${width}px` : width;
|
|
2401
|
+
return createPortal2(
|
|
2402
|
+
/* @__PURE__ */ jsx314(
|
|
2403
|
+
"div",
|
|
2404
|
+
{
|
|
2405
|
+
className: clsx_default("lib-xplat-drawer-overlay", stateClass),
|
|
2406
|
+
onClick: onClose,
|
|
2407
|
+
children: /* @__PURE__ */ jsxs199(
|
|
2408
|
+
"div",
|
|
2409
|
+
{
|
|
2410
|
+
className: clsx_default("lib-xplat-drawer", placement, stateClass),
|
|
2411
|
+
style: { width: widthValue },
|
|
2412
|
+
role: "dialog",
|
|
2413
|
+
"aria-modal": "true",
|
|
2414
|
+
onClick: (e) => e.stopPropagation(),
|
|
2415
|
+
children: [
|
|
2416
|
+
title && /* @__PURE__ */ jsxs199("div", { className: "drawer-header", children: [
|
|
2417
|
+
/* @__PURE__ */ jsx314("span", { className: "drawer-title", children: title }),
|
|
2418
|
+
/* @__PURE__ */ jsx314("button", { className: "close-btn", onClick: onClose, "aria-label": "\uB2EB\uAE30", children: "\xD7" })
|
|
2419
|
+
] }),
|
|
2420
|
+
/* @__PURE__ */ jsx314("div", { className: "drawer-body", children })
|
|
2421
|
+
]
|
|
2422
|
+
}
|
|
2423
|
+
)
|
|
2424
|
+
}
|
|
2425
|
+
),
|
|
2426
|
+
document.body
|
|
2427
|
+
);
|
|
2428
|
+
};
|
|
2429
|
+
Drawer.displayName = "Drawer";
|
|
2430
|
+
var Drawer_default = Drawer;
|
|
2090
2431
|
|
|
2091
|
-
// src/components/
|
|
2092
|
-
import
|
|
2432
|
+
// src/components/Dropdown/Dropdown.tsx
|
|
2433
|
+
import React12 from "react";
|
|
2093
2434
|
|
|
2094
2435
|
// src/tokens/hooks/useAutoPosition.ts
|
|
2095
|
-
import
|
|
2436
|
+
import React10 from "react";
|
|
2096
2437
|
var useAutoPosition = (triggerRef, popRef, enabled = true) => {
|
|
2097
|
-
const [position, setPosition] =
|
|
2438
|
+
const [position, setPosition] = React10.useState({
|
|
2098
2439
|
position: {},
|
|
2099
2440
|
direction: "bottom"
|
|
2100
2441
|
});
|
|
2101
|
-
const calculatePosition =
|
|
2442
|
+
const calculatePosition = React10.useCallback(() => {
|
|
2102
2443
|
if (!triggerRef.current || !popRef.current) return;
|
|
2103
2444
|
const triggerRect = triggerRef.current.getBoundingClientRect();
|
|
2104
2445
|
const popRect = popRef.current.getBoundingClientRect();
|
|
@@ -2120,7 +2461,7 @@ var useAutoPosition = (triggerRef, popRef, enabled = true) => {
|
|
|
2120
2461
|
direction
|
|
2121
2462
|
});
|
|
2122
2463
|
}, [triggerRef, popRef]);
|
|
2123
|
-
|
|
2464
|
+
React10.useEffect(() => {
|
|
2124
2465
|
calculatePosition();
|
|
2125
2466
|
window.addEventListener("resize", calculatePosition);
|
|
2126
2467
|
return () => window.removeEventListener("resize", calculatePosition);
|
|
@@ -2130,9 +2471,9 @@ var useAutoPosition = (triggerRef, popRef, enabled = true) => {
|
|
|
2130
2471
|
var useAutoPosition_default = useAutoPosition;
|
|
2131
2472
|
|
|
2132
2473
|
// src/tokens/hooks/useClickOutside.ts
|
|
2133
|
-
import
|
|
2474
|
+
import React11 from "react";
|
|
2134
2475
|
var useClickOutside = (refs, handler, enabled = true) => {
|
|
2135
|
-
|
|
2476
|
+
React11.useEffect(() => {
|
|
2136
2477
|
if (!enabled) return;
|
|
2137
2478
|
const refArray = Array.isArray(refs) ? refs : [refs];
|
|
2138
2479
|
const listener = (event) => {
|
|
@@ -2154,17 +2495,172 @@ var useClickOutside = (refs, handler, enabled = true) => {
|
|
|
2154
2495
|
};
|
|
2155
2496
|
var useClickOutside_default = useClickOutside;
|
|
2156
2497
|
|
|
2498
|
+
// src/components/Dropdown/Dropdown.tsx
|
|
2499
|
+
import { jsx as jsx315, jsxs as jsxs200 } from "react/jsx-runtime";
|
|
2500
|
+
var Dropdown = (props) => {
|
|
2501
|
+
const { items, children, className } = props;
|
|
2502
|
+
const [isOpen, setIsOpen] = React12.useState(false);
|
|
2503
|
+
const [mounted, setMounted] = React12.useState(false);
|
|
2504
|
+
const [visible, setVisible] = React12.useState(false);
|
|
2505
|
+
const triggerRef = React12.useRef(null);
|
|
2506
|
+
const menuRef = React12.useRef(null);
|
|
2507
|
+
const { position, direction } = useAutoPosition_default(triggerRef, menuRef, isOpen);
|
|
2508
|
+
useClickOutside_default([triggerRef, menuRef], () => setIsOpen(false));
|
|
2509
|
+
React12.useEffect(() => {
|
|
2510
|
+
if (isOpen) {
|
|
2511
|
+
setMounted(true);
|
|
2512
|
+
const t2 = setTimeout(() => setVisible(true), 1);
|
|
2513
|
+
return () => clearTimeout(t2);
|
|
2514
|
+
}
|
|
2515
|
+
setVisible(false);
|
|
2516
|
+
const t = setTimeout(() => setMounted(false), 150);
|
|
2517
|
+
return () => clearTimeout(t);
|
|
2518
|
+
}, [isOpen]);
|
|
2519
|
+
const handleItemClick = (item) => {
|
|
2520
|
+
if (item.disabled) return;
|
|
2521
|
+
item.onClick?.();
|
|
2522
|
+
setIsOpen(false);
|
|
2523
|
+
};
|
|
2524
|
+
return /* @__PURE__ */ jsxs200("div", { className: clsx_default("lib-xplat-dropdown", className), children: [
|
|
2525
|
+
/* @__PURE__ */ jsx315(
|
|
2526
|
+
"div",
|
|
2527
|
+
{
|
|
2528
|
+
ref: triggerRef,
|
|
2529
|
+
className: "dropdown-trigger",
|
|
2530
|
+
onClick: () => setIsOpen((prev) => !prev),
|
|
2531
|
+
children
|
|
2532
|
+
}
|
|
2533
|
+
),
|
|
2534
|
+
mounted && /* @__PURE__ */ jsx315(
|
|
2535
|
+
"div",
|
|
2536
|
+
{
|
|
2537
|
+
ref: menuRef,
|
|
2538
|
+
className: clsx_default("dropdown-menu", direction, { visible }),
|
|
2539
|
+
style: { top: position.top, left: position.left },
|
|
2540
|
+
role: "menu",
|
|
2541
|
+
children: items.map((item) => /* @__PURE__ */ jsx315(
|
|
2542
|
+
"button",
|
|
2543
|
+
{
|
|
2544
|
+
className: clsx_default("dropdown-item", {
|
|
2545
|
+
disabled: item.disabled,
|
|
2546
|
+
danger: item.danger
|
|
2547
|
+
}),
|
|
2548
|
+
role: "menuitem",
|
|
2549
|
+
disabled: item.disabled,
|
|
2550
|
+
onClick: () => handleItemClick(item),
|
|
2551
|
+
children: item.label
|
|
2552
|
+
},
|
|
2553
|
+
item.key
|
|
2554
|
+
))
|
|
2555
|
+
}
|
|
2556
|
+
)
|
|
2557
|
+
] });
|
|
2558
|
+
};
|
|
2559
|
+
Dropdown.displayName = "Dropdown";
|
|
2560
|
+
var Dropdown_default = Dropdown;
|
|
2561
|
+
|
|
2562
|
+
// src/components/EmptyState/EmptyState.tsx
|
|
2563
|
+
import { jsx as jsx316, jsxs as jsxs201 } from "react/jsx-runtime";
|
|
2564
|
+
var EmptyState = (props) => {
|
|
2565
|
+
const { icon, title = "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4", description, action, className } = props;
|
|
2566
|
+
return /* @__PURE__ */ jsxs201("div", { className: clsx_default("lib-xplat-empty-state", className), children: [
|
|
2567
|
+
icon && /* @__PURE__ */ jsx316("div", { className: "empty-icon", children: icon }),
|
|
2568
|
+
!icon && /* @__PURE__ */ jsx316("div", { className: "empty-icon", children: /* @__PURE__ */ jsx316("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx316("path", { d: "M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z" }) }) }),
|
|
2569
|
+
/* @__PURE__ */ jsx316("p", { className: "empty-title", children: title }),
|
|
2570
|
+
description && /* @__PURE__ */ jsx316("p", { className: "empty-description", children: description }),
|
|
2571
|
+
action && /* @__PURE__ */ jsx316("div", { className: "empty-action", children: action })
|
|
2572
|
+
] });
|
|
2573
|
+
};
|
|
2574
|
+
EmptyState.displayName = "EmptyState";
|
|
2575
|
+
var EmptyState_default = EmptyState;
|
|
2576
|
+
|
|
2577
|
+
// src/components/FileUpload/FileUpload.tsx
|
|
2578
|
+
import React13 from "react";
|
|
2579
|
+
import { jsx as jsx317, jsxs as jsxs202 } from "react/jsx-runtime";
|
|
2580
|
+
var FileUpload = (props) => {
|
|
2581
|
+
const {
|
|
2582
|
+
accept,
|
|
2583
|
+
multiple = false,
|
|
2584
|
+
maxSize,
|
|
2585
|
+
onChange,
|
|
2586
|
+
label = "\uD30C\uC77C\uC744 \uB4DC\uB798\uADF8\uD558\uAC70\uB098 \uD074\uB9AD\uD558\uC5EC \uC5C5\uB85C\uB4DC",
|
|
2587
|
+
description,
|
|
2588
|
+
className
|
|
2589
|
+
} = props;
|
|
2590
|
+
const [isDragOver, setIsDragOver] = React13.useState(false);
|
|
2591
|
+
const inputRef = React13.useRef(null);
|
|
2592
|
+
const handleFiles = (fileList) => {
|
|
2593
|
+
let files = Array.from(fileList);
|
|
2594
|
+
if (maxSize) {
|
|
2595
|
+
files = files.filter((f) => f.size <= maxSize);
|
|
2596
|
+
}
|
|
2597
|
+
if (!multiple && files.length > 1) {
|
|
2598
|
+
files = [files[0]];
|
|
2599
|
+
}
|
|
2600
|
+
onChange?.(files);
|
|
2601
|
+
};
|
|
2602
|
+
const handleDrop = (e) => {
|
|
2603
|
+
e.preventDefault();
|
|
2604
|
+
setIsDragOver(false);
|
|
2605
|
+
if (e.dataTransfer.files.length > 0) {
|
|
2606
|
+
handleFiles(e.dataTransfer.files);
|
|
2607
|
+
}
|
|
2608
|
+
};
|
|
2609
|
+
const handleDragOver = (e) => {
|
|
2610
|
+
e.preventDefault();
|
|
2611
|
+
setIsDragOver(true);
|
|
2612
|
+
};
|
|
2613
|
+
const handleDragLeave = () => {
|
|
2614
|
+
setIsDragOver(false);
|
|
2615
|
+
};
|
|
2616
|
+
const handleChange = (e) => {
|
|
2617
|
+
if (e.target.files && e.target.files.length > 0) {
|
|
2618
|
+
handleFiles(e.target.files);
|
|
2619
|
+
}
|
|
2620
|
+
};
|
|
2621
|
+
return /* @__PURE__ */ jsxs202(
|
|
2622
|
+
"div",
|
|
2623
|
+
{
|
|
2624
|
+
className: clsx_default("lib-xplat-file-upload", { "drag-over": isDragOver }, className),
|
|
2625
|
+
onDrop: handleDrop,
|
|
2626
|
+
onDragOver: handleDragOver,
|
|
2627
|
+
onDragLeave: handleDragLeave,
|
|
2628
|
+
onClick: () => inputRef.current?.click(),
|
|
2629
|
+
children: [
|
|
2630
|
+
/* @__PURE__ */ jsx317(
|
|
2631
|
+
"input",
|
|
2632
|
+
{
|
|
2633
|
+
ref: inputRef,
|
|
2634
|
+
type: "file",
|
|
2635
|
+
accept,
|
|
2636
|
+
multiple,
|
|
2637
|
+
onChange: handleChange
|
|
2638
|
+
}
|
|
2639
|
+
),
|
|
2640
|
+
/* @__PURE__ */ jsx317("div", { className: "upload-icon", children: /* @__PURE__ */ jsx317(UploadIcon_default, {}) }),
|
|
2641
|
+
/* @__PURE__ */ jsx317("p", { className: "upload-label", children: label }),
|
|
2642
|
+
description && /* @__PURE__ */ jsx317("p", { className: "upload-description", children: description })
|
|
2643
|
+
]
|
|
2644
|
+
}
|
|
2645
|
+
);
|
|
2646
|
+
};
|
|
2647
|
+
FileUpload.displayName = "FileUpload";
|
|
2648
|
+
var FileUpload_default = FileUpload;
|
|
2649
|
+
|
|
2650
|
+
// src/components/Select/Select.tsx
|
|
2651
|
+
import React16 from "react";
|
|
2652
|
+
|
|
2157
2653
|
// src/components/Select/context.ts
|
|
2158
|
-
import
|
|
2159
|
-
var SelectContext =
|
|
2654
|
+
import React14 from "react";
|
|
2655
|
+
var SelectContext = React14.createContext(null);
|
|
2160
2656
|
var context_default = SelectContext;
|
|
2161
2657
|
|
|
2162
2658
|
// src/components/Select/SelectItem.tsx
|
|
2163
|
-
import
|
|
2164
|
-
import { jsx as
|
|
2659
|
+
import React15 from "react";
|
|
2660
|
+
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
2165
2661
|
var SelectItem = (props) => {
|
|
2166
2662
|
const { children, value, onClick, disabled = false, className } = props;
|
|
2167
|
-
const ctx =
|
|
2663
|
+
const ctx = React15.useContext(context_default);
|
|
2168
2664
|
const handleClick = (e) => {
|
|
2169
2665
|
e.preventDefault();
|
|
2170
2666
|
e.stopPropagation();
|
|
@@ -2173,7 +2669,7 @@ var SelectItem = (props) => {
|
|
|
2173
2669
|
ctx?.close();
|
|
2174
2670
|
onClick?.();
|
|
2175
2671
|
};
|
|
2176
|
-
return /* @__PURE__ */
|
|
2672
|
+
return /* @__PURE__ */ jsx318(
|
|
2177
2673
|
"div",
|
|
2178
2674
|
{
|
|
2179
2675
|
className: clsx_default("select-item", disabled && "disabled", className),
|
|
@@ -2194,8 +2690,8 @@ SelectItem.displayName = "Select.Item";
|
|
|
2194
2690
|
var SelectItem_default = SelectItem;
|
|
2195
2691
|
|
|
2196
2692
|
// src/components/Select/Select.tsx
|
|
2197
|
-
import { jsx as
|
|
2198
|
-
var
|
|
2693
|
+
import { jsx as jsx319, jsxs as jsxs203 } from "react/jsx-runtime";
|
|
2694
|
+
var ANIMATION_DURATION_MS3 = 200;
|
|
2199
2695
|
var SelectRoot = (props) => {
|
|
2200
2696
|
const {
|
|
2201
2697
|
placeholder = "\uC120\uD0DD\uD558\uC138\uC694",
|
|
@@ -2204,41 +2700,41 @@ var SelectRoot = (props) => {
|
|
|
2204
2700
|
disabled = false,
|
|
2205
2701
|
error = false
|
|
2206
2702
|
} = props;
|
|
2207
|
-
const itemChildren =
|
|
2208
|
-
(child) =>
|
|
2703
|
+
const itemChildren = React16.Children.toArray(children).filter(
|
|
2704
|
+
(child) => React16.isValidElement(child) && child.type === SelectItem_default
|
|
2209
2705
|
);
|
|
2210
|
-
const [isOpen, setOpen] =
|
|
2211
|
-
const [selectedLabel, setSelectedLabel] =
|
|
2212
|
-
const triggerRef =
|
|
2213
|
-
const contentRef =
|
|
2214
|
-
const [mounted, setMounted] =
|
|
2215
|
-
const [visible, setVisible] =
|
|
2216
|
-
|
|
2706
|
+
const [isOpen, setOpen] = React16.useState(false);
|
|
2707
|
+
const [selectedLabel, setSelectedLabel] = React16.useState(null);
|
|
2708
|
+
const triggerRef = React16.useRef(null);
|
|
2709
|
+
const contentRef = React16.useRef(null);
|
|
2710
|
+
const [mounted, setMounted] = React16.useState(false);
|
|
2711
|
+
const [visible, setVisible] = React16.useState(false);
|
|
2712
|
+
React16.useEffect(() => {
|
|
2217
2713
|
if (disabled && isOpen) setOpen(false);
|
|
2218
2714
|
}, [disabled, isOpen]);
|
|
2219
|
-
|
|
2715
|
+
React16.useEffect(() => {
|
|
2220
2716
|
if (isOpen) {
|
|
2221
2717
|
setMounted(true);
|
|
2222
2718
|
const t2 = setTimeout(() => setVisible(true), 1);
|
|
2223
2719
|
return () => clearTimeout(t2);
|
|
2224
2720
|
}
|
|
2225
2721
|
setVisible(false);
|
|
2226
|
-
const t = setTimeout(() => setMounted(false),
|
|
2722
|
+
const t = setTimeout(() => setMounted(false), ANIMATION_DURATION_MS3);
|
|
2227
2723
|
return () => clearTimeout(t);
|
|
2228
2724
|
}, [isOpen]);
|
|
2229
|
-
const open =
|
|
2230
|
-
const close =
|
|
2231
|
-
const toggle =
|
|
2725
|
+
const open = React16.useCallback(() => setOpen(true), []);
|
|
2726
|
+
const close = React16.useCallback(() => setOpen(false), []);
|
|
2727
|
+
const toggle = React16.useCallback(() => setOpen((prev) => !prev), []);
|
|
2232
2728
|
useClickOutside_default([contentRef, triggerRef], close, isOpen);
|
|
2233
2729
|
const position = useAutoPosition_default(triggerRef, contentRef, mounted);
|
|
2234
|
-
const setSelected =
|
|
2730
|
+
const setSelected = React16.useCallback(
|
|
2235
2731
|
(label, value2) => {
|
|
2236
2732
|
setSelectedLabel(label);
|
|
2237
2733
|
onChange?.(value2, label);
|
|
2238
2734
|
},
|
|
2239
2735
|
[onChange]
|
|
2240
2736
|
);
|
|
2241
|
-
const value =
|
|
2737
|
+
const value = React16.useMemo(
|
|
2242
2738
|
() => ({
|
|
2243
2739
|
isOpen,
|
|
2244
2740
|
mounted,
|
|
@@ -2259,7 +2755,7 @@ var SelectRoot = (props) => {
|
|
|
2259
2755
|
if (disabled) return;
|
|
2260
2756
|
toggle();
|
|
2261
2757
|
};
|
|
2262
|
-
return /* @__PURE__ */
|
|
2758
|
+
return /* @__PURE__ */ jsx319(context_default.Provider, { value, children: /* @__PURE__ */ jsxs203(
|
|
2263
2759
|
"div",
|
|
2264
2760
|
{
|
|
2265
2761
|
className: clsx_default(
|
|
@@ -2269,7 +2765,7 @@ var SelectRoot = (props) => {
|
|
|
2269
2765
|
mounted && "is-open"
|
|
2270
2766
|
),
|
|
2271
2767
|
children: [
|
|
2272
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ jsxs203(
|
|
2273
2769
|
"div",
|
|
2274
2770
|
{
|
|
2275
2771
|
ref: triggerRef,
|
|
@@ -2293,7 +2789,7 @@ var SelectRoot = (props) => {
|
|
|
2293
2789
|
}
|
|
2294
2790
|
},
|
|
2295
2791
|
children: [
|
|
2296
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ jsx319(
|
|
2297
2793
|
"span",
|
|
2298
2794
|
{
|
|
2299
2795
|
className: clsx_default(
|
|
@@ -2303,18 +2799,18 @@ var SelectRoot = (props) => {
|
|
|
2303
2799
|
children: selectedLabel ?? placeholder
|
|
2304
2800
|
}
|
|
2305
2801
|
),
|
|
2306
|
-
/* @__PURE__ */
|
|
2802
|
+
/* @__PURE__ */ jsx319(
|
|
2307
2803
|
"span",
|
|
2308
2804
|
{
|
|
2309
2805
|
className: clsx_default("select-trigger-icon", isOpen && "open"),
|
|
2310
2806
|
"aria-hidden": true,
|
|
2311
|
-
children: /* @__PURE__ */
|
|
2807
|
+
children: /* @__PURE__ */ jsx319(ChevronDownIcon_default, {})
|
|
2312
2808
|
}
|
|
2313
2809
|
)
|
|
2314
2810
|
]
|
|
2315
2811
|
}
|
|
2316
2812
|
),
|
|
2317
|
-
mounted && /* @__PURE__ */
|
|
2813
|
+
mounted && /* @__PURE__ */ jsx319(
|
|
2318
2814
|
"div",
|
|
2319
2815
|
{
|
|
2320
2816
|
className: clsx_default("select-content", position.direction, stateClass),
|
|
@@ -2335,10 +2831,10 @@ var Select = Object.assign(SelectRoot, {
|
|
|
2335
2831
|
var Select_default = Select;
|
|
2336
2832
|
|
|
2337
2833
|
// src/components/HtmlTypeWriter/HtmlTypeWriter.tsx
|
|
2338
|
-
import
|
|
2834
|
+
import React18 from "react";
|
|
2339
2835
|
|
|
2340
2836
|
// src/components/HtmlTypeWriter/utils.ts
|
|
2341
|
-
import
|
|
2837
|
+
import React17 from "react";
|
|
2342
2838
|
var voidTags = /* @__PURE__ */ new Set([
|
|
2343
2839
|
"br",
|
|
2344
2840
|
"img",
|
|
@@ -2406,40 +2902,40 @@ function convertNodeToReactWithRange(node, typedLen, rangeMap) {
|
|
|
2406
2902
|
props[attr.name] = attr.value;
|
|
2407
2903
|
});
|
|
2408
2904
|
if (voidTags.has(tag)) {
|
|
2409
|
-
return
|
|
2905
|
+
return React17.createElement(tag, props);
|
|
2410
2906
|
}
|
|
2411
2907
|
const children = Array.from(element.childNodes).map((child) => convertNodeToReactWithRange(child, typedLen, rangeMap)).filter((n) => n != null);
|
|
2412
|
-
return
|
|
2908
|
+
return React17.createElement(tag, props, ...children);
|
|
2413
2909
|
}
|
|
2414
2910
|
function htmlToReactProgressive(root, typedLen, rangeMap) {
|
|
2415
2911
|
const nodes = Array.from(root.childNodes).map((child, idx) => {
|
|
2416
2912
|
const node = convertNodeToReactWithRange(child, typedLen, rangeMap);
|
|
2417
|
-
return node == null ? null :
|
|
2913
|
+
return node == null ? null : React17.createElement(React17.Fragment, { key: idx }, node);
|
|
2418
2914
|
}).filter(Boolean);
|
|
2419
2915
|
return nodes.length === 0 ? null : nodes;
|
|
2420
2916
|
}
|
|
2421
2917
|
|
|
2422
2918
|
// src/components/HtmlTypeWriter/HtmlTypeWriter.tsx
|
|
2423
|
-
import { jsx as
|
|
2919
|
+
import { jsx as jsx320 } from "react/jsx-runtime";
|
|
2424
2920
|
var HtmlTypeWriter = ({
|
|
2425
2921
|
html,
|
|
2426
2922
|
duration = 20,
|
|
2427
2923
|
onDone,
|
|
2428
2924
|
onChange
|
|
2429
2925
|
}) => {
|
|
2430
|
-
const [typedLen, setTypedLen] =
|
|
2431
|
-
const doneCalledRef =
|
|
2432
|
-
const { doc, rangeMap, totalLength } =
|
|
2926
|
+
const [typedLen, setTypedLen] = React18.useState(0);
|
|
2927
|
+
const doneCalledRef = React18.useRef(false);
|
|
2928
|
+
const { doc, rangeMap, totalLength } = React18.useMemo(() => {
|
|
2433
2929
|
const decoded = decodeHtmlEntities(html);
|
|
2434
2930
|
const doc2 = new DOMParser().parseFromString(decoded, "text/html");
|
|
2435
2931
|
const { rangeMap: rangeMap2, totalLength: totalLength2 } = buildRangeMap(doc2.body);
|
|
2436
2932
|
return { doc: doc2, rangeMap: rangeMap2, totalLength: totalLength2 };
|
|
2437
2933
|
}, [html]);
|
|
2438
|
-
|
|
2934
|
+
React18.useEffect(() => {
|
|
2439
2935
|
setTypedLen(0);
|
|
2440
2936
|
doneCalledRef.current = false;
|
|
2441
2937
|
}, [html]);
|
|
2442
|
-
|
|
2938
|
+
React18.useEffect(() => {
|
|
2443
2939
|
if (!totalLength) return;
|
|
2444
2940
|
if (typedLen >= totalLength) return;
|
|
2445
2941
|
const timer = window.setInterval(() => {
|
|
@@ -2447,36 +2943,42 @@ var HtmlTypeWriter = ({
|
|
|
2447
2943
|
}, duration);
|
|
2448
2944
|
return () => window.clearInterval(timer);
|
|
2449
2945
|
}, [typedLen, totalLength, duration]);
|
|
2450
|
-
|
|
2946
|
+
React18.useEffect(() => {
|
|
2451
2947
|
if (typedLen > 0 && typedLen < totalLength) {
|
|
2452
2948
|
onChange?.();
|
|
2453
2949
|
}
|
|
2454
2950
|
}, [typedLen, totalLength, onChange]);
|
|
2455
|
-
|
|
2951
|
+
React18.useEffect(() => {
|
|
2456
2952
|
if (typedLen === totalLength && totalLength > 0 && !doneCalledRef.current) {
|
|
2457
2953
|
doneCalledRef.current = true;
|
|
2458
2954
|
onDone?.();
|
|
2459
2955
|
}
|
|
2460
2956
|
}, [typedLen, totalLength, onDone]);
|
|
2461
|
-
const parsed =
|
|
2957
|
+
const parsed = React18.useMemo(
|
|
2462
2958
|
() => htmlToReactProgressive(doc.body, typedLen, rangeMap),
|
|
2463
2959
|
[doc.body, typedLen, rangeMap]
|
|
2464
2960
|
);
|
|
2465
|
-
return /* @__PURE__ */
|
|
2961
|
+
return /* @__PURE__ */ jsx320("div", { className: "lib-xplat-htmlTypewriter", children: parsed });
|
|
2466
2962
|
};
|
|
2467
2963
|
HtmlTypeWriter.displayName = "HtmlTypeWriter";
|
|
2468
2964
|
var HtmlTypeWriter_default = HtmlTypeWriter;
|
|
2469
2965
|
|
|
2470
2966
|
// src/components/ImageSelector/ImageSelector.tsx
|
|
2471
|
-
import
|
|
2472
|
-
import { jsx as
|
|
2967
|
+
import React19 from "react";
|
|
2968
|
+
import { jsx as jsx321, jsxs as jsxs204 } from "react/jsx-runtime";
|
|
2473
2969
|
var ImageSelector = (props) => {
|
|
2474
2970
|
const { value, label, onChange } = props;
|
|
2475
|
-
const previewUrl =
|
|
2476
|
-
|
|
2477
|
-
|
|
2971
|
+
const [previewUrl, setPreviewUrl] = React19.useState();
|
|
2972
|
+
React19.useEffect(() => {
|
|
2973
|
+
if (!value) {
|
|
2974
|
+
setPreviewUrl(void 0);
|
|
2975
|
+
return;
|
|
2976
|
+
}
|
|
2977
|
+
const url = URL.createObjectURL(value);
|
|
2978
|
+
setPreviewUrl(url);
|
|
2979
|
+
return () => URL.revokeObjectURL(url);
|
|
2478
2980
|
}, [value]);
|
|
2479
|
-
const inputRef =
|
|
2981
|
+
const inputRef = React19.useRef(null);
|
|
2480
2982
|
const handleFileChange = (e) => {
|
|
2481
2983
|
const selectedFile = e.target.files?.[0];
|
|
2482
2984
|
if (selectedFile) {
|
|
@@ -2489,8 +2991,8 @@ var ImageSelector = (props) => {
|
|
|
2489
2991
|
const handleOpenFileDialog = () => {
|
|
2490
2992
|
inputRef.current?.click();
|
|
2491
2993
|
};
|
|
2492
|
-
return /* @__PURE__ */
|
|
2493
|
-
/* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ jsxs204("div", { className: `lib-xplat-imageselector${value ? "" : " none-value"}`, children: [
|
|
2995
|
+
/* @__PURE__ */ jsx321(
|
|
2494
2996
|
"input",
|
|
2495
2997
|
{
|
|
2496
2998
|
type: "file",
|
|
@@ -2500,31 +3002,120 @@ var ImageSelector = (props) => {
|
|
|
2500
3002
|
ref: inputRef
|
|
2501
3003
|
}
|
|
2502
3004
|
),
|
|
2503
|
-
value && /* @__PURE__ */
|
|
2504
|
-
/* @__PURE__ */
|
|
2505
|
-
/* @__PURE__ */
|
|
3005
|
+
value && /* @__PURE__ */ jsxs204("div", { className: "action-bar", children: [
|
|
3006
|
+
/* @__PURE__ */ jsx321("div", { className: "icon-wrapper", onClick: handleOpenFileDialog, children: /* @__PURE__ */ jsx321(UploadIcon_default, {}) }),
|
|
3007
|
+
/* @__PURE__ */ jsx321("div", { className: "icon-wrapper", onClick: handleDeleteFile, children: /* @__PURE__ */ jsx321(DeleteIcon_default, {}) })
|
|
2506
3008
|
] }),
|
|
2507
|
-
/* @__PURE__ */
|
|
2508
|
-
/* @__PURE__ */
|
|
2509
|
-
/* @__PURE__ */
|
|
3009
|
+
/* @__PURE__ */ jsx321("div", { className: "content", children: previewUrl ? /* @__PURE__ */ jsx321("img", { src: previewUrl, alt: "preview" }) : /* @__PURE__ */ jsxs204("div", { className: "skeleton", onClick: handleOpenFileDialog, children: [
|
|
3010
|
+
/* @__PURE__ */ jsx321("div", { className: "icon-wrapper", children: /* @__PURE__ */ jsx321(ImageIcon_default, {}) }),
|
|
3011
|
+
/* @__PURE__ */ jsx321("div", { className: "label", children: label || "\uC774\uBBF8\uC9C0 \uCD94\uAC00\uD558\uAE30" })
|
|
2510
3012
|
] }) })
|
|
2511
3013
|
] });
|
|
2512
3014
|
};
|
|
2513
3015
|
ImageSelector.displayName = "ImageSelector";
|
|
2514
3016
|
var ImageSelector_default = ImageSelector;
|
|
2515
3017
|
|
|
3018
|
+
// src/components/Pagination/Pagination.tsx
|
|
3019
|
+
import { jsx as jsx322, jsxs as jsxs205 } from "react/jsx-runtime";
|
|
3020
|
+
function getPageRange(current, totalPages, siblingCount) {
|
|
3021
|
+
const totalNumbers = siblingCount * 2 + 5;
|
|
3022
|
+
if (totalPages <= totalNumbers) {
|
|
3023
|
+
return Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
3024
|
+
}
|
|
3025
|
+
const leftSibling = Math.max(current - siblingCount, 1);
|
|
3026
|
+
const rightSibling = Math.min(current + siblingCount, totalPages);
|
|
3027
|
+
const showLeftDots = leftSibling > 3;
|
|
3028
|
+
const showRightDots = rightSibling < totalPages - 2;
|
|
3029
|
+
if (!showLeftDots && showRightDots) {
|
|
3030
|
+
const leftCount = siblingCount * 2 + 3;
|
|
3031
|
+
const leftRange = Array.from({ length: leftCount }, (_, i) => i + 1);
|
|
3032
|
+
return [...leftRange, "...", totalPages];
|
|
3033
|
+
}
|
|
3034
|
+
if (showLeftDots && !showRightDots) {
|
|
3035
|
+
const rightCount = siblingCount * 2 + 3;
|
|
3036
|
+
const rightRange = Array.from({ length: rightCount }, (_, i) => totalPages - rightCount + i + 1);
|
|
3037
|
+
return [1, "...", ...rightRange];
|
|
3038
|
+
}
|
|
3039
|
+
const middleRange = Array.from(
|
|
3040
|
+
{ length: rightSibling - leftSibling + 1 },
|
|
3041
|
+
(_, i) => leftSibling + i
|
|
3042
|
+
);
|
|
3043
|
+
return [1, "...", ...middleRange, "...", totalPages];
|
|
3044
|
+
}
|
|
3045
|
+
var Pagination = (props) => {
|
|
3046
|
+
const {
|
|
3047
|
+
current,
|
|
3048
|
+
total,
|
|
3049
|
+
pageSize = 10,
|
|
3050
|
+
siblingCount = 1,
|
|
3051
|
+
onChange,
|
|
3052
|
+
colorNamespace = "xplat",
|
|
3053
|
+
color = "blue",
|
|
3054
|
+
colorDepth,
|
|
3055
|
+
className
|
|
3056
|
+
} = props;
|
|
3057
|
+
const colorClass = getColorClass(
|
|
3058
|
+
colorNamespace,
|
|
3059
|
+
color,
|
|
3060
|
+
colorDepth ?? 500
|
|
3061
|
+
);
|
|
3062
|
+
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
|
3063
|
+
const pages = getPageRange(current, totalPages, siblingCount);
|
|
3064
|
+
const handleClick = (page) => {
|
|
3065
|
+
if (page !== current && page >= 1 && page <= totalPages) {
|
|
3066
|
+
onChange?.(page);
|
|
3067
|
+
}
|
|
3068
|
+
};
|
|
3069
|
+
return /* @__PURE__ */ jsxs205("nav", { className: clsx_default("lib-xplat-pagination", className), "aria-label": "\uD398\uC774\uC9C0 \uB124\uBE44\uAC8C\uC774\uC158", children: [
|
|
3070
|
+
/* @__PURE__ */ jsx322(
|
|
3071
|
+
"button",
|
|
3072
|
+
{
|
|
3073
|
+
className: "page-btn prev",
|
|
3074
|
+
disabled: current <= 1,
|
|
3075
|
+
onClick: () => handleClick(current - 1),
|
|
3076
|
+
"aria-label": "\uC774\uC804 \uD398\uC774\uC9C0",
|
|
3077
|
+
children: /* @__PURE__ */ jsx322(ChevronLeftIcon_default, {})
|
|
3078
|
+
}
|
|
3079
|
+
),
|
|
3080
|
+
pages.map(
|
|
3081
|
+
(page, i) => page === "..." ? /* @__PURE__ */ jsx322("span", { className: "dots", children: "..." }, `dots-${i}`) : /* @__PURE__ */ jsx322(
|
|
3082
|
+
"button",
|
|
3083
|
+
{
|
|
3084
|
+
className: clsx_default("page-btn", colorClass, { active: page === current }),
|
|
3085
|
+
onClick: () => handleClick(page),
|
|
3086
|
+
"aria-current": page === current ? "page" : void 0,
|
|
3087
|
+
children: page
|
|
3088
|
+
},
|
|
3089
|
+
page
|
|
3090
|
+
)
|
|
3091
|
+
),
|
|
3092
|
+
/* @__PURE__ */ jsx322(
|
|
3093
|
+
"button",
|
|
3094
|
+
{
|
|
3095
|
+
className: "page-btn next",
|
|
3096
|
+
disabled: current >= totalPages,
|
|
3097
|
+
onClick: () => handleClick(current + 1),
|
|
3098
|
+
"aria-label": "\uB2E4\uC74C \uD398\uC774\uC9C0",
|
|
3099
|
+
children: /* @__PURE__ */ jsx322(ChevronRightIcon_default, {})
|
|
3100
|
+
}
|
|
3101
|
+
)
|
|
3102
|
+
] });
|
|
3103
|
+
};
|
|
3104
|
+
Pagination.displayName = "Pagination";
|
|
3105
|
+
var Pagination_default = Pagination;
|
|
3106
|
+
|
|
2516
3107
|
// src/components/PopOver/PopOver.tsx
|
|
2517
|
-
import
|
|
2518
|
-
import { jsx as
|
|
3108
|
+
import React20 from "react";
|
|
3109
|
+
import { jsx as jsx323, jsxs as jsxs206 } from "react/jsx-runtime";
|
|
2519
3110
|
var PopOver = (props) => {
|
|
2520
3111
|
const { children, isOpen, onClose, PopOverEl } = props;
|
|
2521
|
-
const popRef =
|
|
2522
|
-
const triggerRef =
|
|
2523
|
-
const [localOpen, setLocalOpen] =
|
|
2524
|
-
const [eventTrigger, setEventTrigger] =
|
|
3112
|
+
const popRef = React20.useRef(null);
|
|
3113
|
+
const triggerRef = React20.useRef(null);
|
|
3114
|
+
const [localOpen, setLocalOpen] = React20.useState(false);
|
|
3115
|
+
const [eventTrigger, setEventTrigger] = React20.useState(false);
|
|
2525
3116
|
useClickOutside_default([popRef, triggerRef], onClose, isOpen);
|
|
2526
3117
|
const position = useAutoPosition_default(triggerRef, popRef, localOpen);
|
|
2527
|
-
|
|
3118
|
+
React20.useEffect(() => {
|
|
2528
3119
|
if (isOpen) {
|
|
2529
3120
|
setLocalOpen(isOpen);
|
|
2530
3121
|
setTimeout(() => {
|
|
@@ -2537,7 +3128,7 @@ var PopOver = (props) => {
|
|
|
2537
3128
|
}, 200);
|
|
2538
3129
|
}
|
|
2539
3130
|
}, [isOpen]);
|
|
2540
|
-
return /* @__PURE__ */
|
|
3131
|
+
return /* @__PURE__ */ jsxs206(
|
|
2541
3132
|
"div",
|
|
2542
3133
|
{
|
|
2543
3134
|
className: "lib-xplat-pop-over",
|
|
@@ -2547,7 +3138,7 @@ var PopOver = (props) => {
|
|
|
2547
3138
|
},
|
|
2548
3139
|
children: [
|
|
2549
3140
|
children,
|
|
2550
|
-
localOpen && /* @__PURE__ */
|
|
3141
|
+
localOpen && /* @__PURE__ */ jsx323(
|
|
2551
3142
|
"div",
|
|
2552
3143
|
{
|
|
2553
3144
|
className: clsx_default(
|
|
@@ -2569,18 +3160,64 @@ var PopOver = (props) => {
|
|
|
2569
3160
|
PopOver.displayName = "PopOver";
|
|
2570
3161
|
var PopOver_default = PopOver;
|
|
2571
3162
|
|
|
3163
|
+
// src/components/Progress/Progress.tsx
|
|
3164
|
+
import { jsx as jsx324, jsxs as jsxs207 } from "react/jsx-runtime";
|
|
3165
|
+
var Progress = (props) => {
|
|
3166
|
+
const {
|
|
3167
|
+
value,
|
|
3168
|
+
max = 100,
|
|
3169
|
+
size = "md",
|
|
3170
|
+
showLabel = false,
|
|
3171
|
+
colorNamespace = "xplat",
|
|
3172
|
+
color = "blue",
|
|
3173
|
+
colorDepth,
|
|
3174
|
+
className
|
|
3175
|
+
} = props;
|
|
3176
|
+
const colorClass = getColorClass(
|
|
3177
|
+
colorNamespace,
|
|
3178
|
+
color,
|
|
3179
|
+
colorDepth ?? 500
|
|
3180
|
+
);
|
|
3181
|
+
const percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
3182
|
+
return /* @__PURE__ */ jsxs207("div", { className: clsx_default("lib-xplat-progress", size, className), children: [
|
|
3183
|
+
/* @__PURE__ */ jsx324(
|
|
3184
|
+
"div",
|
|
3185
|
+
{
|
|
3186
|
+
className: "track",
|
|
3187
|
+
role: "progressbar",
|
|
3188
|
+
"aria-valuenow": value,
|
|
3189
|
+
"aria-valuemin": 0,
|
|
3190
|
+
"aria-valuemax": max,
|
|
3191
|
+
children: /* @__PURE__ */ jsx324(
|
|
3192
|
+
"div",
|
|
3193
|
+
{
|
|
3194
|
+
className: clsx_default("bar", colorClass),
|
|
3195
|
+
style: { width: `${percentage}%` }
|
|
3196
|
+
}
|
|
3197
|
+
)
|
|
3198
|
+
}
|
|
3199
|
+
),
|
|
3200
|
+
showLabel && /* @__PURE__ */ jsxs207("span", { className: "label", children: [
|
|
3201
|
+
Math.round(percentage),
|
|
3202
|
+
"%"
|
|
3203
|
+
] })
|
|
3204
|
+
] });
|
|
3205
|
+
};
|
|
3206
|
+
Progress.displayName = "Progress";
|
|
3207
|
+
var Progress_default = Progress;
|
|
3208
|
+
|
|
2572
3209
|
// src/components/Radio/RadioGroupContext.tsx
|
|
2573
|
-
import
|
|
2574
|
-
var RadioGroupContext =
|
|
3210
|
+
import React21 from "react";
|
|
3211
|
+
var RadioGroupContext = React21.createContext(
|
|
2575
3212
|
null
|
|
2576
3213
|
);
|
|
2577
3214
|
var useRadioGroupContext = () => {
|
|
2578
|
-
return
|
|
3215
|
+
return React21.useContext(RadioGroupContext);
|
|
2579
3216
|
};
|
|
2580
3217
|
var RadioGroupContext_default = RadioGroupContext;
|
|
2581
3218
|
|
|
2582
3219
|
// src/components/Radio/Radio.tsx
|
|
2583
|
-
import { jsx as
|
|
3220
|
+
import { jsx as jsx325, jsxs as jsxs208 } from "react/jsx-runtime";
|
|
2584
3221
|
var Radio = (props) => {
|
|
2585
3222
|
const {
|
|
2586
3223
|
label,
|
|
@@ -2604,7 +3241,7 @@ var Radio = (props) => {
|
|
|
2604
3241
|
color,
|
|
2605
3242
|
colorDepth ?? 500
|
|
2606
3243
|
);
|
|
2607
|
-
return /* @__PURE__ */
|
|
3244
|
+
return /* @__PURE__ */ jsxs208(
|
|
2608
3245
|
"label",
|
|
2609
3246
|
{
|
|
2610
3247
|
className: clsx_default(
|
|
@@ -2613,8 +3250,8 @@ var Radio = (props) => {
|
|
|
2613
3250
|
className
|
|
2614
3251
|
),
|
|
2615
3252
|
children: [
|
|
2616
|
-
/* @__PURE__ */
|
|
2617
|
-
/* @__PURE__ */
|
|
3253
|
+
/* @__PURE__ */ jsx325("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
|
|
3254
|
+
/* @__PURE__ */ jsx325(
|
|
2618
3255
|
"div",
|
|
2619
3256
|
{
|
|
2620
3257
|
className: clsx_default(
|
|
@@ -2622,10 +3259,10 @@ var Radio = (props) => {
|
|
|
2622
3259
|
localChecked ? "checked" : void 0,
|
|
2623
3260
|
colorClass
|
|
2624
3261
|
),
|
|
2625
|
-
children: localChecked && /* @__PURE__ */
|
|
3262
|
+
children: localChecked && /* @__PURE__ */ jsx325("div", { className: "inner-circle" })
|
|
2626
3263
|
}
|
|
2627
3264
|
),
|
|
2628
|
-
label && /* @__PURE__ */
|
|
3265
|
+
label && /* @__PURE__ */ jsx325("span", { children: label })
|
|
2629
3266
|
]
|
|
2630
3267
|
}
|
|
2631
3268
|
);
|
|
@@ -2634,17 +3271,120 @@ Radio.displayName = "Radio";
|
|
|
2634
3271
|
var Radio_default = Radio;
|
|
2635
3272
|
|
|
2636
3273
|
// src/components/Radio/RadioGroup.tsx
|
|
2637
|
-
import { Fragment, jsx as
|
|
3274
|
+
import { Fragment, jsx as jsx326 } from "react/jsx-runtime";
|
|
2638
3275
|
var RadioGroup = (props) => {
|
|
2639
3276
|
const { children, ...rest } = props;
|
|
2640
|
-
return /* @__PURE__ */
|
|
3277
|
+
return /* @__PURE__ */ jsx326(Fragment, { children: /* @__PURE__ */ jsx326(RadioGroupContext_default.Provider, { value: rest, children }) });
|
|
2641
3278
|
};
|
|
2642
3279
|
RadioGroup.displayName = "RadioGroup";
|
|
2643
3280
|
var RadioGroup_default = RadioGroup;
|
|
2644
3281
|
|
|
3282
|
+
// src/components/Skeleton/Skeleton.tsx
|
|
3283
|
+
import { jsx as jsx327 } from "react/jsx-runtime";
|
|
3284
|
+
var Skeleton = (props) => {
|
|
3285
|
+
const { variant = "text", width, height, className } = props;
|
|
3286
|
+
const style = {
|
|
3287
|
+
width: typeof width === "number" ? `${width}px` : width,
|
|
3288
|
+
height: typeof height === "number" ? `${height}px` : height
|
|
3289
|
+
};
|
|
3290
|
+
return /* @__PURE__ */ jsx327(
|
|
3291
|
+
"div",
|
|
3292
|
+
{
|
|
3293
|
+
className: clsx_default("lib-xplat-skeleton", variant, className),
|
|
3294
|
+
style,
|
|
3295
|
+
"aria-hidden": "true"
|
|
3296
|
+
}
|
|
3297
|
+
);
|
|
3298
|
+
};
|
|
3299
|
+
Skeleton.displayName = "Skeleton";
|
|
3300
|
+
var Skeleton_default = Skeleton;
|
|
3301
|
+
|
|
3302
|
+
// src/components/Spinner/Spinner.tsx
|
|
3303
|
+
import { jsx as jsx328, jsxs as jsxs209 } from "react/jsx-runtime";
|
|
3304
|
+
var Spinner = (props) => {
|
|
3305
|
+
const {
|
|
3306
|
+
size = "md",
|
|
3307
|
+
colorNamespace = "xplat",
|
|
3308
|
+
color = "blue",
|
|
3309
|
+
colorDepth,
|
|
3310
|
+
className
|
|
3311
|
+
} = props;
|
|
3312
|
+
const colorClass = getColorClass(
|
|
3313
|
+
colorNamespace,
|
|
3314
|
+
color,
|
|
3315
|
+
colorDepth ?? 500
|
|
3316
|
+
);
|
|
3317
|
+
return /* @__PURE__ */ jsx328(
|
|
3318
|
+
"div",
|
|
3319
|
+
{
|
|
3320
|
+
className: clsx_default("lib-xplat-spinner", size, colorClass, className),
|
|
3321
|
+
role: "status",
|
|
3322
|
+
"aria-label": "\uB85C\uB529 \uC911",
|
|
3323
|
+
children: /* @__PURE__ */ jsxs209("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3324
|
+
/* @__PURE__ */ jsx328(
|
|
3325
|
+
"circle",
|
|
3326
|
+
{
|
|
3327
|
+
className: "track",
|
|
3328
|
+
cx: "12",
|
|
3329
|
+
cy: "12",
|
|
3330
|
+
r: "10",
|
|
3331
|
+
strokeWidth: "3"
|
|
3332
|
+
}
|
|
3333
|
+
),
|
|
3334
|
+
/* @__PURE__ */ jsx328(
|
|
3335
|
+
"circle",
|
|
3336
|
+
{
|
|
3337
|
+
className: "indicator",
|
|
3338
|
+
cx: "12",
|
|
3339
|
+
cy: "12",
|
|
3340
|
+
r: "10",
|
|
3341
|
+
strokeWidth: "3",
|
|
3342
|
+
strokeLinecap: "round"
|
|
3343
|
+
}
|
|
3344
|
+
)
|
|
3345
|
+
] })
|
|
3346
|
+
}
|
|
3347
|
+
);
|
|
3348
|
+
};
|
|
3349
|
+
Spinner.displayName = "Spinner";
|
|
3350
|
+
var Spinner_default = Spinner;
|
|
3351
|
+
|
|
3352
|
+
// src/components/Steps/Steps.tsx
|
|
3353
|
+
import { jsx as jsx329, jsxs as jsxs210 } from "react/jsx-runtime";
|
|
3354
|
+
var Steps = (props) => {
|
|
3355
|
+
const {
|
|
3356
|
+
items,
|
|
3357
|
+
current,
|
|
3358
|
+
colorNamespace = "xplat",
|
|
3359
|
+
color = "blue",
|
|
3360
|
+
colorDepth,
|
|
3361
|
+
className
|
|
3362
|
+
} = props;
|
|
3363
|
+
const colorClass = getColorClass(
|
|
3364
|
+
colorNamespace,
|
|
3365
|
+
color,
|
|
3366
|
+
colorDepth ?? 500
|
|
3367
|
+
);
|
|
3368
|
+
return /* @__PURE__ */ jsx329("div", { className: clsx_default("lib-xplat-steps", className), children: items.map((item, index) => {
|
|
3369
|
+
const status = index < current ? "completed" : index === current ? "active" : "pending";
|
|
3370
|
+
return /* @__PURE__ */ jsxs210("div", { className: clsx_default("step-item", status), children: [
|
|
3371
|
+
/* @__PURE__ */ jsxs210("div", { className: "step-indicator", children: [
|
|
3372
|
+
/* @__PURE__ */ jsx329("div", { className: clsx_default("step-circle", colorClass), children: status === "completed" ? /* @__PURE__ */ jsx329(CheckIcon_default, {}) : /* @__PURE__ */ jsx329("span", { children: index + 1 }) }),
|
|
3373
|
+
index < items.length - 1 && /* @__PURE__ */ jsx329("div", { className: clsx_default("step-line", colorClass) })
|
|
3374
|
+
] }),
|
|
3375
|
+
/* @__PURE__ */ jsxs210("div", { className: "step-content", children: [
|
|
3376
|
+
/* @__PURE__ */ jsx329("span", { className: "step-title", children: item.title }),
|
|
3377
|
+
item.description && /* @__PURE__ */ jsx329("span", { className: "step-description", children: item.description })
|
|
3378
|
+
] })
|
|
3379
|
+
] }, index);
|
|
3380
|
+
}) });
|
|
3381
|
+
};
|
|
3382
|
+
Steps.displayName = "Steps";
|
|
3383
|
+
var Steps_default = Steps;
|
|
3384
|
+
|
|
2645
3385
|
// src/components/Switch/Switch.tsx
|
|
2646
|
-
import
|
|
2647
|
-
import { jsx as
|
|
3386
|
+
import React22 from "react";
|
|
3387
|
+
import { jsx as jsx330 } from "react/jsx-runtime";
|
|
2648
3388
|
var KNOB_TRANSITION_MS = 250;
|
|
2649
3389
|
var Switch = (props) => {
|
|
2650
3390
|
const {
|
|
@@ -2656,9 +3396,9 @@ var Switch = (props) => {
|
|
|
2656
3396
|
colorDepth,
|
|
2657
3397
|
className
|
|
2658
3398
|
} = props;
|
|
2659
|
-
const [isAnimating, setIsAnimating] =
|
|
2660
|
-
const timeoutRef =
|
|
2661
|
-
|
|
3399
|
+
const [isAnimating, setIsAnimating] = React22.useState(false);
|
|
3400
|
+
const timeoutRef = React22.useRef(null);
|
|
3401
|
+
React22.useEffect(() => {
|
|
2662
3402
|
return () => {
|
|
2663
3403
|
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
2664
3404
|
};
|
|
@@ -2678,7 +3418,7 @@ var Switch = (props) => {
|
|
|
2678
3418
|
color,
|
|
2679
3419
|
colorDepth ?? 500
|
|
2680
3420
|
);
|
|
2681
|
-
return /* @__PURE__ */
|
|
3421
|
+
return /* @__PURE__ */ jsx330(
|
|
2682
3422
|
"div",
|
|
2683
3423
|
{
|
|
2684
3424
|
className: clsx_default(
|
|
@@ -2691,7 +3431,7 @@ var Switch = (props) => {
|
|
|
2691
3431
|
),
|
|
2692
3432
|
onClick: handleClick,
|
|
2693
3433
|
"aria-disabled": disabled || isAnimating,
|
|
2694
|
-
children: /* @__PURE__ */
|
|
3434
|
+
children: /* @__PURE__ */ jsx330("div", { className: clsx_default("knob", value ? "checked" : void 0) })
|
|
2695
3435
|
}
|
|
2696
3436
|
);
|
|
2697
3437
|
};
|
|
@@ -2699,14 +3439,14 @@ Switch.displayName = "Switch";
|
|
|
2699
3439
|
var Switch_default = Switch;
|
|
2700
3440
|
|
|
2701
3441
|
// src/components/Tab/Tab.tsx
|
|
2702
|
-
import
|
|
3442
|
+
import React24 from "react";
|
|
2703
3443
|
|
|
2704
3444
|
// src/components/Tab/TabItem.tsx
|
|
2705
|
-
import
|
|
2706
|
-
import { jsx as
|
|
2707
|
-
var TabItem =
|
|
3445
|
+
import React23 from "react";
|
|
3446
|
+
import { jsx as jsx331 } from "react/jsx-runtime";
|
|
3447
|
+
var TabItem = React23.forwardRef((props, ref) => {
|
|
2708
3448
|
const { isActive, title, onClick } = props;
|
|
2709
|
-
return /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ jsx331(
|
|
2710
3450
|
"div",
|
|
2711
3451
|
{
|
|
2712
3452
|
ref,
|
|
@@ -2720,25 +3460,25 @@ TabItem.displayName = "TabItem";
|
|
|
2720
3460
|
var TabItem_default = TabItem;
|
|
2721
3461
|
|
|
2722
3462
|
// src/components/Tab/Tab.tsx
|
|
2723
|
-
import { jsx as
|
|
3463
|
+
import { jsx as jsx332, jsxs as jsxs211 } from "react/jsx-runtime";
|
|
2724
3464
|
var Tab = (props) => {
|
|
2725
3465
|
const { activeIndex, onChange, tabs, type } = props;
|
|
2726
|
-
const [underlineStyle, setUnderlineStyle] =
|
|
3466
|
+
const [underlineStyle, setUnderlineStyle] = React24.useState({
|
|
2727
3467
|
left: 0,
|
|
2728
3468
|
width: 0
|
|
2729
3469
|
});
|
|
2730
|
-
const itemRefs =
|
|
3470
|
+
const itemRefs = React24.useRef([]);
|
|
2731
3471
|
const handleChangeActiveTab = (tabItem, tabIdx) => {
|
|
2732
3472
|
onChange(tabItem, tabIdx);
|
|
2733
3473
|
};
|
|
2734
|
-
|
|
3474
|
+
React24.useEffect(() => {
|
|
2735
3475
|
const el = itemRefs.current[activeIndex];
|
|
2736
3476
|
if (el) {
|
|
2737
3477
|
setUnderlineStyle({ left: el.offsetLeft, width: el.offsetWidth });
|
|
2738
3478
|
}
|
|
2739
3479
|
}, [activeIndex, tabs.length]);
|
|
2740
|
-
return /* @__PURE__ */
|
|
2741
|
-
tabs.map((tab, idx) => /* @__PURE__ */
|
|
3480
|
+
return /* @__PURE__ */ jsxs211("div", { className: clsx_default("lib-xplat-tab", `type-${type}`), children: [
|
|
3481
|
+
tabs.map((tab, idx) => /* @__PURE__ */ jsx332(
|
|
2742
3482
|
TabItem_default,
|
|
2743
3483
|
{
|
|
2744
3484
|
onClick: () => handleChangeActiveTab(tab, idx),
|
|
@@ -2750,7 +3490,7 @@ var Tab = (props) => {
|
|
|
2750
3490
|
},
|
|
2751
3491
|
`${tab.value}_${idx}`
|
|
2752
3492
|
)),
|
|
2753
|
-
type === "toggle" && /* @__PURE__ */
|
|
3493
|
+
type === "toggle" && /* @__PURE__ */ jsx332(
|
|
2754
3494
|
"div",
|
|
2755
3495
|
{
|
|
2756
3496
|
className: "tab-toggle-underline",
|
|
@@ -2766,17 +3506,17 @@ Tab.displayName = "Tab";
|
|
|
2766
3506
|
var Tab_default = Tab;
|
|
2767
3507
|
|
|
2768
3508
|
// src/components/Table/TableContext.tsx
|
|
2769
|
-
import
|
|
2770
|
-
var TableContext =
|
|
3509
|
+
import React25 from "react";
|
|
3510
|
+
var TableContext = React25.createContext(null);
|
|
2771
3511
|
var useTableContext = () => {
|
|
2772
|
-
const ctx =
|
|
3512
|
+
const ctx = React25.useContext(TableContext);
|
|
2773
3513
|
if (!ctx) throw new Error("Table components must be used inside <Table>");
|
|
2774
3514
|
return ctx;
|
|
2775
3515
|
};
|
|
2776
3516
|
var TableContext_default = TableContext;
|
|
2777
3517
|
|
|
2778
3518
|
// src/components/Table/Table.tsx
|
|
2779
|
-
import { jsx as
|
|
3519
|
+
import { jsx as jsx333 } from "react/jsx-runtime";
|
|
2780
3520
|
var Table = (props) => {
|
|
2781
3521
|
const {
|
|
2782
3522
|
className,
|
|
@@ -2786,7 +3526,7 @@ var Table = (props) => {
|
|
|
2786
3526
|
headerSticky = false,
|
|
2787
3527
|
stickyShadow = true
|
|
2788
3528
|
} = props;
|
|
2789
|
-
return /* @__PURE__ */
|
|
3529
|
+
return /* @__PURE__ */ jsx333("div", { className: clsx_default("lib-xplat-table-wrapper", className), children: /* @__PURE__ */ jsx333(
|
|
2790
3530
|
TableContext_default.Provider,
|
|
2791
3531
|
{
|
|
2792
3532
|
value: {
|
|
@@ -2795,7 +3535,7 @@ var Table = (props) => {
|
|
|
2795
3535
|
headerSticky,
|
|
2796
3536
|
stickyShadow
|
|
2797
3537
|
},
|
|
2798
|
-
children: /* @__PURE__ */
|
|
3538
|
+
children: /* @__PURE__ */ jsx333("table", { className: "lib-xplat-table", children })
|
|
2799
3539
|
}
|
|
2800
3540
|
) });
|
|
2801
3541
|
};
|
|
@@ -2803,40 +3543,40 @@ Table.displayName = "Table";
|
|
|
2803
3543
|
var Table_default = Table;
|
|
2804
3544
|
|
|
2805
3545
|
// src/components/Table/TableBody.tsx
|
|
2806
|
-
import { jsx as
|
|
3546
|
+
import { jsx as jsx334 } from "react/jsx-runtime";
|
|
2807
3547
|
var TableBody = (props) => {
|
|
2808
3548
|
const { children, className } = props;
|
|
2809
|
-
return /* @__PURE__ */
|
|
3549
|
+
return /* @__PURE__ */ jsx334("tbody", { className, children });
|
|
2810
3550
|
};
|
|
2811
3551
|
TableBody.displayName = "TableBody";
|
|
2812
3552
|
var TableBody_default = TableBody;
|
|
2813
3553
|
|
|
2814
3554
|
// src/components/Table/TableCell.tsx
|
|
2815
|
-
import
|
|
3555
|
+
import React28 from "react";
|
|
2816
3556
|
|
|
2817
3557
|
// src/components/Table/TableHeadContext.tsx
|
|
2818
|
-
import
|
|
2819
|
-
var TableHeadContext =
|
|
3558
|
+
import React26 from "react";
|
|
3559
|
+
var TableHeadContext = React26.createContext(
|
|
2820
3560
|
null
|
|
2821
3561
|
);
|
|
2822
3562
|
var useTableHeadContext = () => {
|
|
2823
|
-
const ctx =
|
|
3563
|
+
const ctx = React26.useContext(TableHeadContext);
|
|
2824
3564
|
return ctx;
|
|
2825
3565
|
};
|
|
2826
3566
|
var TableHeadContext_default = TableHeadContext;
|
|
2827
3567
|
|
|
2828
3568
|
// src/components/Table/TableRowContext.tsx
|
|
2829
|
-
import
|
|
2830
|
-
var TableRowContext =
|
|
3569
|
+
import React27 from "react";
|
|
3570
|
+
var TableRowContext = React27.createContext(null);
|
|
2831
3571
|
var useTableRowContext = () => {
|
|
2832
|
-
const ctx =
|
|
3572
|
+
const ctx = React27.useContext(TableRowContext);
|
|
2833
3573
|
if (!ctx) throw new Error("Table components must be used inside <Table>");
|
|
2834
3574
|
return ctx;
|
|
2835
3575
|
};
|
|
2836
3576
|
var TableRowContext_default = TableRowContext;
|
|
2837
3577
|
|
|
2838
3578
|
// src/components/Table/TableCell.tsx
|
|
2839
|
-
import { jsx as
|
|
3579
|
+
import { jsx as jsx335 } from "react/jsx-runtime";
|
|
2840
3580
|
var TableCell = (props) => {
|
|
2841
3581
|
const {
|
|
2842
3582
|
children,
|
|
@@ -2848,9 +3588,9 @@ var TableCell = (props) => {
|
|
|
2848
3588
|
const { registerStickyCell, stickyCells } = useTableRowContext();
|
|
2849
3589
|
const { stickyShadow } = useTableContext();
|
|
2850
3590
|
const headContext = useTableHeadContext();
|
|
2851
|
-
const [left, setLeft] =
|
|
2852
|
-
const cellRef =
|
|
2853
|
-
const calculateLeft =
|
|
3591
|
+
const [left, setLeft] = React28.useState(0);
|
|
3592
|
+
const cellRef = React28.useRef(null);
|
|
3593
|
+
const calculateLeft = React28.useCallback(() => {
|
|
2854
3594
|
if (!cellRef.current) return 0;
|
|
2855
3595
|
let totalLeft = 0;
|
|
2856
3596
|
for (const ref of stickyCells) {
|
|
@@ -2859,7 +3599,7 @@ var TableCell = (props) => {
|
|
|
2859
3599
|
}
|
|
2860
3600
|
return totalLeft;
|
|
2861
3601
|
}, [stickyCells]);
|
|
2862
|
-
|
|
3602
|
+
React28.useEffect(() => {
|
|
2863
3603
|
if (!isSticky || !cellRef.current) return;
|
|
2864
3604
|
registerStickyCell(cellRef);
|
|
2865
3605
|
setLeft(calculateLeft());
|
|
@@ -2877,7 +3617,7 @@ var TableCell = (props) => {
|
|
|
2877
3617
|
const CellTag = cellRef.current?.tagName === "TH" ? "th" : "td";
|
|
2878
3618
|
const isLastSticky = isSticky && stickyCells[stickyCells.length - 1] === cellRef;
|
|
2879
3619
|
const enableHover = headContext && headContext.cellHover;
|
|
2880
|
-
return /* @__PURE__ */
|
|
3620
|
+
return /* @__PURE__ */ jsx335(
|
|
2881
3621
|
CellTag,
|
|
2882
3622
|
{
|
|
2883
3623
|
ref: cellRef,
|
|
@@ -2899,21 +3639,21 @@ TableCell.displayName = "TableCell";
|
|
|
2899
3639
|
var TableCell_default = TableCell;
|
|
2900
3640
|
|
|
2901
3641
|
// src/components/Table/TableHead.tsx
|
|
2902
|
-
import { jsx as
|
|
3642
|
+
import { jsx as jsx336 } from "react/jsx-runtime";
|
|
2903
3643
|
var TableHead = ({
|
|
2904
3644
|
children,
|
|
2905
3645
|
className = "",
|
|
2906
3646
|
cellHover = false
|
|
2907
3647
|
}) => {
|
|
2908
3648
|
const { headerSticky } = useTableContext();
|
|
2909
|
-
return /* @__PURE__ */
|
|
3649
|
+
return /* @__PURE__ */ jsx336(TableHeadContext_default.Provider, { value: { cellHover }, children: /* @__PURE__ */ jsx336("thead", { className: clsx_default(headerSticky ? "table-sticky" : null, className), children }) });
|
|
2910
3650
|
};
|
|
2911
3651
|
TableHead.displayName = "TableHead";
|
|
2912
3652
|
var TableHead_default = TableHead;
|
|
2913
3653
|
|
|
2914
3654
|
// src/components/Table/TableRow.tsx
|
|
2915
|
-
import
|
|
2916
|
-
import { jsx as
|
|
3655
|
+
import React29 from "react";
|
|
3656
|
+
import { jsx as jsx337 } from "react/jsx-runtime";
|
|
2917
3657
|
var TableRow = (props) => {
|
|
2918
3658
|
const {
|
|
2919
3659
|
children,
|
|
@@ -2926,7 +3666,7 @@ var TableRow = (props) => {
|
|
|
2926
3666
|
onClick
|
|
2927
3667
|
} = props;
|
|
2928
3668
|
const { rowBorderUse } = useTableContext();
|
|
2929
|
-
const [stickyCells, setStickyCells] =
|
|
3669
|
+
const [stickyCells, setStickyCells] = React29.useState([]);
|
|
2930
3670
|
const registerStickyCell = (ref) => {
|
|
2931
3671
|
setStickyCells((prev) => {
|
|
2932
3672
|
if (prev.includes(ref)) return prev;
|
|
@@ -2938,7 +3678,7 @@ var TableRow = (props) => {
|
|
|
2938
3678
|
color,
|
|
2939
3679
|
colorDepth ?? 500
|
|
2940
3680
|
);
|
|
2941
|
-
return /* @__PURE__ */
|
|
3681
|
+
return /* @__PURE__ */ jsx337(TableRowContext_default.Provider, { value: { stickyCells, registerStickyCell }, children: /* @__PURE__ */ jsx337(
|
|
2942
3682
|
"tr",
|
|
2943
3683
|
{
|
|
2944
3684
|
className: clsx_default(
|
|
@@ -2957,13 +3697,37 @@ var TableRow = (props) => {
|
|
|
2957
3697
|
TableRow.displayName = "TableRow";
|
|
2958
3698
|
var TableRow_default = TableRow;
|
|
2959
3699
|
|
|
3700
|
+
// src/components/Tag/Tag.tsx
|
|
3701
|
+
import { jsx as jsx338, jsxs as jsxs212 } from "react/jsx-runtime";
|
|
3702
|
+
var Tag = (props) => {
|
|
3703
|
+
const {
|
|
3704
|
+
children,
|
|
3705
|
+
onClose,
|
|
3706
|
+
colorNamespace = "xplat",
|
|
3707
|
+
color = "neutral",
|
|
3708
|
+
colorDepth,
|
|
3709
|
+
className
|
|
3710
|
+
} = props;
|
|
3711
|
+
const colorClass = getColorClass(
|
|
3712
|
+
colorNamespace,
|
|
3713
|
+
color,
|
|
3714
|
+
colorDepth ?? 500
|
|
3715
|
+
);
|
|
3716
|
+
return /* @__PURE__ */ jsxs212("span", { className: clsx_default("lib-xplat-tag", colorClass, className), children: [
|
|
3717
|
+
/* @__PURE__ */ jsx338("span", { className: "tag-label", children }),
|
|
3718
|
+
onClose && /* @__PURE__ */ jsx338("button", { className: "tag-close", onClick: onClose, "aria-label": "\uC0AD\uC81C", children: /* @__PURE__ */ jsx338(XIcon_default, {}) })
|
|
3719
|
+
] });
|
|
3720
|
+
};
|
|
3721
|
+
Tag.displayName = "Tag";
|
|
3722
|
+
var Tag_default = Tag;
|
|
3723
|
+
|
|
2960
3724
|
// src/components/TextArea/TextArea.tsx
|
|
2961
|
-
import
|
|
2962
|
-
import { jsx as
|
|
2963
|
-
var TextArea =
|
|
3725
|
+
import React30 from "react";
|
|
3726
|
+
import { jsx as jsx339 } from "react/jsx-runtime";
|
|
3727
|
+
var TextArea = React30.forwardRef(
|
|
2964
3728
|
(props, ref) => {
|
|
2965
3729
|
const { value, onChange, className, disabled, ...textareaProps } = props;
|
|
2966
|
-
const localRef =
|
|
3730
|
+
const localRef = React30.useRef(null);
|
|
2967
3731
|
const setRefs = (el) => {
|
|
2968
3732
|
localRef.current = el;
|
|
2969
3733
|
if (!ref) return;
|
|
@@ -2983,21 +3747,21 @@ var TextArea = React25.forwardRef(
|
|
|
2983
3747
|
onChange(event);
|
|
2984
3748
|
}
|
|
2985
3749
|
};
|
|
2986
|
-
|
|
3750
|
+
React30.useEffect(() => {
|
|
2987
3751
|
const el = localRef.current;
|
|
2988
3752
|
if (!el) return;
|
|
2989
3753
|
el.style.height = "0px";
|
|
2990
3754
|
const nextHeight = Math.min(el.scrollHeight, 400);
|
|
2991
3755
|
el.style.height = `${nextHeight}px`;
|
|
2992
3756
|
}, [value]);
|
|
2993
|
-
return /* @__PURE__ */
|
|
3757
|
+
return /* @__PURE__ */ jsx339("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ jsx339(
|
|
2994
3758
|
"div",
|
|
2995
3759
|
{
|
|
2996
3760
|
className: clsx_default(
|
|
2997
3761
|
"lib-xplat-textarea",
|
|
2998
3762
|
disabled ? "disabled" : void 0
|
|
2999
3763
|
),
|
|
3000
|
-
children: /* @__PURE__ */
|
|
3764
|
+
children: /* @__PURE__ */ jsx339(
|
|
3001
3765
|
"textarea",
|
|
3002
3766
|
{
|
|
3003
3767
|
...textareaProps,
|
|
@@ -3014,9 +3778,100 @@ var TextArea = React25.forwardRef(
|
|
|
3014
3778
|
TextArea.displayName = "TextArea";
|
|
3015
3779
|
var TextArea_default = TextArea;
|
|
3016
3780
|
|
|
3781
|
+
// src/components/Toast/Toast.tsx
|
|
3782
|
+
import React31 from "react";
|
|
3783
|
+
import { createPortal as createPortal3 } from "react-dom";
|
|
3784
|
+
import { jsx as jsx340, jsxs as jsxs213 } from "react/jsx-runtime";
|
|
3785
|
+
var ToastContext = React31.createContext(null);
|
|
3786
|
+
var useToast = () => {
|
|
3787
|
+
const ctx = React31.useContext(ToastContext);
|
|
3788
|
+
if (!ctx) throw new Error("useToast must be used within ToastProvider");
|
|
3789
|
+
return ctx;
|
|
3790
|
+
};
|
|
3791
|
+
var EXIT_DURATION = 300;
|
|
3792
|
+
var ToastItemComponent = ({ item, isExiting, onClose }) => {
|
|
3793
|
+
const ref = React31.useRef(null);
|
|
3794
|
+
const [height, setHeight] = React31.useState(void 0);
|
|
3795
|
+
React31.useEffect(() => {
|
|
3796
|
+
if (ref.current && !isExiting) {
|
|
3797
|
+
setHeight(ref.current.offsetHeight);
|
|
3798
|
+
}
|
|
3799
|
+
}, [isExiting]);
|
|
3800
|
+
return /* @__PURE__ */ jsx340(
|
|
3801
|
+
"div",
|
|
3802
|
+
{
|
|
3803
|
+
className: clsx_default("lib-xplat-toast-wrapper", { exit: isExiting }),
|
|
3804
|
+
style: {
|
|
3805
|
+
maxHeight: isExiting ? 0 : height ?? "none",
|
|
3806
|
+
marginBottom: isExiting ? 0 : void 0
|
|
3807
|
+
},
|
|
3808
|
+
children: /* @__PURE__ */ jsxs213(
|
|
3809
|
+
"div",
|
|
3810
|
+
{
|
|
3811
|
+
ref,
|
|
3812
|
+
className: clsx_default("lib-xplat-toast", item.type, { exit: isExiting }),
|
|
3813
|
+
role: "alert",
|
|
3814
|
+
children: [
|
|
3815
|
+
/* @__PURE__ */ jsx340("span", { className: "message", children: item.message }),
|
|
3816
|
+
/* @__PURE__ */ jsx340("button", { className: "close-btn", onClick: onClose, "aria-label": "\uB2EB\uAE30", children: "\xD7" })
|
|
3817
|
+
]
|
|
3818
|
+
}
|
|
3819
|
+
)
|
|
3820
|
+
}
|
|
3821
|
+
);
|
|
3822
|
+
};
|
|
3823
|
+
var ToastProvider = ({
|
|
3824
|
+
children,
|
|
3825
|
+
position = "top-right"
|
|
3826
|
+
}) => {
|
|
3827
|
+
const [toasts, setToasts] = React31.useState([]);
|
|
3828
|
+
const [removing, setRemoving] = React31.useState(/* @__PURE__ */ new Set());
|
|
3829
|
+
const [mounted, setMounted] = React31.useState(false);
|
|
3830
|
+
React31.useEffect(() => {
|
|
3831
|
+
setMounted(true);
|
|
3832
|
+
}, []);
|
|
3833
|
+
const remove = React31.useCallback((id) => {
|
|
3834
|
+
setRemoving((prev) => new Set(prev).add(id));
|
|
3835
|
+
setTimeout(() => {
|
|
3836
|
+
setToasts((prev) => prev.filter((t) => t.id !== id));
|
|
3837
|
+
setRemoving((prev) => {
|
|
3838
|
+
const next = new Set(prev);
|
|
3839
|
+
next.delete(id);
|
|
3840
|
+
return next;
|
|
3841
|
+
});
|
|
3842
|
+
}, EXIT_DURATION);
|
|
3843
|
+
}, []);
|
|
3844
|
+
const toast = React31.useCallback(
|
|
3845
|
+
(type, message, duration = 3e3) => {
|
|
3846
|
+
const id = `${Date.now()}-${Math.random()}`;
|
|
3847
|
+
setToasts((prev) => [...prev, { id, type, message }]);
|
|
3848
|
+
if (duration > 0) {
|
|
3849
|
+
setTimeout(() => remove(id), duration);
|
|
3850
|
+
}
|
|
3851
|
+
},
|
|
3852
|
+
[remove]
|
|
3853
|
+
);
|
|
3854
|
+
return /* @__PURE__ */ jsxs213(ToastContext.Provider, { value: { toast }, children: [
|
|
3855
|
+
children,
|
|
3856
|
+
mounted && createPortal3(
|
|
3857
|
+
/* @__PURE__ */ jsx340("div", { className: clsx_default("lib-xplat-toast-container", position), children: toasts.map((t) => /* @__PURE__ */ jsx340(
|
|
3858
|
+
ToastItemComponent,
|
|
3859
|
+
{
|
|
3860
|
+
item: t,
|
|
3861
|
+
isExiting: removing.has(t.id),
|
|
3862
|
+
onClose: () => remove(t.id)
|
|
3863
|
+
},
|
|
3864
|
+
t.id
|
|
3865
|
+
)) }),
|
|
3866
|
+
document.body
|
|
3867
|
+
)
|
|
3868
|
+
] });
|
|
3869
|
+
};
|
|
3870
|
+
ToastProvider.displayName = "ToastProvider";
|
|
3871
|
+
|
|
3017
3872
|
// src/components/Tooltip/Tooltip.tsx
|
|
3018
|
-
import
|
|
3019
|
-
import { jsx as
|
|
3873
|
+
import React32 from "react";
|
|
3874
|
+
import { jsx as jsx341, jsxs as jsxs214 } from "react/jsx-runtime";
|
|
3020
3875
|
var Tooltip2 = (props) => {
|
|
3021
3876
|
const {
|
|
3022
3877
|
type = "primary",
|
|
@@ -3026,24 +3881,24 @@ var Tooltip2 = (props) => {
|
|
|
3026
3881
|
description,
|
|
3027
3882
|
children
|
|
3028
3883
|
} = props;
|
|
3029
|
-
const iconRef =
|
|
3884
|
+
const iconRef = React32.useRef(null);
|
|
3030
3885
|
const colorClass = getColorClass(
|
|
3031
3886
|
colorNamespace,
|
|
3032
3887
|
color,
|
|
3033
3888
|
colorDepth ?? 500
|
|
3034
3889
|
);
|
|
3035
|
-
return /* @__PURE__ */
|
|
3036
|
-
/* @__PURE__ */
|
|
3037
|
-
/* @__PURE__ */
|
|
3890
|
+
return /* @__PURE__ */ jsxs214("div", { className: "lib-xplat-tooltip", children: [
|
|
3891
|
+
/* @__PURE__ */ jsx341("div", { className: "tooltip-content", ref: iconRef, children: children || "Tooltip" }),
|
|
3892
|
+
/* @__PURE__ */ jsx341("div", { className: clsx_default("tooltip-wrapper", colorClass, type), children: description })
|
|
3038
3893
|
] });
|
|
3039
3894
|
};
|
|
3040
3895
|
Tooltip2.displayName = "Tooltip";
|
|
3041
3896
|
var Tooltip_default = Tooltip2;
|
|
3042
3897
|
|
|
3043
3898
|
// src/components/Video/Video.tsx
|
|
3044
|
-
import
|
|
3045
|
-
import { jsx as
|
|
3046
|
-
var Video =
|
|
3899
|
+
import React33 from "react";
|
|
3900
|
+
import { jsx as jsx342, jsxs as jsxs215 } from "react/jsx-runtime";
|
|
3901
|
+
var Video = React33.forwardRef((props, ref) => {
|
|
3047
3902
|
const {
|
|
3048
3903
|
src,
|
|
3049
3904
|
poster,
|
|
@@ -3057,10 +3912,10 @@ var Video = React27.forwardRef((props, ref) => {
|
|
|
3057
3912
|
onPause,
|
|
3058
3913
|
...rest
|
|
3059
3914
|
} = props;
|
|
3060
|
-
const videoRef =
|
|
3061
|
-
const [isPlaying, setIsPlaying] =
|
|
3062
|
-
const [isLoaded, setIsLoaded] =
|
|
3063
|
-
const setRefs =
|
|
3915
|
+
const videoRef = React33.useRef(null);
|
|
3916
|
+
const [isPlaying, setIsPlaying] = React33.useState(Boolean(autoPlay));
|
|
3917
|
+
const [isLoaded, setIsLoaded] = React33.useState(false);
|
|
3918
|
+
const setRefs = React33.useCallback(
|
|
3064
3919
|
(el) => {
|
|
3065
3920
|
videoRef.current = el;
|
|
3066
3921
|
if (typeof ref === "function") ref(el);
|
|
@@ -3088,7 +3943,7 @@ var Video = React27.forwardRef((props, ref) => {
|
|
|
3088
3943
|
}
|
|
3089
3944
|
};
|
|
3090
3945
|
const showCustomOverlay = !controls;
|
|
3091
|
-
return /* @__PURE__ */
|
|
3946
|
+
return /* @__PURE__ */ jsxs215(
|
|
3092
3947
|
"div",
|
|
3093
3948
|
{
|
|
3094
3949
|
className: clsx_default(
|
|
@@ -3097,7 +3952,7 @@ var Video = React27.forwardRef((props, ref) => {
|
|
|
3097
3952
|
className
|
|
3098
3953
|
),
|
|
3099
3954
|
children: [
|
|
3100
|
-
/* @__PURE__ */
|
|
3955
|
+
/* @__PURE__ */ jsx342(
|
|
3101
3956
|
"video",
|
|
3102
3957
|
{
|
|
3103
3958
|
ref: setRefs,
|
|
@@ -3114,7 +3969,7 @@ var Video = React27.forwardRef((props, ref) => {
|
|
|
3114
3969
|
...rest
|
|
3115
3970
|
}
|
|
3116
3971
|
),
|
|
3117
|
-
showCustomOverlay && /* @__PURE__ */
|
|
3972
|
+
showCustomOverlay && /* @__PURE__ */ jsx342(
|
|
3118
3973
|
"button",
|
|
3119
3974
|
{
|
|
3120
3975
|
type: "button",
|
|
@@ -3125,7 +3980,7 @@ var Video = React27.forwardRef((props, ref) => {
|
|
|
3125
3980
|
),
|
|
3126
3981
|
onClick: togglePlay,
|
|
3127
3982
|
"aria-label": isPlaying ? "\uC77C\uC2DC\uC815\uC9C0" : "\uC7AC\uC0DD",
|
|
3128
|
-
children: isPlaying ? /* @__PURE__ */
|
|
3983
|
+
children: isPlaying ? /* @__PURE__ */ jsx342(PauseIcon_default, {}) : /* @__PURE__ */ jsx342("span", { className: "play-icon", children: /* @__PURE__ */ jsx342(PlayCircleIcon_default, {}) })
|
|
3129
3984
|
}
|
|
3130
3985
|
)
|
|
3131
3986
|
]
|
|
@@ -3135,25 +3990,40 @@ var Video = React27.forwardRef((props, ref) => {
|
|
|
3135
3990
|
Video.displayName = "Video";
|
|
3136
3991
|
var Video_default = Video;
|
|
3137
3992
|
export {
|
|
3993
|
+
Accordion_default as Accordion,
|
|
3994
|
+
Alert_default as Alert,
|
|
3995
|
+
Avatar_default as Avatar,
|
|
3996
|
+
Badge_default as Badge,
|
|
3997
|
+
Breadcrumb_default as Breadcrumb,
|
|
3138
3998
|
Button_default as Button,
|
|
3139
3999
|
Card_default as Card,
|
|
3140
4000
|
Chart_default as Chart,
|
|
3141
4001
|
CheckBox_default as CheckBox,
|
|
3142
4002
|
Chip_default as Chip,
|
|
4003
|
+
Divider_default as Divider,
|
|
4004
|
+
Drawer_default as Drawer,
|
|
4005
|
+
Dropdown_default as Dropdown,
|
|
4006
|
+
EmptyState_default as EmptyState,
|
|
4007
|
+
FileUpload_default as FileUpload,
|
|
3143
4008
|
HtmlTypeWriter_default as HtmlTypewriter,
|
|
3144
4009
|
ImageSelector_default as ImageSelector,
|
|
3145
4010
|
Input_default as Input,
|
|
3146
4011
|
InputDatePicker_default as InputDatePicker,
|
|
3147
4012
|
Modal_default as Modal,
|
|
4013
|
+
Pagination_default as Pagination,
|
|
3148
4014
|
PasswordInput_default as PasswordInput,
|
|
3149
4015
|
PopOver_default as PopOver,
|
|
3150
4016
|
PopupPicker_default as PopupDatePicker,
|
|
4017
|
+
Progress_default as Progress,
|
|
3151
4018
|
Radio_default as Radio,
|
|
3152
4019
|
RadioGroup_default as RadioGroup,
|
|
3153
4020
|
RangePicker_default as RangeDatePicker,
|
|
3154
4021
|
Select_default as Select,
|
|
3155
4022
|
SelectItem_default as SelectItem,
|
|
3156
4023
|
SingleDatePicker_default as SingleDatePicker,
|
|
4024
|
+
Skeleton_default as Skeleton,
|
|
4025
|
+
Spinner_default as Spinner,
|
|
4026
|
+
Steps_default as Steps,
|
|
3157
4027
|
Switch_default as Switch,
|
|
3158
4028
|
Tab_default as Tab,
|
|
3159
4029
|
Table_default as Table,
|
|
@@ -3161,7 +4031,10 @@ export {
|
|
|
3161
4031
|
TableCell_default as TableCell,
|
|
3162
4032
|
TableHead_default as TableHead,
|
|
3163
4033
|
TableRow_default as TableRow,
|
|
4034
|
+
Tag_default as Tag,
|
|
3164
4035
|
TextArea_default as TextArea,
|
|
4036
|
+
ToastProvider,
|
|
3165
4037
|
Tooltip_default as Tooltip,
|
|
3166
|
-
Video_default as Video
|
|
4038
|
+
Video_default as Video,
|
|
4039
|
+
useToast
|
|
3167
4040
|
};
|