@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
|
@@ -9,175 +9,121 @@ export declare const createMeta: ({ componentConfig, decorators }: any) => {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
argTypes: {
|
|
12
|
-
|
|
12
|
+
headerView: {
|
|
13
13
|
description: string;
|
|
14
|
-
options:
|
|
14
|
+
options: string[];
|
|
15
15
|
control: {
|
|
16
16
|
type: string;
|
|
17
17
|
};
|
|
18
|
-
table: {
|
|
19
|
-
category: string;
|
|
20
|
-
};
|
|
21
18
|
};
|
|
22
|
-
|
|
19
|
+
headerTextAlign: {
|
|
23
20
|
description: string;
|
|
24
|
-
options:
|
|
21
|
+
options: string[];
|
|
25
22
|
control: {
|
|
26
23
|
type: string;
|
|
27
24
|
};
|
|
28
|
-
table: {
|
|
29
|
-
category: string;
|
|
30
|
-
};
|
|
31
25
|
};
|
|
32
|
-
|
|
26
|
+
headerHasDivider: {
|
|
33
27
|
description: string;
|
|
34
|
-
options: string[];
|
|
35
28
|
control: {
|
|
36
29
|
type: string;
|
|
37
30
|
};
|
|
38
|
-
table: {
|
|
39
|
-
category: string;
|
|
40
|
-
};
|
|
41
31
|
};
|
|
42
|
-
|
|
32
|
+
headerTitle: {
|
|
43
33
|
description: string;
|
|
44
|
-
options: string[];
|
|
45
34
|
control: {
|
|
46
35
|
type: string;
|
|
47
36
|
};
|
|
48
|
-
table: {
|
|
49
|
-
category: string;
|
|
50
|
-
};
|
|
51
37
|
};
|
|
52
|
-
|
|
38
|
+
headerDescription: {
|
|
53
39
|
description: string;
|
|
54
|
-
options: string[];
|
|
55
40
|
control: {
|
|
56
41
|
type: string;
|
|
57
42
|
};
|
|
58
|
-
table: {
|
|
59
|
-
category: string;
|
|
60
|
-
};
|
|
61
43
|
};
|
|
62
|
-
|
|
44
|
+
inputPlaceholder: {
|
|
63
45
|
description: string;
|
|
64
46
|
control: {
|
|
65
47
|
type: string;
|
|
66
48
|
};
|
|
67
|
-
table: {
|
|
68
|
-
category: string;
|
|
69
|
-
};
|
|
70
49
|
};
|
|
71
|
-
|
|
50
|
+
inputSubmitOnEnter: {
|
|
72
51
|
description: string;
|
|
73
52
|
control: {
|
|
74
53
|
type: string;
|
|
75
54
|
};
|
|
76
|
-
table: {
|
|
77
|
-
category: string;
|
|
78
|
-
};
|
|
79
55
|
};
|
|
80
|
-
|
|
56
|
+
inputClearOnSubmit: {
|
|
81
57
|
description: string;
|
|
82
58
|
control: {
|
|
83
59
|
type: string;
|
|
84
60
|
};
|
|
85
|
-
table: {
|
|
86
|
-
category: string;
|
|
87
|
-
};
|
|
88
61
|
};
|
|
89
|
-
|
|
62
|
+
inputMinRows: {
|
|
90
63
|
description: string;
|
|
91
|
-
options: string[];
|
|
92
64
|
control: {
|
|
93
65
|
type: string;
|
|
94
66
|
};
|
|
95
|
-
table: {
|
|
96
|
-
category: string;
|
|
97
|
-
};
|
|
98
67
|
};
|
|
99
|
-
|
|
68
|
+
inputMaxRows: {
|
|
100
69
|
description: string;
|
|
101
70
|
control: {
|
|
102
71
|
type: string;
|
|
103
72
|
};
|
|
104
|
-
table: {
|
|
105
|
-
category: string;
|
|
106
|
-
};
|
|
107
73
|
};
|
|
108
|
-
|
|
74
|
+
answerLoaderTitle: {
|
|
109
75
|
description: string;
|
|
110
76
|
control: {
|
|
111
77
|
type: string;
|
|
112
78
|
};
|
|
113
|
-
table: {
|
|
114
|
-
category: string;
|
|
115
|
-
};
|
|
116
79
|
};
|
|
117
|
-
|
|
80
|
+
userMessageView: {
|
|
118
81
|
description: string;
|
|
82
|
+
options: string[];
|
|
119
83
|
control: {
|
|
120
84
|
type: string;
|
|
121
85
|
};
|
|
122
|
-
table: {
|
|
123
|
-
category: string;
|
|
124
|
-
};
|
|
125
86
|
};
|
|
126
|
-
|
|
87
|
+
userMessageAttachmentsView: {
|
|
127
88
|
description: string;
|
|
89
|
+
options: string[];
|
|
128
90
|
control: {
|
|
129
91
|
type: string;
|
|
130
92
|
};
|
|
131
|
-
table: {
|
|
132
|
-
category: string;
|
|
133
|
-
};
|
|
134
93
|
};
|
|
135
|
-
|
|
94
|
+
userMessageMaxRows: {
|
|
136
95
|
description: string;
|
|
137
96
|
control: {
|
|
138
97
|
type: string;
|
|
139
98
|
};
|
|
140
|
-
table: {
|
|
141
|
-
category: string;
|
|
142
|
-
};
|
|
143
99
|
};
|
|
144
|
-
|
|
100
|
+
inputMode: {
|
|
145
101
|
description: string;
|
|
102
|
+
options: string[];
|
|
146
103
|
control: {
|
|
147
104
|
type: string;
|
|
148
105
|
};
|
|
149
|
-
table: {
|
|
150
|
-
category: string;
|
|
151
|
-
};
|
|
152
106
|
};
|
|
153
|
-
|
|
107
|
+
view: {
|
|
154
108
|
description: string;
|
|
155
|
-
options:
|
|
109
|
+
options: any;
|
|
156
110
|
control: {
|
|
157
111
|
type: string;
|
|
158
112
|
};
|
|
159
|
-
table: {
|
|
160
|
-
category: string;
|
|
161
|
-
};
|
|
162
113
|
};
|
|
163
|
-
|
|
114
|
+
size: {
|
|
164
115
|
description: string;
|
|
165
|
-
options:
|
|
116
|
+
options: any;
|
|
166
117
|
control: {
|
|
167
118
|
type: string;
|
|
168
119
|
};
|
|
169
|
-
table: {
|
|
170
|
-
category: string;
|
|
171
|
-
};
|
|
172
120
|
};
|
|
173
|
-
|
|
121
|
+
footerCaptionAlign: {
|
|
174
122
|
description: string;
|
|
123
|
+
options: string[];
|
|
175
124
|
control: {
|
|
176
125
|
type: string;
|
|
177
126
|
};
|
|
178
|
-
table: {
|
|
179
|
-
category: string;
|
|
180
|
-
};
|
|
181
127
|
};
|
|
182
128
|
};
|
|
183
129
|
args: {
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { disableProps } from '../../../index';
|
|
12
|
+
import { disableProps, exampleOnly } from '../../../index';
|
|
13
13
|
export var createMeta = function (_a) {
|
|
14
14
|
var componentConfig = _a.componentConfig, _b = _a.decorators, decorators = _b === void 0 ? [] : _b;
|
|
15
15
|
var views = componentConfig.views, sizes = componentConfig.sizes;
|
|
@@ -23,118 +23,104 @@ export var createMeta = function (_a) {
|
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
|
-
argTypes: __assign({
|
|
26
|
+
argTypes: __assign(__assign({
|
|
27
27
|
// Container
|
|
28
28
|
view: {
|
|
29
29
|
description: 'Вид компонента',
|
|
30
30
|
options: views,
|
|
31
31
|
control: { type: 'select' },
|
|
32
|
-
table: { category: 'Container' },
|
|
33
32
|
}, size: {
|
|
34
33
|
description: 'Размер компонента',
|
|
35
34
|
options: sizes,
|
|
36
35
|
control: { type: 'select' },
|
|
37
|
-
table: { category: 'Container' },
|
|
38
36
|
}, footerCaptionAlign: {
|
|
39
37
|
description: 'Выравнивание подписи к нижней части чата',
|
|
40
38
|
options: ['center', 'start'],
|
|
41
39
|
control: { type: 'select' },
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
// Header
|
|
40
|
+
} }, exampleOnly({
|
|
45
41
|
headerView: {
|
|
46
42
|
description: 'Вид компонента Header',
|
|
47
43
|
options: ['default', 'secondary', 'clear'],
|
|
48
44
|
control: { type: 'select' },
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
},
|
|
46
|
+
headerTextAlign: {
|
|
51
47
|
description: 'Выравнивание текстового контента Header',
|
|
52
48
|
options: ['start', 'center'],
|
|
53
49
|
control: { type: 'select' },
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
},
|
|
51
|
+
headerHasDivider: {
|
|
56
52
|
description: 'Показывать разделитель в Header',
|
|
57
53
|
control: { type: 'boolean' },
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
},
|
|
55
|
+
headerTitle: {
|
|
60
56
|
description: 'Заголовок Header',
|
|
61
57
|
control: { type: 'text' },
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
},
|
|
59
|
+
headerDescription: {
|
|
64
60
|
description: 'Подзаголовок Header',
|
|
65
61
|
control: { type: 'text' },
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
// Input
|
|
69
|
-
inputMode: {
|
|
70
|
-
description: 'Режим отображения Input',
|
|
71
|
-
options: ['condensed', 'extended'],
|
|
72
|
-
control: { type: 'select' },
|
|
73
|
-
table: { category: 'Input' },
|
|
74
|
-
}, inputPlaceholder: {
|
|
62
|
+
},
|
|
63
|
+
inputPlaceholder: {
|
|
75
64
|
description: 'Плейсхолдер поля ввода',
|
|
76
65
|
control: { type: 'text' },
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
},
|
|
67
|
+
inputSubmitOnEnter: {
|
|
79
68
|
description: 'Отправлять сообщение по Enter (Shift+Enter — новая строка)',
|
|
80
69
|
control: { type: 'boolean' },
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
},
|
|
71
|
+
inputClearOnSubmit: {
|
|
83
72
|
description: 'Очищать текст после отправки',
|
|
84
73
|
control: { type: 'boolean' },
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
},
|
|
75
|
+
inputMinRows: {
|
|
87
76
|
description: 'Минимальное количество строк textarea',
|
|
88
77
|
control: { type: 'number' },
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
},
|
|
79
|
+
inputMaxRows: {
|
|
91
80
|
description: 'Максимальное количество строк textarea',
|
|
92
81
|
control: { type: 'number' },
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
// Answer
|
|
82
|
+
},
|
|
96
83
|
answerLoaderTitle: {
|
|
97
84
|
description: 'Заголовок при загрузке Answer',
|
|
98
85
|
control: { type: 'text' },
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
// UserMessage
|
|
86
|
+
},
|
|
102
87
|
userMessageView: {
|
|
103
88
|
description: 'Вид компонента UserMessage',
|
|
104
89
|
options: ['default', 'secondary', 'accent', 'positive', 'negative', 'warning'],
|
|
105
90
|
control: { type: 'select' },
|
|
106
|
-
|
|
107
|
-
|
|
91
|
+
},
|
|
92
|
+
userMessageAttachmentsView: {
|
|
108
93
|
description: 'Вид прикреплённых файлов в UserMessage',
|
|
109
94
|
options: ['default', 'secondary'],
|
|
110
95
|
control: { type: 'select' },
|
|
111
|
-
|
|
112
|
-
|
|
96
|
+
},
|
|
97
|
+
userMessageMaxRows: {
|
|
113
98
|
description: 'Максимальное количество строк при редактировании UserMessage',
|
|
114
99
|
control: { type: 'number' },
|
|
115
|
-
|
|
116
|
-
|
|
100
|
+
},
|
|
101
|
+
inputMode: {
|
|
102
|
+
description: 'Режим отображения Input',
|
|
103
|
+
options: ['condensed', 'extended'],
|
|
104
|
+
control: { type: 'select' },
|
|
105
|
+
},
|
|
106
|
+
})), disableProps(['messages', 'attachments', 'header', 'content', 'contentRef', 'footer', 'footerCaption'])),
|
|
117
107
|
args: {
|
|
118
108
|
// Container
|
|
119
109
|
size: 'xl',
|
|
120
110
|
view: 'default',
|
|
121
111
|
footerCaptionAlign: 'center',
|
|
122
|
-
// Header
|
|
123
112
|
headerView: 'default',
|
|
124
113
|
headerTextAlign: 'start',
|
|
125
114
|
headerHasDivider: true,
|
|
126
115
|
headerTitle: 'ИИ чат',
|
|
127
116
|
headerDescription: 'Создано при помощи AI-Kit',
|
|
128
|
-
// Input
|
|
129
117
|
inputMode: 'condensed',
|
|
130
118
|
inputPlaceholder: 'Введите сообщение',
|
|
131
119
|
inputSubmitOnEnter: true,
|
|
132
120
|
inputClearOnSubmit: true,
|
|
133
121
|
inputMinRows: 1,
|
|
134
122
|
inputMaxRows: 4,
|
|
135
|
-
// Answer
|
|
136
123
|
answerLoaderTitle: 'Генерирую ответ...',
|
|
137
|
-
// UserMessage
|
|
138
124
|
userMessageView: 'secondary',
|
|
139
125
|
userMessageAttachmentsView: 'secondary',
|
|
140
126
|
userMessageMaxRows: 4,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Container/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAA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AC,SAAS,EAAE,WAAW,CAAC;gBACjC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;YACD,kBAAkB,EAAE;gBAChB,WAAW,EAAE,8DAA8D;gBAC3E,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;YACD,SAAS,EAAE;gBACP,WAAW,EAAE,yBAAyB;gBACtC,OAAO,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;gBAClC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;SACJ,CAAC,GACC,YAAY,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAC7G;QACD,IAAI,EAAE;YACF,YAAY;YACZ,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,SAAS;YACf,kBAAkB,EAAE,QAAQ;YAC5B,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,OAAO;YACxB,gBAAgB,EAAE,IAAI;YACtB,WAAW,EAAE,QAAQ;YACrB,iBAAiB,EAAE,2BAA2B;YAC9C,SAAS,EAAE,WAAW;YACtB,gBAAgB,EAAE,mBAAmB;YACrC,kBAAkB,EAAE,IAAI;YACxB,kBAAkB,EAAE,IAAI;YACxB,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;YACf,iBAAiB,EAAE,oBAAoB;YACvC,eAAe,EAAE,WAAW;YAC5B,0BAA0B,EAAE,WAAW;YACvC,kBAAkB,EAAE,CAAC;SACxB;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -11,15 +11,20 @@ export declare const getHeaderStories: ({ component, componentConfig, IconButton
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
argTypes: {
|
|
14
|
+
hasActionBefore: {
|
|
15
|
+
description: string;
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
hasActionAfter: {
|
|
19
|
+
description: string;
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
14
22
|
view: {
|
|
15
23
|
description: string;
|
|
16
24
|
options: any;
|
|
17
25
|
control: {
|
|
18
26
|
type: string;
|
|
19
27
|
};
|
|
20
|
-
table: {
|
|
21
|
-
category: string;
|
|
22
|
-
};
|
|
23
28
|
};
|
|
24
29
|
size: {
|
|
25
30
|
description: string;
|
|
@@ -27,23 +32,14 @@ export declare const getHeaderStories: ({ component, componentConfig, IconButton
|
|
|
27
32
|
control: {
|
|
28
33
|
type: string;
|
|
29
34
|
};
|
|
30
|
-
table: {
|
|
31
|
-
category: string;
|
|
32
|
-
};
|
|
33
35
|
};
|
|
34
36
|
title: {
|
|
35
37
|
description: string;
|
|
36
38
|
control: string;
|
|
37
|
-
table: {
|
|
38
|
-
category: string;
|
|
39
|
-
};
|
|
40
39
|
};
|
|
41
40
|
description: {
|
|
42
41
|
description: string;
|
|
43
42
|
control: string;
|
|
44
|
-
table: {
|
|
45
|
-
category: string;
|
|
46
|
-
};
|
|
47
43
|
};
|
|
48
44
|
textAlign: {
|
|
49
45
|
description: string;
|
|
@@ -51,30 +47,10 @@ export declare const getHeaderStories: ({ component, componentConfig, IconButton
|
|
|
51
47
|
control: {
|
|
52
48
|
type: string;
|
|
53
49
|
};
|
|
54
|
-
table: {
|
|
55
|
-
category: string;
|
|
56
|
-
};
|
|
57
50
|
};
|
|
58
51
|
hasDivider: {
|
|
59
52
|
description: string;
|
|
60
53
|
control: string;
|
|
61
|
-
table: {
|
|
62
|
-
category: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
hasActionBefore: {
|
|
66
|
-
description: string;
|
|
67
|
-
control: string;
|
|
68
|
-
table: {
|
|
69
|
-
category: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
hasActionAfter: {
|
|
73
|
-
description: string;
|
|
74
|
-
control: string;
|
|
75
|
-
table: {
|
|
76
|
-
category: string;
|
|
77
|
-
};
|
|
78
54
|
};
|
|
79
55
|
};
|
|
80
56
|
args: {
|
|
@@ -10,15 +10,20 @@ export declare const createMeta: ({ component, componentConfig, decorators }: an
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
argTypes: {
|
|
13
|
+
hasActionBefore: {
|
|
14
|
+
description: string;
|
|
15
|
+
control: string;
|
|
16
|
+
};
|
|
17
|
+
hasActionAfter: {
|
|
18
|
+
description: string;
|
|
19
|
+
control: string;
|
|
20
|
+
};
|
|
13
21
|
view: {
|
|
14
22
|
description: string;
|
|
15
23
|
options: any;
|
|
16
24
|
control: {
|
|
17
25
|
type: string;
|
|
18
26
|
};
|
|
19
|
-
table: {
|
|
20
|
-
category: string;
|
|
21
|
-
};
|
|
22
27
|
};
|
|
23
28
|
size: {
|
|
24
29
|
description: string;
|
|
@@ -26,23 +31,14 @@ export declare const createMeta: ({ component, componentConfig, decorators }: an
|
|
|
26
31
|
control: {
|
|
27
32
|
type: string;
|
|
28
33
|
};
|
|
29
|
-
table: {
|
|
30
|
-
category: string;
|
|
31
|
-
};
|
|
32
34
|
};
|
|
33
35
|
title: {
|
|
34
36
|
description: string;
|
|
35
37
|
control: string;
|
|
36
|
-
table: {
|
|
37
|
-
category: string;
|
|
38
|
-
};
|
|
39
38
|
};
|
|
40
39
|
description: {
|
|
41
40
|
description: string;
|
|
42
41
|
control: string;
|
|
43
|
-
table: {
|
|
44
|
-
category: string;
|
|
45
|
-
};
|
|
46
42
|
};
|
|
47
43
|
textAlign: {
|
|
48
44
|
description: string;
|
|
@@ -50,30 +46,10 @@ export declare const createMeta: ({ component, componentConfig, decorators }: an
|
|
|
50
46
|
control: {
|
|
51
47
|
type: string;
|
|
52
48
|
};
|
|
53
|
-
table: {
|
|
54
|
-
category: string;
|
|
55
|
-
};
|
|
56
49
|
};
|
|
57
50
|
hasDivider: {
|
|
58
51
|
description: string;
|
|
59
52
|
control: string;
|
|
60
|
-
table: {
|
|
61
|
-
category: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
hasActionBefore: {
|
|
65
|
-
description: string;
|
|
66
|
-
control: string;
|
|
67
|
-
table: {
|
|
68
|
-
category: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
hasActionAfter: {
|
|
72
|
-
description: string;
|
|
73
|
-
control: string;
|
|
74
|
-
table: {
|
|
75
|
-
category: string;
|
|
76
|
-
};
|
|
77
53
|
};
|
|
78
54
|
};
|
|
79
55
|
args: {
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { disableProps } from '../../../index';
|
|
12
|
+
import { disableProps, exampleOnly } from '../../../index';
|
|
13
13
|
export var createMeta = function (_a) {
|
|
14
14
|
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.decorators, decorators = _b === void 0 ? [] : _b;
|
|
15
15
|
var views = componentConfig.views, sizes = componentConfig.sizes;
|
|
@@ -25,42 +25,37 @@ export var createMeta = function (_a) {
|
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
|
-
argTypes: __assign({ view: {
|
|
28
|
+
argTypes: __assign(__assign({ view: {
|
|
29
29
|
description: 'Вид компонента',
|
|
30
30
|
options: views,
|
|
31
31
|
control: { type: 'select' },
|
|
32
|
-
table: { category: 'variation' },
|
|
33
32
|
}, size: {
|
|
34
33
|
description: 'Размер компонента',
|
|
35
34
|
options: sizes,
|
|
36
35
|
control: { type: 'select' },
|
|
37
|
-
table: { category: 'variation' },
|
|
38
36
|
}, title: {
|
|
39
37
|
description: 'Заголовок',
|
|
40
38
|
control: 'text',
|
|
41
|
-
table: { category: 'content-related' },
|
|
42
39
|
}, description: {
|
|
43
40
|
description: 'Подзаголовок / описание',
|
|
44
41
|
control: 'text',
|
|
45
|
-
table: { category: 'content-related' },
|
|
46
42
|
}, textAlign: {
|
|
47
43
|
description: 'Выравнивание текстового контента',
|
|
48
44
|
options: textAligns,
|
|
49
45
|
control: { type: 'select' },
|
|
50
|
-
table: { category: 'content-related' },
|
|
51
46
|
}, hasDivider: {
|
|
52
47
|
description: 'Показывать разделитель',
|
|
53
48
|
control: 'boolean',
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
} }, exampleOnly({
|
|
50
|
+
hasActionBefore: {
|
|
56
51
|
description: 'Показывать контент перед заголовком (иконка, аватар и т.п.)',
|
|
57
52
|
control: 'boolean',
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
},
|
|
54
|
+
hasActionAfter: {
|
|
60
55
|
description: 'Показывать контент после заголовка (кнопка закрытия и т.п.)',
|
|
61
56
|
control: 'boolean',
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
},
|
|
58
|
+
})), disableProps(['actionBefore', 'actionAfter'])),
|
|
64
59
|
args: {
|
|
65
60
|
view: 'default',
|
|
66
61
|
size: 'xl',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Header/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Header/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAAoD;QAAlD,SAAS,eAAA,EAAE,eAAe,qBAAA,EAAE,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA;IAC5D,IAAA,KAAK,GAAY,eAAe,MAA3B,EAAE,KAAK,GAAK,eAAe,MAApB,CAAqB;IACzC,IAAM,UAAU,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAC;IAEhD,OAAO;QACH,KAAK,EAAE,eAAe;QACtB,SAAS,WAAA;QACT,UAAU,YAAA;QACV,UAAU,EAAE;YACR,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