@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
|
@@ -22,84 +22,51 @@ export declare const getInputStories: ({ component, IconButton, decorators }: an
|
|
|
22
22
|
hasActionAfter: boolean;
|
|
23
23
|
};
|
|
24
24
|
argTypes: {
|
|
25
|
+
hasActionBefore: {
|
|
26
|
+
description: string;
|
|
27
|
+
control: string;
|
|
28
|
+
};
|
|
29
|
+
hasActionAfter: {
|
|
30
|
+
description: string;
|
|
31
|
+
control: string;
|
|
32
|
+
};
|
|
25
33
|
size: {
|
|
26
34
|
description: string;
|
|
27
35
|
control: string;
|
|
28
36
|
options: string[];
|
|
29
|
-
table: {
|
|
30
|
-
category: string;
|
|
31
|
-
};
|
|
32
37
|
};
|
|
33
38
|
mode: {
|
|
34
39
|
description: string;
|
|
35
40
|
control: string;
|
|
36
41
|
options: string[];
|
|
37
|
-
table: {
|
|
38
|
-
category: string;
|
|
39
|
-
};
|
|
40
42
|
};
|
|
41
43
|
placeholder: {
|
|
42
44
|
description: string;
|
|
43
45
|
control: string;
|
|
44
|
-
table: {
|
|
45
|
-
category: string;
|
|
46
|
-
};
|
|
47
46
|
};
|
|
48
47
|
autoFocus: {
|
|
49
48
|
description: string;
|
|
50
49
|
control: string;
|
|
51
|
-
table: {
|
|
52
|
-
category: string;
|
|
53
|
-
};
|
|
54
50
|
};
|
|
55
51
|
minRows: {
|
|
56
52
|
description: string;
|
|
57
53
|
control: string;
|
|
58
|
-
table: {
|
|
59
|
-
category: string;
|
|
60
|
-
};
|
|
61
54
|
};
|
|
62
55
|
maxRows: {
|
|
63
56
|
description: string;
|
|
64
57
|
control: string;
|
|
65
|
-
table: {
|
|
66
|
-
category: string;
|
|
67
|
-
};
|
|
68
58
|
};
|
|
69
59
|
submitOnEnter: {
|
|
70
60
|
description: string;
|
|
71
61
|
control: string;
|
|
72
|
-
table: {
|
|
73
|
-
category: string;
|
|
74
|
-
};
|
|
75
62
|
};
|
|
76
63
|
clearOnSubmit: {
|
|
77
64
|
description: string;
|
|
78
65
|
control: string;
|
|
79
|
-
table: {
|
|
80
|
-
category: string;
|
|
81
|
-
};
|
|
82
66
|
};
|
|
83
67
|
loading: {
|
|
84
68
|
description: string;
|
|
85
69
|
control: string;
|
|
86
|
-
table: {
|
|
87
|
-
category: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
hasActionBefore: {
|
|
91
|
-
description: string;
|
|
92
|
-
control: string;
|
|
93
|
-
table: {
|
|
94
|
-
category: string;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
hasActionAfter: {
|
|
98
|
-
description: string;
|
|
99
|
-
control: string;
|
|
100
|
-
table: {
|
|
101
|
-
category: string;
|
|
102
|
-
};
|
|
103
70
|
};
|
|
104
71
|
};
|
|
105
72
|
};
|
|
@@ -21,84 +21,51 @@ export declare const createMeta: ({ component, decorators }: any) => {
|
|
|
21
21
|
hasActionAfter: boolean;
|
|
22
22
|
};
|
|
23
23
|
argTypes: {
|
|
24
|
+
hasActionBefore: {
|
|
25
|
+
description: string;
|
|
26
|
+
control: string;
|
|
27
|
+
};
|
|
28
|
+
hasActionAfter: {
|
|
29
|
+
description: string;
|
|
30
|
+
control: string;
|
|
31
|
+
};
|
|
24
32
|
size: {
|
|
25
33
|
description: string;
|
|
26
34
|
control: string;
|
|
27
35
|
options: string[];
|
|
28
|
-
table: {
|
|
29
|
-
category: string;
|
|
30
|
-
};
|
|
31
36
|
};
|
|
32
37
|
mode: {
|
|
33
38
|
description: string;
|
|
34
39
|
control: string;
|
|
35
40
|
options: string[];
|
|
36
|
-
table: {
|
|
37
|
-
category: string;
|
|
38
|
-
};
|
|
39
41
|
};
|
|
40
42
|
placeholder: {
|
|
41
43
|
description: string;
|
|
42
44
|
control: string;
|
|
43
|
-
table: {
|
|
44
|
-
category: string;
|
|
45
|
-
};
|
|
46
45
|
};
|
|
47
46
|
autoFocus: {
|
|
48
47
|
description: string;
|
|
49
48
|
control: string;
|
|
50
|
-
table: {
|
|
51
|
-
category: string;
|
|
52
|
-
};
|
|
53
49
|
};
|
|
54
50
|
minRows: {
|
|
55
51
|
description: string;
|
|
56
52
|
control: string;
|
|
57
|
-
table: {
|
|
58
|
-
category: string;
|
|
59
|
-
};
|
|
60
53
|
};
|
|
61
54
|
maxRows: {
|
|
62
55
|
description: string;
|
|
63
56
|
control: string;
|
|
64
|
-
table: {
|
|
65
|
-
category: string;
|
|
66
|
-
};
|
|
67
57
|
};
|
|
68
58
|
submitOnEnter: {
|
|
69
59
|
description: string;
|
|
70
60
|
control: string;
|
|
71
|
-
table: {
|
|
72
|
-
category: string;
|
|
73
|
-
};
|
|
74
61
|
};
|
|
75
62
|
clearOnSubmit: {
|
|
76
63
|
description: string;
|
|
77
64
|
control: string;
|
|
78
|
-
table: {
|
|
79
|
-
category: string;
|
|
80
|
-
};
|
|
81
65
|
};
|
|
82
66
|
loading: {
|
|
83
67
|
description: string;
|
|
84
68
|
control: string;
|
|
85
|
-
table: {
|
|
86
|
-
category: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
hasActionBefore: {
|
|
90
|
-
description: string;
|
|
91
|
-
control: string;
|
|
92
|
-
table: {
|
|
93
|
-
category: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
hasActionAfter: {
|
|
97
|
-
description: string;
|
|
98
|
-
control: string;
|
|
99
|
-
table: {
|
|
100
|
-
category: string;
|
|
101
|
-
};
|
|
102
69
|
};
|
|
103
70
|
};
|
|
104
71
|
};
|
|
@@ -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, _b = _a.decorators, decorators = _b === void 0 ? [] : _b;
|
|
15
15
|
return {
|
|
@@ -34,53 +34,45 @@ export var createMeta = function (_a) {
|
|
|
34
34
|
hasActionBefore: true,
|
|
35
35
|
hasActionAfter: true,
|
|
36
36
|
},
|
|
37
|
-
argTypes: __assign({ size: {
|
|
37
|
+
argTypes: __assign(__assign({ size: {
|
|
38
38
|
description: 'Размер компонента',
|
|
39
39
|
control: 'select',
|
|
40
40
|
options: ['xs', 's', 'm', 'l', 'xl'],
|
|
41
|
-
table: { category: 'variation' },
|
|
42
41
|
}, mode: {
|
|
43
42
|
description: 'Режим отображения компонента',
|
|
44
43
|
control: 'select',
|
|
45
44
|
options: ['condensed', 'extended'],
|
|
46
|
-
table: { category: 'variation' },
|
|
47
45
|
}, placeholder: {
|
|
48
46
|
description: 'Плейсхолдер поля ввода',
|
|
49
47
|
control: 'text',
|
|
50
|
-
table: { category: 'content-related' },
|
|
51
48
|
}, autoFocus: {
|
|
52
49
|
description: 'Автофокус на поле ввода',
|
|
53
50
|
control: 'boolean',
|
|
54
|
-
table: { category: 'content-related' },
|
|
55
51
|
}, minRows: {
|
|
56
52
|
description: 'Минимальное количество строк textarea',
|
|
57
53
|
control: 'number',
|
|
58
|
-
table: { category: 'layout-related' },
|
|
59
54
|
}, maxRows: {
|
|
60
55
|
description: 'Максимальное количество строк textarea',
|
|
61
56
|
control: 'number',
|
|
62
|
-
table: { category: 'layout-related' },
|
|
63
57
|
}, submitOnEnter: {
|
|
64
58
|
description: 'Отправлять сообщение по Enter (Shift+Enter — новая строка)',
|
|
65
59
|
control: 'boolean',
|
|
66
|
-
table: { category: 'behavior-related' },
|
|
67
60
|
}, clearOnSubmit: {
|
|
68
61
|
description: 'Очищать текст после отправки',
|
|
69
62
|
control: 'boolean',
|
|
70
|
-
table: { category: 'behavior-related' },
|
|
71
63
|
}, loading: {
|
|
72
64
|
description: 'Состояние загрузки кнопки отправки',
|
|
73
65
|
control: 'boolean',
|
|
74
|
-
|
|
75
|
-
|
|
66
|
+
} }, exampleOnly({
|
|
67
|
+
hasActionBefore: {
|
|
76
68
|
description: 'Показывать слот перед полем ввода',
|
|
77
69
|
control: 'boolean',
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
},
|
|
71
|
+
hasActionAfter: {
|
|
80
72
|
description: 'Показывать слот после поля ввода',
|
|
81
73
|
control: 'boolean',
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
},
|
|
75
|
+
})), disableProps([
|
|
84
76
|
'value',
|
|
85
77
|
'onChange',
|
|
86
78
|
'attachments',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Input/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Input/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAAmC;QAAjC,SAAS,eAAA,EAAE,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA;IACnD,OAAO;QACH,KAAK,EAAE,cAAc;QACrB,UAAU,YAAA;QACV,SAAS,WAAA;QACT,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,iBAAiB,EAAE,IAAI;aAC1B;SACJ;QACD,IAAI,EAAE;YACF,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,mBAAmB;YAChC,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,aAAa,EAAE,IAAI;YACnB,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,KAAK;YACd,eAAe,EAAE,IAAI;YACrB,cAAc,EAAE,IAAI;SACvB;QACD,QAAQ,sBACJ,IAAI,EAAE;gBACF,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE,QAAQ;gBACjB,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC;aACvC,EACD,IAAI,EAAE;gBACF,WAAW,EAAE,8BAA8B;gBAC3C,OAAO,EAAE,QAAQ;gBACjB,OAAO,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC;aACrC,EACD,WAAW,EAAE;gBACT,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE,MAAM;aAClB,EACD,SAAS,EAAE;gBACP,WAAW,EAAE,yBAAyB;gBACtC,OAAO,EAAE,SAAS;aACrB,EACD,OAAO,EAAE;gBACL,WAAW,EAAE,uCAAuC;gBACpD,OAAO,EAAE,QAAQ;aACpB,EACD,OAAO,EAAE;gBACL,WAAW,EAAE,wCAAwC;gBACrD,OAAO,EAAE,QAAQ;aACpB,EACD,aAAa,EAAE;gBACX,WAAW,EAAE,4DAA4D;gBACzE,OAAO,EAAE,SAAS;aACrB,EACD,aAAa,EAAE;gBACX,WAAW,EAAE,8BAA8B;gBAC3C,OAAO,EAAE,SAAS;aACrB,EACD,OAAO,EAAE;gBACL,WAAW,EAAE,oCAAoC;gBACjD,OAAO,EAAE,SAAS;aACrB,IACE,WAAW,CAAC;YACX,eAAe,EAAE;gBACb,WAAW,EAAE,mCAAmC;gBAChD,OAAO,EAAE,SAAS;aACrB;YACD,cAAc,EAAE;gBACZ,WAAW,EAAE,kCAAkC;gBAC/C,OAAO,EAAE,SAAS;aACrB;SACJ,CAAC,GACC,YAAY,CAAC;YACZ,OAAO;YACP,UAAU;YACV,aAAa;YACb,oBAAoB;YACpB,QAAQ;YACR,cAAc;YACd,aAAa;YACb,UAAU;SACb,CAAC,CACL;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -35,19 +35,19 @@ export declare const getMarkdownStories: ({ component, componentConfig, decorato
|
|
|
35
35
|
component: any;
|
|
36
36
|
decorators: any;
|
|
37
37
|
argTypes: {
|
|
38
|
-
|
|
39
|
-
options: any;
|
|
38
|
+
storyWidth: {
|
|
40
39
|
control: {
|
|
41
40
|
type: string;
|
|
42
41
|
};
|
|
43
42
|
};
|
|
44
|
-
|
|
43
|
+
view: {
|
|
45
44
|
options: any;
|
|
46
45
|
control: {
|
|
47
46
|
type: string;
|
|
48
47
|
};
|
|
49
48
|
};
|
|
50
|
-
|
|
49
|
+
size: {
|
|
50
|
+
options: any;
|
|
51
51
|
control: {
|
|
52
52
|
type: string;
|
|
53
53
|
};
|
|
@@ -3,19 +3,19 @@ export declare const createMeta: ({ component, componentConfig, decorators }: an
|
|
|
3
3
|
component: any;
|
|
4
4
|
decorators: any;
|
|
5
5
|
argTypes: {
|
|
6
|
-
|
|
7
|
-
options: any;
|
|
6
|
+
storyWidth: {
|
|
8
7
|
control: {
|
|
9
8
|
type: string;
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
|
-
|
|
11
|
+
view: {
|
|
13
12
|
options: any;
|
|
14
13
|
control: {
|
|
15
14
|
type: string;
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
|
-
|
|
17
|
+
size: {
|
|
18
|
+
options: any;
|
|
19
19
|
control: {
|
|
20
20
|
type: string;
|
|
21
21
|
};
|
|
@@ -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
|
import { markdownTemplate } from './stories';
|
|
14
14
|
export var createMeta = function (_a) {
|
|
15
15
|
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.decorators, decorators = _b === void 0 ? [] : _b;
|
|
@@ -18,17 +18,19 @@ export var createMeta = function (_a) {
|
|
|
18
18
|
title: 'AI Kit/Markdown',
|
|
19
19
|
component: component,
|
|
20
20
|
decorators: decorators,
|
|
21
|
-
argTypes: __assign({ view: {
|
|
21
|
+
argTypes: __assign(__assign({ view: {
|
|
22
22
|
options: views,
|
|
23
23
|
control: { type: 'select' },
|
|
24
24
|
}, size: {
|
|
25
25
|
options: sizes,
|
|
26
26
|
control: { type: 'select' },
|
|
27
|
-
}, storyWidth: {
|
|
28
|
-
control: { type: 'number' },
|
|
29
27
|
}, shouldParseIncompleteMarkdown: {
|
|
30
28
|
control: { type: 'boolean' },
|
|
31
|
-
} },
|
|
29
|
+
} }, exampleOnly({
|
|
30
|
+
storyWidth: {
|
|
31
|
+
control: { type: 'number' },
|
|
32
|
+
},
|
|
33
|
+
})), disableProps(['tokenRenderer', 'markedOptions'])),
|
|
32
34
|
args: {
|
|
33
35
|
view: 'default',
|
|
34
36
|
size: 'm',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Markdown/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/Markdown/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,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;IAEzC,OAAO;QACH,KAAK,EAAE,iBAAiB;QACxB,SAAS,WAAA;QACT,UAAU,YAAA;QACV,QAAQ,sBACJ,IAAI,EAAE;gBACF,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,IAAI,EAAE;gBACF,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,6BAA6B,EAAE;gBAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,IACE,WAAW,CAAC;YACX,UAAU,EAAE;gBACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;SACJ,CAAC,GACC,YAAY,CAAC,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,CACtD;QACD,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,gBAAgB;YACzB,UAAU,EAAE,IAAI;YAChB,6BAA6B,EAAE,IAAI;SACtC;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -9,15 +9,23 @@ export declare const getUserMessageStories: ({ component, componentConfig, Butto
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
argTypes: {
|
|
12
|
+
attachmentType: {
|
|
13
|
+
description: string;
|
|
14
|
+
options: readonly ["file", "fileGroup", "image", "none"];
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
initialValue: {
|
|
20
|
+
description: string;
|
|
21
|
+
control: string;
|
|
22
|
+
};
|
|
12
23
|
view: {
|
|
13
24
|
description: string;
|
|
14
25
|
options: any;
|
|
15
26
|
control: {
|
|
16
27
|
type: string;
|
|
17
28
|
};
|
|
18
|
-
table: {
|
|
19
|
-
category: string;
|
|
20
|
-
};
|
|
21
29
|
};
|
|
22
30
|
size: {
|
|
23
31
|
description: string;
|
|
@@ -25,9 +33,6 @@ export declare const getUserMessageStories: ({ component, componentConfig, Butto
|
|
|
25
33
|
control: {
|
|
26
34
|
type: string;
|
|
27
35
|
};
|
|
28
|
-
table: {
|
|
29
|
-
category: string;
|
|
30
|
-
};
|
|
31
36
|
};
|
|
32
37
|
attachmentsView: {
|
|
33
38
|
description: string;
|
|
@@ -35,35 +40,12 @@ export declare const getUserMessageStories: ({ component, componentConfig, Butto
|
|
|
35
40
|
control: {
|
|
36
41
|
type: string;
|
|
37
42
|
};
|
|
38
|
-
table: {
|
|
39
|
-
category: string;
|
|
40
|
-
};
|
|
41
43
|
};
|
|
42
44
|
maxRows: {
|
|
43
45
|
description: string;
|
|
44
46
|
control: {
|
|
45
47
|
type: string;
|
|
46
48
|
};
|
|
47
|
-
table: {
|
|
48
|
-
category: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
attachmentType: {
|
|
52
|
-
description: string;
|
|
53
|
-
options: readonly ["file", "fileGroup", "image", "none"];
|
|
54
|
-
control: {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
table: {
|
|
58
|
-
category: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
initialValue: {
|
|
62
|
-
description: string;
|
|
63
|
-
control: string;
|
|
64
|
-
table: {
|
|
65
|
-
category: string;
|
|
66
|
-
};
|
|
67
49
|
};
|
|
68
50
|
};
|
|
69
51
|
args: {
|
|
@@ -8,15 +8,23 @@ export declare const createMeta: ({ component, componentConfig, decorators }: an
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
argTypes: {
|
|
11
|
+
attachmentType: {
|
|
12
|
+
description: string;
|
|
13
|
+
options: readonly ["file", "fileGroup", "image", "none"];
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
initialValue: {
|
|
19
|
+
description: string;
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
11
22
|
view: {
|
|
12
23
|
description: string;
|
|
13
24
|
options: any;
|
|
14
25
|
control: {
|
|
15
26
|
type: string;
|
|
16
27
|
};
|
|
17
|
-
table: {
|
|
18
|
-
category: string;
|
|
19
|
-
};
|
|
20
28
|
};
|
|
21
29
|
size: {
|
|
22
30
|
description: string;
|
|
@@ -24,9 +32,6 @@ export declare const createMeta: ({ component, componentConfig, decorators }: an
|
|
|
24
32
|
control: {
|
|
25
33
|
type: string;
|
|
26
34
|
};
|
|
27
|
-
table: {
|
|
28
|
-
category: string;
|
|
29
|
-
};
|
|
30
35
|
};
|
|
31
36
|
attachmentsView: {
|
|
32
37
|
description: string;
|
|
@@ -34,35 +39,12 @@ export declare const createMeta: ({ component, componentConfig, decorators }: an
|
|
|
34
39
|
control: {
|
|
35
40
|
type: string;
|
|
36
41
|
};
|
|
37
|
-
table: {
|
|
38
|
-
category: string;
|
|
39
|
-
};
|
|
40
42
|
};
|
|
41
43
|
maxRows: {
|
|
42
44
|
description: string;
|
|
43
45
|
control: {
|
|
44
46
|
type: string;
|
|
45
47
|
};
|
|
46
|
-
table: {
|
|
47
|
-
category: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
attachmentType: {
|
|
51
|
-
description: string;
|
|
52
|
-
options: readonly ["file", "fileGroup", "image", "none"];
|
|
53
|
-
control: {
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
table: {
|
|
57
|
-
category: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
initialValue: {
|
|
61
|
-
description: string;
|
|
62
|
-
control: string;
|
|
63
|
-
table: {
|
|
64
|
-
category: string;
|
|
65
|
-
};
|
|
66
48
|
};
|
|
67
49
|
};
|
|
68
50
|
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;
|
|
@@ -24,35 +24,32 @@ export var createMeta = function (_a) {
|
|
|
24
24
|
disableSaveFromUI: true,
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
|
-
argTypes: __assign({ view: {
|
|
27
|
+
argTypes: __assign(__assign({ view: {
|
|
28
28
|
description: 'Вид компонента',
|
|
29
29
|
options: views,
|
|
30
30
|
control: { type: 'select' },
|
|
31
|
-
table: { category: 'variation' },
|
|
32
31
|
}, size: {
|
|
33
32
|
description: 'Размер компонента',
|
|
34
33
|
options: sizes,
|
|
35
34
|
control: { type: 'select' },
|
|
36
|
-
table: { category: 'variation' },
|
|
37
35
|
}, attachmentsView: {
|
|
38
36
|
description: 'Вид прикреплённых файлов',
|
|
39
37
|
options: fileContentViews,
|
|
40
38
|
control: { type: 'select' },
|
|
41
|
-
table: { category: 'variation' },
|
|
42
39
|
}, maxRows: {
|
|
43
40
|
description: 'Максимальное количество строк при редактировании',
|
|
44
41
|
control: { type: 'number' },
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
} }, exampleOnly({
|
|
43
|
+
attachmentType: {
|
|
47
44
|
description: 'Тип вложений для демонстрации',
|
|
48
45
|
options: attachmentTypes,
|
|
49
46
|
control: { type: 'select' },
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
},
|
|
48
|
+
initialValue: {
|
|
52
49
|
description: 'Начальное значение текста сообщения',
|
|
53
50
|
control: 'text',
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
},
|
|
52
|
+
})), disableProps([
|
|
56
53
|
'actions',
|
|
57
54
|
'attachments',
|
|
58
55
|
'isEditing',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/UserMessage/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/components/_ai/UserMessage/meta.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAAoD;QAAlD,SAAS,e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ACR,eAAe;YACf,OAAO;YACP,aAAa;YACb,SAAS;YACT,QAAQ;YACR,eAAe;SAClB,CAAC,CACL;QACD,IAAI,EAAE;YACF,YAAY,EAAE,sDAAsD;YACpE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,GAAG;YACT,eAAe,EAAE,SAAS;YAC1B,cAAc,EAAE,WAAW;YAC3B,OAAO,EAAE,CAAC;SACb;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -99,8 +99,8 @@ export var createDefaultStory = function (UserMessage, Button, EmbedIconButton)
|
|
|
99
99
|
React.createElement(Button, { view: "accent", size: buttonSize(), onClick: handleEditComplete }, "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C")));
|
|
100
100
|
}
|
|
101
101
|
return (React.createElement(React.Fragment, null,
|
|
102
|
-
Array.from({ length: 3 }).map(function (_, index) { return (React.createElement(EmbedIconButton, { size: "m", view: "secondary", key: index },
|
|
103
|
-
React.createElement(IconPlasma, { size: iconSize, color: "inherit" }))); }),
|
|
102
|
+
React.createElement("span", { style: { display: 'flex' } }, Array.from({ length: 3 }).map(function (_, index) { return (React.createElement(EmbedIconButton, { size: "m", view: "secondary", key: index },
|
|
103
|
+
React.createElement(IconPlasma, { size: iconSize, color: "inherit" }))); })),
|
|
104
104
|
React.createElement(EmbedIconButton, { size: "m", view: "secondary", onClick: handleEditBegin },
|
|
105
105
|
React.createElement(IconEditOutline, { size: iconSize, color: "inherit" }))));
|
|
106
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../../src/components/_ai/UserMessage/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA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,GAAG,EAAC,IAAI,EAAC,WAAW,EAAC,GAAG,EAAE,KAAK;oBACjD,oBAAC,UAAU,IAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,SAAS,GAAG,CAChC,CACrB,EAJ4C,CAI5C,CAAC,CACC;gBAEP,oBAAC,eAAe,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAE,eAAe;oBAC/D,oBAAC,eAAe,IAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,SAAS,GAAG,CACrC,CACnB,CACN,CAAC;QACN,CAAC,CAAC;QAEF,OAAO,CACH,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE;YACxE,oBAAC,WAAW,eACJ,IAAI,IACR,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,cAAc,CAAC,IAAI,CAAC,cAA6C,CAAC,EAC/E,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,EACvC,OAAO,EAAE,aAAa,EAAE,EACxB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,UAAC,CAAC;oBACN,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;oBAChC,MAAM,CAAC,CAAC,CAAC,CAAC;gBACd,CAAC,EACD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,IAChB,CACA,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,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AAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const EXAMPLE_ONLY_CATEGORY = "Example only";
|
|
2
|
+
type ArgType = {
|
|
3
|
+
table?: Record<string, unknown>;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Помечает контролы, которых нет в API компонента и которые заведены только ради стори
|
|
8
|
+
* (`enableContentLeft`, `hasHint`, `showFooter` и т.п.).
|
|
9
|
+
* В таблице Storybook они уходят в отдельную секцию `Example only` под пропсами компонента.
|
|
10
|
+
*
|
|
11
|
+
* Пропсы из API компонента не помечаются — у них категории нет.
|
|
12
|
+
*/
|
|
13
|
+
export declare const exampleOnly: <T extends Record<string, ArgType>>(argTypes: T) => T;
|
|
14
|
+
export {};
|