@equal-experts/kuat-vue 0.4.1 → 0.5.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 (136) hide show
  1. package/README.md +61 -160
  2. package/dist/AccordionTrigger-BRz5PzEd.js +105 -0
  3. package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-CK1Um8CY.js +173 -0
  4. package/dist/FieldSet.vue_vue_type_script_setup_true_lang-D9i4ciy0.js +119 -0
  5. package/dist/FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js +108 -0
  6. package/dist/KuatSelect.vue_vue_type_script_setup_true_lang-DP66U_wg.js +493 -0
  7. package/dist/Toggle.vue_vue_type_script_setup_true_lang-CZM1GrLQ.js +38 -0
  8. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  9. package/dist/accordion.js +7 -6
  10. package/dist/alert-dialog.js +13 -12
  11. package/dist/badge.js +5 -4
  12. package/dist/button-group.js +7 -6
  13. package/dist/button.js +6 -6
  14. package/dist/checkbox.d.ts +3 -0
  15. package/dist/checkbox.js +10 -0
  16. package/dist/components/ui/badge/Badge.vue.d.ts +9 -2
  17. package/dist/components/ui/badge/constants.d.ts +4 -0
  18. package/dist/components/ui/badge/index.d.ts +12 -5
  19. package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +34 -0
  20. package/dist/components/ui/breadcrumb/index.d.ts +2 -0
  21. package/dist/components/ui/breadcrumb/types.d.ts +8 -0
  22. package/dist/components/ui/button/Button.vue.d.ts +13 -3
  23. package/dist/components/ui/button/constants.d.ts +12 -0
  24. package/dist/components/ui/button/index.d.ts +10 -6
  25. package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +20 -6
  26. package/dist/components/ui/button-group/ButtonGroupText.vue.d.ts +0 -2
  27. package/dist/components/ui/button-group/constants.d.ts +2 -0
  28. package/dist/components/ui/button-group/index.d.ts +10 -5
  29. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +13 -0
  30. package/dist/components/ui/checkbox/CheckboxField.vue.d.ts +68 -0
  31. package/dist/components/ui/checkbox/constants.d.ts +4 -0
  32. package/dist/components/ui/checkbox/index.d.ts +4 -0
  33. package/dist/components/ui/content-card/ContentCard.vue.d.ts +62 -0
  34. package/dist/components/ui/content-card/index.d.ts +1 -0
  35. package/dist/components/ui/field/Field.vue.d.ts +48 -0
  36. package/dist/components/ui/field/FieldContent.vue.d.ts +26 -0
  37. package/dist/components/ui/field/FieldDescription.vue.d.ts +26 -0
  38. package/dist/components/ui/field/FieldError.vue.d.ts +33 -0
  39. package/dist/components/ui/field/FieldGroup.vue.d.ts +26 -0
  40. package/dist/components/ui/field/FieldLabel.vue.d.ts +26 -0
  41. package/dist/components/ui/field/FieldLegend.vue.d.ts +43 -0
  42. package/dist/components/ui/field/FieldSeparator.vue.d.ts +26 -0
  43. package/dist/components/ui/field/FieldSet.vue.d.ts +26 -0
  44. package/dist/components/ui/field/FieldTitle.vue.d.ts +26 -0
  45. package/dist/components/ui/field/constants.d.ts +4 -0
  46. package/dist/components/ui/field/index.d.ts +12 -0
  47. package/dist/components/ui/input/Input.vue.d.ts +34 -0
  48. package/dist/components/ui/input/constants.d.ts +2 -0
  49. package/dist/components/ui/input/index.d.ts +3 -0
  50. package/dist/components/ui/kuat-carousel/KuatCarousel.vue.d.ts +47 -0
  51. package/dist/components/ui/kuat-carousel/KuatCarouselContent.vue.d.ts +25 -0
  52. package/dist/components/ui/kuat-carousel/KuatCarouselItem.vue.d.ts +25 -0
  53. package/dist/components/ui/kuat-carousel/KuatCarouselNext.vue.d.ts +16 -0
  54. package/dist/components/ui/kuat-carousel/KuatCarouselPrevious.vue.d.ts +16 -0
  55. package/dist/components/ui/kuat-carousel/index.d.ts +6 -0
  56. package/dist/components/ui/kuat-header/EELogo.vue.d.ts +32 -0
  57. package/dist/components/ui/kuat-header/KuatHeader.vue.d.ts +55 -0
  58. package/dist/components/ui/kuat-header/constants.d.ts +4 -0
  59. package/dist/components/ui/kuat-header/index.d.ts +15 -0
  60. package/dist/components/ui/kuat-logo-lockup/EELogoIcon.vue.d.ts +18 -0
  61. package/dist/components/ui/kuat-logo-lockup/KuatLogoLockup.vue.d.ts +45 -0
  62. package/dist/components/ui/kuat-logo-lockup/constants.d.ts +4 -0
  63. package/dist/components/ui/kuat-logo-lockup/index.d.ts +4 -0
  64. package/dist/components/ui/kuat-radial-progress/KuatRadialProgress.vue.d.ts +52 -0
  65. package/dist/components/ui/kuat-radial-progress/constants.d.ts +4 -0
  66. package/dist/components/ui/kuat-radial-progress/index.d.ts +3 -0
  67. package/dist/components/ui/radio/RadioField.vue.d.ts +58 -0
  68. package/dist/components/ui/radio/RadioGroup.vue.d.ts +31 -0
  69. package/dist/components/ui/radio/RadioGroupItem.vue.d.ts +22 -0
  70. package/dist/components/ui/radio/constants.d.ts +4 -0
  71. package/dist/components/ui/radio/index.d.ts +5 -0
  72. package/dist/components/ui/select/KuatSelect.vue.d.ts +104 -0
  73. package/dist/components/ui/select/Select.vue.d.ts +28 -0
  74. package/dist/components/ui/select/SelectContent.vue.d.ts +52 -0
  75. package/dist/components/ui/select/SelectGroup.vue.d.ts +22 -0
  76. package/dist/components/ui/select/SelectItem.vue.d.ts +40 -0
  77. package/dist/components/ui/select/SelectLabel.vue.d.ts +27 -0
  78. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
  79. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
  80. package/dist/components/ui/select/SelectSeparator.vue.d.ts +18 -0
  81. package/dist/components/ui/select/SelectTrigger.vue.d.ts +72 -0
  82. package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
  83. package/dist/components/ui/select/constants.d.ts +18 -0
  84. package/dist/components/ui/select/index.d.ts +13 -0
  85. package/dist/components/ui/switch/Switch.vue.d.ts +13 -0
  86. package/dist/components/ui/switch/SwitchField.vue.d.ts +68 -0
  87. package/dist/components/ui/switch/constants.d.ts +4 -0
  88. package/dist/components/ui/switch/index.d.ts +4 -0
  89. package/dist/components/ui/textarea/Textarea.vue.d.ts +24 -0
  90. package/dist/components/ui/textarea/constants.d.ts +2 -0
  91. package/dist/components/ui/textarea/index.d.ts +3 -0
  92. package/dist/components/ui/toggle/Toggle.vue.d.ts +42 -0
  93. package/dist/components/ui/toggle/constants.d.ts +4 -0
  94. package/dist/components/ui/toggle/index.d.ts +3 -0
  95. package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +45 -0
  96. package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +49 -0
  97. package/dist/components/ui/toggle-group/constants.d.ts +2 -0
  98. package/dist/components/ui/toggle-group/index.d.ts +4 -0
  99. package/dist/constants-4SN0MW4f.js +61 -0
  100. package/dist/constants-BpzIL1jq.js +141 -0
  101. package/dist/constants-CXAkjttx.js +5 -0
  102. package/dist/constants-CpIWAssv.js +32 -0
  103. package/dist/constants-D_fYMnOg.js +154 -0
  104. package/dist/constants-Ils7NSfg.js +131 -0
  105. package/dist/field.d.ts +3 -0
  106. package/dist/field.js +19 -0
  107. package/dist/index-C3VyxnTa.js +35 -0
  108. package/dist/index-CBmjn3iX.js +58 -0
  109. package/dist/index-iz_NZI-V.js +85 -0
  110. package/dist/index.d.ts +33 -22
  111. package/dist/index.js +2066 -29
  112. package/dist/input.d.ts +3 -0
  113. package/dist/input.js +8 -0
  114. package/dist/radio.d.ts +3 -0
  115. package/dist/radio.js +11 -0
  116. package/dist/select.d.ts +3 -0
  117. package/dist/select.js +19 -0
  118. package/dist/style.css +1 -1
  119. package/dist/switch.d.ts +1 -0
  120. package/dist/switch.js +7 -0
  121. package/dist/test/setup.d.ts +1 -0
  122. package/dist/textarea.d.ts +3 -0
  123. package/dist/textarea.js +8 -0
  124. package/dist/toggle-group.d.ts +5 -0
  125. package/dist/toggle-group.js +71 -0
  126. package/dist/toggle.d.ts +3 -0
  127. package/dist/toggle.js +10 -0
  128. package/dist/{utils-qaFjX9_3.js → utils-DLUjLwnh.js} +0 -1
  129. package/package.json +47 -3
  130. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-CG4FNPK2.js +0 -107
  131. package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-chev-oxU.js +0 -185
  132. package/dist/Button.vue_vue_type_script_setup_true_lang-CtAz6Sf_.js +0 -30
  133. package/dist/index-B9dF2hh8.js +0 -103
  134. package/dist/index-CMJyKNIG.js +0 -45
  135. package/dist/index-D3egriua.js +0 -33
  136. package/dist/index-DACAHwoB.js +0 -34
@@ -0,0 +1,154 @@
1
+ import { defineComponent as m, createBlock as u, openBlock as p, unref as a, mergeProps as _, withCtx as o, renderSlot as h, createVNode as r, createElementVNode as R, useAttrs as A, useId as C, computed as c, normalizeClass as V, createCommentVNode as g, createTextVNode as B, toDisplayString as I } from "vue";
2
+ import { useForwardPropsEmits as x, RadioGroupRoot as E, RadioGroupItem as T, RadioGroupIndicator as w } from "reka-ui";
3
+ import { c as y } from "./utils-DLUjLwnh.js";
4
+ import { _ as D, c as G, a as N, d as P, b as S } from "./FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js";
5
+ import { r as k } from "./index-A7umpmtg.js";
6
+ const j = /* @__PURE__ */ m({
7
+ __name: "RadioGroup",
8
+ props: {
9
+ modelValue: {},
10
+ defaultValue: {},
11
+ disabled: { type: Boolean },
12
+ orientation: {},
13
+ dir: {},
14
+ loop: { type: Boolean },
15
+ asChild: { type: Boolean },
16
+ as: {},
17
+ name: {},
18
+ required: { type: Boolean },
19
+ class: {}
20
+ },
21
+ emits: ["update:modelValue"],
22
+ setup(e, { emit: s }) {
23
+ const t = e, d = x(t, s);
24
+ return (l, i) => (p(), u(a(E), _({ "data-slot": "radio-group" }, a(d), {
25
+ class: a(y)("radio-group", t.class)
26
+ }), {
27
+ default: o(() => [
28
+ h(l.$slots, "default")
29
+ ]),
30
+ _: 3
31
+ }, 16, ["class"]));
32
+ }
33
+ }), F = /* @__PURE__ */ m({
34
+ __name: "RadioGroupItem",
35
+ props: {
36
+ id: {},
37
+ value: {},
38
+ disabled: { type: Boolean },
39
+ asChild: { type: Boolean },
40
+ as: {},
41
+ name: {},
42
+ required: { type: Boolean },
43
+ class: {}
44
+ },
45
+ emits: ["select"],
46
+ setup(e, { emit: s }) {
47
+ const t = e, d = x(t, s);
48
+ return (l, i) => (p(), u(a(T), _({ "data-slot": "radio-group-item" }, a(d), {
49
+ class: a(y)("radio", t.class)
50
+ }), {
51
+ default: o(() => [
52
+ r(a(w), { class: "radio__indicator" }, {
53
+ default: o(() => [...i[0] || (i[0] = [
54
+ R("span", {
55
+ class: "radio__dot",
56
+ "aria-hidden": "true"
57
+ }, null, -1)
58
+ ])]),
59
+ _: 1
60
+ })
61
+ ]),
62
+ _: 1
63
+ }, 16, ["class"]));
64
+ }
65
+ }), O = { class: "radio-field__radio-wrap" }, H = /* @__PURE__ */ m({
66
+ inheritAttrs: !1,
67
+ __name: "RadioField",
68
+ props: {
69
+ class: {},
70
+ label: {},
71
+ secondaryText: {},
72
+ appearance: { default: "plain" },
73
+ layout: { default: "inline" },
74
+ flipped: { type: Boolean, default: !1 },
75
+ id: {},
76
+ disabled: { type: Boolean },
77
+ value: {}
78
+ },
79
+ setup(e) {
80
+ const s = e, t = A(), f = C(), d = c(() => s.id ?? f), l = c(() => s.secondaryText != null), i = k(s, [
81
+ "label",
82
+ "secondaryText",
83
+ "appearance",
84
+ "layout",
85
+ "flipped",
86
+ "id",
87
+ "class",
88
+ "disabled"
89
+ ]), b = c(() => {
90
+ const { class: n, ...v } = t;
91
+ return { ...i, ...v };
92
+ }), $ = c(() => {
93
+ const n = b.value["aria-invalid"];
94
+ return n === !0 || n === "true";
95
+ });
96
+ return (n, v) => (p(), u(a(D), {
97
+ "data-slot": "radio-field",
98
+ class: V(
99
+ a(y)(
100
+ "radio-field",
101
+ `radio-field--appearance-${e.appearance}`,
102
+ `radio-field--layout-${e.layout}`,
103
+ l.value && "radio-field--has-secondary",
104
+ e.flipped && "radio-field--flipped",
105
+ e.disabled && "radio-field--disabled",
106
+ $.value && "radio-field--invalid",
107
+ s.class
108
+ )
109
+ )
110
+ }, {
111
+ default: o(() => [
112
+ r(a(G), {
113
+ class: "radio-field__label",
114
+ for: d.value
115
+ }, {
116
+ default: o(() => [
117
+ R("span", O, [
118
+ r(F, _({ id: d.value }, b.value, { disabled: e.disabled }), null, 16, ["id", "disabled"])
119
+ ]),
120
+ r(a(N), { class: "radio-field__text" }, {
121
+ default: o(() => [
122
+ r(a(P), { class: "radio-field__primary" }, {
123
+ default: o(() => [
124
+ B(I(e.label), 1)
125
+ ]),
126
+ _: 1
127
+ }),
128
+ l.value ? (p(), u(a(S), {
129
+ key: 0,
130
+ class: "radio-field__secondary"
131
+ }, {
132
+ default: o(() => [
133
+ B(I(e.secondaryText), 1)
134
+ ]),
135
+ _: 1
136
+ })) : g("", !0)
137
+ ]),
138
+ _: 1
139
+ })
140
+ ]),
141
+ _: 1
142
+ }, 8, ["for"])
143
+ ]),
144
+ _: 1
145
+ }, 8, ["class"]));
146
+ }
147
+ }), J = ["plain", "card"], K = ["inline", "block"];
148
+ export {
149
+ J as R,
150
+ j as _,
151
+ F as a,
152
+ H as b,
153
+ K as c
154
+ };
@@ -0,0 +1,131 @@
1
+ import { defineComponent as b, mergeModels as v, useModel as V, useAttrs as S, computed as i, createBlock as p, openBlock as h, unref as a, mergeProps as x, withCtx as s, createVNode as c, useId as $, normalizeClass as B, createElementVNode as C, createCommentVNode as g, createTextVNode as w, toDisplayString as y } from "vue";
2
+ import { c as A } from "./utils-DLUjLwnh.js";
3
+ import { _ as E, c as N, a as k, d as M, b as P } from "./FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js";
4
+ import { SwitchRoot as D, SwitchThumb as F } from "reka-ui";
5
+ import { r as L } from "./index-A7umpmtg.js";
6
+ const U = /* @__PURE__ */ b({
7
+ inheritAttrs: !1,
8
+ __name: "Switch",
9
+ props: /* @__PURE__ */ v({
10
+ class: {}
11
+ }, {
12
+ modelValue: { type: Boolean, required: !1 },
13
+ modelModifiers: {}
14
+ }),
15
+ emits: ["update:modelValue"],
16
+ setup(e) {
17
+ const l = e, d = V(e, "modelValue"), u = S(), f = i(() => {
18
+ const { class: o, ...t } = u;
19
+ return t;
20
+ });
21
+ return (o, t) => (h(), p(a(D), x({
22
+ modelValue: d.value,
23
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => d.value = m),
24
+ "data-slot": "switch",
25
+ class: a(A)("switch", l.class)
26
+ }, f.value), {
27
+ default: s(() => [
28
+ c(a(F), {
29
+ class: "switch__thumb",
30
+ "data-slot": "switch-thumb"
31
+ })
32
+ ]),
33
+ _: 1
34
+ }, 16, ["modelValue", "class"]));
35
+ }
36
+ }), q = { class: "switch-field__switch-wrap" }, Y = /* @__PURE__ */ b({
37
+ inheritAttrs: !1,
38
+ __name: "SwitchField",
39
+ props: /* @__PURE__ */ v({
40
+ class: {},
41
+ label: {},
42
+ secondaryText: {},
43
+ appearance: { default: "plain" },
44
+ layout: { default: "inline" },
45
+ flipped: { type: Boolean, default: !1 },
46
+ id: {},
47
+ disabled: { type: Boolean }
48
+ }, {
49
+ modelValue: { type: Boolean, required: !1 },
50
+ modelModifiers: {}
51
+ }),
52
+ emits: ["update:modelValue"],
53
+ setup(e) {
54
+ const l = e, d = V(e, "modelValue"), u = S(), f = $(), o = i(() => l.id ?? f), t = i(() => l.secondaryText != null), m = L(l, [
55
+ "label",
56
+ "secondaryText",
57
+ "appearance",
58
+ "layout",
59
+ "flipped",
60
+ "id",
61
+ "class",
62
+ "disabled"
63
+ ]), _ = i(() => {
64
+ const { class: n, ...r } = u;
65
+ return { ...m, ...r };
66
+ }), T = i(() => {
67
+ const n = _.value["aria-invalid"];
68
+ return n === !0 || n === "true";
69
+ });
70
+ return (n, r) => (h(), p(a(E), {
71
+ "data-slot": "switch-field",
72
+ class: B(
73
+ a(A)(
74
+ "switch-field",
75
+ `switch-field--appearance-${e.appearance}`,
76
+ `switch-field--layout-${e.layout}`,
77
+ t.value && "switch-field--has-secondary",
78
+ e.flipped && "switch-field--flipped",
79
+ e.disabled && "switch-field--disabled",
80
+ T.value && "switch-field--invalid",
81
+ l.class
82
+ )
83
+ )
84
+ }, {
85
+ default: s(() => [
86
+ c(a(N), {
87
+ class: "switch-field__label",
88
+ for: o.value
89
+ }, {
90
+ default: s(() => [
91
+ C("span", q, [
92
+ c(U, x({
93
+ id: o.value,
94
+ modelValue: d.value,
95
+ "onUpdate:modelValue": r[0] || (r[0] = (I) => d.value = I)
96
+ }, _.value, { disabled: e.disabled }), null, 16, ["id", "modelValue", "disabled"])
97
+ ]),
98
+ c(a(k), { class: "switch-field__text" }, {
99
+ default: s(() => [
100
+ c(a(M), { class: "switch-field__primary" }, {
101
+ default: s(() => [
102
+ w(y(e.label), 1)
103
+ ]),
104
+ _: 1
105
+ }),
106
+ t.value ? (h(), p(a(P), {
107
+ key: 0,
108
+ class: "switch-field__secondary"
109
+ }, {
110
+ default: s(() => [
111
+ w(y(e.secondaryText), 1)
112
+ ]),
113
+ _: 1
114
+ })) : g("", !0)
115
+ ]),
116
+ _: 1
117
+ })
118
+ ]),
119
+ _: 1
120
+ }, 8, ["for"])
121
+ ]),
122
+ _: 1
123
+ }, 8, ["class"]));
124
+ }
125
+ }), j = ["plain", "card"], G = ["inline", "block"];
126
+ export {
127
+ j as S,
128
+ U as _,
129
+ Y as a,
130
+ G as b
131
+ };
@@ -0,0 +1,3 @@
1
+ export { cn } from './lib/utils';
2
+ export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FIELD_LEGEND_VARIANTS, FIELD_ORIENTATIONS, } from './components/ui/field';
3
+ export type { FieldLegendVariant, FieldOrientation } from './components/ui/field';
package/dist/field.js ADDED
@@ -0,0 +1,19 @@
1
+ import { c as r } from "./utils-DLUjLwnh.js";
2
+ /* empty css */
3
+ import { _ as d, a as F, b as l, c as o, d as t } from "./FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js";
4
+ import { F as E, e as c, _ as n, a as I, b as L, c as _, d as m } from "./FieldSet.vue_vue_type_script_setup_true_lang-D9i4ciy0.js";
5
+ export {
6
+ E as FIELD_LEGEND_VARIANTS,
7
+ c as FIELD_ORIENTATIONS,
8
+ d as Field,
9
+ F as FieldContent,
10
+ l as FieldDescription,
11
+ n as FieldError,
12
+ I as FieldGroup,
13
+ o as FieldLabel,
14
+ L as FieldLegend,
15
+ _ as FieldSeparator,
16
+ m as FieldSet,
17
+ t as FieldTitle,
18
+ r as cn
19
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as t, createBlock as n, openBlock as l, unref as d, normalizeClass as c, withCtx as u, renderSlot as f } from "vue";
2
+ import { Primitive as o } from "reka-ui";
3
+ import { c as r } from "./utils-DLUjLwnh.js";
4
+ import { _ as i } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const m = /* @__PURE__ */ t({
6
+ __name: "Badge",
7
+ props: {
8
+ variant: { default: "default" },
9
+ roundness: { default: "default" },
10
+ class: {},
11
+ asChild: { type: Boolean },
12
+ as: { default: "div" }
13
+ },
14
+ setup(a) {
15
+ const e = a;
16
+ return (s, g) => (l(), n(d(o), {
17
+ as: a.as,
18
+ "as-child": a.asChild,
19
+ class: c(d(r)("badge", `badge--${e.variant}`, `badge--roundness-${e.roundness}`, e.class))
20
+ }, {
21
+ default: u(() => [
22
+ f(s.$slots, "default", {}, void 0, !0)
23
+ ]),
24
+ _: 3
25
+ }, 8, ["as", "as-child", "class"]));
26
+ }
27
+ }), B = /* @__PURE__ */ i(m, [["__scopeId", "data-v-3daa11ff"]]);
28
+ function C(a) {
29
+ const e = (a == null ? void 0 : a.variant) ?? "default", s = (a == null ? void 0 : a.roundness) ?? "default";
30
+ return r("badge", `badge--${e}`, `badge--roundness-${s}`);
31
+ }
32
+ export {
33
+ B,
34
+ C as b
35
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as c, createBlock as s, openBlock as f, unref as l, normalizeClass as o, withCtx as m, renderSlot as d } from "vue";
2
+ import { Primitive as b } from "reka-ui";
3
+ import { c as i } from "./utils-DLUjLwnh.js";
4
+ const C = /* @__PURE__ */ c({
5
+ __name: "Button",
6
+ props: {
7
+ variant: { default: "primary" },
8
+ size: { default: "default" },
9
+ color: { default: "ee-blue" },
10
+ class: {},
11
+ asChild: { type: Boolean },
12
+ as: { default: "button" }
13
+ },
14
+ setup(r) {
15
+ const e = r;
16
+ function a(t) {
17
+ return t === "default" ? "primary" : t ?? "primary";
18
+ }
19
+ function n(t) {
20
+ return t === "sm" ? "small" : t === "lg" ? "large" : t ?? "default";
21
+ }
22
+ return (t, u) => (f(), s(l(b), {
23
+ as: r.as,
24
+ "as-child": r.asChild,
25
+ class: o(l(i)(
26
+ "button",
27
+ `button--variant-${a(e.variant)}`,
28
+ a(e.variant) === "destructive" ? [] : `button--color-${e.color}`,
29
+ `button--size-${n(e.size)}`,
30
+ e.class
31
+ ))
32
+ }, {
33
+ default: m(() => [
34
+ d(t.$slots, "default")
35
+ ]),
36
+ _: 3
37
+ }, 8, ["as", "as-child", "class"]));
38
+ }
39
+ });
40
+ function z(r) {
41
+ return r === "default" ? "primary" : r ?? "primary";
42
+ }
43
+ function v(r) {
44
+ return r === "sm" ? "small" : r === "lg" ? "large" : r ?? "default";
45
+ }
46
+ function g(r) {
47
+ const e = z((r == null ? void 0 : r.variant) ?? "primary"), a = v((r == null ? void 0 : r.size) ?? "default"), n = (r == null ? void 0 : r.color) ?? "ee-blue", u = e === "destructive" ? "" : `button--color-${n}`;
48
+ return i(
49
+ "button",
50
+ `button--variant-${e}`,
51
+ u,
52
+ `button--size-${a}`
53
+ );
54
+ }
55
+ export {
56
+ C as _,
57
+ g as b
58
+ };
@@ -0,0 +1,85 @@
1
+ import { defineComponent as s, createElementBlock as f, openBlock as n, normalizeClass as u, unref as a, renderSlot as i, createBlock as p, mergeProps as d, withCtx as h } from "vue";
2
+ import { c as r } from "./utils-DLUjLwnh.js";
3
+ import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { Separator as B, Primitive as v } from "reka-ui";
5
+ import { r as _ } from "./index-A7umpmtg.js";
6
+ const g = ["data-orientation"], b = /* @__PURE__ */ s({
7
+ __name: "ButtonGroup",
8
+ props: {
9
+ class: {},
10
+ orientation: { default: "horizontal" }
11
+ },
12
+ setup(o) {
13
+ const t = o;
14
+ return (e, l) => (n(), f("div", {
15
+ role: "group",
16
+ "data-slot": "button-group",
17
+ "data-orientation": t.orientation,
18
+ class: u(a(r)("button-group", `button-group--${t.orientation}`, t.class))
19
+ }, [
20
+ i(e.$slots, "default", {}, void 0, !0)
21
+ ], 10, g));
22
+ }
23
+ }), k = /* @__PURE__ */ c(b, [["__scopeId", "data-v-10dc75ee"]]), x = /* @__PURE__ */ s({
24
+ __name: "Separator",
25
+ props: {
26
+ orientation: { default: "horizontal" },
27
+ decorative: { type: Boolean, default: !0 },
28
+ asChild: { type: Boolean },
29
+ as: {},
30
+ class: {}
31
+ },
32
+ setup(o) {
33
+ const t = o, e = _(t, "class");
34
+ return (l, m) => (n(), p(a(B), d({ "data-slot": "separator" }, a(e), {
35
+ class: a(r)("separator", t.class)
36
+ }), null, 16, ["class"]));
37
+ }
38
+ }), S = /* @__PURE__ */ c(x, [["__scopeId", "data-v-02e74a9d"]]), $ = /* @__PURE__ */ s({
39
+ __name: "ButtonGroupSeparator",
40
+ props: {
41
+ orientation: { default: "vertical" },
42
+ decorative: { type: Boolean },
43
+ asChild: { type: Boolean },
44
+ as: {},
45
+ class: {}
46
+ },
47
+ setup(o) {
48
+ const t = o, e = _(t, "class");
49
+ return (l, m) => (n(), p(a(S), d({ "data-slot": "button-group-separator" }, a(e), {
50
+ orientation: t.orientation,
51
+ class: a(r)("button-group-separator", t.class)
52
+ }), null, 16, ["orientation", "class"]));
53
+ }
54
+ }), T = /* @__PURE__ */ c($, [["__scopeId", "data-v-6c3c09e8"]]), C = /* @__PURE__ */ s({
55
+ __name: "ButtonGroupText",
56
+ props: {
57
+ class: {},
58
+ asChild: { type: Boolean },
59
+ as: { default: "div" }
60
+ },
61
+ setup(o) {
62
+ const t = o;
63
+ return (e, l) => (n(), p(a(v), {
64
+ as: o.as,
65
+ "as-child": o.asChild,
66
+ class: u(a(r)("button-group-text", t.class))
67
+ }, {
68
+ default: h(() => [
69
+ i(e.$slots, "default", {}, void 0, !0)
70
+ ]),
71
+ _: 3
72
+ }, 8, ["as", "as-child", "class"]));
73
+ }
74
+ }), w = /* @__PURE__ */ c(C, [["__scopeId", "data-v-e434e88e"]]);
75
+ function E(o) {
76
+ const t = (o == null ? void 0 : o.orientation) ?? "horizontal";
77
+ return r("button-group", `button-group--${t}`);
78
+ }
79
+ export {
80
+ k as B,
81
+ S,
82
+ T as a,
83
+ w as b,
84
+ E as c
85
+ };
package/dist/index.d.ts CHANGED
@@ -2,27 +2,38 @@
2
2
  export { cn } from './lib/utils';
3
3
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, } from './components/ui/button-group';
4
4
  export type { ButtonGroupVariants } from './components/ui/button-group';
5
- /**
6
- * @deprecated Install directly via `npx shadcn-vue@latest add button`.
7
- * The component will be themed automatically when using kuat-core.
8
- */
9
- export { Button, buttonVariants } from './components/ui/button';
10
- /** @deprecated */
11
- export type { ButtonVariants } from './components/ui/button';
12
- /**
13
- * @deprecated Install directly via `npx shadcn-vue@latest add accordion`.
14
- * The component will be themed automatically when using kuat-core.
15
- */
5
+ export { ContentCard } from './components/ui/content-card';
6
+ export { KuatHeader, kuatHeaderVariants, EELogo } from './components/ui/kuat-header';
7
+ export type { KuatHeaderVariants } from './components/ui/kuat-header';
8
+ export { KuatCarousel, KuatCarouselContent, KuatCarouselItem, KuatCarouselPrevious, KuatCarouselNext, } from './components/ui/kuat-carousel';
9
+ export type { KuatCarouselSlidesPerView } from './components/ui/kuat-carousel';
10
+ export { KuatRadialProgress, KUAT_RADIAL_PROGRESS_SIZES, KUAT_RADIAL_PROGRESS_COLORS, } from './components/ui/kuat-radial-progress';
11
+ export type { KuatRadialProgressSize, KuatRadialProgressColor, } from './components/ui/kuat-radial-progress';
12
+ export { KuatLogoLockup, EELogoIcon, KUAT_LOGO_LOCKUP_USE, KUAT_LOGO_LOCKUP_MODE, } from './components/ui/kuat-logo-lockup';
13
+ export type { KuatLogoLockupUse, KuatLogoLockupMode, } from './components/ui/kuat-logo-lockup';
16
14
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './components/ui/accordion';
17
- /**
18
- * @deprecated Install directly via `npx shadcn-vue@latest add alert-dialog`.
19
- * The component will be themed automatically when using kuat-core.
20
- */
21
15
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from './components/ui/alert-dialog';
22
- /**
23
- * @deprecated Install directly via `npx shadcn-vue@latest add badge`.
24
- * The component will be themed automatically when using kuat-core.
25
- */
26
- export { Badge, badgeVariants } from './components/ui/badge';
27
- /** @deprecated */
28
- export type { BadgeVariants } from './components/ui/badge';
16
+ export { Badge, badgeVariants, BADGE_VARIANTS, BADGE_ROUNDNESS } from './components/ui/badge';
17
+ export type { BadgeVariants, BadgeVariant, BadgeRoundness } from './components/ui/badge';
18
+ export { Breadcrumb } from './components/ui/breadcrumb';
19
+ export type { BreadcrumbItemEntry } from './components/ui/breadcrumb';
20
+ export { Button, buttonVariants, BUTTON_VARIANTS, BUTTON_SIZES, BUTTON_COLORS, } from './components/ui/button';
21
+ export type { ButtonVariants, ButtonVariant, ButtonSize, ButtonColor } from './components/ui/button';
22
+ export { Textarea, TEXTAREA_RESIZE } from './components/ui/textarea';
23
+ export type { TextareaResize } from './components/ui/textarea';
24
+ export { Input, INPUT_SIZES } from './components/ui/input';
25
+ export type { InputSize } from './components/ui/input';
26
+ export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FIELD_LEGEND_VARIANTS, FIELD_ORIENTATIONS, } from './components/ui/field';
27
+ export type { FieldLegendVariant, FieldOrientation } from './components/ui/field';
28
+ export { KuatSelect, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SELECT_LINES, SELECT_SIZES, } from './components/ui/select';
29
+ export type { SelectItemGroup, SelectItemOption, SelectItems, SelectLines, SelectSize, } from './components/ui/select';
30
+ export { Checkbox, CheckboxField, CHECKBOX_FIELD_APPEARANCES, CHECKBOX_FIELD_LAYOUTS, } from './components/ui/checkbox';
31
+ export type { CheckboxFieldAppearance, CheckboxFieldLayout } from './components/ui/checkbox';
32
+ export { RadioGroup, RadioGroupItem, RadioField, RADIO_FIELD_APPEARANCES, RADIO_FIELD_LAYOUTS, } from './components/ui/radio';
33
+ export type { RadioFieldAppearance, RadioFieldLayout } from './components/ui/radio';
34
+ export { Switch, SwitchField, SWITCH_FIELD_APPEARANCES, SWITCH_FIELD_LAYOUTS, } from './components/ui/switch';
35
+ export type { SwitchFieldAppearance, SwitchFieldLayout } from './components/ui/switch';
36
+ export { Toggle, TOGGLE_SIZES, TOGGLE_SKINS } from './components/ui/toggle';
37
+ export type { ToggleSize, ToggleSkin } from './components/ui/toggle';
38
+ export { ToggleGroup, ToggleGroupItem, TOGGLE_GROUP_ORIENTATIONS, } from './components/ui/toggle-group';
39
+ export type { ToggleGroupOrientation } from './components/ui/toggle-group';