@salutejs/plasma-sb-utils 0.247.0-next-sbcom.0 → 0.248.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Accordion/Accordion.d.ts +5 -38
- package/lib/components/Accordion/meta.d.ts +5 -38
- package/lib/components/Accordion/meta.js +6 -15
- package/lib/components/Accordion/meta.js.map +1 -1
- package/lib/components/Attach/Attach.d.ts +38 -101
- package/lib/components/Attach/meta.d.ts +38 -101
- package/lib/components/Attach/meta.js +44 -53
- package/lib/components/Attach/meta.js.map +1 -1
- package/lib/components/Badge/Badge.d.ts +18 -45
- package/lib/components/Badge/meta.d.ts +18 -45
- package/lib/components/Badge/meta.js +10 -15
- package/lib/components/Badge/meta.js.map +1 -1
- package/lib/components/BottomSheet/BottomSheet.d.ts +11 -41
- package/lib/components/BottomSheet/meta.d.ts +11 -41
- package/lib/components/BottomSheet/meta.js +10 -16
- package/lib/components/BottomSheet/meta.js.map +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -12
- package/lib/components/Breadcrumbs/meta.d.ts +0 -12
- package/lib/components/Breadcrumbs/meta.js +0 -4
- package/lib/components/Breadcrumbs/meta.js.map +1 -1
- package/lib/components/Button/Button.d.ts +15 -51
- package/lib/components/Button/meta.d.ts +15 -51
- package/lib/components/Button/meta.js +10 -18
- package/lib/components/Button/meta.js.map +1 -1
- package/lib/components/Calendar/Calendar.d.ts +26 -5
- package/lib/components/Calendar/meta.d.ts +26 -5
- package/lib/components/Calendar/meta.js +15 -7
- package/lib/components/Calendar/meta.js.map +1 -1
- package/lib/components/Calendar/stories.d.ts +2 -2
- package/lib/components/Calendar/stories.js +4 -4
- package/lib/components/Calendar/stories.js.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +27 -12
- package/lib/components/Carousel/Carousel.js +14 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/meta.d.ts +16 -12
- package/lib/components/Carousel/meta.js +19 -12
- package/lib/components/Carousel/meta.js.map +1 -1
- package/lib/components/Carousel/stories.d.ts +1 -0
- package/lib/components/Carousel/stories.js +43 -1
- package/lib/components/Carousel/stories.js.map +1 -1
- package/lib/components/Chip/Chip.d.ts +10 -43
- package/lib/components/Chip/meta.d.ts +10 -43
- package/lib/components/Chip/meta.js +8 -16
- package/lib/components/Chip/meta.js.map +1 -1
- package/lib/components/CodeArea/CodeArea.d.ts +16 -46
- package/lib/components/CodeArea/meta.d.ts +16 -46
- package/lib/components/CodeArea/meta.js +16 -20
- package/lib/components/CodeArea/meta.js.map +1 -1
- package/lib/components/CodeField/CodeField.d.ts +0 -46
- package/lib/components/CodeField/meta.d.ts +0 -46
- package/lib/components/CodeField/meta.js +0 -15
- package/lib/components/CodeField/meta.js.map +1 -1
- package/lib/components/CodeInput/CodeInput.d.ts +0 -40
- package/lib/components/CodeInput/meta.d.ts +0 -40
- package/lib/components/CodeInput/meta.js +0 -13
- package/lib/components/CodeInput/meta.js.map +1 -1
- package/lib/components/Combobox/Combobox.d.ts +10 -90
- package/lib/components/Combobox/meta.d.ts +10 -90
- package/lib/components/Combobox/meta.js +6 -33
- package/lib/components/Combobox/meta.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.d.ts +135 -58
- package/lib/components/DatePicker/fixtures.d.ts +1 -0
- package/lib/components/DatePicker/fixtures.js +1 -0
- package/lib/components/DatePicker/fixtures.js.map +1 -1
- package/lib/components/DatePicker/meta.d.ts +135 -58
- package/lib/components/DatePicker/meta.js +70 -79
- package/lib/components/DatePicker/meta.js.map +1 -1
- package/lib/components/DateTimePicker/DateTimePicker.d.ts +31 -158
- package/lib/components/DateTimePicker/fixtures.d.ts +1 -0
- package/lib/components/DateTimePicker/fixtures.js +1 -0
- package/lib/components/DateTimePicker/fixtures.js.map +1 -1
- package/lib/components/DateTimePicker/meta.d.ts +31 -158
- package/lib/components/DateTimePicker/meta.js +22 -59
- package/lib/components/DateTimePicker/meta.js.map +1 -1
- package/lib/components/Drawer/Drawer.d.ts +32 -78
- package/lib/components/Drawer/meta.d.ts +32 -78
- package/lib/components/Drawer/meta.js +26 -33
- package/lib/components/Drawer/meta.js.map +1 -1
- package/lib/components/Dropdown/fixtures.js +15 -1
- package/lib/components/Dropdown/fixtures.js.map +1 -1
- package/lib/components/Dropdown/meta.js +1 -1
- package/lib/components/Dropdown/meta.js.map +1 -1
- package/lib/components/Dropzone/Dropzone.d.ts +0 -33
- package/lib/components/Dropzone/meta.d.ts +0 -33
- package/lib/components/Dropzone/meta.js +0 -11
- package/lib/components/Dropzone/meta.js.map +1 -1
- package/lib/components/EmbeddedButton/EmbeddedButton.d.ts +0 -21
- package/lib/components/EmbeddedButton/meta.d.ts +0 -21
- package/lib/components/EmbeddedButton/meta.js +10 -14
- package/lib/components/EmbeddedButton/meta.js.map +1 -1
- package/lib/components/File/File.d.ts +11 -6
- package/lib/components/File/meta.d.ts +11 -6
- package/lib/components/File/meta.js +9 -6
- package/lib/components/File/meta.js.map +1 -1
- package/lib/components/InformationWrapper/InformationWrapper.d.ts +10 -73
- package/lib/components/InformationWrapper/meta.d.ts +10 -73
- package/lib/components/InformationWrapper/meta.js +10 -28
- package/lib/components/InformationWrapper/meta.js.map +1 -1
- package/lib/components/Link/Link.d.ts +5 -23
- package/lib/components/Link/meta.d.ts +5 -23
- package/lib/components/Link/meta.js +7 -11
- package/lib/components/Link/meta.js.map +1 -1
- package/lib/components/Note/Note.d.ts +15 -54
- package/lib/components/Note/meta.d.ts +15 -54
- package/lib/components/Note/meta.js +13 -22
- package/lib/components/Note/meta.js.map +1 -1
- package/lib/components/NumberFormat/NumberFormat.d.ts +0 -84
- package/lib/components/NumberFormat/meta.d.ts +0 -84
- package/lib/components/NumberFormat/meta.js +0 -28
- package/lib/components/NumberFormat/meta.js.map +1 -1
- package/lib/components/NumberInput/NumberInput.d.ts +0 -72
- package/lib/components/NumberInput/meta.d.ts +0 -72
- package/lib/components/NumberInput/meta.js +0 -24
- package/lib/components/NumberInput/meta.js.map +1 -1
- package/lib/components/Pagination/Pagination.d.ts +15 -64
- package/lib/components/Pagination/meta.d.ts +15 -64
- package/lib/components/Pagination/meta.js +9 -22
- package/lib/components/Pagination/meta.js.map +1 -1
- package/lib/components/Popover/Popover.d.ts +10 -67
- package/lib/components/Popover/meta.d.ts +10 -40
- package/lib/components/Popover/meta.js +8 -15
- package/lib/components/Popover/meta.js.map +1 -1
- package/lib/components/Popover/stories.d.ts +0 -27
- package/lib/components/Popover/stories.js +3 -11
- package/lib/components/Popover/stories.js.map +1 -1
- package/lib/components/Progress/Progress.d.ts +5 -41
- package/lib/components/Progress/meta.d.ts +5 -41
- package/lib/components/Progress/meta.js +7 -17
- package/lib/components/Progress/meta.js.map +1 -1
- package/lib/components/Range/Range.d.ts +47 -12
- package/lib/components/Range/meta.d.ts +47 -12
- package/lib/components/Range/meta.js +15 -5
- package/lib/components/Range/meta.js.map +1 -1
- package/lib/components/Rating/Rating.d.ts +0 -33
- package/lib/components/Rating/meta.d.ts +0 -33
- package/lib/components/Rating/meta.js +0 -11
- package/lib/components/Rating/meta.js.map +1 -1
- package/lib/components/Segment/meta.js +13 -9
- package/lib/components/Segment/meta.js.map +1 -1
- package/lib/components/Select/Select.d.ts +11 -269
- package/lib/components/Select/Select.js +13 -1
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/meta.d.ts +15 -2
- package/lib/components/Select/meta.js +16 -7
- package/lib/components/Select/meta.js.map +1 -1
- package/lib/components/Slider/Slider.d.ts +19 -97
- package/lib/components/Slider/meta.d.ts +19 -94
- package/lib/components/Slider/meta.js +15 -36
- package/lib/components/Slider/meta.js.map +1 -1
- package/lib/components/Slider/stories.d.ts +0 -3
- package/lib/components/Slider/stories.js +0 -1
- package/lib/components/Slider/stories.js.map +1 -1
- package/lib/components/Steps/Steps.d.ts +25 -73
- package/lib/components/Steps/meta.d.ts +25 -73
- package/lib/components/Steps/meta.js +22 -31
- package/lib/components/Steps/meta.js.map +1 -1
- package/lib/components/Table/Table.d.ts +6 -6
- package/lib/components/Table/meta.d.ts +6 -6
- package/lib/components/Table/meta.js +8 -4
- package/lib/components/Table/meta.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +48 -144
- package/lib/components/Tabs/meta.d.ts +24 -72
- package/lib/components/Tabs/meta.js +21 -31
- package/lib/components/Tabs/meta.js.map +1 -1
- package/lib/components/TextArea/TextArea.d.ts +19 -121
- package/lib/components/TextArea/meta.d.ts +19 -121
- package/lib/components/TextArea/meta.js +14 -44
- package/lib/components/TextArea/meta.js.map +1 -1
- package/lib/components/TextField/TextField.d.ts +15 -108
- package/lib/components/TextField/meta.d.ts +15 -108
- package/lib/components/TextField/meta.js +13 -40
- package/lib/components/TextField/meta.js.map +1 -1
- package/lib/components/TextFieldSlider/TextFieldSlider.d.ts +25 -148
- package/lib/components/TextFieldSlider/meta.d.ts +25 -148
- package/lib/components/TextFieldSlider/meta.js +19 -54
- package/lib/components/TextFieldSlider/meta.js.map +1 -1
- package/lib/components/TimePicker/TimePicker.d.ts +21 -129
- package/lib/components/TimePicker/meta.d.ts +21 -129
- package/lib/components/TimePicker/meta.js +16 -48
- package/lib/components/TimePicker/meta.js.map +1 -1
- package/lib/components/Tour/Tour.d.ts +5 -35
- package/lib/components/Tour/meta.d.ts +5 -35
- package/lib/components/Tour/meta.js +7 -15
- package/lib/components/Tour/meta.js.map +1 -1
- package/lib/components/_ai/Answer/Answer.d.ts +7 -34
- package/lib/components/_ai/Answer/meta.d.ts +7 -34
- package/lib/components/_ai/Answer/meta.js +13 -19
- package/lib/components/_ai/Answer/meta.js.map +1 -1
- package/lib/components/_ai/Container/Container.d.ts +26 -80
- package/lib/components/_ai/Container/meta.d.ts +26 -80
- package/lib/components/_ai/Container/meta.js +34 -48
- package/lib/components/_ai/Container/meta.js.map +1 -1
- package/lib/components/_ai/Header/Header.d.ts +8 -32
- package/lib/components/_ai/Header/meta.d.ts +8 -32
- package/lib/components/_ai/Header/meta.js +8 -13
- package/lib/components/_ai/Header/meta.js.map +1 -1
- package/lib/components/_ai/Input/Input.d.ts +8 -41
- package/lib/components/_ai/Input/meta.d.ts +8 -41
- package/lib/components/_ai/Input/meta.js +8 -16
- package/lib/components/_ai/Input/meta.js.map +1 -1
- package/lib/components/_ai/Markdown/Markdown.d.ts +4 -4
- package/lib/components/_ai/Markdown/meta.d.ts +4 -4
- package/lib/components/_ai/Markdown/meta.js +7 -5
- package/lib/components/_ai/Markdown/meta.js.map +1 -1
- package/lib/components/_ai/UserMessage/UserMessage.d.ts +11 -29
- package/lib/components/_ai/UserMessage/meta.d.ts +11 -29
- package/lib/components/_ai/UserMessage/meta.js +8 -11
- package/lib/components/_ai/UserMessage/meta.js.map +1 -1
- package/lib/components/_ai/UserMessage/stories.js +2 -2
- package/lib/components/_ai/UserMessage/stories.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/index.js.map +1 -1
- package/lib/helpers/exampleOnly.d.ts +14 -0
- package/lib/helpers/exampleOnly.js +28 -0
- package/lib/helpers/exampleOnly.js.map +1 -0
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +1 -0
- package/lib/helpers/index.js.map +1 -1
- package/package.json +7 -7
- package/lib/components/Spinner/Spinner.d.ts +0 -59
- package/lib/components/Spinner/Spinner.js +0 -42
- package/lib/components/Spinner/Spinner.js.map +0 -1
- package/lib/components/Spinner/fixtures.d.ts +0 -1
- package/lib/components/Spinner/fixtures.js +0 -2
- package/lib/components/Spinner/fixtures.js.map +0 -1
- package/lib/components/Spinner/index.d.ts +0 -1
- package/lib/components/Spinner/index.js +0 -2
- package/lib/components/Spinner/index.js.map +0 -1
- package/lib/components/Spinner/meta.d.ts +0 -47
- package/lib/components/Spinner/meta.js +0 -45
- package/lib/components/Spinner/meta.js.map +0 -1
- package/lib/components/Spinner/stories.d.ts +0 -7
- package/lib/components/Spinner/stories.js +0 -60
- package/lib/components/Spinner/stories.js.map +0 -1
|
@@ -50,32 +50,38 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
50
50
|
hintHasArrow: boolean;
|
|
51
51
|
};
|
|
52
52
|
argTypes: {
|
|
53
|
+
enableContentLeft: {
|
|
54
|
+
control: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
enableContentRight: {
|
|
59
|
+
control: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
hasHint: {
|
|
64
|
+
control: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
53
68
|
view: {
|
|
54
69
|
options: any;
|
|
55
70
|
control: {
|
|
56
71
|
type: string;
|
|
57
72
|
};
|
|
58
|
-
table: {
|
|
59
|
-
category: string;
|
|
60
|
-
};
|
|
61
73
|
};
|
|
62
74
|
size: {
|
|
63
75
|
options: any;
|
|
64
76
|
control: {
|
|
65
77
|
type: string;
|
|
66
78
|
};
|
|
67
|
-
table: {
|
|
68
|
-
category: string;
|
|
69
|
-
};
|
|
70
79
|
};
|
|
71
80
|
appearance: {
|
|
72
81
|
options: string[];
|
|
73
82
|
control: {
|
|
74
83
|
type: string;
|
|
75
84
|
};
|
|
76
|
-
table: {
|
|
77
|
-
category: string;
|
|
78
|
-
};
|
|
79
85
|
};
|
|
80
86
|
hasDivider: {
|
|
81
87
|
control: {
|
|
@@ -85,25 +91,16 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
85
91
|
arg: string;
|
|
86
92
|
eq: string;
|
|
87
93
|
};
|
|
88
|
-
table: {
|
|
89
|
-
category: string;
|
|
90
|
-
};
|
|
91
94
|
};
|
|
92
95
|
disabled: {
|
|
93
96
|
control: {
|
|
94
97
|
type: string;
|
|
95
98
|
};
|
|
96
|
-
table: {
|
|
97
|
-
category: string;
|
|
98
|
-
};
|
|
99
99
|
};
|
|
100
100
|
readOnly: {
|
|
101
101
|
control: {
|
|
102
102
|
type: string;
|
|
103
103
|
};
|
|
104
|
-
table: {
|
|
105
|
-
category: string;
|
|
106
|
-
};
|
|
107
104
|
};
|
|
108
105
|
requiredPlacement: {
|
|
109
106
|
options: string[];
|
|
@@ -114,9 +111,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
114
111
|
arg: string;
|
|
115
112
|
truthy: boolean;
|
|
116
113
|
};
|
|
117
|
-
table: {
|
|
118
|
-
category: string;
|
|
119
|
-
};
|
|
120
114
|
};
|
|
121
115
|
required: {
|
|
122
116
|
control: {
|
|
@@ -126,9 +120,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
126
120
|
arg: string;
|
|
127
121
|
truthy: boolean;
|
|
128
122
|
};
|
|
129
|
-
table: {
|
|
130
|
-
category: string;
|
|
131
|
-
};
|
|
132
123
|
};
|
|
133
124
|
hasRequiredIndicator: {
|
|
134
125
|
control: {
|
|
@@ -138,9 +129,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
138
129
|
arg: string;
|
|
139
130
|
truthy: boolean;
|
|
140
131
|
};
|
|
141
|
-
table: {
|
|
142
|
-
category: string;
|
|
143
|
-
};
|
|
144
132
|
};
|
|
145
133
|
optional: {
|
|
146
134
|
control: {
|
|
@@ -150,9 +138,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
150
138
|
arg: string;
|
|
151
139
|
truthy: boolean;
|
|
152
140
|
};
|
|
153
|
-
table: {
|
|
154
|
-
category: string;
|
|
155
|
-
};
|
|
156
141
|
};
|
|
157
142
|
optionalText: {
|
|
158
143
|
control: {
|
|
@@ -162,74 +147,37 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
162
147
|
arg: string;
|
|
163
148
|
truthy: boolean;
|
|
164
149
|
};
|
|
165
|
-
table: {
|
|
166
|
-
category: string;
|
|
167
|
-
};
|
|
168
150
|
};
|
|
169
151
|
label: {
|
|
170
152
|
control: {
|
|
171
153
|
type: string;
|
|
172
154
|
};
|
|
173
|
-
table: {
|
|
174
|
-
category: string;
|
|
175
|
-
};
|
|
176
155
|
};
|
|
177
156
|
placeholder: {
|
|
178
157
|
control: {
|
|
179
158
|
type: string;
|
|
180
159
|
};
|
|
181
|
-
table: {
|
|
182
|
-
category: string;
|
|
183
|
-
};
|
|
184
160
|
};
|
|
185
161
|
textBefore: {
|
|
186
162
|
control: {
|
|
187
163
|
type: string;
|
|
188
164
|
};
|
|
189
|
-
table: {
|
|
190
|
-
category: string;
|
|
191
|
-
};
|
|
192
165
|
};
|
|
193
166
|
textAfter: {
|
|
194
167
|
control: {
|
|
195
168
|
type: string;
|
|
196
169
|
};
|
|
197
|
-
table: {
|
|
198
|
-
category: string;
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
enableContentLeft: {
|
|
202
|
-
control: {
|
|
203
|
-
type: string;
|
|
204
|
-
};
|
|
205
|
-
table: {
|
|
206
|
-
category: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
enableContentRight: {
|
|
210
|
-
control: {
|
|
211
|
-
type: string;
|
|
212
|
-
};
|
|
213
|
-
table: {
|
|
214
|
-
category: string;
|
|
215
|
-
};
|
|
216
170
|
};
|
|
217
171
|
maxLength: {
|
|
218
172
|
control: {
|
|
219
173
|
type: string;
|
|
220
174
|
};
|
|
221
|
-
table: {
|
|
222
|
-
category: string;
|
|
223
|
-
};
|
|
224
175
|
};
|
|
225
176
|
labelPlacement: {
|
|
226
177
|
options: string[];
|
|
227
178
|
control: {
|
|
228
179
|
type: string;
|
|
229
180
|
};
|
|
230
|
-
table: {
|
|
231
|
-
category: string;
|
|
232
|
-
};
|
|
233
181
|
};
|
|
234
182
|
keepPlaceholder: {
|
|
235
183
|
control: {
|
|
@@ -239,33 +187,16 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
239
187
|
arg: string;
|
|
240
188
|
eq: string;
|
|
241
189
|
};
|
|
242
|
-
table: {
|
|
243
|
-
category: string;
|
|
244
|
-
};
|
|
245
190
|
};
|
|
246
191
|
titleCaption: {
|
|
247
192
|
control: {
|
|
248
193
|
type: string;
|
|
249
194
|
};
|
|
250
|
-
table: {
|
|
251
|
-
category: string;
|
|
252
|
-
};
|
|
253
195
|
};
|
|
254
196
|
leftHelper: {
|
|
255
197
|
control: {
|
|
256
198
|
type: string;
|
|
257
199
|
};
|
|
258
|
-
table: {
|
|
259
|
-
category: string;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
hasHint: {
|
|
263
|
-
control: {
|
|
264
|
-
type: string;
|
|
265
|
-
};
|
|
266
|
-
table: {
|
|
267
|
-
category: string;
|
|
268
|
-
};
|
|
269
200
|
};
|
|
270
201
|
rightHelper: {
|
|
271
202
|
control: {
|
|
@@ -280,9 +211,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
280
211
|
arg: string;
|
|
281
212
|
truthy: boolean;
|
|
282
213
|
};
|
|
283
|
-
table: {
|
|
284
|
-
category: string;
|
|
285
|
-
};
|
|
286
214
|
};
|
|
287
215
|
hintView: {
|
|
288
216
|
options: string[];
|
|
@@ -293,9 +221,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
293
221
|
arg: string;
|
|
294
222
|
truthy: boolean;
|
|
295
223
|
};
|
|
296
|
-
table: {
|
|
297
|
-
category: string;
|
|
298
|
-
};
|
|
299
224
|
};
|
|
300
225
|
hintSize: {
|
|
301
226
|
options: string[];
|
|
@@ -306,9 +231,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
306
231
|
arg: string;
|
|
307
232
|
truthy: boolean;
|
|
308
233
|
};
|
|
309
|
-
table: {
|
|
310
|
-
category: string;
|
|
311
|
-
};
|
|
312
234
|
};
|
|
313
235
|
hintTargetPlacement: {
|
|
314
236
|
options: string[];
|
|
@@ -319,9 +241,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
319
241
|
arg: string;
|
|
320
242
|
truthy: boolean;
|
|
321
243
|
};
|
|
322
|
-
table: {
|
|
323
|
-
category: string;
|
|
324
|
-
};
|
|
325
244
|
};
|
|
326
245
|
hintTrigger: {
|
|
327
246
|
options: string[];
|
|
@@ -332,9 +251,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
332
251
|
arg: string;
|
|
333
252
|
truthy: boolean;
|
|
334
253
|
};
|
|
335
|
-
table: {
|
|
336
|
-
category: string;
|
|
337
|
-
};
|
|
338
254
|
};
|
|
339
255
|
hintPlacement: {
|
|
340
256
|
options: string[];
|
|
@@ -346,9 +262,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
346
262
|
truthy: boolean;
|
|
347
263
|
};
|
|
348
264
|
mappers: string[];
|
|
349
|
-
table: {
|
|
350
|
-
category: string;
|
|
351
|
-
};
|
|
352
265
|
};
|
|
353
266
|
hintHasArrow: {
|
|
354
267
|
control: {
|
|
@@ -358,9 +271,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
358
271
|
arg: string;
|
|
359
272
|
truthy: boolean;
|
|
360
273
|
};
|
|
361
|
-
table: {
|
|
362
|
-
category: string;
|
|
363
|
-
};
|
|
364
274
|
};
|
|
365
275
|
hintWidth: {
|
|
366
276
|
control: {
|
|
@@ -370,9 +280,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
370
280
|
arg: string;
|
|
371
281
|
truthy: boolean;
|
|
372
282
|
};
|
|
373
|
-
table: {
|
|
374
|
-
category: string;
|
|
375
|
-
};
|
|
376
283
|
};
|
|
377
284
|
};
|
|
378
285
|
};
|
|
@@ -18,7 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
18
18
|
}
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
|
-
import { disableProps, InSpacingDecorator } from '../../index';
|
|
21
|
+
import { disableProps, InSpacingDecorator, exampleOnly } from '../../index';
|
|
22
22
|
import { appearances, hintViews, hintSizes, hintTriggers, hintTargetPlacements, labelPlacements, placements, requiredPlacements, } from './fixtures';
|
|
23
23
|
export var createMeta = function (_a) {
|
|
24
24
|
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Entry/TextField' : _b, _c = _a.defaultArgs, defaultArgs = _c === void 0 ? {} : _c, _d = _a.additionalArgTypes, additionalArgTypes = _d === void 0 ? {} : _d, _e = _a.disablePropsList, disablePropsList = _e === void 0 ? [] : _e;
|
|
@@ -32,31 +32,25 @@ export var createMeta = function (_a) {
|
|
|
32
32
|
},
|
|
33
33
|
component: component,
|
|
34
34
|
args: __assign({ id: 'example-text-field', appearance: 'default', hasDivider: false, size: 'm', view: 'default', label: 'Лейбл', labelPlacement: 'outer', keepPlaceholder: false, titleCaption: 'Подпись к полю', textBefore: '', textAfter: '', placeholder: 'Заполните поле', leftHelper: 'Подсказка к полю слева', rightHelper: 'Подсказка к полю справа', disabled: false, readOnly: false, enableContentLeft: true, enableContentRight: true, optional: false, optionalText: 'опционально', required: false, requiredPlacement: 'right', hasRequiredIndicator: false, hasHint: true, hintText: 'Текст подсказки', hintTrigger: 'hover', hintView: 'default', hintSize: 'm', hintTargetPlacement: 'outer', hintPlacement: 'auto', hintWidth: '10rem', hintHasArrow: true }, defaultArgs),
|
|
35
|
-
argTypes: __assign(__assign({ view: {
|
|
35
|
+
argTypes: __assign(__assign(__assign({ view: {
|
|
36
36
|
options: componentConfig.views,
|
|
37
37
|
control: { type: 'select' },
|
|
38
|
-
table: { category: 'variation' },
|
|
39
38
|
}, size: {
|
|
40
39
|
options: componentConfig.sizes,
|
|
41
40
|
control: { type: 'select' },
|
|
42
|
-
table: { category: 'variation' },
|
|
43
41
|
}, appearance: {
|
|
44
42
|
options: appearances,
|
|
45
43
|
control: { type: 'select' },
|
|
46
|
-
table: { category: 'variation' },
|
|
47
44
|
}, hasDivider: {
|
|
48
45
|
control: { type: 'boolean' },
|
|
49
46
|
if: {
|
|
50
47
|
arg: 'appearance',
|
|
51
48
|
eq: 'clear',
|
|
52
49
|
},
|
|
53
|
-
table: { category: 'variation' },
|
|
54
50
|
}, disabled: {
|
|
55
51
|
control: { type: 'boolean' },
|
|
56
|
-
table: { category: 'variation' },
|
|
57
52
|
}, readOnly: {
|
|
58
53
|
control: { type: 'boolean' },
|
|
59
|
-
table: { category: 'variation' },
|
|
60
54
|
}, requiredPlacement: {
|
|
61
55
|
options: requiredPlacements,
|
|
62
56
|
control: { type: 'select' },
|
|
@@ -64,76 +58,53 @@ export var createMeta = function (_a) {
|
|
|
64
58
|
arg: 'optional',
|
|
65
59
|
truthy: false,
|
|
66
60
|
},
|
|
67
|
-
table: { category: 'form-related' },
|
|
68
61
|
}, required: {
|
|
69
62
|
control: { type: 'boolean' },
|
|
70
63
|
if: {
|
|
71
64
|
arg: 'optional',
|
|
72
65
|
truthy: false,
|
|
73
66
|
},
|
|
74
|
-
table: { category: 'form-related' },
|
|
75
67
|
}, hasRequiredIndicator: {
|
|
76
68
|
control: { type: 'boolean' },
|
|
77
69
|
if: {
|
|
78
70
|
arg: 'required',
|
|
79
71
|
truthy: true,
|
|
80
72
|
},
|
|
81
|
-
table: { category: 'form-related' },
|
|
82
73
|
}, optional: {
|
|
83
74
|
control: { type: 'boolean' },
|
|
84
75
|
if: {
|
|
85
76
|
arg: 'required',
|
|
86
77
|
truthy: false,
|
|
87
78
|
},
|
|
88
|
-
table: { category: 'form-related' },
|
|
89
79
|
}, optionalText: {
|
|
90
80
|
control: { type: 'text' },
|
|
91
81
|
if: {
|
|
92
82
|
arg: 'required',
|
|
93
83
|
truthy: false,
|
|
94
84
|
},
|
|
95
|
-
table: { category: 'layout' },
|
|
96
85
|
}, label: {
|
|
97
86
|
control: { type: 'text' },
|
|
98
|
-
table: { category: 'layout' },
|
|
99
87
|
}, placeholder: {
|
|
100
88
|
control: { type: 'text' },
|
|
101
|
-
table: { category: 'layout' },
|
|
102
89
|
}, textBefore: {
|
|
103
90
|
control: { type: 'text' },
|
|
104
|
-
table: { category: 'layout' },
|
|
105
91
|
}, textAfter: {
|
|
106
92
|
control: { type: 'text' },
|
|
107
|
-
table: { category: 'layout' },
|
|
108
|
-
}, enableContentLeft: {
|
|
109
|
-
control: { type: 'boolean' },
|
|
110
|
-
table: { category: 'layout' },
|
|
111
|
-
}, enableContentRight: {
|
|
112
|
-
control: { type: 'boolean' },
|
|
113
|
-
table: { category: 'layout' },
|
|
114
93
|
}, maxLength: {
|
|
115
94
|
control: { type: 'number' },
|
|
116
|
-
table: { category: 'layout' },
|
|
117
95
|
}, labelPlacement: {
|
|
118
96
|
options: labelPlacements,
|
|
119
97
|
control: { type: 'inline-radio' },
|
|
120
|
-
table: { category: 'layout' },
|
|
121
98
|
}, keepPlaceholder: {
|
|
122
99
|
control: { type: 'boolean' },
|
|
123
100
|
if: {
|
|
124
101
|
arg: 'labelPlacement',
|
|
125
102
|
eq: 'inner',
|
|
126
103
|
},
|
|
127
|
-
table: { category: 'layout' },
|
|
128
104
|
}, titleCaption: {
|
|
129
105
|
control: { type: 'text' },
|
|
130
|
-
table: { category: 'layout' },
|
|
131
106
|
}, leftHelper: {
|
|
132
107
|
control: { type: 'text' },
|
|
133
|
-
table: { category: 'layout' },
|
|
134
|
-
}, hasHint: {
|
|
135
|
-
control: { type: 'boolean' },
|
|
136
|
-
table: { category: 'hint' },
|
|
137
108
|
}, rightHelper: {
|
|
138
109
|
control: { type: 'text' },
|
|
139
110
|
}, hintText: {
|
|
@@ -142,7 +113,6 @@ export var createMeta = function (_a) {
|
|
|
142
113
|
arg: 'hasHint',
|
|
143
114
|
truthy: true,
|
|
144
115
|
},
|
|
145
|
-
table: { category: 'hint' },
|
|
146
116
|
}, hintView: {
|
|
147
117
|
options: hintViews,
|
|
148
118
|
control: { type: 'select' },
|
|
@@ -150,7 +120,6 @@ export var createMeta = function (_a) {
|
|
|
150
120
|
arg: 'hasHint',
|
|
151
121
|
truthy: true,
|
|
152
122
|
},
|
|
153
|
-
table: { category: 'hint' },
|
|
154
123
|
}, hintSize: {
|
|
155
124
|
options: hintSizes,
|
|
156
125
|
control: { type: 'select' },
|
|
@@ -158,7 +127,6 @@ export var createMeta = function (_a) {
|
|
|
158
127
|
arg: 'hasHint',
|
|
159
128
|
truthy: true,
|
|
160
129
|
},
|
|
161
|
-
table: { category: 'hint' },
|
|
162
130
|
}, hintTargetPlacement: {
|
|
163
131
|
options: hintTargetPlacements,
|
|
164
132
|
control: { type: 'inline-radio' },
|
|
@@ -166,7 +134,6 @@ export var createMeta = function (_a) {
|
|
|
166
134
|
arg: 'hasHint',
|
|
167
135
|
truthy: true,
|
|
168
136
|
},
|
|
169
|
-
table: { category: 'hint' },
|
|
170
137
|
}, hintTrigger: {
|
|
171
138
|
options: hintTriggers,
|
|
172
139
|
control: { type: 'inline-radio' },
|
|
@@ -174,7 +141,6 @@ export var createMeta = function (_a) {
|
|
|
174
141
|
arg: 'hasHint',
|
|
175
142
|
truthy: true,
|
|
176
143
|
},
|
|
177
|
-
table: { category: 'hint' },
|
|
178
144
|
}, hintPlacement: {
|
|
179
145
|
options: placements,
|
|
180
146
|
control: { type: 'select' },
|
|
@@ -183,22 +149,29 @@ export var createMeta = function (_a) {
|
|
|
183
149
|
truthy: true,
|
|
184
150
|
},
|
|
185
151
|
mappers: placements,
|
|
186
|
-
table: { category: 'hint' },
|
|
187
152
|
}, hintHasArrow: {
|
|
188
153
|
control: { type: 'boolean' },
|
|
189
154
|
if: {
|
|
190
155
|
arg: 'hasHint',
|
|
191
156
|
truthy: true,
|
|
192
157
|
},
|
|
193
|
-
table: { category: 'hint' },
|
|
194
158
|
}, hintWidth: {
|
|
195
159
|
control: { type: 'text' },
|
|
196
160
|
if: {
|
|
197
161
|
arg: 'hasHint',
|
|
198
162
|
truthy: true,
|
|
199
163
|
},
|
|
200
|
-
|
|
201
|
-
|
|
164
|
+
} }, exampleOnly({
|
|
165
|
+
enableContentLeft: {
|
|
166
|
+
control: { type: 'boolean' },
|
|
167
|
+
},
|
|
168
|
+
enableContentRight: {
|
|
169
|
+
control: { type: 'boolean' },
|
|
170
|
+
},
|
|
171
|
+
hasHint: {
|
|
172
|
+
control: { type: 'boolean' },
|
|
173
|
+
},
|
|
174
|
+
})), additionalArgTypes), disableProps(__spreadArray([
|
|
202
175
|
'theme',
|
|
203
176
|
'loader',
|
|
204
177
|
'onClick',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/TextField/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/TextField/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,EACH,WAAW,EACX,SAAS,EACT,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,UAAU,EACV,kBAAkB,GACrB,MAAM,YAAY,CAAC;AAWpB,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAOT;QANd,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,aAA8B,EAA9B,KAAK,mBAAG,sBAAsB,KAAA,EAC9B,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,0BAAuB,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA;IAErB,OAAO;QACH,KAAK,OAAA;QACL,UAAU,EAAE,CAAC,kBAAkB,CAAC;QAChC,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,iBAAiB,EAAE,IAAI;aAC1B;SACJ;QACD,SAAS,WAAA;QACT,IAAI,aACA,EAAE,EAAE,oBAAoB,EACxB,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,KAAK,EAC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