@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,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
+ };
@@ -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,9 +1,10 @@
1
- import { c as r } from "./utils-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-CG4FNPK2.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-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-chev-oxU.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
- import { c as e } from "./utils-qaFjX9_3.js";
2
- import { _ as s, b as t } from "./index-CMJyKNIG.js";
1
+ import { c as e } from "./utils-DLUjLwnh.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-qaFjX9_3.js";
2
- import { _ as u, a as p, b as n, c as s } from "./index-B9dF2hh8.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,8 +1,8 @@
1
- import { c as r } from "./utils-qaFjX9_3.js";
2
- import { b as n } from "./index-D3egriua.js";
3
- import { _ as e } from "./Button.vue_vue_type_script_setup_true_lang-CtAz6Sf_.js";
1
+ import { c as a } from "./utils-DLUjLwnh.js";
2
+ /* empty css */
3
+ import { _ as s, b as m } from "./index-CBmjn3iX.js";
4
4
  export {
5
- e as Button,
6
- n as buttonVariants,
7
- r as cn
5
+ s as Button,
6
+ m as buttonVariants,
7
+ a as cn
8
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
+ };
@@ -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];
@@ -1,9 +1,14 @@
1
- import { VariantProps } from 'class-variance-authority';
1
+ import { ButtonGroupOrientation } from './constants';
2
2
 
3
3
  export { default as ButtonGroup } from './ButtonGroup.vue';
4
4
  export { default as ButtonGroupSeparator } from './ButtonGroupSeparator.vue';
5
5
  export { default as ButtonGroupText } from './ButtonGroupText.vue';
6
- export declare const buttonGroupVariants: (props?: ({
7
- orientation?: "vertical" | "horizontal" | null | undefined;
8
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
- export type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;
6
+ export { BUTTON_GROUP_ORIENTATIONS } from './constants';
7
+ export type { ButtonGroupOrientation } from './constants';
8
+ export type ButtonGroupVariants = {
9
+ orientation?: ButtonGroupOrientation;
10
+ };
11
+ /** Returns class string for button group (backward compatibility). */
12
+ export declare function buttonGroupVariants(options?: {
13
+ orientation?: ButtonGroupOrientation;
14
+ }): string;
@@ -0,0 +1,13 @@
1
+
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ modelValue: import('vue').PropType<boolean | "indeterminate">;
4
+ class: {
5
+ type: import('vue').PropType<any>;
6
+ };
7
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
8
+ modelValue: import('vue').PropType<boolean | "indeterminate">;
9
+ class: {
10
+ type: import('vue').PropType<any>;
11
+ };
12
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
@@ -0,0 +1,68 @@
1
+ import { CheckboxFieldAppearance, CheckboxFieldLayout } from './constants';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<boolean | "indeterminate">;
5
+ disabled: {
6
+ type: import('vue').PropType<boolean>;
7
+ };
8
+ label: {
9
+ type: import('vue').PropType<string>;
10
+ required: true;
11
+ };
12
+ class: {
13
+ type: import('vue').PropType<any>;
14
+ };
15
+ id: {
16
+ type: import('vue').PropType<string>;
17
+ };
18
+ secondaryText: {
19
+ type: import('vue').PropType<string>;
20
+ };
21
+ appearance: {
22
+ type: import('vue').PropType<"plain" | "card">;
23
+ default: string;
24
+ };
25
+ layout: {
26
+ type: import('vue').PropType<"inline" | "block">;
27
+ default: string;
28
+ };
29
+ flipped: {
30
+ type: import('vue').PropType<boolean>;
31
+ default: boolean;
32
+ };
33
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
+ modelValue: import('vue').PropType<boolean | "indeterminate">;
35
+ disabled: {
36
+ type: import('vue').PropType<boolean>;
37
+ };
38
+ label: {
39
+ type: import('vue').PropType<string>;
40
+ required: true;
41
+ };
42
+ class: {
43
+ type: import('vue').PropType<any>;
44
+ };
45
+ id: {
46
+ type: import('vue').PropType<string>;
47
+ };
48
+ secondaryText: {
49
+ type: import('vue').PropType<string>;
50
+ };
51
+ appearance: {
52
+ type: import('vue').PropType<"plain" | "card">;
53
+ default: string;
54
+ };
55
+ layout: {
56
+ type: import('vue').PropType<"inline" | "block">;
57
+ default: string;
58
+ };
59
+ flipped: {
60
+ type: import('vue').PropType<boolean>;
61
+ default: boolean;
62
+ };
63
+ }>> & Readonly<{}>, {
64
+ appearance: CheckboxFieldAppearance;
65
+ layout: CheckboxFieldLayout;
66
+ flipped: boolean;
67
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
68
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const CHECKBOX_FIELD_APPEARANCES: readonly ["plain", "card"];
2
+ export type CheckboxFieldAppearance = (typeof CHECKBOX_FIELD_APPEARANCES)[number];
3
+ export declare const CHECKBOX_FIELD_LAYOUTS: readonly ["inline", "block"];
4
+ export type CheckboxFieldLayout = (typeof CHECKBOX_FIELD_LAYOUTS)[number];
@@ -0,0 +1,4 @@
1
+ export { default as Checkbox } from './Checkbox.vue';
2
+ export { default as CheckboxField } from './CheckboxField.vue';
3
+ export { CHECKBOX_FIELD_APPEARANCES, CHECKBOX_FIELD_LAYOUTS } from './constants';
4
+ export type { CheckboxFieldAppearance, CheckboxFieldLayout } from './constants';
@@ -0,0 +1,62 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PrimitiveProps } from 'reka-ui';
3
+
4
+ interface Props extends PrimitiveProps {
5
+ class?: HTMLAttributes["class"];
6
+ /** Optional media; when `null`, the media area is removed (no gap). */
7
+ imageSrc?: string | null;
8
+ imageAlt?: string;
9
+ /** Header props (not slots). */
10
+ category: string;
11
+ title: string;
12
+ titleHeadingLevel: 1 | 2 | 3 | 4 | 5 | 6;
13
+ /** Optional basic content text (hidden when omitted). */
14
+ contentText?: string | null;
15
+ }
16
+ declare function __VLS_template(): {
17
+ default?(_: {}): any;
18
+ badge?(_: {}): any;
19
+ "header-accessory"?(_: {}): any;
20
+ "custom-content"?(_: {}): any;
21
+ footer?(_: {}): any;
22
+ };
23
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
24
+ as: string;
25
+ imageSrc: null;
26
+ imageAlt: string;
27
+ contentText: null;
28
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
29
+ as: string;
30
+ imageSrc: null;
31
+ imageAlt: string;
32
+ contentText: null;
33
+ }>>> & Readonly<{}>, {
34
+ as: import('reka-ui').AsTag | import('vue').Component;
35
+ imageSrc: string | null;
36
+ imageAlt: string;
37
+ contentText: string | null;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
40
+ export default _default;
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToRuntimeProps<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: import('vue').PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };
50
+ type __VLS_WithDefaults<P, D> = {
51
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
+ default: D[K];
53
+ }> : P[K];
54
+ };
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1 @@
1
+ export { default as ContentCard } from './ContentCard.vue';
@@ -0,0 +1,48 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { FieldOrientation } from './constants';
3
+
4
+ declare function __VLS_template(): {
5
+ default?(_: {}): any;
6
+ };
7
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ class?: HTMLAttributes["class"];
9
+ orientation?: FieldOrientation;
10
+ as?: string;
11
+ }>, {
12
+ orientation: string;
13
+ as: string;
14
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
+ class?: HTMLAttributes["class"];
16
+ orientation?: FieldOrientation;
17
+ as?: string;
18
+ }>, {
19
+ orientation: string;
20
+ as: string;
21
+ }>>> & Readonly<{}>, {
22
+ orientation: FieldOrientation;
23
+ as: string;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };