@defaultusr/dai-ui 1.0.8 → 1.1.2

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 (29) hide show
  1. package/dist/assets/main.css +1 -1
  2. package/dist/main.js +751 -689
  3. package/dist/types/components/input_controls/combobox/combobox.stories.d.ts +282 -0
  4. package/dist/types/components/{combobox → input_controls/combobox}/combobox.vue.d.ts +10 -6
  5. package/dist/types/components/{form/formControl/inputGroup.vue.d.ts → input_controls/combobox/comboboxButton.vue.d.ts} +3 -11
  6. package/dist/types/components/input_controls/combobox/comboboxInput.vue.d.ts +12 -0
  7. package/dist/types/components/input_controls/combobox/index.d.ts +5 -0
  8. package/dist/types/components/{form/formControl → input_controls/common}/formControl.vue.d.ts +7 -20
  9. package/dist/types/components/input_controls/common/inputGroup.vue.d.ts +24 -0
  10. package/dist/types/components/input_controls/index.d.ts +8 -0
  11. package/dist/types/components/input_controls/input/input.stories.d.ts +111 -0
  12. package/dist/types/components/{form → input_controls/input}/input.vue.d.ts +4 -1
  13. package/dist/types/components/input_controls/select/select.stories.d.ts +31 -0
  14. package/dist/types/components/{form → input_controls/select}/select.vue.d.ts +3 -1
  15. package/dist/types/components/input_controls/selectbox/selectbox.stories.d.ts +133 -0
  16. package/dist/types/components/input_controls/selectbox/selectbox.vue.d.ts +21 -0
  17. package/dist/types/components/{form → input_controls}/textarea.vue.d.ts +1 -0
  18. package/dist/types/main.d.ts +1 -6
  19. package/package.json +2 -1
  20. package/dist/types/components/combobox/comboboxInput.vue.d.ts +0 -2
  21. package/dist/types/components/form/index.d.ts +0 -5
  22. /package/dist/types/components/{form → input_controls}/checkbox.vue.d.ts +0 -0
  23. /package/dist/types/components/{combobox → input_controls/combobox}/comboboxOption.vue.d.ts +0 -0
  24. /package/dist/types/components/{combobox → input_controls/combobox}/comboboxOptions.vue.d.ts +0 -0
  25. /package/dist/types/components/{form/formControl → input_controls/common}/btn.vue.d.ts +0 -0
  26. /package/dist/types/components/{form/formControl → input_controls/common}/hint.vue.d.ts +0 -0
  27. /package/dist/types/components/{form/formControl → input_controls/common}/label.vue.d.ts +0 -0
  28. /package/dist/types/components/{form → input_controls}/radio.vue.d.ts +0 -0
  29. /package/dist/types/components/{switch.vue.d.ts → input_controls/switch.vue.d.ts} +0 -0
@@ -0,0 +1,282 @@
1
+ import type { StoryObj } from "@storybook/vue3";
2
+ import { ExtractPublicPropTypes } from "vue";
3
+ declare const meta: {
4
+ title: string;
5
+ component: {
6
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./combobox.vue").IComboboxProps & {
7
+ modelValue?: any;
8
+ }> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: any) => any;
12
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
13
+ P: {};
14
+ B: {};
15
+ D: {};
16
+ C: {};
17
+ M: {};
18
+ Defaults: {};
19
+ }, Readonly<import("./combobox.vue").IComboboxProps & {
20
+ modelValue?: any;
21
+ }> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
23
+ }>, {}, {}, {}, {}, {}>;
24
+ __isFragment?: never;
25
+ __isTeleport?: never;
26
+ __isSuspense?: never;
27
+ } & import("vue").ComponentOptionsBase<Readonly<import("./combobox.vue").IComboboxProps & {
28
+ modelValue?: any;
29
+ }> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
31
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
+ "update:modelValue": (value: any) => any;
33
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
34
+ $slots: {
35
+ default?: (props: {}) => any;
36
+ };
37
+ });
38
+ subcomponents: {
39
+ ComboboxInput: {
40
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
41
+ P: {};
42
+ B: {};
43
+ D: {};
44
+ C: {};
45
+ M: {};
46
+ Defaults: {};
47
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
48
+ __isFragment?: never;
49
+ __isTeleport?: never;
50
+ __isSuspense?: never;
51
+ } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
52
+ $slots: {
53
+ default?: (props: {}) => any;
54
+ };
55
+ });
56
+ ComboboxOptions: {
57
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
58
+ P: {};
59
+ B: {};
60
+ D: {};
61
+ C: {};
62
+ M: {};
63
+ Defaults: {};
64
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
65
+ __isFragment?: never;
66
+ __isTeleport?: never;
67
+ __isSuspense?: never;
68
+ } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
69
+ $slots: {
70
+ default?: (props: {}) => any;
71
+ };
72
+ });
73
+ ComboboxOption: {
74
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
75
+ value: any;
76
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
77
+ P: {};
78
+ B: {};
79
+ D: {};
80
+ C: {};
81
+ M: {};
82
+ Defaults: {};
83
+ }, Readonly<{
84
+ value: any;
85
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
86
+ __isFragment?: never;
87
+ __isTeleport?: never;
88
+ __isSuspense?: never;
89
+ } & import("vue").ComponentOptionsBase<Readonly<{
90
+ value: any;
91
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
92
+ $slots: {
93
+ default?: (props: {
94
+ isActive: boolean;
95
+ isSelected: boolean;
96
+ }) => any;
97
+ };
98
+ });
99
+ };
100
+ tags: string[];
101
+ argTypes: {};
102
+ args: {
103
+ items: ({
104
+ title: string;
105
+ value: number;
106
+ disabled?: undefined;
107
+ } | {
108
+ title: string;
109
+ value: number;
110
+ disabled: boolean;
111
+ })[];
112
+ };
113
+ render: (args: ExtractPublicPropTypes<{
114
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./combobox.vue").IComboboxProps & {
115
+ modelValue?: any;
116
+ }> & Readonly<{
117
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
118
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
119
+ "update:modelValue": (value: any) => any;
120
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
121
+ P: {};
122
+ B: {};
123
+ D: {};
124
+ C: {};
125
+ M: {};
126
+ Defaults: {};
127
+ }, Readonly<import("./combobox.vue").IComboboxProps & {
128
+ modelValue?: any;
129
+ }> & Readonly<{
130
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
131
+ }>, {}, {}, {}, {}, {}>;
132
+ __isFragment?: never;
133
+ __isTeleport?: never;
134
+ __isSuspense?: never;
135
+ } & import("vue").ComponentOptionsBase<Readonly<import("./combobox.vue").IComboboxProps & {
136
+ modelValue?: any;
137
+ }> & Readonly<{
138
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
139
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
140
+ "update:modelValue": (value: any) => any;
141
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
142
+ $slots: {
143
+ default?: (props: {}) => any;
144
+ };
145
+ })>) => {
146
+ components: {
147
+ Combobox: {
148
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./combobox.vue").IComboboxProps & {
149
+ modelValue?: any;
150
+ }> & Readonly<{
151
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
152
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
153
+ "update:modelValue": (value: any) => any;
154
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
155
+ P: {};
156
+ B: {};
157
+ D: {};
158
+ C: {};
159
+ M: {};
160
+ Defaults: {};
161
+ }, Readonly<import("./combobox.vue").IComboboxProps & {
162
+ modelValue?: any;
163
+ }> & Readonly<{
164
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
165
+ }>, {}, {}, {}, {}, {}>;
166
+ __isFragment?: never;
167
+ __isTeleport?: never;
168
+ __isSuspense?: never;
169
+ } & import("vue").ComponentOptionsBase<Readonly<import("./combobox.vue").IComboboxProps & {
170
+ modelValue?: any;
171
+ }> & Readonly<{
172
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
173
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
174
+ "update:modelValue": (value: any) => any;
175
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
176
+ $slots: {
177
+ default?: (props: {}) => any;
178
+ };
179
+ });
180
+ ComboboxInput: {
181
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
182
+ P: {};
183
+ B: {};
184
+ D: {};
185
+ C: {};
186
+ M: {};
187
+ Defaults: {};
188
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
189
+ __isFragment?: never;
190
+ __isTeleport?: never;
191
+ __isSuspense?: never;
192
+ } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
193
+ $slots: {
194
+ default?: (props: {}) => any;
195
+ };
196
+ });
197
+ ComboboxOptions: {
198
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
199
+ P: {};
200
+ B: {};
201
+ D: {};
202
+ C: {};
203
+ M: {};
204
+ Defaults: {};
205
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
206
+ __isFragment?: never;
207
+ __isTeleport?: never;
208
+ __isSuspense?: never;
209
+ } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
210
+ $slots: {
211
+ default?: (props: {}) => any;
212
+ };
213
+ });
214
+ ComboboxOption: {
215
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
216
+ value: any;
217
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
218
+ P: {};
219
+ B: {};
220
+ D: {};
221
+ C: {};
222
+ M: {};
223
+ Defaults: {};
224
+ }, Readonly<{
225
+ value: any;
226
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
227
+ __isFragment?: never;
228
+ __isTeleport?: never;
229
+ __isSuspense?: never;
230
+ } & import("vue").ComponentOptionsBase<Readonly<{
231
+ value: any;
232
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
233
+ $slots: {
234
+ default?: (props: {
235
+ isActive: boolean;
236
+ isSelected: boolean;
237
+ }) => any;
238
+ };
239
+ });
240
+ };
241
+ setup(this: void): {
242
+ args: ExtractPublicPropTypes<{
243
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./combobox.vue").IComboboxProps & {
244
+ modelValue?: any;
245
+ }> & Readonly<{
246
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
247
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
248
+ "update:modelValue": (value: any) => any;
249
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
250
+ P: {};
251
+ B: {};
252
+ D: {};
253
+ C: {};
254
+ M: {};
255
+ Defaults: {};
256
+ }, Readonly<import("./combobox.vue").IComboboxProps & {
257
+ modelValue?: any;
258
+ }> & Readonly<{
259
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
260
+ }>, {}, {}, {}, {}, {}>;
261
+ __isFragment?: never;
262
+ __isTeleport?: never;
263
+ __isSuspense?: never;
264
+ } & import("vue").ComponentOptionsBase<Readonly<import("./combobox.vue").IComboboxProps & {
265
+ modelValue?: any;
266
+ }> & Readonly<{
267
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
268
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
269
+ "update:modelValue": (value: any) => any;
270
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
271
+ $slots: {
272
+ default?: (props: {}) => any;
273
+ };
274
+ })>;
275
+ modelValue: import("vue").Ref<any, any>;
276
+ };
277
+ template: string;
278
+ };
279
+ };
280
+ export default meta;
281
+ type Story = StoryObj<typeof meta>;
282
+ export declare const Default: Story;
@@ -1,14 +1,18 @@
1
+ import { IFormControlProps } from "../common/formControl.vue";
2
+ export interface IComboboxProps extends IFormControlProps {
3
+ id?: string;
4
+ }
5
+ type __VLS_Props = IComboboxProps;
6
+ type __VLS_PublicProps = __VLS_Props & {
7
+ modelValue?: any;
8
+ };
1
9
  declare var __VLS_11: {};
2
10
  type __VLS_Slots = {} & {
3
11
  default?: (props: typeof __VLS_11) => any;
4
12
  };
5
- declare const __VLS_component: import("vue").DefineComponent<{
6
- modelValue?: any;
7
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
14
  "update:modelValue": (value: any) => any;
9
- }, string, import("vue").PublicProps, Readonly<{
10
- modelValue?: any;
11
- }> & Readonly<{
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
16
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
13
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
18
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,17 +1,9 @@
1
1
  type __VLS_Props = {
2
- label?: string;
3
- labelFor?: string;
4
- outlined?: boolean;
5
- muted?: boolean;
6
- rounded?: boolean;
7
- disabled?: boolean;
8
- invalid?: boolean;
9
- lg?: boolean;
10
- sm?: boolean;
2
+ placeholder?: string;
11
3
  };
12
- declare var __VLS_5: {};
4
+ declare var __VLS_1: {};
13
5
  type __VLS_Slots = {} & {
14
- default?: (props: typeof __VLS_5) => any;
6
+ default?: (props: typeof __VLS_1) => any;
15
7
  };
16
8
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
9
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -0,0 +1,12 @@
1
+ declare var __VLS_7: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_7) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
+ export default _default;
8
+ type __VLS_WithSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
@@ -0,0 +1,5 @@
1
+ export { default as Combobox } from "./combobox.vue";
2
+ export { default as ComboboxInput } from "./comboboxInput.vue";
3
+ export { default as ComboboxButton } from "./comboboxButton.vue";
4
+ export { default as ComboboxOptions } from "./comboboxOptions.vue";
5
+ export { default as ComboboxOption } from "./comboboxOption.vue";
@@ -1,32 +1,19 @@
1
- export interface IFormControlProps {
2
- id?: string;
3
- label?: string;
4
- labelInline?: boolean;
5
- labelInside?: boolean;
1
+ import { IInputGroupProps } from "./inputGroup.vue";
2
+ export interface IFormControlProps extends IInputGroupProps {
3
+ labelPosition?: "above" | "inline" | "inside";
6
4
  hint?: string;
7
5
  validationMessage?: string;
8
- outlined?: boolean;
9
- muted?: boolean;
10
- rounded?: boolean;
11
- disabled?: boolean;
12
- invalid?: boolean;
13
6
  lg?: boolean;
14
7
  sm?: boolean;
15
- autocomplete?: string | boolean;
8
+ outlined?: boolean;
9
+ muted?: boolean;
16
10
  }
17
- declare var __VLS_9: {
18
- attrs: {
19
- class: string;
20
- id: string;
21
- disabled: boolean | undefined;
22
- autocomplete: string;
23
- };
24
- };
11
+ declare var __VLS_9: {};
25
12
  type __VLS_Slots = {} & {
26
13
  default?: (props: typeof __VLS_9) => any;
27
14
  };
28
15
  declare const __VLS_component: import("vue").DefineComponent<IFormControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IFormControlProps> & Readonly<{}>, {
29
- autocomplete: string | boolean;
16
+ labelPosition: "above" | "inline" | "inside";
30
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
18
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
32
19
  export default _default;
@@ -0,0 +1,24 @@
1
+ export interface IInputGroupProps {
2
+ label?: string;
3
+ labelFor?: string;
4
+ size?: "small" | "medium" | "large";
5
+ variant?: "flat" | "muted" | "outlined";
6
+ rounded?: boolean;
7
+ disabled?: boolean;
8
+ invalid?: boolean;
9
+ }
10
+ declare var __VLS_5: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_5) => any;
13
+ };
14
+ declare const __VLS_component: import("vue").DefineComponent<IInputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IInputGroupProps> & Readonly<{}>, {
15
+ size: "small" | "medium" | "large";
16
+ variant: "flat" | "muted" | "outlined";
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,8 @@
1
+ export * from "./combobox";
2
+ export { default as Input } from "./input/input.vue";
3
+ export { default as Select } from "./select/select.vue";
4
+ export { default as Selectbox } from "./selectbox/selectbox.vue";
5
+ export { default as Textarea } from "./textarea.vue";
6
+ export { default as Checkbox } from "./checkbox.vue";
7
+ export { default as Radio } from "./radio.vue";
8
+ export { default as Switch } from "./switch.vue";
@@ -0,0 +1,111 @@
1
+ import type { StoryObj } from "@storybook/vue3";
2
+ declare const meta: {
3
+ title: string;
4
+ component: {
5
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
6
+ id?: string;
7
+ type?: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
8
+ mask?: import("imask").FactoryArg;
9
+ pattern?: string;
10
+ title?: string;
11
+ autocomplete?: string | boolean;
12
+ clearable?: boolean;
13
+ validators?: Array<(v: string) => boolean | string>;
14
+ showValidationError?: boolean;
15
+ } & import("../common/formControl.vue").IFormControlProps & {
16
+ modelValue?: string | number;
17
+ files?: HTMLInputElement["files"];
18
+ }> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
20
+ "onUpdate:files"?: ((value: FileList | null | undefined) => any) | undefined;
21
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ "update:modelValue": (value: string | number | undefined) => any;
23
+ "update:files": (value: FileList | null | undefined) => any;
24
+ }, import("vue").PublicProps, {
25
+ type: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
26
+ autocomplete: string | boolean;
27
+ showValidationError: boolean;
28
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
29
+ P: {};
30
+ B: {};
31
+ D: {};
32
+ C: {};
33
+ M: {};
34
+ Defaults: {};
35
+ }, Readonly<{
36
+ id?: string;
37
+ type?: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
38
+ mask?: import("imask").FactoryArg;
39
+ pattern?: string;
40
+ title?: string;
41
+ autocomplete?: string | boolean;
42
+ clearable?: boolean;
43
+ validators?: Array<(v: string) => boolean | string>;
44
+ showValidationError?: boolean;
45
+ } & import("../common/formControl.vue").IFormControlProps & {
46
+ modelValue?: string | number;
47
+ files?: HTMLInputElement["files"];
48
+ }> & Readonly<{
49
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
50
+ "onUpdate:files"?: ((value: FileList | null | undefined) => any) | undefined;
51
+ }>, {}, {}, {}, {}, {
52
+ type: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
53
+ autocomplete: string | boolean;
54
+ showValidationError: boolean;
55
+ }>;
56
+ __isFragment?: never;
57
+ __isTeleport?: never;
58
+ __isSuspense?: never;
59
+ } & import("vue").ComponentOptionsBase<Readonly<{
60
+ id?: string;
61
+ type?: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
62
+ mask?: import("imask").FactoryArg;
63
+ pattern?: string;
64
+ title?: string;
65
+ autocomplete?: string | boolean;
66
+ clearable?: boolean;
67
+ validators?: Array<(v: string) => boolean | string>;
68
+ showValidationError?: boolean;
69
+ } & import("../common/formControl.vue").IFormControlProps & {
70
+ modelValue?: string | number;
71
+ files?: HTMLInputElement["files"];
72
+ }> & Readonly<{
73
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
74
+ "onUpdate:files"?: ((value: FileList | null | undefined) => any) | undefined;
75
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
76
+ "update:modelValue": (value: string | number | undefined) => any;
77
+ "update:files": (value: FileList | null | undefined) => any;
78
+ }, string, {
79
+ type: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
80
+ autocomplete: string | boolean;
81
+ showValidationError: boolean;
82
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
83
+ $slots: {
84
+ prepend?: (props: {}) => any;
85
+ } & {
86
+ append?: (props: {}) => any;
87
+ };
88
+ });
89
+ tags: string[];
90
+ argTypes: {};
91
+ args: {
92
+ modelValue: string;
93
+ label: string;
94
+ hint: string;
95
+ placeholder: string;
96
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
97
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
98
+ };
99
+ };
100
+ export default meta;
101
+ type Story = StoryObj<typeof meta>;
102
+ export declare const Default: Story;
103
+ export declare const LabelInline: Story;
104
+ export declare const LabelInside: Story;
105
+ export declare const Large: Story;
106
+ export declare const Small: Story;
107
+ export declare const Rounded: Story;
108
+ export declare const Muted: Story;
109
+ export declare const Outlined: Story;
110
+ export declare const Disabled: Story;
111
+ export declare const Invalid: Story;
@@ -1,10 +1,12 @@
1
1
  import { FactoryArg } from "imask";
2
- import { IFormControlProps } from "./formControl/formControl.vue";
2
+ import { IFormControlProps } from "../common/formControl.vue";
3
3
  type __VLS_Props = {
4
+ id?: string;
4
5
  type?: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
5
6
  mask?: FactoryArg;
6
7
  pattern?: string;
7
8
  title?: string;
9
+ autocomplete?: string | boolean;
8
10
  clearable?: boolean;
9
11
  validators?: Array<(v: string) => boolean | string>;
10
12
  showValidationError?: boolean;
@@ -27,6 +29,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
27
29
  "onUpdate:files"?: ((value: FileList | null | undefined) => any) | undefined;
28
30
  }>, {
29
31
  type: "text" | "number" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "color" | "url" | "file";
32
+ autocomplete: string | boolean;
30
33
  showValidationError: boolean;
31
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
35
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -0,0 +1,31 @@
1
+ import type { StoryObj } from "@storybook/vue3";
2
+ import { Select } from "../../../main";
3
+ declare const meta: {
4
+ title: string;
5
+ component: Record<keyof typeof Select, unknown>;
6
+ tags: string[];
7
+ argTypes: {};
8
+ args: {
9
+ options: {
10
+ text: string;
11
+ value: number;
12
+ }[];
13
+ modelValue: number;
14
+ label: string;
15
+ hint: string;
16
+ onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
17
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
18
+ };
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<typeof meta>;
22
+ export declare const Default: Story;
23
+ export declare const LabelInline: Story;
24
+ export declare const LabelInside: Story;
25
+ export declare const Large: Story;
26
+ export declare const Small: Story;
27
+ export declare const Rounded: Story;
28
+ export declare const Muted: Story;
29
+ export declare const Outlined: Story;
30
+ export declare const Disabled: Story;
31
+ export declare const Invalid: Story;
@@ -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;