@x-plat/design-system 0.5.4 → 0.5.6

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.
@@ -81,6 +81,18 @@ var PlayCircleIcon_default = PlayCircleIcon;
81
81
 
82
82
  // src/tokens/svg/media/PlayIcon.tsx
83
83
  import { jsx as jsx16 } from "react/jsx-runtime";
84
+ var PlayIcon = () => /* @__PURE__ */ jsx16(
85
+ "svg",
86
+ {
87
+ xmlns: "http://www.w3.org/2000/svg",
88
+ width: "1em",
89
+ height: "1em",
90
+ viewBox: "0 0 20 20",
91
+ fill: "none",
92
+ children: /* @__PURE__ */ jsx16("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.80762 1.84203C4.0483 1.71076 4.3416 1.72119 4.57227 1.86937L16.2393 9.36937C16.4536 9.50742 16.584 9.74522 16.584 10.0002C16.5839 10.2552 16.4537 10.4931 16.2393 10.6311L4.57227 18.1311C4.34166 18.2792 4.04826 18.2896 3.80762 18.1584C3.56689 18.027 3.4161 17.7745 3.41602 17.5002V2.50023C3.41602 2.22588 3.56682 1.9735 3.80762 1.84203ZM4.91699 16.1262L14.4463 10.0002L4.91699 3.87328V16.1262Z", fill: "currentColor" })
93
+ }
94
+ );
95
+ var PlayIcon_default = PlayIcon;
84
96
 
85
97
  // src/tokens/svg/media/RepeatIcon.tsx
86
98
  import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
@@ -111,12 +123,263 @@ import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
111
123
 
112
124
  // src/tokens/svg/media/Volume2Icon.tsx
113
125
  import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
126
+ var Volume2Icon = () => /* @__PURE__ */ jsxs22(
127
+ "svg",
128
+ {
129
+ xmlns: "http://www.w3.org/2000/svg",
130
+ width: "1em",
131
+ height: "1em",
132
+ viewBox: "0 0 20 20",
133
+ fill: "none",
134
+ children: [
135
+ /* @__PURE__ */ jsx26("path", { d: "M15.3613 3.57827C15.6542 3.28549 16.129 3.28554 16.4219 3.57827C18.1247 5.28162 19.082 7.59163 19.082 10.0001C19.082 12.4087 18.1247 14.7187 16.4219 16.422C16.129 16.7147 15.6542 16.7147 15.3613 16.422C15.0687 16.1292 15.0687 15.6543 15.3613 15.3615C16.7829 13.9394 17.582 12.0109 17.582 10.0001C17.582 7.98938 16.7829 6.06088 15.3613 4.63882C15.0686 4.34597 15.0687 3.87112 15.3613 3.57827Z", fill: "currentColor" }),
136
+ /* @__PURE__ */ jsx26("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.69824 3.5812C8.92336 3.40117 9.23238 3.36648 9.49219 3.49135C9.75153 3.61641 9.91699 3.87916 9.91699 4.16714V15.8341C9.91671 16.122 9.75157 16.385 9.49219 16.5099C9.23253 16.6347 8.92333 16.5988 8.69824 16.4191L4.7373 13.2501H1.66699C1.25291 13.2501 0.916235 12.9142 0.916016 12.5001V7.50014C0.916192 7.08608 1.25289 6.75014 1.66699 6.75014H4.73828L8.69824 3.5812ZM5.46875 8.08608C5.3359 8.19235 5.17011 8.25003 5 8.25014H2.41699V11.7501H5C5.17013 11.7503 5.33589 11.8089 5.46875 11.9152L8.41699 14.2726V5.72768L5.46875 8.08608Z", fill: "currentColor" }),
137
+ /* @__PURE__ */ jsx26("path", { d: "M12.4199 6.51967C12.7128 6.22695 13.1876 6.22696 13.4805 6.51967C14.4022 7.44168 14.9199 8.69255 14.9199 9.99624C14.9198 11.2998 14.4021 12.5499 13.4805 13.4718C13.1876 13.7647 12.7128 13.7646 12.4199 13.4718C12.1273 13.179 12.1272 12.7041 12.4199 12.4113C13.0602 11.7707 13.4198 10.902 13.4199 9.99624C13.4199 9.0903 13.0604 8.22093 12.4199 7.58022C12.1271 7.28731 12.1271 6.81251 12.4199 6.51967Z", fill: "currentColor" })
138
+ ]
139
+ }
140
+ );
141
+ var Volume2Icon_default = Volume2Icon;
114
142
 
115
143
  // src/tokens/svg/media/VolumeIcon.tsx
116
144
  import { jsx as jsx27 } from "react/jsx-runtime";
145
+ var VolumeIcon = () => /* @__PURE__ */ jsx27(
146
+ "svg",
147
+ {
148
+ xmlns: "http://www.w3.org/2000/svg",
149
+ width: "1em",
150
+ height: "1em",
151
+ viewBox: "0 0 20 20",
152
+ fill: "none",
153
+ children: /* @__PURE__ */ jsx27("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.69824 3.58112C8.92336 3.40111 9.23239 3.36641 9.49219 3.49127C9.75155 3.61632 9.91699 3.87906 9.91699 4.16705V15.834C9.91675 16.1219 9.75157 16.3849 9.49219 16.5098C9.23251 16.6346 8.92333 16.5988 8.69824 16.419L4.7373 13.2501H1.66699C1.25288 13.2501 0.916186 12.9141 0.916016 12.5001V7.50006C0.916192 7.086 1.25289 6.75006 1.66699 6.75006H4.73828L8.69824 3.58112ZM5.46875 8.086C5.3359 8.19226 5.17011 8.24995 5 8.25006H2.41699V11.7501H5C5.17013 11.7502 5.33589 11.8088 5.46875 11.9151L8.41699 14.2725V5.7276L5.46875 8.086Z", fill: "currentColor" })
154
+ }
155
+ );
156
+ var VolumeIcon_default = VolumeIcon;
117
157
 
118
158
  // src/tokens/svg/media/VolumeXIcon.tsx
119
159
  import { jsx as jsx28, jsxs as jsxs23 } from "react/jsx-runtime";
160
+ var VolumeXIcon = () => /* @__PURE__ */ jsxs23(
161
+ "svg",
162
+ {
163
+ xmlns: "http://www.w3.org/2000/svg",
164
+ width: "1em",
165
+ height: "1em",
166
+ viewBox: "0 0 20 20",
167
+ fill: "none",
168
+ children: [
169
+ /* @__PURE__ */ jsx28("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.69824 3.58112C8.92336 3.40111 9.23239 3.36641 9.49219 3.49127C9.75155 3.61632 9.91699 3.87906 9.91699 4.16705V15.834C9.91675 16.1219 9.75157 16.3849 9.49219 16.5098C9.23251 16.6346 8.92333 16.5988 8.69824 16.419L4.7373 13.2501H1.66699C1.25288 13.2501 0.916186 12.9141 0.916016 12.5001V7.50006C0.916192 7.086 1.25289 6.75006 1.66699 6.75006H4.73828L8.69824 3.58112ZM5.46875 8.086C5.3359 8.19226 5.17011 8.24995 5 8.25006H2.41699V11.7501H5C5.17013 11.7502 5.33589 11.8088 5.46875 11.9151L8.41699 14.2725V5.7276L5.46875 8.086Z", fill: "currentColor" }),
170
+ /* @__PURE__ */ jsx28("path", { d: "M18.6367 6.96979C18.9296 6.6771 19.4044 6.67696 19.6973 6.96979C19.9898 7.26263 19.9899 7.73752 19.6973 8.03033L17.7275 10.0001L19.6973 11.9698C19.9898 12.2626 19.9899 12.7375 19.6973 13.0303C19.4045 13.3231 18.9296 13.3229 18.6367 13.0303L16.667 11.0606L14.6973 13.0303C14.4045 13.3231 13.9296 13.3229 13.6367 13.0303C13.3438 12.7374 13.3438 12.2627 13.6367 11.9698L15.6064 10.0001L13.6367 8.03033C13.3438 7.73744 13.3438 7.26268 13.6367 6.96979C13.9296 6.6771 14.4044 6.67696 14.6973 6.96979L16.667 8.93951L18.6367 6.96979Z", fill: "currentColor" })
171
+ ]
172
+ }
173
+ );
174
+ var VolumeXIcon_default = VolumeXIcon;
175
+
176
+ // src/tokens/svg/layout/ColumnsIcon.tsx
177
+ import { jsx as jsx29 } from "react/jsx-runtime";
178
+
179
+ // src/tokens/svg/layout/GridIcon.tsx
180
+ import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
181
+
182
+ // src/tokens/svg/layout/LayoutIcon.tsx
183
+ import { jsx as jsx31 } from "react/jsx-runtime";
184
+
185
+ // src/tokens/svg/layout/ListIcon.tsx
186
+ import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
187
+
188
+ // src/tokens/svg/layout/Maximize2Icon.tsx
189
+ import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
190
+
191
+ // src/tokens/svg/layout/MaximizeIcon.tsx
192
+ import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
193
+ var MaximizeIcon = () => /* @__PURE__ */ jsxs27(
194
+ "svg",
195
+ {
196
+ xmlns: "http://www.w3.org/2000/svg",
197
+ width: "1em",
198
+ height: "1em",
199
+ viewBox: "0 0 20 20",
200
+ fill: "none",
201
+ children: [
202
+ /* @__PURE__ */ jsx34("path", { d: "M2.5 12.583C2.91411 12.583 3.24982 12.9189 3.25 13.333V15.833C3.25 16.0761 3.34665 16.3095 3.51855 16.4814C3.69046 16.6534 3.92388 16.75 4.16699 16.75H6.66699C7.08106 16.7502 7.41699 17.0859 7.41699 17.5C7.41699 17.9141 7.08106 18.2498 6.66699 18.25H4.16699C3.52605 18.25 2.91122 17.9952 2.45801 17.542C2.00479 17.0888 1.75 16.4739 1.75 15.833V13.333C1.75018 12.9189 2.08589 12.583 2.5 12.583Z", fill: "currentColor" }),
203
+ /* @__PURE__ */ jsx34("path", { d: "M17.5 12.583C17.9141 12.583 18.2498 12.9189 18.25 13.333V15.833C18.25 16.4739 17.9952 17.0888 17.542 17.542C17.0888 17.9952 16.4739 18.25 15.833 18.25H13.333C12.9189 18.2498 12.583 17.9141 12.583 17.5C12.583 17.0859 12.9189 16.7502 13.333 16.75H15.833C16.0761 16.75 16.3095 16.6534 16.4814 16.4814C16.6534 16.3095 16.75 16.0761 16.75 15.833V13.333C16.7502 12.9189 17.0859 12.583 17.5 12.583Z", fill: "currentColor" }),
204
+ /* @__PURE__ */ jsx34("path", { d: "M6.66699 1.75C7.08106 1.75018 7.41699 2.08589 7.41699 2.5C7.41699 2.91411 7.08106 3.24982 6.66699 3.25H4.16699C3.92388 3.25 3.69046 3.34665 3.51855 3.51855C3.34665 3.69046 3.25 3.92388 3.25 4.16699V6.66699C3.24982 7.08106 2.91411 7.41699 2.5 7.41699C2.08589 7.41699 1.75018 7.08106 1.75 6.66699V4.16699C1.75 3.52605 2.00479 2.91122 2.45801 2.45801C2.91122 2.00479 3.52605 1.75 4.16699 1.75H6.66699Z", fill: "currentColor" }),
205
+ /* @__PURE__ */ jsx34("path", { d: "M15.833 1.75C16.4739 1.75 17.0888 2.00479 17.542 2.45801C17.9952 2.91122 18.25 3.52605 18.25 4.16699V6.66699C18.2498 7.08106 17.9141 7.41699 17.5 7.41699C17.0859 7.41699 16.7502 7.08106 16.75 6.66699V4.16699C16.75 3.92388 16.6534 3.69046 16.4814 3.51855C16.3095 3.34665 16.0761 3.25 15.833 3.25H13.333C12.9189 3.24982 12.583 2.91411 12.583 2.5C12.583 2.08589 12.9189 1.75018 13.333 1.75H15.833Z", fill: "currentColor" })
206
+ ]
207
+ }
208
+ );
209
+ var MaximizeIcon_default = MaximizeIcon;
210
+
211
+ // src/tokens/svg/layout/MenuIcon.tsx
212
+ import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
213
+
214
+ // src/tokens/svg/layout/Minimize2Icon.tsx
215
+ import { jsx as jsx36, jsxs as jsxs29 } from "react/jsx-runtime";
216
+
217
+ // src/tokens/svg/layout/MinimizeIcon.tsx
218
+ import { jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
219
+ var MinimizeIcon = () => /* @__PURE__ */ jsxs30(
220
+ "svg",
221
+ {
222
+ xmlns: "http://www.w3.org/2000/svg",
223
+ width: "1em",
224
+ height: "1em",
225
+ viewBox: "0 0 20 20",
226
+ fill: "none",
227
+ children: [
228
+ /* @__PURE__ */ jsx37("path", { d: "M5 12.583C5.64094 12.583 6.25577 12.8378 6.70898 13.291C7.1622 13.7442 7.41699 14.3591 7.41699 15V17.5C7.41699 17.9141 7.08106 18.2498 6.66699 18.25C6.25278 18.25 5.91699 17.9142 5.91699 17.5V15C5.91699 14.7569 5.82035 14.5235 5.64844 14.3516C5.47653 14.1797 5.24311 14.083 5 14.083H2.5C2.08579 14.083 1.75 13.7472 1.75 13.333C1.75018 12.9189 2.08589 12.583 2.5 12.583H5Z", fill: "currentColor" }),
229
+ /* @__PURE__ */ jsx37("path", { d: "M17.5 12.583C17.9141 12.583 18.2498 12.9189 18.25 13.333C18.25 13.7472 17.9142 14.083 17.5 14.083H15C14.7569 14.083 14.5235 14.1797 14.3516 14.3516C14.1797 14.5235 14.083 14.7569 14.083 15V17.5C14.083 17.9142 13.7472 18.25 13.333 18.25C12.9189 18.2498 12.583 17.9141 12.583 17.5V15C12.583 14.3591 12.8378 13.7442 13.291 13.291C13.7442 12.8378 14.3591 12.583 15 12.583H17.5Z", fill: "currentColor" }),
230
+ /* @__PURE__ */ jsx37("path", { d: "M6.66699 1.75C7.08106 1.75018 7.41699 2.08589 7.41699 2.5V5C7.41699 5.64094 7.1622 6.25577 6.70898 6.70898C6.25577 7.1622 5.64094 7.41699 5 7.41699H2.5C2.08589 7.41699 1.75018 7.08106 1.75 6.66699C1.75 6.25278 2.08579 5.91699 2.5 5.91699H5C5.24312 5.91699 5.47653 5.82035 5.64844 5.64844C5.82035 5.47653 5.91699 5.24312 5.91699 5V2.5C5.91699 2.08579 6.25278 1.75 6.66699 1.75Z", fill: "currentColor" }),
231
+ /* @__PURE__ */ jsx37("path", { d: "M13.333 1.75C13.7472 1.75 14.083 2.08579 14.083 2.5V5C14.083 5.24311 14.1797 5.47653 14.3516 5.64844C14.5235 5.82035 14.7569 5.91699 15 5.91699H17.5C17.9142 5.91699 18.25 6.25278 18.25 6.66699C18.2498 7.08106 17.9141 7.41699 17.5 7.41699H15C14.3591 7.41699 13.7442 7.1622 13.291 6.70898C12.8378 6.25577 12.583 5.64094 12.583 5V2.5C12.583 2.08589 12.9189 1.75018 13.333 1.75Z", fill: "currentColor" })
232
+ ]
233
+ }
234
+ );
235
+ var MinimizeIcon_default = MinimizeIcon;
236
+
237
+ // src/tokens/svg/layout/MoreHorizontalIcon.tsx
238
+ import { jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
239
+
240
+ // src/tokens/svg/layout/MoreVerticalIcon.tsx
241
+ import { jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
242
+
243
+ // src/tokens/svg/layout/SidebarIcon.tsx
244
+ import { jsx as jsx40 } from "react/jsx-runtime";
245
+
246
+ // src/tokens/svg/action/CopyIcon.tsx
247
+ import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
248
+
249
+ // src/tokens/svg/action/CropIcon.tsx
250
+ import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
251
+
252
+ // src/tokens/svg/action/DeleteIcon.tsx
253
+ import { jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
254
+
255
+ // src/tokens/svg/action/DownloadCloudIcon.tsx
256
+ import { jsx as jsx44, jsxs as jsxs36 } from "react/jsx-runtime";
257
+
258
+ // src/tokens/svg/action/DownloadIcon.tsx
259
+ import { jsx as jsx45, jsxs as jsxs37 } from "react/jsx-runtime";
260
+ var DownloadIcon = () => /* @__PURE__ */ jsxs37(
261
+ "svg",
262
+ {
263
+ xmlns: "http://www.w3.org/2000/svg",
264
+ width: "1em",
265
+ height: "1em",
266
+ viewBox: "0 0 20 20",
267
+ fill: "none",
268
+ children: [
269
+ /* @__PURE__ */ jsx45("path", { d: "M17.5 11.75C17.9142 11.75 18.25 12.0858 18.25 12.5V15.833C18.25 16.4739 17.9952 17.0888 17.542 17.542C17.0888 17.9952 16.4739 18.25 15.833 18.25H4.16699C3.52605 18.25 2.91122 17.9952 2.45801 17.542C2.00479 17.0888 1.75 16.4739 1.75 15.833V12.5C1.75 12.0858 2.08579 11.75 2.5 11.75C2.91421 11.75 3.25 12.0858 3.25 12.5V15.833C3.25 16.0761 3.34665 16.3095 3.51855 16.4814C3.69046 16.6534 3.92388 16.75 4.16699 16.75H15.833C16.0761 16.75 16.3095 16.6534 16.4814 16.4814C16.6534 16.3095 16.75 16.0761 16.75 15.833V12.5C16.75 12.0858 17.0858 11.75 17.5 11.75Z", fill: "currentColor" }),
270
+ /* @__PURE__ */ jsx45("path", { d: "M10 1.75C10.4142 1.75 10.75 2.08579 10.75 2.5V10.6885L13.6367 7.80273C13.9296 7.51026 14.4045 7.51013 14.6973 7.80273C14.9899 8.09552 14.9898 8.5704 14.6973 8.86328L10.5312 13.0303C10.4709 13.0906 10.4007 13.1354 10.3281 13.1709C10.3146 13.1776 10.3021 13.1865 10.2881 13.1924C10.253 13.207 10.2163 13.2156 10.1797 13.2246C10.1691 13.2272 10.1592 13.2322 10.1484 13.2344C10.1429 13.2355 10.1374 13.2363 10.1318 13.2373C10.0896 13.2448 10.0463 13.2489 10.002 13.249L10 13.25C9.95423 13.25 9.90972 13.2442 9.86621 13.2363C9.86168 13.2355 9.85706 13.2353 9.85254 13.2344C9.82836 13.2295 9.80551 13.221 9.78223 13.2139C9.76008 13.2071 9.73738 13.2022 9.71582 13.1934C9.68772 13.1818 9.66201 13.1661 9.63574 13.1514C9.5804 13.1204 9.52713 13.0842 9.47949 13.0381C9.47469 13.0334 9.46952 13.0292 9.46484 13.0244L5.30371 8.86328C5.01082 8.57039 5.01082 8.09563 5.30371 7.80273C5.59663 7.51021 6.07149 7.50996 6.36426 7.80273L9.25 10.6885V2.5C9.25 2.08579 9.58579 1.75 10 1.75Z", fill: "currentColor" })
271
+ ]
272
+ }
273
+ );
274
+ var DownloadIcon_default = DownloadIcon;
275
+
276
+ // src/tokens/svg/action/Edit2Icon.tsx
277
+ import { jsx as jsx46 } from "react/jsx-runtime";
278
+
279
+ // src/tokens/svg/action/Edit3Icon.tsx
280
+ import { jsx as jsx47, jsxs as jsxs38 } from "react/jsx-runtime";
281
+
282
+ // src/tokens/svg/action/EditIcon.tsx
283
+ import { jsx as jsx48, jsxs as jsxs39 } from "react/jsx-runtime";
284
+
285
+ // src/tokens/svg/action/ExternalLinkIcon.tsx
286
+ import { jsx as jsx49, jsxs as jsxs40 } from "react/jsx-runtime";
287
+
288
+ // src/tokens/svg/action/FilterIcon.tsx
289
+ import { jsx as jsx50 } from "react/jsx-runtime";
290
+
291
+ // src/tokens/svg/action/Link2Icon.tsx
292
+ import { jsx as jsx51, jsxs as jsxs41 } from "react/jsx-runtime";
293
+
294
+ // src/tokens/svg/action/LinkIcon.tsx
295
+ import { jsx as jsx52, jsxs as jsxs42 } from "react/jsx-runtime";
296
+
297
+ // src/tokens/svg/action/MoveIcon.tsx
298
+ import { jsx as jsx53, jsxs as jsxs43 } from "react/jsx-runtime";
299
+
300
+ // src/tokens/svg/action/RefreshCcwIcon.tsx
301
+ import { jsx as jsx54, jsxs as jsxs44 } from "react/jsx-runtime";
302
+
303
+ // src/tokens/svg/action/RefreshCwIcon.tsx
304
+ import { jsx as jsx55, jsxs as jsxs45 } from "react/jsx-runtime";
305
+
306
+ // src/tokens/svg/action/RotateCcwIcon.tsx
307
+ import { jsx as jsx56 } from "react/jsx-runtime";
308
+
309
+ // src/tokens/svg/action/RotateCwIcon.tsx
310
+ import { jsx as jsx57 } from "react/jsx-runtime";
311
+
312
+ // src/tokens/svg/action/SaveIcon.tsx
313
+ import { jsx as jsx58 } from "react/jsx-runtime";
314
+
315
+ // src/tokens/svg/action/ScissorsIcon.tsx
316
+ import { jsx as jsx59, jsxs as jsxs46 } from "react/jsx-runtime";
317
+
318
+ // src/tokens/svg/action/SearchIcon.tsx
319
+ import { jsx as jsx60 } from "react/jsx-runtime";
320
+
321
+ // src/tokens/svg/action/Share2Icon.tsx
322
+ import { jsx as jsx61 } from "react/jsx-runtime";
323
+
324
+ // src/tokens/svg/action/ShareIcon.tsx
325
+ import { jsx as jsx62, jsxs as jsxs47 } from "react/jsx-runtime";
326
+
327
+ // src/tokens/svg/action/Trash2Icon.tsx
328
+ import { jsx as jsx63, jsxs as jsxs48 } from "react/jsx-runtime";
329
+
330
+ // src/tokens/svg/action/TrashIcon.tsx
331
+ import { jsx as jsx64 } from "react/jsx-runtime";
332
+
333
+ // src/tokens/svg/action/UploadCloudIcon.tsx
334
+ import { jsx as jsx65, jsxs as jsxs49 } from "react/jsx-runtime";
335
+
336
+ // src/tokens/svg/action/UploadIcon.tsx
337
+ import { jsx as jsx66, jsxs as jsxs50 } from "react/jsx-runtime";
338
+
339
+ // src/tokens/svg/action/ZoomInIcon.tsx
340
+ import { jsx as jsx67, jsxs as jsxs51 } from "react/jsx-runtime";
341
+
342
+ // src/tokens/svg/action/ZoomOutIcon.tsx
343
+ import { jsx as jsx68, jsxs as jsxs52 } from "react/jsx-runtime";
344
+
345
+ // src/tokens/svg/edit/AlignCenterIcon.tsx
346
+ import { jsx as jsx69, jsxs as jsxs53 } from "react/jsx-runtime";
347
+
348
+ // src/tokens/svg/edit/AlignJustifyIcon.tsx
349
+ import { jsx as jsx70, jsxs as jsxs54 } from "react/jsx-runtime";
350
+
351
+ // src/tokens/svg/edit/AlignLeftIcon.tsx
352
+ import { jsx as jsx71, jsxs as jsxs55 } from "react/jsx-runtime";
353
+
354
+ // src/tokens/svg/edit/AlignRightIcon.tsx
355
+ import { jsx as jsx72, jsxs as jsxs56 } from "react/jsx-runtime";
356
+
357
+ // src/tokens/svg/edit/BoldIcon.tsx
358
+ import { jsx as jsx73 } from "react/jsx-runtime";
359
+
360
+ // src/tokens/svg/edit/ItalicIcon.tsx
361
+ import { jsx as jsx74 } from "react/jsx-runtime";
362
+
363
+ // src/tokens/svg/edit/PenToolIcon.tsx
364
+ import { jsx as jsx75, jsxs as jsxs57 } from "react/jsx-runtime";
365
+
366
+ // src/tokens/svg/edit/TypeIcon.tsx
367
+ import { jsx as jsx76 } from "react/jsx-runtime";
368
+ var TypeIcon = () => /* @__PURE__ */ jsx76(
369
+ "svg",
370
+ {
371
+ xmlns: "http://www.w3.org/2000/svg",
372
+ width: "1em",
373
+ height: "1em",
374
+ viewBox: "0 0 20 20",
375
+ fill: "none",
376
+ children: /* @__PURE__ */ jsx76("path", { d: "M16.667 2.58301C17.0809 2.58327 17.4169 2.91907 17.417 3.33301V5.83301C17.417 6.24706 17.081 6.58274 16.667 6.58301C16.2529 6.58283 15.917 6.24711 15.917 5.83301V4.08301H10.75V15.917H12.5C12.9142 15.917 13.25 16.2528 13.25 16.667C13.2499 17.0811 12.9141 17.417 12.5 17.417H7.5C7.08587 17.417 6.75013 17.0811 6.75 16.667C6.75 16.2528 7.08579 15.917 7.5 15.917H9.25V4.08301H4.08398V5.83301C4.08398 6.24706 3.74797 6.58274 3.33398 6.58301C2.91977 6.58301 2.58301 6.24722 2.58301 5.83301V3.33301C2.58314 2.91891 2.91985 2.58301 3.33398 2.58301H16.667Z", fill: "currentColor" })
377
+ }
378
+ );
379
+ var TypeIcon_default = TypeIcon;
380
+
381
+ // src/tokens/svg/edit/UnderlineIcon.tsx
382
+ import { jsx as jsx77, jsxs as jsxs58 } from "react/jsx-runtime";
120
383
 
121
384
  // ../../node_modules/clsx/dist/clsx.mjs
122
385
  function r(e) {
@@ -135,7 +398,17 @@ function clsx() {
135
398
  var clsx_default = clsx;
136
399
 
137
400
  // src/components/Video/Video.tsx
138
- import { jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
401
+ import { jsx as jsx78, jsxs as jsxs59 } from "react/jsx-runtime";
402
+ var PipIcon = () => /* @__PURE__ */ jsxs59("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
403
+ /* @__PURE__ */ jsx78("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
404
+ /* @__PURE__ */ jsx78("rect", { x: "12", y: "11", width: "7", height: "6", rx: "1", fill: "currentColor" })
405
+ ] });
406
+ var formatTime = (sec) => {
407
+ if (!Number.isFinite(sec) || sec < 0) return "0:00";
408
+ const m = Math.floor(sec / 60);
409
+ const s = Math.floor(sec % 60);
410
+ return `${m}:${s.toString().padStart(2, "0")}`;
411
+ };
139
412
  var Video = React.forwardRef((props, ref) => {
140
413
  const {
141
414
  src,
@@ -144,13 +417,36 @@ var Video = React.forwardRef((props, ref) => {
144
417
  muted,
145
418
  loop,
146
419
  playsInline,
420
+ showControls = true,
421
+ showCenterPlay = true,
422
+ playbackRates,
423
+ showCaptions = false,
424
+ showPip = false,
425
+ showDownload = false,
426
+ downloadFileName,
147
427
  onPlay,
148
428
  onPause,
429
+ onTimeUpdate,
430
+ onVolumeChange,
431
+ onLoadedMetadata,
432
+ onRateChange,
433
+ children,
149
434
  ...rest
150
435
  } = props;
436
+ const containerRef = React.useRef(null);
151
437
  const videoRef = React.useRef(null);
152
438
  const [isPlaying, setIsPlaying] = React.useState(Boolean(autoPlay));
153
439
  const [isLoaded, setIsLoaded] = React.useState(false);
440
+ const [currentTime, setCurrentTime] = React.useState(0);
441
+ const [duration, setDuration] = React.useState(0);
442
+ const [buffered, setBuffered] = React.useState(0);
443
+ const [volume, setVolume] = React.useState(1);
444
+ const [isMuted, setIsMuted] = React.useState(Boolean(muted));
445
+ const [isFullscreen, setIsFullscreen] = React.useState(false);
446
+ const [playbackRate, setPlaybackRate] = React.useState(1);
447
+ const [rateMenuOpen, setRateMenuOpen] = React.useState(false);
448
+ const [captionsOn, setCaptionsOn] = React.useState(false);
449
+ const [isPip, setIsPip] = React.useState(false);
154
450
  const setRefs = React.useCallback(
155
451
  (el) => {
156
452
  videoRef.current = el;
@@ -159,6 +455,25 @@ var Video = React.forwardRef((props, ref) => {
159
455
  },
160
456
  [ref]
161
457
  );
458
+ React.useEffect(() => {
459
+ const onFsChange = () => {
460
+ setIsFullscreen(document.fullscreenElement === containerRef.current);
461
+ };
462
+ document.addEventListener("fullscreenchange", onFsChange);
463
+ return () => document.removeEventListener("fullscreenchange", onFsChange);
464
+ }, []);
465
+ React.useEffect(() => {
466
+ const v = videoRef.current;
467
+ if (!v) return;
468
+ const onEnter = () => setIsPip(true);
469
+ const onLeave = () => setIsPip(false);
470
+ v.addEventListener("enterpictureinpicture", onEnter);
471
+ v.addEventListener("leavepictureinpicture", onLeave);
472
+ return () => {
473
+ v.removeEventListener("enterpictureinpicture", onEnter);
474
+ v.removeEventListener("leavepictureinpicture", onLeave);
475
+ };
476
+ }, []);
162
477
  const handlePlay = (e) => {
163
478
  setIsPlaying(true);
164
479
  onPlay?.(e);
@@ -167,50 +482,278 @@ var Video = React.forwardRef((props, ref) => {
167
482
  setIsPlaying(false);
168
483
  onPause?.(e);
169
484
  };
170
- const handleLoadedData = () => {
485
+ const handleLoadedMetadata = (e) => {
486
+ const v = e.currentTarget;
487
+ setDuration(v.duration);
171
488
  setIsLoaded(true);
489
+ onLoadedMetadata?.(e);
490
+ };
491
+ const handleTimeUpdate = (e) => {
492
+ const v = e.currentTarget;
493
+ setCurrentTime(v.currentTime);
494
+ if (v.buffered.length > 0) {
495
+ setBuffered(v.buffered.end(v.buffered.length - 1));
496
+ }
497
+ onTimeUpdate?.(e);
498
+ };
499
+ const handleVolumeChange = (e) => {
500
+ const v = e.currentTarget;
501
+ setVolume(v.volume);
502
+ setIsMuted(v.muted);
503
+ onVolumeChange?.(e);
504
+ };
505
+ const handleRateChange = (e) => {
506
+ setPlaybackRate(e.currentTarget.playbackRate);
507
+ onRateChange?.(e);
172
508
  };
173
509
  const togglePlay = () => {
174
- if (!videoRef.current) return;
175
- if (isPlaying) {
176
- videoRef.current.pause();
510
+ const v = videoRef.current;
511
+ if (!v) return;
512
+ if (v.paused) v.play();
513
+ else v.pause();
514
+ };
515
+ const toggleMute = () => {
516
+ const v = videoRef.current;
517
+ if (!v) return;
518
+ v.muted = !v.muted;
519
+ };
520
+ const toggleFullscreen = () => {
521
+ const el = containerRef.current;
522
+ if (!el) return;
523
+ if (document.fullscreenElement === el) {
524
+ document.exitFullscreen();
177
525
  } else {
178
- videoRef.current.play();
526
+ el.requestFullscreen?.();
179
527
  }
180
528
  };
181
- return /* @__PURE__ */ jsxs24("div", { className: "lib-xplat-video custom-overlay", children: [
182
- /* @__PURE__ */ jsx29(
183
- "video",
184
- {
185
- ref: setRefs,
186
- src,
187
- poster,
188
- autoPlay,
189
- muted,
190
- loop,
191
- playsInline: playsInline ?? true,
192
- onPlay: handlePlay,
193
- onPause: handlePause,
194
- onLoadedData: handleLoadedData,
195
- onClick: togglePlay,
196
- ...rest
529
+ const togglePip = async () => {
530
+ const v = videoRef.current;
531
+ if (!v) return;
532
+ try {
533
+ if (document.pictureInPictureElement === v) {
534
+ await document.exitPictureInPicture?.();
535
+ } else {
536
+ await v.requestPictureInPicture?.();
197
537
  }
198
- ),
199
- /* @__PURE__ */ jsx29(
200
- "button",
201
- {
202
- type: "button",
203
- className: clsx_default(
204
- "play-overlay",
205
- isPlaying && "is-playing",
206
- !isLoaded && "is-loading"
207
- ),
208
- onClick: togglePlay,
209
- "aria-label": isPlaying ? "\uC77C\uC2DC\uC815\uC9C0" : "\uC7AC\uC0DD",
210
- children: isPlaying ? /* @__PURE__ */ jsx29(PauseIcon_default, {}) : /* @__PURE__ */ jsx29("span", { className: "play-icon", children: /* @__PURE__ */ jsx29(PlayCircleIcon_default, {}) })
538
+ } catch {
539
+ }
540
+ };
541
+ const toggleCaptions = () => {
542
+ const v = videoRef.current;
543
+ if (!v) return;
544
+ const next = !captionsOn;
545
+ for (let i = 0; i < v.textTracks.length; i++) {
546
+ const t = v.textTracks[i];
547
+ if (t.kind === "captions" || t.kind === "subtitles") {
548
+ t.mode = next ? "showing" : "hidden";
211
549
  }
212
- )
213
- ] });
550
+ }
551
+ setCaptionsOn(next);
552
+ };
553
+ const selectRate = (rate) => {
554
+ const v = videoRef.current;
555
+ if (!v) return;
556
+ v.playbackRate = rate;
557
+ setRateMenuOpen(false);
558
+ };
559
+ const handleSeek = (e) => {
560
+ const v = videoRef.current;
561
+ if (!v) return;
562
+ const next = Number(e.target.value);
563
+ v.currentTime = next;
564
+ setCurrentTime(next);
565
+ };
566
+ const handleVolumeSlider = (e) => {
567
+ const v = videoRef.current;
568
+ if (!v) return;
569
+ const next = Number(e.target.value);
570
+ v.volume = next;
571
+ if (next > 0 && v.muted) v.muted = false;
572
+ if (next === 0) v.muted = true;
573
+ };
574
+ const progressPct = duration > 0 ? currentTime / duration * 100 : 0;
575
+ const bufferedPct = duration > 0 ? buffered / duration * 100 : 0;
576
+ const volumePct = (isMuted ? 0 : volume) * 100;
577
+ const VolumeGlyph = isMuted || volume === 0 ? VolumeXIcon_default : volume < 0.5 ? VolumeIcon_default : Volume2Icon_default;
578
+ const pipSupported = typeof document !== "undefined" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled;
579
+ return /* @__PURE__ */ jsxs59(
580
+ "div",
581
+ {
582
+ ref: containerRef,
583
+ className: clsx_default("lib-xplat-video", showControls && "has-controls"),
584
+ children: [
585
+ /* @__PURE__ */ jsx78(
586
+ "video",
587
+ {
588
+ ref: setRefs,
589
+ src,
590
+ poster,
591
+ autoPlay,
592
+ muted,
593
+ loop,
594
+ playsInline: playsInline ?? true,
595
+ onPlay: handlePlay,
596
+ onPause: handlePause,
597
+ onLoadedMetadata: handleLoadedMetadata,
598
+ onTimeUpdate: handleTimeUpdate,
599
+ onVolumeChange: handleVolumeChange,
600
+ onRateChange: handleRateChange,
601
+ onClick: togglePlay,
602
+ ...rest,
603
+ children
604
+ }
605
+ ),
606
+ showCenterPlay && /* @__PURE__ */ jsx78(
607
+ "button",
608
+ {
609
+ type: "button",
610
+ className: clsx_default(
611
+ "center-play",
612
+ isPlaying && "is-playing",
613
+ !isLoaded && "is-loading"
614
+ ),
615
+ onClick: togglePlay,
616
+ "aria-label": isPlaying ? "\uC77C\uC2DC\uC815\uC9C0" : "\uC7AC\uC0DD",
617
+ tabIndex: -1,
618
+ children: /* @__PURE__ */ jsx78("span", { className: "center-play-icon", children: /* @__PURE__ */ jsx78(PlayCircleIcon_default, {}) })
619
+ }
620
+ ),
621
+ showControls && /* @__PURE__ */ jsxs59("div", { className: "controls", onClick: (e) => e.stopPropagation(), children: [
622
+ /* @__PURE__ */ jsx78(
623
+ "input",
624
+ {
625
+ type: "range",
626
+ className: "seekbar",
627
+ min: 0,
628
+ max: duration || 0,
629
+ step: 0.1,
630
+ value: currentTime,
631
+ onChange: handleSeek,
632
+ "aria-label": "\uC7AC\uC0DD \uC704\uCE58",
633
+ style: {
634
+ ["--progress"]: `${progressPct}%`,
635
+ ["--buffered"]: `${bufferedPct}%`
636
+ }
637
+ }
638
+ ),
639
+ /* @__PURE__ */ jsxs59("div", { className: "controls-row", children: [
640
+ /* @__PURE__ */ jsx78(
641
+ "button",
642
+ {
643
+ type: "button",
644
+ className: "control-btn",
645
+ onClick: togglePlay,
646
+ "aria-label": isPlaying ? "\uC77C\uC2DC\uC815\uC9C0" : "\uC7AC\uC0DD",
647
+ children: isPlaying ? /* @__PURE__ */ jsx78(PauseIcon_default, {}) : /* @__PURE__ */ jsx78(PlayIcon_default, {})
648
+ }
649
+ ),
650
+ /* @__PURE__ */ jsxs59("div", { className: "volume-group", children: [
651
+ /* @__PURE__ */ jsx78(
652
+ "button",
653
+ {
654
+ type: "button",
655
+ className: "control-btn",
656
+ onClick: toggleMute,
657
+ "aria-label": isMuted ? "\uC74C\uC18C\uAC70 \uD574\uC81C" : "\uC74C\uC18C\uAC70",
658
+ children: /* @__PURE__ */ jsx78(VolumeGlyph, {})
659
+ }
660
+ ),
661
+ /* @__PURE__ */ jsx78(
662
+ "input",
663
+ {
664
+ type: "range",
665
+ className: "volume-slider",
666
+ min: 0,
667
+ max: 1,
668
+ step: 0.05,
669
+ value: isMuted ? 0 : volume,
670
+ onChange: handleVolumeSlider,
671
+ "aria-label": "\uBCFC\uB968",
672
+ style: { ["--volume"]: `${volumePct}%` }
673
+ }
674
+ )
675
+ ] }),
676
+ /* @__PURE__ */ jsxs59("span", { className: "time", children: [
677
+ formatTime(currentTime),
678
+ " / ",
679
+ formatTime(duration)
680
+ ] }),
681
+ /* @__PURE__ */ jsx78("div", { className: "controls-spacer" }),
682
+ playbackRates && playbackRates.length > 0 && /* @__PURE__ */ jsxs59("div", { className: clsx_default("rate-group", rateMenuOpen && "is-open"), children: [
683
+ /* @__PURE__ */ jsxs59(
684
+ "button",
685
+ {
686
+ type: "button",
687
+ className: "control-btn rate-btn",
688
+ onClick: () => setRateMenuOpen((o) => !o),
689
+ "aria-label": "\uC7AC\uC0DD \uC18D\uB3C4",
690
+ "aria-expanded": rateMenuOpen,
691
+ children: [
692
+ playbackRate,
693
+ "x"
694
+ ]
695
+ }
696
+ ),
697
+ rateMenuOpen && /* @__PURE__ */ jsx78("ul", { className: "rate-menu", role: "menu", children: playbackRates.map((r2) => /* @__PURE__ */ jsx78("li", { children: /* @__PURE__ */ jsxs59(
698
+ "button",
699
+ {
700
+ type: "button",
701
+ role: "menuitem",
702
+ className: clsx_default("rate-item", r2 === playbackRate && "is-active"),
703
+ onClick: () => selectRate(r2),
704
+ children: [
705
+ r2,
706
+ "x"
707
+ ]
708
+ }
709
+ ) }, r2)) })
710
+ ] }),
711
+ showCaptions && /* @__PURE__ */ jsx78(
712
+ "button",
713
+ {
714
+ type: "button",
715
+ className: clsx_default("control-btn", captionsOn && "is-active"),
716
+ onClick: toggleCaptions,
717
+ "aria-label": captionsOn ? "\uC790\uB9C9 \uB044\uAE30" : "\uC790\uB9C9 \uCF1C\uAE30",
718
+ "aria-pressed": captionsOn,
719
+ children: /* @__PURE__ */ jsx78(TypeIcon_default, {})
720
+ }
721
+ ),
722
+ showPip && pipSupported && /* @__PURE__ */ jsx78(
723
+ "button",
724
+ {
725
+ type: "button",
726
+ className: clsx_default("control-btn", isPip && "is-active"),
727
+ onClick: togglePip,
728
+ "aria-label": isPip ? "PIP \uC885\uB8CC" : "PIP",
729
+ children: /* @__PURE__ */ jsx78(PipIcon, {})
730
+ }
731
+ ),
732
+ showDownload && /* @__PURE__ */ jsx78(
733
+ "a",
734
+ {
735
+ className: "control-btn",
736
+ href: src,
737
+ download: downloadFileName ?? true,
738
+ "aria-label": "\uB2E4\uC6B4\uB85C\uB4DC",
739
+ children: /* @__PURE__ */ jsx78(DownloadIcon_default, {})
740
+ }
741
+ ),
742
+ /* @__PURE__ */ jsx78(
743
+ "button",
744
+ {
745
+ type: "button",
746
+ className: "control-btn",
747
+ onClick: toggleFullscreen,
748
+ "aria-label": isFullscreen ? "\uC804\uCCB4\uD654\uBA74 \uC885\uB8CC" : "\uC804\uCCB4\uD654\uBA74",
749
+ children: isFullscreen ? /* @__PURE__ */ jsx78(MinimizeIcon_default, {}) : /* @__PURE__ */ jsx78(MaximizeIcon_default, {})
750
+ }
751
+ )
752
+ ] })
753
+ ] })
754
+ ]
755
+ }
756
+ );
214
757
  });
215
758
  Video.displayName = "Video";
216
759
  var Video_default = Video;