@kuina-ui/vue 0.0.0-stage → 0.1.1

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 (60) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +142 -2
  3. package/dist/components/avatar-group/AvatarGroup.vue.d.ts +22 -0
  4. package/dist/components/avatar-group/avatar-group.theme.d.ts +26 -0
  5. package/dist/components/avatar-group/index.d.ts +2 -0
  6. package/dist/components/text-field/TextField.vue.d.ts +42 -0
  7. package/dist/components/text-field/index.d.ts +2 -0
  8. package/dist/components/text-field/text-field.theme.d.ts +53 -0
  9. package/dist/components/textarea/Textarea.vue.d.ts +36 -0
  10. package/dist/components/textarea/index.d.ts +2 -0
  11. package/dist/components/textarea/textarea.theme.d.ts +42 -0
  12. package/dist/elements/alert/Alert.vue.d.ts +33 -0
  13. package/dist/elements/alert/alert.theme.d.ts +43 -0
  14. package/dist/elements/alert/index.d.ts +2 -0
  15. package/dist/elements/avatar/Avatar.vue.d.ts +27 -0
  16. package/dist/elements/avatar/avatar.theme.d.ts +52 -0
  17. package/dist/elements/avatar/index.d.ts +2 -0
  18. package/dist/elements/badge/Badge.vue.d.ts +29 -0
  19. package/dist/elements/badge/badge.theme.d.ts +33 -0
  20. package/dist/elements/badge/index.d.ts +2 -0
  21. package/dist/elements/button/Button.vue.d.ts +37 -0
  22. package/dist/elements/button/button.theme.d.ts +66 -0
  23. package/dist/elements/button/index.d.ts +2 -0
  24. package/dist/elements/checkbox/Checkbox.vue.d.ts +23 -0
  25. package/dist/elements/checkbox/checkbox.theme.d.ts +26 -0
  26. package/dist/elements/checkbox/index.d.ts +2 -0
  27. package/dist/elements/circular-progress/CircularProgress.vue.d.ts +13 -0
  28. package/dist/elements/circular-progress/circular-progress.theme.d.ts +6 -0
  29. package/dist/elements/circular-progress/index.d.ts +2 -0
  30. package/dist/elements/loading-dots/LoadingDots.vue.d.ts +12 -0
  31. package/dist/elements/loading-dots/index.d.ts +2 -0
  32. package/dist/elements/loading-dots/loading-dots.theme.d.ts +4 -0
  33. package/dist/elements/loading-indicator/LoadingIndicator.vue.d.ts +12 -0
  34. package/dist/elements/loading-indicator/index.d.ts +2 -0
  35. package/dist/elements/loading-indicator/loading-indicator.theme.d.ts +4 -0
  36. package/dist/elements/radio-group/RadioGroup.vue.d.ts +36 -0
  37. package/dist/elements/radio-group/index.d.ts +2 -0
  38. package/dist/elements/radio-group/radio-group.theme.d.ts +68 -0
  39. package/dist/elements/switch/Switch.vue.d.ts +26 -0
  40. package/dist/elements/switch/index.d.ts +2 -0
  41. package/dist/elements/switch/switch.theme.d.ts +52 -0
  42. package/dist/elements/text-link/TextLink.vue.d.ts +31 -0
  43. package/dist/elements/text-link/index.d.ts +2 -0
  44. package/dist/elements/text-link/text-link.theme.d.ts +40 -0
  45. package/dist/index.d.ts +28 -0
  46. package/dist/index.js +1 -0
  47. package/dist/nuxt.d.ts +2 -0
  48. package/dist/nuxt.js +21 -0
  49. package/dist/shared/composables/useCustomColor.d.ts +8 -0
  50. package/dist/shared/composables/useFieldDescription.d.ts +15 -0
  51. package/dist/shared/utils/tv.d.ts +2 -0
  52. package/dist/src-CcuBQU4y.js +2371 -0
  53. package/package.json +70 -4
  54. package/src/index.css +18 -0
  55. package/src/shared/styles/theme.css +24 -0
  56. package/src/shared/styles/utilities/checkbox-check-mark.css +47 -0
  57. package/src/shared/styles/utilities/loading-dots.css +29 -0
  58. package/src/shared/styles/utilities/loading-indicator.css +33 -0
  59. package/src/shared/styles/variants/dark.css +2 -0
  60. package/src/shared/styles/variants/light.css +1 -0
@@ -0,0 +1,37 @@
1
+ import type { Component } from 'vue';
2
+ import type { ClassNameValue } from '../../shared/utils/tv';
3
+ import type { ButtonSlotName, ButtonThemeVariants } from './button.theme';
4
+ export interface ButtonProps {
5
+ label?: string;
6
+ variant?: ButtonThemeVariants['variant'];
7
+ color?: ButtonThemeVariants['color'];
8
+ size?: ButtonThemeVariants['size'];
9
+ leadingIcon?: Component;
10
+ trailingIcon?: Component;
11
+ square?: boolean;
12
+ pill?: boolean;
13
+ block?: boolean;
14
+ disabled?: boolean;
15
+ loading?: boolean;
16
+ selected?: boolean;
17
+ type?: 'button' | 'submit' | 'reset';
18
+ href?: string;
19
+ ui?: Partial<Record<ButtonSlotName, ClassNameValue>>;
20
+ class?: ClassNameValue;
21
+ }
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
25
+ size: "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
26
+ variant: "soft" | "solid" | "outline" | "ghost";
27
+ color: "primary" | "secondary" | "gray" | "danger" | "neutral";
28
+ pill: boolean;
29
+ type: "button" | "reset" | "submit";
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
31
+ default?: (props: {}) => any;
32
+ }>;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,66 @@
1
+ import { type VariantProps } from '../../shared/utils/tv';
2
+ export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ solid: {
5
+ base: string;
6
+ };
7
+ soft: {
8
+ base: string;
9
+ };
10
+ outline: {
11
+ base: string;
12
+ };
13
+ ghost: {
14
+ base: string;
15
+ };
16
+ };
17
+ color: {
18
+ primary: string;
19
+ secondary: string;
20
+ neutral: string;
21
+ gray: string;
22
+ danger: string;
23
+ };
24
+ size: Record<"3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl", {
25
+ base: string[];
26
+ content: string;
27
+ leadingIcon: string;
28
+ trailingIcon: string;
29
+ loadingIndicator: string;
30
+ }>;
31
+ square: {
32
+ true: string;
33
+ };
34
+ pill: {
35
+ true: string;
36
+ };
37
+ block: {
38
+ true: {
39
+ base: string;
40
+ };
41
+ };
42
+ disabled: {
43
+ true: {
44
+ base: string;
45
+ };
46
+ };
47
+ loading: {
48
+ true: {
49
+ base: string;
50
+ content: string;
51
+ };
52
+ };
53
+ selected: {
54
+ true: string;
55
+ };
56
+ }, {
57
+ base: string;
58
+ loadingOverlay: string;
59
+ loadingIndicator: string;
60
+ content: string;
61
+ label: string;
62
+ leadingIcon: string;
63
+ trailingIcon: string;
64
+ }, undefined, undefined, undefined, undefined>;
65
+ export type ButtonThemeVariants = VariantProps<typeof buttonTheme>;
66
+ export type ButtonSlotName = keyof ReturnType<typeof buttonTheme>;
@@ -0,0 +1,2 @@
1
+ export { default as KButton } from './Button.vue';
2
+ export type { ButtonProps } from './Button.vue';
@@ -0,0 +1,23 @@
1
+ import type { ClassNameValue } from '../../shared/utils/tv';
2
+ import type { CheckboxSlotName, CheckboxThemeVariants } from './checkbox.theme';
3
+ export interface CheckboxProps {
4
+ label: string;
5
+ color?: CheckboxThemeVariants['color'] | (string & {});
6
+ labelPosition?: CheckboxThemeVariants['labelPosition'];
7
+ ui?: Partial<Record<CheckboxSlotName, ClassNameValue>>;
8
+ class?: ClassNameValue;
9
+ }
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ declare const __VLS_export: import("vue").DefineComponent<CheckboxProps & {
13
+ modelValue?: boolean;
14
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:modelValue": (value: boolean) => any;
16
+ }, string, import("vue").PublicProps, Readonly<CheckboxProps & {
17
+ modelValue?: boolean;
18
+ }> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ }>, {
21
+ color: "primary" | "secondary" | (string & {}) | "neutral";
22
+ labelPosition: "start" | "end";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,26 @@
1
+ import { type VariantProps } from '../../shared/utils/tv';
2
+ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
3
+ color: {
4
+ primary: {
5
+ base: string;
6
+ };
7
+ secondary: {
8
+ base: string;
9
+ };
10
+ neutral: {
11
+ base: string;
12
+ };
13
+ };
14
+ labelPosition: {
15
+ start: {
16
+ root: string;
17
+ };
18
+ end: string;
19
+ };
20
+ }, {
21
+ root: string;
22
+ base: string;
23
+ checkMark: string;
24
+ }, undefined, undefined, undefined, undefined>;
25
+ export type CheckboxThemeVariants = VariantProps<typeof checkboxTheme>;
26
+ export type CheckboxSlotName = keyof ReturnType<typeof checkboxTheme>;
@@ -0,0 +1,2 @@
1
+ export { default as KCheckbox } from './Checkbox.vue';
2
+ export type { CheckboxProps } from './Checkbox.vue';
@@ -0,0 +1,13 @@
1
+ import type { ClassNameValue } from '../../shared/utils/tv';
2
+ import type { CircularProgressSlotName } from './circular-progress.theme';
3
+ export interface CircularProgressProps {
4
+ progress: number;
5
+ label?: string;
6
+ ui?: Partial<Record<CircularProgressSlotName, ClassNameValue>>;
7
+ class?: ClassNameValue;
8
+ }
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ declare const __VLS_export: import("vue").DefineComponent<CircularProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CircularProgressProps> & Readonly<{}>, {
12
+ label: string;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,6 @@
1
+ export declare const circularProgressTheme: import("tailwind-variants").TVReturnType<{}, {
2
+ base: string;
3
+ track: string;
4
+ indicator: string;
5
+ }, undefined, undefined, undefined, undefined>;
6
+ export type CircularProgressSlotName = keyof ReturnType<typeof circularProgressTheme>;
@@ -0,0 +1,2 @@
1
+ export { default as KCircularProgress } from './CircularProgress.vue';
2
+ export type { CircularProgressProps } from './CircularProgress.vue';
@@ -0,0 +1,12 @@
1
+ import type { ClassNameValue } from '../../shared/utils/tv';
2
+ import type { LoadingDotsSlotName } from './loading-dots.theme';
3
+ export interface LoadingDotsProps {
4
+ label?: string;
5
+ ui?: Partial<Record<LoadingDotsSlotName, ClassNameValue>>;
6
+ class?: ClassNameValue;
7
+ }
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ declare const __VLS_export: import("vue").DefineComponent<LoadingDotsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LoadingDotsProps> & Readonly<{}>, {
11
+ label: string;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as KLoadingDots } from './LoadingDots.vue';
2
+ export type { LoadingDotsProps } from './LoadingDots.vue';
@@ -0,0 +1,4 @@
1
+ export declare const loadingDotsTheme: import("tailwind-variants").TVReturnType<{}, {
2
+ base: string;
3
+ }, undefined, undefined, undefined, undefined>;
4
+ export type LoadingDotsSlotName = keyof ReturnType<typeof loadingDotsTheme>;
@@ -0,0 +1,12 @@
1
+ import type { ClassNameValue } from '../../shared/utils/tv';
2
+ import type { LoadingIndicatorSlotName } from './loading-indicator.theme';
3
+ export interface LoadingIndicatorProps {
4
+ label?: string;
5
+ ui?: Partial<Record<LoadingIndicatorSlotName, ClassNameValue>>;
6
+ class?: ClassNameValue;
7
+ }
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ declare const __VLS_export: import("vue").DefineComponent<LoadingIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LoadingIndicatorProps> & Readonly<{}>, {
11
+ label: string;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as KLoadingIndicator } from './LoadingIndicator.vue';
2
+ export type { LoadingIndicatorProps } from './LoadingIndicator.vue';
@@ -0,0 +1,4 @@
1
+ export declare const loadingIndicatorTheme: import("tailwind-variants").TVReturnType<{}, {
2
+ base: string;
3
+ }, undefined, undefined, undefined, undefined>;
4
+ export type LoadingIndicatorSlotName = keyof ReturnType<typeof loadingIndicatorTheme>;
@@ -0,0 +1,36 @@
1
+ import type { ClassNameValue } from '../../shared/utils/tv';
2
+ import type { RadioGroupSlotName, RadioGroupThemeVariants } from './radio-group.theme';
3
+ export interface RadioGroupOption {
4
+ value: string;
5
+ label: string;
6
+ description?: string;
7
+ disabled?: boolean;
8
+ }
9
+ export interface RadioGroupProps {
10
+ label: string;
11
+ options: RadioGroupOption[];
12
+ name?: string;
13
+ direction?: RadioGroupThemeVariants['direction'];
14
+ variant?: RadioGroupThemeVariants['variant'];
15
+ color?: RadioGroupThemeVariants['color'] | (string & {});
16
+ hideLabel?: boolean;
17
+ disabled?: boolean;
18
+ errorMessage?: string;
19
+ ui?: Partial<Record<RadioGroupSlotName, ClassNameValue>>;
20
+ class?: ClassNameValue;
21
+ }
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ declare const __VLS_export: import("vue").DefineComponent<RadioGroupProps & {
25
+ modelValue?: string;
26
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (value: string | undefined) => any;
28
+ }, string, import("vue").PublicProps, Readonly<RadioGroupProps & {
29
+ modelValue?: string;
30
+ }> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
32
+ }>, {
33
+ variant: "default" | "card";
34
+ color: "primary" | "secondary" | (string & {}) | "neutral";
35
+ direction: "col" | "row";
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as KRadioGroup } from './RadioGroup.vue';
2
+ export type { RadioGroupOption, RadioGroupProps } from './RadioGroup.vue';
@@ -0,0 +1,68 @@
1
+ import { type VariantProps } from '../../shared/utils/tv';
2
+ export declare const radioGroupTheme: import("tailwind-variants").TVReturnType<{
3
+ variant: {
4
+ default: {
5
+ option: string;
6
+ };
7
+ card: {
8
+ option: string;
9
+ };
10
+ };
11
+ direction: {
12
+ row: string;
13
+ col: string;
14
+ };
15
+ color: {
16
+ primary: {
17
+ base: string;
18
+ };
19
+ secondary: {
20
+ base: string;
21
+ };
22
+ neutral: {
23
+ base: string;
24
+ };
25
+ };
26
+ hideLabel: {
27
+ true: {
28
+ legend: string;
29
+ };
30
+ false: {
31
+ legend: string;
32
+ };
33
+ };
34
+ hasDescriptions: {
35
+ true: string;
36
+ };
37
+ invalid: {
38
+ true: {
39
+ base: string;
40
+ };
41
+ };
42
+ optionDisabled: {
43
+ true: {
44
+ option: string;
45
+ };
46
+ false: {
47
+ option: string;
48
+ };
49
+ };
50
+ optionHasDescription: {
51
+ true: string;
52
+ };
53
+ }, {
54
+ root: string;
55
+ legend: string;
56
+ optionList: string;
57
+ option: string;
58
+ container: string;
59
+ base: string;
60
+ indicator: string;
61
+ wrapper: string;
62
+ label: string;
63
+ description: string;
64
+ errorMessage: string;
65
+ errorIcon: string;
66
+ }, undefined, undefined, undefined, undefined>;
67
+ export type RadioGroupThemeVariants = VariantProps<typeof radioGroupTheme>;
68
+ export type RadioGroupSlotName = keyof ReturnType<typeof radioGroupTheme>;
@@ -0,0 +1,26 @@
1
+ import type { ClassNameValue } from '../../shared/utils/tv';
2
+ import type { SwitchSlotName, SwitchThemeVariants } from './switch.theme';
3
+ export interface SwitchProps {
4
+ label?: string;
5
+ description?: string;
6
+ color?: SwitchThemeVariants['color'] | (string & {});
7
+ labelPosition?: SwitchThemeVariants['labelPosition'];
8
+ block?: boolean;
9
+ disabled?: boolean;
10
+ ui?: Partial<Record<SwitchSlotName, ClassNameValue>>;
11
+ class?: ClassNameValue;
12
+ }
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ declare const __VLS_export: import("vue").DefineComponent<SwitchProps & {
16
+ modelValue?: boolean;
17
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (value: boolean) => any;
19
+ }, string, import("vue").PublicProps, Readonly<SwitchProps & {
20
+ modelValue?: boolean;
21
+ }> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
23
+ }>, {
24
+ color: "primary" | "secondary" | (string & {}) | "neutral";
25
+ labelPosition: "start" | "end";
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,2 @@
1
+ export { default as KSwitch } from './Switch.vue';
2
+ export type { SwitchProps } from './Switch.vue';
@@ -0,0 +1,52 @@
1
+ import { type VariantProps } from '../../shared/utils/tv';
2
+ export declare const switchTheme: import("tailwind-variants").TVReturnType<{
3
+ color: {
4
+ primary: {
5
+ base: string;
6
+ };
7
+ secondary: {
8
+ base: string;
9
+ };
10
+ neutral: {
11
+ base: string;
12
+ };
13
+ };
14
+ labelPosition: {
15
+ start: {
16
+ root: string;
17
+ };
18
+ end: string;
19
+ };
20
+ block: {
21
+ true: {
22
+ root: string;
23
+ };
24
+ false: {
25
+ root: string;
26
+ };
27
+ };
28
+ disabled: {
29
+ true: {
30
+ root: string;
31
+ };
32
+ false: {
33
+ root: string;
34
+ base: string;
35
+ thumb: string;
36
+ };
37
+ };
38
+ hasLabel: {
39
+ true: {
40
+ base: string;
41
+ };
42
+ };
43
+ }, {
44
+ root: string;
45
+ base: string;
46
+ thumb: string;
47
+ wrapper: string;
48
+ label: string;
49
+ description: string;
50
+ }, undefined, undefined, undefined, undefined>;
51
+ export type SwitchThemeVariants = VariantProps<typeof switchTheme>;
52
+ export type SwitchSlotName = keyof ReturnType<typeof switchTheme>;
@@ -0,0 +1,31 @@
1
+ import type { Component } from 'vue';
2
+ import type { ClassNameValue } from '../../shared/utils/tv';
3
+ import type { TextLinkSlotName, TextLinkThemeVariants } from './text-link.theme';
4
+ export interface TextLinkProps {
5
+ label?: string;
6
+ href?: string;
7
+ color?: TextLinkThemeVariants['color'];
8
+ weight?: TextLinkThemeVariants['weight'];
9
+ underline?: boolean;
10
+ external?: boolean;
11
+ leadingIcon?: Component;
12
+ trailingIcon?: Component;
13
+ ui?: Partial<Record<TextLinkSlotName, ClassNameValue>>;
14
+ class?: ClassNameValue;
15
+ }
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TextLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextLinkProps> & Readonly<{}>, {
19
+ color: "primary" | "inherit" | "muted";
20
+ href: string;
21
+ weight: "inherit" | "medium" | "semibold";
22
+ underline: boolean;
23
+ external: boolean;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
25
+ default?: (props: {}) => any;
26
+ }>;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,2 @@
1
+ export { default as KTextLink } from './TextLink.vue';
2
+ export type { TextLinkProps } from './TextLink.vue';
@@ -0,0 +1,40 @@
1
+ import { type VariantProps } from '../../shared/utils/tv';
2
+ export declare const textLinkTheme: import("tailwind-variants").TVReturnType<{
3
+ color: {
4
+ inherit: {
5
+ base: string;
6
+ };
7
+ muted: {
8
+ base: string;
9
+ };
10
+ primary: {
11
+ base: string;
12
+ };
13
+ };
14
+ weight: {
15
+ inherit: string;
16
+ medium: {
17
+ base: string;
18
+ };
19
+ semibold: {
20
+ base: string;
21
+ };
22
+ };
23
+ underline: {
24
+ true: {
25
+ base: string;
26
+ };
27
+ };
28
+ hasIcon: {
29
+ true: {
30
+ base: string;
31
+ };
32
+ };
33
+ }, {
34
+ base: string;
35
+ leadingIcon: string;
36
+ trailingIcon: string;
37
+ newTabHint: string;
38
+ }, undefined, undefined, undefined, undefined>;
39
+ export type TextLinkThemeVariants = VariantProps<typeof textLinkTheme>;
40
+ export type TextLinkSlotName = keyof ReturnType<typeof textLinkTheme>;
@@ -0,0 +1,28 @@
1
+ export { KAvatarGroup } from './components/avatar-group';
2
+ export type { AvatarGroupMember, AvatarGroupProps } from './components/avatar-group';
3
+ export { KTextField } from './components/text-field';
4
+ export type { TextFieldProps } from './components/text-field';
5
+ export { KTextarea } from './components/textarea';
6
+ export type { TextareaProps } from './components/textarea';
7
+ export { KAlert } from './elements/alert';
8
+ export type { AlertProps } from './elements/alert';
9
+ export { KAvatar } from './elements/avatar';
10
+ export type { AvatarProps } from './elements/avatar';
11
+ export { KBadge } from './elements/badge';
12
+ export type { BadgeProps } from './elements/badge';
13
+ export { KButton } from './elements/button';
14
+ export type { ButtonProps } from './elements/button';
15
+ export { KCheckbox } from './elements/checkbox';
16
+ export type { CheckboxProps } from './elements/checkbox';
17
+ export { KCircularProgress } from './elements/circular-progress';
18
+ export type { CircularProgressProps } from './elements/circular-progress';
19
+ export { KLoadingDots } from './elements/loading-dots';
20
+ export type { LoadingDotsProps } from './elements/loading-dots';
21
+ export { KLoadingIndicator } from './elements/loading-indicator';
22
+ export type { LoadingIndicatorProps } from './elements/loading-indicator';
23
+ export { KRadioGroup } from './elements/radio-group';
24
+ export type { RadioGroupOption, RadioGroupProps } from './elements/radio-group';
25
+ export { KSwitch } from './elements/switch';
26
+ export type { SwitchProps } from './elements/switch';
27
+ export { KTextLink } from './elements/text-link';
28
+ export type { TextLinkProps } from './elements/text-link';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { d as KAlert, h as KAvatar, m as KAvatarGroup, u as KBadge, l as KButton, c as KCheckbox, s as KCircularProgress, o as KLoadingDots, a as KLoadingIndicator, i as KRadioGroup, r as KSwitch, p as KTextField, n as KTextLink, f as KTextarea } from "./src-CcuBQU4y.js";
package/dist/nuxt.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
2
+ export default _default;
package/dist/nuxt.js ADDED
@@ -0,0 +1,21 @@
1
+ import { t as e } from "./src-CcuBQU4y.js";
2
+ import { addComponent as t, addVitePlugin as n, defineNuxtModule as r } from "@nuxt/kit";
3
+ import i from "@tailwindcss/vite";
4
+ // src/nuxt.ts
5
+ var a = r({
6
+ meta: {
7
+ name: "@kuina-ui/vue",
8
+ configKey: "kuina",
9
+ compatibility: { nuxt: ">=4.0.0" }
10
+ },
11
+ setup() {
12
+ n(i());
13
+ let r = Object.keys(e).filter((e) => e.startsWith("K"));
14
+ for (let e of r) t({
15
+ name: e,
16
+ export: e,
17
+ filePath: "@kuina-ui/vue"
18
+ });
19
+ }
20
+ });
21
+ export { a as default };
@@ -0,0 +1,8 @@
1
+ import { type MaybeRefOrGetter } from 'vue';
2
+ /** Resolve a color prop to a theme color name, or to the primary color redefined with any other CSS color. */
3
+ export declare function useCustomColor<ThemeColorName extends string>(color: MaybeRefOrGetter<string>, themeColors: Record<ThemeColorName, unknown>): {
4
+ themeColor: import("vue").ComputedRef<ThemeColorName>;
5
+ customColorVariable: import("vue").ComputedRef<{
6
+ '--color-primary': string;
7
+ } | undefined>;
8
+ };
@@ -0,0 +1,15 @@
1
+ interface FieldDescriptionProps {
2
+ id?: string;
3
+ hint?: string;
4
+ errorMessage?: string;
5
+ invalid?: boolean;
6
+ }
7
+ /** Give a form field its ID, link it to its hint or error message, and tell whether it is invalid. */
8
+ export declare function useFieldDescription(fieldProps: FieldDescriptionProps): {
9
+ fieldId: import("vue").ComputedRef<string>;
10
+ hintId: import("vue").ComputedRef<string>;
11
+ errorMessageId: import("vue").ComputedRef<string>;
12
+ isInvalid: import("vue").ComputedRef<boolean>;
13
+ describingElementId: import("vue").ComputedRef<string | undefined>;
14
+ };
15
+ export {};
@@ -0,0 +1,2 @@
1
+ export { tv } from 'tailwind-variants';
2
+ export type { ClassNameValue, VariantProps } from 'tailwind-variants';