@topvisor/ui 0.0.41 → 0.0.43

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-92744062.es.js +275 -0
  2. package/.chunks/datepicker-92744062.es.js.map +1 -0
  3. package/.chunks/datepicker-a9226b0f.amd.js +234 -0
  4. package/.chunks/datepicker-a9226b0f.amd.js.map +1 -0
  5. package/.chunks/{forms-7f061546.es.js → forms-727cc6aa.es.js} +51 -47
  6. package/.chunks/forms-727cc6aa.es.js.map +1 -0
  7. package/.chunks/forms-771091d4.amd.js +3 -0
  8. package/.chunks/forms-771091d4.amd.js.map +1 -0
  9. package/.chunks/{popup-05538243.es.js → popup-a622fe31.es.js} +429 -427
  10. package/.chunks/popup-a622fe31.es.js.map +1 -0
  11. package/.chunks/popup-de28e508.amd.js +377 -0
  12. package/.chunks/popup-de28e508.amd.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,88 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ component: import("vue").DefineComponent<{
4
+ name: {
5
+ type: import("vue").PropType<string>;
6
+ };
7
+ disabled: {
8
+ type: import("vue").PropType<boolean>;
9
+ };
10
+ modelValue: {
11
+ type: import("vue").PropType<string>;
12
+ required: true;
13
+ };
14
+ isError: {
15
+ type: import("vue").PropType<boolean>;
16
+ };
17
+ hint: {
18
+ type: import("vue").PropType<string>;
19
+ };
20
+ readonly: {
21
+ type: import("vue").PropType<boolean>;
22
+ };
23
+ placeholder: {
24
+ type: import("vue").PropType<string>;
25
+ };
26
+ rows: {
27
+ type: import("vue").PropType<number>;
28
+ default: number;
29
+ };
30
+ minHeight: {
31
+ type: import("vue").PropType<number>;
32
+ default: number;
33
+ };
34
+ expandable: {
35
+ type: import("vue").PropType<boolean>;
36
+ };
37
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
+ "update:modelValue": (value?: string | undefined) => void;
39
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
40
+ name: {
41
+ type: import("vue").PropType<string>;
42
+ };
43
+ disabled: {
44
+ type: import("vue").PropType<boolean>;
45
+ };
46
+ modelValue: {
47
+ type: import("vue").PropType<string>;
48
+ required: true;
49
+ };
50
+ isError: {
51
+ type: import("vue").PropType<boolean>;
52
+ };
53
+ hint: {
54
+ type: import("vue").PropType<string>;
55
+ };
56
+ readonly: {
57
+ type: import("vue").PropType<boolean>;
58
+ };
59
+ placeholder: {
60
+ type: import("vue").PropType<string>;
61
+ };
62
+ rows: {
63
+ type: import("vue").PropType<number>;
64
+ default: number;
65
+ };
66
+ minHeight: {
67
+ type: import("vue").PropType<number>;
68
+ default: number;
69
+ };
70
+ expandable: {
71
+ type: import("vue").PropType<boolean>;
72
+ };
73
+ }>> & {
74
+ "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
75
+ }, {
76
+ rows: number;
77
+ minHeight: number;
78
+ }, {}>;
79
+ tags: string[];
80
+ args: {
81
+ modelValue: string;
82
+ };
83
+ argTypes: any;
84
+ };
85
+ type Story = StoryObj<typeof meta>;
86
+ export declare const Playground: {};
87
+ export declare const Overview: Story;
88
+ export default meta;
@@ -0,0 +1,33 @@
1
+ import type { Props } from './textarea';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
3
+ rows: number;
4
+ minHeight: number;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:modelValue": (value?: string | undefined) => void;
7
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ rows: number;
9
+ minHeight: number;
10
+ }>>> & {
11
+ "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
12
+ }, {
13
+ rows: number;
14
+ minHeight: number;
15
+ }, {}>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
@@ -0,0 +1,20 @@
1
+ import type { Props as TextareaProps } from '../../../components/forms/textarea/textarea';
2
+ export interface Props extends TextareaProps {
3
+ /**
4
+ * Поддерживает modelValue и **все другие** props компонента Textarea
5
+ *
6
+ * См. докуменатцию **Textarea**
7
+ */
8
+ modelValue: string;
9
+ title?: string;
10
+ cancelText?: string;
11
+ submitText?: string;
12
+ /**
13
+ * Прикрепить к клавиатуре, прикрепляет форму к нижней части экрана
14
+ */
15
+ attachToKeyboard?: boolean;
16
+ }
17
+ export interface Emits {
18
+ (e: 'update:modelValue', value: string): void;
19
+ (e: 'cancel'): void;
20
+ }
@@ -0,0 +1,140 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ component: import("vue").DefineComponent<{
4
+ title: {
5
+ type: import("vue").PropType<string>;
6
+ };
7
+ name: {
8
+ type: import("vue").PropType<string>;
9
+ };
10
+ disabled: {
11
+ type: import("vue").PropType<boolean>;
12
+ };
13
+ modelValue: {
14
+ type: import("vue").PropType<string>;
15
+ required: true;
16
+ };
17
+ isError: {
18
+ type: import("vue").PropType<boolean>;
19
+ };
20
+ hint: {
21
+ type: import("vue").PropType<string>;
22
+ };
23
+ readonly: {
24
+ type: import("vue").PropType<boolean>;
25
+ };
26
+ placeholder: {
27
+ type: import("vue").PropType<string>;
28
+ };
29
+ rows: {
30
+ type: import("vue").PropType<number>;
31
+ };
32
+ minHeight: {
33
+ type: import("vue").PropType<number>;
34
+ };
35
+ expandable: {
36
+ type: import("vue").PropType<boolean>;
37
+ default: boolean;
38
+ };
39
+ cancelText: {
40
+ type: import("vue").PropType<string>;
41
+ default: string;
42
+ };
43
+ submitText: {
44
+ type: import("vue").PropType<string>;
45
+ default: string;
46
+ };
47
+ attachToKeyboard: {
48
+ type: import("vue").PropType<boolean>;
49
+ };
50
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
+ "update:modelValue": (value: string) => void;
52
+ cancel: () => void;
53
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
+ title: {
55
+ type: import("vue").PropType<string>;
56
+ };
57
+ name: {
58
+ type: import("vue").PropType<string>;
59
+ };
60
+ disabled: {
61
+ type: import("vue").PropType<boolean>;
62
+ };
63
+ modelValue: {
64
+ type: import("vue").PropType<string>;
65
+ required: true;
66
+ };
67
+ isError: {
68
+ type: import("vue").PropType<boolean>;
69
+ };
70
+ hint: {
71
+ type: import("vue").PropType<string>;
72
+ };
73
+ readonly: {
74
+ type: import("vue").PropType<boolean>;
75
+ };
76
+ placeholder: {
77
+ type: import("vue").PropType<string>;
78
+ };
79
+ rows: {
80
+ type: import("vue").PropType<number>;
81
+ };
82
+ minHeight: {
83
+ type: import("vue").PropType<number>;
84
+ };
85
+ expandable: {
86
+ type: import("vue").PropType<boolean>;
87
+ default: boolean;
88
+ };
89
+ cancelText: {
90
+ type: import("vue").PropType<string>;
91
+ default: string;
92
+ };
93
+ submitText: {
94
+ type: import("vue").PropType<string>;
95
+ default: string;
96
+ };
97
+ attachToKeyboard: {
98
+ type: import("vue").PropType<boolean>;
99
+ };
100
+ }>> & {
101
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
102
+ onCancel?: (() => any) | undefined;
103
+ }, {
104
+ expandable: boolean;
105
+ cancelText: string;
106
+ submitText: string;
107
+ }, {}>;
108
+ tags: string[];
109
+ args: {
110
+ modelValue: string;
111
+ };
112
+ argTypes: any;
113
+ parameters: {
114
+ docs: {
115
+ description: {
116
+ component: string;
117
+ };
118
+ };
119
+ };
120
+ };
121
+ type Story = StoryObj<typeof meta>;
122
+ export declare const Playground: {};
123
+ export declare const Overview: Story;
124
+ export declare const Expandable: {
125
+ args: {
126
+ title: string;
127
+ modelValue: string;
128
+ expandable: true;
129
+ attachToKeyboard: false;
130
+ isError: false;
131
+ };
132
+ };
133
+ export declare const MobileVersion: {
134
+ args: {
135
+ modelValue: string;
136
+ attachToKeyboard: true;
137
+ isError: false;
138
+ };
139
+ };
140
+ export default meta;
@@ -0,0 +1,38 @@
1
+ import type { Props } from './editArea';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
3
+ cancelText: string;
4
+ submitText: string;
5
+ expandable: boolean;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:modelValue": (value: string) => void;
8
+ cancel: () => void;
9
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ cancelText: string;
11
+ submitText: string;
12
+ expandable: boolean;
13
+ }>>> & {
14
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
+ onCancel?: (() => any) | undefined;
16
+ }, {
17
+ expandable: boolean;
18
+ cancelText: string;
19
+ submitText: string;
20
+ }, {}>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1,16 @@
1
+ import type { Props as InputProps } from '../../../components/forms/input/input';
2
+ import type { Props as ButtonProps } from '../../../components/forms/button/button';
3
+ export interface Props {
4
+ modelValue: string;
5
+ /**
6
+ * Любые props компонента Input, за исключением modelValue
7
+ */
8
+ input?: Omit<InputProps, 'modelValue'>;
9
+ /**
10
+ * Любые props компонента Button
11
+ */
12
+ button?: ButtonProps;
13
+ }
14
+ export interface Emits {
15
+ (e: 'update:modelValue', value: string): void;
16
+ }
@@ -0,0 +1,129 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ /**
3
+ * Поле ввода с кнопкой
4
+ *
5
+ * При вводе значения появляется кнопка подтверждения ввода
6
+ *
7
+ * При нажитии кнопки подвтерждения или **Enter** будет выполнено событие **update:modelValue**
8
+ *
9
+ * При нажатии **Escape** значение в поле будет возвращено к начальному значению
10
+ */
11
+ declare const meta: {
12
+ component: {
13
+ new (...args: any[]): {
14
+ $: import("vue").ComponentInternalInstance;
15
+ $data: {};
16
+ $props: Partial<{}> & Omit<{
17
+ readonly modelValue: string;
18
+ readonly button?: import("../../forms/button/button").Props | undefined;
19
+ readonly input?: Omit<import("../../forms/input/input").Props, "modelValue"> | undefined;
20
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
22
+ modelValue: {
23
+ type: import("vue").PropType<string>;
24
+ required: true;
25
+ };
26
+ input: {
27
+ type: import("vue").PropType<Omit<import("../../forms/input/input").Props, "modelValue">>;
28
+ };
29
+ button: {
30
+ type: import("vue").PropType<import("../../forms/button/button").Props>;
31
+ };
32
+ }>> & {
33
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
+ }, never>;
35
+ $attrs: {
36
+ [x: string]: unknown;
37
+ };
38
+ $refs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $slots: Readonly<{
42
+ [name: string]: import("vue").Slot<any> | undefined;
43
+ }>;
44
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
45
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
46
+ $emit: (event: "update:modelValue", value: string) => void;
47
+ $el: any;
48
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
49
+ modelValue: {
50
+ type: import("vue").PropType<string>;
51
+ required: true;
52
+ };
53
+ input: {
54
+ type: import("vue").PropType<Omit<import("../../forms/input/input").Props, "modelValue">>;
55
+ };
56
+ button: {
57
+ type: import("vue").PropType<import("../../forms/button/button").Props>;
58
+ };
59
+ }>> & {
60
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
61
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
62
+ "update:modelValue": (value: string) => void;
63
+ }, string, {}, {}, string, {}> & {
64
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
65
+ created?: ((() => void) | (() => void)[]) | undefined;
66
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
67
+ mounted?: ((() => void) | (() => void)[]) | undefined;
68
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
69
+ updated?: ((() => void) | (() => void)[]) | undefined;
70
+ activated?: ((() => void) | (() => void)[]) | undefined;
71
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
72
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
73
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
74
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
75
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
76
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
77
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
78
+ 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;
79
+ };
80
+ $forceUpdate: () => void;
81
+ $nextTick: typeof import("vue").nextTick;
82
+ $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;
83
+ } & Readonly<import("vue").ExtractPropTypes<{
84
+ modelValue: {
85
+ type: import("vue").PropType<string>;
86
+ required: true;
87
+ };
88
+ input: {
89
+ type: import("vue").PropType<Omit<import("../../forms/input/input").Props, "modelValue">>;
90
+ };
91
+ button: {
92
+ type: import("vue").PropType<import("../../forms/button/button").Props>;
93
+ };
94
+ }>> & {
95
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
96
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
97
+ __isFragment?: undefined;
98
+ __isTeleport?: undefined;
99
+ __isSuspense?: undefined;
100
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
101
+ modelValue: {
102
+ type: import("vue").PropType<string>;
103
+ required: true;
104
+ };
105
+ input: {
106
+ type: import("vue").PropType<Omit<import("../../forms/input/input").Props, "modelValue">>;
107
+ };
108
+ button: {
109
+ type: import("vue").PropType<import("../../forms/button/button").Props>;
110
+ };
111
+ }>> & {
112
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
113
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
114
+ "update:modelValue": (value: string) => void;
115
+ }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
116
+ $slots: {
117
+ default?(_: {}): any;
118
+ };
119
+ });
120
+ tags: string[];
121
+ argTypes: any;
122
+ args: {
123
+ modelValue: string;
124
+ };
125
+ };
126
+ type Story = StoryObj<typeof meta>;
127
+ export declare const Playground: {};
128
+ export declare const Overview: Story;
129
+ export default meta;
@@ -0,0 +1,23 @@
1
+ import type { Props } from './editInput';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ "update:modelValue": (value: string) => void;
4
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
5
+ "onUpdate:modelValue"?: ((value: 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,3 @@
1
+ export { default as EditArea } from './editArea/editArea.vue';
2
+ export { default as EditInput } from './editInput/editInput.vue';
3
+ export { default as RadioGroup } from './radioGroup/radioGroup.vue';
@@ -0,0 +1,22 @@
1
+ import type { Size } from '../../../components/forms/helpers';
2
+ import { sizes } from '../../../components/forms/helpers';
3
+ export interface Props {
4
+ modelValue: string;
5
+ /**
6
+ * Массив props для вставки radioGroupItem
7
+ */
8
+ radiosProps?: ItemProps[];
9
+ showIndicator?: boolean;
10
+ size?: Size;
11
+ isError?: boolean;
12
+ }
13
+ export interface Emits {
14
+ (e: 'update:modelValue', value: Props['modelValue']): void;
15
+ }
16
+ export interface ItemProps {
17
+ value: Props['modelValue'];
18
+ title: string;
19
+ icon?: string;
20
+ disabled?: boolean;
21
+ }
22
+ export { sizes };
@@ -0,0 +1,64 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ import * as ComponentsConst from './radioGroup';
3
+ declare const meta: {
4
+ component: import("vue").DefineComponent<{
5
+ size: {
6
+ type: import("vue").PropType<import("../../forms/helpers").Size>;
7
+ default: string;
8
+ };
9
+ modelValue: {
10
+ type: import("vue").PropType<string>;
11
+ required: true;
12
+ };
13
+ isError: {
14
+ type: import("vue").PropType<boolean>;
15
+ };
16
+ radiosProps: {
17
+ type: import("vue").PropType<ComponentsConst.ItemProps[]>;
18
+ };
19
+ showIndicator: {
20
+ type: import("vue").PropType<boolean>;
21
+ };
22
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:modelValue": (value: string) => void;
24
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ size: {
26
+ type: import("vue").PropType<import("../../forms/helpers").Size>;
27
+ default: string;
28
+ };
29
+ modelValue: {
30
+ type: import("vue").PropType<string>;
31
+ required: true;
32
+ };
33
+ isError: {
34
+ type: import("vue").PropType<boolean>;
35
+ };
36
+ radiosProps: {
37
+ type: import("vue").PropType<ComponentsConst.ItemProps[]>;
38
+ };
39
+ showIndicator: {
40
+ type: import("vue").PropType<boolean>;
41
+ };
42
+ }>> & {
43
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
44
+ }, {
45
+ size: import("../../forms/helpers").Size;
46
+ }, {}>;
47
+ tags: string[];
48
+ argTypes: any;
49
+ args: {
50
+ modelValue: string;
51
+ };
52
+ };
53
+ type Story = StoryObj<typeof meta>;
54
+ export declare const Playground: {
55
+ args: {
56
+ radiosProps: {
57
+ value: string;
58
+ title: string;
59
+ icon: string;
60
+ }[];
61
+ };
62
+ };
63
+ export declare const Overview: Story;
64
+ export default meta;
@@ -0,0 +1,30 @@
1
+ import type { Props } from './radioGroup';
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("../../forms/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,28 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ /**
3
+ * Генерация объекта ArgsTypes для Storybook
4
+ */
5
+ export declare function genArgsTypes(component: any, ComponentsConsts: any[string], defaultSlotAsString?: boolean): any;
6
+ /**
7
+ * Сгенерировать историю обзора компонента
8
+ *
9
+ * Располагайте компонент OverviewComponent в папке stories, чтобы он не мешал основному компоненту
10
+ * @param options - парамтеры историии
11
+ * @param options.args - следует указавать только необходимые для демонстрации props, которых нет в шаблоне OverviewComponent
12
+ * @param OverviewComponent - компонент для вывода другого компонента в разных состояниях
13
+ * @returns возвращает историю обзора компонента
14
+ */
15
+ export declare function genOverviewStory<Story>(options: Story & StoryObj, OverviewComponent: any): Story;
16
+ /**
17
+ * Получить объект с css переменными из css стилей
18
+ * @param css - стили css
19
+ * @return - словарь с css переменными
20
+ */
21
+ export declare function parseCSSVariables(css: string): Map<string, string>;
22
+ /**
23
+ * Сгенерировать словарь css переменных с двойной вложенностью, определяемую разделителем '-' в имени переменной
24
+ * @param cssVariables - словарь css переменных
25
+ * @param searchStrings - вернуть только подходящие по имени переменные, по условию AND
26
+ * @return - словарь с группами css переменных
27
+ */
28
+ export declare function genCSSVariablesGroups(cssVariables: Map<string, string>, searchStrings?: string[]): Map<string, Map<string, Map<string, string>>>;