@equal-experts/kuat-vue 0.4.2 → 0.6.0

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.
Files changed (106) hide show
  1. package/README.md +60 -142
  2. package/dist/FieldSet.vue_vue_type_script_setup_true_lang-D9i4ciy0.js +119 -0
  3. package/dist/FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js +108 -0
  4. package/dist/KuatSelect.vue_vue_type_script_setup_true_lang-DP66U_wg.js +493 -0
  5. package/dist/Toggle.vue_vue_type_script_setup_true_lang-CZM1GrLQ.js +38 -0
  6. package/dist/accordion.js +7 -6
  7. package/dist/alert-dialog.js +13 -12
  8. package/dist/badge.js +4 -3
  9. package/dist/button-group.js +7 -6
  10. package/dist/button.js +4 -3
  11. package/dist/checkbox.d.ts +3 -0
  12. package/dist/checkbox.js +10 -0
  13. package/dist/components/ui/carousel/Carousel.vue.d.ts +52 -0
  14. package/dist/components/ui/carousel/CarouselContent.vue.d.ts +25 -0
  15. package/dist/components/ui/carousel/CarouselItem.vue.d.ts +27 -0
  16. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +16 -0
  17. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +16 -0
  18. package/dist/components/ui/carousel/context.d.ts +18 -0
  19. package/dist/components/ui/carousel/index.d.ts +7 -0
  20. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +13 -0
  21. package/dist/components/ui/checkbox/CheckboxField.vue.d.ts +68 -0
  22. package/dist/components/ui/checkbox/constants.d.ts +4 -0
  23. package/dist/components/ui/checkbox/index.d.ts +4 -0
  24. package/dist/components/ui/field/Field.vue.d.ts +48 -0
  25. package/dist/components/ui/field/FieldContent.vue.d.ts +26 -0
  26. package/dist/components/ui/field/FieldDescription.vue.d.ts +26 -0
  27. package/dist/components/ui/field/FieldError.vue.d.ts +33 -0
  28. package/dist/components/ui/field/FieldGroup.vue.d.ts +26 -0
  29. package/dist/components/ui/field/FieldLabel.vue.d.ts +26 -0
  30. package/dist/components/ui/field/FieldLegend.vue.d.ts +43 -0
  31. package/dist/components/ui/field/FieldSeparator.vue.d.ts +26 -0
  32. package/dist/components/ui/field/FieldSet.vue.d.ts +26 -0
  33. package/dist/components/ui/field/FieldTitle.vue.d.ts +26 -0
  34. package/dist/components/ui/field/constants.d.ts +4 -0
  35. package/dist/components/ui/field/index.d.ts +12 -0
  36. package/dist/components/ui/input/Input.vue.d.ts +34 -0
  37. package/dist/components/ui/input/constants.d.ts +2 -0
  38. package/dist/components/ui/input/index.d.ts +3 -0
  39. package/dist/components/ui/kuat-carousel/KuatCarousel.vue.d.ts +7 -3
  40. package/dist/components/ui/kuat-carousel/KuatCarouselItem.vue.d.ts +2 -0
  41. package/dist/components/ui/radio/RadioField.vue.d.ts +58 -0
  42. package/dist/components/ui/radio/RadioGroup.vue.d.ts +31 -0
  43. package/dist/components/ui/radio/RadioGroupItem.vue.d.ts +22 -0
  44. package/dist/components/ui/radio/constants.d.ts +4 -0
  45. package/dist/components/ui/radio/index.d.ts +5 -0
  46. package/dist/components/ui/select/KuatSelect.vue.d.ts +104 -0
  47. package/dist/components/ui/select/Select.vue.d.ts +28 -0
  48. package/dist/components/ui/select/SelectContent.vue.d.ts +52 -0
  49. package/dist/components/ui/select/SelectGroup.vue.d.ts +22 -0
  50. package/dist/components/ui/select/SelectItem.vue.d.ts +40 -0
  51. package/dist/components/ui/select/SelectLabel.vue.d.ts +27 -0
  52. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
  53. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
  54. package/dist/components/ui/select/SelectSeparator.vue.d.ts +18 -0
  55. package/dist/components/ui/select/SelectTrigger.vue.d.ts +72 -0
  56. package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
  57. package/dist/components/ui/select/constants.d.ts +18 -0
  58. package/dist/components/ui/select/index.d.ts +13 -0
  59. package/dist/components/ui/sonner/KuatSonner.vue.d.ts +54 -0
  60. package/dist/components/ui/sonner/KuatSonnerContent.vue.d.ts +53 -0
  61. package/dist/components/ui/sonner/constants.d.ts +2 -0
  62. package/dist/components/ui/sonner/index.d.ts +7 -0
  63. package/dist/components/ui/sonner/toast.d.ts +17 -0
  64. package/dist/components/ui/switch/Switch.vue.d.ts +13 -0
  65. package/dist/components/ui/switch/SwitchField.vue.d.ts +68 -0
  66. package/dist/components/ui/switch/constants.d.ts +4 -0
  67. package/dist/components/ui/switch/index.d.ts +4 -0
  68. package/dist/components/ui/textarea/Textarea.vue.d.ts +24 -0
  69. package/dist/components/ui/textarea/constants.d.ts +2 -0
  70. package/dist/components/ui/textarea/index.d.ts +3 -0
  71. package/dist/components/ui/toggle/Toggle.vue.d.ts +42 -0
  72. package/dist/components/ui/toggle/constants.d.ts +4 -0
  73. package/dist/components/ui/toggle/index.d.ts +3 -0
  74. package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +45 -0
  75. package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +49 -0
  76. package/dist/components/ui/toggle-group/constants.d.ts +2 -0
  77. package/dist/components/ui/toggle-group/index.d.ts +4 -0
  78. package/dist/constants-4SN0MW4f.js +61 -0
  79. package/dist/constants-BpzIL1jq.js +141 -0
  80. package/dist/constants-CXAkjttx.js +5 -0
  81. package/dist/constants-CpIWAssv.js +32 -0
  82. package/dist/constants-D_fYMnOg.js +154 -0
  83. package/dist/constants-Ils7NSfg.js +131 -0
  84. package/dist/field.d.ts +3 -0
  85. package/dist/field.js +19 -0
  86. package/dist/index.d.ts +22 -0
  87. package/dist/index.js +1291 -1119
  88. package/dist/input.d.ts +3 -0
  89. package/dist/input.js +8 -0
  90. package/dist/radio.d.ts +3 -0
  91. package/dist/radio.js +11 -0
  92. package/dist/select.d.ts +3 -0
  93. package/dist/select.js +19 -0
  94. package/dist/sonner.d.ts +1 -0
  95. package/dist/sonner.js +7 -0
  96. package/dist/style.css +1 -1
  97. package/dist/switch.d.ts +1 -0
  98. package/dist/switch.js +7 -0
  99. package/dist/textarea.d.ts +3 -0
  100. package/dist/textarea.js +8 -0
  101. package/dist/toast-LJYTMaV_.js +113 -0
  102. package/dist/toggle-group.d.ts +5 -0
  103. package/dist/toggle-group.js +71 -0
  104. package/dist/toggle.d.ts +3 -0
  105. package/dist/toggle.js +10 -0
  106. package/package.json +53 -12
@@ -0,0 +1,493 @@
1
+ import { defineComponent as f, createBlock as i, openBlock as l, unref as s, mergeProps as _, withCtx as n, renderSlot as u, createVNode as c, computed as z, createElementBlock as g, createCommentVNode as v, createElementVNode as I, createTextVNode as y, toDisplayString as h, useAttrs as T, normalizeClass as H, Fragment as k, renderList as P } from "vue";
2
+ import { c as m } from "./utils-DLUjLwnh.js";
3
+ import { useForwardPropsEmits as x, SelectRoot as L, SelectScrollDownButton as O, SelectScrollUpButton as N, SelectPortal as U, SelectContent as D, SelectViewport as F, SelectGroup as A, SelectItem as G, SelectItemText as q, SelectItemIndicator as j, SelectLabel as K, SelectSeparator as M, SelectTrigger as R, SelectIcon as W, SelectValue as Z } from "reka-ui";
4
+ import { ChevronDown as E, ChevronUp as J, Check as Q } from "lucide-vue-next";
5
+ import { r as S } from "./index-A7umpmtg.js";
6
+ const $e = ["regular", "large", "small", "mini"], Be = ["single", "double"];
7
+ function X(a) {
8
+ return "items" in a;
9
+ }
10
+ const Y = /* @__PURE__ */ f({
11
+ __name: "Select",
12
+ props: {
13
+ open: { type: Boolean },
14
+ defaultOpen: { type: Boolean },
15
+ defaultValue: {},
16
+ modelValue: {},
17
+ by: { type: [String, Function] },
18
+ dir: {},
19
+ multiple: { type: Boolean },
20
+ autocomplete: {},
21
+ disabled: { type: Boolean },
22
+ name: {},
23
+ required: { type: Boolean }
24
+ },
25
+ emits: ["update:modelValue", "update:open"],
26
+ setup(a, { emit: t }) {
27
+ const o = x(a, t);
28
+ return (d, B) => (l(), i(s(L), _({ "data-slot": "select" }, s(o)), {
29
+ default: n(() => [
30
+ u(d.$slots, "default")
31
+ ]),
32
+ _: 3
33
+ }, 16));
34
+ }
35
+ }), ee = /* @__PURE__ */ f({
36
+ __name: "SelectScrollDownButton",
37
+ props: {
38
+ asChild: { type: Boolean },
39
+ as: {},
40
+ class: {}
41
+ },
42
+ setup(a) {
43
+ const t = a, e = S(t, "class");
44
+ return (r, o) => (l(), i(s(O), _({ "data-slot": "select-scroll-down-button" }, s(e), {
45
+ class: s(m)("select-scroll-button", t.class)
46
+ }), {
47
+ default: n(() => [
48
+ c(s(E), {
49
+ class: "size-4",
50
+ "aria-hidden": "true"
51
+ })
52
+ ]),
53
+ _: 1
54
+ }, 16, ["class"]));
55
+ }
56
+ }), te = /* @__PURE__ */ f({
57
+ __name: "SelectScrollUpButton",
58
+ props: {
59
+ asChild: { type: Boolean },
60
+ as: {},
61
+ class: {}
62
+ },
63
+ setup(a) {
64
+ const t = a, e = S(t, "class");
65
+ return (r, o) => (l(), i(s(N), _({ "data-slot": "select-scroll-up-button" }, s(e), {
66
+ class: s(m)("select-scroll-button", t.class)
67
+ }), {
68
+ default: n(() => [
69
+ c(s(J), {
70
+ class: "size-4",
71
+ "aria-hidden": "true"
72
+ })
73
+ ]),
74
+ _: 1
75
+ }, 16, ["class"]));
76
+ }
77
+ }), se = /* @__PURE__ */ f({
78
+ __name: "SelectContent",
79
+ props: {
80
+ forceMount: { type: Boolean },
81
+ position: { default: "item-aligned" },
82
+ bodyLock: { type: Boolean },
83
+ side: {},
84
+ sideOffset: {},
85
+ sideFlip: { type: Boolean },
86
+ align: {},
87
+ alignOffset: {},
88
+ alignFlip: { type: Boolean },
89
+ avoidCollisions: { type: Boolean },
90
+ collisionBoundary: {},
91
+ collisionPadding: {},
92
+ arrowPadding: {},
93
+ sticky: {},
94
+ hideWhenDetached: { type: Boolean },
95
+ positionStrategy: {},
96
+ updatePositionStrategy: {},
97
+ disableUpdateOnLayoutShift: { type: Boolean },
98
+ prioritizePosition: { type: Boolean },
99
+ reference: {},
100
+ asChild: { type: Boolean },
101
+ as: {},
102
+ disableOutsidePointerEvents: { type: Boolean },
103
+ class: {},
104
+ size: { default: "regular" },
105
+ maxHeight: { default: 320 }
106
+ },
107
+ setup(a) {
108
+ const t = a, e = S(t, "class", "size", "maxHeight"), r = z(() => ({
109
+ "--kuat-select-content-max-height": typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight
110
+ }));
111
+ return (o, d) => (l(), i(s(U), null, {
112
+ default: n(() => [
113
+ c(s(D), _({ "data-slot": "select-content" }, s(e), {
114
+ style: r.value,
115
+ class: s(m)(
116
+ "select-content",
117
+ `select-content--position-${t.position}`,
118
+ `select-content--size-${t.size}`,
119
+ t.class
120
+ )
121
+ }), {
122
+ default: n(() => [
123
+ c(te),
124
+ c(s(F), {
125
+ "data-slot": "select-viewport",
126
+ class: "select-viewport"
127
+ }, {
128
+ default: n(() => [
129
+ u(o.$slots, "default")
130
+ ]),
131
+ _: 3
132
+ }),
133
+ c(ee)
134
+ ]),
135
+ _: 3
136
+ }, 16, ["style", "class"])
137
+ ]),
138
+ _: 3
139
+ }));
140
+ }
141
+ }), le = /* @__PURE__ */ f({
142
+ __name: "SelectGroup",
143
+ props: {
144
+ asChild: { type: Boolean },
145
+ as: {}
146
+ },
147
+ setup(a) {
148
+ const t = a;
149
+ return (e, r) => (l(), i(s(A), _({ "data-slot": "select-group" }, t), {
150
+ default: n(() => [
151
+ u(e.$slots, "default")
152
+ ]),
153
+ _: 3
154
+ }, 16));
155
+ }
156
+ }), ae = {
157
+ key: 0,
158
+ class: "select-item__prepend"
159
+ }, oe = { class: "select-item__text" }, ne = {
160
+ key: 0,
161
+ class: "select-item__description"
162
+ }, re = {
163
+ key: 1,
164
+ class: "select-item__decoration"
165
+ }, w = /* @__PURE__ */ f({
166
+ __name: "SelectItem",
167
+ props: {
168
+ value: {},
169
+ disabled: { type: Boolean },
170
+ textValue: {},
171
+ asChild: { type: Boolean },
172
+ as: {},
173
+ class: {},
174
+ prepend: {},
175
+ description: {},
176
+ decoration: {}
177
+ },
178
+ emits: ["select"],
179
+ setup(a, { emit: t }) {
180
+ const e = a, o = x(e, t);
181
+ return (d, B) => (l(), i(s(G), _({ "data-slot": "select-item" }, s(o), {
182
+ class: s(m)("select-item", (e.description || d.$slots.description) && "select-item--double", e.class)
183
+ }), {
184
+ default: n(() => [
185
+ e.prepend || d.$slots.prepend ? (l(), g("span", ae, [
186
+ u(d.$slots, "prepend", {}, () => [
187
+ y(h(e.prepend), 1)
188
+ ])
189
+ ])) : v("", !0),
190
+ I("span", oe, [
191
+ c(s(q), { class: "select-item__label" }, {
192
+ default: n(() => [
193
+ u(d.$slots, "default")
194
+ ]),
195
+ _: 3
196
+ }),
197
+ e.description || d.$slots.description ? (l(), g("span", ne, [
198
+ u(d.$slots, "description", {}, () => [
199
+ y(h(e.description), 1)
200
+ ])
201
+ ])) : v("", !0)
202
+ ]),
203
+ e.decoration || d.$slots.decoration ? (l(), g("span", re, [
204
+ u(d.$slots, "decoration", {}, () => [
205
+ y(h(e.decoration), 1)
206
+ ])
207
+ ])) : v("", !0),
208
+ c(s(j), { class: "select-item__indicator" }, {
209
+ default: n(() => [
210
+ c(s(Q), {
211
+ class: "size-4",
212
+ "aria-hidden": "true"
213
+ })
214
+ ]),
215
+ _: 1
216
+ })
217
+ ]),
218
+ _: 3
219
+ }, 16, ["class"]));
220
+ }
221
+ }), ie = /* @__PURE__ */ f({
222
+ __name: "SelectLabel",
223
+ props: {
224
+ for: {},
225
+ asChild: { type: Boolean },
226
+ as: {},
227
+ class: {}
228
+ },
229
+ setup(a) {
230
+ const t = a, e = S(t, "class");
231
+ return (r, o) => (l(), i(s(K), _({ "data-slot": "select-label" }, s(e), {
232
+ class: s(m)("select-label", t.class)
233
+ }), {
234
+ default: n(() => [
235
+ u(r.$slots, "default")
236
+ ]),
237
+ _: 3
238
+ }, 16, ["class"]));
239
+ }
240
+ }), ce = /* @__PURE__ */ f({
241
+ __name: "SelectSeparator",
242
+ props: {
243
+ asChild: { type: Boolean },
244
+ as: {},
245
+ class: {}
246
+ },
247
+ setup(a) {
248
+ const t = a, e = S(t, "class");
249
+ return (r, o) => (l(), i(s(M), _({ "data-slot": "select-separator" }, s(e), {
250
+ class: s(m)("select-separator", t.class)
251
+ }), null, 16, ["class"]));
252
+ }
253
+ }), de = {
254
+ key: 0,
255
+ class: "select-trigger__prepend"
256
+ }, pe = { class: "select-trigger__value-wrap" }, ue = {
257
+ key: 0,
258
+ class: "select-trigger__label"
259
+ }, _e = {
260
+ key: 1,
261
+ class: "select-trigger__decoration"
262
+ }, me = /* @__PURE__ */ f({
263
+ __name: "SelectTrigger",
264
+ props: {
265
+ disabled: { type: Boolean },
266
+ reference: {},
267
+ asChild: { type: Boolean },
268
+ as: {},
269
+ class: {},
270
+ size: { default: "regular" },
271
+ lines: { default: "single" },
272
+ label: { default: void 0 },
273
+ prepend: { default: void 0 },
274
+ decoration: { default: void 0 },
275
+ invalid: { type: Boolean, default: !1 }
276
+ },
277
+ setup(a) {
278
+ const t = a, e = S(
279
+ t,
280
+ "class",
281
+ "size",
282
+ "lines",
283
+ "label",
284
+ "prepend",
285
+ "decoration",
286
+ "invalid"
287
+ ), r = z(() => {
288
+ const o = e["aria-invalid"];
289
+ return t.invalid || o === !0 || o === "true";
290
+ });
291
+ return (o, d) => (l(), i(s(R), _({ "data-slot": "select-trigger" }, s(e), {
292
+ class: s(m)(
293
+ "select-trigger",
294
+ `select-trigger--size-${t.size}`,
295
+ `select-trigger--lines-${t.lines}`,
296
+ t.class
297
+ ),
298
+ "aria-invalid": r.value ? !0 : void 0
299
+ }), {
300
+ default: n(() => [
301
+ t.prepend || o.$slots.prepend ? (l(), g("span", de, [
302
+ u(o.$slots, "prepend", {}, () => [
303
+ y(h(t.prepend), 1)
304
+ ])
305
+ ])) : v("", !0),
306
+ I("span", pe, [
307
+ t.label || o.$slots.label ? (l(), g("span", ue, [
308
+ u(o.$slots, "label", {}, () => [
309
+ y(h(t.label), 1)
310
+ ])
311
+ ])) : v("", !0),
312
+ u(o.$slots, "default")
313
+ ]),
314
+ t.decoration || o.$slots.decoration ? (l(), g("span", _e, [
315
+ u(o.$slots, "decoration", {}, () => [
316
+ y(h(t.decoration), 1)
317
+ ])
318
+ ])) : v("", !0),
319
+ c(s(W), null, {
320
+ default: n(() => [
321
+ c(s(E), {
322
+ class: "select-trigger__icon size-4",
323
+ "aria-hidden": "true"
324
+ })
325
+ ]),
326
+ _: 1
327
+ })
328
+ ]),
329
+ _: 3
330
+ }, 16, ["class", "aria-invalid"]));
331
+ }
332
+ }), fe = /* @__PURE__ */ f({
333
+ __name: "SelectValue",
334
+ props: {
335
+ placeholder: {},
336
+ asChild: { type: Boolean },
337
+ as: {},
338
+ class: {}
339
+ },
340
+ setup(a) {
341
+ const t = a, e = S(t, "class");
342
+ return (r, o) => (l(), i(s(Z), _({ "data-slot": "select-value" }, s(e), {
343
+ class: s(m)("select-trigger__value", t.class)
344
+ }), null, 16, ["class"]));
345
+ }
346
+ }), ge = {
347
+ key: 2,
348
+ class: "select-empty"
349
+ }, Ce = /* @__PURE__ */ f({
350
+ inheritAttrs: !1,
351
+ __name: "KuatSelect",
352
+ props: {
353
+ open: { type: Boolean },
354
+ defaultOpen: { type: Boolean },
355
+ defaultValue: {},
356
+ modelValue: {},
357
+ by: {},
358
+ dir: {},
359
+ multiple: { type: Boolean },
360
+ autocomplete: {},
361
+ disabled: { type: Boolean },
362
+ name: {},
363
+ required: { type: Boolean },
364
+ class: {},
365
+ triggerClass: {},
366
+ contentClass: {},
367
+ items: { default: () => [] },
368
+ placeholder: { default: "Select an item" },
369
+ size: { default: "regular" },
370
+ lines: { default: "single" },
371
+ label: { default: void 0 },
372
+ prepend: { default: void 0 },
373
+ decoration: { default: void 0 },
374
+ invalid: { type: Boolean, default: !1 },
375
+ position: { default: "item-aligned" },
376
+ maxHeight: { default: 320 },
377
+ emptyText: { default: "No options available" }
378
+ },
379
+ emits: ["update:modelValue", "update:open"],
380
+ setup(a, { emit: t }) {
381
+ const e = a, r = t, o = S(
382
+ e,
383
+ "class",
384
+ "triggerClass",
385
+ "contentClass",
386
+ "items",
387
+ "placeholder",
388
+ "size",
389
+ "lines",
390
+ "label",
391
+ "prepend",
392
+ "decoration",
393
+ "invalid",
394
+ "position",
395
+ "maxHeight",
396
+ "emptyText"
397
+ ), d = T(), B = z(() => {
398
+ const { class: C, ...$ } = d;
399
+ return $;
400
+ });
401
+ return (C, $) => (l(), i(Y, _(s(o), {
402
+ class: s(m)(e.class),
403
+ "onUpdate:modelValue": $[0] || ($[0] = (p) => r("update:modelValue", p)),
404
+ "onUpdate:open": $[1] || ($[1] = (p) => r("update:open", p))
405
+ }), {
406
+ default: n(() => [
407
+ c(me, _(B.value, {
408
+ class: s(m)(e.triggerClass),
409
+ size: e.size,
410
+ lines: e.lines,
411
+ label: e.label,
412
+ prepend: e.prepend,
413
+ decoration: e.decoration,
414
+ invalid: e.invalid
415
+ }), {
416
+ default: n(() => [
417
+ c(fe, {
418
+ placeholder: e.placeholder
419
+ }, null, 8, ["placeholder"])
420
+ ]),
421
+ _: 1
422
+ }, 16, ["class", "size", "lines", "label", "prepend", "decoration", "invalid"]),
423
+ c(se, {
424
+ class: H(s(m)(e.contentClass)),
425
+ size: e.size,
426
+ position: e.position,
427
+ "max-height": e.maxHeight
428
+ }, {
429
+ default: n(() => [
430
+ C.$slots.default ? u(C.$slots, "default", { key: 0 }) : e.items.length > 0 ? (l(!0), g(k, { key: 1 }, P(e.items, (p, V) => (l(), g(k, {
431
+ key: `item-${V}`
432
+ }, [
433
+ s(X)(p) ? (l(), i(le, { key: 0 }, {
434
+ default: n(() => [
435
+ c(ie, null, {
436
+ default: n(() => [
437
+ y(h(p.label), 1)
438
+ ]),
439
+ _: 2
440
+ }, 1024),
441
+ (l(!0), g(k, null, P(p.items, (b) => (l(), i(w, {
442
+ key: b.value,
443
+ value: b.value,
444
+ disabled: b.disabled,
445
+ prepend: b.prepend,
446
+ description: b.description,
447
+ decoration: b.decoration
448
+ }, {
449
+ default: n(() => [
450
+ y(h(b.label), 1)
451
+ ]),
452
+ _: 2
453
+ }, 1032, ["value", "disabled", "prepend", "description", "decoration"]))), 128)),
454
+ V < e.items.length - 1 ? (l(), i(ce, { key: 0 })) : v("", !0)
455
+ ]),
456
+ _: 2
457
+ }, 1024)) : (l(), i(w, {
458
+ key: 1,
459
+ value: p.value,
460
+ disabled: p.disabled,
461
+ prepend: p.prepend,
462
+ description: p.description,
463
+ decoration: p.decoration
464
+ }, {
465
+ default: n(() => [
466
+ y(h(p.label), 1)
467
+ ]),
468
+ _: 2
469
+ }, 1032, ["value", "disabled", "prepend", "description", "decoration"]))
470
+ ], 64))), 128)) : (l(), g("p", ge, h(e.emptyText), 1))
471
+ ]),
472
+ _: 3
473
+ }, 8, ["class", "size", "position", "max-height"])
474
+ ]),
475
+ _: 3
476
+ }, 16, ["class"]));
477
+ }
478
+ });
479
+ export {
480
+ Be as S,
481
+ Ce as _,
482
+ Y as a,
483
+ se as b,
484
+ le as c,
485
+ w as d,
486
+ ie as e,
487
+ ee as f,
488
+ te as g,
489
+ ce as h,
490
+ me as i,
491
+ fe as j,
492
+ $e as k
493
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as u, mergeModels as m, useModel as i, useAttrs as c, computed as g, createBlock as p, openBlock as f, unref as r, mergeProps as V, withCtx as k, renderSlot as _ } from "vue";
2
+ import { Toggle as v } from "reka-ui";
3
+ import { c as z } from "./utils-DLUjLwnh.js";
4
+ import "./constants-CXAkjttx.js";
5
+ const x = /* @__PURE__ */ u({
6
+ inheritAttrs: !1,
7
+ __name: "Toggle",
8
+ props: /* @__PURE__ */ m({
9
+ class: {},
10
+ size: { default: "regular" },
11
+ skin: { default: "outlined" }
12
+ }, {
13
+ modelValue: { type: Boolean, required: !1 },
14
+ modelModifiers: {}
15
+ }),
16
+ emits: ["update:modelValue"],
17
+ setup(o) {
18
+ const t = o, l = i(o, "modelValue"), a = c(), d = g(() => {
19
+ const { class: s, ...e } = a;
20
+ return e;
21
+ });
22
+ return (s, e) => (f(), p(r(v), V({
23
+ modelValue: l.value,
24
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => l.value = n),
25
+ "data-slot": "toggle"
26
+ }, d.value, {
27
+ class: r(z)("toggle", `toggle--size-${t.size}`, `toggle--skin-${t.skin}`, t.class)
28
+ }), {
29
+ default: k(() => [
30
+ _(s.$slots, "default")
31
+ ]),
32
+ _: 3
33
+ }, 16, ["modelValue", "class"]));
34
+ }
35
+ });
36
+ export {
37
+ x as _
38
+ };
package/dist/accordion.js CHANGED
@@ -1,9 +1,10 @@
1
- import { c as r } from "./utils-DLUjLwnh.js";
2
- import { _ as a, b as e, A as i, a as s } from "./AccordionTrigger-BRz5PzEd.js";
1
+ import { c as n } from "./utils-DLUjLwnh.js";
2
+ /* empty css */
3
+ import { _ as i, b as t, A as e, a as s } from "./AccordionTrigger-BRz5PzEd.js";
3
4
  export {
4
- a as Accordion,
5
- e as AccordionContent,
6
- i as AccordionItem,
5
+ i as Accordion,
6
+ t as AccordionContent,
7
+ e as AccordionItem,
7
8
  s as AccordionTrigger,
8
- r as cn
9
+ n as cn
9
10
  };
@@ -1,14 +1,15 @@
1
- import { c as l } from "./utils-DLUjLwnh.js";
2
- import { _ as r, A as t, a as i, b as g, c as s, d as A, e as D, f as c, g as n } from "./AlertDialogTrigger.vue_vue_type_script_setup_true_lang-CK1Um8CY.js";
1
+ import { c as o } from "./utils-DLUjLwnh.js";
2
+ /* empty css */
3
+ import { _ as t, A as i, a as g, b as s, c as A, d as D, e as c, f as n, g as p } from "./AlertDialogTrigger.vue_vue_type_script_setup_true_lang-CK1Um8CY.js";
3
4
  export {
4
- r as AlertDialog,
5
- t as AlertDialogAction,
6
- i as AlertDialogCancel,
7
- g as AlertDialogContent,
8
- s as AlertDialogDescription,
9
- A as AlertDialogFooter,
10
- D as AlertDialogHeader,
11
- c as AlertDialogTitle,
12
- n as AlertDialogTrigger,
13
- l as cn
5
+ t as AlertDialog,
6
+ i as AlertDialogAction,
7
+ g as AlertDialogCancel,
8
+ s as AlertDialogContent,
9
+ A as AlertDialogDescription,
10
+ D as AlertDialogFooter,
11
+ c as AlertDialogHeader,
12
+ n as AlertDialogTitle,
13
+ p as AlertDialogTrigger,
14
+ o as cn
14
15
  };
package/dist/badge.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { c as e } from "./utils-DLUjLwnh.js";
2
- import { B as s, b as t } from "./index-C3VyxnTa.js";
2
+ /* empty css */
3
+ import { B as t, b as m } from "./index-C3VyxnTa.js";
3
4
  export {
4
- s as Badge,
5
- t as badgeVariants,
5
+ t as Badge,
6
+ m as badgeVariants,
6
7
  e as cn
7
8
  };
@@ -1,9 +1,10 @@
1
- import { c as r } from "./utils-DLUjLwnh.js";
2
- import { B as u, a as p, b as n, c as s } from "./index-iz_NZI-V.js";
1
+ import { c as a } from "./utils-DLUjLwnh.js";
2
+ /* empty css */
3
+ import { B as u, a as n, b as s, c as e } from "./index-iz_NZI-V.js";
3
4
  export {
4
5
  u as ButtonGroup,
5
- p as ButtonGroupSeparator,
6
- n as ButtonGroupText,
7
- s as buttonGroupVariants,
8
- r as cn
6
+ n as ButtonGroupSeparator,
7
+ s as ButtonGroupText,
8
+ e as buttonGroupVariants,
9
+ a as cn
9
10
  };
package/dist/button.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { c as a } from "./utils-DLUjLwnh.js";
2
- import { _ as n, b as s } from "./index-CBmjn3iX.js";
2
+ /* empty css */
3
+ import { _ as s, b as m } from "./index-CBmjn3iX.js";
3
4
  export {
4
- n as Button,
5
- s as buttonVariants,
5
+ s as Button,
6
+ m as buttonVariants,
6
7
  a as cn
7
8
  };
@@ -0,0 +1,3 @@
1
+ export { cn } from './lib/utils';
2
+ export { Checkbox, CheckboxField, CHECKBOX_FIELD_APPEARANCES, CHECKBOX_FIELD_LAYOUTS, } from './components/ui/checkbox';
3
+ export type { CheckboxFieldAppearance, CheckboxFieldLayout } from './components/ui/checkbox';
@@ -0,0 +1,10 @@
1
+ import { c as E } from "./utils-DLUjLwnh.js";
2
+ /* empty css */
3
+ import { C as r, b as s, _, a as c } from "./constants-BpzIL1jq.js";
4
+ export {
5
+ r as CHECKBOX_FIELD_APPEARANCES,
6
+ s as CHECKBOX_FIELD_LAYOUTS,
7
+ _ as Checkbox,
8
+ c as CheckboxField,
9
+ E as cn
10
+ };
@@ -0,0 +1,52 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { CarouselApi, CarouselItemBasis, CarouselOrientation } from './context';
3
+
4
+ export type CarouselEventHandler = (api: CarouselApi, eventName: string) => void;
5
+ export type CarouselEventHandlers = Partial<Record<string, CarouselEventHandler>>;
6
+ interface Props {
7
+ class?: HTMLAttributes["class"];
8
+ opts?: Record<string, unknown>;
9
+ basis?: CarouselItemBasis;
10
+ orientation?: CarouselOrientation;
11
+ plugins?: unknown[];
12
+ setApi?: (api: CarouselApi | undefined) => void;
13
+ events?: CarouselEventHandlers;
14
+ }
15
+ declare function __VLS_template(): {
16
+ controls?(_: {}): any;
17
+ content?(_: {}): any;
18
+ };
19
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
20
+ basis: number;
21
+ orientation: string;
22
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
23
+ basis: number;
24
+ orientation: string;
25
+ }>>> & Readonly<{}>, {
26
+ orientation: CarouselOrientation;
27
+ basis: CarouselItemBasis;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
+ default: D[K];
43
+ }> : P[K];
44
+ };
45
+ type __VLS_Prettify<T> = {
46
+ [K in keyof T]: T[K];
47
+ } & {};
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };