@x-plat/design-system 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -0
- package/dist/attributes-DJIWir_0.d.cts +7 -0
- package/dist/attributes-DJIWir_0.d.ts +7 -0
- package/dist/breakpoints-DsXkJgdl.d.cts +35 -0
- package/dist/breakpoints-DsXkJgdl.d.ts +35 -0
- package/dist/colors-BG91q_uV.d.cts +133 -0
- package/dist/colors-BG91q_uV.d.ts +133 -0
- package/dist/components/Button/index.cjs +203 -0
- package/dist/components/Button/index.css +1231 -0
- package/dist/components/Button/index.d.cts +132 -0
- package/dist/components/Button/index.d.ts +132 -0
- package/dist/components/Button/index.js +176 -0
- package/dist/components/Card/index.cjs +56 -0
- package/dist/components/Card/index.css +27 -0
- package/dist/components/Card/index.d.cts +13 -0
- package/dist/components/Card/index.d.ts +13 -0
- package/dist/components/Card/index.js +29 -0
- package/dist/components/Chart/index.cjs +393 -0
- package/dist/components/Chart/index.css +4 -0
- package/dist/components/Chart/index.d.cts +10 -0
- package/dist/components/Chart/index.d.ts +10 -0
- package/dist/components/Chart/index.js +367 -0
- package/dist/components/CheckBox/index.cjs +1116 -0
- package/dist/components/CheckBox/index.css +598 -0
- package/dist/components/CheckBox/index.d.cts +132 -0
- package/dist/components/CheckBox/index.d.ts +132 -0
- package/dist/components/CheckBox/index.js +1089 -0
- package/dist/components/Chip/index.cjs +193 -0
- package/dist/components/Chip/index.css +1227 -0
- package/dist/components/Chip/index.d.cts +132 -0
- package/dist/components/Chip/index.d.ts +132 -0
- package/dist/components/Chip/index.js +166 -0
- package/dist/components/DatePicker/index.cjs +1653 -0
- package/dist/components/DatePicker/index.css +1417 -0
- package/dist/components/DatePicker/index.d.cts +56 -0
- package/dist/components/DatePicker/index.d.ts +56 -0
- package/dist/components/DatePicker/index.js +1613 -0
- package/dist/components/HtmlTypeWriter/index.cjs +172 -0
- package/dist/components/HtmlTypeWriter/index.css +23 -0
- package/dist/components/HtmlTypeWriter/index.d.cts +14 -0
- package/dist/components/HtmlTypeWriter/index.d.ts +14 -0
- package/dist/components/HtmlTypeWriter/index.js +135 -0
- package/dist/components/ImageSelector/index.cjs +1063 -0
- package/dist/components/ImageSelector/index.css +85 -0
- package/dist/components/ImageSelector/index.d.cts +10 -0
- package/dist/components/ImageSelector/index.d.ts +10 -0
- package/dist/components/ImageSelector/index.js +1026 -0
- package/dist/components/Input/index.cjs +410 -0
- package/dist/components/Input/index.css +74 -0
- package/dist/components/Input/index.d.cts +23 -0
- package/dist/components/Input/index.d.ts +23 -0
- package/dist/components/Input/index.js +372 -0
- package/dist/components/Modal/index.cjs +101 -0
- package/dist/components/Modal/index.css +39 -0
- package/dist/components/Modal/index.d.cts +16 -0
- package/dist/components/Modal/index.d.ts +16 -0
- package/dist/components/Modal/index.js +64 -0
- package/dist/components/PopOver/index.cjs +176 -0
- package/dist/components/PopOver/index.css +27 -0
- package/dist/components/PopOver/index.d.cts +15 -0
- package/dist/components/PopOver/index.d.ts +15 -0
- package/dist/components/PopOver/index.js +139 -0
- package/dist/components/Radio/index.cjs +257 -0
- package/dist/components/Radio/index.css +777 -0
- package/dist/components/Radio/index.d.cts +154 -0
- package/dist/components/Radio/index.d.ts +154 -0
- package/dist/components/Radio/index.js +219 -0
- package/dist/components/Select/index.cjs +1203 -0
- package/dist/components/Select/index.css +136 -0
- package/dist/components/Select/index.d.cts +44 -0
- package/dist/components/Select/index.d.ts +44 -0
- package/dist/components/Select/index.js +1165 -0
- package/dist/components/Swiper/index.cjs +144 -0
- package/dist/components/Swiper/index.d.cts +24 -0
- package/dist/components/Swiper/index.d.ts +24 -0
- package/dist/components/Swiper/index.js +128 -0
- package/dist/components/Switch/index.cjs +240 -0
- package/dist/components/Switch/index.css +780 -0
- package/dist/components/Switch/index.d.cts +131 -0
- package/dist/components/Switch/index.d.ts +131 -0
- package/dist/components/Switch/index.js +203 -0
- package/dist/components/Tab/index.cjs +122 -0
- package/dist/components/Tab/index.css +59 -0
- package/dist/components/Tab/index.d.cts +18 -0
- package/dist/components/Tab/index.d.ts +18 -0
- package/dist/components/Tab/index.js +85 -0
- package/dist/components/Table/index.cjs +384 -0
- package/dist/components/Table/index.css +4093 -0
- package/dist/components/Table/index.d.cts +174 -0
- package/dist/components/Table/index.d.ts +174 -0
- package/dist/components/Table/index.js +343 -0
- package/dist/components/TextArea/index.cjs +114 -0
- package/dist/components/TextArea/index.css +34 -0
- package/dist/components/TextArea/index.d.cts +6 -0
- package/dist/components/TextArea/index.d.ts +6 -0
- package/dist/components/TextArea/index.js +77 -0
- package/dist/components/Tooltip/index.cjs +210 -0
- package/dist/components/Tooltip/index.css +599 -0
- package/dist/components/Tooltip/index.d.cts +134 -0
- package/dist/components/Tooltip/index.d.ts +134 -0
- package/dist/components/Tooltip/index.js +173 -0
- package/dist/components/Video/index.cjs +269 -0
- package/dist/components/Video/index.css +71 -0
- package/dist/components/Video/index.d.cts +15 -0
- package/dist/components/Video/index.d.ts +15 -0
- package/dist/components/Video/index.js +232 -0
- package/dist/components/index.cjs +3221 -0
- package/dist/components/index.css +9972 -0
- package/dist/components/index.d.cts +23 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.js +3167 -0
- package/dist/index.cjs +8216 -0
- package/dist/index.css +10087 -0
- package/dist/index.d.cts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +7855 -0
- package/dist/layout/Grid/FullGrid/index.cjs +54 -0
- package/dist/layout/Grid/FullGrid/index.css +21 -0
- package/dist/layout/Grid/FullGrid/index.d.cts +9 -0
- package/dist/layout/Grid/FullGrid/index.d.ts +9 -0
- package/dist/layout/Grid/FullGrid/index.js +27 -0
- package/dist/layout/Grid/FullScreen/index.cjs +54 -0
- package/dist/layout/Grid/FullScreen/index.css +23 -0
- package/dist/layout/Grid/FullScreen/index.d.cts +9 -0
- package/dist/layout/Grid/FullScreen/index.d.ts +9 -0
- package/dist/layout/Grid/FullScreen/index.js +27 -0
- package/dist/layout/Grid/GapGrid/index.cjs +32 -0
- package/dist/layout/Grid/GapGrid/index.d.cts +12 -0
- package/dist/layout/Grid/GapGrid/index.d.ts +12 -0
- package/dist/layout/Grid/GapGrid/index.js +11 -0
- package/dist/layout/Grid/Item/index.cjs +71 -0
- package/dist/layout/Grid/Item/index.css +19 -0
- package/dist/layout/Grid/Item/index.d.cts +20 -0
- package/dist/layout/Grid/Item/index.d.ts +20 -0
- package/dist/layout/Grid/Item/index.js +44 -0
- package/dist/layout/Grid/index.cjs +95 -0
- package/dist/layout/Grid/index.css +65 -0
- package/dist/layout/Grid/index.d.cts +5 -0
- package/dist/layout/Grid/index.d.ts +5 -0
- package/dist/layout/Grid/index.js +65 -0
- package/dist/layout/Header/index.cjs +45 -0
- package/dist/layout/Header/index.css +11 -0
- package/dist/layout/Header/index.d.cts +10 -0
- package/dist/layout/Header/index.d.ts +10 -0
- package/dist/layout/Header/index.js +18 -0
- package/dist/layout/Layout/index.cjs +44 -0
- package/dist/layout/Layout/index.css +23 -0
- package/dist/layout/Layout/index.d.cts +15 -0
- package/dist/layout/Layout/index.d.ts +15 -0
- package/dist/layout/Layout/index.js +17 -0
- package/dist/layout/SideBar/index.cjs +101 -0
- package/dist/layout/SideBar/index.css +10 -0
- package/dist/layout/SideBar/index.d.cts +16 -0
- package/dist/layout/SideBar/index.d.ts +16 -0
- package/dist/layout/SideBar/index.js +62 -0
- package/dist/layout/index.cjs +188 -0
- package/dist/layout/index.css +112 -0
- package/dist/layout/index.d.cts +8 -0
- package/dist/layout/index.d.ts +8 -0
- package/dist/layout/index.js +143 -0
- package/dist/tokens/index.cjs +6225 -0
- package/dist/tokens/index.d.cts +593 -0
- package/dist/tokens/index.d.ts +593 -0
- package/dist/tokens/index.js +5900 -0
- package/package.json +86 -0
|
@@ -0,0 +1,3221 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/components/index.ts
|
|
31
|
+
var components_exports = {};
|
|
32
|
+
__export(components_exports, {
|
|
33
|
+
Button: () => Button_default,
|
|
34
|
+
Card: () => Card_default,
|
|
35
|
+
Chart: () => Chart_default,
|
|
36
|
+
CheckBox: () => CheckBox_default,
|
|
37
|
+
Chip: () => Chip_default,
|
|
38
|
+
HtmlTypewriter: () => HtmlTypeWriter_default,
|
|
39
|
+
ImageSelector: () => ImageSelector_default,
|
|
40
|
+
Input: () => Input_default,
|
|
41
|
+
InputDatePicker: () => InputDatePicker_default,
|
|
42
|
+
Modal: () => Modal_default,
|
|
43
|
+
PasswordInput: () => PasswordInput_default,
|
|
44
|
+
PopOver: () => PopOver_default,
|
|
45
|
+
PopupDatePicker: () => PopupPicker_default,
|
|
46
|
+
Radio: () => Radio_default,
|
|
47
|
+
RadioGroup: () => RadioGroup_default,
|
|
48
|
+
RangeDatePicker: () => RangePicker_default,
|
|
49
|
+
Select: () => Select_default,
|
|
50
|
+
SelectItem: () => SelectItem_default,
|
|
51
|
+
SingleDatePicker: () => SingleDatePicker_default,
|
|
52
|
+
Switch: () => Switch_default,
|
|
53
|
+
Tab: () => Tab_default,
|
|
54
|
+
Table: () => Table_default,
|
|
55
|
+
TableBody: () => TableBody_default,
|
|
56
|
+
TableCell: () => TableCell_default,
|
|
57
|
+
TableHead: () => TableHead_default,
|
|
58
|
+
TableRow: () => TableRow_default,
|
|
59
|
+
TextArea: () => TextArea_default,
|
|
60
|
+
Tooltip: () => Tooltip_default,
|
|
61
|
+
Video: () => Video_default
|
|
62
|
+
});
|
|
63
|
+
module.exports = __toCommonJS(components_exports);
|
|
64
|
+
|
|
65
|
+
// src/tokens/colors.ts
|
|
66
|
+
var colors = {
|
|
67
|
+
xplat: {
|
|
68
|
+
red: {
|
|
69
|
+
50: "#FFF0F0",
|
|
70
|
+
100: "#FFDDDE",
|
|
71
|
+
200: "#FFC1C2",
|
|
72
|
+
300: "#FF9698",
|
|
73
|
+
400: "#FF5A5D",
|
|
74
|
+
500: "#FF272B",
|
|
75
|
+
600: "#F80409",
|
|
76
|
+
700: "#D40105",
|
|
77
|
+
800: "#AE0609",
|
|
78
|
+
900: "#900C0F"
|
|
79
|
+
},
|
|
80
|
+
green: {
|
|
81
|
+
50: "#E5F6EA",
|
|
82
|
+
100: "#C1E7CC",
|
|
83
|
+
200: "#98D8AC",
|
|
84
|
+
300: "#6CCA8B",
|
|
85
|
+
400: "#47BE72",
|
|
86
|
+
500: "#10B259",
|
|
87
|
+
600: "#00A34F",
|
|
88
|
+
700: "#009143",
|
|
89
|
+
800: "#007F38",
|
|
90
|
+
900: "#006024"
|
|
91
|
+
},
|
|
92
|
+
orange: {
|
|
93
|
+
50: "#FFF8EC",
|
|
94
|
+
100: "#FFF0D3",
|
|
95
|
+
200: "#FFDDA5",
|
|
96
|
+
300: "#FFC46D",
|
|
97
|
+
400: "#FF9F32",
|
|
98
|
+
500: "#FF820A",
|
|
99
|
+
600: "#FF6900",
|
|
100
|
+
700: "#CC4B02",
|
|
101
|
+
800: "#A13A0B",
|
|
102
|
+
900: "#82320C"
|
|
103
|
+
},
|
|
104
|
+
yellow: {
|
|
105
|
+
50: "#FFFDE7",
|
|
106
|
+
100: "#FFFAC1",
|
|
107
|
+
200: "#FFF186",
|
|
108
|
+
300: "#FFE041",
|
|
109
|
+
400: "#FFCC0D",
|
|
110
|
+
500: "#F0B100",
|
|
111
|
+
600: "#D18800",
|
|
112
|
+
700: "#A66002",
|
|
113
|
+
800: "#894B0A",
|
|
114
|
+
900: "#743D0F"
|
|
115
|
+
},
|
|
116
|
+
blue: {
|
|
117
|
+
50: "#F1F4FD",
|
|
118
|
+
100: "#DFE7FA",
|
|
119
|
+
200: "#C5D4F8",
|
|
120
|
+
300: "#9EB8F2",
|
|
121
|
+
400: "#7093EA",
|
|
122
|
+
500: "#4D6DE3",
|
|
123
|
+
600: "#3950D7",
|
|
124
|
+
700: "#303EC5",
|
|
125
|
+
800: "#2D35A0",
|
|
126
|
+
900: "#29317F"
|
|
127
|
+
},
|
|
128
|
+
lightblue: {
|
|
129
|
+
50: "#EEFAFF",
|
|
130
|
+
100: "#D9F4FF",
|
|
131
|
+
200: "#BBEDFF",
|
|
132
|
+
300: "#8DE3FF",
|
|
133
|
+
400: "#57D0FF",
|
|
134
|
+
500: "#30B6FF",
|
|
135
|
+
600: "#1999F7",
|
|
136
|
+
700: "#1280E3",
|
|
137
|
+
800: "#1566B8",
|
|
138
|
+
900: "#175791"
|
|
139
|
+
},
|
|
140
|
+
purple: {
|
|
141
|
+
50: "#FBF6FE",
|
|
142
|
+
100: "#F5EAFD",
|
|
143
|
+
200: "#EDD8FC",
|
|
144
|
+
300: "#E0BAF8",
|
|
145
|
+
400: "#CD8DF3",
|
|
146
|
+
500: "#B961EB",
|
|
147
|
+
600: "#A541DC",
|
|
148
|
+
700: "#9230C5",
|
|
149
|
+
800: "#782B9E",
|
|
150
|
+
900: "#62247F"
|
|
151
|
+
},
|
|
152
|
+
pink: {
|
|
153
|
+
50: "#FFF4FE",
|
|
154
|
+
100: "#FFE7FD",
|
|
155
|
+
200: "#FFCFFA",
|
|
156
|
+
300: "#FEA9F1",
|
|
157
|
+
400: "#FD75E7",
|
|
158
|
+
500: "#F553DA",
|
|
159
|
+
600: "#D821B6",
|
|
160
|
+
700: "#B31892",
|
|
161
|
+
800: "#921676",
|
|
162
|
+
900: "#781761"
|
|
163
|
+
},
|
|
164
|
+
neutral: {
|
|
165
|
+
50: "#FAFAFA",
|
|
166
|
+
100: "#F5F5F5",
|
|
167
|
+
200: "#E5E5E5",
|
|
168
|
+
300: "#D4D4D4",
|
|
169
|
+
400: "#A1A1A1",
|
|
170
|
+
500: "#737373",
|
|
171
|
+
600: "#525252",
|
|
172
|
+
700: "#404040",
|
|
173
|
+
800: "#262626",
|
|
174
|
+
900: "#171717"
|
|
175
|
+
},
|
|
176
|
+
black: "#000000",
|
|
177
|
+
white: "#FFFFFF"
|
|
178
|
+
},
|
|
179
|
+
test: {
|
|
180
|
+
default: "#ffffff"
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
// src/util/getColor.ts
|
|
185
|
+
var getColorClass = (namespace, palette, shade) => {
|
|
186
|
+
const namespaceMap = colors[namespace];
|
|
187
|
+
const paletteMap = namespaceMap[palette];
|
|
188
|
+
const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
|
|
189
|
+
return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
193
|
+
function r(e) {
|
|
194
|
+
var t, f, n = "";
|
|
195
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
196
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
197
|
+
var o = e.length;
|
|
198
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
199
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
200
|
+
return n;
|
|
201
|
+
}
|
|
202
|
+
function clsx() {
|
|
203
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
204
|
+
return n;
|
|
205
|
+
}
|
|
206
|
+
var clsx_default = clsx;
|
|
207
|
+
|
|
208
|
+
// src/components/Button/Button.tsx
|
|
209
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
210
|
+
var Button = (props) => {
|
|
211
|
+
const {
|
|
212
|
+
children,
|
|
213
|
+
type = "primary",
|
|
214
|
+
colorNamespace = "xplat",
|
|
215
|
+
color = "black",
|
|
216
|
+
colorDepth,
|
|
217
|
+
disabled,
|
|
218
|
+
className,
|
|
219
|
+
...rest
|
|
220
|
+
} = props;
|
|
221
|
+
const colorClass = getColorClass(
|
|
222
|
+
colorNamespace,
|
|
223
|
+
color,
|
|
224
|
+
colorDepth ?? 500
|
|
225
|
+
);
|
|
226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
227
|
+
"button",
|
|
228
|
+
{
|
|
229
|
+
className: clsx_default("lib-xplat-button", type, colorClass, className),
|
|
230
|
+
disabled,
|
|
231
|
+
...rest,
|
|
232
|
+
children
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
};
|
|
236
|
+
Button.displayName = "Button";
|
|
237
|
+
var Button_default = Button;
|
|
238
|
+
|
|
239
|
+
// src/components/Card/Card.tsx
|
|
240
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
241
|
+
var Card = ({ children, title, className }) => {
|
|
242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: clsx_default("lib-xplat-card", className), children: [
|
|
243
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "title", children: title }),
|
|
244
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "content", children })
|
|
245
|
+
] });
|
|
246
|
+
};
|
|
247
|
+
Card.displayName = "Card";
|
|
248
|
+
var Card_default = Card;
|
|
249
|
+
|
|
250
|
+
// src/components/Chart/Chart.tsx
|
|
251
|
+
var import_react = __toESM(require("react"), 1);
|
|
252
|
+
var import_chart = require("chart.js");
|
|
253
|
+
var import_chartjs_plugin_datalabels = __toESM(require("chartjs-plugin-datalabels"), 1);
|
|
254
|
+
var import_react_chartjs_2 = require("react-chartjs-2");
|
|
255
|
+
|
|
256
|
+
// src/components/Chart/token/colorSet.ts
|
|
257
|
+
var presets = [
|
|
258
|
+
[
|
|
259
|
+
colors.xplat.red[100],
|
|
260
|
+
colors.xplat.red[200],
|
|
261
|
+
colors.xplat.red[300],
|
|
262
|
+
colors.xplat.red[400],
|
|
263
|
+
colors.xplat.red[500],
|
|
264
|
+
colors.xplat.red[600]
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
colors.xplat.orange[100],
|
|
268
|
+
colors.xplat.orange[200],
|
|
269
|
+
colors.xplat.orange[300],
|
|
270
|
+
colors.xplat.orange[400],
|
|
271
|
+
colors.xplat.orange[500],
|
|
272
|
+
colors.xplat.orange[600]
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
colors.xplat.yellow[100],
|
|
276
|
+
colors.xplat.yellow[200],
|
|
277
|
+
colors.xplat.yellow[300],
|
|
278
|
+
colors.xplat.yellow[400],
|
|
279
|
+
colors.xplat.yellow[500],
|
|
280
|
+
colors.xplat.yellow[600]
|
|
281
|
+
],
|
|
282
|
+
[
|
|
283
|
+
colors.xplat.green[100],
|
|
284
|
+
colors.xplat.green[200],
|
|
285
|
+
colors.xplat.green[300],
|
|
286
|
+
colors.xplat.green[400],
|
|
287
|
+
colors.xplat.green[500],
|
|
288
|
+
colors.xplat.green[600]
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
colors.xplat.blue[100],
|
|
292
|
+
colors.xplat.blue[200],
|
|
293
|
+
colors.xplat.blue[300],
|
|
294
|
+
colors.xplat.blue[400],
|
|
295
|
+
colors.xplat.blue[500],
|
|
296
|
+
colors.xplat.blue[600]
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
colors.xplat.lightblue[100],
|
|
300
|
+
colors.xplat.lightblue[200],
|
|
301
|
+
colors.xplat.lightblue[300],
|
|
302
|
+
colors.xplat.lightblue[400],
|
|
303
|
+
colors.xplat.lightblue[500],
|
|
304
|
+
colors.xplat.lightblue[600]
|
|
305
|
+
],
|
|
306
|
+
[
|
|
307
|
+
colors.xplat.purple[100],
|
|
308
|
+
colors.xplat.purple[200],
|
|
309
|
+
colors.xplat.purple[300],
|
|
310
|
+
colors.xplat.purple[400],
|
|
311
|
+
colors.xplat.purple[500],
|
|
312
|
+
colors.xplat.purple[600]
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
colors.xplat.pink[100],
|
|
316
|
+
colors.xplat.pink[200],
|
|
317
|
+
colors.xplat.pink[300],
|
|
318
|
+
colors.xplat.pink[400],
|
|
319
|
+
colors.xplat.pink[500],
|
|
320
|
+
colors.xplat.pink[600]
|
|
321
|
+
],
|
|
322
|
+
[
|
|
323
|
+
colors.xplat.orange[300],
|
|
324
|
+
colors.xplat.red[300],
|
|
325
|
+
colors.xplat.yellow[300],
|
|
326
|
+
colors.xplat.green[300],
|
|
327
|
+
colors.xplat.blue[300],
|
|
328
|
+
colors.xplat.lightblue[300]
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
colors.xplat.orange[400],
|
|
332
|
+
colors.xplat.red[400],
|
|
333
|
+
colors.xplat.yellow[400],
|
|
334
|
+
colors.xplat.green[400],
|
|
335
|
+
colors.xplat.blue[400],
|
|
336
|
+
colors.xplat.lightblue[400]
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
colors.xplat.orange[500],
|
|
340
|
+
colors.xplat.red[500],
|
|
341
|
+
colors.xplat.yellow[500],
|
|
342
|
+
colors.xplat.green[500],
|
|
343
|
+
colors.xplat.blue[500],
|
|
344
|
+
colors.xplat.lightblue[500]
|
|
345
|
+
]
|
|
346
|
+
];
|
|
347
|
+
var colorPresets = {
|
|
348
|
+
line: [
|
|
349
|
+
presets[0],
|
|
350
|
+
presets[1],
|
|
351
|
+
presets[2],
|
|
352
|
+
presets[3],
|
|
353
|
+
presets[4],
|
|
354
|
+
presets[5],
|
|
355
|
+
presets[6],
|
|
356
|
+
presets[7]
|
|
357
|
+
],
|
|
358
|
+
bar: [
|
|
359
|
+
presets[0],
|
|
360
|
+
presets[1],
|
|
361
|
+
presets[2],
|
|
362
|
+
presets[3],
|
|
363
|
+
presets[4],
|
|
364
|
+
presets[5],
|
|
365
|
+
presets[6],
|
|
366
|
+
presets[7]
|
|
367
|
+
],
|
|
368
|
+
doughnut: [presets[8], presets[9], presets[10]],
|
|
369
|
+
pie: [presets[8], presets[9], presets[10]]
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
// src/components/Chart/util.ts
|
|
373
|
+
var getChartColorPreset = (type) => {
|
|
374
|
+
const index = Math.floor(Math.random() * colorPresets[type].length);
|
|
375
|
+
return colorPresets[type][index];
|
|
376
|
+
};
|
|
377
|
+
var getIndexColorByPreset = (preset, index) => {
|
|
378
|
+
const idx = index % preset.length;
|
|
379
|
+
return preset[idx];
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
// src/components/Chart/Chart.tsx
|
|
383
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
384
|
+
import_chart.Chart.register(
|
|
385
|
+
import_chart.CategoryScale,
|
|
386
|
+
import_chart.LinearScale,
|
|
387
|
+
import_chart.PointElement,
|
|
388
|
+
import_chart.LineElement,
|
|
389
|
+
import_chart.BarElement,
|
|
390
|
+
import_chart.ArcElement,
|
|
391
|
+
import_chart.Title,
|
|
392
|
+
import_chart.Tooltip,
|
|
393
|
+
import_chart.Legend,
|
|
394
|
+
import_chartjs_plugin_datalabels.default
|
|
395
|
+
);
|
|
396
|
+
var Chart = (props) => {
|
|
397
|
+
const { type, data, labels } = props;
|
|
398
|
+
const chartRef = import_react.default.useRef(null);
|
|
399
|
+
const containerRef = import_react.default.useRef(null);
|
|
400
|
+
const datasets = import_react.default.useMemo(() => {
|
|
401
|
+
const pallette = getChartColorPreset(type);
|
|
402
|
+
return Object.entries(data).map(([key, values], index) => {
|
|
403
|
+
const uniqueColors = getIndexColorByPreset(pallette, index);
|
|
404
|
+
if (type === "pie" || type === "doughnut") {
|
|
405
|
+
return {
|
|
406
|
+
label: key,
|
|
407
|
+
data: values,
|
|
408
|
+
backgroundColor: uniqueColors
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
return {
|
|
412
|
+
label: key,
|
|
413
|
+
data: values,
|
|
414
|
+
backgroundColor: uniqueColors,
|
|
415
|
+
borderColor: uniqueColors,
|
|
416
|
+
maxBarThickness: 32
|
|
417
|
+
};
|
|
418
|
+
});
|
|
419
|
+
}, [data, type]);
|
|
420
|
+
const chartData = {
|
|
421
|
+
labels,
|
|
422
|
+
datasets
|
|
423
|
+
};
|
|
424
|
+
const options = {
|
|
425
|
+
plugins: {
|
|
426
|
+
legend: { display: false },
|
|
427
|
+
datalabels: { display: false },
|
|
428
|
+
tooltip: { enabled: true }
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
if (type === "line" || type === "bar") {
|
|
432
|
+
options.scales = {
|
|
433
|
+
y: {
|
|
434
|
+
beginAtZero: true,
|
|
435
|
+
drawBorder: false,
|
|
436
|
+
suggestedMax: Math.max(...Object.values(data).flat()) * 1.2,
|
|
437
|
+
ticks: {
|
|
438
|
+
maxTicksLimit: 7
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
x: {
|
|
442
|
+
grid: { display: false },
|
|
443
|
+
ticks: { display: false }
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
if (type === "pie" || type === "doughnut") {
|
|
448
|
+
options.plugins.datalabels = {
|
|
449
|
+
color: colors.xplat.white,
|
|
450
|
+
font: { weight: "bold" },
|
|
451
|
+
formatter: (value) => `${value}`
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
const renderChart = import_react.default.useMemo(() => {
|
|
455
|
+
switch (type) {
|
|
456
|
+
case "line":
|
|
457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_chartjs_2.Line, { ref: chartRef, data: chartData, options });
|
|
458
|
+
case "bar":
|
|
459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_chartjs_2.Bar, { ref: chartRef, data: chartData, options });
|
|
460
|
+
case "pie":
|
|
461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_chartjs_2.Pie, { ref: chartRef, data: chartData, options });
|
|
462
|
+
case "doughnut":
|
|
463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_chartjs_2.Doughnut, { ref: chartRef, data: chartData, options });
|
|
464
|
+
default:
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
467
|
+
}, [chartData, options, type]);
|
|
468
|
+
import_react.default.useEffect(() => {
|
|
469
|
+
if (!containerRef.current || !chartRef.current) return;
|
|
470
|
+
const observer = new ResizeObserver(() => {
|
|
471
|
+
requestAnimationFrame(() => {
|
|
472
|
+
chartRef.current?.resize();
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
observer.observe(containerRef.current);
|
|
476
|
+
return () => observer.disconnect();
|
|
477
|
+
}, []);
|
|
478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "lib-xplat-chart", ref: containerRef, children: renderChart });
|
|
479
|
+
};
|
|
480
|
+
Chart.displayName = "Chart";
|
|
481
|
+
var Chart_default = Chart;
|
|
482
|
+
|
|
483
|
+
// src/tokens/svg/action/CopyIcon.tsx
|
|
484
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
485
|
+
|
|
486
|
+
// src/tokens/svg/action/CropIcon.tsx
|
|
487
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
488
|
+
|
|
489
|
+
// src/tokens/svg/action/DeleteIcon.tsx
|
|
490
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
491
|
+
var DeleteIcon = () => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
492
|
+
"svg",
|
|
493
|
+
{
|
|
494
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
495
|
+
width: "1em",
|
|
496
|
+
height: "1em",
|
|
497
|
+
viewBox: "0 0 16 16",
|
|
498
|
+
fill: "none",
|
|
499
|
+
children: [
|
|
500
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
501
|
+
"path",
|
|
502
|
+
{
|
|
503
|
+
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",
|
|
504
|
+
fill: "currentColor"
|
|
505
|
+
}
|
|
506
|
+
),
|
|
507
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
508
|
+
"path",
|
|
509
|
+
{
|
|
510
|
+
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",
|
|
511
|
+
fill: "currentColor"
|
|
512
|
+
}
|
|
513
|
+
),
|
|
514
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
515
|
+
"path",
|
|
516
|
+
{
|
|
517
|
+
fillRule: "evenodd",
|
|
518
|
+
clipRule: "evenodd",
|
|
519
|
+
d: "M9.3335 0.733398C9.84611 0.733502 10.3382 0.937326 10.7007 1.2998C11.063 1.66233 11.2671 2.15444 11.2671 2.66699V3.3998H13.9999C14.3313 3.3998 14.5999 3.66843 14.5999 3.9998C14.5999 4.33118 14.3313 4.5998 13.9999 4.5998H13.2671V13.3334C13.267 13.846 13.0631 14.3381 12.7007 14.7006C12.3382 15.0631 11.8461 15.2669 11.3335 15.267H4.66709C4.15454 15.267 3.66243 15.0629 3.2999 14.7006C2.93738 14.3381 2.73355 13.8461 2.7335 13.3334V4.5998H1.9999C1.66853 4.5998 1.3999 4.33118 1.3999 3.9998C1.3999 3.66843 1.66853 3.3998 1.9999 3.3998H4.7335V2.66699C4.7335 2.15424 4.93733 1.66237 5.2999 1.2998C5.66246 0.937295 6.15438 0.733398 6.66709 0.733398H9.3335ZM3.9335 13.3334C3.93355 13.5278 4.01086 13.7147 4.14834 13.8521C4.28583 13.9894 4.4728 14.067 4.66709 14.067H11.3335C11.5278 14.0669 11.7148 13.9896 11.8522 13.8521C11.9897 13.7147 12.067 13.5278 12.0671 13.3334V4.5998H3.9335V13.3334ZM6.66709 1.9334C6.47264 1.9334 6.28586 2.01078 6.14834 2.14824C6.01081 2.28577 5.9335 2.4725 5.9335 2.66699V3.3998H10.0671V2.66699C10.0671 2.4727 9.98951 2.28573 9.85225 2.14824C9.71481 2.01081 9.52785 1.9335 9.3335 1.9334H6.66709Z",
|
|
520
|
+
fill: "currentColor"
|
|
521
|
+
}
|
|
522
|
+
)
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
);
|
|
526
|
+
var DeleteIcon_default = DeleteIcon;
|
|
527
|
+
|
|
528
|
+
// src/tokens/svg/action/DownloadCloudIcon.tsx
|
|
529
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
530
|
+
|
|
531
|
+
// src/tokens/svg/action/DownloadIcon.tsx
|
|
532
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
533
|
+
|
|
534
|
+
// src/tokens/svg/action/Edit2Icon.tsx
|
|
535
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
536
|
+
|
|
537
|
+
// src/tokens/svg/action/Edit3Icon.tsx
|
|
538
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
539
|
+
|
|
540
|
+
// src/tokens/svg/action/EditIcon.tsx
|
|
541
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
542
|
+
|
|
543
|
+
// src/tokens/svg/action/ExternalLinkIcon.tsx
|
|
544
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
545
|
+
|
|
546
|
+
// src/tokens/svg/action/FilterIcon.tsx
|
|
547
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
548
|
+
|
|
549
|
+
// src/tokens/svg/action/Link2Icon.tsx
|
|
550
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
551
|
+
|
|
552
|
+
// src/tokens/svg/action/LinkIcon.tsx
|
|
553
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
554
|
+
|
|
555
|
+
// src/tokens/svg/action/MoveIcon.tsx
|
|
556
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
557
|
+
|
|
558
|
+
// src/tokens/svg/action/RefreshCcwIcon.tsx
|
|
559
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
560
|
+
|
|
561
|
+
// src/tokens/svg/action/RefreshCwIcon.tsx
|
|
562
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
563
|
+
|
|
564
|
+
// src/tokens/svg/action/RotateCcwIcon.tsx
|
|
565
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
566
|
+
|
|
567
|
+
// src/tokens/svg/action/RotateCwIcon.tsx
|
|
568
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
569
|
+
|
|
570
|
+
// src/tokens/svg/action/SaveIcon.tsx
|
|
571
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
572
|
+
|
|
573
|
+
// src/tokens/svg/action/ScissorsIcon.tsx
|
|
574
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
575
|
+
|
|
576
|
+
// src/tokens/svg/action/SearchIcon.tsx
|
|
577
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
578
|
+
|
|
579
|
+
// src/tokens/svg/action/SendIcon.tsx
|
|
580
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
581
|
+
|
|
582
|
+
// src/tokens/svg/action/Share2Icon.tsx
|
|
583
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
584
|
+
|
|
585
|
+
// src/tokens/svg/action/ShareIcon.tsx
|
|
586
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
587
|
+
|
|
588
|
+
// src/tokens/svg/action/Trash2Icon.tsx
|
|
589
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
590
|
+
|
|
591
|
+
// src/tokens/svg/action/TrashIcon.tsx
|
|
592
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
593
|
+
|
|
594
|
+
// src/tokens/svg/action/UploadCloudIcon.tsx
|
|
595
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
596
|
+
|
|
597
|
+
// src/tokens/svg/action/UploadIcon.tsx
|
|
598
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
599
|
+
var UploadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
600
|
+
"svg",
|
|
601
|
+
{
|
|
602
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
603
|
+
width: "1em",
|
|
604
|
+
height: "1em",
|
|
605
|
+
viewBox: "0 0 16 16",
|
|
606
|
+
fill: "none",
|
|
607
|
+
children: [
|
|
608
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
609
|
+
"path",
|
|
610
|
+
{
|
|
611
|
+
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",
|
|
612
|
+
fill: "currentColor"
|
|
613
|
+
}
|
|
614
|
+
),
|
|
615
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
616
|
+
"path",
|
|
617
|
+
{
|
|
618
|
+
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",
|
|
619
|
+
fill: "currentColor"
|
|
620
|
+
}
|
|
621
|
+
)
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
);
|
|
625
|
+
var UploadIcon_default = UploadIcon;
|
|
626
|
+
|
|
627
|
+
// src/tokens/svg/action/ZoomInIcon.tsx
|
|
628
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
629
|
+
|
|
630
|
+
// src/tokens/svg/action/ZoomOutIcon.tsx
|
|
631
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
632
|
+
|
|
633
|
+
// src/tokens/svg/call/CallActiveIcon.tsx
|
|
634
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
635
|
+
|
|
636
|
+
// src/tokens/svg/call/CallForwardedIcon.tsx
|
|
637
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
638
|
+
|
|
639
|
+
// src/tokens/svg/call/CallIcon.tsx
|
|
640
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
641
|
+
|
|
642
|
+
// src/tokens/svg/call/CallIncomingIcon.tsx
|
|
643
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
644
|
+
|
|
645
|
+
// src/tokens/svg/call/CallMissedIcon.tsx
|
|
646
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
647
|
+
|
|
648
|
+
// src/tokens/svg/call/CallOffIcon.tsx
|
|
649
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
650
|
+
|
|
651
|
+
// src/tokens/svg/call/CallOutgoingIcon.tsx
|
|
652
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
653
|
+
|
|
654
|
+
// src/tokens/svg/call/VoicemailIcon.tsx
|
|
655
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
656
|
+
|
|
657
|
+
// src/tokens/svg/chart/BarChart2Icon.tsx
|
|
658
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
659
|
+
|
|
660
|
+
// src/tokens/svg/chart/BarChartIcon.tsx
|
|
661
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
662
|
+
|
|
663
|
+
// src/tokens/svg/chart/PieChartIcon.tsx
|
|
664
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
665
|
+
|
|
666
|
+
// src/tokens/svg/chart/TableIcon.tsx
|
|
667
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
668
|
+
|
|
669
|
+
// src/tokens/svg/chart/TrendingDownIcon.tsx
|
|
670
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
671
|
+
|
|
672
|
+
// src/tokens/svg/chart/TrendingUpIcon.tsx
|
|
673
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
674
|
+
|
|
675
|
+
// src/tokens/svg/date/CalendarIcon.tsx
|
|
676
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
677
|
+
|
|
678
|
+
// src/tokens/svg/date/CalenderIcon.tsx
|
|
679
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
680
|
+
var CalenderIcon = () => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
681
|
+
"svg",
|
|
682
|
+
{
|
|
683
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
684
|
+
width: "1em",
|
|
685
|
+
height: "1em",
|
|
686
|
+
viewBox: "0 0 16 16",
|
|
687
|
+
fill: "none",
|
|
688
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
689
|
+
"path",
|
|
690
|
+
{
|
|
691
|
+
fillRule: "evenodd",
|
|
692
|
+
clipRule: "evenodd",
|
|
693
|
+
d: "M10.6671 0.733398C10.9983 0.73361 11.2671 1.00216 11.2671 1.3334V2.06621H12.6663C13.734 2.06621 14.5998 2.93214 14.5999 3.9998V13.3326C14.5999 14.4004 13.7341 15.2662 12.6663 15.2662H3.3335C2.26575 15.2662 1.3999 14.4004 1.3999 13.3326V3.9998C1.40001 2.93214 2.26581 2.06621 3.3335 2.06621H4.7335V1.3334C4.7335 1.00203 5.00213 0.733398 5.3335 0.733398C5.66469 0.73361 5.9335 1.00216 5.9335 1.3334V2.06621H10.0671V1.3334C10.0671 1.00203 10.3357 0.733398 10.6671 0.733398ZM2.5999 7.26621V13.3326C2.5999 13.7376 2.92849 14.0662 3.3335 14.0662H12.6663C13.0713 14.0662 13.3999 13.7376 13.3999 13.3326V7.26621H2.5999ZM3.3335 3.26621C2.92855 3.26621 2.60001 3.59489 2.5999 3.9998V6.06621H13.3999V3.9998C13.3998 3.59489 13.0713 3.26621 12.6663 3.26621H11.2671V3.9998C11.267 4.33096 10.9982 4.59959 10.6671 4.5998C10.3358 4.5998 10.0672 4.33109 10.0671 3.9998V3.26621H5.9335V3.9998C5.93339 4.33096 5.66462 4.59959 5.3335 4.5998C5.00219 4.5998 4.7336 4.33109 4.7335 3.9998V3.26621H3.3335Z",
|
|
694
|
+
fill: "currentColor"
|
|
695
|
+
}
|
|
696
|
+
)
|
|
697
|
+
}
|
|
698
|
+
);
|
|
699
|
+
var CalenderIcon_default = CalenderIcon;
|
|
700
|
+
|
|
701
|
+
// src/tokens/svg/date/ClockIcon.tsx
|
|
702
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
703
|
+
|
|
704
|
+
// src/tokens/svg/date/SunriseIcon.tsx
|
|
705
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
706
|
+
|
|
707
|
+
// src/tokens/svg/date/SunsetIcon.tsx
|
|
708
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
709
|
+
|
|
710
|
+
// src/tokens/svg/device/BatteryChargingIcon.tsx
|
|
711
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
712
|
+
|
|
713
|
+
// src/tokens/svg/device/BatteryIcon.tsx
|
|
714
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
715
|
+
|
|
716
|
+
// src/tokens/svg/device/BluetoothIcon.tsx
|
|
717
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
718
|
+
|
|
719
|
+
// src/tokens/svg/device/CommandIcon.tsx
|
|
720
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
721
|
+
|
|
722
|
+
// src/tokens/svg/device/CpuIcon.tsx
|
|
723
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
724
|
+
|
|
725
|
+
// src/tokens/svg/device/DatabaseIcon.tsx
|
|
726
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
727
|
+
|
|
728
|
+
// src/tokens/svg/device/HardDriveIcon.tsx
|
|
729
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
730
|
+
|
|
731
|
+
// src/tokens/svg/device/MonitorIcon.tsx
|
|
732
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
733
|
+
|
|
734
|
+
// src/tokens/svg/device/PrinterIcon.tsx
|
|
735
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
736
|
+
|
|
737
|
+
// src/tokens/svg/device/ServerIcon.tsx
|
|
738
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
739
|
+
|
|
740
|
+
// src/tokens/svg/device/SmartphoneIcon.tsx
|
|
741
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
742
|
+
|
|
743
|
+
// src/tokens/svg/device/TabletIcon.tsx
|
|
744
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
745
|
+
|
|
746
|
+
// src/tokens/svg/device/TerminalIcon.tsx
|
|
747
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
748
|
+
|
|
749
|
+
// src/tokens/svg/device/TvIcon.tsx
|
|
750
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
751
|
+
|
|
752
|
+
// src/tokens/svg/device/WatchIcon.tsx
|
|
753
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
754
|
+
|
|
755
|
+
// src/tokens/svg/device/WifiIcon.tsx
|
|
756
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
757
|
+
|
|
758
|
+
// src/tokens/svg/device/WifiOffIcon.tsx
|
|
759
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
760
|
+
|
|
761
|
+
// src/tokens/svg/edit/AlignCenterIcon.tsx
|
|
762
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
763
|
+
|
|
764
|
+
// src/tokens/svg/edit/AlignJustifyIcon.tsx
|
|
765
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
766
|
+
|
|
767
|
+
// src/tokens/svg/edit/AlignLeftIcon.tsx
|
|
768
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
769
|
+
|
|
770
|
+
// src/tokens/svg/edit/AlignRightIcon.tsx
|
|
771
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
772
|
+
|
|
773
|
+
// src/tokens/svg/edit/BoldIcon.tsx
|
|
774
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
775
|
+
|
|
776
|
+
// src/tokens/svg/edit/CodeIcon.tsx
|
|
777
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
778
|
+
|
|
779
|
+
// src/tokens/svg/edit/ItalicIcon.tsx
|
|
780
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
781
|
+
|
|
782
|
+
// src/tokens/svg/edit/PenToolIcon.tsx
|
|
783
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
784
|
+
|
|
785
|
+
// src/tokens/svg/edit/TypeIcon.tsx
|
|
786
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
787
|
+
|
|
788
|
+
// src/tokens/svg/edit/UnderlineIcon.tsx
|
|
789
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
790
|
+
|
|
791
|
+
// src/tokens/svg/file/ArchiveIcon.tsx
|
|
792
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
793
|
+
|
|
794
|
+
// src/tokens/svg/file/BookIcon.tsx
|
|
795
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
796
|
+
|
|
797
|
+
// src/tokens/svg/file/BookOpenIcon.tsx
|
|
798
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
799
|
+
|
|
800
|
+
// src/tokens/svg/file/BookmarkIcon.tsx
|
|
801
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
802
|
+
|
|
803
|
+
// src/tokens/svg/file/ClipboardIcon.tsx
|
|
804
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
805
|
+
|
|
806
|
+
// src/tokens/svg/file/FileIcon.tsx
|
|
807
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
808
|
+
|
|
809
|
+
// src/tokens/svg/file/FileMinusIcon.tsx
|
|
810
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
811
|
+
|
|
812
|
+
// src/tokens/svg/file/FilePlusIcon.tsx
|
|
813
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
814
|
+
|
|
815
|
+
// src/tokens/svg/file/FileTextIcon.tsx
|
|
816
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
817
|
+
|
|
818
|
+
// src/tokens/svg/file/FolderIcon.tsx
|
|
819
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
820
|
+
|
|
821
|
+
// src/tokens/svg/file/FolderMinusIcon.tsx
|
|
822
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
823
|
+
|
|
824
|
+
// src/tokens/svg/file/FolderPlusIcon.tsx
|
|
825
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
826
|
+
|
|
827
|
+
// src/tokens/svg/file/PackageIcon.tsx
|
|
828
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
829
|
+
|
|
830
|
+
// src/tokens/svg/media/AirplayIcon.tsx
|
|
831
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
832
|
+
|
|
833
|
+
// src/tokens/svg/media/CameraIcon.tsx
|
|
834
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
835
|
+
|
|
836
|
+
// src/tokens/svg/media/CameraOffIcon.tsx
|
|
837
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
838
|
+
|
|
839
|
+
// src/tokens/svg/media/CastIcon.tsx
|
|
840
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
841
|
+
|
|
842
|
+
// src/tokens/svg/media/DiscIcon.tsx
|
|
843
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
844
|
+
|
|
845
|
+
// src/tokens/svg/media/FastForwardIcon.tsx
|
|
846
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
847
|
+
|
|
848
|
+
// src/tokens/svg/media/FilmIcon.tsx
|
|
849
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
850
|
+
|
|
851
|
+
// src/tokens/svg/media/HeadphonesIcon.tsx
|
|
852
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
853
|
+
|
|
854
|
+
// src/tokens/svg/media/ImageIcon.tsx
|
|
855
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
856
|
+
var ImageIcon = () => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
857
|
+
"svg",
|
|
858
|
+
{
|
|
859
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
860
|
+
width: "1em",
|
|
861
|
+
height: "1em",
|
|
862
|
+
viewBox: "0 0 20 20",
|
|
863
|
+
fill: "none",
|
|
864
|
+
children: [
|
|
865
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
866
|
+
"path",
|
|
867
|
+
{
|
|
868
|
+
fillRule: "evenodd",
|
|
869
|
+
clipRule: "evenodd",
|
|
870
|
+
d: "M7.08398 5.08301C8.18825 5.08327 9.08385 5.97871 9.08398 7.08301C9.08398 8.18741 8.18833 9.08274 7.08398 9.08301C5.97941 9.08301 5.08398 8.18758 5.08398 7.08301C5.08412 5.97855 5.9795 5.08301 7.08398 5.08301ZM7.08398 6.58301C6.80792 6.58301 6.58412 6.80698 6.58398 7.08301C6.58398 7.35915 6.80784 7.58301 7.08398 7.58301C7.3599 7.58274 7.58398 7.35899 7.58398 7.08301C7.58385 6.80714 7.35982 6.58327 7.08398 6.58301Z",
|
|
871
|
+
fill: "currentColor"
|
|
872
|
+
}
|
|
873
|
+
),
|
|
874
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
875
|
+
"path",
|
|
876
|
+
{
|
|
877
|
+
fillRule: "evenodd",
|
|
878
|
+
clipRule: "evenodd",
|
|
879
|
+
d: "M15.833 1.75C17.1677 1.75 18.25 2.8323 18.25 4.16699V15.833C18.25 17.1677 17.1677 18.25 15.833 18.25H4.16699C2.8323 18.25 1.75 17.1677 1.75 15.833V4.16699C1.75 2.8323 2.8323 1.75 4.16699 1.75H15.833ZM5.97754 16.75H15.833C16.3393 16.75 16.75 16.3393 16.75 15.833V12.8105L13.333 9.39355L5.97754 16.75ZM4.16699 3.25C3.66073 3.25 3.25 3.66073 3.25 4.16699V15.833C3.25 16.2451 3.52223 16.5935 3.89648 16.709L12.8037 7.80273L12.918 7.70898C13.0401 7.62774 13.1851 7.58301 13.334 7.58301C13.5326 7.58322 13.7238 7.66227 13.8643 7.80273L16.75 10.6885V4.16699C16.75 3.66073 16.3393 3.25 15.833 3.25H4.16699Z",
|
|
880
|
+
fill: "currentColor"
|
|
881
|
+
}
|
|
882
|
+
)
|
|
883
|
+
]
|
|
884
|
+
}
|
|
885
|
+
);
|
|
886
|
+
var ImageIcon_default = ImageIcon;
|
|
887
|
+
|
|
888
|
+
// src/tokens/svg/media/MicIcon.tsx
|
|
889
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
890
|
+
|
|
891
|
+
// src/tokens/svg/media/MicOffIcon.tsx
|
|
892
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
893
|
+
|
|
894
|
+
// src/tokens/svg/media/MusicIcon.tsx
|
|
895
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
896
|
+
|
|
897
|
+
// src/tokens/svg/media/PauseCircleIcon.tsx
|
|
898
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
899
|
+
|
|
900
|
+
// src/tokens/svg/media/PauseIcon.tsx
|
|
901
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
902
|
+
var PauseIcon = () => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
903
|
+
"svg",
|
|
904
|
+
{
|
|
905
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
906
|
+
width: "1em",
|
|
907
|
+
height: "1em",
|
|
908
|
+
viewBox: "0 0 20 20",
|
|
909
|
+
fill: "none",
|
|
910
|
+
children: [
|
|
911
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("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" }),
|
|
912
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("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" })
|
|
913
|
+
]
|
|
914
|
+
}
|
|
915
|
+
);
|
|
916
|
+
var PauseIcon_default = PauseIcon;
|
|
917
|
+
|
|
918
|
+
// src/tokens/svg/media/PlayCircleIcon.tsx
|
|
919
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
920
|
+
var PlayCircleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
921
|
+
"svg",
|
|
922
|
+
{
|
|
923
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
924
|
+
width: "1em",
|
|
925
|
+
height: "1em",
|
|
926
|
+
viewBox: "0 0 20 20",
|
|
927
|
+
fill: "none",
|
|
928
|
+
children: [
|
|
929
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("g", { clipPath: "url(#playcircle-clip)", children: [
|
|
930
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("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" }),
|
|
931
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("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" })
|
|
932
|
+
] }),
|
|
933
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("clipPath", { id: "playcircle-clip", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("rect", { width: "20", height: "20", fill: "currentColor" }) }) })
|
|
934
|
+
]
|
|
935
|
+
}
|
|
936
|
+
);
|
|
937
|
+
var PlayCircleIcon_default = PlayCircleIcon;
|
|
938
|
+
|
|
939
|
+
// src/tokens/svg/media/PlayIcon.tsx
|
|
940
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
941
|
+
|
|
942
|
+
// src/tokens/svg/media/RepeatIcon.tsx
|
|
943
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
944
|
+
|
|
945
|
+
// src/tokens/svg/media/RewindIcon.tsx
|
|
946
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
947
|
+
|
|
948
|
+
// src/tokens/svg/media/SkipBackIcon.tsx
|
|
949
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
950
|
+
|
|
951
|
+
// src/tokens/svg/media/SkipForwardIcon.tsx
|
|
952
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
953
|
+
|
|
954
|
+
// src/tokens/svg/media/SpeakerIcon.tsx
|
|
955
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
956
|
+
|
|
957
|
+
// src/tokens/svg/media/StopCircleIcon.tsx
|
|
958
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
959
|
+
|
|
960
|
+
// src/tokens/svg/media/VideoIcon.tsx
|
|
961
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
962
|
+
|
|
963
|
+
// src/tokens/svg/media/VideoOffIcon.tsx
|
|
964
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
965
|
+
|
|
966
|
+
// src/tokens/svg/media/Volume1Icon.tsx
|
|
967
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
968
|
+
|
|
969
|
+
// src/tokens/svg/media/Volume2Icon.tsx
|
|
970
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
971
|
+
|
|
972
|
+
// src/tokens/svg/media/VolumeIcon.tsx
|
|
973
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
974
|
+
|
|
975
|
+
// src/tokens/svg/media/VolumeXIcon.tsx
|
|
976
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
977
|
+
|
|
978
|
+
// src/tokens/svg/misc/ActivityIcon.tsx
|
|
979
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
980
|
+
|
|
981
|
+
// src/tokens/svg/misc/AnchorIcon.tsx
|
|
982
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
983
|
+
|
|
984
|
+
// src/tokens/svg/misc/ApertureIcon.tsx
|
|
985
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
986
|
+
|
|
987
|
+
// src/tokens/svg/misc/AwardIcon.tsx
|
|
988
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
989
|
+
|
|
990
|
+
// src/tokens/svg/misc/BellIcon.tsx
|
|
991
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
992
|
+
|
|
993
|
+
// src/tokens/svg/misc/BellOffIcon.tsx
|
|
994
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
995
|
+
|
|
996
|
+
// src/tokens/svg/misc/BoxIcon.tsx
|
|
997
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
998
|
+
|
|
999
|
+
// src/tokens/svg/misc/BriefcaseIcon.tsx
|
|
1000
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
1001
|
+
|
|
1002
|
+
// src/tokens/svg/misc/CloudDrizzleIcon.tsx
|
|
1003
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
1004
|
+
|
|
1005
|
+
// src/tokens/svg/misc/CloudIcon.tsx
|
|
1006
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
1007
|
+
|
|
1008
|
+
// src/tokens/svg/misc/CloudLightningIcon.tsx
|
|
1009
|
+
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
1010
|
+
|
|
1011
|
+
// src/tokens/svg/misc/CloudOffIcon.tsx
|
|
1012
|
+
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
1013
|
+
|
|
1014
|
+
// src/tokens/svg/misc/CloudRainIcon.tsx
|
|
1015
|
+
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
1016
|
+
|
|
1017
|
+
// src/tokens/svg/misc/CloudSnowIcon.tsx
|
|
1018
|
+
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
1019
|
+
|
|
1020
|
+
// src/tokens/svg/misc/CoffeeIcon.tsx
|
|
1021
|
+
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
1022
|
+
|
|
1023
|
+
// src/tokens/svg/misc/CreditCardIcon.tsx
|
|
1024
|
+
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
1025
|
+
|
|
1026
|
+
// src/tokens/svg/misc/CrosshairIcon.tsx
|
|
1027
|
+
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
1028
|
+
|
|
1029
|
+
// src/tokens/svg/misc/DollarSignIcon.tsx
|
|
1030
|
+
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
1031
|
+
|
|
1032
|
+
// src/tokens/svg/misc/DropletIcon.tsx
|
|
1033
|
+
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
1034
|
+
|
|
1035
|
+
// src/tokens/svg/misc/FeatherIcon.tsx
|
|
1036
|
+
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
1037
|
+
|
|
1038
|
+
// src/tokens/svg/misc/FlagIcon.tsx
|
|
1039
|
+
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
1040
|
+
|
|
1041
|
+
// src/tokens/svg/misc/FrownIcon.tsx
|
|
1042
|
+
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
1043
|
+
|
|
1044
|
+
// src/tokens/svg/misc/GiftIcon.tsx
|
|
1045
|
+
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
1046
|
+
|
|
1047
|
+
// src/tokens/svg/misc/GitBranchIcon.tsx
|
|
1048
|
+
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
1049
|
+
|
|
1050
|
+
// src/tokens/svg/misc/GitCommitIcon.tsx
|
|
1051
|
+
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
1052
|
+
|
|
1053
|
+
// src/tokens/svg/misc/GitMergeIcon.tsx
|
|
1054
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
1055
|
+
|
|
1056
|
+
// src/tokens/svg/misc/GitPullRequestIcon.tsx
|
|
1057
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
1058
|
+
|
|
1059
|
+
// src/tokens/svg/misc/GlobeIcon.tsx
|
|
1060
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
1061
|
+
|
|
1062
|
+
// src/tokens/svg/misc/HeartIcon.tsx
|
|
1063
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
1064
|
+
|
|
1065
|
+
// src/tokens/svg/misc/HomeIcon.tsx
|
|
1066
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
1067
|
+
|
|
1068
|
+
// src/tokens/svg/misc/InboxIcon.tsx
|
|
1069
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
1070
|
+
|
|
1071
|
+
// src/tokens/svg/misc/LayersIcon.tsx
|
|
1072
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
1073
|
+
|
|
1074
|
+
// src/tokens/svg/misc/LifeBuoyIcon.tsx
|
|
1075
|
+
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
1076
|
+
|
|
1077
|
+
// src/tokens/svg/misc/MehIcon.tsx
|
|
1078
|
+
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
1079
|
+
|
|
1080
|
+
// src/tokens/svg/misc/MessageCircleIcon.tsx
|
|
1081
|
+
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
1082
|
+
|
|
1083
|
+
// src/tokens/svg/misc/MessageSquareIcon.tsx
|
|
1084
|
+
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
1085
|
+
|
|
1086
|
+
// src/tokens/svg/misc/MoonIcon.tsx
|
|
1087
|
+
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
1088
|
+
|
|
1089
|
+
// src/tokens/svg/misc/MousePointerIcon.tsx
|
|
1090
|
+
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
1091
|
+
|
|
1092
|
+
// src/tokens/svg/misc/PaperclipIcon.tsx
|
|
1093
|
+
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
1094
|
+
|
|
1095
|
+
// src/tokens/svg/misc/PocketIcon.tsx
|
|
1096
|
+
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
1097
|
+
|
|
1098
|
+
// src/tokens/svg/misc/PowerIcon.tsx
|
|
1099
|
+
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
1100
|
+
|
|
1101
|
+
// src/tokens/svg/misc/RadioIcon.tsx
|
|
1102
|
+
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
1103
|
+
|
|
1104
|
+
// src/tokens/svg/misc/ShieldIcon.tsx
|
|
1105
|
+
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
1106
|
+
|
|
1107
|
+
// src/tokens/svg/misc/ShieldOffIcon.tsx
|
|
1108
|
+
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
1109
|
+
|
|
1110
|
+
// src/tokens/svg/misc/ShoppingBagIcon.tsx
|
|
1111
|
+
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
1112
|
+
|
|
1113
|
+
// src/tokens/svg/misc/ShoppingCartIcon.tsx
|
|
1114
|
+
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
1115
|
+
|
|
1116
|
+
// src/tokens/svg/misc/ShuffleIcon.tsx
|
|
1117
|
+
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
1118
|
+
|
|
1119
|
+
// src/tokens/svg/misc/SmileIcon.tsx
|
|
1120
|
+
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
1121
|
+
|
|
1122
|
+
// src/tokens/svg/misc/StarIcon.tsx
|
|
1123
|
+
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
1124
|
+
|
|
1125
|
+
// src/tokens/svg/misc/SunIcon.tsx
|
|
1126
|
+
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
1127
|
+
|
|
1128
|
+
// src/tokens/svg/misc/TagIcon.tsx
|
|
1129
|
+
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
1130
|
+
|
|
1131
|
+
// src/tokens/svg/misc/TargetIcon.tsx
|
|
1132
|
+
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
1133
|
+
|
|
1134
|
+
// src/tokens/svg/misc/ThermometerIcon.tsx
|
|
1135
|
+
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
1136
|
+
|
|
1137
|
+
// src/tokens/svg/misc/ThumbsDownIcon.tsx
|
|
1138
|
+
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
1139
|
+
|
|
1140
|
+
// src/tokens/svg/misc/ThumbsUpIcon.tsx
|
|
1141
|
+
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
1142
|
+
|
|
1143
|
+
// src/tokens/svg/misc/ToolIcon.tsx
|
|
1144
|
+
var import_jsx_runtime175 = require("react/jsx-runtime");
|
|
1145
|
+
|
|
1146
|
+
// src/tokens/svg/misc/TruckIcon.tsx
|
|
1147
|
+
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
1148
|
+
|
|
1149
|
+
// src/tokens/svg/misc/UmbrellaIcon.tsx
|
|
1150
|
+
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
1151
|
+
|
|
1152
|
+
// src/tokens/svg/misc/WindIcon.tsx
|
|
1153
|
+
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
1154
|
+
|
|
1155
|
+
// src/tokens/svg/misc/ZapIcon.tsx
|
|
1156
|
+
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
1157
|
+
|
|
1158
|
+
// src/tokens/svg/misc/ZapOffIcon.tsx
|
|
1159
|
+
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
1160
|
+
|
|
1161
|
+
// src/tokens/svg/Input/CloseEyeIcon.tsx
|
|
1162
|
+
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
1163
|
+
var CloseEyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)(
|
|
1164
|
+
"svg",
|
|
1165
|
+
{
|
|
1166
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1167
|
+
width: "1em",
|
|
1168
|
+
height: "1em",
|
|
1169
|
+
viewBox: "0 0 20 20",
|
|
1170
|
+
fill: "none",
|
|
1171
|
+
children: [
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
|
|
1173
|
+
"path",
|
|
1174
|
+
{
|
|
1175
|
+
fillRule: "evenodd",
|
|
1176
|
+
clipRule: "evenodd",
|
|
1177
|
+
d: "M0.219742 0.219551C0.512654 -0.0731039 0.987475 -0.0732631 1.28029 0.219551L19.6133 18.5526C19.9059 18.8454 19.9059 19.3203 19.6133 19.6131C19.3205 19.9059 18.8457 19.9058 18.5527 19.6131L14.7813 15.8416C13.3403 16.784 11.6591 17.3045 9.92873 17.3328H9.91701C6.70085 17.3328 4.22416 15.4963 2.59865 13.7625C1.77931 12.8885 1.15357 12.0171 0.732437 11.3651C0.521591 11.0386 0.360106 10.7651 0.250992 10.5711C0.196584 10.4744 0.154657 10.3968 0.125992 10.3426C0.111712 10.3156 0.100585 10.2933 0.0927887 10.2781C0.0890167 10.2708 0.0852609 10.2649 0.083023 10.2606C0.0819635 10.2585 0.0817067 10.2561 0.0810699 10.2547L0.0800933 10.2528L0.0791168 10.2518C-0.0297164 10.034 -0.0260827 9.77692 0.0888824 9.56232C1.04113 7.78778 2.31584 6.20831 3.84572 4.90607L0.219742 1.2801C-0.0731515 0.987204 -0.0731515 0.512444 0.219742 0.219551ZM4.91115 5.9715C3.58556 7.08096 2.46618 8.41669 1.60646 9.91779C1.70047 10.0817 1.82896 10.2988 1.9922 10.5516C2.37833 11.1494 2.95068 11.9449 3.69337 12.7371C5.19121 14.3347 7.2954 15.8286 9.90822 15.8319C11.2476 15.8092 12.5514 15.4346 13.6934 14.7537L11.6348 12.6951C11.4891 12.7906 11.3365 12.8759 11.1768 12.9471C10.7784 13.1246 10.3482 13.2205 9.91212 13.2283C9.47589 13.236 9.0413 13.1554 8.63673 12.992C8.23247 12.8287 7.86504 12.5854 7.55666 12.2772C7.24809 11.9686 7.00429 11.6007 6.84084 11.1961C6.6774 10.7915 6.59683 10.358 6.60451 9.9217C6.61221 9.48532 6.70813 9.05473 6.88576 8.65607C6.95708 8.49604 7.04011 8.3419 7.13576 8.19611L4.91115 5.9715ZM8.24123 9.30158C8.15522 9.50642 8.10843 9.72574 8.10451 9.94807C8.10037 10.183 8.14345 10.4167 8.23146 10.6346C8.31948 10.8524 8.45111 11.0505 8.6172 11.2166C8.78327 11.3825 8.98157 11.5135 9.19923 11.6014C9.41683 11.6892 9.65018 11.7324 9.88478 11.7283C10.1069 11.7244 10.3257 11.6765 10.5303 11.5906L8.24123 9.30158Z",
|
|
1178
|
+
fill: "currentColor"
|
|
1179
|
+
}
|
|
1180
|
+
),
|
|
1181
|
+
/* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
|
|
1182
|
+
"path",
|
|
1183
|
+
{
|
|
1184
|
+
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",
|
|
1185
|
+
fill: "currentColor"
|
|
1186
|
+
}
|
|
1187
|
+
)
|
|
1188
|
+
]
|
|
1189
|
+
}
|
|
1190
|
+
);
|
|
1191
|
+
var CloseEyeIcon_default = CloseEyeIcon;
|
|
1192
|
+
|
|
1193
|
+
// src/tokens/svg/Input/EyeIcon.tsx
|
|
1194
|
+
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
1195
|
+
|
|
1196
|
+
// src/tokens/svg/Input/EyeOffIcon.tsx
|
|
1197
|
+
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
1198
|
+
|
|
1199
|
+
// src/tokens/svg/Input/OpenEyeIcon.tsx
|
|
1200
|
+
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
1201
|
+
var OpenEyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(
|
|
1202
|
+
"svg",
|
|
1203
|
+
{
|
|
1204
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1205
|
+
width: "1em",
|
|
1206
|
+
height: "1em",
|
|
1207
|
+
viewBox: "0 0 20 20",
|
|
1208
|
+
fill: "none",
|
|
1209
|
+
children: [
|
|
1210
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
1211
|
+
"path",
|
|
1212
|
+
{
|
|
1213
|
+
fillRule: "evenodd",
|
|
1214
|
+
clipRule: "evenodd",
|
|
1215
|
+
d: "M10 6.75C11.795 6.75 13.25 8.20507 13.25 10C13.25 11.7949 11.795 13.25 10 13.25C8.20514 13.25 6.75004 11.7949 6.75004 10C6.75004 8.20509 8.20514 6.75002 10 6.75ZM10 8.25C9.03356 8.25002 8.25004 9.03352 8.25004 10C8.25004 10.9665 9.03356 11.75 10 11.75C10.9665 11.75 11.75 10.9665 11.75 10C11.75 9.0335 10.9665 8.25 10 8.25Z",
|
|
1216
|
+
fill: "currentColor"
|
|
1217
|
+
}
|
|
1218
|
+
),
|
|
1219
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
1220
|
+
"path",
|
|
1221
|
+
{
|
|
1222
|
+
fillRule: "evenodd",
|
|
1223
|
+
clipRule: "evenodd",
|
|
1224
|
+
d: "M10.001 2.58301C13.2168 2.5833 15.693 4.41963 17.3184 6.15332C18.1379 7.02746 18.7644 7.8987 19.1856 8.55078C19.3966 8.87754 19.5569 9.15172 19.6661 9.3457C19.7206 9.44274 19.7624 9.52003 19.7911 9.57422C19.8054 9.60124 19.8165 9.62253 19.8243 9.6377C19.8281 9.64511 19.8318 9.65085 19.834 9.65527L19.8379 9.66309L19.8731 9.74512C19.9423 9.93686 19.9301 10.1503 19.8379 10.335L19.834 10.3438C19.8318 10.3481 19.828 10.354 19.8243 10.3613C19.8165 10.3764 19.8053 10.3989 19.7911 10.4258C19.7624 10.4799 19.7204 10.5577 19.6661 10.6543C19.557 10.8482 19.3963 11.1219 19.1856 11.4482C18.7645 12.1003 18.1378 12.9716 17.3184 13.8457C15.693 15.5794 13.2169 17.4157 10.001 17.416C6.78478 17.416 4.30817 15.5796 2.68266 13.8457C1.86324 12.9716 1.23758 12.1003 0.816447 11.4482C0.605537 11.1217 0.444118 10.8483 0.335002 10.6543C0.280535 10.5575 0.23867 10.4799 0.210002 10.4258C0.195664 10.3987 0.184599 10.3765 0.176799 10.3613C0.172971 10.3539 0.169262 10.3481 0.167033 10.3438C0.165933 10.3416 0.165786 10.3393 0.16508 10.3379L0.164103 10.3359L0.163127 10.335C0.0576283 10.1238 0.0575788 9.87516 0.163127 9.66406L0.164103 9.66309L0.16508 9.66113C0.165655 9.65972 0.166042 9.65723 0.167033 9.65527C0.169295 9.6509 0.17306 9.64497 0.176799 9.6377C0.184576 9.62257 0.195818 9.60103 0.210002 9.57422C0.238658 9.52007 0.280573 9.44247 0.335002 9.3457C0.444118 9.15173 0.605537 8.87735 0.816447 8.55078C1.2376 7.89875 1.86341 7.02719 2.68266 6.15332C4.30818 4.41955 6.78494 2.58301 10.001 2.58301ZM10.001 4.08301C7.38417 4.08301 5.27685 5.58037 3.77738 7.17969C3.03465 7.97195 2.46234 8.7674 2.07621 9.36523C1.91278 9.6183 1.78352 9.83509 1.68949 9.99902C1.7836 10.1632 1.91229 10.3809 2.07621 10.6348C2.46234 11.2326 3.03462 12.028 3.77738 12.8203C5.27685 14.4196 7.38421 15.916 10.001 15.916C12.6177 15.9157 14.7253 14.4196 16.2246 12.8203C16.9674 12.028 17.5397 11.2326 17.9258 10.6348C18.0896 10.3812 18.2175 10.1631 18.3116 9.99902C18.2176 9.83513 18.0892 9.61828 17.9258 9.36523C17.5398 8.76747 16.9674 7.97197 16.2246 7.17969C14.7253 5.58039 12.6177 4.0833 10.001 4.08301Z",
|
|
1225
|
+
fill: "currentColor"
|
|
1226
|
+
}
|
|
1227
|
+
)
|
|
1228
|
+
]
|
|
1229
|
+
}
|
|
1230
|
+
);
|
|
1231
|
+
var OpenEyeIcon_default = OpenEyeIcon;
|
|
1232
|
+
|
|
1233
|
+
// src/tokens/svg/navigation/ArrowDownCircleIcon.tsx
|
|
1234
|
+
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
1235
|
+
|
|
1236
|
+
// src/tokens/svg/navigation/ArrowDownIcon.tsx
|
|
1237
|
+
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
1238
|
+
|
|
1239
|
+
// src/tokens/svg/navigation/ArrowDownLeftIcon.tsx
|
|
1240
|
+
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
1241
|
+
|
|
1242
|
+
// src/tokens/svg/navigation/ArrowDownRightIcon.tsx
|
|
1243
|
+
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
1244
|
+
|
|
1245
|
+
// src/tokens/svg/navigation/ArrowLeftCircleIcon.tsx
|
|
1246
|
+
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
1247
|
+
|
|
1248
|
+
// src/tokens/svg/navigation/ArrowLeftIcon.tsx
|
|
1249
|
+
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
1250
|
+
|
|
1251
|
+
// src/tokens/svg/navigation/ArrowRightCircleIcon.tsx
|
|
1252
|
+
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
1253
|
+
|
|
1254
|
+
// src/tokens/svg/navigation/ArrowRightIcon.tsx
|
|
1255
|
+
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
1256
|
+
|
|
1257
|
+
// src/tokens/svg/navigation/ArrowUpCircleIcon.tsx
|
|
1258
|
+
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
1259
|
+
|
|
1260
|
+
// src/tokens/svg/navigation/ArrowUpIcon.tsx
|
|
1261
|
+
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
1262
|
+
|
|
1263
|
+
// src/tokens/svg/navigation/ArrowUpLeftIcon.tsx
|
|
1264
|
+
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
1265
|
+
|
|
1266
|
+
// src/tokens/svg/navigation/ArrowUpRightIcon.tsx
|
|
1267
|
+
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
1268
|
+
|
|
1269
|
+
// src/tokens/svg/navigation/CompassIcon.tsx
|
|
1270
|
+
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
1271
|
+
|
|
1272
|
+
// src/tokens/svg/navigation/CornerDownLeftIcon.tsx
|
|
1273
|
+
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
1274
|
+
|
|
1275
|
+
// src/tokens/svg/navigation/CornerDownRightIcon.tsx
|
|
1276
|
+
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
1277
|
+
|
|
1278
|
+
// src/tokens/svg/navigation/CornerLeftDownIcon.tsx
|
|
1279
|
+
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
1280
|
+
|
|
1281
|
+
// src/tokens/svg/navigation/CornerLeftUpIcon.tsx
|
|
1282
|
+
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
1283
|
+
|
|
1284
|
+
// src/tokens/svg/navigation/CornerRightDownIcon.tsx
|
|
1285
|
+
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
1286
|
+
|
|
1287
|
+
// src/tokens/svg/navigation/CornerRightUpIcon.tsx
|
|
1288
|
+
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
1289
|
+
|
|
1290
|
+
// src/tokens/svg/navigation/CornerUpLeftIcon.tsx
|
|
1291
|
+
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
1292
|
+
|
|
1293
|
+
// src/tokens/svg/navigation/CornerUpRightIcon.tsx
|
|
1294
|
+
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
1295
|
+
|
|
1296
|
+
// src/tokens/svg/navigation/MapIcon.tsx
|
|
1297
|
+
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
1298
|
+
|
|
1299
|
+
// src/tokens/svg/navigation/MapPinIcon.tsx
|
|
1300
|
+
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
1301
|
+
|
|
1302
|
+
// src/tokens/svg/navigation/Navigation2Icon.tsx
|
|
1303
|
+
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
1304
|
+
|
|
1305
|
+
// src/tokens/svg/navigation/NavigationIcon.tsx
|
|
1306
|
+
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
1307
|
+
|
|
1308
|
+
// src/tokens/svg/social/ChromeIcon.tsx
|
|
1309
|
+
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
1310
|
+
|
|
1311
|
+
// src/tokens/svg/social/CodepenIcon.tsx
|
|
1312
|
+
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
1313
|
+
|
|
1314
|
+
// src/tokens/svg/social/CodesandboxIcon.tsx
|
|
1315
|
+
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
1316
|
+
|
|
1317
|
+
// src/tokens/svg/social/DribbbleIcon.tsx
|
|
1318
|
+
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
1319
|
+
|
|
1320
|
+
// src/tokens/svg/social/FacebookIcon.tsx
|
|
1321
|
+
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
1322
|
+
|
|
1323
|
+
// src/tokens/svg/social/FigmaIcon.tsx
|
|
1324
|
+
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
1325
|
+
|
|
1326
|
+
// src/tokens/svg/social/FramerIcon.tsx
|
|
1327
|
+
var import_jsx_runtime216 = require("react/jsx-runtime");
|
|
1328
|
+
|
|
1329
|
+
// src/tokens/svg/social/GithubIcon.tsx
|
|
1330
|
+
var import_jsx_runtime217 = require("react/jsx-runtime");
|
|
1331
|
+
|
|
1332
|
+
// src/tokens/svg/social/GitlabIcon.tsx
|
|
1333
|
+
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
1334
|
+
|
|
1335
|
+
// src/tokens/svg/social/InstagramIcon.tsx
|
|
1336
|
+
var import_jsx_runtime219 = require("react/jsx-runtime");
|
|
1337
|
+
|
|
1338
|
+
// src/tokens/svg/social/LinkedinIcon.tsx
|
|
1339
|
+
var import_jsx_runtime220 = require("react/jsx-runtime");
|
|
1340
|
+
|
|
1341
|
+
// src/tokens/svg/social/RssIcon.tsx
|
|
1342
|
+
var import_jsx_runtime221 = require("react/jsx-runtime");
|
|
1343
|
+
|
|
1344
|
+
// src/tokens/svg/social/SlackIcon.tsx
|
|
1345
|
+
var import_jsx_runtime222 = require("react/jsx-runtime");
|
|
1346
|
+
|
|
1347
|
+
// src/tokens/svg/social/TrelloIcon.tsx
|
|
1348
|
+
var import_jsx_runtime223 = require("react/jsx-runtime");
|
|
1349
|
+
|
|
1350
|
+
// src/tokens/svg/social/TwitchIcon.tsx
|
|
1351
|
+
var import_jsx_runtime224 = require("react/jsx-runtime");
|
|
1352
|
+
|
|
1353
|
+
// src/tokens/svg/social/TwitterIcon.tsx
|
|
1354
|
+
var import_jsx_runtime225 = require("react/jsx-runtime");
|
|
1355
|
+
|
|
1356
|
+
// src/tokens/svg/social/YoutubeIcon.tsx
|
|
1357
|
+
var import_jsx_runtime226 = require("react/jsx-runtime");
|
|
1358
|
+
|
|
1359
|
+
// src/tokens/svg/ui/AtSignIcon.tsx
|
|
1360
|
+
var import_jsx_runtime227 = require("react/jsx-runtime");
|
|
1361
|
+
|
|
1362
|
+
// src/tokens/svg/ui/CheckCircleIcon.tsx
|
|
1363
|
+
var import_jsx_runtime228 = require("react/jsx-runtime");
|
|
1364
|
+
|
|
1365
|
+
// src/tokens/svg/ui/CheckIcon.tsx
|
|
1366
|
+
var import_jsx_runtime229 = require("react/jsx-runtime");
|
|
1367
|
+
var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
1368
|
+
"svg",
|
|
1369
|
+
{
|
|
1370
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1371
|
+
width: "1em",
|
|
1372
|
+
height: "1em",
|
|
1373
|
+
viewBox: "0 0 12 9",
|
|
1374
|
+
fill: "none",
|
|
1375
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
1376
|
+
"path",
|
|
1377
|
+
{
|
|
1378
|
+
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",
|
|
1379
|
+
fill: "white"
|
|
1380
|
+
}
|
|
1381
|
+
)
|
|
1382
|
+
}
|
|
1383
|
+
);
|
|
1384
|
+
var CheckIcon_default = CheckIcon;
|
|
1385
|
+
|
|
1386
|
+
// src/tokens/svg/ui/CheckSquareIcon.tsx
|
|
1387
|
+
var import_jsx_runtime230 = require("react/jsx-runtime");
|
|
1388
|
+
|
|
1389
|
+
// src/tokens/svg/ui/ChevronDownIcon.tsx
|
|
1390
|
+
var import_jsx_runtime231 = require("react/jsx-runtime");
|
|
1391
|
+
var ChevronDownIcon = () => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
1392
|
+
"svg",
|
|
1393
|
+
{
|
|
1394
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1395
|
+
width: "1em",
|
|
1396
|
+
height: "1em",
|
|
1397
|
+
viewBox: "0 0 20 20",
|
|
1398
|
+
fill: "none",
|
|
1399
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
1400
|
+
"path",
|
|
1401
|
+
{
|
|
1402
|
+
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",
|
|
1403
|
+
fill: "currentColor"
|
|
1404
|
+
}
|
|
1405
|
+
)
|
|
1406
|
+
}
|
|
1407
|
+
);
|
|
1408
|
+
var ChevronDownIcon_default = ChevronDownIcon;
|
|
1409
|
+
|
|
1410
|
+
// src/tokens/svg/ui/ChevronLeftIcon.tsx
|
|
1411
|
+
var import_jsx_runtime232 = require("react/jsx-runtime");
|
|
1412
|
+
|
|
1413
|
+
// src/tokens/svg/ui/ChevronRightIcon.tsx
|
|
1414
|
+
var import_jsx_runtime233 = require("react/jsx-runtime");
|
|
1415
|
+
|
|
1416
|
+
// src/tokens/svg/ui/ChevronUpIcon.tsx
|
|
1417
|
+
var import_jsx_runtime234 = require("react/jsx-runtime");
|
|
1418
|
+
|
|
1419
|
+
// src/tokens/svg/ui/ChevronsDownIcon.tsx
|
|
1420
|
+
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
1421
|
+
|
|
1422
|
+
// src/tokens/svg/ui/ChevronsLeftIcon.tsx
|
|
1423
|
+
var import_jsx_runtime236 = require("react/jsx-runtime");
|
|
1424
|
+
|
|
1425
|
+
// src/tokens/svg/ui/ChevronsRightIcon.tsx
|
|
1426
|
+
var import_jsx_runtime237 = require("react/jsx-runtime");
|
|
1427
|
+
|
|
1428
|
+
// src/tokens/svg/ui/ChevronsUpIcon.tsx
|
|
1429
|
+
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
1430
|
+
|
|
1431
|
+
// src/tokens/svg/ui/CircleIcon.tsx
|
|
1432
|
+
var import_jsx_runtime239 = require("react/jsx-runtime");
|
|
1433
|
+
|
|
1434
|
+
// src/tokens/svg/ui/ColumnsIcon.tsx
|
|
1435
|
+
var import_jsx_runtime240 = require("react/jsx-runtime");
|
|
1436
|
+
|
|
1437
|
+
// src/tokens/svg/ui/DivideCircleIcon.tsx
|
|
1438
|
+
var import_jsx_runtime241 = require("react/jsx-runtime");
|
|
1439
|
+
|
|
1440
|
+
// src/tokens/svg/ui/DivideIcon.tsx
|
|
1441
|
+
var import_jsx_runtime242 = require("react/jsx-runtime");
|
|
1442
|
+
|
|
1443
|
+
// src/tokens/svg/ui/DivideSquareIcon.tsx
|
|
1444
|
+
var import_jsx_runtime243 = require("react/jsx-runtime");
|
|
1445
|
+
|
|
1446
|
+
// src/tokens/svg/ui/GridIcon.tsx
|
|
1447
|
+
var import_jsx_runtime244 = require("react/jsx-runtime");
|
|
1448
|
+
|
|
1449
|
+
// src/tokens/svg/ui/HashIcon.tsx
|
|
1450
|
+
var import_jsx_runtime245 = require("react/jsx-runtime");
|
|
1451
|
+
|
|
1452
|
+
// src/tokens/svg/ui/HexagonIcon.tsx
|
|
1453
|
+
var import_jsx_runtime246 = require("react/jsx-runtime");
|
|
1454
|
+
|
|
1455
|
+
// src/tokens/svg/ui/LayoutIcon.tsx
|
|
1456
|
+
var import_jsx_runtime247 = require("react/jsx-runtime");
|
|
1457
|
+
|
|
1458
|
+
// src/tokens/svg/ui/ListIcon.tsx
|
|
1459
|
+
var import_jsx_runtime248 = require("react/jsx-runtime");
|
|
1460
|
+
|
|
1461
|
+
// src/tokens/svg/ui/LoaderIcon.tsx
|
|
1462
|
+
var import_jsx_runtime249 = require("react/jsx-runtime");
|
|
1463
|
+
|
|
1464
|
+
// src/tokens/svg/ui/Maximize2Icon.tsx
|
|
1465
|
+
var import_jsx_runtime250 = require("react/jsx-runtime");
|
|
1466
|
+
|
|
1467
|
+
// src/tokens/svg/ui/MaximizeIcon.tsx
|
|
1468
|
+
var import_jsx_runtime251 = require("react/jsx-runtime");
|
|
1469
|
+
|
|
1470
|
+
// src/tokens/svg/ui/MenuIcon.tsx
|
|
1471
|
+
var import_jsx_runtime252 = require("react/jsx-runtime");
|
|
1472
|
+
|
|
1473
|
+
// src/tokens/svg/ui/Minimize2Icon.tsx
|
|
1474
|
+
var import_jsx_runtime253 = require("react/jsx-runtime");
|
|
1475
|
+
|
|
1476
|
+
// src/tokens/svg/ui/MinimizeIcon.tsx
|
|
1477
|
+
var import_jsx_runtime254 = require("react/jsx-runtime");
|
|
1478
|
+
|
|
1479
|
+
// src/tokens/svg/ui/MinusCircleIcon.tsx
|
|
1480
|
+
var import_jsx_runtime255 = require("react/jsx-runtime");
|
|
1481
|
+
|
|
1482
|
+
// src/tokens/svg/ui/MinusIcon.tsx
|
|
1483
|
+
var import_jsx_runtime256 = require("react/jsx-runtime");
|
|
1484
|
+
|
|
1485
|
+
// src/tokens/svg/ui/MinusSquareIcon.tsx
|
|
1486
|
+
var import_jsx_runtime257 = require("react/jsx-runtime");
|
|
1487
|
+
|
|
1488
|
+
// src/tokens/svg/ui/MoreHorizontalIcon.tsx
|
|
1489
|
+
var import_jsx_runtime258 = require("react/jsx-runtime");
|
|
1490
|
+
|
|
1491
|
+
// src/tokens/svg/ui/MoreVerticalIcon.tsx
|
|
1492
|
+
var import_jsx_runtime259 = require("react/jsx-runtime");
|
|
1493
|
+
|
|
1494
|
+
// src/tokens/svg/ui/OctagonIcon.tsx
|
|
1495
|
+
var import_jsx_runtime260 = require("react/jsx-runtime");
|
|
1496
|
+
|
|
1497
|
+
// src/tokens/svg/ui/PercentIcon.tsx
|
|
1498
|
+
var import_jsx_runtime261 = require("react/jsx-runtime");
|
|
1499
|
+
|
|
1500
|
+
// src/tokens/svg/ui/PlusCircleIcon.tsx
|
|
1501
|
+
var import_jsx_runtime262 = require("react/jsx-runtime");
|
|
1502
|
+
|
|
1503
|
+
// src/tokens/svg/ui/PlusIcon.tsx
|
|
1504
|
+
var import_jsx_runtime263 = require("react/jsx-runtime");
|
|
1505
|
+
|
|
1506
|
+
// src/tokens/svg/ui/PlusSquareIcon.tsx
|
|
1507
|
+
var import_jsx_runtime264 = require("react/jsx-runtime");
|
|
1508
|
+
|
|
1509
|
+
// src/tokens/svg/ui/SettingsIcon.tsx
|
|
1510
|
+
var import_jsx_runtime265 = require("react/jsx-runtime");
|
|
1511
|
+
|
|
1512
|
+
// src/tokens/svg/ui/SidebarIcon.tsx
|
|
1513
|
+
var import_jsx_runtime266 = require("react/jsx-runtime");
|
|
1514
|
+
|
|
1515
|
+
// src/tokens/svg/ui/SlashIcon.tsx
|
|
1516
|
+
var import_jsx_runtime267 = require("react/jsx-runtime");
|
|
1517
|
+
|
|
1518
|
+
// src/tokens/svg/ui/SlidersIcon.tsx
|
|
1519
|
+
var import_jsx_runtime268 = require("react/jsx-runtime");
|
|
1520
|
+
|
|
1521
|
+
// src/tokens/svg/ui/SquareIcon.tsx
|
|
1522
|
+
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
1523
|
+
|
|
1524
|
+
// src/tokens/svg/ui/ToggleLeftIcon.tsx
|
|
1525
|
+
var import_jsx_runtime270 = require("react/jsx-runtime");
|
|
1526
|
+
|
|
1527
|
+
// src/tokens/svg/ui/ToggleRightIcon.tsx
|
|
1528
|
+
var import_jsx_runtime271 = require("react/jsx-runtime");
|
|
1529
|
+
|
|
1530
|
+
// src/tokens/svg/ui/TriangleIcon.tsx
|
|
1531
|
+
var import_jsx_runtime272 = require("react/jsx-runtime");
|
|
1532
|
+
|
|
1533
|
+
// src/tokens/svg/ui/XCircleIcon.tsx
|
|
1534
|
+
var import_jsx_runtime273 = require("react/jsx-runtime");
|
|
1535
|
+
|
|
1536
|
+
// src/tokens/svg/ui/XIcon.tsx
|
|
1537
|
+
var import_jsx_runtime274 = require("react/jsx-runtime");
|
|
1538
|
+
|
|
1539
|
+
// src/tokens/svg/ui/XOctagonIcon.tsx
|
|
1540
|
+
var import_jsx_runtime275 = require("react/jsx-runtime");
|
|
1541
|
+
|
|
1542
|
+
// src/tokens/svg/ui/XSquareIcon.tsx
|
|
1543
|
+
var import_jsx_runtime276 = require("react/jsx-runtime");
|
|
1544
|
+
|
|
1545
|
+
// src/tokens/svg/user/GierIcon.tsx
|
|
1546
|
+
var import_jsx_runtime277 = require("react/jsx-runtime");
|
|
1547
|
+
|
|
1548
|
+
// src/tokens/svg/user/KeyIcon.tsx
|
|
1549
|
+
var import_jsx_runtime278 = require("react/jsx-runtime");
|
|
1550
|
+
|
|
1551
|
+
// src/tokens/svg/user/LockIcon.tsx
|
|
1552
|
+
var import_jsx_runtime279 = require("react/jsx-runtime");
|
|
1553
|
+
|
|
1554
|
+
// src/tokens/svg/user/LogInIcon.tsx
|
|
1555
|
+
var import_jsx_runtime280 = require("react/jsx-runtime");
|
|
1556
|
+
|
|
1557
|
+
// src/tokens/svg/user/LogOutIcon.tsx
|
|
1558
|
+
var import_jsx_runtime281 = require("react/jsx-runtime");
|
|
1559
|
+
|
|
1560
|
+
// src/tokens/svg/user/MailIcon.tsx
|
|
1561
|
+
var import_jsx_runtime282 = require("react/jsx-runtime");
|
|
1562
|
+
|
|
1563
|
+
// src/tokens/svg/user/ProfileIcon.tsx
|
|
1564
|
+
var import_jsx_runtime283 = require("react/jsx-runtime");
|
|
1565
|
+
|
|
1566
|
+
// src/tokens/svg/user/UnlockIcon.tsx
|
|
1567
|
+
var import_jsx_runtime284 = require("react/jsx-runtime");
|
|
1568
|
+
|
|
1569
|
+
// src/tokens/svg/user/UserCheckIcon.tsx
|
|
1570
|
+
var import_jsx_runtime285 = require("react/jsx-runtime");
|
|
1571
|
+
|
|
1572
|
+
// src/tokens/svg/user/UserIcon.tsx
|
|
1573
|
+
var import_jsx_runtime286 = require("react/jsx-runtime");
|
|
1574
|
+
|
|
1575
|
+
// src/tokens/svg/user/UserMinusIcon.tsx
|
|
1576
|
+
var import_jsx_runtime287 = require("react/jsx-runtime");
|
|
1577
|
+
|
|
1578
|
+
// src/tokens/svg/user/UserPlusIcon.tsx
|
|
1579
|
+
var import_jsx_runtime288 = require("react/jsx-runtime");
|
|
1580
|
+
|
|
1581
|
+
// src/tokens/svg/user/UserXIcon.tsx
|
|
1582
|
+
var import_jsx_runtime289 = require("react/jsx-runtime");
|
|
1583
|
+
|
|
1584
|
+
// src/tokens/svg/user/UsersIcon.tsx
|
|
1585
|
+
var import_jsx_runtime290 = require("react/jsx-runtime");
|
|
1586
|
+
|
|
1587
|
+
// src/tokens/svg/validation/AlertCircleIcon.tsx
|
|
1588
|
+
var import_jsx_runtime291 = require("react/jsx-runtime");
|
|
1589
|
+
|
|
1590
|
+
// src/tokens/svg/validation/AlertOctagonIcon.tsx
|
|
1591
|
+
var import_jsx_runtime292 = require("react/jsx-runtime");
|
|
1592
|
+
|
|
1593
|
+
// src/tokens/svg/validation/AlertTriangleIcon.tsx
|
|
1594
|
+
var import_jsx_runtime293 = require("react/jsx-runtime");
|
|
1595
|
+
|
|
1596
|
+
// src/tokens/svg/validation/ErrorIcon.tsx
|
|
1597
|
+
var import_jsx_runtime294 = require("react/jsx-runtime");
|
|
1598
|
+
var ErrorIcon = () => /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(
|
|
1599
|
+
"svg",
|
|
1600
|
+
{
|
|
1601
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1602
|
+
width: "1em",
|
|
1603
|
+
height: "1em",
|
|
1604
|
+
viewBox: "0 0 16 16",
|
|
1605
|
+
fill: "none",
|
|
1606
|
+
children: [
|
|
1607
|
+
/* @__PURE__ */ (0, import_jsx_runtime294.jsxs)("g", { clipPath: "url(#clip0_1196_9603)", children: [
|
|
1608
|
+
/* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
|
|
1609
|
+
"path",
|
|
1610
|
+
{
|
|
1611
|
+
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",
|
|
1612
|
+
fill: "currentColor"
|
|
1613
|
+
}
|
|
1614
|
+
),
|
|
1615
|
+
/* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
|
|
1616
|
+
"path",
|
|
1617
|
+
{
|
|
1618
|
+
fillRule: "evenodd",
|
|
1619
|
+
clipRule: "evenodd",
|
|
1620
|
+
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",
|
|
1621
|
+
fill: "currentColor"
|
|
1622
|
+
}
|
|
1623
|
+
)
|
|
1624
|
+
] }),
|
|
1625
|
+
/* @__PURE__ */ (0, import_jsx_runtime294.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)("clipPath", { id: "clip0_1196_9603", children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1626
|
+
]
|
|
1627
|
+
}
|
|
1628
|
+
);
|
|
1629
|
+
var ErrorIcon_default = ErrorIcon;
|
|
1630
|
+
|
|
1631
|
+
// src/tokens/svg/validation/HelpCircleIcon.tsx
|
|
1632
|
+
var import_jsx_runtime295 = require("react/jsx-runtime");
|
|
1633
|
+
|
|
1634
|
+
// src/tokens/svg/validation/InfoIcon.tsx
|
|
1635
|
+
var import_jsx_runtime296 = require("react/jsx-runtime");
|
|
1636
|
+
var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
|
|
1637
|
+
"svg",
|
|
1638
|
+
{
|
|
1639
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1640
|
+
width: "1em",
|
|
1641
|
+
height: "1em",
|
|
1642
|
+
viewBox: "0 0 16 16",
|
|
1643
|
+
fill: "none",
|
|
1644
|
+
children: [
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime296.jsxs)("g", { clipPath: "url(#clip0_1188_11261)", children: [
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
|
|
1647
|
+
"path",
|
|
1648
|
+
{
|
|
1649
|
+
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",
|
|
1650
|
+
fill: "currentColor"
|
|
1651
|
+
}
|
|
1652
|
+
),
|
|
1653
|
+
/* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
|
|
1654
|
+
"path",
|
|
1655
|
+
{
|
|
1656
|
+
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",
|
|
1657
|
+
fill: "currentColor"
|
|
1658
|
+
}
|
|
1659
|
+
),
|
|
1660
|
+
/* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
|
|
1661
|
+
"path",
|
|
1662
|
+
{
|
|
1663
|
+
fillRule: "evenodd",
|
|
1664
|
+
clipRule: "evenodd",
|
|
1665
|
+
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",
|
|
1666
|
+
fill: "currentColor"
|
|
1667
|
+
}
|
|
1668
|
+
)
|
|
1669
|
+
] }),
|
|
1670
|
+
/* @__PURE__ */ (0, import_jsx_runtime296.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)("clipPath", { id: "clip0_1188_11261", children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
);
|
|
1674
|
+
var InfoIcon_default = InfoIcon;
|
|
1675
|
+
|
|
1676
|
+
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
1677
|
+
var import_jsx_runtime297 = require("react/jsx-runtime");
|
|
1678
|
+
var SuccessIcon = () => /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
|
|
1679
|
+
"svg",
|
|
1680
|
+
{
|
|
1681
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1682
|
+
width: "1em",
|
|
1683
|
+
height: "1em",
|
|
1684
|
+
viewBox: "0 0 16 16",
|
|
1685
|
+
fill: "none",
|
|
1686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
|
|
1687
|
+
"path",
|
|
1688
|
+
{
|
|
1689
|
+
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",
|
|
1690
|
+
fill: "currentColor"
|
|
1691
|
+
}
|
|
1692
|
+
)
|
|
1693
|
+
}
|
|
1694
|
+
);
|
|
1695
|
+
var SuccessIcon_default = SuccessIcon;
|
|
1696
|
+
|
|
1697
|
+
// src/components/CheckBox/CheckBox.tsx
|
|
1698
|
+
var import_jsx_runtime298 = require("react/jsx-runtime");
|
|
1699
|
+
var CheckBox = (props) => {
|
|
1700
|
+
const {
|
|
1701
|
+
colorNamespace = "xplat",
|
|
1702
|
+
color = "blue",
|
|
1703
|
+
colorDepth,
|
|
1704
|
+
checked,
|
|
1705
|
+
label,
|
|
1706
|
+
onChange,
|
|
1707
|
+
className,
|
|
1708
|
+
disabled,
|
|
1709
|
+
...rest
|
|
1710
|
+
} = props;
|
|
1711
|
+
const handleChange = (e) => {
|
|
1712
|
+
if (onChange) onChange(e);
|
|
1713
|
+
};
|
|
1714
|
+
const mainColor = getColorClass(
|
|
1715
|
+
colorNamespace,
|
|
1716
|
+
color,
|
|
1717
|
+
colorDepth ?? 500
|
|
1718
|
+
);
|
|
1719
|
+
const uncheckedClasses = `unchecked`;
|
|
1720
|
+
const checkedClasses = `checked ${mainColor}`;
|
|
1721
|
+
const disabledClasses = "disabled";
|
|
1722
|
+
const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
|
|
1723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)("label", { className: clsx_default("lib-xplat-checkbox", className), children: [
|
|
1724
|
+
/* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
|
|
1725
|
+
"input",
|
|
1726
|
+
{
|
|
1727
|
+
type: "checkbox",
|
|
1728
|
+
checked,
|
|
1729
|
+
onChange: handleChange,
|
|
1730
|
+
disabled,
|
|
1731
|
+
...rest
|
|
1732
|
+
}
|
|
1733
|
+
),
|
|
1734
|
+
/* @__PURE__ */ (0, import_jsx_runtime298.jsx)("span", { className: clsx_default("checkbox", boxClasses), children: checked && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(CheckIcon_default, {}) }),
|
|
1735
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)("span", { className: "label", children: label })
|
|
1736
|
+
] });
|
|
1737
|
+
};
|
|
1738
|
+
CheckBox.displayName = "CheckBox";
|
|
1739
|
+
var CheckBox_default = CheckBox;
|
|
1740
|
+
|
|
1741
|
+
// src/components/Chip/Chip.tsx
|
|
1742
|
+
var import_jsx_runtime299 = require("react/jsx-runtime");
|
|
1743
|
+
var Chip = (props) => {
|
|
1744
|
+
const {
|
|
1745
|
+
children,
|
|
1746
|
+
colorNamespace = "xplat",
|
|
1747
|
+
color = "black",
|
|
1748
|
+
colorDepth,
|
|
1749
|
+
type = "primary",
|
|
1750
|
+
className
|
|
1751
|
+
} = props;
|
|
1752
|
+
const colorClass = getColorClass(
|
|
1753
|
+
colorNamespace,
|
|
1754
|
+
color,
|
|
1755
|
+
colorDepth ?? 500
|
|
1756
|
+
);
|
|
1757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime299.jsx)("div", { className: clsx_default("lib-xplat-chip", type, colorClass, className), children });
|
|
1758
|
+
};
|
|
1759
|
+
Chip.displayName = "Chip";
|
|
1760
|
+
var Chip_default = Chip;
|
|
1761
|
+
|
|
1762
|
+
// src/components/DatePicker/InputDatePicker/index.tsx
|
|
1763
|
+
var import_react5 = __toESM(require("react"), 1);
|
|
1764
|
+
|
|
1765
|
+
// src/components/Input/Input.tsx
|
|
1766
|
+
var import_react2 = __toESM(require("react"), 1);
|
|
1767
|
+
|
|
1768
|
+
// src/components/Input/InputValidations.tsx
|
|
1769
|
+
var import_jsx_runtime300 = require("react/jsx-runtime");
|
|
1770
|
+
var InputValidations = (props) => {
|
|
1771
|
+
const { message, status = "default" } = props;
|
|
1772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)("div", { className: clsx_default("lib-xplat-input-validation", status), children: [
|
|
1773
|
+
/* @__PURE__ */ (0, import_jsx_runtime300.jsxs)("div", { className: "icon", children: [
|
|
1774
|
+
status === "default" && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(InfoIcon_default, {}),
|
|
1775
|
+
status === "success" && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(SuccessIcon_default, {}),
|
|
1776
|
+
status === "warning" && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(InfoIcon_default, {}),
|
|
1777
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(ErrorIcon_default, {})
|
|
1778
|
+
] }),
|
|
1779
|
+
/* @__PURE__ */ (0, import_jsx_runtime300.jsx)("div", { className: "message", children: message })
|
|
1780
|
+
] });
|
|
1781
|
+
};
|
|
1782
|
+
InputValidations.displayName = "InputValidations";
|
|
1783
|
+
var InputValidations_default = InputValidations;
|
|
1784
|
+
|
|
1785
|
+
// src/components/Input/reg.ts
|
|
1786
|
+
var numberAndCommaReg = /^[0-9,]+$/;
|
|
1787
|
+
var phoneNumberMaxLengthReg = /^.{0,13}$/;
|
|
1788
|
+
var creditCardNumberReg = /^(\d{4}-){3}\d{4}$/;
|
|
1789
|
+
var anyReg = /^.*$/;
|
|
1790
|
+
var inputTypeReg = {
|
|
1791
|
+
number: numberAndCommaReg,
|
|
1792
|
+
tel: phoneNumberMaxLengthReg,
|
|
1793
|
+
creditCard: creditCardNumberReg,
|
|
1794
|
+
email: anyReg,
|
|
1795
|
+
password: anyReg,
|
|
1796
|
+
text: anyReg
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
// src/components/Input/utils/tel.ts
|
|
1800
|
+
var handleTelBackspace = (prevValue, currValue) => {
|
|
1801
|
+
if (!prevValue || !currValue) return currValue;
|
|
1802
|
+
if (prevValue.length <= currValue.length) return currValue;
|
|
1803
|
+
const prevArr = [...prevValue];
|
|
1804
|
+
const currArr = [...currValue];
|
|
1805
|
+
const diffIndex = prevArr.findIndex((char, idx) => char !== currArr[idx]);
|
|
1806
|
+
if (diffIndex >= 0 && prevArr[diffIndex] === "-") {
|
|
1807
|
+
const chars = prevValue.split("");
|
|
1808
|
+
for (let i = diffIndex - 1; i >= 0; i--) {
|
|
1809
|
+
if (/\d/.test(chars[i])) {
|
|
1810
|
+
chars.splice(i, 1);
|
|
1811
|
+
break;
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
return chars.join("");
|
|
1815
|
+
}
|
|
1816
|
+
return currValue;
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1819
|
+
// src/components/Input/Input.tsx
|
|
1820
|
+
var import_jsx_runtime301 = require("react/jsx-runtime");
|
|
1821
|
+
var import_react3 = require("react");
|
|
1822
|
+
var formatValue = (type, value) => {
|
|
1823
|
+
if (value === null || value === void 0) return "";
|
|
1824
|
+
const strValue = Array.isArray(value) ? String(value[0] ?? "") : String(value);
|
|
1825
|
+
switch (type) {
|
|
1826
|
+
case "number": {
|
|
1827
|
+
if (!strValue) return "";
|
|
1828
|
+
const n = typeof value === "number" ? value : Number(strValue.replace(/,/g, ""));
|
|
1829
|
+
return isNaN(n) ? "" : n.toLocaleString("en-US");
|
|
1830
|
+
}
|
|
1831
|
+
case "tel": {
|
|
1832
|
+
const digits = strValue.replace(/\D/g, "");
|
|
1833
|
+
if (!digits) return "";
|
|
1834
|
+
if (digits.startsWith("02")) {
|
|
1835
|
+
if (digits.length <= 2) return digits;
|
|
1836
|
+
if (digits.length <= 6) return digits.replace(/^(02)(\d+)/, "$1-$2");
|
|
1837
|
+
return digits.replace(/^(02)(\d{3,4})(\d{0,4})$/, "$1-$2-$3");
|
|
1838
|
+
}
|
|
1839
|
+
if (/^01[016789]/.test(digits)) {
|
|
1840
|
+
if (digits.length <= 3) return digits;
|
|
1841
|
+
if (digits.length <= 6)
|
|
1842
|
+
return digits.replace(/^(01[016789])(\d+)/, "$1-$2");
|
|
1843
|
+
if (digits.length === 10) {
|
|
1844
|
+
return digits.replace(/^(01[016789])(\d{3})(\d{0,4})$/, "$1-$2-$3");
|
|
1845
|
+
}
|
|
1846
|
+
return digits.replace(/^(01[016789])(\d{4})(\d{0,4})$/, "$1-$2-$3");
|
|
1847
|
+
}
|
|
1848
|
+
if (digits.length <= 3) return digits;
|
|
1849
|
+
if (digits.length <= 6) return digits.replace(/^(\d{3})(\d+)/, "$1-$2");
|
|
1850
|
+
return digits.replace(/^(\d{3})(\d{3,4})(\d{0,4})$/, "$1-$2-$3");
|
|
1851
|
+
}
|
|
1852
|
+
default:
|
|
1853
|
+
return strValue;
|
|
1854
|
+
}
|
|
1855
|
+
};
|
|
1856
|
+
var parseValue = (type, value) => {
|
|
1857
|
+
switch (type) {
|
|
1858
|
+
case "number": {
|
|
1859
|
+
if (value === "") return "";
|
|
1860
|
+
const n = Number(value.replace(/,/g, ""));
|
|
1861
|
+
return isNaN(n) ? 0 : n;
|
|
1862
|
+
}
|
|
1863
|
+
case "tel":
|
|
1864
|
+
return value.replace(/\D/g, "");
|
|
1865
|
+
default:
|
|
1866
|
+
return value;
|
|
1867
|
+
}
|
|
1868
|
+
};
|
|
1869
|
+
var Input = import_react2.default.forwardRef((props, ref) => {
|
|
1870
|
+
const {
|
|
1871
|
+
value,
|
|
1872
|
+
onChange,
|
|
1873
|
+
type = "text",
|
|
1874
|
+
suffix,
|
|
1875
|
+
className,
|
|
1876
|
+
disabled,
|
|
1877
|
+
validations,
|
|
1878
|
+
...inputProps
|
|
1879
|
+
} = props;
|
|
1880
|
+
const localValue = formatValue(type, value);
|
|
1881
|
+
const handleChange = (e) => {
|
|
1882
|
+
let val = e.target.value;
|
|
1883
|
+
if (val !== "" && !inputTypeReg[type].test(val)) return;
|
|
1884
|
+
if (type === "tel" && localValue) {
|
|
1885
|
+
val = handleTelBackspace(localValue, val);
|
|
1886
|
+
}
|
|
1887
|
+
if (onChange) {
|
|
1888
|
+
const event = {
|
|
1889
|
+
...e,
|
|
1890
|
+
target: { value: parseValue(type, val) }
|
|
1891
|
+
};
|
|
1892
|
+
onChange(event);
|
|
1893
|
+
}
|
|
1894
|
+
};
|
|
1895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
|
|
1896
|
+
/* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(
|
|
1897
|
+
"div",
|
|
1898
|
+
{
|
|
1899
|
+
className: clsx_default("lib-xplat-input", disabled ? "disabled" : void 0),
|
|
1900
|
+
children: [
|
|
1901
|
+
/* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
|
|
1902
|
+
"input",
|
|
1903
|
+
{
|
|
1904
|
+
...inputProps,
|
|
1905
|
+
ref,
|
|
1906
|
+
disabled,
|
|
1907
|
+
type: type === "number" ? "text" : type,
|
|
1908
|
+
value: localValue,
|
|
1909
|
+
onChange: handleChange
|
|
1910
|
+
}
|
|
1911
|
+
),
|
|
1912
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("div", { className: "suffix", children: suffix })
|
|
1913
|
+
]
|
|
1914
|
+
}
|
|
1915
|
+
),
|
|
1916
|
+
validations && /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("div", { className: "lib-xplat-input-validation-wrap", children: validations?.map((validation, idx) => /* @__PURE__ */ (0, import_react3.createElement)(
|
|
1917
|
+
InputValidations_default,
|
|
1918
|
+
{
|
|
1919
|
+
...validation,
|
|
1920
|
+
key: `${validation.message}_${idx}`
|
|
1921
|
+
}
|
|
1922
|
+
)) })
|
|
1923
|
+
] });
|
|
1924
|
+
});
|
|
1925
|
+
Input.displayName = "Input";
|
|
1926
|
+
var Input_default = Input;
|
|
1927
|
+
|
|
1928
|
+
// src/components/Input/PasswordInput/PasswordInput.tsx
|
|
1929
|
+
var import_react4 = __toESM(require("react"), 1);
|
|
1930
|
+
var import_jsx_runtime302 = require("react/jsx-runtime");
|
|
1931
|
+
var PasswordInput = import_react4.default.forwardRef(
|
|
1932
|
+
(props, ref) => {
|
|
1933
|
+
const { reg: _reg, ...inputProps } = props;
|
|
1934
|
+
const [isView, setIsView] = import_react4.default.useState(false);
|
|
1935
|
+
const handleChangeView = () => {
|
|
1936
|
+
setIsView((prev) => !prev);
|
|
1937
|
+
};
|
|
1938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
|
|
1939
|
+
Input_default,
|
|
1940
|
+
{
|
|
1941
|
+
...inputProps,
|
|
1942
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)("div", { className: "wrapper pointer", onClick: handleChangeView, children: isView ? /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(OpenEyeIcon_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(CloseEyeIcon_default, {}) }),
|
|
1943
|
+
type: isView ? "text" : "password",
|
|
1944
|
+
ref
|
|
1945
|
+
}
|
|
1946
|
+
);
|
|
1947
|
+
}
|
|
1948
|
+
);
|
|
1949
|
+
PasswordInput.displayName = "PasswordInput";
|
|
1950
|
+
var PasswordInput_default = PasswordInput;
|
|
1951
|
+
|
|
1952
|
+
// src/components/DatePicker/InputDatePicker/index.tsx
|
|
1953
|
+
var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
1954
|
+
var import_react_datepicker2 = require("react-datepicker/dist/react-datepicker.css");
|
|
1955
|
+
var import_jsx_runtime303 = require("react/jsx-runtime");
|
|
1956
|
+
var Suffix = () => /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(CalenderIcon_default, {}) });
|
|
1957
|
+
var InputDatePicker = (props) => {
|
|
1958
|
+
const { value, onChange, disabled, ...rest } = props;
|
|
1959
|
+
const handleChange = (date) => {
|
|
1960
|
+
if (Array.isArray(date)) return;
|
|
1961
|
+
if (!date) return;
|
|
1962
|
+
onChange?.(date);
|
|
1963
|
+
};
|
|
1964
|
+
const formatDate = (date) => {
|
|
1965
|
+
const y = date.getFullYear();
|
|
1966
|
+
const m = String(date.getMonth() + 1).padStart(2, "0");
|
|
1967
|
+
const d = String(date.getDate()).padStart(2, "0");
|
|
1968
|
+
return `${y}/${m}/${d}`;
|
|
1969
|
+
};
|
|
1970
|
+
const CustomInput = import_react5.default.forwardRef(({ onClick }, _ref) => /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { onClick, children: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
|
|
1971
|
+
Input_default,
|
|
1972
|
+
{
|
|
1973
|
+
value: formatDate(value),
|
|
1974
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(Suffix, {}),
|
|
1975
|
+
disabled
|
|
1976
|
+
}
|
|
1977
|
+
) }));
|
|
1978
|
+
CustomInput.displayName = "InputDatePickerCustomInput";
|
|
1979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { className: "lib-xplat-datepicker", children: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
|
|
1980
|
+
import_react_datepicker.default,
|
|
1981
|
+
{
|
|
1982
|
+
selected: value,
|
|
1983
|
+
onChange: handleChange,
|
|
1984
|
+
...rest,
|
|
1985
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(CustomInput, {}),
|
|
1986
|
+
dateFormat: "YYYY/MM/dd"
|
|
1987
|
+
}
|
|
1988
|
+
) });
|
|
1989
|
+
};
|
|
1990
|
+
InputDatePicker.displayName = "InputDatePicker";
|
|
1991
|
+
var InputDatePicker_default = InputDatePicker;
|
|
1992
|
+
|
|
1993
|
+
// src/components/DatePicker/PopupPicker/index.tsx
|
|
1994
|
+
var import_react7 = __toESM(require("react"), 1);
|
|
1995
|
+
|
|
1996
|
+
// src/components/Modal/Modal.tsx
|
|
1997
|
+
var import_react6 = __toESM(require("react"), 1);
|
|
1998
|
+
var import_react_dom = require("react-dom");
|
|
1999
|
+
var import_jsx_runtime304 = require("react/jsx-runtime");
|
|
2000
|
+
var ANIMATION_DURATION_MS = 200;
|
|
2001
|
+
var Modal = (props) => {
|
|
2002
|
+
const { isOpen, onClose, children } = props;
|
|
2003
|
+
const [mounted, setMounted] = import_react6.default.useState(false);
|
|
2004
|
+
const [visible, setVisible] = import_react6.default.useState(false);
|
|
2005
|
+
import_react6.default.useEffect(() => {
|
|
2006
|
+
if (isOpen) {
|
|
2007
|
+
setMounted(true);
|
|
2008
|
+
const t2 = setTimeout(() => setVisible(true), 1);
|
|
2009
|
+
return () => clearTimeout(t2);
|
|
2010
|
+
}
|
|
2011
|
+
setVisible(false);
|
|
2012
|
+
const t = setTimeout(() => setMounted(false), ANIMATION_DURATION_MS);
|
|
2013
|
+
return () => clearTimeout(t);
|
|
2014
|
+
}, [isOpen]);
|
|
2015
|
+
if (typeof document === "undefined") return null;
|
|
2016
|
+
if (!mounted) return null;
|
|
2017
|
+
const stateClass = visible ? "enter" : "exit";
|
|
2018
|
+
return (0, import_react_dom.createPortal)(
|
|
2019
|
+
/* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
|
|
2020
|
+
"div",
|
|
2021
|
+
{
|
|
2022
|
+
className: clsx_default("lib-xplat-modal", "dim", stateClass),
|
|
2023
|
+
onClick: onClose,
|
|
2024
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
|
|
2025
|
+
"div",
|
|
2026
|
+
{
|
|
2027
|
+
className: clsx_default("lib-xplat-modal", "modal-box", stateClass),
|
|
2028
|
+
onClick: (e) => e.stopPropagation(),
|
|
2029
|
+
children
|
|
2030
|
+
}
|
|
2031
|
+
)
|
|
2032
|
+
}
|
|
2033
|
+
),
|
|
2034
|
+
document.body
|
|
2035
|
+
);
|
|
2036
|
+
};
|
|
2037
|
+
Modal.displayName = "Modal";
|
|
2038
|
+
var Modal_default = Modal;
|
|
2039
|
+
|
|
2040
|
+
// src/components/DatePicker/SingleDatePicker/index.tsx
|
|
2041
|
+
var import_react_datepicker3 = __toESM(require("react-datepicker"), 1);
|
|
2042
|
+
var import_react_datepicker4 = require("react-datepicker/dist/react-datepicker.css");
|
|
2043
|
+
var import_jsx_runtime305 = require("react/jsx-runtime");
|
|
2044
|
+
var SingleDatePicker = (props) => {
|
|
2045
|
+
const { value, onChange, ...rest } = props;
|
|
2046
|
+
const handleChange = (date) => {
|
|
2047
|
+
if (Array.isArray(date)) return;
|
|
2048
|
+
onChange?.(date);
|
|
2049
|
+
};
|
|
2050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("div", { className: "lib-xplat-datepicker", children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(import_react_datepicker3.default, { selected: value, onChange: handleChange, inline: true, ...rest }) });
|
|
2051
|
+
};
|
|
2052
|
+
SingleDatePicker.displayName = "SingleDatePicker";
|
|
2053
|
+
var SingleDatePicker_default = SingleDatePicker;
|
|
2054
|
+
|
|
2055
|
+
// src/components/DatePicker/PopupPicker/index.tsx
|
|
2056
|
+
var import_jsx_runtime306 = require("react/jsx-runtime");
|
|
2057
|
+
var PopupPicker = (props) => {
|
|
2058
|
+
const { component, type } = props;
|
|
2059
|
+
const [isOpen, setIsOpen] = import_react7.default.useState(false);
|
|
2060
|
+
const handleClick = () => setIsOpen(true);
|
|
2061
|
+
const handleClose = () => setIsOpen(false);
|
|
2062
|
+
const handleSingleChange = (date) => {
|
|
2063
|
+
if (!date) return;
|
|
2064
|
+
props.onChange?.(date);
|
|
2065
|
+
handleClose();
|
|
2066
|
+
};
|
|
2067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)("div", { className: "lib-xplat-popup-datepicker", children: [
|
|
2068
|
+
import_react7.default.cloneElement(component, { onClick: handleClick }),
|
|
2069
|
+
/* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Modal_default, { isOpen, onClose: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)("div", { className: "lib-xplat-popup-datepicker-card", children: [
|
|
2070
|
+
/* @__PURE__ */ (0, import_jsx_runtime306.jsxs)("div", { className: "popup-datepicker-content", children: [
|
|
2071
|
+
type === "single" && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
|
|
2072
|
+
SingleDatePicker_default,
|
|
2073
|
+
{
|
|
2074
|
+
value: props.value,
|
|
2075
|
+
onChange: handleSingleChange,
|
|
2076
|
+
minDate: props.minDate,
|
|
2077
|
+
maxDate: props.maxDate
|
|
2078
|
+
}
|
|
2079
|
+
),
|
|
2080
|
+
type === "range" && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
|
|
2081
|
+
RangePicker_default,
|
|
2082
|
+
{
|
|
2083
|
+
startDate: props.startDate,
|
|
2084
|
+
endDate: props.endDate,
|
|
2085
|
+
onChange: props.onChange,
|
|
2086
|
+
minDate: props.minDate,
|
|
2087
|
+
maxDate: props.maxDate
|
|
2088
|
+
}
|
|
2089
|
+
)
|
|
2090
|
+
] }),
|
|
2091
|
+
/* @__PURE__ */ (0, import_jsx_runtime306.jsxs)("div", { className: "popup-datepicker-footer", children: [
|
|
2092
|
+
/* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
|
|
2093
|
+
Button_default,
|
|
2094
|
+
{
|
|
2095
|
+
type: "secondary",
|
|
2096
|
+
color: "neutral",
|
|
2097
|
+
colorDepth: 400,
|
|
2098
|
+
onClick: handleClose,
|
|
2099
|
+
children: "\uCDE8\uC18C"
|
|
2100
|
+
}
|
|
2101
|
+
),
|
|
2102
|
+
/* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Button_default, { type: "primary", color: "blue", onClick: handleClose, children: "\uC801\uC6A9" })
|
|
2103
|
+
] })
|
|
2104
|
+
] }) })
|
|
2105
|
+
] });
|
|
2106
|
+
};
|
|
2107
|
+
PopupPicker.displayName = "PopupPicker";
|
|
2108
|
+
var PopupPicker_default = PopupPicker;
|
|
2109
|
+
|
|
2110
|
+
// src/components/DatePicker/RangePicker/index.tsx
|
|
2111
|
+
var import_jsx_runtime307 = require("react/jsx-runtime");
|
|
2112
|
+
var RangePicker = (props) => {
|
|
2113
|
+
const { startDate, endDate, onChange, minDate, maxDate } = props;
|
|
2114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className: "lib-xplat-range-datepicker", children: [
|
|
2115
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className: "lib-xplat-range-datepicker-from", children: [
|
|
2116
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)("span", { className: "lib-xplat-range-datepicker-label", children: "\uC2DC\uC791" }),
|
|
2117
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
|
|
2118
|
+
SingleDatePicker_default,
|
|
2119
|
+
{
|
|
2120
|
+
value: startDate,
|
|
2121
|
+
onChange: (date) => date != null && onChange?.({ startDate: date, endDate }),
|
|
2122
|
+
minDate,
|
|
2123
|
+
maxDate: endDate
|
|
2124
|
+
}
|
|
2125
|
+
)
|
|
2126
|
+
] }),
|
|
2127
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className: "lib-xplat-range-datepicker-to", children: [
|
|
2128
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)("span", { className: "lib-xplat-range-datepicker-label", children: "\uC885\uB8CC" }),
|
|
2129
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
|
|
2130
|
+
SingleDatePicker_default,
|
|
2131
|
+
{
|
|
2132
|
+
value: endDate,
|
|
2133
|
+
onChange: (date) => date != null && onChange?.({ startDate, endDate: date }),
|
|
2134
|
+
minDate: startDate,
|
|
2135
|
+
maxDate
|
|
2136
|
+
}
|
|
2137
|
+
)
|
|
2138
|
+
] })
|
|
2139
|
+
] });
|
|
2140
|
+
};
|
|
2141
|
+
RangePicker.displayName = "RangePicker";
|
|
2142
|
+
var RangePicker_default = RangePicker;
|
|
2143
|
+
|
|
2144
|
+
// src/components/Select/Select.tsx
|
|
2145
|
+
var import_react12 = __toESM(require("react"), 1);
|
|
2146
|
+
|
|
2147
|
+
// src/tokens/hooks/useAutoPosition.ts
|
|
2148
|
+
var import_react8 = __toESM(require("react"), 1);
|
|
2149
|
+
var useAutoPosition = (triggerRef, popRef, enabled = true) => {
|
|
2150
|
+
const [position, setPosition] = import_react8.default.useState({
|
|
2151
|
+
position: {},
|
|
2152
|
+
direction: "bottom"
|
|
2153
|
+
});
|
|
2154
|
+
const calculatePosition = import_react8.default.useCallback(() => {
|
|
2155
|
+
if (!triggerRef.current || !popRef.current) return;
|
|
2156
|
+
const triggerRect = triggerRef.current.getBoundingClientRect();
|
|
2157
|
+
const popRect = popRef.current.getBoundingClientRect();
|
|
2158
|
+
const viewportWidth = window.innerWidth;
|
|
2159
|
+
const viewportHeight = window.innerHeight;
|
|
2160
|
+
const position2 = {};
|
|
2161
|
+
let direction = "bottom";
|
|
2162
|
+
if (triggerRect.bottom + popRect.height > viewportHeight) {
|
|
2163
|
+
direction = "top";
|
|
2164
|
+
}
|
|
2165
|
+
if (triggerRect.left + popRect.width > viewportWidth) {
|
|
2166
|
+
position2["right"] = 10;
|
|
2167
|
+
}
|
|
2168
|
+
if (triggerRect.left < 0) {
|
|
2169
|
+
position2["left"] = 10;
|
|
2170
|
+
}
|
|
2171
|
+
setPosition({
|
|
2172
|
+
position: position2,
|
|
2173
|
+
direction
|
|
2174
|
+
});
|
|
2175
|
+
}, [triggerRef, popRef]);
|
|
2176
|
+
import_react8.default.useEffect(() => {
|
|
2177
|
+
calculatePosition();
|
|
2178
|
+
window.addEventListener("resize", calculatePosition);
|
|
2179
|
+
return () => window.removeEventListener("resize", calculatePosition);
|
|
2180
|
+
}, [calculatePosition, enabled]);
|
|
2181
|
+
return position;
|
|
2182
|
+
};
|
|
2183
|
+
var useAutoPosition_default = useAutoPosition;
|
|
2184
|
+
|
|
2185
|
+
// src/tokens/hooks/useClickOutside.ts
|
|
2186
|
+
var import_react9 = __toESM(require("react"), 1);
|
|
2187
|
+
var useClickOutside = (refs, handler, enabled = true) => {
|
|
2188
|
+
import_react9.default.useEffect(() => {
|
|
2189
|
+
if (!enabled) return;
|
|
2190
|
+
const refArray = Array.isArray(refs) ? refs : [refs];
|
|
2191
|
+
const listener = (event) => {
|
|
2192
|
+
const target = event.target;
|
|
2193
|
+
const isInside = refArray.some(
|
|
2194
|
+
(ref) => ref.current && ref.current.contains(target)
|
|
2195
|
+
);
|
|
2196
|
+
if (!isInside) {
|
|
2197
|
+
handler();
|
|
2198
|
+
}
|
|
2199
|
+
};
|
|
2200
|
+
document.addEventListener("mousedown", listener);
|
|
2201
|
+
document.addEventListener("touchstart", listener);
|
|
2202
|
+
return () => {
|
|
2203
|
+
document.removeEventListener("mousedown", listener);
|
|
2204
|
+
document.removeEventListener("touchstart", listener);
|
|
2205
|
+
};
|
|
2206
|
+
}, [refs, handler, enabled]);
|
|
2207
|
+
};
|
|
2208
|
+
var useClickOutside_default = useClickOutside;
|
|
2209
|
+
|
|
2210
|
+
// src/components/Select/context.ts
|
|
2211
|
+
var import_react10 = __toESM(require("react"), 1);
|
|
2212
|
+
var SelectContext = import_react10.default.createContext(null);
|
|
2213
|
+
var context_default = SelectContext;
|
|
2214
|
+
|
|
2215
|
+
// src/components/Select/SelectItem.tsx
|
|
2216
|
+
var import_react11 = __toESM(require("react"), 1);
|
|
2217
|
+
var import_jsx_runtime308 = require("react/jsx-runtime");
|
|
2218
|
+
var SelectItem = (props) => {
|
|
2219
|
+
const { children, value, onClick, disabled = false, className } = props;
|
|
2220
|
+
const ctx = import_react11.default.useContext(context_default);
|
|
2221
|
+
const handleClick = (e) => {
|
|
2222
|
+
e.preventDefault();
|
|
2223
|
+
e.stopPropagation();
|
|
2224
|
+
if (disabled) return;
|
|
2225
|
+
ctx?.setSelected(children, value);
|
|
2226
|
+
ctx?.close();
|
|
2227
|
+
onClick?.();
|
|
2228
|
+
};
|
|
2229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
|
|
2230
|
+
"div",
|
|
2231
|
+
{
|
|
2232
|
+
className: clsx_default("select-item", disabled && "disabled", className),
|
|
2233
|
+
onClick: handleClick,
|
|
2234
|
+
role: "menuitem",
|
|
2235
|
+
tabIndex: disabled ? void 0 : 0,
|
|
2236
|
+
onKeyDown: (e) => {
|
|
2237
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
2238
|
+
e.preventDefault();
|
|
2239
|
+
handleClick(e);
|
|
2240
|
+
}
|
|
2241
|
+
},
|
|
2242
|
+
children
|
|
2243
|
+
}
|
|
2244
|
+
);
|
|
2245
|
+
};
|
|
2246
|
+
SelectItem.displayName = "Select.Item";
|
|
2247
|
+
var SelectItem_default = SelectItem;
|
|
2248
|
+
|
|
2249
|
+
// src/components/Select/Select.tsx
|
|
2250
|
+
var import_jsx_runtime309 = require("react/jsx-runtime");
|
|
2251
|
+
var ANIMATION_DURATION_MS2 = 200;
|
|
2252
|
+
var SelectRoot = (props) => {
|
|
2253
|
+
const {
|
|
2254
|
+
placeholder = "\uC120\uD0DD\uD558\uC138\uC694",
|
|
2255
|
+
onChange,
|
|
2256
|
+
children,
|
|
2257
|
+
disabled = false,
|
|
2258
|
+
error = false
|
|
2259
|
+
} = props;
|
|
2260
|
+
const itemChildren = import_react12.default.Children.toArray(children).filter(
|
|
2261
|
+
(child) => import_react12.default.isValidElement(child) && child.type === SelectItem_default
|
|
2262
|
+
);
|
|
2263
|
+
const [isOpen, setOpen] = import_react12.default.useState(false);
|
|
2264
|
+
const [selectedLabel, setSelectedLabel] = import_react12.default.useState(null);
|
|
2265
|
+
const triggerRef = import_react12.default.useRef(null);
|
|
2266
|
+
const contentRef = import_react12.default.useRef(null);
|
|
2267
|
+
const [mounted, setMounted] = import_react12.default.useState(false);
|
|
2268
|
+
const [visible, setVisible] = import_react12.default.useState(false);
|
|
2269
|
+
import_react12.default.useEffect(() => {
|
|
2270
|
+
if (disabled && isOpen) setOpen(false);
|
|
2271
|
+
}, [disabled, isOpen]);
|
|
2272
|
+
import_react12.default.useEffect(() => {
|
|
2273
|
+
if (isOpen) {
|
|
2274
|
+
setMounted(true);
|
|
2275
|
+
const t2 = setTimeout(() => setVisible(true), 1);
|
|
2276
|
+
return () => clearTimeout(t2);
|
|
2277
|
+
}
|
|
2278
|
+
setVisible(false);
|
|
2279
|
+
const t = setTimeout(() => setMounted(false), ANIMATION_DURATION_MS2);
|
|
2280
|
+
return () => clearTimeout(t);
|
|
2281
|
+
}, [isOpen]);
|
|
2282
|
+
const open = import_react12.default.useCallback(() => setOpen(true), []);
|
|
2283
|
+
const close = import_react12.default.useCallback(() => setOpen(false), []);
|
|
2284
|
+
const toggle = import_react12.default.useCallback(() => setOpen((prev) => !prev), []);
|
|
2285
|
+
useClickOutside_default([contentRef, triggerRef], close, isOpen);
|
|
2286
|
+
const position = useAutoPosition_default(triggerRef, contentRef, mounted);
|
|
2287
|
+
const setSelected = import_react12.default.useCallback(
|
|
2288
|
+
(label, value2) => {
|
|
2289
|
+
setSelectedLabel(label);
|
|
2290
|
+
onChange?.(value2, label);
|
|
2291
|
+
},
|
|
2292
|
+
[onChange]
|
|
2293
|
+
);
|
|
2294
|
+
const value = import_react12.default.useMemo(
|
|
2295
|
+
() => ({
|
|
2296
|
+
isOpen,
|
|
2297
|
+
mounted,
|
|
2298
|
+
visible,
|
|
2299
|
+
triggerRef,
|
|
2300
|
+
selectedLabel,
|
|
2301
|
+
setSelected,
|
|
2302
|
+
open,
|
|
2303
|
+
close,
|
|
2304
|
+
toggle
|
|
2305
|
+
}),
|
|
2306
|
+
[isOpen, mounted, visible, selectedLabel, setSelected, open, close, toggle]
|
|
2307
|
+
);
|
|
2308
|
+
const stateClass = visible ? "visible" : "exit";
|
|
2309
|
+
const handleTriggerClick = (e) => {
|
|
2310
|
+
e.preventDefault();
|
|
2311
|
+
e.stopPropagation();
|
|
2312
|
+
if (disabled) return;
|
|
2313
|
+
toggle();
|
|
2314
|
+
};
|
|
2315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(context_default.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
|
|
2316
|
+
"div",
|
|
2317
|
+
{
|
|
2318
|
+
className: clsx_default(
|
|
2319
|
+
"lib-xplat-select",
|
|
2320
|
+
disabled && "disabled",
|
|
2321
|
+
error && "error",
|
|
2322
|
+
mounted && "is-open"
|
|
2323
|
+
),
|
|
2324
|
+
children: [
|
|
2325
|
+
/* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
|
|
2326
|
+
"div",
|
|
2327
|
+
{
|
|
2328
|
+
ref: triggerRef,
|
|
2329
|
+
className: clsx_default(
|
|
2330
|
+
"select-trigger",
|
|
2331
|
+
disabled && "disabled",
|
|
2332
|
+
error && "error"
|
|
2333
|
+
),
|
|
2334
|
+
onClick: handleTriggerClick,
|
|
2335
|
+
role: "combobox",
|
|
2336
|
+
"aria-expanded": isOpen,
|
|
2337
|
+
"aria-haspopup": "listbox",
|
|
2338
|
+
"aria-disabled": disabled,
|
|
2339
|
+
"aria-invalid": error,
|
|
2340
|
+
tabIndex: disabled ? -1 : 0,
|
|
2341
|
+
onKeyDown: (e) => {
|
|
2342
|
+
if (disabled) return;
|
|
2343
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
2344
|
+
e.preventDefault();
|
|
2345
|
+
toggle();
|
|
2346
|
+
}
|
|
2347
|
+
},
|
|
2348
|
+
children: [
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
|
|
2350
|
+
"span",
|
|
2351
|
+
{
|
|
2352
|
+
className: clsx_default(
|
|
2353
|
+
"select-trigger-value",
|
|
2354
|
+
selectedLabel == null && "placeholder"
|
|
2355
|
+
),
|
|
2356
|
+
children: selectedLabel ?? placeholder
|
|
2357
|
+
}
|
|
2358
|
+
),
|
|
2359
|
+
/* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
|
|
2360
|
+
"span",
|
|
2361
|
+
{
|
|
2362
|
+
className: clsx_default("select-trigger-icon", isOpen && "open"),
|
|
2363
|
+
"aria-hidden": true,
|
|
2364
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(ChevronDownIcon_default, {})
|
|
2365
|
+
}
|
|
2366
|
+
)
|
|
2367
|
+
]
|
|
2368
|
+
}
|
|
2369
|
+
),
|
|
2370
|
+
mounted && /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
|
|
2371
|
+
"div",
|
|
2372
|
+
{
|
|
2373
|
+
className: clsx_default("select-content", position.direction, stateClass),
|
|
2374
|
+
ref: contentRef,
|
|
2375
|
+
style: { ...position.position },
|
|
2376
|
+
role: "listbox",
|
|
2377
|
+
children: itemChildren
|
|
2378
|
+
}
|
|
2379
|
+
)
|
|
2380
|
+
]
|
|
2381
|
+
}
|
|
2382
|
+
) });
|
|
2383
|
+
};
|
|
2384
|
+
SelectRoot.displayName = "Select";
|
|
2385
|
+
var Select = Object.assign(SelectRoot, {
|
|
2386
|
+
Item: SelectItem_default
|
|
2387
|
+
});
|
|
2388
|
+
var Select_default = Select;
|
|
2389
|
+
|
|
2390
|
+
// src/components/HtmlTypeWriter/HtmlTypeWriter.tsx
|
|
2391
|
+
var import_react14 = __toESM(require("react"), 1);
|
|
2392
|
+
|
|
2393
|
+
// src/components/HtmlTypeWriter/utils.ts
|
|
2394
|
+
var import_react13 = __toESM(require("react"), 1);
|
|
2395
|
+
var voidTags = /* @__PURE__ */ new Set([
|
|
2396
|
+
"br",
|
|
2397
|
+
"img",
|
|
2398
|
+
"hr",
|
|
2399
|
+
"input",
|
|
2400
|
+
"meta",
|
|
2401
|
+
"link",
|
|
2402
|
+
"area",
|
|
2403
|
+
"base",
|
|
2404
|
+
"col",
|
|
2405
|
+
"embed",
|
|
2406
|
+
"param",
|
|
2407
|
+
"source",
|
|
2408
|
+
"track",
|
|
2409
|
+
"wbr"
|
|
2410
|
+
]);
|
|
2411
|
+
function decodeHtmlEntities(str) {
|
|
2412
|
+
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/'/g, "'").replace(/&#(\d+);/g, (_, code) => String.fromCharCode(Number(code))).replace(
|
|
2413
|
+
/&#x([0-9a-fA-F]+);/g,
|
|
2414
|
+
(_, code) => String.fromCharCode(parseInt(code, 16))
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
function buildRangeMap(root) {
|
|
2418
|
+
const rangeMap = /* @__PURE__ */ new WeakMap();
|
|
2419
|
+
let index = 0;
|
|
2420
|
+
function assign(node) {
|
|
2421
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
2422
|
+
const len = (node.textContent || "").length;
|
|
2423
|
+
rangeMap.set(node, { start: index, end: index + len });
|
|
2424
|
+
index += len;
|
|
2425
|
+
return;
|
|
2426
|
+
}
|
|
2427
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
2428
|
+
const el = node;
|
|
2429
|
+
const tag = el.tagName.toLowerCase();
|
|
2430
|
+
const start = index;
|
|
2431
|
+
if (voidTags.has(tag)) {
|
|
2432
|
+
rangeMap.set(node, { start: index, end: index + 1 });
|
|
2433
|
+
index += 1;
|
|
2434
|
+
return;
|
|
2435
|
+
}
|
|
2436
|
+
Array.from(el.childNodes).forEach(assign);
|
|
2437
|
+
rangeMap.set(node, { start, end: index });
|
|
2438
|
+
return;
|
|
2439
|
+
}
|
|
2440
|
+
rangeMap.set(node, { start: index, end: index });
|
|
2441
|
+
}
|
|
2442
|
+
Array.from(root.childNodes).forEach(assign);
|
|
2443
|
+
return { rangeMap, totalLength: index };
|
|
2444
|
+
}
|
|
2445
|
+
function convertNodeToReactWithRange(node, typedLen, rangeMap) {
|
|
2446
|
+
const range = rangeMap.get(node);
|
|
2447
|
+
if (!range) return null;
|
|
2448
|
+
if (range.start >= typedLen) return null;
|
|
2449
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
2450
|
+
const text = node.textContent || "";
|
|
2451
|
+
if (range.end <= typedLen) return text;
|
|
2452
|
+
return text.slice(0, typedLen - range.start);
|
|
2453
|
+
}
|
|
2454
|
+
if (node.nodeType !== Node.ELEMENT_NODE) return null;
|
|
2455
|
+
const element = node;
|
|
2456
|
+
const tag = element.tagName.toLowerCase();
|
|
2457
|
+
const props = {};
|
|
2458
|
+
Array.from(element.attributes).forEach((attr) => {
|
|
2459
|
+
props[attr.name] = attr.value;
|
|
2460
|
+
});
|
|
2461
|
+
if (voidTags.has(tag)) {
|
|
2462
|
+
return import_react13.default.createElement(tag, props);
|
|
2463
|
+
}
|
|
2464
|
+
const children = Array.from(element.childNodes).map((child) => convertNodeToReactWithRange(child, typedLen, rangeMap)).filter((n) => n != null);
|
|
2465
|
+
return import_react13.default.createElement(tag, props, ...children);
|
|
2466
|
+
}
|
|
2467
|
+
function htmlToReactProgressive(root, typedLen, rangeMap) {
|
|
2468
|
+
const nodes = Array.from(root.childNodes).map((child, idx) => {
|
|
2469
|
+
const node = convertNodeToReactWithRange(child, typedLen, rangeMap);
|
|
2470
|
+
return node == null ? null : import_react13.default.createElement(import_react13.default.Fragment, { key: idx }, node);
|
|
2471
|
+
}).filter(Boolean);
|
|
2472
|
+
return nodes.length === 0 ? null : nodes;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
// src/components/HtmlTypeWriter/HtmlTypeWriter.tsx
|
|
2476
|
+
var import_jsx_runtime310 = require("react/jsx-runtime");
|
|
2477
|
+
var HtmlTypeWriter = ({
|
|
2478
|
+
html,
|
|
2479
|
+
duration = 20,
|
|
2480
|
+
onDone,
|
|
2481
|
+
onChange
|
|
2482
|
+
}) => {
|
|
2483
|
+
const [typedLen, setTypedLen] = import_react14.default.useState(0);
|
|
2484
|
+
const doneCalledRef = import_react14.default.useRef(false);
|
|
2485
|
+
const { doc, rangeMap, totalLength } = import_react14.default.useMemo(() => {
|
|
2486
|
+
const decoded = decodeHtmlEntities(html);
|
|
2487
|
+
const doc2 = new DOMParser().parseFromString(decoded, "text/html");
|
|
2488
|
+
const { rangeMap: rangeMap2, totalLength: totalLength2 } = buildRangeMap(doc2.body);
|
|
2489
|
+
return { doc: doc2, rangeMap: rangeMap2, totalLength: totalLength2 };
|
|
2490
|
+
}, [html]);
|
|
2491
|
+
import_react14.default.useEffect(() => {
|
|
2492
|
+
setTypedLen(0);
|
|
2493
|
+
doneCalledRef.current = false;
|
|
2494
|
+
}, [html]);
|
|
2495
|
+
import_react14.default.useEffect(() => {
|
|
2496
|
+
if (!totalLength) return;
|
|
2497
|
+
if (typedLen >= totalLength) return;
|
|
2498
|
+
const timer = window.setInterval(() => {
|
|
2499
|
+
setTypedLen((prev) => Math.min(prev + 1, totalLength));
|
|
2500
|
+
}, duration);
|
|
2501
|
+
return () => window.clearInterval(timer);
|
|
2502
|
+
}, [typedLen, totalLength, duration]);
|
|
2503
|
+
import_react14.default.useEffect(() => {
|
|
2504
|
+
if (typedLen > 0 && typedLen < totalLength) {
|
|
2505
|
+
onChange?.();
|
|
2506
|
+
}
|
|
2507
|
+
}, [typedLen, totalLength, onChange]);
|
|
2508
|
+
import_react14.default.useEffect(() => {
|
|
2509
|
+
if (typedLen === totalLength && totalLength > 0 && !doneCalledRef.current) {
|
|
2510
|
+
doneCalledRef.current = true;
|
|
2511
|
+
onDone?.();
|
|
2512
|
+
}
|
|
2513
|
+
}, [typedLen, totalLength, onDone]);
|
|
2514
|
+
const parsed = import_react14.default.useMemo(
|
|
2515
|
+
() => htmlToReactProgressive(doc.body, typedLen, rangeMap),
|
|
2516
|
+
[doc.body, typedLen, rangeMap]
|
|
2517
|
+
);
|
|
2518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("div", { className: "lib-xplat-htmlTypewriter", children: parsed });
|
|
2519
|
+
};
|
|
2520
|
+
HtmlTypeWriter.displayName = "HtmlTypeWriter";
|
|
2521
|
+
var HtmlTypeWriter_default = HtmlTypeWriter;
|
|
2522
|
+
|
|
2523
|
+
// src/components/ImageSelector/ImageSelector.tsx
|
|
2524
|
+
var import_react15 = __toESM(require("react"), 1);
|
|
2525
|
+
var import_jsx_runtime311 = require("react/jsx-runtime");
|
|
2526
|
+
var ImageSelector = (props) => {
|
|
2527
|
+
const { value, label, onChange } = props;
|
|
2528
|
+
const previewUrl = import_react15.default.useMemo(() => {
|
|
2529
|
+
if (value) return URL.createObjectURL(value);
|
|
2530
|
+
return void 0;
|
|
2531
|
+
}, [value]);
|
|
2532
|
+
const inputRef = import_react15.default.useRef(null);
|
|
2533
|
+
const handleFileChange = (e) => {
|
|
2534
|
+
const selectedFile = e.target.files?.[0];
|
|
2535
|
+
if (selectedFile) {
|
|
2536
|
+
onChange?.(selectedFile);
|
|
2537
|
+
}
|
|
2538
|
+
};
|
|
2539
|
+
const handleDeleteFile = () => {
|
|
2540
|
+
onChange?.(void 0);
|
|
2541
|
+
};
|
|
2542
|
+
const handleOpenFileDialog = () => {
|
|
2543
|
+
inputRef.current?.click();
|
|
2544
|
+
};
|
|
2545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: `lib-xplat-imageselector${value ? "" : " none-value"}`, children: [
|
|
2546
|
+
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
|
|
2547
|
+
"input",
|
|
2548
|
+
{
|
|
2549
|
+
type: "file",
|
|
2550
|
+
accept: "image/*",
|
|
2551
|
+
id: "image-input",
|
|
2552
|
+
onChange: handleFileChange,
|
|
2553
|
+
ref: inputRef
|
|
2554
|
+
}
|
|
2555
|
+
),
|
|
2556
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: "action-bar", children: [
|
|
2557
|
+
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)("div", { className: "icon-wrapper", onClick: handleOpenFileDialog, children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(UploadIcon_default, {}) }),
|
|
2558
|
+
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)("div", { className: "icon-wrapper", onClick: handleDeleteFile, children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(DeleteIcon_default, {}) })
|
|
2559
|
+
] }),
|
|
2560
|
+
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)("div", { className: "content", children: previewUrl ? /* @__PURE__ */ (0, import_jsx_runtime311.jsx)("img", { src: previewUrl, alt: "preview" }) : /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: "skeleton", onClick: handleOpenFileDialog, children: [
|
|
2561
|
+
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)("div", { className: "icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(ImageIcon_default, {}) }),
|
|
2562
|
+
/* @__PURE__ */ (0, import_jsx_runtime311.jsx)("div", { className: "label", children: label || "\uC774\uBBF8\uC9C0 \uCD94\uAC00\uD558\uAE30" })
|
|
2563
|
+
] }) })
|
|
2564
|
+
] });
|
|
2565
|
+
};
|
|
2566
|
+
ImageSelector.displayName = "ImageSelector";
|
|
2567
|
+
var ImageSelector_default = ImageSelector;
|
|
2568
|
+
|
|
2569
|
+
// src/components/PopOver/PopOver.tsx
|
|
2570
|
+
var import_react16 = __toESM(require("react"), 1);
|
|
2571
|
+
var import_jsx_runtime312 = require("react/jsx-runtime");
|
|
2572
|
+
var PopOver = (props) => {
|
|
2573
|
+
const { children, isOpen, onClose, PopOverEl } = props;
|
|
2574
|
+
const popRef = import_react16.default.useRef(null);
|
|
2575
|
+
const triggerRef = import_react16.default.useRef(null);
|
|
2576
|
+
const [localOpen, setLocalOpen] = import_react16.default.useState(false);
|
|
2577
|
+
const [eventTrigger, setEventTrigger] = import_react16.default.useState(false);
|
|
2578
|
+
useClickOutside_default([popRef, triggerRef], onClose, isOpen);
|
|
2579
|
+
const position = useAutoPosition_default(triggerRef, popRef, localOpen);
|
|
2580
|
+
import_react16.default.useEffect(() => {
|
|
2581
|
+
if (isOpen) {
|
|
2582
|
+
setLocalOpen(isOpen);
|
|
2583
|
+
setTimeout(() => {
|
|
2584
|
+
setEventTrigger(true);
|
|
2585
|
+
}, 1);
|
|
2586
|
+
} else {
|
|
2587
|
+
setEventTrigger(false);
|
|
2588
|
+
setTimeout(() => {
|
|
2589
|
+
setLocalOpen(isOpen);
|
|
2590
|
+
}, 200);
|
|
2591
|
+
}
|
|
2592
|
+
}, [isOpen]);
|
|
2593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime312.jsxs)(
|
|
2594
|
+
"div",
|
|
2595
|
+
{
|
|
2596
|
+
className: "lib-xplat-pop-over",
|
|
2597
|
+
ref: triggerRef,
|
|
2598
|
+
onClick: () => {
|
|
2599
|
+
if (isOpen) onClose();
|
|
2600
|
+
},
|
|
2601
|
+
children: [
|
|
2602
|
+
children,
|
|
2603
|
+
localOpen && /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
|
|
2604
|
+
"div",
|
|
2605
|
+
{
|
|
2606
|
+
className: clsx_default(
|
|
2607
|
+
"content-wrap",
|
|
2608
|
+
position.direction,
|
|
2609
|
+
eventTrigger && "visible"
|
|
2610
|
+
),
|
|
2611
|
+
ref: popRef,
|
|
2612
|
+
style: {
|
|
2613
|
+
...position.position
|
|
2614
|
+
},
|
|
2615
|
+
children: PopOverEl
|
|
2616
|
+
}
|
|
2617
|
+
)
|
|
2618
|
+
]
|
|
2619
|
+
}
|
|
2620
|
+
);
|
|
2621
|
+
};
|
|
2622
|
+
PopOver.displayName = "PopOver";
|
|
2623
|
+
var PopOver_default = PopOver;
|
|
2624
|
+
|
|
2625
|
+
// src/components/Radio/RadioGroupContext.tsx
|
|
2626
|
+
var import_react17 = __toESM(require("react"), 1);
|
|
2627
|
+
var RadioGroupContext = import_react17.default.createContext(
|
|
2628
|
+
null
|
|
2629
|
+
);
|
|
2630
|
+
var useRadioGroupContext = () => {
|
|
2631
|
+
return import_react17.default.useContext(RadioGroupContext);
|
|
2632
|
+
};
|
|
2633
|
+
var RadioGroupContext_default = RadioGroupContext;
|
|
2634
|
+
|
|
2635
|
+
// src/components/Radio/Radio.tsx
|
|
2636
|
+
var import_jsx_runtime313 = require("react/jsx-runtime");
|
|
2637
|
+
var Radio = (props) => {
|
|
2638
|
+
const {
|
|
2639
|
+
label,
|
|
2640
|
+
value,
|
|
2641
|
+
className,
|
|
2642
|
+
colorNamespace = "xplat",
|
|
2643
|
+
color = "blue",
|
|
2644
|
+
colorDepth,
|
|
2645
|
+
...rest
|
|
2646
|
+
} = props;
|
|
2647
|
+
const context = useRadioGroupContext();
|
|
2648
|
+
const isGroup = !!context;
|
|
2649
|
+
const localChecked = isGroup ? context.value === value : rest.checked ?? false;
|
|
2650
|
+
const inputProps = context ? { name: context.name, value, onChange: context.onChange } : {
|
|
2651
|
+
name: rest.name,
|
|
2652
|
+
value,
|
|
2653
|
+
onChange: rest.onChange
|
|
2654
|
+
};
|
|
2655
|
+
const colorClass = getColorClass(
|
|
2656
|
+
colorNamespace,
|
|
2657
|
+
color,
|
|
2658
|
+
colorDepth ?? 500
|
|
2659
|
+
);
|
|
2660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(
|
|
2661
|
+
"label",
|
|
2662
|
+
{
|
|
2663
|
+
className: clsx_default(
|
|
2664
|
+
"lib-xplat-radio",
|
|
2665
|
+
localChecked ? "checked" : void 0,
|
|
2666
|
+
className
|
|
2667
|
+
),
|
|
2668
|
+
children: [
|
|
2669
|
+
/* @__PURE__ */ (0, import_jsx_runtime313.jsx)("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
|
|
2670
|
+
/* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
|
|
2671
|
+
"div",
|
|
2672
|
+
{
|
|
2673
|
+
className: clsx_default(
|
|
2674
|
+
"circle",
|
|
2675
|
+
localChecked ? "checked" : void 0,
|
|
2676
|
+
colorClass
|
|
2677
|
+
),
|
|
2678
|
+
children: localChecked && /* @__PURE__ */ (0, import_jsx_runtime313.jsx)("div", { className: "inner-circle" })
|
|
2679
|
+
}
|
|
2680
|
+
),
|
|
2681
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime313.jsx)("span", { children: label })
|
|
2682
|
+
]
|
|
2683
|
+
}
|
|
2684
|
+
);
|
|
2685
|
+
};
|
|
2686
|
+
Radio.displayName = "Radio";
|
|
2687
|
+
var Radio_default = Radio;
|
|
2688
|
+
|
|
2689
|
+
// src/components/Radio/RadioGroup.tsx
|
|
2690
|
+
var import_jsx_runtime314 = require("react/jsx-runtime");
|
|
2691
|
+
var RadioGroup = (props) => {
|
|
2692
|
+
const { children, ...rest } = props;
|
|
2693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(import_jsx_runtime314.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(RadioGroupContext_default.Provider, { value: rest, children }) });
|
|
2694
|
+
};
|
|
2695
|
+
RadioGroup.displayName = "RadioGroup";
|
|
2696
|
+
var RadioGroup_default = RadioGroup;
|
|
2697
|
+
|
|
2698
|
+
// src/components/Switch/Switch.tsx
|
|
2699
|
+
var import_react18 = __toESM(require("react"), 1);
|
|
2700
|
+
var import_jsx_runtime315 = require("react/jsx-runtime");
|
|
2701
|
+
var KNOB_TRANSITION_MS = 250;
|
|
2702
|
+
var Switch = (props) => {
|
|
2703
|
+
const {
|
|
2704
|
+
value,
|
|
2705
|
+
disabled,
|
|
2706
|
+
onChange,
|
|
2707
|
+
colorNamespace = "xplat",
|
|
2708
|
+
color = "blue",
|
|
2709
|
+
colorDepth,
|
|
2710
|
+
className
|
|
2711
|
+
} = props;
|
|
2712
|
+
const [isAnimating, setIsAnimating] = import_react18.default.useState(false);
|
|
2713
|
+
const timeoutRef = import_react18.default.useRef(null);
|
|
2714
|
+
import_react18.default.useEffect(() => {
|
|
2715
|
+
return () => {
|
|
2716
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
2717
|
+
};
|
|
2718
|
+
}, []);
|
|
2719
|
+
const handleClick = () => {
|
|
2720
|
+
if (disabled || isAnimating) return;
|
|
2721
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
2722
|
+
setIsAnimating(true);
|
|
2723
|
+
onChange?.(!value);
|
|
2724
|
+
timeoutRef.current = setTimeout(() => {
|
|
2725
|
+
setIsAnimating(false);
|
|
2726
|
+
timeoutRef.current = null;
|
|
2727
|
+
}, KNOB_TRANSITION_MS);
|
|
2728
|
+
};
|
|
2729
|
+
const colorClass = getColorClass(
|
|
2730
|
+
colorNamespace,
|
|
2731
|
+
color,
|
|
2732
|
+
colorDepth ?? 500
|
|
2733
|
+
);
|
|
2734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
|
|
2735
|
+
"div",
|
|
2736
|
+
{
|
|
2737
|
+
className: clsx_default(
|
|
2738
|
+
"lib-xplat-switch",
|
|
2739
|
+
value ? "checked" : void 0,
|
|
2740
|
+
disabled && "disabled",
|
|
2741
|
+
isAnimating && "animating",
|
|
2742
|
+
colorClass,
|
|
2743
|
+
className
|
|
2744
|
+
),
|
|
2745
|
+
onClick: handleClick,
|
|
2746
|
+
"aria-disabled": disabled || isAnimating,
|
|
2747
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime315.jsx)("div", { className: clsx_default("knob", value ? "checked" : void 0) })
|
|
2748
|
+
}
|
|
2749
|
+
);
|
|
2750
|
+
};
|
|
2751
|
+
Switch.displayName = "Switch";
|
|
2752
|
+
var Switch_default = Switch;
|
|
2753
|
+
|
|
2754
|
+
// src/components/Tab/Tab.tsx
|
|
2755
|
+
var import_react20 = __toESM(require("react"), 1);
|
|
2756
|
+
|
|
2757
|
+
// src/components/Tab/TabItem.tsx
|
|
2758
|
+
var import_react19 = __toESM(require("react"), 1);
|
|
2759
|
+
var import_jsx_runtime316 = require("react/jsx-runtime");
|
|
2760
|
+
var TabItem = import_react19.default.forwardRef((props, ref) => {
|
|
2761
|
+
const { isActive, title, onClick } = props;
|
|
2762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
|
|
2763
|
+
"div",
|
|
2764
|
+
{
|
|
2765
|
+
ref,
|
|
2766
|
+
className: clsx_default("tab-item", isActive ? "active" : null),
|
|
2767
|
+
onClick,
|
|
2768
|
+
children: title
|
|
2769
|
+
}
|
|
2770
|
+
);
|
|
2771
|
+
});
|
|
2772
|
+
TabItem.displayName = "TabItem";
|
|
2773
|
+
var TabItem_default = TabItem;
|
|
2774
|
+
|
|
2775
|
+
// src/components/Tab/Tab.tsx
|
|
2776
|
+
var import_jsx_runtime317 = require("react/jsx-runtime");
|
|
2777
|
+
var Tab = (props) => {
|
|
2778
|
+
const { activeIndex, onChange, tabs, type } = props;
|
|
2779
|
+
const [underlineStyle, setUnderlineStyle] = import_react20.default.useState({
|
|
2780
|
+
left: 0,
|
|
2781
|
+
width: 0
|
|
2782
|
+
});
|
|
2783
|
+
const itemRefs = import_react20.default.useRef([]);
|
|
2784
|
+
const handleChangeActiveTab = (tabItem, tabIdx) => {
|
|
2785
|
+
onChange(tabItem, tabIdx);
|
|
2786
|
+
};
|
|
2787
|
+
import_react20.default.useEffect(() => {
|
|
2788
|
+
const el = itemRefs.current[activeIndex];
|
|
2789
|
+
if (el) {
|
|
2790
|
+
setUnderlineStyle({ left: el.offsetLeft, width: el.offsetWidth });
|
|
2791
|
+
}
|
|
2792
|
+
}, [activeIndex, tabs.length]);
|
|
2793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)("div", { className: clsx_default("lib-xplat-tab", `type-${type}`), children: [
|
|
2794
|
+
tabs.map((tab, idx) => /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
|
|
2795
|
+
TabItem_default,
|
|
2796
|
+
{
|
|
2797
|
+
onClick: () => handleChangeActiveTab(tab, idx),
|
|
2798
|
+
isActive: activeIndex === idx,
|
|
2799
|
+
ref: (el) => {
|
|
2800
|
+
itemRefs.current[idx] = el;
|
|
2801
|
+
},
|
|
2802
|
+
title: tab.title
|
|
2803
|
+
},
|
|
2804
|
+
`${tab.value}_${idx}`
|
|
2805
|
+
)),
|
|
2806
|
+
type === "toggle" && /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
|
|
2807
|
+
"div",
|
|
2808
|
+
{
|
|
2809
|
+
className: "tab-toggle-underline",
|
|
2810
|
+
style: {
|
|
2811
|
+
left: underlineStyle.left,
|
|
2812
|
+
width: underlineStyle.width
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
)
|
|
2816
|
+
] });
|
|
2817
|
+
};
|
|
2818
|
+
Tab.displayName = "Tab";
|
|
2819
|
+
var Tab_default = Tab;
|
|
2820
|
+
|
|
2821
|
+
// src/components/Table/TableContext.tsx
|
|
2822
|
+
var import_react21 = __toESM(require("react"), 1);
|
|
2823
|
+
var TableContext = import_react21.default.createContext(null);
|
|
2824
|
+
var useTableContext = () => {
|
|
2825
|
+
const ctx = import_react21.default.useContext(TableContext);
|
|
2826
|
+
if (!ctx) throw new Error("Table components must be used inside <Table>");
|
|
2827
|
+
return ctx;
|
|
2828
|
+
};
|
|
2829
|
+
var TableContext_default = TableContext;
|
|
2830
|
+
|
|
2831
|
+
// src/components/Table/Table.tsx
|
|
2832
|
+
var import_jsx_runtime318 = require("react/jsx-runtime");
|
|
2833
|
+
var Table = (props) => {
|
|
2834
|
+
const {
|
|
2835
|
+
className,
|
|
2836
|
+
children,
|
|
2837
|
+
rowBorderUse = true,
|
|
2838
|
+
colBorderUse = true,
|
|
2839
|
+
headerSticky = false,
|
|
2840
|
+
stickyShadow = true
|
|
2841
|
+
} = props;
|
|
2842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)("div", { className: clsx_default("lib-xplat-table-wrapper", className), children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
|
|
2843
|
+
TableContext_default.Provider,
|
|
2844
|
+
{
|
|
2845
|
+
value: {
|
|
2846
|
+
rowBorderUse,
|
|
2847
|
+
colBorderUse,
|
|
2848
|
+
headerSticky,
|
|
2849
|
+
stickyShadow
|
|
2850
|
+
},
|
|
2851
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)("table", { className: "lib-xplat-table", children })
|
|
2852
|
+
}
|
|
2853
|
+
) });
|
|
2854
|
+
};
|
|
2855
|
+
Table.displayName = "Table";
|
|
2856
|
+
var Table_default = Table;
|
|
2857
|
+
|
|
2858
|
+
// src/components/Table/TableBody.tsx
|
|
2859
|
+
var import_jsx_runtime319 = require("react/jsx-runtime");
|
|
2860
|
+
var TableBody = (props) => {
|
|
2861
|
+
const { children, className } = props;
|
|
2862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)("tbody", { className, children });
|
|
2863
|
+
};
|
|
2864
|
+
TableBody.displayName = "TableBody";
|
|
2865
|
+
var TableBody_default = TableBody;
|
|
2866
|
+
|
|
2867
|
+
// src/components/Table/TableCell.tsx
|
|
2868
|
+
var import_react24 = __toESM(require("react"), 1);
|
|
2869
|
+
|
|
2870
|
+
// src/components/Table/TableHeadContext.tsx
|
|
2871
|
+
var import_react22 = __toESM(require("react"), 1);
|
|
2872
|
+
var TableHeadContext = import_react22.default.createContext(
|
|
2873
|
+
null
|
|
2874
|
+
);
|
|
2875
|
+
var useTableHeadContext = () => {
|
|
2876
|
+
const ctx = import_react22.default.useContext(TableHeadContext);
|
|
2877
|
+
return ctx;
|
|
2878
|
+
};
|
|
2879
|
+
var TableHeadContext_default = TableHeadContext;
|
|
2880
|
+
|
|
2881
|
+
// src/components/Table/TableRowContext.tsx
|
|
2882
|
+
var import_react23 = __toESM(require("react"), 1);
|
|
2883
|
+
var TableRowContext = import_react23.default.createContext(null);
|
|
2884
|
+
var useTableRowContext = () => {
|
|
2885
|
+
const ctx = import_react23.default.useContext(TableRowContext);
|
|
2886
|
+
if (!ctx) throw new Error("Table components must be used inside <Table>");
|
|
2887
|
+
return ctx;
|
|
2888
|
+
};
|
|
2889
|
+
var TableRowContext_default = TableRowContext;
|
|
2890
|
+
|
|
2891
|
+
// src/components/Table/TableCell.tsx
|
|
2892
|
+
var import_jsx_runtime320 = require("react/jsx-runtime");
|
|
2893
|
+
var TableCell = (props) => {
|
|
2894
|
+
const {
|
|
2895
|
+
children,
|
|
2896
|
+
align = "center",
|
|
2897
|
+
className,
|
|
2898
|
+
isSticky = false,
|
|
2899
|
+
onClick
|
|
2900
|
+
} = props;
|
|
2901
|
+
const { registerStickyCell, stickyCells } = useTableRowContext();
|
|
2902
|
+
const { stickyShadow } = useTableContext();
|
|
2903
|
+
const headContext = useTableHeadContext();
|
|
2904
|
+
const [left, setLeft] = import_react24.default.useState(0);
|
|
2905
|
+
const cellRef = import_react24.default.useRef(null);
|
|
2906
|
+
const calculateLeft = import_react24.default.useCallback(() => {
|
|
2907
|
+
if (!cellRef.current) return 0;
|
|
2908
|
+
let totalLeft = 0;
|
|
2909
|
+
for (const ref of stickyCells) {
|
|
2910
|
+
if (ref === cellRef) break;
|
|
2911
|
+
if (ref.current) totalLeft += ref.current.offsetWidth;
|
|
2912
|
+
}
|
|
2913
|
+
return totalLeft;
|
|
2914
|
+
}, [stickyCells]);
|
|
2915
|
+
import_react24.default.useEffect(() => {
|
|
2916
|
+
if (!isSticky || !cellRef.current) return;
|
|
2917
|
+
registerStickyCell(cellRef);
|
|
2918
|
+
setLeft(calculateLeft());
|
|
2919
|
+
const observer = new ResizeObserver(() => {
|
|
2920
|
+
requestAnimationFrame(() => {
|
|
2921
|
+
setLeft(calculateLeft());
|
|
2922
|
+
});
|
|
2923
|
+
});
|
|
2924
|
+
if (cellRef.current) observer.observe(cellRef.current);
|
|
2925
|
+
for (const ref of stickyCells) {
|
|
2926
|
+
if (ref.current) observer.observe(ref.current);
|
|
2927
|
+
}
|
|
2928
|
+
return () => observer.disconnect();
|
|
2929
|
+
}, [isSticky, registerStickyCell, calculateLeft]);
|
|
2930
|
+
const CellTag = cellRef.current?.tagName === "TH" ? "th" : "td";
|
|
2931
|
+
const isLastSticky = isSticky && stickyCells[stickyCells.length - 1] === cellRef;
|
|
2932
|
+
const enableHover = headContext && headContext.cellHover;
|
|
2933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
|
|
2934
|
+
CellTag,
|
|
2935
|
+
{
|
|
2936
|
+
ref: cellRef,
|
|
2937
|
+
className: clsx_default(
|
|
2938
|
+
`align-${align}`,
|
|
2939
|
+
isSticky && "table-sticky",
|
|
2940
|
+
isLastSticky && stickyShadow && "right-shadow",
|
|
2941
|
+
onClick && "clickable",
|
|
2942
|
+
enableHover && "cell-hover",
|
|
2943
|
+
className
|
|
2944
|
+
),
|
|
2945
|
+
style: isSticky ? { left } : void 0,
|
|
2946
|
+
onClick,
|
|
2947
|
+
children
|
|
2948
|
+
}
|
|
2949
|
+
);
|
|
2950
|
+
};
|
|
2951
|
+
TableCell.displayName = "TableCell";
|
|
2952
|
+
var TableCell_default = TableCell;
|
|
2953
|
+
|
|
2954
|
+
// src/components/Table/TableHead.tsx
|
|
2955
|
+
var import_jsx_runtime321 = require("react/jsx-runtime");
|
|
2956
|
+
var TableHead = ({
|
|
2957
|
+
children,
|
|
2958
|
+
className = "",
|
|
2959
|
+
cellHover = false
|
|
2960
|
+
}) => {
|
|
2961
|
+
const { headerSticky } = useTableContext();
|
|
2962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(TableHeadContext_default.Provider, { value: { cellHover }, children: /* @__PURE__ */ (0, import_jsx_runtime321.jsx)("thead", { className: clsx_default(headerSticky ? "table-sticky" : null, className), children }) });
|
|
2963
|
+
};
|
|
2964
|
+
TableHead.displayName = "TableHead";
|
|
2965
|
+
var TableHead_default = TableHead;
|
|
2966
|
+
|
|
2967
|
+
// src/components/Table/TableRow.tsx
|
|
2968
|
+
var import_react25 = __toESM(require("react"), 1);
|
|
2969
|
+
var import_jsx_runtime322 = require("react/jsx-runtime");
|
|
2970
|
+
var TableRow = (props) => {
|
|
2971
|
+
const {
|
|
2972
|
+
children,
|
|
2973
|
+
className,
|
|
2974
|
+
colorNamespace = "xplat",
|
|
2975
|
+
color = "black",
|
|
2976
|
+
colorDepth,
|
|
2977
|
+
type = "secondary",
|
|
2978
|
+
isHover,
|
|
2979
|
+
onClick
|
|
2980
|
+
} = props;
|
|
2981
|
+
const { rowBorderUse } = useTableContext();
|
|
2982
|
+
const [stickyCells, setStickyCells] = import_react25.default.useState([]);
|
|
2983
|
+
const registerStickyCell = (ref) => {
|
|
2984
|
+
setStickyCells((prev) => {
|
|
2985
|
+
if (prev.includes(ref)) return prev;
|
|
2986
|
+
return [...prev, ref];
|
|
2987
|
+
});
|
|
2988
|
+
};
|
|
2989
|
+
const colorClass = getColorClass(
|
|
2990
|
+
colorNamespace,
|
|
2991
|
+
color,
|
|
2992
|
+
colorDepth ?? 500
|
|
2993
|
+
);
|
|
2994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(TableRowContext_default.Provider, { value: { stickyCells, registerStickyCell }, children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
|
|
2995
|
+
"tr",
|
|
2996
|
+
{
|
|
2997
|
+
className: clsx_default(
|
|
2998
|
+
rowBorderUse ? "table-bottom-border" : null,
|
|
2999
|
+
type,
|
|
3000
|
+
colorClass,
|
|
3001
|
+
isHover && "hover",
|
|
3002
|
+
onClick && "clickable",
|
|
3003
|
+
className
|
|
3004
|
+
),
|
|
3005
|
+
onClick,
|
|
3006
|
+
children
|
|
3007
|
+
}
|
|
3008
|
+
) });
|
|
3009
|
+
};
|
|
3010
|
+
TableRow.displayName = "TableRow";
|
|
3011
|
+
var TableRow_default = TableRow;
|
|
3012
|
+
|
|
3013
|
+
// src/components/TextArea/TextArea.tsx
|
|
3014
|
+
var import_react26 = __toESM(require("react"), 1);
|
|
3015
|
+
var import_jsx_runtime323 = require("react/jsx-runtime");
|
|
3016
|
+
var TextArea = import_react26.default.forwardRef(
|
|
3017
|
+
(props, ref) => {
|
|
3018
|
+
const { value, onChange, className, disabled, ...textareaProps } = props;
|
|
3019
|
+
const localRef = import_react26.default.useRef(null);
|
|
3020
|
+
const setRefs = (el) => {
|
|
3021
|
+
localRef.current = el;
|
|
3022
|
+
if (!ref) return;
|
|
3023
|
+
if (typeof ref === "function") {
|
|
3024
|
+
ref(el);
|
|
3025
|
+
} else if (ref && typeof ref === "object" && "current" in ref) {
|
|
3026
|
+
ref.current = el;
|
|
3027
|
+
}
|
|
3028
|
+
};
|
|
3029
|
+
const handleOnChange = (e) => {
|
|
3030
|
+
const val = e.target.value;
|
|
3031
|
+
if (onChange) {
|
|
3032
|
+
const event = {
|
|
3033
|
+
...e,
|
|
3034
|
+
target: { value: val }
|
|
3035
|
+
};
|
|
3036
|
+
onChange(event);
|
|
3037
|
+
}
|
|
3038
|
+
};
|
|
3039
|
+
import_react26.default.useEffect(() => {
|
|
3040
|
+
const el = localRef.current;
|
|
3041
|
+
if (!el) return;
|
|
3042
|
+
el.style.height = "0px";
|
|
3043
|
+
const nextHeight = Math.min(el.scrollHeight, 400);
|
|
3044
|
+
el.style.height = `${nextHeight}px`;
|
|
3045
|
+
}, [value]);
|
|
3046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
|
|
3047
|
+
"div",
|
|
3048
|
+
{
|
|
3049
|
+
className: clsx_default(
|
|
3050
|
+
"lib-xplat-textarea",
|
|
3051
|
+
disabled ? "disabled" : void 0
|
|
3052
|
+
),
|
|
3053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
|
|
3054
|
+
"textarea",
|
|
3055
|
+
{
|
|
3056
|
+
...textareaProps,
|
|
3057
|
+
ref: setRefs,
|
|
3058
|
+
disabled,
|
|
3059
|
+
value,
|
|
3060
|
+
onChange: handleOnChange
|
|
3061
|
+
}
|
|
3062
|
+
)
|
|
3063
|
+
}
|
|
3064
|
+
) });
|
|
3065
|
+
}
|
|
3066
|
+
);
|
|
3067
|
+
TextArea.displayName = "TextArea";
|
|
3068
|
+
var TextArea_default = TextArea;
|
|
3069
|
+
|
|
3070
|
+
// src/components/Tooltip/Tooltip.tsx
|
|
3071
|
+
var import_react27 = __toESM(require("react"), 1);
|
|
3072
|
+
var import_jsx_runtime324 = require("react/jsx-runtime");
|
|
3073
|
+
var Tooltip2 = (props) => {
|
|
3074
|
+
const {
|
|
3075
|
+
type = "primary",
|
|
3076
|
+
colorNamespace = "xplat",
|
|
3077
|
+
color = "blue",
|
|
3078
|
+
colorDepth,
|
|
3079
|
+
description,
|
|
3080
|
+
children
|
|
3081
|
+
} = props;
|
|
3082
|
+
const iconRef = import_react27.default.useRef(null);
|
|
3083
|
+
const colorClass = getColorClass(
|
|
3084
|
+
colorNamespace,
|
|
3085
|
+
color,
|
|
3086
|
+
colorDepth ?? 500
|
|
3087
|
+
);
|
|
3088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)("div", { className: "lib-xplat-tooltip", children: [
|
|
3089
|
+
/* @__PURE__ */ (0, import_jsx_runtime324.jsx)("div", { className: "tooltip-content", ref: iconRef, children: children || "Tooltip" }),
|
|
3090
|
+
/* @__PURE__ */ (0, import_jsx_runtime324.jsx)("div", { className: clsx_default("tooltip-wrapper", colorClass, type), children: description })
|
|
3091
|
+
] });
|
|
3092
|
+
};
|
|
3093
|
+
Tooltip2.displayName = "Tooltip";
|
|
3094
|
+
var Tooltip_default = Tooltip2;
|
|
3095
|
+
|
|
3096
|
+
// src/components/Video/Video.tsx
|
|
3097
|
+
var import_react28 = __toESM(require("react"), 1);
|
|
3098
|
+
var import_jsx_runtime325 = require("react/jsx-runtime");
|
|
3099
|
+
var Video = import_react28.default.forwardRef((props, ref) => {
|
|
3100
|
+
const {
|
|
3101
|
+
src,
|
|
3102
|
+
poster,
|
|
3103
|
+
controls = true,
|
|
3104
|
+
autoPlay,
|
|
3105
|
+
muted,
|
|
3106
|
+
loop,
|
|
3107
|
+
playsInline,
|
|
3108
|
+
className,
|
|
3109
|
+
onPlay,
|
|
3110
|
+
onPause,
|
|
3111
|
+
...rest
|
|
3112
|
+
} = props;
|
|
3113
|
+
const videoRef = import_react28.default.useRef(null);
|
|
3114
|
+
const [isPlaying, setIsPlaying] = import_react28.default.useState(Boolean(autoPlay));
|
|
3115
|
+
const [isLoaded, setIsLoaded] = import_react28.default.useState(false);
|
|
3116
|
+
const setRefs = import_react28.default.useCallback(
|
|
3117
|
+
(el) => {
|
|
3118
|
+
videoRef.current = el;
|
|
3119
|
+
if (typeof ref === "function") ref(el);
|
|
3120
|
+
else if (ref) ref.current = el;
|
|
3121
|
+
},
|
|
3122
|
+
[ref]
|
|
3123
|
+
);
|
|
3124
|
+
const handlePlay = (e) => {
|
|
3125
|
+
setIsPlaying(true);
|
|
3126
|
+
onPlay?.(e);
|
|
3127
|
+
};
|
|
3128
|
+
const handlePause = (e) => {
|
|
3129
|
+
setIsPlaying(false);
|
|
3130
|
+
onPause?.(e);
|
|
3131
|
+
};
|
|
3132
|
+
const handleLoadedData = () => {
|
|
3133
|
+
setIsLoaded(true);
|
|
3134
|
+
};
|
|
3135
|
+
const togglePlay = () => {
|
|
3136
|
+
if (!videoRef.current) return;
|
|
3137
|
+
if (isPlaying) {
|
|
3138
|
+
videoRef.current.pause();
|
|
3139
|
+
} else {
|
|
3140
|
+
videoRef.current.play();
|
|
3141
|
+
}
|
|
3142
|
+
};
|
|
3143
|
+
const showCustomOverlay = !controls;
|
|
3144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime325.jsxs)(
|
|
3145
|
+
"div",
|
|
3146
|
+
{
|
|
3147
|
+
className: clsx_default(
|
|
3148
|
+
"lib-xplat-video",
|
|
3149
|
+
showCustomOverlay && "custom-overlay",
|
|
3150
|
+
className
|
|
3151
|
+
),
|
|
3152
|
+
children: [
|
|
3153
|
+
/* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
|
|
3154
|
+
"video",
|
|
3155
|
+
{
|
|
3156
|
+
ref: setRefs,
|
|
3157
|
+
src,
|
|
3158
|
+
poster,
|
|
3159
|
+
controls,
|
|
3160
|
+
autoPlay,
|
|
3161
|
+
muted,
|
|
3162
|
+
loop,
|
|
3163
|
+
playsInline: playsInline ?? true,
|
|
3164
|
+
onPlay: handlePlay,
|
|
3165
|
+
onPause: handlePause,
|
|
3166
|
+
onLoadedData: handleLoadedData,
|
|
3167
|
+
...rest
|
|
3168
|
+
}
|
|
3169
|
+
),
|
|
3170
|
+
showCustomOverlay && /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
|
|
3171
|
+
"button",
|
|
3172
|
+
{
|
|
3173
|
+
type: "button",
|
|
3174
|
+
className: clsx_default(
|
|
3175
|
+
"play-overlay",
|
|
3176
|
+
isPlaying && "is-playing",
|
|
3177
|
+
!isLoaded && "is-loading"
|
|
3178
|
+
),
|
|
3179
|
+
onClick: togglePlay,
|
|
3180
|
+
"aria-label": isPlaying ? "\uC77C\uC2DC\uC815\uC9C0" : "\uC7AC\uC0DD",
|
|
3181
|
+
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(PauseIcon_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime325.jsx)("span", { className: "play-icon", children: /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(PlayCircleIcon_default, {}) })
|
|
3182
|
+
}
|
|
3183
|
+
)
|
|
3184
|
+
]
|
|
3185
|
+
}
|
|
3186
|
+
);
|
|
3187
|
+
});
|
|
3188
|
+
Video.displayName = "Video";
|
|
3189
|
+
var Video_default = Video;
|
|
3190
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3191
|
+
0 && (module.exports = {
|
|
3192
|
+
Button,
|
|
3193
|
+
Card,
|
|
3194
|
+
Chart,
|
|
3195
|
+
CheckBox,
|
|
3196
|
+
Chip,
|
|
3197
|
+
HtmlTypewriter,
|
|
3198
|
+
ImageSelector,
|
|
3199
|
+
Input,
|
|
3200
|
+
InputDatePicker,
|
|
3201
|
+
Modal,
|
|
3202
|
+
PasswordInput,
|
|
3203
|
+
PopOver,
|
|
3204
|
+
PopupDatePicker,
|
|
3205
|
+
Radio,
|
|
3206
|
+
RadioGroup,
|
|
3207
|
+
RangeDatePicker,
|
|
3208
|
+
Select,
|
|
3209
|
+
SelectItem,
|
|
3210
|
+
SingleDatePicker,
|
|
3211
|
+
Switch,
|
|
3212
|
+
Tab,
|
|
3213
|
+
Table,
|
|
3214
|
+
TableBody,
|
|
3215
|
+
TableCell,
|
|
3216
|
+
TableHead,
|
|
3217
|
+
TableRow,
|
|
3218
|
+
TextArea,
|
|
3219
|
+
Tooltip,
|
|
3220
|
+
Video
|
|
3221
|
+
});
|