@defaultusr/dai-ui 1.0.9 → 1.1.3
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/dist/assets/main.css +1 -1
- package/dist/main.js +751 -689
- package/dist/nuxt.js +10 -8
- package/dist/types/components/input_controls/combobox/combobox.stories.d.ts +282 -0
- package/dist/types/components/{combobox → input_controls/combobox}/combobox.vue.d.ts +10 -6
- package/dist/types/components/{form/formControl/inputGroup.vue.d.ts → input_controls/combobox/comboboxButton.vue.d.ts} +3 -11
- package/dist/types/components/input_controls/combobox/comboboxInput.vue.d.ts +12 -0
- package/dist/types/components/input_controls/combobox/index.d.ts +5 -0
- package/dist/types/components/{form/formControl → input_controls/common}/formControl.vue.d.ts +7 -20
- package/dist/types/components/input_controls/common/inputGroup.vue.d.ts +24 -0
- package/dist/types/components/input_controls/index.d.ts +8 -0
- package/dist/types/components/input_controls/input/input.stories.d.ts +111 -0
- package/dist/types/components/{form → input_controls/input}/input.vue.d.ts +4 -1
- package/dist/types/components/input_controls/select/select.stories.d.ts +31 -0
- package/dist/types/components/{form → input_controls/select}/select.vue.d.ts +3 -1
- package/dist/types/components/input_controls/selectbox/selectbox.stories.d.ts +133 -0
- package/dist/types/components/input_controls/selectbox/selectbox.vue.d.ts +21 -0
- package/dist/types/components/{form → input_controls}/textarea.vue.d.ts +1 -0
- package/dist/types/main.d.ts +1 -6
- package/package.json +2 -1
- package/dist/types/components/combobox/comboboxInput.vue.d.ts +0 -2
- package/dist/types/components/form/index.d.ts +0 -5
- /package/dist/types/components/{form → input_controls}/checkbox.vue.d.ts +0 -0
- /package/dist/types/components/{combobox → input_controls/combobox}/comboboxOption.vue.d.ts +0 -0
- /package/dist/types/components/{combobox → input_controls/combobox}/comboboxOptions.vue.d.ts +0 -0
- /package/dist/types/components/{form/formControl → input_controls/common}/btn.vue.d.ts +0 -0
- /package/dist/types/components/{form/formControl → input_controls/common}/hint.vue.d.ts +0 -0
- /package/dist/types/components/{form/formControl → input_controls/common}/label.vue.d.ts +0 -0
- /package/dist/types/components/{form → input_controls}/radio.vue.d.ts +0 -0
- /package/dist/types/components/{switch.vue.d.ts → input_controls/switch.vue.d.ts} +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { IFormControlProps } from "../common/formControl.vue";
|
|
1
2
|
declare const _default: <I extends {
|
|
2
3
|
[key: string]: any;
|
|
3
4
|
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
6
|
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
6
7
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
8
|
+
id?: string;
|
|
7
9
|
options: Array<I>;
|
|
8
10
|
optionText?: keyof I;
|
|
9
11
|
optionValue?: keyof I;
|
|
10
12
|
validators?: Array<(v: string) => boolean | string>;
|
|
11
13
|
showValidationError?: boolean;
|
|
12
|
-
} & {
|
|
14
|
+
} & IFormControlProps & {
|
|
13
15
|
modelValue?: any;
|
|
14
16
|
}) & {}> & import("vue").PublicProps;
|
|
15
17
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/vue3";
|
|
2
|
+
import { ExtractPublicPropTypes } from "vue";
|
|
3
|
+
import { Selectbox } from "../../../main";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: Record<keyof typeof Selectbox, unknown>;
|
|
7
|
+
tags: string[];
|
|
8
|
+
argTypes: {};
|
|
9
|
+
args: {
|
|
10
|
+
options: {
|
|
11
|
+
text: string;
|
|
12
|
+
value: number;
|
|
13
|
+
}[];
|
|
14
|
+
placeholder: string;
|
|
15
|
+
label: string;
|
|
16
|
+
hint: string;
|
|
17
|
+
};
|
|
18
|
+
render: (args: ExtractPublicPropTypes<(<I extends {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
21
|
+
attrs: any;
|
|
22
|
+
slots: {};
|
|
23
|
+
emit: {};
|
|
24
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
25
|
+
props: {
|
|
26
|
+
options: Array<I>;
|
|
27
|
+
optionText?: keyof I | undefined;
|
|
28
|
+
optionValue?: keyof I | undefined;
|
|
29
|
+
placeholder?: string | undefined;
|
|
30
|
+
id?: string | undefined;
|
|
31
|
+
labelPosition?: "above" | "inline" | "inside" | undefined;
|
|
32
|
+
hint?: string | undefined;
|
|
33
|
+
validationMessage?: string | undefined;
|
|
34
|
+
lg?: boolean | undefined;
|
|
35
|
+
sm?: boolean | undefined;
|
|
36
|
+
outlined?: boolean | undefined;
|
|
37
|
+
muted?: boolean | undefined;
|
|
38
|
+
label?: string | undefined;
|
|
39
|
+
labelFor?: string | undefined;
|
|
40
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
41
|
+
variant?: "flat" | "muted" | "outlined" | undefined;
|
|
42
|
+
rounded?: boolean | undefined;
|
|
43
|
+
disabled?: boolean | undefined;
|
|
44
|
+
invalid?: boolean | undefined;
|
|
45
|
+
} & import("vue").PublicProps;
|
|
46
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
47
|
+
attrs: any;
|
|
48
|
+
slots: {};
|
|
49
|
+
emit: {};
|
|
50
|
+
}>) => import("vue").VNode & {
|
|
51
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
52
|
+
})>) => {
|
|
53
|
+
components: {
|
|
54
|
+
Selectbox: <I extends {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
57
|
+
attrs: any;
|
|
58
|
+
slots: {};
|
|
59
|
+
emit: {};
|
|
60
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
61
|
+
props: {
|
|
62
|
+
options: Array<I>;
|
|
63
|
+
optionText?: keyof I | undefined;
|
|
64
|
+
optionValue?: keyof I | undefined;
|
|
65
|
+
placeholder?: string | undefined;
|
|
66
|
+
id?: string | undefined;
|
|
67
|
+
labelPosition?: "above" | "inline" | "inside" | undefined;
|
|
68
|
+
hint?: string | undefined;
|
|
69
|
+
validationMessage?: string | undefined;
|
|
70
|
+
lg?: boolean | undefined;
|
|
71
|
+
sm?: boolean | undefined;
|
|
72
|
+
outlined?: boolean | undefined;
|
|
73
|
+
muted?: boolean | undefined;
|
|
74
|
+
label?: string | undefined;
|
|
75
|
+
labelFor?: string | undefined;
|
|
76
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
77
|
+
variant?: "flat" | "muted" | "outlined" | undefined;
|
|
78
|
+
rounded?: boolean | undefined;
|
|
79
|
+
disabled?: boolean | undefined;
|
|
80
|
+
invalid?: boolean | undefined;
|
|
81
|
+
} & import("vue").PublicProps;
|
|
82
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
83
|
+
attrs: any;
|
|
84
|
+
slots: {};
|
|
85
|
+
emit: {};
|
|
86
|
+
}>) => import("vue").VNode & {
|
|
87
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
setup(this: void): {
|
|
91
|
+
args: ExtractPublicPropTypes<(<I extends {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
94
|
+
attrs: any;
|
|
95
|
+
slots: {};
|
|
96
|
+
emit: {};
|
|
97
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
98
|
+
props: {
|
|
99
|
+
options: Array<I>;
|
|
100
|
+
optionText?: keyof I | undefined;
|
|
101
|
+
optionValue?: keyof I | undefined;
|
|
102
|
+
placeholder?: string | undefined;
|
|
103
|
+
id?: string | undefined;
|
|
104
|
+
labelPosition?: "above" | "inline" | "inside" | undefined;
|
|
105
|
+
hint?: string | undefined;
|
|
106
|
+
validationMessage?: string | undefined;
|
|
107
|
+
lg?: boolean | undefined;
|
|
108
|
+
sm?: boolean | undefined;
|
|
109
|
+
outlined?: boolean | undefined;
|
|
110
|
+
muted?: boolean | undefined;
|
|
111
|
+
label?: string | undefined;
|
|
112
|
+
labelFor?: string | undefined;
|
|
113
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
114
|
+
variant?: "flat" | "muted" | "outlined" | undefined;
|
|
115
|
+
rounded?: boolean | undefined;
|
|
116
|
+
disabled?: boolean | undefined;
|
|
117
|
+
invalid?: boolean | undefined;
|
|
118
|
+
} & import("vue").PublicProps;
|
|
119
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
120
|
+
attrs: any;
|
|
121
|
+
slots: {};
|
|
122
|
+
emit: {};
|
|
123
|
+
}>) => import("vue").VNode & {
|
|
124
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
125
|
+
})>;
|
|
126
|
+
modelValue: import("vue").Ref<any, any>;
|
|
127
|
+
};
|
|
128
|
+
template: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export default meta;
|
|
132
|
+
type Story = StoryObj<typeof meta>;
|
|
133
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IComboboxProps } from "../combobox/combobox.vue";
|
|
2
|
+
declare const _default: <I extends {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & ({
|
|
6
|
+
options: Array<I>;
|
|
7
|
+
optionText?: keyof I;
|
|
8
|
+
optionValue?: keyof I;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
} & IComboboxProps) & {}> & import("vue").PublicProps;
|
|
11
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import("vue").VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
} & {};
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
export { Popover, Menu, TabContainer, TabPanel } from "vue-composable-ui";
|
|
2
2
|
export { useClassList } from "./composables/classList";
|
|
3
|
-
export * from "./components/
|
|
3
|
+
export * from "./components/input_controls";
|
|
4
4
|
export { default as Btn } from "./components/btn.vue";
|
|
5
|
-
export { default as Switch } from "./components/switch.vue";
|
|
6
5
|
export { default as PopoverDialog } from "./components/popoverDialog.vue";
|
|
7
|
-
export { default as Combobox } from "./components/combobox/combobox.vue";
|
|
8
|
-
export { default as ComboboxInput } from "./components/combobox/comboboxInput.vue";
|
|
9
|
-
export { default as ComboboxOptions } from "./components/combobox/comboboxOptions.vue";
|
|
10
|
-
export { default as ComboboxOption } from "./components/combobox/comboboxOption.vue";
|
|
11
6
|
export { default as MenuItems } from "./components/menu/menuItems.vue";
|
|
12
7
|
export { default as MenuItem } from "./components/menu/menuItem.vue";
|
|
13
8
|
export { default as Tab } from "./components/tabs/tab.vue";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defaultusr/dai-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"@nuxt/kit": "^4.0.2",
|
|
51
51
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
52
52
|
"@storybook/addon-a11y": "^9.1.0",
|
|
53
|
+
"@storybook/addon-docs": "^9.1.8",
|
|
53
54
|
"@storybook/addon-essentials": "^9.0.0-alpha.12",
|
|
54
55
|
"@storybook/addon-interactions": "^9.0.0-alpha.10",
|
|
55
56
|
"@storybook/blocks": "^9.0.0-alpha.17",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
/package/dist/types/components/{combobox → input_controls/combobox}/comboboxOptions.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|