@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
|
@@ -29,26 +29,17 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
29
29
|
control: {
|
|
30
30
|
type: string;
|
|
31
31
|
};
|
|
32
|
-
table: {
|
|
33
|
-
category: string;
|
|
34
|
-
};
|
|
35
32
|
};
|
|
36
33
|
size: {
|
|
37
34
|
options: any;
|
|
38
35
|
control: {
|
|
39
36
|
type: string;
|
|
40
37
|
};
|
|
41
|
-
table: {
|
|
42
|
-
category: string;
|
|
43
|
-
};
|
|
44
38
|
};
|
|
45
39
|
hasValue: {
|
|
46
40
|
control: {
|
|
47
41
|
type: string;
|
|
48
42
|
};
|
|
49
|
-
table: {
|
|
50
|
-
category: string;
|
|
51
|
-
};
|
|
52
43
|
};
|
|
53
44
|
value: {
|
|
54
45
|
control: {
|
|
@@ -58,9 +49,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
58
49
|
arg: string;
|
|
59
50
|
truthy: boolean;
|
|
60
51
|
};
|
|
61
|
-
table: {
|
|
62
|
-
category: string;
|
|
63
|
-
};
|
|
64
52
|
};
|
|
65
53
|
precision: {
|
|
66
54
|
options: number[];
|
|
@@ -71,9 +59,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
71
59
|
arg: string;
|
|
72
60
|
truthy: boolean;
|
|
73
61
|
};
|
|
74
|
-
table: {
|
|
75
|
-
category: string;
|
|
76
|
-
};
|
|
77
62
|
};
|
|
78
63
|
decimalSeparator: {
|
|
79
64
|
control: {
|
|
@@ -83,9 +68,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
83
68
|
arg: string;
|
|
84
69
|
truthy: boolean;
|
|
85
70
|
};
|
|
86
|
-
table: {
|
|
87
|
-
category: string;
|
|
88
|
-
};
|
|
89
71
|
};
|
|
90
72
|
valuePlacement: {
|
|
91
73
|
options: string[];
|
|
@@ -96,9 +78,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
96
78
|
arg: string;
|
|
97
79
|
truthy: boolean;
|
|
98
80
|
};
|
|
99
|
-
table: {
|
|
100
|
-
category: string;
|
|
101
|
-
};
|
|
102
81
|
};
|
|
103
82
|
hasIcons: {
|
|
104
83
|
control: {
|
|
@@ -108,26 +87,17 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
108
87
|
arg: string;
|
|
109
88
|
truthy: boolean;
|
|
110
89
|
};
|
|
111
|
-
table: {
|
|
112
|
-
category: string;
|
|
113
|
-
};
|
|
114
90
|
};
|
|
115
91
|
iconQuantity: {
|
|
116
92
|
options: number[];
|
|
117
93
|
control: {
|
|
118
94
|
type: string;
|
|
119
95
|
};
|
|
120
|
-
table: {
|
|
121
|
-
category: string;
|
|
122
|
-
};
|
|
123
96
|
};
|
|
124
97
|
helperText: {
|
|
125
98
|
control: {
|
|
126
99
|
type: string;
|
|
127
100
|
};
|
|
128
|
-
table: {
|
|
129
|
-
category: string;
|
|
130
|
-
};
|
|
131
101
|
};
|
|
132
102
|
helperTextStretching: {
|
|
133
103
|
options: string[];
|
|
@@ -138,9 +108,6 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
138
108
|
arg: string;
|
|
139
109
|
neq: string;
|
|
140
110
|
};
|
|
141
|
-
table: {
|
|
142
|
-
category: string;
|
|
143
|
-
};
|
|
144
111
|
};
|
|
145
112
|
};
|
|
146
113
|
};
|
|
@@ -31,48 +31,37 @@ export var createMeta = function (_a) {
|
|
|
31
31
|
argTypes: __assign(__assign({ view: {
|
|
32
32
|
options: componentConfig.views,
|
|
33
33
|
control: { type: 'select' },
|
|
34
|
-
table: { category: 'variation' },
|
|
35
34
|
}, size: {
|
|
36
35
|
options: componentConfig.sizes,
|
|
37
36
|
control: { type: 'select' },
|
|
38
|
-
table: { category: 'variation' },
|
|
39
37
|
}, hasValue: {
|
|
40
38
|
control: { type: 'boolean' },
|
|
41
|
-
table: { category: 'value-related' },
|
|
42
39
|
}, value: {
|
|
43
40
|
control: { type: 'number' },
|
|
44
41
|
if: { arg: 'hasValue', truthy: true },
|
|
45
|
-
table: { category: 'value-related' },
|
|
46
42
|
}, precision: {
|
|
47
43
|
options: scorePrecisions,
|
|
48
44
|
control: { type: 'select' },
|
|
49
45
|
if: { arg: 'hasValue', truthy: true },
|
|
50
|
-
table: { category: 'value-related' },
|
|
51
46
|
}, decimalSeparator: {
|
|
52
47
|
control: { type: 'text' },
|
|
53
48
|
if: { arg: 'hasValue', truthy: true },
|
|
54
|
-
table: { category: 'value-related' },
|
|
55
49
|
}, valuePlacement: {
|
|
56
50
|
options: valuePlacements,
|
|
57
51
|
control: { type: 'select' },
|
|
58
52
|
if: { arg: 'hasValue', truthy: true },
|
|
59
|
-
table: { category: 'value-related' },
|
|
60
53
|
}, hasIcons: {
|
|
61
54
|
control: { type: 'boolean' },
|
|
62
55
|
if: { arg: 'hasValue', truthy: true },
|
|
63
|
-
table: { category: 'layout' },
|
|
64
56
|
}, iconQuantity: {
|
|
65
57
|
options: iconsCount,
|
|
66
58
|
control: { type: 'select' },
|
|
67
|
-
table: { category: 'layout' },
|
|
68
59
|
}, helperText: {
|
|
69
60
|
control: { type: 'text' },
|
|
70
|
-
table: { category: 'layout' },
|
|
71
61
|
}, helperTextStretching: {
|
|
72
62
|
options: helperTextStretchings,
|
|
73
63
|
control: { type: 'select' },
|
|
74
64
|
if: { arg: 'helperText', neq: '' },
|
|
75
|
-
table: { category: 'layout' },
|
|
76
65
|
} }, additionalArgTypes), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
77
66
|
};
|
|
78
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Rating/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,qBAAqB,EAAE,MA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M,EAAE,IAAI,EAAE;aACxC,EACD,gBAAgB,EAAE;gBACd,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACzB,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;aACxC,EACD,cAAc,EAAE;gBACZ,OAAO,EAAE,eAAe;gBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;aACxC,EACD,QAAQ,EAAE;gBACN,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;aACxC,EACD,YAAY,EAAE;gBACV,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,UAAU,EAAE;gBACR,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;aAC5B,EACD,oBAAoB,EAAE;gBAClB,OAAO,EAAE,qBAAqB;gBAC9B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,EAAE,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,EAAE,EAAE;aACrC,IACE,kBAAkB,GAClB,YAAY,iCAAK,kBAAkB,SAAK,gBAAgB,QAAE,CAChE;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -18,7 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
18
18
|
}
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
|
-
import { disableProps } from '../../index';
|
|
21
|
+
import { disableProps, exampleOnly } from '../../index';
|
|
22
22
|
import { orientations, contentLeftOptions, contentRightOptions } from './fixtures';
|
|
23
23
|
var commonArgs = {
|
|
24
24
|
size: 's',
|
|
@@ -37,7 +37,7 @@ var commonArgs = {
|
|
|
37
37
|
};
|
|
38
38
|
var getCommonArgTypes = function (componentConfig, additionalArgTypes) {
|
|
39
39
|
if (additionalArgTypes === void 0) { additionalArgTypes = {}; }
|
|
40
|
-
return (__assign({ stretch: {
|
|
40
|
+
return (__assign(__assign({ stretch: {
|
|
41
41
|
control: {
|
|
42
42
|
type: 'boolean',
|
|
43
43
|
},
|
|
@@ -52,11 +52,6 @@ var getCommonArgTypes = function (componentConfig, additionalArgTypes) {
|
|
|
52
52
|
control: {
|
|
53
53
|
type: 'select',
|
|
54
54
|
},
|
|
55
|
-
}, segmentItemView: {
|
|
56
|
-
options: componentConfig.item.views,
|
|
57
|
-
control: {
|
|
58
|
-
type: 'select',
|
|
59
|
-
},
|
|
60
55
|
}, contentLeft: {
|
|
61
56
|
options: contentLeftOptions,
|
|
62
57
|
control: {
|
|
@@ -72,7 +67,14 @@ var getCommonArgTypes = function (componentConfig, additionalArgTypes) {
|
|
|
72
67
|
control: {
|
|
73
68
|
type: 'select',
|
|
74
69
|
},
|
|
75
|
-
} },
|
|
70
|
+
} }, exampleOnly({
|
|
71
|
+
segmentItemView: {
|
|
72
|
+
options: componentConfig.item.views,
|
|
73
|
+
control: {
|
|
74
|
+
type: 'select',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
})), additionalArgTypes));
|
|
76
78
|
};
|
|
77
79
|
var commonDisabledArgs = ['filledBackground', 'view', 'selectionMode', 'clip'];
|
|
78
80
|
export var createMeta = function (_a) {
|
|
@@ -82,7 +84,9 @@ export var createMeta = function (_a) {
|
|
|
82
84
|
decorators: decorators,
|
|
83
85
|
component: component,
|
|
84
86
|
args: __assign(__assign({}, commonArgs), defaultArgs),
|
|
85
|
-
argTypes: __assign(__assign({}, getCommonArgTypes(componentConfig, additionalArgTypes)),
|
|
87
|
+
argTypes: __assign(__assign(__assign({}, getCommonArgTypes(componentConfig, additionalArgTypes)), exampleOnly({
|
|
88
|
+
itemQuantity: { control: { type: 'number' } },
|
|
89
|
+
})), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
86
90
|
};
|
|
87
91
|
};
|
|
88
92
|
//# sourceMappingURL=meta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Segment/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Segment/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAsBnF,IAAM,UAAU,GAAG;IACf,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,CAAC;IACf,eAAe,EAAE,SAAS;IAC1B,MAAM,EAAE,KAAK;IACb,gBAAgB,EAAE,KAAK;IACvB,aAAa,EAAE,KAAK;IACpB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,KAAK;IACd,YAAY,EAAE,EAAE;IAChB,sBAAsB,EAAE,KAAK;IAC7B,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,MAAM;CACtB,CAAC;AAEF,IAAM,iBAAiB,GAAG,UAAC,eAA0C,EAAE,kBAA4B;IAA5B,mCAAA,EAAA,uBAA4B;IAAK,OAAA,qBACpG,OAAO,EAAE;YACL,OAAO,EAAE;gBACL,IAAI,EAAE,SAAS;aAClB;YACD,EAAE,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,YAAY,EAAE;SAC/C,EACD,YAAY,EAAE;YACV,OAAO,EAAE;gBACL,IAAI,EAAE,MAAM;aACf;YACD,EAAE,EA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CAAC,GACtD,WAAW,CAAC;YACX,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SAChD,CAAC,GACC,YAAY,iCAAK,kBAAkB,SAAK,gBAAgB,QAAE,CAChE;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -8,280 +8,22 @@ type CreateStoriesProps = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const getSelectStories: (config: CreateStoriesProps) => {
|
|
10
10
|
meta: {
|
|
11
|
-
title: string;
|
|
12
|
-
decorators: import("@storybook/react").Decorator[];
|
|
13
|
-
component: any;
|
|
14
11
|
args: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
labelPlacement: string;
|
|
18
|
-
placeholder: string;
|
|
19
|
-
helperText: string;
|
|
20
|
-
size: string;
|
|
21
|
-
view: string;
|
|
22
|
-
chipView: string;
|
|
23
|
-
enableContentLeft: boolean;
|
|
24
|
-
isTargetAmount: boolean;
|
|
25
|
-
variant: string;
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
readOnly: boolean;
|
|
28
|
-
optional: boolean;
|
|
29
|
-
required: boolean;
|
|
30
|
-
requiredPlacement: string;
|
|
31
|
-
hasRequiredIndicator: boolean;
|
|
32
|
-
chipType: string;
|
|
33
|
-
hasHint: boolean;
|
|
34
|
-
hintText: string;
|
|
35
|
-
hintTrigger: string;
|
|
36
|
-
hintView: string;
|
|
37
|
-
hintSize: string;
|
|
38
|
-
hintTargetPlacement: string;
|
|
39
|
-
hintPlacement: string;
|
|
40
|
-
hintWidth: string;
|
|
41
|
-
hintHasArrow: boolean;
|
|
42
|
-
mode: string;
|
|
43
|
-
treeView: boolean;
|
|
44
|
-
arrowPlacement: string;
|
|
45
|
-
singleLine: boolean;
|
|
46
|
-
closeAfterSelect: boolean;
|
|
47
|
-
chipClickArea: string;
|
|
12
|
+
hasDivider?: {} | null | undefined;
|
|
13
|
+
appearance?: {} | null | undefined;
|
|
48
14
|
};
|
|
49
15
|
argTypes: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
control: {
|
|
57
|
-
type: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
view: {
|
|
61
|
-
options: any;
|
|
62
|
-
control: {
|
|
63
|
-
type: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
labelPlacement: {
|
|
67
|
-
options: string[];
|
|
68
|
-
control: {
|
|
69
|
-
type: string;
|
|
70
|
-
};
|
|
71
|
-
if: {
|
|
72
|
-
arg: string;
|
|
73
|
-
eq: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
placeholder: {
|
|
77
|
-
if: {
|
|
78
|
-
arg: string;
|
|
79
|
-
eq: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
chipView: {
|
|
83
|
-
options: string[];
|
|
84
|
-
control: {
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
if: {
|
|
88
|
-
arg: string;
|
|
89
|
-
eq: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
variant: {
|
|
93
|
-
control: string;
|
|
94
|
-
options: string[];
|
|
95
|
-
};
|
|
96
|
-
listWidth: {
|
|
97
|
-
control: string;
|
|
98
|
-
};
|
|
99
|
-
listMaxHeight: {
|
|
100
|
-
control: string;
|
|
101
|
-
};
|
|
102
|
-
helperText: {
|
|
103
|
-
control: string;
|
|
104
|
-
if: {
|
|
105
|
-
arg: string;
|
|
106
|
-
eq: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
enableContentLeft: {
|
|
110
|
-
control: string;
|
|
111
|
-
if: {
|
|
112
|
-
arg: string;
|
|
113
|
-
eq: string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
readOnly: {
|
|
117
|
-
control: {
|
|
118
|
-
type: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
requiredPlacement: {
|
|
122
|
-
options: string[];
|
|
123
|
-
control: {
|
|
124
|
-
type: string;
|
|
125
|
-
};
|
|
126
|
-
if: {
|
|
127
|
-
arg: string;
|
|
128
|
-
truthy: boolean;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
required: {
|
|
132
|
-
control: {
|
|
133
|
-
type: string;
|
|
134
|
-
};
|
|
135
|
-
if: {
|
|
136
|
-
arg: string;
|
|
137
|
-
truthy: boolean;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
hasRequiredIndicator: {
|
|
141
|
-
control: {
|
|
142
|
-
type: string;
|
|
143
|
-
};
|
|
144
|
-
if: {
|
|
145
|
-
arg: string;
|
|
146
|
-
truthy: boolean;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
optional: {
|
|
150
|
-
control: {
|
|
151
|
-
type: string;
|
|
152
|
-
};
|
|
153
|
-
if: {
|
|
154
|
-
arg: string;
|
|
155
|
-
truthy: boolean;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
hintText: {
|
|
159
|
-
control: {
|
|
160
|
-
type: string;
|
|
161
|
-
};
|
|
162
|
-
if: {
|
|
163
|
-
arg: string;
|
|
164
|
-
truthy: boolean;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
hintView: {
|
|
168
|
-
options: string[];
|
|
169
|
-
control: {
|
|
170
|
-
type: string;
|
|
171
|
-
};
|
|
172
|
-
if: {
|
|
173
|
-
arg: string;
|
|
174
|
-
truthy: boolean;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
hintSize: {
|
|
178
|
-
options: string[];
|
|
179
|
-
control: {
|
|
180
|
-
type: string;
|
|
181
|
-
};
|
|
182
|
-
if: {
|
|
183
|
-
arg: string;
|
|
184
|
-
truthy: boolean;
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
hintTargetPlacement: {
|
|
188
|
-
options: string[];
|
|
189
|
-
control: {
|
|
190
|
-
type: string;
|
|
191
|
-
};
|
|
192
|
-
if: {
|
|
193
|
-
arg: string;
|
|
194
|
-
truthy: boolean;
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
hintTrigger: {
|
|
198
|
-
options: string[];
|
|
199
|
-
control: {
|
|
200
|
-
type: string;
|
|
201
|
-
};
|
|
202
|
-
if: {
|
|
203
|
-
arg: string;
|
|
204
|
-
truthy: boolean;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
hintPlacement: {
|
|
208
|
-
options: string[];
|
|
209
|
-
control: {
|
|
210
|
-
type: string;
|
|
211
|
-
};
|
|
212
|
-
if: {
|
|
213
|
-
arg: string;
|
|
214
|
-
truthy: boolean;
|
|
215
|
-
};
|
|
216
|
-
mappers: string[];
|
|
217
|
-
};
|
|
218
|
-
hintHasArrow: {
|
|
219
|
-
control: {
|
|
220
|
-
type: string;
|
|
221
|
-
};
|
|
222
|
-
if: {
|
|
223
|
-
arg: string;
|
|
224
|
-
truthy: boolean;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
hintWidth: {
|
|
228
|
-
control: {
|
|
229
|
-
type: string;
|
|
230
|
-
};
|
|
231
|
-
if: {
|
|
232
|
-
arg: string;
|
|
233
|
-
truthy: boolean;
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
chipType: {
|
|
237
|
-
control: string;
|
|
238
|
-
options: string[];
|
|
239
|
-
if: {
|
|
240
|
-
arg: string;
|
|
241
|
-
eq: string;
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
mode: {
|
|
245
|
-
options: string[];
|
|
246
|
-
control: {
|
|
247
|
-
type: string;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
treeView: {
|
|
251
|
-
control: {
|
|
252
|
-
type: string;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
arrowPlacement: {
|
|
256
|
-
options: string[];
|
|
257
|
-
control: {
|
|
258
|
-
type: string;
|
|
259
|
-
};
|
|
260
|
-
if: {
|
|
261
|
-
arg: string;
|
|
262
|
-
truthy: boolean;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
singleLine: {
|
|
266
|
-
control: {
|
|
267
|
-
type: string;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
closeAfterSelect: {
|
|
271
|
-
control: {
|
|
272
|
-
type: string;
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
chipClickArea: {
|
|
276
|
-
options: string[];
|
|
277
|
-
control: {
|
|
278
|
-
type: string;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
emptyStateDescription: {
|
|
282
|
-
control: string;
|
|
16
|
+
hasDivider?: {} | null | undefined;
|
|
17
|
+
appearance?: {} | null | undefined;
|
|
18
|
+
};
|
|
19
|
+
parameters: {
|
|
20
|
+
controls: {
|
|
21
|
+
sort: "none";
|
|
283
22
|
};
|
|
284
23
|
};
|
|
24
|
+
title: string;
|
|
25
|
+
decorators: import("@storybook/react").Decorator[];
|
|
26
|
+
component: any;
|
|
285
27
|
};
|
|
286
28
|
Single: {
|
|
287
29
|
render: (args: any) => JSX.Element;
|
|
@@ -24,10 +24,22 @@ import React from 'react';
|
|
|
24
24
|
import { getConfigVariations } from '../../helpers';
|
|
25
25
|
import { createMeta } from './meta';
|
|
26
26
|
import { createSingleStory, createMultipleStory, createPredefinedStory, createCommonStory, createSelectAllStory, } from './stories';
|
|
27
|
+
// По запросу дизайна appearance и hasDivider должны быть в начале списка контролов.
|
|
28
|
+
var pinLeadingControls = function (meta) {
|
|
29
|
+
var pin = function (source) {
|
|
30
|
+
if (source === void 0) { source = {}; }
|
|
31
|
+
return (__assign(__assign(__assign({}, (source.appearance !== undefined ? { appearance: source.appearance } : {})), (source.hasDivider !== undefined ? { hasDivider: source.hasDivider } : {})), source));
|
|
32
|
+
};
|
|
33
|
+
return __assign(__assign({}, meta), { args: pin(meta.args), argTypes: pin(meta.argTypes), parameters: {
|
|
34
|
+
controls: {
|
|
35
|
+
sort: 'none',
|
|
36
|
+
},
|
|
37
|
+
} });
|
|
38
|
+
};
|
|
27
39
|
export var getSelectStories = function (config) {
|
|
28
40
|
var component = config.component, componentConfig = config.componentConfig, customGetContentRight = config.customGetContentRight, rest = __rest(config, ["component", "componentConfig", "customGetContentRight"]);
|
|
29
41
|
var selectConfig = getConfigVariations(componentConfig);
|
|
30
|
-
var meta = createMeta(__assign({ component: component, componentConfig: selectConfig }, rest));
|
|
42
|
+
var meta = pinLeadingControls(createMeta(__assign({ component: component, componentConfig: selectConfig }, rest)));
|
|
31
43
|
var SingleStoryComponent = createSingleStory(component, customGetContentRight);
|
|
32
44
|
var Single = {
|
|
33
45
|
render: function (args) { return React.createElement(SingleStoryComponent, __assign({}, args)); },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,WAAW,CAAC;AAWnB,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,MAA0B;IAC/C,IAAA,SAAS,GAAsD,MAAM,UAA5D,EAAE,eAAe,GAAqC,MAAM,gBAA3C,EAAE,qBAAqB,GAAc,MAAM,sBAApB,EAAK,IAAI,UAAK,MAAM,EAAvE,yDAA8D,CAAF,CAAY;IAE9E,IAAM,YAAY,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAE1D,IAAM,IAAI,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA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9B;SACJ;KACJ,CAAC;IAEF,IAAM,uBAAuB,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAEhE,IAAM,SAAS,GAAG;QACd,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,uBAAuB,eAAK,IAAI,EAAI,EAArC,CAAqC;QAC5D,QAAQ,EAAE;YACN,eAAe,EAAE;gBACb,OAAO,EAAE,SAAS;aACrB;YACD,cAAc,EAAE;gBACZ,OAAO,EAAE,MAAM;aAClB;SACJ;QACD,IAAI,EAAE;YACF,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,aAAa;SAChC;QACD,UAAU,EAAE;YACR,QAAQ,EAAE;gBACN,OAAO,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;aACjD;SACJ;KACJ,CAAC;IAEF,OAAO;QACH,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,WAAW,aAAA;QACX,UAAU,YAAA;QACV,MAAM,QAAA;QACN,SAAS,WAAA;KACZ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
13
13
|
args: {
|
|
14
14
|
target: string;
|
|
15
15
|
label: string;
|
|
16
|
+
titleCaption: string;
|
|
16
17
|
labelPlacement: string;
|
|
17
18
|
placeholder: string;
|
|
18
19
|
helperText: string;
|
|
@@ -46,6 +47,18 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
46
47
|
chipClickArea: string;
|
|
47
48
|
};
|
|
48
49
|
argTypes: {
|
|
50
|
+
enableContentLeft: {
|
|
51
|
+
control: string;
|
|
52
|
+
if: {
|
|
53
|
+
arg: string;
|
|
54
|
+
eq: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
hasHint: {
|
|
58
|
+
control: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
49
62
|
target: {
|
|
50
63
|
control: string;
|
|
51
64
|
options: string[];
|
|
@@ -98,14 +111,14 @@ export declare const createMeta: ({ component, componentConfig, title, defaultAr
|
|
|
98
111
|
listMaxHeight: {
|
|
99
112
|
control: string;
|
|
100
113
|
};
|
|
101
|
-
|
|
114
|
+
titleCaption: {
|
|
102
115
|
control: string;
|
|
103
116
|
if: {
|
|
104
117
|
arg: string;
|
|
105
118
|
eq: string;
|
|
106
119
|
};
|
|
107
120
|
};
|
|
108
|
-
|
|
121
|
+
helperText: {
|
|
109
122
|
control: string;
|
|
110
123
|
if: {
|
|
111
124
|
arg: string;
|
|
@@ -18,7 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
18
18
|
}
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
|
-
import { disableProps, InSpacingDecorator } from '../../index';
|
|
21
|
+
import { disableProps, InSpacingDecorator, exampleOnly } from '../../index';
|
|
22
22
|
import { variant, hintTargetPlacements, hintTriggers, placements, mode, arrowPlacement, hintSizes, hintViews, labelPlacement, chipView, chipClickArea, } from './fixtures';
|
|
23
23
|
export var createMeta = function (_a) {
|
|
24
24
|
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Entry/Select' : _b, _c = _a.defaultArgs, defaultArgs = _c === void 0 ? {} : _c, _d = _a.additionalArgTypes, additionalArgTypes = _d === void 0 ? {} : _d, _e = _a.disablePropsList, disablePropsList = _e === void 0 ? [] : _e;
|
|
@@ -26,8 +26,8 @@ export var createMeta = function (_a) {
|
|
|
26
26
|
title: title,
|
|
27
27
|
decorators: [InSpacingDecorator],
|
|
28
28
|
component: component,
|
|
29
|
-
args: __assign({ target: 'textfield-like', label: 'Label', labelPlacement: 'outer', placeholder: 'Placeholder', helperText: 'Helper text', size: 'm', view: 'default', chipView: 'secondary', enableContentLeft: false, isTargetAmount: false, variant: 'normal', disabled: false, readOnly: false, optional: false, required: false, requiredPlacement: 'right', hasRequiredIndicator: false, chipType: 'default', hasHint: false, hintText: 'Текст подсказки', hintTrigger: 'hover', hintView: 'default', hintSize: 'm', hintTargetPlacement: 'outer', hintPlacement: 'auto', hintWidth: '10rem', hintHasArrow: true, mode: 'default', treeView: false, arrowPlacement: 'left', singleLine: true, closeAfterSelect: false, chipClickArea: 'close-icon' }, defaultArgs),
|
|
30
|
-
argTypes: __assign(__assign({ target: {
|
|
29
|
+
args: __assign({ target: 'textfield-like', label: 'Label', titleCaption: 'Подпись к полю', labelPlacement: 'outer', placeholder: 'Placeholder', helperText: 'Helper text', size: 'm', view: 'default', chipView: 'secondary', enableContentLeft: false, isTargetAmount: false, variant: 'normal', disabled: false, readOnly: false, optional: false, required: false, requiredPlacement: 'right', hasRequiredIndicator: false, chipType: 'default', hasHint: false, hintText: 'Текст подсказки', hintTrigger: 'hover', hintView: 'default', hintSize: 'm', hintTargetPlacement: 'outer', hintPlacement: 'auto', hintWidth: '10rem', hintHasArrow: true, mode: 'default', treeView: false, arrowPlacement: 'left', singleLine: true, closeAfterSelect: false, chipClickArea: 'close-icon' }, defaultArgs),
|
|
30
|
+
argTypes: __assign(__assign(__assign({ target: {
|
|
31
31
|
control: 'select',
|
|
32
32
|
options: ['button-like', 'textfield-like'],
|
|
33
33
|
}, size: {
|
|
@@ -62,14 +62,14 @@ export var createMeta = function (_a) {
|
|
|
62
62
|
control: 'text',
|
|
63
63
|
}, listMaxHeight: {
|
|
64
64
|
control: 'text',
|
|
65
|
-
},
|
|
65
|
+
}, titleCaption: {
|
|
66
66
|
control: 'text',
|
|
67
67
|
if: {
|
|
68
68
|
arg: 'target',
|
|
69
69
|
eq: 'textfield-like',
|
|
70
70
|
},
|
|
71
|
-
},
|
|
72
|
-
control: '
|
|
71
|
+
}, helperText: {
|
|
72
|
+
control: 'text',
|
|
73
73
|
if: {
|
|
74
74
|
arg: 'target',
|
|
75
75
|
eq: 'textfield-like',
|
|
@@ -172,7 +172,16 @@ export var createMeta = function (_a) {
|
|
|
172
172
|
},
|
|
173
173
|
}, emptyStateDescription: {
|
|
174
174
|
control: 'text',
|
|
175
|
-
} },
|
|
175
|
+
} }, exampleOnly({
|
|
176
|
+
enableContentLeft: {
|
|
177
|
+
control: 'boolean',
|
|
178
|
+
if: {
|
|
179
|
+
arg: 'target',
|
|
180
|
+
eq: 'textfield-like',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
hasHint: { control: { type: 'boolean' } },
|
|
184
|
+
})), additionalArgTypes), disableProps(__spreadArray([], disablePropsList, true))),
|
|
176
185
|
};
|
|
177
186
|
};
|
|
178
187
|
//# sourceMappingURL=meta.js.map
|