@topvisor/ui 0.0.41 → 0.0.42

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 (159) hide show
  1. package/.chunks/datepicker-126a4e1b.amd.js +234 -0
  2. package/.chunks/datepicker-126a4e1b.amd.js.map +1 -0
  3. package/.chunks/datepicker-47a90829.es.js +275 -0
  4. package/.chunks/datepicker-47a90829.es.js.map +1 -0
  5. package/.chunks/{forms-7f061546.es.js → forms-15b83561.es.js} +19 -18
  6. package/.chunks/forms-15b83561.es.js.map +1 -0
  7. package/.chunks/forms-41d0318c.amd.js +3 -0
  8. package/.chunks/forms-41d0318c.amd.js.map +1 -0
  9. package/.chunks/popup-431fc5d5.amd.js +377 -0
  10. package/.chunks/popup-431fc5d5.amd.js.map +1 -0
  11. package/.chunks/{popup-05538243.es.js → popup-e1bbd684.es.js} +429 -427
  12. package/.chunks/popup-e1bbd684.es.js.map +1 -0
  13. package/README.md +80 -80
  14. package/assets/core.css +1 -1
  15. package/assets/forms.css +1 -1
  16. package/build/cssModules.d.ts +13 -0
  17. package/build/plugin/amdFix.d.ts +8 -0
  18. package/build/plugin/autoloadCSS.d.ts +19 -0
  19. package/build/rollup.config.d.ts +15 -0
  20. package/common/common.d.ts +1 -0
  21. package/core/core.amd.js +1 -1
  22. package/core/core.d.ts +3 -0
  23. package/core/core.js +1 -1
  24. package/forms/forms.amd.js +1 -1
  25. package/forms/forms.d.ts +1 -0
  26. package/forms/forms.js +1 -1
  27. package/forms/helpers.amd.js.map +1 -1
  28. package/forms/helpers.d.ts +1 -0
  29. package/forms/helpers.js.map +1 -1
  30. package/formsExt/formsExt.amd.js +1 -1
  31. package/formsExt/formsExt.amd.js.map +1 -1
  32. package/formsExt/formsExt.d.ts +1 -0
  33. package/formsExt/formsExt.js +1 -1
  34. package/formsExt/formsExt.js.map +1 -1
  35. package/icomoon/demo-files/demo.css +161 -161
  36. package/icomoon/demo-files/demo.js +30 -30
  37. package/icomoon/demo.html +2945 -2945
  38. package/icomoon/fonts/Topvisor-2.svg +232 -232
  39. package/icomoon/style.css +647 -647
  40. package/package.json +19 -19
  41. package/popup/popup.amd.js +1 -1
  42. package/popup/popup.amd.js.map +1 -1
  43. package/popup/popup.d.ts +1 -0
  44. package/popup/popup.js +17 -17
  45. package/popup/popup.js.map +1 -1
  46. package/popup/worker.amd.js +1 -1
  47. package/popup/worker.amd.js.map +1 -1
  48. package/popup/worker.d.ts +1 -0
  49. package/popup/worker.js +3 -2
  50. package/popup/worker.js.map +1 -1
  51. package/src/components/common/common.d.ts +0 -0
  52. package/src/components/common/icon/icon.d.ts +4 -0
  53. package/src/components/component.d.ts +25 -0
  54. package/src/components/forms/avatar/avatar.d.ts +29 -0
  55. package/src/components/forms/avatar/avatar.stories.d.ts +59 -0
  56. package/src/components/forms/avatar/avatar.vue.d.ts +26 -0
  57. package/src/components/forms/button/button.d.ts +40 -0
  58. package/src/components/forms/button/button.stories.d.ts +313 -0
  59. package/src/components/forms/button/button.vue.d.ts +39 -0
  60. package/src/components/forms/checkbox/checkbox.d.ts +22 -0
  61. package/src/components/forms/checkbox/checkbox.stories.d.ts +176 -0
  62. package/src/components/forms/checkbox/checkbox.vue.d.ts +23 -0
  63. package/src/components/forms/controlLabel/controlLabel.d.ts +4 -0
  64. package/src/components/forms/controlLabel/controlLabel.stories.d.ts +97 -0
  65. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +19 -0
  66. package/src/components/forms/forms.d.ts +12 -0
  67. package/src/components/forms/helpers.d.ts +10 -0
  68. package/src/components/forms/hint/hint.d.ts +8 -0
  69. package/src/components/forms/hint/hint.stories.d.ts +138 -0
  70. package/src/components/forms/hint/hint.vue.d.ts +12 -0
  71. package/src/components/forms/input/input.d.ts +26 -0
  72. package/src/components/forms/input/input.stories.d.ts +255 -0
  73. package/src/components/forms/input/input.vue.d.ts +40 -0
  74. package/src/components/forms/inputDate/datepicker.d.ts +5 -0
  75. package/src/components/forms/inputDate/inputDate.d.ts +3 -0
  76. package/src/components/forms/inputDate/inputDate.stories.d.ts +108 -0
  77. package/src/components/forms/inputDate/inputDate.vue.d.ts +30 -0
  78. package/src/components/forms/inputRange/inputRange.d.ts +2 -0
  79. package/src/components/forms/inputRange/inputRange.stories.d.ts +405 -0
  80. package/src/components/forms/inputRange/inputRange.vue.d.ts +10 -0
  81. package/src/components/forms/radio/radio.d.ts +14 -0
  82. package/src/components/forms/radio/radio.stories.d.ts +168 -0
  83. package/src/components/forms/radio/radio.vue.d.ts +23 -0
  84. package/src/components/forms/select/select.d.ts +31 -0
  85. package/src/components/forms/select/select.stories.d.ts +83 -0
  86. package/src/components/forms/select/select.vue.d.ts +30 -0
  87. package/src/components/forms/select/stories/exampleOptions.d.ts +4 -0
  88. package/src/components/forms/switcher/switcher.d.ts +21 -0
  89. package/src/components/forms/switcher/switcher.stories.d.ts +163 -0
  90. package/src/components/forms/switcher/switcher.vue.d.ts +23 -0
  91. package/src/components/forms/textarea/textarea.d.ts +33 -0
  92. package/src/components/forms/textarea/textarea.stories.d.ts +88 -0
  93. package/src/components/forms/textarea/textarea.vue.d.ts +33 -0
  94. package/src/components/formsExt/editArea/editArea.d.ts +20 -0
  95. package/src/components/formsExt/editArea/editArea.stories.d.ts +140 -0
  96. package/src/components/formsExt/editArea/editArea.vue.d.ts +38 -0
  97. package/src/components/formsExt/editInput/editInput.d.ts +16 -0
  98. package/src/components/formsExt/editInput/editInput.stories.d.ts +129 -0
  99. package/src/components/formsExt/editInput/editInput.vue.d.ts +23 -0
  100. package/src/components/formsExt/formsExt.d.ts +3 -0
  101. package/src/components/formsExt/radioGroup/radioGroup.d.ts +22 -0
  102. package/src/components/formsExt/radioGroup/radioGroup.stories.d.ts +64 -0
  103. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +30 -0
  104. package/src/components/helpersStories.d.ts +28 -0
  105. package/src/components/popup/popup/listItem.vue.d.ts +36 -0
  106. package/src/components/popup/popup/opener.vue.d.ts +39 -0
  107. package/src/components/popup/popup/popup.d.ts +79 -0
  108. package/src/components/popup/popup/popup.stories.d.ts +742 -0
  109. package/src/components/popup/popup/popup.vue.d.ts +52 -0
  110. package/src/components/popup/popup.d.ts +3 -0
  111. package/src/components/popup/worker.d.ts +2 -0
  112. package/src/components/tabs/tabs/content.vue.d.ts +19 -0
  113. package/src/components/tabs/tabs/tab.vue.d.ts +19 -0
  114. package/src/components/tabs/tabs/tabs.d.ts +19 -0
  115. package/src/components/tabs/tabs/tabs.stories.d.ts +774 -0
  116. package/src/components/tabs/tabs/tabs.vue.d.ts +21 -0
  117. package/src/components/tabs/tabs.d.ts +3 -0
  118. package/src/core/base/Colors.stories.d.ts +19 -0
  119. package/src/core/base/Layout.stories.d.ts +19 -0
  120. package/src/core/base/Properties.stories.d.ts +19 -0
  121. package/src/core/core/core.d.ts +58 -0
  122. package/src/core/core/events.d.ts +20 -0
  123. package/src/core/core/options.d.ts +13 -0
  124. package/src/core/core/page.d.ts +10 -0
  125. package/src/core/core/state.d.ts +34 -0
  126. package/src/core/directives/tooltip.d.ts +7 -0
  127. package/src/core/theme/Colors.stories.d.ts +19 -0
  128. package/src/core/theme/Properties.stories.d.ts +19 -0
  129. package/src/core/utils/date.d.ts +27 -0
  130. package/src/core/utils/device.d.ts +13 -0
  131. package/src/core/utils/dom.d.ts +98 -0
  132. package/src/core//320/235/320/260/320/261/320/276/321/200 /320/270/320/272/320/276/320/275/320/276/320/272//320/235/320/260/320/261/320/276/321/200 /320/270/320/272/320/276/320/275/320/276/320/272.stories.d.ts" +6 -0
  133. package/src/d.d.ts +4 -0
  134. package/src/resources/styles/core/core.d.ts +0 -0
  135. package/src/resources/styles/themes/dark.d.ts +0 -0
  136. package/src/resources/styles/themes/light.d.ts +0 -0
  137. package/src/storybook/components/icomoon.d.ts +2 -0
  138. package/tabs/tabs.amd.js +1 -1
  139. package/tabs/tabs.d.ts +1 -0
  140. package/tabs/tabs.js +1 -1
  141. package/utils/date.amd.js +1 -1
  142. package/utils/date.d.ts +3 -0
  143. package/utils/date.js +1 -1
  144. package/utils/device.amd.js +1 -1
  145. package/utils/device.d.ts +3 -0
  146. package/utils/device.js +1 -1
  147. package/utils/dom.amd.js +1 -1
  148. package/utils/dom.d.ts +3 -0
  149. package/utils/dom.js +1 -1
  150. package/.chunks/datepicker-7f54fd80.es.js +0 -275
  151. package/.chunks/datepicker-7f54fd80.es.js.map +0 -1
  152. package/.chunks/datepicker-858c1cb6.amd.js +0 -234
  153. package/.chunks/datepicker-858c1cb6.amd.js.map +0 -1
  154. package/.chunks/forms-7f061546.es.js.map +0 -1
  155. package/.chunks/forms-b9e5edd2.amd.js +0 -3
  156. package/.chunks/forms-b9e5edd2.amd.js.map +0 -1
  157. package/.chunks/popup-05538243.es.js.map +0 -1
  158. package/.chunks/popup-a531e9ad.amd.js +0 -377
  159. package/.chunks/popup-a531e9ad.amd.js.map +0 -1
@@ -0,0 +1,40 @@
1
+ import type { Size } from '../../../components/forms/helpers';
2
+ import { sizes } from '../../../components/forms/helpers';
3
+ /**
4
+ * Определение параметров
5
+ */
6
+ export interface Props {
7
+ color?: Color;
8
+ styling?: Style;
9
+ size?: Size;
10
+ name?: string;
11
+ title?: string;
12
+ icon?: string;
13
+ icon2?: string;
14
+ href?: string;
15
+ disabled?: boolean;
16
+ isSubmit?: boolean;
17
+ isActive?: boolean;
18
+ isProgress?: boolean;
19
+ }
20
+ /**
21
+ * Определение событий
22
+ */
23
+ export interface Emits {
24
+ }
25
+ export declare const colors: {
26
+ readonly theme: "theme";
27
+ readonly blue: "blue";
28
+ readonly green: "green";
29
+ readonly orange: "orange";
30
+ readonly red: "red";
31
+ readonly pink: "pink";
32
+ };
33
+ export type Color = typeof colors[keyof typeof colors];
34
+ export declare const styles: {
35
+ readonly Regular: "";
36
+ readonly Outline: "outline";
37
+ readonly Soft: "soft";
38
+ };
39
+ export type Style = typeof styles[keyof typeof styles];
40
+ export { sizes };
@@ -0,0 +1,313 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ import * as ComponentsConst from './button';
3
+ declare const meta: {
4
+ component: {
5
+ new (...args: any[]): {
6
+ $: import("vue").ComponentInternalInstance;
7
+ $data: {};
8
+ $props: Partial<{
9
+ size: import("../helpers").Size;
10
+ color: ComponentsConst.Color;
11
+ styling: ComponentsConst.Style;
12
+ }> & Omit<{
13
+ readonly size: import("../helpers").Size;
14
+ readonly color: ComponentsConst.Color;
15
+ readonly styling: ComponentsConst.Style;
16
+ readonly icon?: string | undefined;
17
+ readonly icon2?: string | undefined;
18
+ readonly title?: string | undefined;
19
+ readonly name?: string | undefined;
20
+ readonly href?: string | undefined;
21
+ readonly disabled?: boolean | undefined;
22
+ readonly isSubmit?: boolean | undefined;
23
+ readonly isActive?: boolean | undefined;
24
+ readonly isProgress?: boolean | undefined;
25
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
26
+ icon: {
27
+ type: import("vue").PropType<string>;
28
+ };
29
+ icon2: {
30
+ type: import("vue").PropType<string>;
31
+ };
32
+ title: {
33
+ type: import("vue").PropType<string>;
34
+ };
35
+ size: {
36
+ type: import("vue").PropType<import("../helpers").Size>;
37
+ default: string;
38
+ };
39
+ color: {
40
+ type: import("vue").PropType<ComponentsConst.Color>;
41
+ default: string;
42
+ };
43
+ styling: {
44
+ type: import("vue").PropType<ComponentsConst.Style>;
45
+ default: string;
46
+ };
47
+ name: {
48
+ type: import("vue").PropType<string>;
49
+ };
50
+ href: {
51
+ type: import("vue").PropType<string>;
52
+ };
53
+ disabled: {
54
+ type: import("vue").PropType<boolean>;
55
+ };
56
+ isSubmit: {
57
+ type: import("vue").PropType<boolean>;
58
+ };
59
+ isActive: {
60
+ type: import("vue").PropType<boolean>;
61
+ };
62
+ isProgress: {
63
+ type: import("vue").PropType<boolean>;
64
+ };
65
+ }>>, "size" | "color" | "styling">;
66
+ $attrs: {
67
+ [x: string]: unknown;
68
+ };
69
+ $refs: {
70
+ [x: string]: unknown;
71
+ };
72
+ $slots: Readonly<{
73
+ [name: string]: import("vue").Slot<any> | undefined;
74
+ }>;
75
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
76
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
77
+ $emit: (event: string, ...args: any[]) => void;
78
+ $el: any;
79
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
80
+ icon: {
81
+ type: import("vue").PropType<string>;
82
+ };
83
+ icon2: {
84
+ type: import("vue").PropType<string>;
85
+ };
86
+ title: {
87
+ type: import("vue").PropType<string>;
88
+ };
89
+ size: {
90
+ type: import("vue").PropType<import("../helpers").Size>;
91
+ default: string;
92
+ };
93
+ color: {
94
+ type: import("vue").PropType<ComponentsConst.Color>;
95
+ default: string;
96
+ };
97
+ styling: {
98
+ type: import("vue").PropType<ComponentsConst.Style>;
99
+ default: string;
100
+ };
101
+ name: {
102
+ type: import("vue").PropType<string>;
103
+ };
104
+ href: {
105
+ type: import("vue").PropType<string>;
106
+ };
107
+ disabled: {
108
+ type: import("vue").PropType<boolean>;
109
+ };
110
+ isSubmit: {
111
+ type: import("vue").PropType<boolean>;
112
+ };
113
+ isActive: {
114
+ type: import("vue").PropType<boolean>;
115
+ };
116
+ isProgress: {
117
+ type: import("vue").PropType<boolean>;
118
+ };
119
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
120
+ size: import("../helpers").Size;
121
+ color: ComponentsConst.Color;
122
+ styling: ComponentsConst.Style;
123
+ }, {}, string, {}> & {
124
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
125
+ created?: ((() => void) | (() => void)[]) | undefined;
126
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
127
+ mounted?: ((() => void) | (() => void)[]) | undefined;
128
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
129
+ updated?: ((() => void) | (() => void)[]) | undefined;
130
+ activated?: ((() => void) | (() => void)[]) | undefined;
131
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
132
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
133
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
134
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
135
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
136
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
137
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
138
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
139
+ };
140
+ $forceUpdate: () => void;
141
+ $nextTick: typeof import("vue").nextTick;
142
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
143
+ } & Readonly<import("vue").ExtractPropTypes<{
144
+ icon: {
145
+ type: import("vue").PropType<string>;
146
+ };
147
+ icon2: {
148
+ type: import("vue").PropType<string>;
149
+ };
150
+ title: {
151
+ type: import("vue").PropType<string>;
152
+ };
153
+ size: {
154
+ type: import("vue").PropType<import("../helpers").Size>;
155
+ default: string;
156
+ };
157
+ color: {
158
+ type: import("vue").PropType<ComponentsConst.Color>;
159
+ default: string;
160
+ };
161
+ styling: {
162
+ type: import("vue").PropType<ComponentsConst.Style>;
163
+ default: string;
164
+ };
165
+ name: {
166
+ type: import("vue").PropType<string>;
167
+ };
168
+ href: {
169
+ type: import("vue").PropType<string>;
170
+ };
171
+ disabled: {
172
+ type: import("vue").PropType<boolean>;
173
+ };
174
+ isSubmit: {
175
+ type: import("vue").PropType<boolean>;
176
+ };
177
+ isActive: {
178
+ type: import("vue").PropType<boolean>;
179
+ };
180
+ isProgress: {
181
+ type: import("vue").PropType<boolean>;
182
+ };
183
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
184
+ __isFragment?: undefined;
185
+ __isTeleport?: undefined;
186
+ __isSuspense?: undefined;
187
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
188
+ icon: {
189
+ type: import("vue").PropType<string>;
190
+ };
191
+ icon2: {
192
+ type: import("vue").PropType<string>;
193
+ };
194
+ title: {
195
+ type: import("vue").PropType<string>;
196
+ };
197
+ size: {
198
+ type: import("vue").PropType<import("../helpers").Size>;
199
+ default: string;
200
+ };
201
+ color: {
202
+ type: import("vue").PropType<ComponentsConst.Color>;
203
+ default: string;
204
+ };
205
+ styling: {
206
+ type: import("vue").PropType<ComponentsConst.Style>;
207
+ default: string;
208
+ };
209
+ name: {
210
+ type: import("vue").PropType<string>;
211
+ };
212
+ href: {
213
+ type: import("vue").PropType<string>;
214
+ };
215
+ disabled: {
216
+ type: import("vue").PropType<boolean>;
217
+ };
218
+ isSubmit: {
219
+ type: import("vue").PropType<boolean>;
220
+ };
221
+ isActive: {
222
+ type: import("vue").PropType<boolean>;
223
+ };
224
+ isProgress: {
225
+ type: import("vue").PropType<boolean>;
226
+ };
227
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
228
+ size: import("../helpers").Size;
229
+ color: ComponentsConst.Color;
230
+ styling: ComponentsConst.Style;
231
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
232
+ $slots: {
233
+ default?(_: {}): any;
234
+ };
235
+ });
236
+ tags: string[];
237
+ argTypes: any;
238
+ parameters: {
239
+ docs: {
240
+ description: {
241
+ component: string;
242
+ };
243
+ };
244
+ design: {
245
+ type: string;
246
+ url: string;
247
+ };
248
+ };
249
+ };
250
+ type Story = StoryObj<typeof meta>;
251
+ export declare const Playground: {};
252
+ export declare const Overview: Story;
253
+ export declare const Regular: {
254
+ args: {
255
+ default: string;
256
+ title: string;
257
+ color: "blue";
258
+ };
259
+ };
260
+ export declare const RegularTheme: {
261
+ args: {
262
+ default: string;
263
+ title: string;
264
+ color: "theme";
265
+ };
266
+ };
267
+ export declare const Soft: {
268
+ args: {
269
+ default: string;
270
+ title: string;
271
+ color: "blue";
272
+ styling: "soft";
273
+ };
274
+ };
275
+ export declare const SoftTheme: {
276
+ args: {
277
+ default: string;
278
+ title: string;
279
+ color: "theme";
280
+ styling: "soft";
281
+ };
282
+ };
283
+ export declare const Outline: {
284
+ args: {
285
+ default: string;
286
+ title: string;
287
+ color: "blue";
288
+ styling: "outline";
289
+ };
290
+ };
291
+ export declare const OutlineTheme: {
292
+ args: {
293
+ default: string;
294
+ title: string;
295
+ color: "theme";
296
+ styling: "outline";
297
+ };
298
+ };
299
+ export declare const Icons: {
300
+ args: {
301
+ default: string;
302
+ title: string;
303
+ icon: string;
304
+ icon2: string;
305
+ };
306
+ };
307
+ export declare const OnlyOneIcons: {
308
+ args: {
309
+ title: string;
310
+ icon: string;
311
+ };
312
+ };
313
+ export default meta;
@@ -0,0 +1,39 @@
1
+ import type { Props } from './button';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
3
+ color: string;
4
+ styling: string;
5
+ size: string;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ color: string;
8
+ styling: string;
9
+ size: string;
10
+ }>>>, {
11
+ size: import("../helpers").Size;
12
+ color: import("./button").Color;
13
+ styling: import("./button").Style;
14
+ }, {}>, {
15
+ default?(_: {}): any;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,22 @@
1
+ type ModelValue = boolean | string[] | Set<string>;
2
+ export interface Props {
3
+ /**
4
+ * Может быть одного из трех типов:
5
+ * - boolean
6
+ * - string[]
7
+ * - Set
8
+ *
9
+ * [подробнее](https://vuejs.org/guide/essentials/forms.html#checkbox)
10
+ */
11
+ modelValue: ModelValue;
12
+ name?: string;
13
+ value?: string;
14
+ description?: string;
15
+ disabled?: boolean;
16
+ indeterminate?: boolean;
17
+ isError?: boolean;
18
+ }
19
+ export interface Emits {
20
+ (e: 'update:modelValue', value: ModelValue): void;
21
+ }
22
+ export {};
@@ -0,0 +1,176 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ component: {
4
+ new (...args: any[]): {
5
+ $: import("vue").ComponentInternalInstance;
6
+ $data: {};
7
+ $props: Partial<{}> & Omit<{
8
+ readonly modelValue: boolean | string[] | Set<string>;
9
+ readonly name?: string | undefined;
10
+ readonly disabled?: boolean | undefined;
11
+ readonly description?: string | undefined;
12
+ readonly value?: string | undefined;
13
+ readonly indeterminate?: boolean | undefined;
14
+ readonly isError?: boolean | undefined;
15
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
16
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
19
+ required: true;
20
+ };
21
+ name: {
22
+ type: import("vue").PropType<string>;
23
+ };
24
+ value: {
25
+ type: import("vue").PropType<string>;
26
+ };
27
+ description: {
28
+ type: import("vue").PropType<string>;
29
+ };
30
+ disabled: {
31
+ type: import("vue").PropType<boolean>;
32
+ };
33
+ indeterminate: {
34
+ type: import("vue").PropType<boolean>;
35
+ };
36
+ isError: {
37
+ type: import("vue").PropType<boolean>;
38
+ };
39
+ }>> & {
40
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
41
+ }, never>;
42
+ $attrs: {
43
+ [x: string]: unknown;
44
+ };
45
+ $refs: {
46
+ [x: string]: unknown;
47
+ };
48
+ $slots: Readonly<{
49
+ [name: string]: import("vue").Slot<any> | undefined;
50
+ }>;
51
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
52
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
53
+ $emit: (event: "update:modelValue", value: boolean | string[] | Set<string>) => void;
54
+ $el: any;
55
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
56
+ modelValue: {
57
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
58
+ required: true;
59
+ };
60
+ name: {
61
+ type: import("vue").PropType<string>;
62
+ };
63
+ value: {
64
+ type: import("vue").PropType<string>;
65
+ };
66
+ description: {
67
+ type: import("vue").PropType<string>;
68
+ };
69
+ disabled: {
70
+ type: import("vue").PropType<boolean>;
71
+ };
72
+ indeterminate: {
73
+ type: import("vue").PropType<boolean>;
74
+ };
75
+ isError: {
76
+ type: import("vue").PropType<boolean>;
77
+ };
78
+ }>> & {
79
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
80
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
+ "update:modelValue": (value: boolean | string[] | Set<string>) => void;
82
+ }, string, {}, {}, string, {}> & {
83
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
84
+ created?: ((() => void) | (() => void)[]) | undefined;
85
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
86
+ mounted?: ((() => void) | (() => void)[]) | undefined;
87
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
88
+ updated?: ((() => void) | (() => void)[]) | undefined;
89
+ activated?: ((() => void) | (() => void)[]) | undefined;
90
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
91
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
92
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
93
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
94
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
95
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
96
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
97
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
98
+ };
99
+ $forceUpdate: () => void;
100
+ $nextTick: typeof import("vue").nextTick;
101
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
102
+ } & Readonly<import("vue").ExtractPropTypes<{
103
+ modelValue: {
104
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
105
+ required: true;
106
+ };
107
+ name: {
108
+ type: import("vue").PropType<string>;
109
+ };
110
+ value: {
111
+ type: import("vue").PropType<string>;
112
+ };
113
+ description: {
114
+ type: import("vue").PropType<string>;
115
+ };
116
+ disabled: {
117
+ type: import("vue").PropType<boolean>;
118
+ };
119
+ indeterminate: {
120
+ type: import("vue").PropType<boolean>;
121
+ };
122
+ isError: {
123
+ type: import("vue").PropType<boolean>;
124
+ };
125
+ }>> & {
126
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
127
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
128
+ __isFragment?: undefined;
129
+ __isTeleport?: undefined;
130
+ __isSuspense?: undefined;
131
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
132
+ modelValue: {
133
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
134
+ required: true;
135
+ };
136
+ name: {
137
+ type: import("vue").PropType<string>;
138
+ };
139
+ value: {
140
+ type: import("vue").PropType<string>;
141
+ };
142
+ description: {
143
+ type: import("vue").PropType<string>;
144
+ };
145
+ disabled: {
146
+ type: import("vue").PropType<boolean>;
147
+ };
148
+ indeterminate: {
149
+ type: import("vue").PropType<boolean>;
150
+ };
151
+ isError: {
152
+ type: import("vue").PropType<boolean>;
153
+ };
154
+ }>> & {
155
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
156
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
157
+ "update:modelValue": (value: boolean | string[] | Set<string>) => void;
158
+ }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
159
+ $slots: {
160
+ default?(_: {}): any;
161
+ };
162
+ });
163
+ tags: string[];
164
+ argTypes: any;
165
+ args: {
166
+ modelValue: false;
167
+ };
168
+ };
169
+ type Story = StoryObj<typeof meta>;
170
+ export declare const Playground: {
171
+ args: {
172
+ default: string;
173
+ };
174
+ };
175
+ export declare const Overview: Story;
176
+ export default meta;
@@ -0,0 +1,23 @@
1
+ import type { Props } from './checkbox';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ "update:modelValue": (value: boolean | string[] | Set<string>) => void;
4
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
5
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
6
+ }, {}, {}>, {
7
+ default?(_: {}): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,4 @@
1
+ export interface Props {
2
+ description?: string;
3
+ disabled?: boolean;
4
+ }