@bysages/svelte 0.2.1 → 0.2.2

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.
@@ -0,0 +1,946 @@
1
+ import "svelte/internal/disclose-version";
2
+ import * as $ from "svelte/internal/client";
3
+ import { getContext, setContext, tick } from "svelte";
4
+ import { Combobox } from "@ark-ui/svelte/combobox";
5
+ import { AngleSlider } from "@ark-ui/svelte/angle-slider";
6
+ import { DatePicker } from "@ark-ui/svelte/date-picker";
7
+ import { Checkbox } from "@ark-ui/svelte/checkbox";
8
+ import { Clipboard } from "@ark-ui/svelte/clipboard";
9
+ import { ColorPicker } from "@ark-ui/svelte/color-picker";
10
+ import { DateInput } from "@ark-ui/svelte/date-input";
11
+ import { Editable } from "@ark-ui/svelte/editable";
12
+ import { FileUpload } from "@ark-ui/svelte/file-upload";
13
+ import { Listbox } from "@ark-ui/svelte/listbox";
14
+ import { Menu } from "@ark-ui/svelte/menu";
15
+ import { NumberInput } from "@ark-ui/svelte/number-input";
16
+ import { Pagination } from "@ark-ui/svelte/pagination";
17
+ import { PasswordInput } from "@ark-ui/svelte/password-input";
18
+ import { PinInput } from "@ark-ui/svelte/pin-input";
19
+ import { Progress } from "@ark-ui/svelte/progress";
20
+ import { RadioGroup } from "@ark-ui/svelte/radio-group";
21
+ import { RatingGroup } from "@ark-ui/svelte/rating-group";
22
+ import { SegmentGroup } from "@ark-ui/svelte/segment-group";
23
+ import { Select } from "@ark-ui/svelte/select";
24
+ import { Slider } from "@ark-ui/svelte/slider";
25
+ import { Steps } from "@ark-ui/svelte/steps";
26
+ import { Switch } from "@ark-ui/svelte/switch";
27
+ import { Tabs } from "@ark-ui/svelte/tabs";
28
+ import { TagsInput } from "@ark-ui/svelte/tags-input";
29
+ import { ToggleGroup } from "@ark-ui/svelte/toggle-group";
30
+ import { TreeView } from "@ark-ui/svelte/tree-view";
31
+ //#region src/components/mentions/use-mentions.svelte
32
+ function useMentions(options, textarea, handlers) {
33
+ const state = $.proxy({
34
+ open: false,
35
+ matches: [],
36
+ active: 0
37
+ });
38
+ let anchorIndex = 0;
39
+ let caretIndex = 0;
40
+ function closePopup() {
41
+ state.open = false;
42
+ state.matches = [];
43
+ }
44
+ function detect() {
45
+ const text = handlers.getText();
46
+ const caret = textarea()?.selectionStart ?? text.length;
47
+ caretIndex = caret;
48
+ const head = text.slice(0, caret);
49
+ const char = options().trigger ?? "@";
50
+ const anchor = head.lastIndexOf(char);
51
+ const token = anchor === -1 ? "" : head.slice(anchor + char.length);
52
+ if (anchor === -1 || /\s/.test(token)) {
53
+ closePopup();
54
+ return;
55
+ }
56
+ const found = options().items.filter((entry) => entry.label.toLowerCase().startsWith(token.toLowerCase()));
57
+ state.matches = found;
58
+ state.active = 0;
59
+ anchorIndex = anchor;
60
+ state.open = found.length > 0;
61
+ }
62
+ async function insert(entry) {
63
+ const text = handlers.getText();
64
+ const char = options().trigger ?? "@";
65
+ const next = text.slice(0, anchorIndex) + char + entry.label + " " + text.slice(caretIndex);
66
+ handlers.setText(next);
67
+ closePopup();
68
+ await tick();
69
+ const el = textarea();
70
+ if (!el) return;
71
+ const caret = anchorIndex + char.length + entry.label.length + 1;
72
+ el.focus();
73
+ el.setSelectionRange(caret, caret);
74
+ }
75
+ /** Feed the field's input events through here — the vessel watches
76
+ * the text as it lands, from the element itself. */
77
+ function onInput() {
78
+ detect();
79
+ }
80
+ /** Arrows move, Enter inserts, Escape dismisses. Answers `true` when
81
+ * the vessel consumed the key. */
82
+ function onKeydown(event) {
83
+ if (!state.open || state.matches.length === 0) return false;
84
+ if (event.key === "ArrowDown") {
85
+ event.preventDefault();
86
+ state.active = (state.active + 1) % state.matches.length;
87
+ } else if (event.key === "ArrowUp") {
88
+ event.preventDefault();
89
+ state.active = (state.active - 1 + state.matches.length) % state.matches.length;
90
+ } else if (event.key === "Enter") {
91
+ event.preventDefault();
92
+ insert(state.matches[state.active]);
93
+ } else if (event.key === "Escape") closePopup();
94
+ else return false;
95
+ return true;
96
+ }
97
+ return {
98
+ get open() {
99
+ return state.open;
100
+ },
101
+ set open(value) {
102
+ state.open = value;
103
+ },
104
+ get matches() {
105
+ return state.matches;
106
+ },
107
+ get active() {
108
+ return state.active;
109
+ },
110
+ set active(value) {
111
+ state.active = value;
112
+ },
113
+ insert,
114
+ close: closePopup,
115
+ onInput,
116
+ onKeydown
117
+ };
118
+ }
119
+ //#endregion
120
+ //#region src/components/angle-slider/AngleSliderRoot.svelte
121
+ var rest_excludes$27 = /* @__PURE__ */ new Set([
122
+ "$$slots",
123
+ "$$events",
124
+ "$$legacy",
125
+ "size",
126
+ "children"
127
+ ]);
128
+ function AngleSliderRoot($$anchor, $$props) {
129
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$27);
130
+ var fragment = $.comment();
131
+ var node = $.first_child(fragment);
132
+ $.component(node, () => AngleSlider.Root, ($$anchor, ArkAngleSlider_Root) => {
133
+ ArkAngleSlider_Root($$anchor, $.spread_props(() => rest, {
134
+ get "data-size"() {
135
+ return size();
136
+ },
137
+ children: ($$anchor, $$slotProps) => {
138
+ var fragment_1 = $.comment();
139
+ var node_1 = $.first_child(fragment_1);
140
+ $.snippet(node_1, () => $$props.children ?? $.noop);
141
+ $.append($$anchor, fragment_1);
142
+ },
143
+ $$slots: { default: true }
144
+ }));
145
+ });
146
+ $.append($$anchor, fragment);
147
+ }
148
+ //#endregion
149
+ //#region src/components/checkbox/CheckboxRoot.svelte
150
+ var rest_excludes$26 = /* @__PURE__ */ new Set([
151
+ "$$slots",
152
+ "$$events",
153
+ "$$legacy",
154
+ "size",
155
+ "children"
156
+ ]);
157
+ function CheckboxRoot($$anchor, $$props) {
158
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$26);
159
+ var fragment = $.comment();
160
+ var node = $.first_child(fragment);
161
+ $.component(node, () => Checkbox.Root, ($$anchor, ArkCheckbox_Root) => {
162
+ ArkCheckbox_Root($$anchor, $.spread_props(() => rest, {
163
+ get "data-size"() {
164
+ return size();
165
+ },
166
+ children: ($$anchor, $$slotProps) => {
167
+ var fragment_1 = $.comment();
168
+ var node_1 = $.first_child(fragment_1);
169
+ $.snippet(node_1, () => $$props.children ?? $.noop);
170
+ $.append($$anchor, fragment_1);
171
+ },
172
+ $$slots: { default: true }
173
+ }));
174
+ });
175
+ $.append($$anchor, fragment);
176
+ }
177
+ //#endregion
178
+ //#region src/components/clipboard/ClipboardRoot.svelte
179
+ var rest_excludes$25 = /* @__PURE__ */ new Set([
180
+ "$$slots",
181
+ "$$events",
182
+ "$$legacy",
183
+ "size",
184
+ "children"
185
+ ]);
186
+ function ClipboardRoot($$anchor, $$props) {
187
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$25);
188
+ var fragment = $.comment();
189
+ var node = $.first_child(fragment);
190
+ $.component(node, () => Clipboard.Root, ($$anchor, ArkClipboard_Root) => {
191
+ ArkClipboard_Root($$anchor, $.spread_props(() => rest, {
192
+ get "data-size"() {
193
+ return size();
194
+ },
195
+ children: ($$anchor, $$slotProps) => {
196
+ var fragment_1 = $.comment();
197
+ var node_1 = $.first_child(fragment_1);
198
+ $.snippet(node_1, () => $$props.children ?? $.noop);
199
+ $.append($$anchor, fragment_1);
200
+ },
201
+ $$slots: { default: true }
202
+ }));
203
+ });
204
+ $.append($$anchor, fragment);
205
+ }
206
+ //#endregion
207
+ //#region src/components/color-picker/ColorPickerRoot.svelte
208
+ var rest_excludes$24 = /* @__PURE__ */ new Set([
209
+ "$$slots",
210
+ "$$events",
211
+ "$$legacy",
212
+ "size",
213
+ "children"
214
+ ]);
215
+ function ColorPickerRoot($$anchor, $$props) {
216
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$24);
217
+ var fragment = $.comment();
218
+ var node = $.first_child(fragment);
219
+ $.component(node, () => ColorPicker.Root, ($$anchor, ArkColorPicker_Root) => {
220
+ ArkColorPicker_Root($$anchor, $.spread_props(() => rest, {
221
+ get "data-size"() {
222
+ return size();
223
+ },
224
+ children: ($$anchor, $$slotProps) => {
225
+ var fragment_1 = $.comment();
226
+ var node_1 = $.first_child(fragment_1);
227
+ $.snippet(node_1, () => $$props.children ?? $.noop);
228
+ $.append($$anchor, fragment_1);
229
+ },
230
+ $$slots: { default: true }
231
+ }));
232
+ });
233
+ $.append($$anchor, fragment);
234
+ }
235
+ //#endregion
236
+ //#region src/components/combobox/ComboboxRoot.svelte
237
+ var rest_excludes$23 = /* @__PURE__ */ new Set([
238
+ "$$slots",
239
+ "$$events",
240
+ "$$legacy",
241
+ "size",
242
+ "children"
243
+ ]);
244
+ function ComboboxRoot($$anchor, $$props) {
245
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$23);
246
+ var fragment = $.comment();
247
+ var node = $.first_child(fragment);
248
+ $.component(node, () => Combobox.Root, ($$anchor, ArkCombobox_Root) => {
249
+ ArkCombobox_Root($$anchor, $.spread_props(() => rest, {
250
+ get "data-size"() {
251
+ return size();
252
+ },
253
+ children: ($$anchor, $$slotProps) => {
254
+ var fragment_1 = $.comment();
255
+ var node_1 = $.first_child(fragment_1);
256
+ $.snippet(node_1, () => $$props.children ?? $.noop);
257
+ $.append($$anchor, fragment_1);
258
+ },
259
+ $$slots: { default: true }
260
+ }));
261
+ });
262
+ $.append($$anchor, fragment);
263
+ }
264
+ //#endregion
265
+ //#region src/components/date-input/DateInputRoot.svelte
266
+ var rest_excludes$22 = /* @__PURE__ */ new Set([
267
+ "$$slots",
268
+ "$$events",
269
+ "$$legacy",
270
+ "size",
271
+ "children"
272
+ ]);
273
+ function DateInputRoot($$anchor, $$props) {
274
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$22);
275
+ var fragment = $.comment();
276
+ var node = $.first_child(fragment);
277
+ $.component(node, () => DateInput.Root, ($$anchor, ArkDateInput_Root) => {
278
+ ArkDateInput_Root($$anchor, $.spread_props(() => rest, {
279
+ get "data-size"() {
280
+ return size();
281
+ },
282
+ children: ($$anchor, $$slotProps) => {
283
+ var fragment_1 = $.comment();
284
+ var node_1 = $.first_child(fragment_1);
285
+ $.snippet(node_1, () => $$props.children ?? $.noop);
286
+ $.append($$anchor, fragment_1);
287
+ },
288
+ $$slots: { default: true }
289
+ }));
290
+ });
291
+ $.append($$anchor, fragment);
292
+ }
293
+ //#endregion
294
+ //#region src/components/date-picker/DatePickerRoot.svelte
295
+ var rest_excludes$21 = /* @__PURE__ */ new Set([
296
+ "$$slots",
297
+ "$$events",
298
+ "$$legacy",
299
+ "size",
300
+ "children"
301
+ ]);
302
+ function DatePickerRoot($$anchor, $$props) {
303
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$21);
304
+ var fragment = $.comment();
305
+ var node = $.first_child(fragment);
306
+ $.component(node, () => DatePicker.Root, ($$anchor, ArkDatePicker_Root) => {
307
+ ArkDatePicker_Root($$anchor, $.spread_props(() => rest, {
308
+ get "data-size"() {
309
+ return size();
310
+ },
311
+ children: ($$anchor, $$slotProps) => {
312
+ var fragment_1 = $.comment();
313
+ var node_1 = $.first_child(fragment_1);
314
+ $.snippet(node_1, () => $$props.children ?? $.noop);
315
+ $.append($$anchor, fragment_1);
316
+ },
317
+ $$slots: { default: true }
318
+ }));
319
+ });
320
+ $.append($$anchor, fragment);
321
+ }
322
+ //#endregion
323
+ //#region src/components/editable/EditableRoot.svelte
324
+ var rest_excludes$20 = /* @__PURE__ */ new Set([
325
+ "$$slots",
326
+ "$$events",
327
+ "$$legacy",
328
+ "size",
329
+ "children"
330
+ ]);
331
+ function EditableRoot($$anchor, $$props) {
332
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$20);
333
+ var fragment = $.comment();
334
+ var node = $.first_child(fragment);
335
+ $.component(node, () => Editable.Root, ($$anchor, ArkEditable_Root) => {
336
+ ArkEditable_Root($$anchor, $.spread_props(() => rest, {
337
+ get "data-size"() {
338
+ return size();
339
+ },
340
+ children: ($$anchor, $$slotProps) => {
341
+ var fragment_1 = $.comment();
342
+ var node_1 = $.first_child(fragment_1);
343
+ $.snippet(node_1, () => $$props.children ?? $.noop);
344
+ $.append($$anchor, fragment_1);
345
+ },
346
+ $$slots: { default: true }
347
+ }));
348
+ });
349
+ $.append($$anchor, fragment);
350
+ }
351
+ //#endregion
352
+ //#region src/components/file-upload/FileUploadRoot.svelte
353
+ var rest_excludes$19 = /* @__PURE__ */ new Set([
354
+ "$$slots",
355
+ "$$events",
356
+ "$$legacy",
357
+ "size",
358
+ "children"
359
+ ]);
360
+ function FileUploadRoot($$anchor, $$props) {
361
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$19);
362
+ var fragment = $.comment();
363
+ var node = $.first_child(fragment);
364
+ $.component(node, () => FileUpload.Root, ($$anchor, ArkFileUpload_Root) => {
365
+ ArkFileUpload_Root($$anchor, $.spread_props(() => rest, {
366
+ get "data-size"() {
367
+ return size();
368
+ },
369
+ children: ($$anchor, $$slotProps) => {
370
+ var fragment_1 = $.comment();
371
+ var node_1 = $.first_child(fragment_1);
372
+ $.snippet(node_1, () => $$props.children ?? $.noop);
373
+ $.append($$anchor, fragment_1);
374
+ },
375
+ $$slots: { default: true }
376
+ }));
377
+ });
378
+ $.append($$anchor, fragment);
379
+ }
380
+ //#endregion
381
+ //#region src/components/listbox/ListboxRoot.svelte
382
+ var rest_excludes$18 = /* @__PURE__ */ new Set([
383
+ "$$slots",
384
+ "$$events",
385
+ "$$legacy",
386
+ "size",
387
+ "children"
388
+ ]);
389
+ function ListboxRoot($$anchor, $$props) {
390
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$18);
391
+ var fragment = $.comment();
392
+ var node = $.first_child(fragment);
393
+ $.component(node, () => Listbox.Root, ($$anchor, ArkListbox_Root) => {
394
+ ArkListbox_Root($$anchor, $.spread_props(() => rest, {
395
+ get "data-size"() {
396
+ return size();
397
+ },
398
+ children: ($$anchor, $$slotProps) => {
399
+ var fragment_1 = $.comment();
400
+ var node_1 = $.first_child(fragment_1);
401
+ $.snippet(node_1, () => $$props.children ?? $.noop);
402
+ $.append($$anchor, fragment_1);
403
+ },
404
+ $$slots: { default: true }
405
+ }));
406
+ });
407
+ $.append($$anchor, fragment);
408
+ }
409
+ //#endregion
410
+ //#region src/components/menu/context.ts
411
+ /** The row rung rides the context because Ark's Root renders no DOM of
412
+ * its own — the vessel (Content) is the element the rung can land on,
413
+ * and the Portal breaks CSS ancestry between the two. */
414
+ const MENU_SIZE_KEY = Symbol("menu-size");
415
+ //#endregion
416
+ //#region src/components/menu/MenuContent.svelte
417
+ var rest_excludes$17 = /* @__PURE__ */ new Set([
418
+ "$$slots",
419
+ "$$events",
420
+ "$$legacy",
421
+ "children"
422
+ ]);
423
+ function MenuContent($$anchor, $$props) {
424
+ $.push($$props, true);
425
+ const size = getContext(MENU_SIZE_KEY, () => () => "md");
426
+ let rest = $.rest_props($$props, rest_excludes$17);
427
+ var fragment = $.comment();
428
+ var node = $.first_child(fragment);
429
+ {
430
+ let $0 = $.derived(size);
431
+ $.component(node, () => Menu.Content, ($$anchor, ArkMenu_Content) => {
432
+ ArkMenu_Content($$anchor, $.spread_props(() => rest, {
433
+ get "data-size"() {
434
+ return $.get($0);
435
+ },
436
+ children: ($$anchor, $$slotProps) => {
437
+ var fragment_1 = $.comment();
438
+ var node_1 = $.first_child(fragment_1);
439
+ $.snippet(node_1, () => $$props.children ?? $.noop);
440
+ $.append($$anchor, fragment_1);
441
+ },
442
+ $$slots: { default: true }
443
+ }));
444
+ });
445
+ }
446
+ $.append($$anchor, fragment);
447
+ $.pop();
448
+ }
449
+ //#endregion
450
+ //#region src/components/menu/MenuRoot.svelte
451
+ var rest_excludes$16 = /* @__PURE__ */ new Set([
452
+ "$$slots",
453
+ "$$events",
454
+ "$$legacy",
455
+ "size",
456
+ "children"
457
+ ]);
458
+ function MenuRoot($$anchor, $$props) {
459
+ $.push($$props, true);
460
+ /** The row rung rides the context because Ark's Root renders no DOM of
461
+ * its own — the vessel (Content) is the element the rung can land on,
462
+ * and the Portal breaks CSS ancestry between the two. */
463
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$16);
464
+ setContext(MENU_SIZE_KEY, () => size());
465
+ var fragment = $.comment();
466
+ var node = $.first_child(fragment);
467
+ $.component(node, () => Menu.Root, ($$anchor, ArkMenu_Root) => {
468
+ ArkMenu_Root($$anchor, $.spread_props(() => rest, {
469
+ children: ($$anchor, $$slotProps) => {
470
+ var fragment_1 = $.comment();
471
+ var node_1 = $.first_child(fragment_1);
472
+ $.snippet(node_1, () => $$props.children ?? $.noop);
473
+ $.append($$anchor, fragment_1);
474
+ },
475
+ $$slots: { default: true }
476
+ }));
477
+ });
478
+ $.append($$anchor, fragment);
479
+ $.pop();
480
+ }
481
+ //#endregion
482
+ //#region src/components/number-input/NumberInputRoot.svelte
483
+ var rest_excludes$15 = /* @__PURE__ */ new Set([
484
+ "$$slots",
485
+ "$$events",
486
+ "$$legacy",
487
+ "size",
488
+ "children"
489
+ ]);
490
+ function NumberInputRoot($$anchor, $$props) {
491
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$15);
492
+ var fragment = $.comment();
493
+ var node = $.first_child(fragment);
494
+ $.component(node, () => NumberInput.Root, ($$anchor, ArkNumberInput_Root) => {
495
+ ArkNumberInput_Root($$anchor, $.spread_props(() => rest, {
496
+ get "data-size"() {
497
+ return size();
498
+ },
499
+ children: ($$anchor, $$slotProps) => {
500
+ var fragment_1 = $.comment();
501
+ var node_1 = $.first_child(fragment_1);
502
+ $.snippet(node_1, () => $$props.children ?? $.noop);
503
+ $.append($$anchor, fragment_1);
504
+ },
505
+ $$slots: { default: true }
506
+ }));
507
+ });
508
+ $.append($$anchor, fragment);
509
+ }
510
+ //#endregion
511
+ //#region src/components/pagination/PaginationRoot.svelte
512
+ var rest_excludes$14 = /* @__PURE__ */ new Set([
513
+ "$$slots",
514
+ "$$events",
515
+ "$$legacy",
516
+ "size",
517
+ "children"
518
+ ]);
519
+ function PaginationRoot($$anchor, $$props) {
520
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$14);
521
+ var fragment = $.comment();
522
+ var node = $.first_child(fragment);
523
+ $.component(node, () => Pagination.Root, ($$anchor, ArkPagination_Root) => {
524
+ ArkPagination_Root($$anchor, $.spread_props(() => rest, {
525
+ get "data-size"() {
526
+ return size();
527
+ },
528
+ children: ($$anchor, $$slotProps) => {
529
+ var fragment_1 = $.comment();
530
+ var node_1 = $.first_child(fragment_1);
531
+ $.snippet(node_1, () => $$props.children ?? $.noop);
532
+ $.append($$anchor, fragment_1);
533
+ },
534
+ $$slots: { default: true }
535
+ }));
536
+ });
537
+ $.append($$anchor, fragment);
538
+ }
539
+ //#endregion
540
+ //#region src/components/password-input/PasswordInputRoot.svelte
541
+ var rest_excludes$13 = /* @__PURE__ */ new Set([
542
+ "$$slots",
543
+ "$$events",
544
+ "$$legacy",
545
+ "size",
546
+ "children"
547
+ ]);
548
+ function PasswordInputRoot($$anchor, $$props) {
549
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$13);
550
+ var fragment = $.comment();
551
+ var node = $.first_child(fragment);
552
+ $.component(node, () => PasswordInput.Root, ($$anchor, ArkPasswordInput_Root) => {
553
+ ArkPasswordInput_Root($$anchor, $.spread_props(() => rest, {
554
+ get "data-size"() {
555
+ return size();
556
+ },
557
+ children: ($$anchor, $$slotProps) => {
558
+ var fragment_1 = $.comment();
559
+ var node_1 = $.first_child(fragment_1);
560
+ $.snippet(node_1, () => $$props.children ?? $.noop);
561
+ $.append($$anchor, fragment_1);
562
+ },
563
+ $$slots: { default: true }
564
+ }));
565
+ });
566
+ $.append($$anchor, fragment);
567
+ }
568
+ //#endregion
569
+ //#region src/components/pin-input/PinInputRoot.svelte
570
+ var rest_excludes$12 = /* @__PURE__ */ new Set([
571
+ "$$slots",
572
+ "$$events",
573
+ "$$legacy",
574
+ "size",
575
+ "children"
576
+ ]);
577
+ function PinInputRoot($$anchor, $$props) {
578
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$12);
579
+ var fragment = $.comment();
580
+ var node = $.first_child(fragment);
581
+ $.component(node, () => PinInput.Root, ($$anchor, ArkPinInput_Root) => {
582
+ ArkPinInput_Root($$anchor, $.spread_props(() => rest, {
583
+ get "data-size"() {
584
+ return size();
585
+ },
586
+ children: ($$anchor, $$slotProps) => {
587
+ var fragment_1 = $.comment();
588
+ var node_1 = $.first_child(fragment_1);
589
+ $.snippet(node_1, () => $$props.children ?? $.noop);
590
+ $.append($$anchor, fragment_1);
591
+ },
592
+ $$slots: { default: true }
593
+ }));
594
+ });
595
+ $.append($$anchor, fragment);
596
+ }
597
+ //#endregion
598
+ //#region src/components/progress/ProgressRoot.svelte
599
+ var rest_excludes$11 = /* @__PURE__ */ new Set([
600
+ "$$slots",
601
+ "$$events",
602
+ "$$legacy",
603
+ "size",
604
+ "children"
605
+ ]);
606
+ function ProgressRoot($$anchor, $$props) {
607
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$11);
608
+ var fragment = $.comment();
609
+ var node = $.first_child(fragment);
610
+ $.component(node, () => Progress.Root, ($$anchor, ArkProgress_Root) => {
611
+ ArkProgress_Root($$anchor, $.spread_props(() => rest, {
612
+ get "data-size"() {
613
+ return size();
614
+ },
615
+ children: ($$anchor, $$slotProps) => {
616
+ var fragment_1 = $.comment();
617
+ var node_1 = $.first_child(fragment_1);
618
+ $.snippet(node_1, () => $$props.children ?? $.noop);
619
+ $.append($$anchor, fragment_1);
620
+ },
621
+ $$slots: { default: true }
622
+ }));
623
+ });
624
+ $.append($$anchor, fragment);
625
+ }
626
+ //#endregion
627
+ //#region src/components/radio-group/RadioGroupRoot.svelte
628
+ var rest_excludes$10 = /* @__PURE__ */ new Set([
629
+ "$$slots",
630
+ "$$events",
631
+ "$$legacy",
632
+ "size",
633
+ "children"
634
+ ]);
635
+ function RadioGroupRoot($$anchor, $$props) {
636
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$10);
637
+ var fragment = $.comment();
638
+ var node = $.first_child(fragment);
639
+ $.component(node, () => RadioGroup.Root, ($$anchor, ArkRadioGroup_Root) => {
640
+ ArkRadioGroup_Root($$anchor, $.spread_props(() => rest, {
641
+ get "data-size"() {
642
+ return size();
643
+ },
644
+ children: ($$anchor, $$slotProps) => {
645
+ var fragment_1 = $.comment();
646
+ var node_1 = $.first_child(fragment_1);
647
+ $.snippet(node_1, () => $$props.children ?? $.noop);
648
+ $.append($$anchor, fragment_1);
649
+ },
650
+ $$slots: { default: true }
651
+ }));
652
+ });
653
+ $.append($$anchor, fragment);
654
+ }
655
+ //#endregion
656
+ //#region src/components/rating-group/RatingGroupRoot.svelte
657
+ var rest_excludes$9 = /* @__PURE__ */ new Set([
658
+ "$$slots",
659
+ "$$events",
660
+ "$$legacy",
661
+ "size",
662
+ "children"
663
+ ]);
664
+ function RatingGroupRoot($$anchor, $$props) {
665
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$9);
666
+ var fragment = $.comment();
667
+ var node = $.first_child(fragment);
668
+ $.component(node, () => RatingGroup.Root, ($$anchor, ArkRatingGroup_Root) => {
669
+ ArkRatingGroup_Root($$anchor, $.spread_props(() => rest, {
670
+ get "data-size"() {
671
+ return size();
672
+ },
673
+ children: ($$anchor, $$slotProps) => {
674
+ var fragment_1 = $.comment();
675
+ var node_1 = $.first_child(fragment_1);
676
+ $.snippet(node_1, () => $$props.children ?? $.noop);
677
+ $.append($$anchor, fragment_1);
678
+ },
679
+ $$slots: { default: true }
680
+ }));
681
+ });
682
+ $.append($$anchor, fragment);
683
+ }
684
+ //#endregion
685
+ //#region src/components/segment-group/SegmentGroupRoot.svelte
686
+ var rest_excludes$8 = /* @__PURE__ */ new Set([
687
+ "$$slots",
688
+ "$$events",
689
+ "$$legacy",
690
+ "size",
691
+ "children"
692
+ ]);
693
+ function SegmentGroupRoot($$anchor, $$props) {
694
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$8);
695
+ var fragment = $.comment();
696
+ var node = $.first_child(fragment);
697
+ $.component(node, () => SegmentGroup.Root, ($$anchor, ArkSegmentGroup_Root) => {
698
+ ArkSegmentGroup_Root($$anchor, $.spread_props(() => rest, {
699
+ get "data-size"() {
700
+ return size();
701
+ },
702
+ children: ($$anchor, $$slotProps) => {
703
+ var fragment_1 = $.comment();
704
+ var node_1 = $.first_child(fragment_1);
705
+ $.snippet(node_1, () => $$props.children ?? $.noop);
706
+ $.append($$anchor, fragment_1);
707
+ },
708
+ $$slots: { default: true }
709
+ }));
710
+ });
711
+ $.append($$anchor, fragment);
712
+ }
713
+ //#endregion
714
+ //#region src/components/select/SelectRoot.svelte
715
+ var rest_excludes$7 = /* @__PURE__ */ new Set([
716
+ "$$slots",
717
+ "$$events",
718
+ "$$legacy",
719
+ "size",
720
+ "children"
721
+ ]);
722
+ function SelectRoot($$anchor, $$props) {
723
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$7);
724
+ var fragment = $.comment();
725
+ var node = $.first_child(fragment);
726
+ $.component(node, () => Select.Root, ($$anchor, ArkSelect_Root) => {
727
+ ArkSelect_Root($$anchor, $.spread_props(() => rest, {
728
+ get "data-size"() {
729
+ return size();
730
+ },
731
+ children: ($$anchor, $$slotProps) => {
732
+ var fragment_1 = $.comment();
733
+ var node_1 = $.first_child(fragment_1);
734
+ $.snippet(node_1, () => $$props.children ?? $.noop);
735
+ $.append($$anchor, fragment_1);
736
+ },
737
+ $$slots: { default: true }
738
+ }));
739
+ });
740
+ $.append($$anchor, fragment);
741
+ }
742
+ //#endregion
743
+ //#region src/components/slider/SliderRoot.svelte
744
+ var rest_excludes$6 = /* @__PURE__ */ new Set([
745
+ "$$slots",
746
+ "$$events",
747
+ "$$legacy",
748
+ "size",
749
+ "children"
750
+ ]);
751
+ function SliderRoot($$anchor, $$props) {
752
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$6);
753
+ var fragment = $.comment();
754
+ var node = $.first_child(fragment);
755
+ $.component(node, () => Slider.Root, ($$anchor, ArkSlider_Root) => {
756
+ ArkSlider_Root($$anchor, $.spread_props(() => rest, {
757
+ get "data-size"() {
758
+ return size();
759
+ },
760
+ children: ($$anchor, $$slotProps) => {
761
+ var fragment_1 = $.comment();
762
+ var node_1 = $.first_child(fragment_1);
763
+ $.snippet(node_1, () => $$props.children ?? $.noop);
764
+ $.append($$anchor, fragment_1);
765
+ },
766
+ $$slots: { default: true }
767
+ }));
768
+ });
769
+ $.append($$anchor, fragment);
770
+ }
771
+ //#endregion
772
+ //#region src/components/steps/StepsRoot.svelte
773
+ var rest_excludes$5 = /* @__PURE__ */ new Set([
774
+ "$$slots",
775
+ "$$events",
776
+ "$$legacy",
777
+ "size",
778
+ "children"
779
+ ]);
780
+ function StepsRoot($$anchor, $$props) {
781
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$5);
782
+ var fragment = $.comment();
783
+ var node = $.first_child(fragment);
784
+ $.component(node, () => Steps.Root, ($$anchor, ArkSteps_Root) => {
785
+ ArkSteps_Root($$anchor, $.spread_props(() => rest, {
786
+ get "data-size"() {
787
+ return size();
788
+ },
789
+ children: ($$anchor, $$slotProps) => {
790
+ var fragment_1 = $.comment();
791
+ var node_1 = $.first_child(fragment_1);
792
+ $.snippet(node_1, () => $$props.children ?? $.noop);
793
+ $.append($$anchor, fragment_1);
794
+ },
795
+ $$slots: { default: true }
796
+ }));
797
+ });
798
+ $.append($$anchor, fragment);
799
+ }
800
+ //#endregion
801
+ //#region src/components/switch/SwitchRoot.svelte
802
+ var rest_excludes$4 = /* @__PURE__ */ new Set([
803
+ "$$slots",
804
+ "$$events",
805
+ "$$legacy",
806
+ "size",
807
+ "children"
808
+ ]);
809
+ function SwitchRoot($$anchor, $$props) {
810
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$4);
811
+ var fragment = $.comment();
812
+ var node = $.first_child(fragment);
813
+ $.component(node, () => Switch.Root, ($$anchor, ArkSwitch_Root) => {
814
+ ArkSwitch_Root($$anchor, $.spread_props(() => rest, {
815
+ get "data-size"() {
816
+ return size();
817
+ },
818
+ children: ($$anchor, $$slotProps) => {
819
+ var fragment_1 = $.comment();
820
+ var node_1 = $.first_child(fragment_1);
821
+ $.snippet(node_1, () => $$props.children ?? $.noop);
822
+ $.append($$anchor, fragment_1);
823
+ },
824
+ $$slots: { default: true }
825
+ }));
826
+ });
827
+ $.append($$anchor, fragment);
828
+ }
829
+ //#endregion
830
+ //#region src/components/tabs/TabsRoot.svelte
831
+ var rest_excludes$3 = /* @__PURE__ */ new Set([
832
+ "$$slots",
833
+ "$$events",
834
+ "$$legacy",
835
+ "size",
836
+ "children"
837
+ ]);
838
+ function TabsRoot($$anchor, $$props) {
839
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$3);
840
+ var fragment = $.comment();
841
+ var node = $.first_child(fragment);
842
+ $.component(node, () => Tabs.Root, ($$anchor, ArkTabs_Root) => {
843
+ ArkTabs_Root($$anchor, $.spread_props(() => rest, {
844
+ get "data-size"() {
845
+ return size();
846
+ },
847
+ children: ($$anchor, $$slotProps) => {
848
+ var fragment_1 = $.comment();
849
+ var node_1 = $.first_child(fragment_1);
850
+ $.snippet(node_1, () => $$props.children ?? $.noop);
851
+ $.append($$anchor, fragment_1);
852
+ },
853
+ $$slots: { default: true }
854
+ }));
855
+ });
856
+ $.append($$anchor, fragment);
857
+ }
858
+ //#endregion
859
+ //#region src/components/tags-input/TagsInputRoot.svelte
860
+ var rest_excludes$2 = /* @__PURE__ */ new Set([
861
+ "$$slots",
862
+ "$$events",
863
+ "$$legacy",
864
+ "size",
865
+ "children"
866
+ ]);
867
+ function TagsInputRoot($$anchor, $$props) {
868
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$2);
869
+ var fragment = $.comment();
870
+ var node = $.first_child(fragment);
871
+ $.component(node, () => TagsInput.Root, ($$anchor, ArkTagsInput_Root) => {
872
+ ArkTagsInput_Root($$anchor, $.spread_props(() => rest, {
873
+ get "data-size"() {
874
+ return size();
875
+ },
876
+ children: ($$anchor, $$slotProps) => {
877
+ var fragment_1 = $.comment();
878
+ var node_1 = $.first_child(fragment_1);
879
+ $.snippet(node_1, () => $$props.children ?? $.noop);
880
+ $.append($$anchor, fragment_1);
881
+ },
882
+ $$slots: { default: true }
883
+ }));
884
+ });
885
+ $.append($$anchor, fragment);
886
+ }
887
+ //#endregion
888
+ //#region src/components/toggle-group/ToggleGroupRoot.svelte
889
+ var rest_excludes$1 = /* @__PURE__ */ new Set([
890
+ "$$slots",
891
+ "$$events",
892
+ "$$legacy",
893
+ "size",
894
+ "children"
895
+ ]);
896
+ function ToggleGroupRoot($$anchor, $$props) {
897
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes$1);
898
+ var fragment = $.comment();
899
+ var node = $.first_child(fragment);
900
+ $.component(node, () => ToggleGroup.Root, ($$anchor, ArkToggleGroup_Root) => {
901
+ ArkToggleGroup_Root($$anchor, $.spread_props(() => rest, {
902
+ get "data-size"() {
903
+ return size();
904
+ },
905
+ children: ($$anchor, $$slotProps) => {
906
+ var fragment_1 = $.comment();
907
+ var node_1 = $.first_child(fragment_1);
908
+ $.snippet(node_1, () => $$props.children ?? $.noop);
909
+ $.append($$anchor, fragment_1);
910
+ },
911
+ $$slots: { default: true }
912
+ }));
913
+ });
914
+ $.append($$anchor, fragment);
915
+ }
916
+ //#endregion
917
+ //#region src/components/tree-view/TreeViewRoot.svelte
918
+ var rest_excludes = /* @__PURE__ */ new Set([
919
+ "$$slots",
920
+ "$$events",
921
+ "$$legacy",
922
+ "size",
923
+ "children"
924
+ ]);
925
+ function TreeViewRoot($$anchor, $$props) {
926
+ let size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes);
927
+ var fragment = $.comment();
928
+ var node = $.first_child(fragment);
929
+ $.component(node, () => TreeView.Root, ($$anchor, ArkTreeView_Root) => {
930
+ ArkTreeView_Root($$anchor, $.spread_props(() => rest, {
931
+ get "data-size"() {
932
+ return size();
933
+ },
934
+ children: ($$anchor, $$slotProps) => {
935
+ var fragment_1 = $.comment();
936
+ var node_1 = $.first_child(fragment_1);
937
+ $.snippet(node_1, () => $$props.children ?? $.noop);
938
+ $.append($$anchor, fragment_1);
939
+ },
940
+ $$slots: { default: true }
941
+ }));
942
+ });
943
+ $.append($$anchor, fragment);
944
+ }
945
+ //#endregion
946
+ export { DateInputRoot as C, CheckboxRoot as D, ClipboardRoot as E, AngleSliderRoot as O, DatePickerRoot as S, ColorPickerRoot as T, MenuRoot as _, SwitchRoot as a, FileUploadRoot as b, SelectRoot as c, RadioGroupRoot as d, ProgressRoot as f, NumberInputRoot as g, PaginationRoot as h, TabsRoot as i, useMentions as k, SegmentGroupRoot as l, PasswordInputRoot as m, ToggleGroupRoot as n, StepsRoot as o, PinInputRoot as p, TagsInputRoot as r, SliderRoot as s, TreeViewRoot as t, RatingGroupRoot as u, MenuContent as v, ComboboxRoot as w, EditableRoot as x, ListboxRoot as y };