@salutejs/plasma-sb-utils 0.233.0-next-sbcom.0 → 0.234.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/BottomSheet/BottomSheet.d.ts +120 -0
- package/lib/components/BottomSheet/BottomSheet.js +40 -0
- package/lib/components/BottomSheet/BottomSheet.js.map +1 -0
- package/lib/components/BottomSheet/fixtures.d.ts +5 -0
- package/lib/components/BottomSheet/fixtures.js +11 -0
- package/lib/components/BottomSheet/fixtures.js.map +1 -0
- package/lib/components/BottomSheet/index.d.ts +1 -0
- package/lib/components/BottomSheet/index.js +2 -0
- package/lib/components/BottomSheet/index.js.map +1 -0
- package/lib/components/BottomSheet/meta.d.ts +109 -0
- package/lib/components/BottomSheet/meta.js +75 -0
- package/lib/components/BottomSheet/meta.js.map +1 -0
- package/lib/components/BottomSheet/stories.d.ts +8 -0
- package/lib/components/BottomSheet/stories.js +58 -0
- package/lib/components/BottomSheet/stories.js.map +1 -0
- package/lib/components/Dropdown/stories.js +1 -1
- package/lib/components/Dropdown/stories.js.map +1 -1
- package/lib/components/Rating/Rating.d.ts +164 -0
- package/lib/components/Rating/Rating.js +46 -0
- package/lib/components/Rating/Rating.js.map +1 -0
- package/lib/components/Rating/fixtures.d.ts +4 -0
- package/lib/components/Rating/fixtures.js +5 -0
- package/lib/components/Rating/fixtures.js.map +1 -0
- package/lib/components/Rating/index.d.ts +1 -0
- package/lib/components/Rating/index.js +2 -0
- package/lib/components/Rating/index.js.map +1 -0
- package/lib/components/Rating/meta.d.ts +147 -0
- package/lib/components/Rating/meta.js +79 -0
- package/lib/components/Rating/meta.js.map +1 -0
- package/lib/components/Rating/stories.d.ts +8 -0
- package/lib/components/Rating/stories.js +44 -0
- package/lib/components/Rating/stories.js.map +1 -0
- package/lib/components/TextArea/TextArea.d.ts +4 -8
- package/lib/components/TextArea/TextArea.js +4 -0
- package/lib/components/TextArea/TextArea.js.map +1 -1
- package/lib/components/TextArea/meta.d.ts +0 -8
- package/lib/components/TextArea/meta.js +0 -2
- package/lib/components/TextArea/meta.js.map +1 -1
- package/lib/components/TextArea/stories.d.ts +1 -1
- package/lib/components/TextArea/stories.js +3 -3
- package/lib/components/TextArea/stories.js.map +1 -1
- package/lib/components/_ai/Answer/Answer.d.ts +131 -0
- package/lib/components/_ai/Answer/Answer.js +22 -0
- package/lib/components/_ai/Answer/Answer.js.map +1 -0
- package/lib/components/_ai/Answer/index.d.ts +1 -0
- package/lib/components/_ai/Answer/index.js +2 -0
- package/lib/components/_ai/Answer/index.js.map +1 -0
- package/lib/components/_ai/Answer/meta.d.ts +126 -0
- package/lib/components/_ai/Answer/meta.js +88 -0
- package/lib/components/_ai/Answer/meta.js.map +1 -0
- package/lib/components/_ai/Answer/stories.d.ts +1 -0
- package/lib/components/_ai/Answer/stories.js +129 -0
- package/lib/components/_ai/Answer/stories.js.map +1 -0
- package/lib/components/_ai/Container/Container.d.ts +208 -0
- package/lib/components/_ai/Container/Container.js +22 -0
- package/lib/components/_ai/Container/Container.js.map +1 -0
- package/lib/components/_ai/Container/index.d.ts +1 -0
- package/lib/components/_ai/Container/index.js +2 -0
- package/lib/components/_ai/Container/index.js.map +1 -0
- package/lib/components/_ai/Container/meta.d.ts +203 -0
- package/lib/components/_ai/Container/meta.js +144 -0
- package/lib/components/_ai/Container/meta.js.map +1 -0
- package/lib/components/_ai/Container/stories.d.ts +1 -0
- package/lib/components/_ai/Container/stories.js +243 -0
- package/lib/components/_ai/Container/stories.js.map +1 -0
- package/lib/components/_ai/Header/Header.d.ts +94 -0
- package/lib/components/_ai/Header/Header.js +22 -0
- package/lib/components/_ai/Header/Header.js.map +1 -0
- package/lib/components/_ai/Header/index.d.ts +1 -0
- package/lib/components/_ai/Header/index.js +2 -0
- package/lib/components/_ai/Header/index.js.map +1 -0
- package/lib/components/_ai/Header/meta.d.ts +89 -0
- package/lib/components/_ai/Header/meta.js +76 -0
- package/lib/components/_ai/Header/meta.js.map +1 -0
- package/lib/components/_ai/Header/stories.d.ts +1 -0
- package/lib/components/_ai/Header/stories.js +36 -0
- package/lib/components/_ai/Header/stories.js.map +1 -0
- package/lib/components/_ai/Input/Input.d.ts +109 -0
- package/lib/components/_ai/Input/Input.js +21 -0
- package/lib/components/_ai/Input/Input.js.map +1 -0
- package/lib/components/_ai/Input/index.d.ts +1 -0
- package/lib/components/_ai/Input/index.js +2 -0
- package/lib/components/_ai/Input/index.js.map +1 -0
- package/lib/components/_ai/Input/meta.d.ts +104 -0
- package/lib/components/_ai/Input/meta.js +95 -0
- package/lib/components/_ai/Input/meta.js.map +1 -0
- package/lib/components/_ai/Input/stories.d.ts +1 -0
- package/lib/components/_ai/Input/stories.js +103 -0
- package/lib/components/_ai/Input/stories.js.map +1 -0
- package/lib/components/_ai/Markdown/Markdown.d.ts +69 -0
- package/lib/components/_ai/Markdown/Markdown.js +19 -0
- package/lib/components/_ai/Markdown/Markdown.js.map +1 -0
- package/lib/components/_ai/Markdown/index.d.ts +1 -0
- package/lib/components/_ai/Markdown/index.js +2 -0
- package/lib/components/_ai/Markdown/index.js.map +1 -0
- package/lib/components/_ai/Markdown/meta.d.ts +36 -0
- package/lib/components/_ai/Markdown/meta.js +41 -0
- package/lib/components/_ai/Markdown/meta.js.map +1 -0
- package/lib/components/_ai/Markdown/stories.d.ts +34 -0
- package/lib/components/_ai/Markdown/stories.js +94 -0
- package/lib/components/_ai/Markdown/stories.js.map +1 -0
- package/lib/components/_ai/UserMessage/UserMessage.d.ts +81 -0
- package/lib/components/_ai/UserMessage/UserMessage.js +22 -0
- package/lib/components/_ai/UserMessage/UserMessage.js.map +1 -0
- package/lib/components/_ai/UserMessage/index.d.ts +1 -0
- package/lib/components/_ai/UserMessage/index.js +2 -0
- package/lib/components/_ai/UserMessage/index.js.map +1 -0
- package/lib/components/_ai/UserMessage/meta.d.ts +76 -0
- package/lib/components/_ai/UserMessage/meta.js +77 -0
- package/lib/components/_ai/UserMessage/meta.js.map +1 -0
- package/lib/components/_ai/UserMessage/stories.d.ts +1 -0
- package/lib/components/_ai/UserMessage/stories.js +115 -0
- package/lib/components/_ai/UserMessage/stories.js.map +1 -0
- package/lib/components/_ai/index.d.ts +6 -0
- package/lib/components/_ai/index.js +7 -0
- package/lib/components/_ai/index.js.map +1 -0
- package/lib/components/disabledToolsParameters.d.ts +30 -0
- package/lib/components/disabledToolsParameters.js +25 -0
- package/lib/components/disabledToolsParameters.js.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -1
- package/lib/managerVersions.d.ts +29 -0
- package/lib/managerVersions.js +69 -0
- package/lib/managerVersions.js.map +1 -0
- package/package.json +15 -4
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
export declare const getContainerStories: ({ component, componentConfig, components, decorators }: any) => {
|
|
2
|
+
meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
decorators: any;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
source: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
view: {
|
|
14
|
+
description: string;
|
|
15
|
+
options: any;
|
|
16
|
+
control: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
table: {
|
|
20
|
+
category: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
description: string;
|
|
25
|
+
options: any;
|
|
26
|
+
control: {
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
table: {
|
|
30
|
+
category: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
footerCaptionAlign: {
|
|
34
|
+
description: string;
|
|
35
|
+
options: string[];
|
|
36
|
+
control: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
table: {
|
|
40
|
+
category: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
headerView: {
|
|
44
|
+
description: string;
|
|
45
|
+
options: string[];
|
|
46
|
+
control: {
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
table: {
|
|
50
|
+
category: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
headerTextAlign: {
|
|
54
|
+
description: string;
|
|
55
|
+
options: string[];
|
|
56
|
+
control: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
table: {
|
|
60
|
+
category: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
headerHasDivider: {
|
|
64
|
+
description: string;
|
|
65
|
+
control: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
table: {
|
|
69
|
+
category: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
headerTitle: {
|
|
73
|
+
description: string;
|
|
74
|
+
control: {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
table: {
|
|
78
|
+
category: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
headerDescription: {
|
|
82
|
+
description: string;
|
|
83
|
+
control: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
table: {
|
|
87
|
+
category: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
inputMode: {
|
|
91
|
+
description: string;
|
|
92
|
+
options: string[];
|
|
93
|
+
control: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
table: {
|
|
97
|
+
category: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
inputPlaceholder: {
|
|
101
|
+
description: string;
|
|
102
|
+
control: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
table: {
|
|
106
|
+
category: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
inputSubmitOnEnter: {
|
|
110
|
+
description: string;
|
|
111
|
+
control: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
table: {
|
|
115
|
+
category: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
inputClearOnSubmit: {
|
|
119
|
+
description: string;
|
|
120
|
+
control: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
table: {
|
|
124
|
+
category: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
inputMinRows: {
|
|
128
|
+
description: string;
|
|
129
|
+
control: {
|
|
130
|
+
type: string;
|
|
131
|
+
};
|
|
132
|
+
table: {
|
|
133
|
+
category: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
inputMaxRows: {
|
|
137
|
+
description: string;
|
|
138
|
+
control: {
|
|
139
|
+
type: string;
|
|
140
|
+
};
|
|
141
|
+
table: {
|
|
142
|
+
category: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
answerLoaderTitle: {
|
|
146
|
+
description: string;
|
|
147
|
+
control: {
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
table: {
|
|
151
|
+
category: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
userMessageView: {
|
|
155
|
+
description: string;
|
|
156
|
+
options: string[];
|
|
157
|
+
control: {
|
|
158
|
+
type: string;
|
|
159
|
+
};
|
|
160
|
+
table: {
|
|
161
|
+
category: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
userMessageAttachmentsView: {
|
|
165
|
+
description: string;
|
|
166
|
+
options: string[];
|
|
167
|
+
control: {
|
|
168
|
+
type: string;
|
|
169
|
+
};
|
|
170
|
+
table: {
|
|
171
|
+
category: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
userMessageMaxRows: {
|
|
175
|
+
description: string;
|
|
176
|
+
control: {
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
179
|
+
table: {
|
|
180
|
+
category: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
args: {
|
|
185
|
+
size: string;
|
|
186
|
+
view: string;
|
|
187
|
+
footerCaptionAlign: string;
|
|
188
|
+
headerView: string;
|
|
189
|
+
headerTextAlign: string;
|
|
190
|
+
headerHasDivider: boolean;
|
|
191
|
+
headerTitle: string;
|
|
192
|
+
headerDescription: string;
|
|
193
|
+
inputMode: string;
|
|
194
|
+
inputPlaceholder: string;
|
|
195
|
+
inputSubmitOnEnter: boolean;
|
|
196
|
+
inputClearOnSubmit: boolean;
|
|
197
|
+
inputMinRows: number;
|
|
198
|
+
inputMaxRows: number;
|
|
199
|
+
answerLoaderTitle: string;
|
|
200
|
+
userMessageView: string;
|
|
201
|
+
userMessageAttachmentsView: string;
|
|
202
|
+
userMessageMaxRows: number;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
Default: {
|
|
206
|
+
render: (args: any) => JSX.Element;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { getConfigVariations } from '../../../helpers';
|
|
14
|
+
import { createMeta } from './meta';
|
|
15
|
+
import { createDefaultStory } from './stories';
|
|
16
|
+
export var getContainerStories = function (_a) {
|
|
17
|
+
var component = _a.component, componentConfig = _a.componentConfig, components = _a.components, decorators = _a.decorators;
|
|
18
|
+
var meta = createMeta({ component: component, componentConfig: getConfigVariations(componentConfig), decorators: decorators });
|
|
19
|
+
var Story = createDefaultStory(__assign({ Container: component }, components));
|
|
20
|
+
return { meta: meta, Default: { render: function (args) { return React.createElement(Story, __assign({}, args)); } } };
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../src/components/_ai/Container/Container.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,EAA2D;QAAzD,SAAS,eAAA,EAAE,eAAe,qBAAA,EAAE,UAAU,gBAAA,EAAE,UAAU,gBAAA;IACpF,IAAM,IAAI,GAAG,UAAU,CAAC,EAAE,SAAS,WAAA,EAAE,eAAe,EAAE,mBAAmB,CAAC,eAAe,CAAC,EAAE,UAAU,YAAA,EAAE,CAAC,CAAC;IAC1G,IAAM,KAAK,GAAG,kBAAkB,YAAG,SAAS,EAAE,SAAS,IAAK,UAAU,EAAG,CAAC;IAC1E,OAAO,EAAE,IAAI,MAAA,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,KAAK,eAAK,IAAI,EAAI,EAAnB,CAAmB,EAAE,EAAE,CAAC;AAC7E,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Container';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/_ai/Container/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
export declare const createMeta: ({ componentConfig, decorators }: any) => {
|
|
2
|
+
title: string;
|
|
3
|
+
decorators: any;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
source: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
view: {
|
|
13
|
+
description: string;
|
|
14
|
+
options: any;
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
table: {
|
|
19
|
+
category: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
size: {
|
|
23
|
+
description: string;
|
|
24
|
+
options: any;
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
table: {
|
|
29
|
+
category: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
footerCaptionAlign: {
|
|
33
|
+
description: string;
|
|
34
|
+
options: string[];
|
|
35
|
+
control: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
category: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
headerView: {
|
|
43
|
+
description: string;
|
|
44
|
+
options: string[];
|
|
45
|
+
control: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
table: {
|
|
49
|
+
category: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
headerTextAlign: {
|
|
53
|
+
description: string;
|
|
54
|
+
options: string[];
|
|
55
|
+
control: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
table: {
|
|
59
|
+
category: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
headerHasDivider: {
|
|
63
|
+
description: string;
|
|
64
|
+
control: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
table: {
|
|
68
|
+
category: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
headerTitle: {
|
|
72
|
+
description: string;
|
|
73
|
+
control: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
table: {
|
|
77
|
+
category: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
headerDescription: {
|
|
81
|
+
description: string;
|
|
82
|
+
control: {
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
table: {
|
|
86
|
+
category: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
inputMode: {
|
|
90
|
+
description: string;
|
|
91
|
+
options: string[];
|
|
92
|
+
control: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
table: {
|
|
96
|
+
category: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
inputPlaceholder: {
|
|
100
|
+
description: string;
|
|
101
|
+
control: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
table: {
|
|
105
|
+
category: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
inputSubmitOnEnter: {
|
|
109
|
+
description: string;
|
|
110
|
+
control: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
table: {
|
|
114
|
+
category: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
inputClearOnSubmit: {
|
|
118
|
+
description: string;
|
|
119
|
+
control: {
|
|
120
|
+
type: string;
|
|
121
|
+
};
|
|
122
|
+
table: {
|
|
123
|
+
category: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
inputMinRows: {
|
|
127
|
+
description: string;
|
|
128
|
+
control: {
|
|
129
|
+
type: string;
|
|
130
|
+
};
|
|
131
|
+
table: {
|
|
132
|
+
category: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
inputMaxRows: {
|
|
136
|
+
description: string;
|
|
137
|
+
control: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
table: {
|
|
141
|
+
category: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
answerLoaderTitle: {
|
|
145
|
+
description: string;
|
|
146
|
+
control: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
table: {
|
|
150
|
+
category: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
userMessageView: {
|
|
154
|
+
description: string;
|
|
155
|
+
options: string[];
|
|
156
|
+
control: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
table: {
|
|
160
|
+
category: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
userMessageAttachmentsView: {
|
|
164
|
+
description: string;
|
|
165
|
+
options: string[];
|
|
166
|
+
control: {
|
|
167
|
+
type: string;
|
|
168
|
+
};
|
|
169
|
+
table: {
|
|
170
|
+
category: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
userMessageMaxRows: {
|
|
174
|
+
description: string;
|
|
175
|
+
control: {
|
|
176
|
+
type: string;
|
|
177
|
+
};
|
|
178
|
+
table: {
|
|
179
|
+
category: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
args: {
|
|
184
|
+
size: string;
|
|
185
|
+
view: string;
|
|
186
|
+
footerCaptionAlign: string;
|
|
187
|
+
headerView: string;
|
|
188
|
+
headerTextAlign: string;
|
|
189
|
+
headerHasDivider: boolean;
|
|
190
|
+
headerTitle: string;
|
|
191
|
+
headerDescription: string;
|
|
192
|
+
inputMode: string;
|
|
193
|
+
inputPlaceholder: string;
|
|
194
|
+
inputSubmitOnEnter: boolean;
|
|
195
|
+
inputClearOnSubmit: boolean;
|
|
196
|
+
inputMinRows: number;
|
|
197
|
+
inputMaxRows: number;
|
|
198
|
+
answerLoaderTitle: string;
|
|
199
|
+
userMessageView: string;
|
|
200
|
+
userMessageAttachmentsView: string;
|
|
201
|
+
userMessageMaxRows: number;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { disableProps } from '../../../index';
|
|
13
|
+
export var createMeta = function (_a) {
|
|
14
|
+
var componentConfig = _a.componentConfig, _b = _a.decorators, decorators = _b === void 0 ? [] : _b;
|
|
15
|
+
var views = componentConfig.views, sizes = componentConfig.sizes;
|
|
16
|
+
return {
|
|
17
|
+
title: 'AI Kit/Container',
|
|
18
|
+
decorators: decorators,
|
|
19
|
+
parameters: {
|
|
20
|
+
docs: {
|
|
21
|
+
source: {
|
|
22
|
+
type: 'code',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
argTypes: __assign({
|
|
27
|
+
// Container
|
|
28
|
+
view: {
|
|
29
|
+
description: 'Вид компонента',
|
|
30
|
+
options: views,
|
|
31
|
+
control: { type: 'select' },
|
|
32
|
+
table: { category: 'Container' },
|
|
33
|
+
}, size: {
|
|
34
|
+
description: 'Размер компонента',
|
|
35
|
+
options: sizes,
|
|
36
|
+
control: { type: 'select' },
|
|
37
|
+
table: { category: 'Container' },
|
|
38
|
+
}, footerCaptionAlign: {
|
|
39
|
+
description: 'Выравнивание подписи к нижней части чата',
|
|
40
|
+
options: ['center', 'start'],
|
|
41
|
+
control: { type: 'select' },
|
|
42
|
+
table: { category: 'Container' },
|
|
43
|
+
},
|
|
44
|
+
// Header
|
|
45
|
+
headerView: {
|
|
46
|
+
description: 'Вид компонента Header',
|
|
47
|
+
options: ['default', 'secondary', 'clear'],
|
|
48
|
+
control: { type: 'select' },
|
|
49
|
+
table: { category: 'Header' },
|
|
50
|
+
}, headerTextAlign: {
|
|
51
|
+
description: 'Выравнивание текстового контента Header',
|
|
52
|
+
options: ['start', 'center'],
|
|
53
|
+
control: { type: 'select' },
|
|
54
|
+
table: { category: 'Header' },
|
|
55
|
+
}, headerHasDivider: {
|
|
56
|
+
description: 'Показывать разделитель в Header',
|
|
57
|
+
control: { type: 'boolean' },
|
|
58
|
+
table: { category: 'Header' },
|
|
59
|
+
}, headerTitle: {
|
|
60
|
+
description: 'Заголовок Header',
|
|
61
|
+
control: { type: 'text' },
|
|
62
|
+
table: { category: 'Header' },
|
|
63
|
+
}, headerDescription: {
|
|
64
|
+
description: 'Подзаголовок Header',
|
|
65
|
+
control: { type: 'text' },
|
|
66
|
+
table: { category: 'Header' },
|
|
67
|
+
},
|
|
68
|
+
// Input
|
|
69
|
+
inputMode: {
|
|
70
|
+
description: 'Режим отображения Input',
|
|
71
|
+
options: ['condensed', 'extended'],
|
|
72
|
+
control: { type: 'select' },
|
|
73
|
+
table: { category: 'Input' },
|
|
74
|
+
}, inputPlaceholder: {
|
|
75
|
+
description: 'Плейсхолдер поля ввода',
|
|
76
|
+
control: { type: 'text' },
|
|
77
|
+
table: { category: 'Input' },
|
|
78
|
+
}, inputSubmitOnEnter: {
|
|
79
|
+
description: 'Отправлять сообщение по Enter (Shift+Enter — новая строка)',
|
|
80
|
+
control: { type: 'boolean' },
|
|
81
|
+
table: { category: 'Input' },
|
|
82
|
+
}, inputClearOnSubmit: {
|
|
83
|
+
description: 'Очищать текст после отправки',
|
|
84
|
+
control: { type: 'boolean' },
|
|
85
|
+
table: { category: 'Input' },
|
|
86
|
+
}, inputMinRows: {
|
|
87
|
+
description: 'Минимальное количество строк textarea',
|
|
88
|
+
control: { type: 'number' },
|
|
89
|
+
table: { category: 'Input' },
|
|
90
|
+
}, inputMaxRows: {
|
|
91
|
+
description: 'Максимальное количество строк textarea',
|
|
92
|
+
control: { type: 'number' },
|
|
93
|
+
table: { category: 'Input' },
|
|
94
|
+
},
|
|
95
|
+
// Answer
|
|
96
|
+
answerLoaderTitle: {
|
|
97
|
+
description: 'Заголовок при загрузке Answer',
|
|
98
|
+
control: { type: 'text' },
|
|
99
|
+
table: { category: 'Answer' },
|
|
100
|
+
},
|
|
101
|
+
// UserMessage
|
|
102
|
+
userMessageView: {
|
|
103
|
+
description: 'Вид компонента UserMessage',
|
|
104
|
+
options: ['default', 'secondary', 'accent', 'positive', 'negative', 'warning'],
|
|
105
|
+
control: { type: 'select' },
|
|
106
|
+
table: { category: 'UserMessage' },
|
|
107
|
+
}, userMessageAttachmentsView: {
|
|
108
|
+
description: 'Вид прикреплённых файлов в UserMessage',
|
|
109
|
+
options: ['default', 'secondary'],
|
|
110
|
+
control: { type: 'select' },
|
|
111
|
+
table: { category: 'UserMessage' },
|
|
112
|
+
}, userMessageMaxRows: {
|
|
113
|
+
description: 'Максимальное количество строк при редактировании UserMessage',
|
|
114
|
+
control: { type: 'number' },
|
|
115
|
+
table: { category: 'UserMessage' },
|
|
116
|
+
} }, disableProps(['messages', 'attachments', 'header', 'content', 'contentRef', 'footer', 'footerCaption'])),
|
|
117
|
+
args: {
|
|
118
|
+
// Container
|
|
119
|
+
size: 'xl',
|
|
120
|
+
view: 'default',
|
|
121
|
+
footerCaptionAlign: 'center',
|
|
122
|
+
// Header
|
|
123
|
+
headerView: 'default',
|
|
124
|
+
headerTextAlign: 'start',
|
|
125
|
+
headerHasDivider: true,
|
|
126
|
+
headerTitle: 'ИИ чат',
|
|
127
|
+
headerDescription: 'Создано при помощи AI-Kit',
|
|
128
|
+
// Input
|
|
129
|
+
inputMode: 'condensed',
|
|
130
|
+
inputPlaceholder: 'Введите сообщение',
|
|
131
|
+
inputSubmitOnEnter: true,
|
|
132
|
+
inputClearOnSubmit: true,
|
|
133
|
+
inputMinRows: 1,
|
|
134
|
+
inputMaxRows: 4,
|
|
135
|
+
// Answer
|
|
136
|
+
answerLoaderTitle: 'Генерирую ответ...',
|
|
137
|
+
// UserMessage
|
|
138
|
+
userMessageView: 'secondary',
|
|
139
|
+
userMessageAttachmentsView: 'secondary',
|
|
140
|
+
userMessageMaxRows: 4,
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Container/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAAyC;QAAvC,eAAe,qBAAA,EAAE,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA;IACjD,IAAA,KAAK,GAAY,eAAe,MAA3B,EAAE,KAAK,GAAK,eAAe,MAApB,CAAqB;IAEzC,OAAO;QACH,KAAK,EAAE,kBAAkB;QACzB,UAAU,YAAA;QACV,UAAU,EAAE;YACR,IAAI,EAAE;gBACF,MAAM,EAAE;oBACJ,IAAI,EAAE,MAAM;iBACf;aACJ;SACJ;QACD,QAAQ;YACJ,YAAY;YACZ,IAAI,EAAE;gBACF,WAAW,EAAE,gBAAgB;gBAC7B,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE;aACnC,EACD,IAAI,EAAE;gBACF,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE;aACnC,EACD,kBAAkB,EAAE;gBAChB,WAAW,EAAE,0CAA0C;gBACvD,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;gBAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE;aACnC;YACD,SAAS;YACT,UAAU,EAAE;gBACR,WAAW,EAAE,uBAAuB;gBACpC,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,O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AAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,KAAK,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE;aACrC,IACE,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,SAAS;YACT,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,OAAO;YACxB,gBAAgB,EAAE,IAAI;YACtB,WAAW,EAAE,QAAQ;YACrB,iBAAiB,EAAE,2BAA2B;YAC9C,QAAQ;YACR,SAAS,EAAE,WAAW;YACtB,gBAAgB,EAAE,mBAAmB;YACrC,kBAAkB,EAAE,IAAI;YACxB,kBAAkB,EAAE,IAAI;YACxB,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;YACf,SAAS;YACT,iBAAiB,EAAE,oBAAoB;YACvC,cAAc;YACd,eAAe,EAAE,WAAW;YAC5B,0BAA0B,EAAE,WAAW;YACvC,kBAAkB,EAAE,CAAC;SACxB;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createDefaultStory: (Components: any) => ({ view, size, footerCaptionAlign, headerView, headerTextAlign, headerHasDivider, headerTitle, headerDescription, inputMode, inputPlaceholder, inputSubmitOnEnter, inputClearOnSubmit, inputMinRows, inputMaxRows, answerLoaderTitle, userMessageView, userMessageAttachmentsView, userMessageMaxRows, }: any) => JSX.Element;
|