@jasmine-ui/vue 0.6.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/LICENSE +21 -0
- package/README.md +77 -0
- package/dist/components/accordion/accordion.composable.d.ts +85 -0
- package/dist/components/accordion/accordion.d.ts +112 -0
- package/dist/components/accordion/accordion.props.d.ts +44 -0
- package/dist/components/accordion/accordion.style.d.ts +202 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/alert/alert.composable.d.ts +87 -0
- package/dist/components/alert/alert.d.ts +89 -0
- package/dist/components/alert/alert.props.d.ts +30 -0
- package/dist/components/alert/alert.style.d.ts +154 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/avatar/avatar.composable.d.ts +79 -0
- package/dist/components/avatar/avatar.d.ts +111 -0
- package/dist/components/avatar/avatar.props.d.ts +50 -0
- package/dist/components/avatar/avatar.style.d.ts +158 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/badge/badge.composable.d.ts +58 -0
- package/dist/components/badge/badge.d.ts +85 -0
- package/dist/components/badge/badge.props.d.ts +35 -0
- package/dist/components/badge/badge.style.d.ts +146 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/button/button.composable.d.ts +14 -0
- package/dist/components/button/button.d.ts +96 -0
- package/dist/components/button/button.props.d.ts +36 -0
- package/dist/components/button/button.style.d.ts +88 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/checkbox.composable.d.ts +56 -0
- package/dist/components/checkbox/checkbox.d.ts +54 -0
- package/dist/components/checkbox/checkbox.props.d.ts +22 -0
- package/dist/components/checkbox/checkbox.style.d.ts +106 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/chip/chip.composable.d.ts +51 -0
- package/dist/components/chip/chip.d.ts +96 -0
- package/dist/components/chip/chip.props.d.ts +35 -0
- package/dist/components/chip/chip.style.d.ts +184 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/code-block/code-block.composable.d.ts +16 -0
- package/dist/components/code-block/code-block.d.ts +105 -0
- package/dist/components/code-block/code-block.props.d.ts +51 -0
- package/dist/components/code-block/code-block.style.d.ts +113 -0
- package/dist/components/code-block/index.d.ts +1 -0
- package/dist/components/combobox/combobox.composable.d.ts +136 -0
- package/dist/components/combobox/combobox.d.ts +127 -0
- package/dist/components/combobox/combobox.props.d.ts +52 -0
- package/dist/components/combobox/combobox.style.d.ts +202 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/divider/divider.composable.d.ts +13 -0
- package/dist/components/divider/divider.d.ts +47 -0
- package/dist/components/divider/divider.props.d.ts +15 -0
- package/dist/components/divider/divider.style.d.ts +43 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/drawer/drawer.composable.d.ts +82 -0
- package/dist/components/drawer/drawer.d.ts +256 -0
- package/dist/components/drawer/drawer.props.d.ts +34 -0
- package/dist/components/drawer/drawer.style.d.ts +97 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/dropdown/dropdown.d.ts +102 -0
- package/dist/components/dropdown/dropdown.props.d.ts +36 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/input.composable.d.ts +164 -0
- package/dist/components/input/input.d.ts +213 -0
- package/dist/components/input/input.props.d.ts +83 -0
- package/dist/components/input/input.style.d.ts +187 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/kbd.composable.d.ts +40 -0
- package/dist/components/kbd/kbd.d.ts +46 -0
- package/dist/components/kbd/kbd.props.d.ts +20 -0
- package/dist/components/kbd/kbd.style.d.ts +59 -0
- package/dist/components/list/index.d.ts +3 -0
- package/dist/components/list/list.composable.d.ts +40 -0
- package/dist/components/list/list.d.ts +148 -0
- package/dist/components/list/list.props.d.ts +40 -0
- package/dist/components/list/list.style.d.ts +52 -0
- package/dist/components/list-item/index.d.ts +1 -0
- package/dist/components/list-item/list-item.composable.d.ts +91 -0
- package/dist/components/list-item/list-item.d.ts +115 -0
- package/dist/components/list-item/list-item.props.d.ts +43 -0
- package/dist/components/list-item/list-item.style.d.ts +139 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/modal.composable.d.ts +114 -0
- package/dist/components/modal/modal.d.ts +274 -0
- package/dist/components/modal/modal.props.d.ts +44 -0
- package/dist/components/modal/modal.style.d.ts +190 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/pagination.composable.d.ts +87 -0
- package/dist/components/pagination/pagination.d.ts +150 -0
- package/dist/components/pagination/pagination.props.d.ts +42 -0
- package/dist/components/pagination/pagination.style.d.ts +196 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/popover.composable.d.ts +42 -0
- package/dist/components/popover/popover.d.ts +142 -0
- package/dist/components/popover/popover.props.d.ts +51 -0
- package/dist/components/popover/popover.style.d.ts +28 -0
- package/dist/components/popover-list/index.d.ts +1 -0
- package/dist/components/popover-list/popover-list.d.ts +158 -0
- package/dist/components/popover-list/popover-list.props.d.ts +73 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/radio-group.composable.d.ts +13 -0
- package/dist/components/radio-group/radio-group.d.ts +80 -0
- package/dist/components/radio-group/radio-group.props.d.ts +28 -0
- package/dist/components/radio-group/radio-group.style.d.ts +16 -0
- package/dist/components/radio-group/radio.composable.d.ts +45 -0
- package/dist/components/radio-group/radio.d.ts +64 -0
- package/dist/components/radio-group/radio.props.d.ts +23 -0
- package/dist/components/radio-group/radio.style.d.ts +103 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/select.composable.d.ts +115 -0
- package/dist/components/select/select.d.ts +123 -0
- package/dist/components/select/select.props.d.ts +52 -0
- package/dist/components/select/select.style.d.ts +199 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/spinner.composable.d.ts +29 -0
- package/dist/components/spinner/spinner.d.ts +23 -0
- package/dist/components/spinner/spinner.props.d.ts +12 -0
- package/dist/components/spinner/spinner.style.d.ts +97 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/switch.composable.d.ts +76 -0
- package/dist/components/switch/switch.d.ts +100 -0
- package/dist/components/switch/switch.props.d.ts +37 -0
- package/dist/components/switch/switch.style.d.ts +196 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/table.composable.d.ts +162 -0
- package/dist/components/table/table.d.ts +162 -0
- package/dist/components/table/table.props.d.ts +56 -0
- package/dist/components/table/table.style.d.ts +193 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/tabs.composable.d.ts +93 -0
- package/dist/components/tabs/tabs.d.ts +121 -0
- package/dist/components/tabs/tabs.props.d.ts +48 -0
- package/dist/components/tabs/tabs.style.d.ts +253 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/text.composable.d.ts +12 -0
- package/dist/components/text/text.d.ts +56 -0
- package/dist/components/text/text.props.d.ts +19 -0
- package/dist/components/text/text.style.d.ts +83 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/textarea.composable.d.ts +149 -0
- package/dist/components/textarea/textarea.d.ts +250 -0
- package/dist/components/textarea/textarea.props.d.ts +99 -0
- package/dist/components/textarea/textarea.style.d.ts +184 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/toast-provider.d.ts +47 -0
- package/dist/components/toast/toast.composable.d.ts +16 -0
- package/dist/components/toast/toast.props.d.ts +14 -0
- package/dist/components/toast/toast.provider.d.ts +48 -0
- package/dist/components/toast/toast.style.d.ts +76 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.composable.d.ts +85 -0
- package/dist/components/tooltip/tooltip.d.ts +119 -0
- package/dist/components/tooltip/tooltip.props.d.ts +53 -0
- package/dist/components/tooltip/tooltip.style.d.ts +32 -0
- package/dist/composables/dismiss-shake.composable.d.ts +13 -0
- package/dist/css-BRq03xhW.js +3 -0
- package/dist/css-BT3ulMUY.js +2 -0
- package/dist/html-CJhGHSsv.js +2 -0
- package/dist/html-DM_Fd1As.js +10 -0
- package/dist/index.d.ts +29 -0
- package/dist/jasmine-ui.css +3 -0
- package/dist/jasmine-ui.js +11858 -0
- package/dist/javascript-CkfBz3il.js +3 -0
- package/dist/javascript-CwUFKmKO.js +2 -0
- package/dist/json-BPXqV38U.js +3 -0
- package/dist/json-DHmMgjNi.js +2 -0
- package/dist/jsonc-DVpPCz25.js +3 -0
- package/dist/jsx-CHO6wZNT.js +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/rust-qf9jV5qU.js +3 -0
- package/dist/styles/shiki-theme.d.ts +11 -0
- package/dist/types/common.d.ts +89 -0
- package/dist/types/shared-props.d.ts +142 -0
- package/dist/typescript-Cil9iWXl.js +3 -0
- package/dist/typescript-CoNvJdtl.js +2 -0
- package/dist/utils/shiki.d.ts +12 -0
- package/dist/vue-Bgv7yiBd.js +21 -0
- package/package.json +133 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComputedRef, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { badgeProps } from './badge.props';
|
|
3
|
+
type BadgeProps = ExtractPropTypes<typeof badgeProps>;
|
|
4
|
+
interface SlotFlags {
|
|
5
|
+
/** Whether the content slot has content (custom badge content) */
|
|
6
|
+
hasContentSlot: ComputedRef<boolean>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Composable that handles Badge component logic.
|
|
10
|
+
* Returns computed class bindings and derived dot state.
|
|
11
|
+
*/
|
|
12
|
+
export declare const useBadge: (props: BadgeProps, slotFlags: SlotFlags) => {
|
|
13
|
+
classes: ComputedRef<{
|
|
14
|
+
wrapper: (slotProps?: ({
|
|
15
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
16
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
17
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
18
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
19
|
+
base: (slotProps?: ({
|
|
20
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
21
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
22
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
23
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
24
|
+
ping: (slotProps?: ({
|
|
25
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
26
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
27
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
28
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
29
|
+
content: (slotProps?: ({
|
|
30
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
31
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
32
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
33
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
34
|
+
} & {
|
|
35
|
+
wrapper: (slotProps?: ({
|
|
36
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
37
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
38
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
39
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
40
|
+
base: (slotProps?: ({
|
|
41
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
42
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
43
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
44
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
45
|
+
ping: (slotProps?: ({
|
|
46
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
47
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
48
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
49
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
50
|
+
content: (slotProps?: ({
|
|
51
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
52
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
53
|
+
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
54
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
55
|
+
} & {}>;
|
|
56
|
+
isDot: ComputedRef<boolean>;
|
|
57
|
+
};
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
content?(_: {}): any;
|
|
6
|
+
content?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
content: {
|
|
14
|
+
type: import('vue').PropType<string | number>;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
color: {
|
|
18
|
+
type: import('vue').PropType<import('../..').Color>;
|
|
19
|
+
default: "primary";
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: import('vue').PropType<import('../..').Size>;
|
|
23
|
+
default: "md";
|
|
24
|
+
};
|
|
25
|
+
placement: {
|
|
26
|
+
type: import('vue').PropType<import('../..').BadgePlacement>;
|
|
27
|
+
default: "top-right";
|
|
28
|
+
};
|
|
29
|
+
isIndicator: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
showOutline: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
isDisabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
content: {
|
|
43
|
+
type: import('vue').PropType<string | number>;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
color: {
|
|
47
|
+
type: import('vue').PropType<import('../..').Color>;
|
|
48
|
+
default: "primary";
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
type: import('vue').PropType<import('../..').Size>;
|
|
52
|
+
default: "md";
|
|
53
|
+
};
|
|
54
|
+
placement: {
|
|
55
|
+
type: import('vue').PropType<import('../..').BadgePlacement>;
|
|
56
|
+
default: "top-right";
|
|
57
|
+
};
|
|
58
|
+
isIndicator: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
showOutline: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
isDisabled: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
}>> & Readonly<{}>, {
|
|
71
|
+
content: string | number;
|
|
72
|
+
color: import('../..').Color;
|
|
73
|
+
size: import('../..').Size;
|
|
74
|
+
isDisabled: boolean;
|
|
75
|
+
placement: import('../..').BadgePlacement;
|
|
76
|
+
isIndicator: boolean;
|
|
77
|
+
showOutline: boolean;
|
|
78
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
79
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
80
|
+
export default _default;
|
|
81
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
82
|
+
new (): {
|
|
83
|
+
$slots: S;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
/** Props definition for the Badge component */
|
|
3
|
+
export declare const badgeProps: {
|
|
4
|
+
/** Text or numeric content displayed inside the badge */
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<string | number>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
color: {
|
|
10
|
+
type: PropType<import('../..').Color>;
|
|
11
|
+
default: "primary";
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
type: PropType<import('../..').Size>;
|
|
15
|
+
default: "md";
|
|
16
|
+
};
|
|
17
|
+
placement: {
|
|
18
|
+
type: PropType<import('../..').BadgePlacement>;
|
|
19
|
+
default: "top-right";
|
|
20
|
+
};
|
|
21
|
+
/** Enables pulsing ping animation on the badge */
|
|
22
|
+
isIndicator: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
/** Shows a contrasting outline ring around the badge */
|
|
27
|
+
showOutline: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
isDisabled: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/** Tailwind Variants definition for the Badge component */
|
|
2
|
+
export declare const badgeVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
color: {
|
|
4
|
+
default: {
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
primary: {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
danger: {
|
|
11
|
+
base: string;
|
|
12
|
+
};
|
|
13
|
+
success: {
|
|
14
|
+
base: string;
|
|
15
|
+
};
|
|
16
|
+
warning: {
|
|
17
|
+
base: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
sm: {
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
md: {
|
|
25
|
+
base: string;
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
base: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
placement: {
|
|
32
|
+
'top-right': {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
'top-left': {
|
|
36
|
+
base: string;
|
|
37
|
+
};
|
|
38
|
+
'bottom-right': {
|
|
39
|
+
base: string;
|
|
40
|
+
};
|
|
41
|
+
'bottom-left': {
|
|
42
|
+
base: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
wrapper: string;
|
|
47
|
+
base: string;
|
|
48
|
+
ping: string;
|
|
49
|
+
content: string;
|
|
50
|
+
}, undefined, {
|
|
51
|
+
color: {
|
|
52
|
+
default: {
|
|
53
|
+
base: string;
|
|
54
|
+
};
|
|
55
|
+
primary: {
|
|
56
|
+
base: string;
|
|
57
|
+
};
|
|
58
|
+
danger: {
|
|
59
|
+
base: string;
|
|
60
|
+
};
|
|
61
|
+
success: {
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
warning: {
|
|
65
|
+
base: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
size: {
|
|
69
|
+
sm: {
|
|
70
|
+
base: string;
|
|
71
|
+
};
|
|
72
|
+
md: {
|
|
73
|
+
base: string;
|
|
74
|
+
};
|
|
75
|
+
lg: {
|
|
76
|
+
base: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
placement: {
|
|
80
|
+
'top-right': {
|
|
81
|
+
base: string;
|
|
82
|
+
};
|
|
83
|
+
'top-left': {
|
|
84
|
+
base: string;
|
|
85
|
+
};
|
|
86
|
+
'bottom-right': {
|
|
87
|
+
base: string;
|
|
88
|
+
};
|
|
89
|
+
'bottom-left': {
|
|
90
|
+
base: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
wrapper: string;
|
|
95
|
+
base: string;
|
|
96
|
+
ping: string;
|
|
97
|
+
content: string;
|
|
98
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
99
|
+
color: {
|
|
100
|
+
default: {
|
|
101
|
+
base: string;
|
|
102
|
+
};
|
|
103
|
+
primary: {
|
|
104
|
+
base: string;
|
|
105
|
+
};
|
|
106
|
+
danger: {
|
|
107
|
+
base: string;
|
|
108
|
+
};
|
|
109
|
+
success: {
|
|
110
|
+
base: string;
|
|
111
|
+
};
|
|
112
|
+
warning: {
|
|
113
|
+
base: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
size: {
|
|
117
|
+
sm: {
|
|
118
|
+
base: string;
|
|
119
|
+
};
|
|
120
|
+
md: {
|
|
121
|
+
base: string;
|
|
122
|
+
};
|
|
123
|
+
lg: {
|
|
124
|
+
base: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
placement: {
|
|
128
|
+
'top-right': {
|
|
129
|
+
base: string;
|
|
130
|
+
};
|
|
131
|
+
'top-left': {
|
|
132
|
+
base: string;
|
|
133
|
+
};
|
|
134
|
+
'bottom-right': {
|
|
135
|
+
base: string;
|
|
136
|
+
};
|
|
137
|
+
'bottom-left': {
|
|
138
|
+
base: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
wrapper: string;
|
|
143
|
+
base: string;
|
|
144
|
+
ping: string;
|
|
145
|
+
content: string;
|
|
146
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Badge } from './badge';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { Size } from '../../types/common';
|
|
3
|
+
import { buttonProps } from './button.props';
|
|
4
|
+
type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
5
|
+
/**
|
|
6
|
+
* Composable that handles Button component logic.
|
|
7
|
+
* Returns computed class bindings and event handlers.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useButton: (props: ButtonProps, emit: (event: "click", payload: MouseEvent) => void) => {
|
|
10
|
+
classes: import('vue').ComputedRef<string>;
|
|
11
|
+
spinnerSize: import('vue').ComputedRef<Size>;
|
|
12
|
+
handleClick: (event: MouseEvent) => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLButtonElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
color: {
|
|
12
|
+
type: import('vue').PropType<import('../..').Color>;
|
|
13
|
+
default: "primary";
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
type: import('vue').PropType<import('../..').Size>;
|
|
17
|
+
default: "md";
|
|
18
|
+
};
|
|
19
|
+
variant: {
|
|
20
|
+
type: import('vue').PropType<import('../..').Variant>;
|
|
21
|
+
default: "solid";
|
|
22
|
+
};
|
|
23
|
+
radius: {
|
|
24
|
+
type: import('vue').PropType<import('../..').Radius>;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
isDisabled: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
isLoading: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
isIconOnly: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
type: {
|
|
40
|
+
type: import('vue').PropType<"button" | "submit" | "reset">;
|
|
41
|
+
default: "button";
|
|
42
|
+
};
|
|
43
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
click: (event: MouseEvent) => any;
|
|
45
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
color: {
|
|
47
|
+
type: import('vue').PropType<import('../..').Color>;
|
|
48
|
+
default: "primary";
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
type: import('vue').PropType<import('../..').Size>;
|
|
52
|
+
default: "md";
|
|
53
|
+
};
|
|
54
|
+
variant: {
|
|
55
|
+
type: import('vue').PropType<import('../..').Variant>;
|
|
56
|
+
default: "solid";
|
|
57
|
+
};
|
|
58
|
+
radius: {
|
|
59
|
+
type: import('vue').PropType<import('../..').Radius>;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
isDisabled: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
isLoading: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
isIconOnly: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
type: {
|
|
75
|
+
type: import('vue').PropType<"button" | "submit" | "reset">;
|
|
76
|
+
default: "button";
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{
|
|
79
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
variant: import('../..').Variant;
|
|
82
|
+
color: import('../..').Color;
|
|
83
|
+
size: import('../..').Size;
|
|
84
|
+
radius: import('../..').Radius;
|
|
85
|
+
type: "button" | "submit" | "reset";
|
|
86
|
+
isDisabled: boolean;
|
|
87
|
+
isIconOnly: boolean;
|
|
88
|
+
isLoading: boolean;
|
|
89
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
90
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
91
|
+
export default _default;
|
|
92
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
93
|
+
new (): {
|
|
94
|
+
$slots: S;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Radius } from '../../types/common';
|
|
3
|
+
export declare const buttonProps: {
|
|
4
|
+
color: {
|
|
5
|
+
type: PropType<import('../../types/common').Color>;
|
|
6
|
+
default: "primary";
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
type: PropType<import('../../types/common').Size>;
|
|
10
|
+
default: "md";
|
|
11
|
+
};
|
|
12
|
+
variant: {
|
|
13
|
+
type: PropType<import('../../types/common').Variant>;
|
|
14
|
+
default: "solid";
|
|
15
|
+
};
|
|
16
|
+
radius: {
|
|
17
|
+
type: PropType<Radius>;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
isDisabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
isLoading: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
isIconOnly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
type: {
|
|
33
|
+
type: PropType<"button" | "submit" | "reset">;
|
|
34
|
+
default: "button";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
default: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
danger: string;
|
|
6
|
+
success: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
};
|
|
9
|
+
variant: {
|
|
10
|
+
solid: string;
|
|
11
|
+
outline: string;
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
};
|
|
19
|
+
radius: {
|
|
20
|
+
none: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
full: string;
|
|
25
|
+
};
|
|
26
|
+
isIconOnly: {
|
|
27
|
+
true: string;
|
|
28
|
+
false: string;
|
|
29
|
+
};
|
|
30
|
+
}, undefined, "button", {
|
|
31
|
+
color: {
|
|
32
|
+
default: string;
|
|
33
|
+
primary: string;
|
|
34
|
+
danger: string;
|
|
35
|
+
success: string;
|
|
36
|
+
warning: string;
|
|
37
|
+
};
|
|
38
|
+
variant: {
|
|
39
|
+
solid: string;
|
|
40
|
+
outline: string;
|
|
41
|
+
text: string;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
sm: string;
|
|
45
|
+
md: string;
|
|
46
|
+
lg: string;
|
|
47
|
+
};
|
|
48
|
+
radius: {
|
|
49
|
+
none: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
md: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
full: string;
|
|
54
|
+
};
|
|
55
|
+
isIconOnly: {
|
|
56
|
+
true: string;
|
|
57
|
+
false: string;
|
|
58
|
+
};
|
|
59
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
60
|
+
color: {
|
|
61
|
+
default: string;
|
|
62
|
+
primary: string;
|
|
63
|
+
danger: string;
|
|
64
|
+
success: string;
|
|
65
|
+
warning: string;
|
|
66
|
+
};
|
|
67
|
+
variant: {
|
|
68
|
+
solid: string;
|
|
69
|
+
outline: string;
|
|
70
|
+
text: string;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
sm: string;
|
|
74
|
+
md: string;
|
|
75
|
+
lg: string;
|
|
76
|
+
};
|
|
77
|
+
radius: {
|
|
78
|
+
none: string;
|
|
79
|
+
sm: string;
|
|
80
|
+
md: string;
|
|
81
|
+
lg: string;
|
|
82
|
+
full: string;
|
|
83
|
+
};
|
|
84
|
+
isIconOnly: {
|
|
85
|
+
true: string;
|
|
86
|
+
false: string;
|
|
87
|
+
};
|
|
88
|
+
}, undefined, "button", unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from './button';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { checkboxProps } from './checkbox.props';
|
|
3
|
+
type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
4
|
+
type CheckboxEmitFn = (event: 'update:modelValue', value: boolean) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Composable that handles Checkbox component logic.
|
|
7
|
+
* Returns computed class bindings and toggle handlers.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useCheckbox: (props: CheckboxProps, emit: CheckboxEmitFn) => {
|
|
10
|
+
classes: import('vue').ComputedRef<{
|
|
11
|
+
root: (slotProps?: ({
|
|
12
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
13
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
14
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
15
|
+
box: (slotProps?: ({
|
|
16
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
17
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
18
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
19
|
+
indicator: (slotProps?: ({
|
|
20
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
21
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
22
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
23
|
+
icon: (slotProps?: ({
|
|
24
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
25
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
26
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
27
|
+
label: (slotProps?: ({
|
|
28
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
29
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
30
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
31
|
+
} & {
|
|
32
|
+
root: (slotProps?: ({
|
|
33
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
34
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
35
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
36
|
+
box: (slotProps?: ({
|
|
37
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
38
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
39
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
40
|
+
indicator: (slotProps?: ({
|
|
41
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
42
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
43
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
44
|
+
icon: (slotProps?: ({
|
|
45
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
46
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
47
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
48
|
+
label: (slotProps?: ({
|
|
49
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | undefined;
|
|
50
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
51
|
+
} & import('tailwind-variants').ClassProp<import('tailwind-merge').ClassNameValue>) | undefined) => string;
|
|
52
|
+
} & {}>;
|
|
53
|
+
toggle: () => void;
|
|
54
|
+
handleChange: (value: boolean) => void;
|
|
55
|
+
};
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
color: {
|
|
7
|
+
type: import('vue').PropType<import('../..').Color>;
|
|
8
|
+
default: "primary";
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
type: import('vue').PropType<import('../..').Size>;
|
|
12
|
+
default: "md";
|
|
13
|
+
};
|
|
14
|
+
isDisabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
label: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (value: boolean) => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
color: {
|
|
30
|
+
type: import('vue').PropType<import('../..').Color>;
|
|
31
|
+
default: "primary";
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
type: import('vue').PropType<import('../..').Size>;
|
|
35
|
+
default: "md";
|
|
36
|
+
};
|
|
37
|
+
isDisabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
label: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
color: import('../..').Color;
|
|
49
|
+
size: import('../..').Size;
|
|
50
|
+
label: string;
|
|
51
|
+
modelValue: boolean;
|
|
52
|
+
isDisabled: boolean;
|
|
53
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
54
|
+
export default _default;
|