@equal-experts/kuat-vue 0.4.0 → 0.4.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.
Files changed (57) hide show
  1. package/README.md +10 -27
  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/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  5. package/dist/accordion.js +2 -2
  6. package/dist/alert-dialog.js +2 -2
  7. package/dist/badge.js +2 -2
  8. package/dist/button-group.js +2 -2
  9. package/dist/button.js +5 -6
  10. package/dist/components/ui/badge/Badge.vue.d.ts +9 -2
  11. package/dist/components/ui/badge/constants.d.ts +4 -0
  12. package/dist/components/ui/badge/index.d.ts +12 -5
  13. package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +34 -0
  14. package/dist/components/ui/breadcrumb/index.d.ts +2 -0
  15. package/dist/components/ui/breadcrumb/types.d.ts +8 -0
  16. package/dist/components/ui/button/Button.vue.d.ts +13 -3
  17. package/dist/components/ui/button/constants.d.ts +12 -0
  18. package/dist/components/ui/button/index.d.ts +10 -6
  19. package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +20 -6
  20. package/dist/components/ui/button-group/ButtonGroupText.vue.d.ts +0 -2
  21. package/dist/components/ui/button-group/constants.d.ts +2 -0
  22. package/dist/components/ui/button-group/index.d.ts +10 -5
  23. package/dist/components/ui/content-card/ContentCard.vue.d.ts +62 -0
  24. package/dist/components/ui/content-card/index.d.ts +1 -0
  25. package/dist/components/ui/kuat-carousel/KuatCarousel.vue.d.ts +47 -0
  26. package/dist/components/ui/kuat-carousel/KuatCarouselContent.vue.d.ts +25 -0
  27. package/dist/components/ui/kuat-carousel/KuatCarouselItem.vue.d.ts +25 -0
  28. package/dist/components/ui/kuat-carousel/KuatCarouselNext.vue.d.ts +16 -0
  29. package/dist/components/ui/kuat-carousel/KuatCarouselPrevious.vue.d.ts +16 -0
  30. package/dist/components/ui/kuat-carousel/index.d.ts +6 -0
  31. package/dist/components/ui/kuat-header/EELogo.vue.d.ts +32 -0
  32. package/dist/components/ui/kuat-header/KuatHeader.vue.d.ts +55 -0
  33. package/dist/components/ui/kuat-header/constants.d.ts +4 -0
  34. package/dist/components/ui/kuat-header/index.d.ts +15 -0
  35. package/dist/components/ui/kuat-logo-lockup/EELogoIcon.vue.d.ts +18 -0
  36. package/dist/components/ui/kuat-logo-lockup/KuatLogoLockup.vue.d.ts +45 -0
  37. package/dist/components/ui/kuat-logo-lockup/constants.d.ts +4 -0
  38. package/dist/components/ui/kuat-logo-lockup/index.d.ts +4 -0
  39. package/dist/components/ui/kuat-radial-progress/KuatRadialProgress.vue.d.ts +52 -0
  40. package/dist/components/ui/kuat-radial-progress/constants.d.ts +4 -0
  41. package/dist/components/ui/kuat-radial-progress/index.d.ts +3 -0
  42. package/dist/index-C3VyxnTa.js +35 -0
  43. package/dist/index-CBmjn3iX.js +58 -0
  44. package/dist/index-iz_NZI-V.js +85 -0
  45. package/dist/index.d.ts +18 -6
  46. package/dist/index.js +2006 -29
  47. package/dist/style.css +1 -1
  48. package/dist/test/setup.d.ts +1 -0
  49. package/dist/{styles-qaFjX9_3.js → utils-DLUjLwnh.js} +0 -1
  50. package/package.json +17 -9
  51. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-vy6KzwI7.js +0 -107
  52. package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-DNFUKWlR.js +0 -185
  53. package/dist/Button.vue_vue_type_script_setup_true_lang-Xhp6qpI9.js +0 -30
  54. package/dist/index-BS0sZM3b.js +0 -45
  55. package/dist/index-Cctx-joO.js +0 -103
  56. package/dist/index-D5fkjZ2l.js +0 -34
  57. package/dist/index-DCxse3sU.js +0 -33
package/README.md CHANGED
@@ -6,7 +6,7 @@ Custom Vue components and blocks for the Kuat Design System.
6
6
 
7
7
  ## Architecture
8
8
 
9
- This package provides **custom components** and **blocks** that are unique to Kuat. For standard UI components (Button, Dialog, etc.), install them directly via shadcn-vue CLI with kuat-core theming.
9
+ This package provides **custom components** and **blocks** that are unique to Kuat. It also provides a localized **Button** component. For other UI components (e.g. Dialog), install them via shadcn-vue CLI with kuat-core theming.
10
10
 
11
11
  ```
12
12
  ┌─────────────────────────────────────────────────────┐
@@ -53,6 +53,7 @@ Components unique to Kuat, not available in shadcn-vue:
53
53
 
54
54
  | Component | Description |
55
55
  |-----------|-------------|
56
+ | `Button` | Primary actions with variant (primary, secondary, outline, ghost, ghost-muted, destructive) and color |
56
57
  | `ButtonGroup` | Groups buttons together with proper styling |
57
58
  | `ButtonGroupText` | Text element within a button group |
58
59
  | `ButtonGroupSeparator` | Separator between button group items |
@@ -124,10 +125,9 @@ npx shadcn-vue@latest add button dialog dropdown-menu
124
125
  ```vue
125
126
  <script setup lang="ts">
126
127
  // Kuat custom components from this package
127
- import { ButtonGroup, ButtonGroupText } from '@equal-experts/kuat-vue';
128
+ import { ButtonGroup, ButtonGroupText, Button } from '@equal-experts/kuat-vue';
128
129
 
129
- // shadcn-vue components from your local installation
130
- import { Button } from '@/components/ui/button';
130
+ // Other shadcn-vue components from your local installation if needed
131
131
  </script>
132
132
 
133
133
  <template>
@@ -149,8 +149,7 @@ Groups buttons together with seamless borders:
149
149
 
150
150
  ```vue
151
151
  <script setup lang="ts">
152
- import { ButtonGroup, ButtonGroupText } from '@equal-experts/kuat-vue';
153
- import { Button } from '@/components/ui/button';
152
+ import { ButtonGroup, ButtonGroupText, Button } from '@equal-experts/kuat-vue';
154
153
  </script>
155
154
 
156
155
  <template>
@@ -213,7 +212,7 @@ If you were importing standard components from this package, migrate to direct s
213
212
 
214
213
  ```vue
215
214
  <script setup lang="ts">
216
- import { Button, Dialog, Badge } from '@equal-experts/kuat-vue';
215
+ import { Button, Dialog } from '@equal-experts/kuat-vue';
217
216
  </script>
218
217
  ```
219
218
 
@@ -224,10 +223,9 @@ import { Button, Dialog, Badge } from '@equal-experts/kuat-vue';
224
223
  // Standard components from your local shadcn-vue installation
225
224
  import { Button } from '@/components/ui/button';
226
225
  import { Dialog } from '@/components/ui/dialog';
227
- import { Badge } from '@/components/ui/badge';
228
226
 
229
- // Kuat-specific components from this package
230
- import { ButtonGroup } from '@equal-experts/kuat-vue';
227
+ // Kuat-specific components from this package (including Badge)
228
+ import { ButtonGroup, Badge } from '@equal-experts/kuat-vue';
231
229
  </script>
232
230
  ```
233
231
 
@@ -235,24 +233,9 @@ import { ButtonGroup } from '@equal-experts/kuat-vue';
235
233
 
236
234
  1. Ensure `@equal-experts/kuat-core` is installed
237
235
  2. Initialize shadcn-vue: `npx shadcn-vue@latest init`
238
- 3. Install needed components: `npx shadcn-vue@latest add button dialog badge`
236
+ 3. Install needed components: `npx shadcn-vue@latest add button dialog`
239
237
  4. Update imports to use local components
240
- 5. Keep imports for Kuat-specific components (ButtonGroup, etc.)
241
-
242
- ---
243
-
244
- ## Deprecated Exports
245
-
246
- The following exports are deprecated and will be removed in the next major version. Install them directly via shadcn-vue CLI instead:
247
-
248
- | Component | Replacement |
249
- |-----------|-------------|
250
- | `Button` | `npx shadcn-vue@latest add button` |
251
- | `Accordion` | `npx shadcn-vue@latest add accordion` |
252
- | `AlertDialog` | `npx shadcn-vue@latest add alert-dialog` |
253
- | `Badge` | `npx shadcn-vue@latest add badge` |
254
-
255
- These components are still exported for backward compatibility but will be themed correctly only when using kuat-core.
238
+ 5. Keep imports for Kuat-specific components (Button, ButtonGroup, Badge, etc.)
256
239
 
257
240
  ---
258
241
 
@@ -0,0 +1,105 @@
1
+ import { defineComponent as d, createBlock as i, openBlock as l, unref as o, normalizeProps as A, guardReactiveProps as y, withCtx as c, renderSlot as n, mergeProps as p, createElementVNode as B, normalizeClass as C, createVNode as g } from "vue";
2
+ import { useForwardPropsEmits as v, AccordionRoot as $, AccordionContent as h, useForwardProps as P, AccordionItem as b, AccordionHeader as w, AccordionTrigger as I } from "reka-ui";
3
+ import { c as m } from "./utils-DLUjLwnh.js";
4
+ import { r as u } from "./index-A7umpmtg.js";
5
+ import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { ChevronDown as V } from "lucide-vue-next";
7
+ const D = /* @__PURE__ */ d({
8
+ __name: "Accordion",
9
+ props: {
10
+ collapsible: { type: Boolean },
11
+ disabled: { type: Boolean },
12
+ dir: {},
13
+ orientation: {},
14
+ unmountOnHide: { type: Boolean },
15
+ asChild: { type: Boolean },
16
+ as: {},
17
+ type: {},
18
+ modelValue: {},
19
+ defaultValue: {}
20
+ },
21
+ emits: ["update:modelValue"],
22
+ setup(s, { emit: e }) {
23
+ const a = v(s, e);
24
+ return (f, k) => (l(), i(o($), A(y(o(a))), {
25
+ default: c(() => [
26
+ n(f.$slots, "default")
27
+ ]),
28
+ _: 3
29
+ }, 16));
30
+ }
31
+ }), T = /* @__PURE__ */ d({
32
+ __name: "AccordionContent",
33
+ props: {
34
+ forceMount: { type: Boolean },
35
+ asChild: { type: Boolean },
36
+ as: {},
37
+ class: {}
38
+ },
39
+ setup(s) {
40
+ const e = s, r = u(e, "class");
41
+ return (t, a) => (l(), i(o(h), p(o(r), { class: "accordion-content" }), {
42
+ default: c(() => [
43
+ B("div", {
44
+ class: C(o(m)("accordion-content__body", e.class))
45
+ }, [
46
+ n(t.$slots, "default", {}, void 0, !0)
47
+ ], 2)
48
+ ]),
49
+ _: 3
50
+ }, 16));
51
+ }
52
+ }), M = /* @__PURE__ */ _(T, [["__scopeId", "data-v-323c4af0"]]), H = /* @__PURE__ */ d({
53
+ __name: "AccordionItem",
54
+ props: {
55
+ disabled: { type: Boolean },
56
+ value: {},
57
+ unmountOnHide: { type: Boolean },
58
+ asChild: { type: Boolean },
59
+ as: {},
60
+ class: {}
61
+ },
62
+ setup(s) {
63
+ const e = s, r = u(e, "class"), t = P(r);
64
+ return (a, f) => (l(), i(o(b), p(o(t), {
65
+ class: o(m)("accordion-item", e.class)
66
+ }), {
67
+ default: c(() => [
68
+ n(a.$slots, "default", {}, void 0, !0)
69
+ ]),
70
+ _: 3
71
+ }, 16, ["class"]));
72
+ }
73
+ }), S = /* @__PURE__ */ _(H, [["__scopeId", "data-v-f0319512"]]), O = /* @__PURE__ */ d({
74
+ __name: "AccordionTrigger",
75
+ props: {
76
+ asChild: { type: Boolean },
77
+ as: {},
78
+ class: {}
79
+ },
80
+ setup(s) {
81
+ const e = s, r = u(e, "class");
82
+ return (t, a) => (l(), i(o(w), { class: "accordion-trigger-wrapper" }, {
83
+ default: c(() => [
84
+ g(o(I), p(o(r), {
85
+ class: o(m)("accordion-trigger", e.class)
86
+ }), {
87
+ default: c(() => [
88
+ n(t.$slots, "default", {}, void 0, !0),
89
+ n(t.$slots, "icon", {}, () => [
90
+ g(o(V), { class: "accordion-trigger__icon" })
91
+ ], !0)
92
+ ]),
93
+ _: 3
94
+ }, 16, ["class"])
95
+ ]),
96
+ _: 3
97
+ }));
98
+ }
99
+ }), j = /* @__PURE__ */ _(O, [["__scopeId", "data-v-a03b22b5"]]);
100
+ export {
101
+ S as A,
102
+ D as _,
103
+ j as a,
104
+ M as b
105
+ };
@@ -0,0 +1,173 @@
1
+ import { defineComponent as l, createBlock as p, openBlock as r, unref as e, normalizeProps as D, guardReactiveProps as $, withCtx as n, renderSlot as c, mergeProps as u, createVNode as A, createElementBlock as v, normalizeClass as h } from "vue";
2
+ import { useForwardPropsEmits as C, AlertDialogRoot as y, AlertDialogAction as B, AlertDialogCancel as P, AlertDialogPortal as I, AlertDialogOverlay as O, AlertDialogContent as w, AlertDialogDescription as T, AlertDialogTitle as b, AlertDialogTrigger as F } from "reka-ui";
3
+ import { c as d } from "./utils-DLUjLwnh.js";
4
+ import { r as g } from "./index-A7umpmtg.js";
5
+ import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const G = /* @__PURE__ */ l({
7
+ __name: "AlertDialog",
8
+ props: {
9
+ open: { type: Boolean },
10
+ defaultOpen: { type: Boolean }
11
+ },
12
+ emits: ["update:open"],
13
+ setup(s, { emit: t }) {
14
+ const i = C(s, t);
15
+ return (f, m) => (r(), p(e(y), D($(e(i))), {
16
+ default: n(() => [
17
+ c(f.$slots, "default")
18
+ ]),
19
+ _: 3
20
+ }, 16));
21
+ }
22
+ }), k = /* @__PURE__ */ l({
23
+ __name: "AlertDialogAction",
24
+ props: {
25
+ asChild: { type: Boolean },
26
+ as: {},
27
+ class: {}
28
+ },
29
+ setup(s) {
30
+ const t = s, a = g(t, "class");
31
+ return (o, i) => (r(), p(e(B), u(e(a), {
32
+ class: e(d)("alert-dialog-action", t.class)
33
+ }), {
34
+ default: n(() => [
35
+ c(o.$slots, "default", {}, void 0, !0)
36
+ ]),
37
+ _: 3
38
+ }, 16, ["class"]));
39
+ }
40
+ }), J = /* @__PURE__ */ _(k, [["__scopeId", "data-v-a5af5f97"]]), x = /* @__PURE__ */ l({
41
+ __name: "AlertDialogCancel",
42
+ props: {
43
+ asChild: { type: Boolean },
44
+ as: {},
45
+ class: {}
46
+ },
47
+ setup(s) {
48
+ const t = s, a = g(t, "class");
49
+ return (o, i) => (r(), p(e(P), u(e(a), {
50
+ class: e(d)("alert-dialog-cancel", t.class)
51
+ }), {
52
+ default: n(() => [
53
+ c(o.$slots, "default", {}, void 0, !0)
54
+ ]),
55
+ _: 3
56
+ }, 16, ["class"]));
57
+ }
58
+ }), L = /* @__PURE__ */ _(x, [["__scopeId", "data-v-4ab33db4"]]), E = /* @__PURE__ */ l({
59
+ __name: "AlertDialogContent",
60
+ props: {
61
+ forceMount: { type: Boolean },
62
+ disableOutsidePointerEvents: { type: Boolean },
63
+ asChild: { type: Boolean },
64
+ as: {},
65
+ class: {}
66
+ },
67
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
68
+ setup(s, { emit: t }) {
69
+ const a = s, o = t, i = g(a, "class"), f = C(i, o);
70
+ return (m, M) => (r(), p(e(I), null, {
71
+ default: n(() => [
72
+ A(e(O), { class: "alert-dialog-overlay" }),
73
+ A(e(w), u(e(f), {
74
+ class: e(d)("alert-dialog-content", a.class)
75
+ }), {
76
+ default: n(() => [
77
+ c(m.$slots, "default", {}, void 0, !0)
78
+ ]),
79
+ _: 3
80
+ }, 16, ["class"])
81
+ ]),
82
+ _: 3
83
+ }));
84
+ }
85
+ }), Q = /* @__PURE__ */ _(E, [["__scopeId", "data-v-630d3e5f"]]), z = /* @__PURE__ */ l({
86
+ __name: "AlertDialogDescription",
87
+ props: {
88
+ asChild: { type: Boolean },
89
+ as: {},
90
+ class: {}
91
+ },
92
+ setup(s) {
93
+ const t = s, a = g(t, "class");
94
+ return (o, i) => (r(), p(e(T), u(e(a), {
95
+ class: e(d)("alert-dialog-description", t.class)
96
+ }), {
97
+ default: n(() => [
98
+ c(o.$slots, "default", {}, void 0, !0)
99
+ ]),
100
+ _: 3
101
+ }, 16, ["class"]));
102
+ }
103
+ }), U = /* @__PURE__ */ _(z, [["__scopeId", "data-v-5a0d8461"]]), H = /* @__PURE__ */ l({
104
+ __name: "AlertDialogFooter",
105
+ props: {
106
+ class: {}
107
+ },
108
+ setup(s) {
109
+ const t = s;
110
+ return (a, o) => (r(), v("div", {
111
+ class: h(e(d)("alert-dialog-footer", t.class))
112
+ }, [
113
+ c(a.$slots, "default", {}, void 0, !0)
114
+ ], 2));
115
+ }
116
+ }), W = /* @__PURE__ */ _(H, [["__scopeId", "data-v-59463818"]]), R = /* @__PURE__ */ l({
117
+ __name: "AlertDialogHeader",
118
+ props: {
119
+ class: {}
120
+ },
121
+ setup(s) {
122
+ const t = s;
123
+ return (a, o) => (r(), v("div", {
124
+ class: h(e(d)("alert-dialog-header", t.class))
125
+ }, [
126
+ c(a.$slots, "default", {}, void 0, !0)
127
+ ], 2));
128
+ }
129
+ }), X = /* @__PURE__ */ _(R, [["__scopeId", "data-v-689b6152"]]), K = /* @__PURE__ */ l({
130
+ __name: "AlertDialogTitle",
131
+ props: {
132
+ asChild: { type: Boolean },
133
+ as: {},
134
+ class: {}
135
+ },
136
+ setup(s) {
137
+ const t = s, a = g(t, "class");
138
+ return (o, i) => (r(), p(e(b), u(e(a), {
139
+ class: e(d)("alert-dialog-title", t.class)
140
+ }), {
141
+ default: n(() => [
142
+ c(o.$slots, "default", {}, void 0, !0)
143
+ ]),
144
+ _: 3
145
+ }, 16, ["class"]));
146
+ }
147
+ }), Y = /* @__PURE__ */ _(K, [["__scopeId", "data-v-f431895c"]]), Z = /* @__PURE__ */ l({
148
+ __name: "AlertDialogTrigger",
149
+ props: {
150
+ asChild: { type: Boolean },
151
+ as: {}
152
+ },
153
+ setup(s) {
154
+ const t = s;
155
+ return (a, o) => (r(), p(e(F), D($(t)), {
156
+ default: n(() => [
157
+ c(a.$slots, "default")
158
+ ]),
159
+ _: 3
160
+ }, 16));
161
+ }
162
+ });
163
+ export {
164
+ J as A,
165
+ G as _,
166
+ L as a,
167
+ Q as b,
168
+ U as c,
169
+ W as d,
170
+ X as e,
171
+ Y as f,
172
+ Z as g
173
+ };
@@ -0,0 +1,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };
package/dist/accordion.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as r } from "./styles-qaFjX9_3.js";
2
- import { _ as a, c as e, a as i, b as s } from "./AccordionTrigger.vue_vue_type_script_setup_true_lang-vy6KzwI7.js";
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";
3
3
  export {
4
4
  a as Accordion,
5
5
  e as AccordionContent,
@@ -1,5 +1,5 @@
1
- import { c as l } from "./styles-qaFjX9_3.js";
2
- import { _ as r, a as t, b as i, c as g, d as s, e as A, f as D, g as c, h as n } from "./AlertDialogTrigger.vue_vue_type_script_setup_true_lang-DNFUKWlR.js";
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";
3
3
  export {
4
4
  r as AlertDialog,
5
5
  t as AlertDialogAction,
package/dist/badge.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as e } from "./styles-qaFjX9_3.js";
2
- import { _ as s, b as t } from "./index-BS0sZM3b.js";
1
+ import { c as e } from "./utils-DLUjLwnh.js";
2
+ import { B as s, b as t } from "./index-C3VyxnTa.js";
3
3
  export {
4
4
  s as Badge,
5
5
  t as badgeVariants,
@@ -1,5 +1,5 @@
1
- import { c as r } from "./styles-qaFjX9_3.js";
2
- import { _ as u, a as p, b as n, c as s } from "./index-Cctx-joO.js";
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";
3
3
  export {
4
4
  u as ButtonGroup,
5
5
  p as ButtonGroupSeparator,
package/dist/button.js CHANGED
@@ -1,8 +1,7 @@
1
- import { c as r } from "./styles-qaFjX9_3.js";
2
- import { b as n } from "./index-DCxse3sU.js";
3
- import { _ as e } from "./Button.vue_vue_type_script_setup_true_lang-Xhp6qpI9.js";
1
+ import { c as a } from "./utils-DLUjLwnh.js";
2
+ import { _ as n, b as s } from "./index-CBmjn3iX.js";
4
3
  export {
5
- e as Button,
6
- n as buttonVariants,
7
- r as cn
4
+ n as Button,
5
+ s as buttonVariants,
6
+ a as cn
8
7
  };
@@ -1,9 +1,10 @@
1
1
  import { PrimitiveProps } from 'reka-ui';
2
2
  import { HTMLAttributes } from 'vue';
3
- import { BadgeVariants } from '.';
3
+ import { BadgeVariant, BadgeRoundness } from './constants';
4
4
 
5
5
  interface Props extends PrimitiveProps {
6
- variant?: BadgeVariants["variant"];
6
+ variant?: BadgeVariant;
7
+ roundness?: BadgeRoundness;
7
8
  class?: HTMLAttributes["class"];
8
9
  }
9
10
  declare function __VLS_template(): {
@@ -11,10 +12,16 @@ declare function __VLS_template(): {
11
12
  };
12
13
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
14
  as: string;
15
+ variant: string;
16
+ roundness: string;
14
17
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
18
  as: string;
19
+ variant: string;
20
+ roundness: string;
16
21
  }>>> & Readonly<{}>, {
17
22
  as: import('reka-ui').AsTag | import('vue').Component;
23
+ variant: BadgeVariant;
24
+ roundness: BadgeRoundness;
18
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
19
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
27
  export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const BADGE_VARIANTS: readonly ["default", "secondary", "destructive", "outline", "ghost"];
2
+ export type BadgeVariant = (typeof BADGE_VARIANTS)[number];
3
+ export declare const BADGE_ROUNDNESS: readonly ["default", "round"];
4
+ export type BadgeRoundness = (typeof BADGE_ROUNDNESS)[number];
@@ -1,7 +1,14 @@
1
- import { VariantProps } from 'class-variance-authority';
1
+ import { BadgeVariant, BadgeRoundness } from './constants';
2
2
 
3
3
  export { default as Badge } from './Badge.vue';
4
- export declare const badgeVariants: (props?: ({
5
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- export type BadgeVariants = VariantProps<typeof badgeVariants>;
4
+ export { BADGE_VARIANTS, BADGE_ROUNDNESS } from './constants';
5
+ export type { BadgeVariant, BadgeRoundness } from './constants';
6
+ export type BadgeVariants = {
7
+ variant?: BadgeVariant;
8
+ roundness?: BadgeRoundness;
9
+ };
10
+ /** Returns class string for badge variant (backward compatibility). */
11
+ export declare function badgeVariants(options?: {
12
+ variant?: BadgeVariant;
13
+ roundness?: BadgeRoundness;
14
+ }): string;
@@ -0,0 +1,34 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { BreadcrumbItemEntry } from './types';
3
+
4
+ interface Props {
5
+ items: BreadcrumbItemEntry[];
6
+ /** aria-label for the nav. Default "Breadcrumb". */
7
+ ariaLabel?: string;
8
+ class?: HTMLAttributes["class"];
9
+ }
10
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ ariaLabel: string;
12
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ ariaLabel: string;
14
+ }>>> & Readonly<{}>, {
15
+ ariaLabel: string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,2 @@
1
+ export { default as Breadcrumb } from './Breadcrumb.vue';
2
+ export type { BreadcrumbItemEntry } from './types';
@@ -0,0 +1,8 @@
1
+ export interface BreadcrumbItemEntry {
2
+ label: string;
3
+ href?: string;
4
+ children?: Array<{
5
+ label: string;
6
+ href: string;
7
+ }>;
8
+ }
@@ -1,10 +1,11 @@
1
1
  import { PrimitiveProps } from 'reka-ui';
2
2
  import { HTMLAttributes } from 'vue';
3
- import { ButtonVariants } from '.';
3
+ import { ButtonVariant, ButtonSize, ButtonColor } from './constants';
4
4
 
5
5
  interface Props extends PrimitiveProps {
6
- variant?: ButtonVariants["variant"];
7
- size?: ButtonVariants["size"];
6
+ variant?: ButtonVariant | "default";
7
+ size?: ButtonSize | "sm" | "lg";
8
+ color?: ButtonColor;
8
9
  class?: HTMLAttributes["class"];
9
10
  }
10
11
  declare function __VLS_template(): {
@@ -12,10 +13,19 @@ declare function __VLS_template(): {
12
13
  };
13
14
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
15
  as: string;
16
+ variant: string;
17
+ size: string;
18
+ color: string;
15
19
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
20
  as: string;
21
+ variant: string;
22
+ size: string;
23
+ color: string;
17
24
  }>>> & Readonly<{}>, {
18
25
  as: import('reka-ui').AsTag | import('vue').Component;
26
+ size: ButtonSize | "sm" | "lg";
27
+ color: ButtonColor;
28
+ variant: ButtonVariant | "default";
19
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
31
  export default _default;
@@ -0,0 +1,12 @@
1
+ export declare const BUTTON_VARIANTS: readonly ["primary", "secondary", "outline", "ghost", "ghost-muted", "destructive"];
2
+ /** @deprecated Use "primary" instead. */
3
+ export declare const BUTTON_VARIANT_DEFAULT_ALIAS = "default";
4
+ export declare const BUTTON_SIZES: readonly ["mini", "small", "default", "large", "icon"];
5
+ /** @deprecated Use "small" instead. */
6
+ export declare const BUTTON_SIZE_SM_ALIAS = "sm";
7
+ /** @deprecated Use "large" instead. */
8
+ export declare const BUTTON_SIZE_LG_ALIAS = "lg";
9
+ export declare const BUTTON_COLORS: readonly ["ee-blue", "tech-blue", "byte-white", "the-cloud", "dark-data", "transform-teal", "equal-ember"];
10
+ export type ButtonVariant = (typeof BUTTON_VARIANTS)[number];
11
+ export type ButtonSize = (typeof BUTTON_SIZES)[number];
12
+ export type ButtonColor = (typeof BUTTON_COLORS)[number];
@@ -1,8 +1,12 @@
1
- import { VariantProps } from 'class-variance-authority';
1
+ import { ButtonVariant, ButtonSize, ButtonColor } from './constants';
2
2
 
3
3
  export { default as Button } from './Button.vue';
4
- export declare const buttonVariants: (props?: ({
5
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
6
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
7
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
- export type ButtonVariants = VariantProps<typeof buttonVariants>;
4
+ export { BUTTON_VARIANTS, BUTTON_SIZES, BUTTON_COLORS } from './constants';
5
+ export type { ButtonVariant, ButtonSize, ButtonColor } from './constants';
6
+ export type ButtonVariants = {
7
+ variant?: ButtonVariant | "default";
8
+ size?: ButtonSize | "sm" | "lg";
9
+ color?: ButtonColor;
10
+ };
11
+ /** Returns class string for button variant/size/color (backward compatibility). */
12
+ export declare function buttonVariants(options?: ButtonVariants): string;
@@ -1,16 +1,22 @@
1
1
  import { HTMLAttributes } from 'vue';
2
- import { ButtonGroupVariants } from '.';
2
+ import { ButtonGroupOrientation } from './constants';
3
3
 
4
4
  declare function __VLS_template(): {
5
5
  default?(_: {}): any;
6
6
  };
7
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
8
  class?: HTMLAttributes["class"];
9
- orientation?: ButtonGroupVariants["orientation"];
10
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ orientation?: ButtonGroupOrientation;
10
+ }>, {
11
+ orientation: string;
12
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
13
  class?: HTMLAttributes["class"];
12
- orientation?: ButtonGroupVariants["orientation"];
13
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ orientation?: ButtonGroupOrientation;
15
+ }>, {
16
+ orientation: string;
17
+ }>>> & Readonly<{}>, {
18
+ orientation: ButtonGroupOrientation;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
15
21
  export default _default;
16
22
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -22,6 +28,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
22
28
  required: true;
23
29
  };
24
30
  };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
25
39
  type __VLS_WithTemplateSlots<T, S> = T & {
26
40
  new (): {
27
41
  $slots: S;
@@ -1,10 +1,8 @@
1
1
  import { PrimitiveProps } from 'reka-ui';
2
2
  import { HTMLAttributes } from 'vue';
3
- import { ButtonGroupVariants } from '.';
4
3
 
5
4
  interface Props extends PrimitiveProps {
6
5
  class?: HTMLAttributes["class"];
7
- orientation?: ButtonGroupVariants["orientation"];
8
6
  }
9
7
  declare function __VLS_template(): {
10
8
  default?(_: {}): any;
@@ -0,0 +1,2 @@
1
+ export declare const BUTTON_GROUP_ORIENTATIONS: readonly ["horizontal", "vertical"];
2
+ export type ButtonGroupOrientation = (typeof BUTTON_GROUP_ORIENTATIONS)[number];