@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,168 @@
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: string | object;
9
+ readonly value: string | object;
10
+ readonly name?: string | undefined;
11
+ readonly disabled?: boolean | undefined;
12
+ readonly description?: string | undefined;
13
+ readonly isError?: boolean | undefined;
14
+ "onUpdate:modelValue"?: ((value: string | object) => any) | undefined;
15
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
16
+ modelValue: {
17
+ type: import("vue").PropType<string | object>;
18
+ required: true;
19
+ };
20
+ value: {
21
+ type: import("vue").PropType<string | object>;
22
+ required: true;
23
+ };
24
+ name: {
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
+ isError: {
34
+ type: import("vue").PropType<boolean>;
35
+ };
36
+ }>> & {
37
+ "onUpdate:modelValue"?: ((value: string | object) => any) | undefined;
38
+ }, never>;
39
+ $attrs: {
40
+ [x: string]: unknown;
41
+ };
42
+ $refs: {
43
+ [x: string]: unknown;
44
+ };
45
+ $slots: Readonly<{
46
+ [name: string]: import("vue").Slot<any> | undefined;
47
+ }>;
48
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
49
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
50
+ $emit: (event: "update:modelValue", value: string | object) => void;
51
+ $el: any;
52
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
53
+ modelValue: {
54
+ type: import("vue").PropType<string | object>;
55
+ required: true;
56
+ };
57
+ value: {
58
+ type: import("vue").PropType<string | object>;
59
+ required: true;
60
+ };
61
+ name: {
62
+ type: import("vue").PropType<string>;
63
+ };
64
+ description: {
65
+ type: import("vue").PropType<string>;
66
+ };
67
+ disabled: {
68
+ type: import("vue").PropType<boolean>;
69
+ };
70
+ isError: {
71
+ type: import("vue").PropType<boolean>;
72
+ };
73
+ }>> & {
74
+ "onUpdate:modelValue"?: ((value: string | object) => any) | undefined;
75
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
76
+ "update:modelValue": (value: string | object) => void;
77
+ }, string, {}, {}, string, {}> & {
78
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
79
+ created?: ((() => void) | (() => void)[]) | undefined;
80
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
81
+ mounted?: ((() => void) | (() => void)[]) | undefined;
82
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
83
+ updated?: ((() => void) | (() => void)[]) | undefined;
84
+ activated?: ((() => void) | (() => void)[]) | undefined;
85
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
86
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
87
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
88
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
89
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
90
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
91
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
92
+ 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;
93
+ };
94
+ $forceUpdate: () => void;
95
+ $nextTick: typeof import("vue").nextTick;
96
+ $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;
97
+ } & Readonly<import("vue").ExtractPropTypes<{
98
+ modelValue: {
99
+ type: import("vue").PropType<string | object>;
100
+ required: true;
101
+ };
102
+ value: {
103
+ type: import("vue").PropType<string | object>;
104
+ required: true;
105
+ };
106
+ name: {
107
+ type: import("vue").PropType<string>;
108
+ };
109
+ description: {
110
+ type: import("vue").PropType<string>;
111
+ };
112
+ disabled: {
113
+ type: import("vue").PropType<boolean>;
114
+ };
115
+ isError: {
116
+ type: import("vue").PropType<boolean>;
117
+ };
118
+ }>> & {
119
+ "onUpdate:modelValue"?: ((value: string | object) => any) | undefined;
120
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
121
+ __isFragment?: undefined;
122
+ __isTeleport?: undefined;
123
+ __isSuspense?: undefined;
124
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
125
+ modelValue: {
126
+ type: import("vue").PropType<string | object>;
127
+ required: true;
128
+ };
129
+ value: {
130
+ type: import("vue").PropType<string | object>;
131
+ required: true;
132
+ };
133
+ name: {
134
+ type: import("vue").PropType<string>;
135
+ };
136
+ description: {
137
+ type: import("vue").PropType<string>;
138
+ };
139
+ disabled: {
140
+ type: import("vue").PropType<boolean>;
141
+ };
142
+ isError: {
143
+ type: import("vue").PropType<boolean>;
144
+ };
145
+ }>> & {
146
+ "onUpdate:modelValue"?: ((value: string | object) => any) | undefined;
147
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
148
+ "update:modelValue": (value: string | object) => void;
149
+ }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
150
+ $slots: {
151
+ default?(_: {}): any;
152
+ };
153
+ });
154
+ tags: string[];
155
+ argTypes: any;
156
+ args: {
157
+ value: string;
158
+ modelValue: string;
159
+ };
160
+ };
161
+ type Story = StoryObj<typeof meta>;
162
+ export declare const Playground: {
163
+ args: {
164
+ default: string;
165
+ };
166
+ };
167
+ export declare const Overview: Story;
168
+ export default meta;
@@ -0,0 +1,23 @@
1
+ import type { Props } from './radio';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ "update:modelValue": (value: string | object) => void;
4
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
5
+ "onUpdate:modelValue"?: ((value: string | object) => 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,31 @@
1
+ import type { Size } from '../../../components/forms/helpers';
2
+ import { sizes } from '../../../components/forms/helpers';
3
+ export interface Props {
4
+ modelValue: string;
5
+ /**
6
+ * Словарь или массив с объктами Option, по которому будут генерироваться элементы option
7
+ *
8
+ * Ключи словаря могут быть произвольными строковыми значениями
9
+ *
10
+ * Можно задать optiongroup, передав в option.children вложенный список options
11
+ */
12
+ options: Map<string, Option> | Option[];
13
+ name?: string;
14
+ disabled?: boolean;
15
+ icon?: string;
16
+ size?: Size;
17
+ addChanger?: boolean;
18
+ title?: string;
19
+ isError?: boolean;
20
+ }
21
+ export interface Emits {
22
+ (e: 'update:modelValue', value: Props['modelValue']): void;
23
+ }
24
+ export interface Option {
25
+ value: Props['modelValue'];
26
+ title: string;
27
+ icon?: string;
28
+ disabled?: boolean;
29
+ children?: Props['options'];
30
+ }
31
+ export { sizes };
@@ -0,0 +1,83 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ import * as ComponentsConst from './select';
3
+ declare const meta: {
4
+ component: import("vue").DefineComponent<{
5
+ icon: {
6
+ type: import("vue").PropType<string>;
7
+ };
8
+ title: {
9
+ type: import("vue").PropType<string>;
10
+ };
11
+ size: {
12
+ type: import("vue").PropType<import("../helpers").Size>;
13
+ default: string;
14
+ };
15
+ name: {
16
+ type: import("vue").PropType<string>;
17
+ };
18
+ disabled: {
19
+ type: import("vue").PropType<boolean>;
20
+ };
21
+ modelValue: {
22
+ type: import("vue").PropType<string>;
23
+ required: true;
24
+ };
25
+ isError: {
26
+ type: import("vue").PropType<boolean>;
27
+ };
28
+ options: {
29
+ type: import("vue").PropType<Map<string, ComponentsConst.Option> | ComponentsConst.Option[]>;
30
+ required: true;
31
+ };
32
+ addChanger: {
33
+ type: import("vue").PropType<boolean>;
34
+ };
35
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ "update:modelValue": (value: string) => void;
37
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ icon: {
39
+ type: import("vue").PropType<string>;
40
+ };
41
+ title: {
42
+ type: import("vue").PropType<string>;
43
+ };
44
+ size: {
45
+ type: import("vue").PropType<import("../helpers").Size>;
46
+ default: string;
47
+ };
48
+ name: {
49
+ type: import("vue").PropType<string>;
50
+ };
51
+ disabled: {
52
+ type: import("vue").PropType<boolean>;
53
+ };
54
+ modelValue: {
55
+ type: import("vue").PropType<string>;
56
+ required: true;
57
+ };
58
+ isError: {
59
+ type: import("vue").PropType<boolean>;
60
+ };
61
+ options: {
62
+ type: import("vue").PropType<Map<string, ComponentsConst.Option> | ComponentsConst.Option[]>;
63
+ required: true;
64
+ };
65
+ addChanger: {
66
+ type: import("vue").PropType<boolean>;
67
+ };
68
+ }>> & {
69
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
70
+ }, {
71
+ size: import("../helpers").Size;
72
+ }, {}>;
73
+ tags: string[];
74
+ argTypes: any;
75
+ args: {
76
+ modelValue: any;
77
+ options: Map<string, ComponentsConst.Option>;
78
+ };
79
+ };
80
+ type Story = StoryObj<typeof meta>;
81
+ export declare const Playground: {};
82
+ export declare const Overview: Story;
83
+ export default meta;
@@ -0,0 +1,30 @@
1
+ import type { Props } from './select';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
3
+ size: string;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: string) => void;
6
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ size: string;
8
+ }>>> & {
9
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
+ }, {
11
+ size: import("../helpers").Size;
12
+ }, {}>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
+ default: D[K];
26
+ }> : P[K];
27
+ };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
@@ -0,0 +1,4 @@
1
+ import type { Option } from '../select';
2
+ declare const optionsMap: Map<string, Option>;
3
+ declare const optionsArray: Option[];
4
+ export { optionsMap, optionsArray };
@@ -0,0 +1,21 @@
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
+ isError?: boolean;
17
+ }
18
+ export interface Emits {
19
+ (e: 'update:modelValue', value: ModelValue): void;
20
+ }
21
+ export {};
@@ -0,0 +1,163 @@
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 isError?: boolean | undefined;
14
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
15
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
16
+ modelValue: {
17
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
18
+ required: true;
19
+ };
20
+ name: {
21
+ type: import("vue").PropType<string>;
22
+ };
23
+ value: {
24
+ type: import("vue").PropType<string>;
25
+ };
26
+ description: {
27
+ type: import("vue").PropType<string>;
28
+ };
29
+ disabled: {
30
+ type: import("vue").PropType<boolean>;
31
+ };
32
+ isError: {
33
+ type: import("vue").PropType<boolean>;
34
+ };
35
+ }>> & {
36
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
37
+ }, never>;
38
+ $attrs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $refs: {
42
+ [x: string]: unknown;
43
+ };
44
+ $slots: Readonly<{
45
+ [name: string]: import("vue").Slot<any> | undefined;
46
+ }>;
47
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
48
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
49
+ $emit: (event: "update:modelValue", value: boolean | string[] | Set<string>) => void;
50
+ $el: any;
51
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
52
+ modelValue: {
53
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
54
+ required: true;
55
+ };
56
+ name: {
57
+ type: import("vue").PropType<string>;
58
+ };
59
+ value: {
60
+ type: import("vue").PropType<string>;
61
+ };
62
+ description: {
63
+ type: import("vue").PropType<string>;
64
+ };
65
+ disabled: {
66
+ type: import("vue").PropType<boolean>;
67
+ };
68
+ isError: {
69
+ type: import("vue").PropType<boolean>;
70
+ };
71
+ }>> & {
72
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
73
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
+ "update:modelValue": (value: boolean | string[] | Set<string>) => void;
75
+ }, string, {}, {}, string, {}> & {
76
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
77
+ created?: ((() => void) | (() => void)[]) | undefined;
78
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
79
+ mounted?: ((() => void) | (() => void)[]) | undefined;
80
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
81
+ updated?: ((() => void) | (() => void)[]) | undefined;
82
+ activated?: ((() => void) | (() => void)[]) | undefined;
83
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
84
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
85
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
86
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
87
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
88
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
89
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
90
+ 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;
91
+ };
92
+ $forceUpdate: () => void;
93
+ $nextTick: typeof import("vue").nextTick;
94
+ $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;
95
+ } & Readonly<import("vue").ExtractPropTypes<{
96
+ modelValue: {
97
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
98
+ required: true;
99
+ };
100
+ name: {
101
+ type: import("vue").PropType<string>;
102
+ };
103
+ value: {
104
+ type: import("vue").PropType<string>;
105
+ };
106
+ description: {
107
+ type: import("vue").PropType<string>;
108
+ };
109
+ disabled: {
110
+ type: import("vue").PropType<boolean>;
111
+ };
112
+ isError: {
113
+ type: import("vue").PropType<boolean>;
114
+ };
115
+ }>> & {
116
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
117
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
118
+ __isFragment?: undefined;
119
+ __isTeleport?: undefined;
120
+ __isSuspense?: undefined;
121
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
122
+ modelValue: {
123
+ type: import("vue").PropType<boolean | string[] | Set<string>>;
124
+ required: true;
125
+ };
126
+ name: {
127
+ type: import("vue").PropType<string>;
128
+ };
129
+ value: {
130
+ type: import("vue").PropType<string>;
131
+ };
132
+ description: {
133
+ type: import("vue").PropType<string>;
134
+ };
135
+ disabled: {
136
+ type: import("vue").PropType<boolean>;
137
+ };
138
+ isError: {
139
+ type: import("vue").PropType<boolean>;
140
+ };
141
+ }>> & {
142
+ "onUpdate:modelValue"?: ((value: boolean | string[] | Set<string>) => any) | undefined;
143
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
144
+ "update:modelValue": (value: boolean | string[] | Set<string>) => void;
145
+ }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
146
+ $slots: {
147
+ default?(_: {}): any;
148
+ };
149
+ });
150
+ tags: string[];
151
+ argTypes: any;
152
+ args: {
153
+ modelValue: false;
154
+ };
155
+ };
156
+ type Story = StoryObj<typeof meta>;
157
+ export declare const Playground: {
158
+ args: {
159
+ default: string;
160
+ };
161
+ };
162
+ export declare const Overview: Story;
163
+ export default meta;
@@ -0,0 +1,23 @@
1
+ import type { Props } from './switcher';
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,33 @@
1
+ /**
2
+ * Определение параметров
3
+ */
4
+ export interface Props {
5
+ modelValue: string;
6
+ name?: string;
7
+ placeholder?: string;
8
+ /**
9
+ * Высота поля в строках, не работает в режиме **expandable**
10
+ */
11
+ rows?: number;
12
+ /**
13
+ * Минимальная высота в px для режима **expandable**
14
+ */
15
+ minHeight?: number;
16
+ /**
17
+ * Автоматически изменять высоту при вводе текста
18
+ */
19
+ expandable?: boolean;
20
+ disabled?: boolean;
21
+ readonly?: boolean;
22
+ isError?: boolean;
23
+ /**
24
+ * Добавить к полю элемент с подсказкой, которая будет появляться при наведении
25
+ */
26
+ hint?: string;
27
+ }
28
+ /**
29
+ * Определение событий
30
+ */
31
+ export interface Emits {
32
+ (e: 'update:modelValue', value?: string): void;
33
+ }