@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.
- package/README.md +61 -160
- package/dist/AccordionTrigger-BRz5PzEd.js +105 -0
- package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-CK1Um8CY.js +173 -0
- package/dist/FieldSet.vue_vue_type_script_setup_true_lang-D9i4ciy0.js +119 -0
- package/dist/FieldTitle.vue_vue_type_script_setup_true_lang-Bu8UIwRT.js +108 -0
- package/dist/KuatSelect.vue_vue_type_script_setup_true_lang-DP66U_wg.js +493 -0
- package/dist/Toggle.vue_vue_type_script_setup_true_lang-CZM1GrLQ.js +38 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/accordion.js +7 -6
- package/dist/alert-dialog.js +13 -12
- package/dist/badge.js +5 -4
- package/dist/button-group.js +7 -6
- package/dist/button.js +6 -6
- package/dist/checkbox.d.ts +3 -0
- package/dist/checkbox.js +10 -0
- package/dist/components/ui/badge/Badge.vue.d.ts +9 -2
- package/dist/components/ui/badge/constants.d.ts +4 -0
- package/dist/components/ui/badge/index.d.ts +12 -5
- package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +34 -0
- package/dist/components/ui/breadcrumb/index.d.ts +2 -0
- package/dist/components/ui/breadcrumb/types.d.ts +8 -0
- package/dist/components/ui/button/Button.vue.d.ts +13 -3
- package/dist/components/ui/button/constants.d.ts +12 -0
- package/dist/components/ui/button/index.d.ts +10 -6
- package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +20 -6
- package/dist/components/ui/button-group/ButtonGroupText.vue.d.ts +0 -2
- package/dist/components/ui/button-group/constants.d.ts +2 -0
- package/dist/components/ui/button-group/index.d.ts +10 -5
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +13 -0
- package/dist/components/ui/checkbox/CheckboxField.vue.d.ts +68 -0
- package/dist/components/ui/checkbox/constants.d.ts +4 -0
- package/dist/components/ui/checkbox/index.d.ts +4 -0
- package/dist/components/ui/content-card/ContentCard.vue.d.ts +62 -0
- package/dist/components/ui/content-card/index.d.ts +1 -0
- package/dist/components/ui/field/Field.vue.d.ts +48 -0
- package/dist/components/ui/field/FieldContent.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldDescription.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldError.vue.d.ts +33 -0
- package/dist/components/ui/field/FieldGroup.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldLabel.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldLegend.vue.d.ts +43 -0
- package/dist/components/ui/field/FieldSeparator.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldSet.vue.d.ts +26 -0
- package/dist/components/ui/field/FieldTitle.vue.d.ts +26 -0
- package/dist/components/ui/field/constants.d.ts +4 -0
- package/dist/components/ui/field/index.d.ts +12 -0
- package/dist/components/ui/input/Input.vue.d.ts +34 -0
- package/dist/components/ui/input/constants.d.ts +2 -0
- package/dist/components/ui/input/index.d.ts +3 -0
- package/dist/components/ui/kuat-carousel/KuatCarousel.vue.d.ts +47 -0
- package/dist/components/ui/kuat-carousel/KuatCarouselContent.vue.d.ts +25 -0
- package/dist/components/ui/kuat-carousel/KuatCarouselItem.vue.d.ts +25 -0
- package/dist/components/ui/kuat-carousel/KuatCarouselNext.vue.d.ts +16 -0
- package/dist/components/ui/kuat-carousel/KuatCarouselPrevious.vue.d.ts +16 -0
- package/dist/components/ui/kuat-carousel/index.d.ts +6 -0
- package/dist/components/ui/kuat-header/EELogo.vue.d.ts +32 -0
- package/dist/components/ui/kuat-header/KuatHeader.vue.d.ts +55 -0
- package/dist/components/ui/kuat-header/constants.d.ts +4 -0
- package/dist/components/ui/kuat-header/index.d.ts +15 -0
- package/dist/components/ui/kuat-logo-lockup/EELogoIcon.vue.d.ts +18 -0
- package/dist/components/ui/kuat-logo-lockup/KuatLogoLockup.vue.d.ts +45 -0
- package/dist/components/ui/kuat-logo-lockup/constants.d.ts +4 -0
- package/dist/components/ui/kuat-logo-lockup/index.d.ts +4 -0
- package/dist/components/ui/kuat-radial-progress/KuatRadialProgress.vue.d.ts +52 -0
- package/dist/components/ui/kuat-radial-progress/constants.d.ts +4 -0
- package/dist/components/ui/kuat-radial-progress/index.d.ts +3 -0
- package/dist/components/ui/radio/RadioField.vue.d.ts +58 -0
- package/dist/components/ui/radio/RadioGroup.vue.d.ts +31 -0
- package/dist/components/ui/radio/RadioGroupItem.vue.d.ts +22 -0
- package/dist/components/ui/radio/constants.d.ts +4 -0
- package/dist/components/ui/radio/index.d.ts +5 -0
- package/dist/components/ui/select/KuatSelect.vue.d.ts +104 -0
- package/dist/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +52 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +40 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +27 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +72 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
- package/dist/components/ui/select/constants.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +13 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +13 -0
- package/dist/components/ui/switch/SwitchField.vue.d.ts +68 -0
- package/dist/components/ui/switch/constants.d.ts +4 -0
- package/dist/components/ui/switch/index.d.ts +4 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +24 -0
- package/dist/components/ui/textarea/constants.d.ts +2 -0
- package/dist/components/ui/textarea/index.d.ts +3 -0
- package/dist/components/ui/toggle/Toggle.vue.d.ts +42 -0
- package/dist/components/ui/toggle/constants.d.ts +4 -0
- package/dist/components/ui/toggle/index.d.ts +3 -0
- package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +45 -0
- package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +49 -0
- package/dist/components/ui/toggle-group/constants.d.ts +2 -0
- package/dist/components/ui/toggle-group/index.d.ts +4 -0
- package/dist/constants-4SN0MW4f.js +61 -0
- package/dist/constants-BpzIL1jq.js +141 -0
- package/dist/constants-CXAkjttx.js +5 -0
- package/dist/constants-CpIWAssv.js +32 -0
- package/dist/constants-D_fYMnOg.js +154 -0
- package/dist/constants-Ils7NSfg.js +131 -0
- package/dist/field.d.ts +3 -0
- package/dist/field.js +19 -0
- package/dist/index-C3VyxnTa.js +35 -0
- package/dist/index-CBmjn3iX.js +58 -0
- package/dist/index-iz_NZI-V.js +85 -0
- package/dist/index.d.ts +33 -22
- package/dist/index.js +2066 -29
- package/dist/input.d.ts +3 -0
- package/dist/input.js +8 -0
- package/dist/radio.d.ts +3 -0
- package/dist/radio.js +11 -0
- package/dist/select.d.ts +3 -0
- package/dist/select.js +19 -0
- package/dist/style.css +1 -1
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +7 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/textarea.d.ts +3 -0
- package/dist/textarea.js +8 -0
- package/dist/toggle-group.d.ts +5 -0
- package/dist/toggle-group.js +71 -0
- package/dist/toggle.d.ts +3 -0
- package/dist/toggle.js +10 -0
- package/dist/{utils-qaFjX9_3.js → utils-DLUjLwnh.js} +0 -1
- package/package.json +47 -3
- package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-CG4FNPK2.js +0 -107
- package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-chev-oxU.js +0 -185
- package/dist/Button.vue_vue_type_script_setup_true_lang-CtAz6Sf_.js +0 -30
- package/dist/index-B9dF2hh8.js +0 -103
- package/dist/index-CMJyKNIG.js +0 -45
- package/dist/index-D3egriua.js +0 -33
- 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
|
+
};
|
package/dist/accordion.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
i as Accordion,
|
|
6
|
+
t as AccordionContent,
|
|
7
|
+
e as AccordionItem,
|
|
7
8
|
s as AccordionTrigger,
|
|
8
|
-
|
|
9
|
+
n as cn
|
|
9
10
|
};
|
package/dist/alert-dialog.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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-
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
|
|
5
|
+
t as Badge,
|
|
6
|
+
m as badgeVariants,
|
|
6
7
|
e as cn
|
|
7
8
|
};
|
package/dist/button-group.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
import { _ as
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
s as Button,
|
|
6
|
+
m as buttonVariants,
|
|
7
|
+
a as cn
|
|
8
8
|
};
|
package/dist/checkbox.js
ADDED
|
@@ -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 {
|
|
3
|
+
import { BadgeVariant, BadgeRoundness } from './constants';
|
|
4
4
|
|
|
5
5
|
interface Props extends PrimitiveProps {
|
|
6
|
-
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 {
|
|
1
|
+
import { BadgeVariant, BadgeRoundness } from './constants';
|
|
2
2
|
|
|
3
3
|
export { default as Badge } from './Badge.vue';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
} & {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PrimitiveProps } from 'reka-ui';
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonVariant, ButtonSize, ButtonColor } from './constants';
|
|
4
4
|
|
|
5
5
|
interface Props extends PrimitiveProps {
|
|
6
|
-
variant?:
|
|
7
|
-
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 {
|
|
1
|
+
import { ButtonVariant, ButtonSize, ButtonColor } from './constants';
|
|
2
2
|
|
|
3
3
|
export { default as Button } from './Button.vue';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 {
|
|
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?:
|
|
10
|
-
}
|
|
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?:
|
|
13
|
-
}
|
|
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;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
};
|