@salutejs/plasma-sb-utils 0.211.0-canary.2358.19851578667.0 → 0.211.0-canary.2362.19851604298.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.
Files changed (33) hide show
  1. package/lib/components/Calendar/Calendar.d.ts +79 -0
  2. package/lib/components/{TextField/TextField.js → Calendar/Calendar.js} +11 -30
  3. package/lib/components/Calendar/Calendar.js.map +1 -0
  4. package/lib/components/Calendar/fixtures.d.ts +5 -0
  5. package/lib/components/Calendar/fixtures.js +6 -0
  6. package/lib/components/Calendar/fixtures.js.map +1 -0
  7. package/lib/components/Calendar/index.d.ts +1 -0
  8. package/lib/components/Calendar/index.js +2 -0
  9. package/lib/components/Calendar/index.js.map +1 -0
  10. package/lib/components/Calendar/meta.d.ts +62 -0
  11. package/lib/components/Calendar/meta.js +40 -0
  12. package/lib/components/Calendar/meta.js.map +1 -0
  13. package/lib/components/Calendar/stories.d.ts +2 -0
  14. package/lib/components/Calendar/stories.js +166 -0
  15. package/lib/components/Calendar/stories.js.map +1 -0
  16. package/lib/components/index.d.ts +1 -1
  17. package/lib/components/index.js +1 -1
  18. package/lib/components/index.js.map +1 -1
  19. package/package.json +3 -3
  20. package/lib/components/TextField/TextField.d.ts +0 -257
  21. package/lib/components/TextField/TextField.js.map +0 -1
  22. package/lib/components/TextField/fixtures.d.ts +0 -9
  23. package/lib/components/TextField/fixtures.js +0 -24
  24. package/lib/components/TextField/fixtures.js.map +0 -1
  25. package/lib/components/TextField/index.d.ts +0 -1
  26. package/lib/components/TextField/index.js +0 -2
  27. package/lib/components/TextField/index.js.map +0 -1
  28. package/lib/components/TextField/meta.d.ts +0 -230
  29. package/lib/components/TextField/meta.js +0 -192
  30. package/lib/components/TextField/meta.js.map +0 -1
  31. package/lib/components/TextField/stories.d.ts +0 -2
  32. package/lib/components/TextField/stories.js +0 -69
  33. package/lib/components/TextField/stories.js.map +0 -1
@@ -1,257 +0,0 @@
1
- declare type CreateStoriesProps = {
2
- component: any;
3
- componentConfig: any;
4
- title?: string;
5
- disablePropsList?: string[];
6
- defaultArgs?: {};
7
- additionalArgTypes?: {};
8
- additionalComponents?: {};
9
- };
10
- export declare const getTextFieldStories: (config: CreateStoriesProps) => {
11
- meta: {
12
- title: string;
13
- decorators: any[];
14
- component: any;
15
- args: {
16
- id: string;
17
- appearance: string;
18
- hasDivider: boolean;
19
- size: string;
20
- view: string;
21
- label: string;
22
- labelPlacement: string;
23
- keepPlaceholder: boolean;
24
- titleCaption: string;
25
- textBefore: string;
26
- textAfter: string;
27
- placeholder: string;
28
- leftHelper: string;
29
- disabled: boolean;
30
- readOnly: boolean;
31
- enableContentLeft: boolean;
32
- enableContentRight: boolean;
33
- optional: boolean;
34
- optionalText: string;
35
- required: boolean;
36
- requiredPlacement: string;
37
- hasRequiredIndicator: boolean;
38
- hasHint: boolean;
39
- hintText: string;
40
- hintTrigger: string;
41
- hintView: string;
42
- hintSize: string;
43
- hintTargetPlacement: string;
44
- hintPlacement: string;
45
- hintWidth: string;
46
- hintHasArrow: boolean;
47
- };
48
- argTypes: {
49
- view: {
50
- options: any;
51
- control: {
52
- type: string;
53
- };
54
- };
55
- size: {
56
- options: any;
57
- control: {
58
- type: string;
59
- };
60
- };
61
- appearance: {
62
- options: string[];
63
- control: {
64
- type: string;
65
- };
66
- };
67
- hasDivider: {
68
- control: {
69
- type: string;
70
- };
71
- if: {
72
- arg: string;
73
- eq: string;
74
- };
75
- };
76
- requiredPlacement: {
77
- options: string[];
78
- control: {
79
- type: string;
80
- };
81
- if: {
82
- arg: string;
83
- truthy: boolean;
84
- };
85
- };
86
- required: {
87
- control: {
88
- type: string;
89
- };
90
- if: {
91
- arg: string;
92
- truthy: boolean;
93
- };
94
- };
95
- hasRequiredIndicator: {
96
- control: {
97
- type: string;
98
- };
99
- if: {
100
- arg: string;
101
- truthy: boolean;
102
- };
103
- };
104
- optional: {
105
- control: {
106
- type: string;
107
- };
108
- if: {
109
- arg: string;
110
- truthy: boolean;
111
- };
112
- };
113
- optionalText: {
114
- control: {
115
- type: string;
116
- };
117
- if: {
118
- arg: string;
119
- truthy: boolean;
120
- };
121
- };
122
- maxLength: {
123
- control: {
124
- type: string;
125
- };
126
- };
127
- labelPlacement: {
128
- options: string[];
129
- control: {
130
- type: string;
131
- };
132
- };
133
- keepPlaceholder: {
134
- control: {
135
- type: string;
136
- };
137
- if: {
138
- arg: string;
139
- eq: string;
140
- };
141
- };
142
- titleCaption: {
143
- control: {
144
- type: string;
145
- };
146
- };
147
- leftHelper: {
148
- control: {
149
- type: string;
150
- };
151
- };
152
- hintText: {
153
- control: {
154
- type: string;
155
- };
156
- if: {
157
- arg: string;
158
- truthy: boolean;
159
- };
160
- };
161
- hintView: {
162
- options: string[];
163
- control: {
164
- type: string;
165
- };
166
- if: {
167
- arg: string;
168
- truthy: boolean;
169
- };
170
- };
171
- hintSize: {
172
- options: string[];
173
- control: {
174
- type: string;
175
- };
176
- if: {
177
- arg: string;
178
- truthy: boolean;
179
- };
180
- };
181
- hintTargetPlacement: {
182
- options: string[];
183
- control: {
184
- type: string;
185
- };
186
- if: {
187
- arg: string;
188
- truthy: boolean;
189
- };
190
- };
191
- hintTrigger: {
192
- options: string[];
193
- control: {
194
- type: string;
195
- };
196
- if: {
197
- arg: string;
198
- truthy: boolean;
199
- };
200
- };
201
- hintPlacement: {
202
- options: string[];
203
- control: {
204
- type: string;
205
- };
206
- if: {
207
- arg: string;
208
- truthy: boolean;
209
- };
210
- mappers: string[];
211
- };
212
- hintHasArrow: {
213
- control: {
214
- type: string;
215
- };
216
- if: {
217
- arg: string;
218
- truthy: boolean;
219
- };
220
- };
221
- hintWidth: {
222
- control: {
223
- type: string;
224
- };
225
- if: {
226
- arg: string;
227
- truthy: boolean;
228
- };
229
- };
230
- };
231
- };
232
- Default: {
233
- render: (args: any) => JSX.Element;
234
- };
235
- Chips: {
236
- render: (args: any) => JSX.Element;
237
- args: {
238
- leftHelper: string;
239
- chipView: string;
240
- chips: string[];
241
- chipType: string;
242
- };
243
- argTypes: {
244
- chipView: {
245
- options: string[];
246
- control: {
247
- type: string;
248
- };
249
- };
250
- chipType: {
251
- control: string;
252
- options: string[];
253
- };
254
- };
255
- };
256
- };
257
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../src/components/TextField/TextField.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,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAYvC,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,MAA0B;IAClD,IAAA,SAAS,GAA+B,MAAM,UAArC,EAAE,eAAe,GAAc,MAAM,gBAApB,EAAK,IAAI,UAAK,MAAM,EAAhD,gCAAuC,CAAF,CAAY;IAEvD,IAAM,eAAe,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAE7D,IAAM,IAAI,GAAG,UAAU,YACnB,SAAS,WAAA,EACT,eAAe,EAAE,eAAe,IAC7B,IAAI,EACT,CAAC;IAEH,IAAM,qBAAqB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC5D,IAAM,mBAAmB,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAExD,IAAM,OAAO,GAAG;QACZ,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,qBAAqB,eAAK,IAAI,EAAI,EAAnC,CAAmC;KAC7D,CAAC;IAEF,IAAM,KAAK,GAAG;QACV,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,mBAAmB,eAAK,IAAI,EAAI,EAAjC,CAAiC;QACxD,IAAI,EAAE;YACF,UAAU,EAAE,oDAAoD;YAChE,QAAQ,EAAE,WAAW;YACrB,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;YACnD,QAAQ,EAAE,SAAS;SACtB;QACD,QAAQ,EAAE;YACN,QAAQ,EAAE;gBACN,OAAO,EAAE,SAAS;gBAClB,OAAO,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,QAAQ,EAAE;gBACN,OAAO,EAAE,QAAQ;gBACjB,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;aAC/B;SACJ;KACJ,CAAC;IAEF,OAAO;QACH,IAAI,MAAA;QACJ,OAAO,SAAA;QACP,KAAK,OAAA;KACR,CAAC;AACN,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const appearances: string[];
2
- export declare const chipViews: string[];
3
- export declare const hintViews: string[];
4
- export declare const hintSizes: string[];
5
- export declare const hintTriggers: string[];
6
- export declare const hintTargetPlacements: string[];
7
- export declare const labelPlacements: string[];
8
- export declare const requiredPlacements: string[];
9
- export declare const placements: string[];
@@ -1,24 +0,0 @@
1
- export var appearances = ['default', 'clear'];
2
- export var chipViews = ['default', 'secondary', 'accent', 'positive', 'warning', 'negative'];
3
- export var hintViews = ['default'];
4
- export var hintSizes = ['m', 's'];
5
- export var hintTriggers = ['hover', 'click'];
6
- export var hintTargetPlacements = ['outer', 'inner'];
7
- export var labelPlacements = ['outer', 'inner'];
8
- export var requiredPlacements = ['left', 'right'];
9
- export var placements = [
10
- 'top',
11
- 'top-start',
12
- 'top-end',
13
- 'bottom',
14
- 'bottom-start',
15
- 'bottom-end',
16
- 'left',
17
- 'left-start',
18
- 'left-end',
19
- 'right',
20
- 'right-start',
21
- 'right-end',
22
- 'auto',
23
- ];
24
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/TextField/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,WAAW,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAChD,MAAM,CAAC,IAAM,SAAS,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/F,MAAM,CAAC,IAAM,SAAS,GAAG,CAAC,SAAS,CAAC,CAAC;AACrC,MAAM,CAAC,IAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACpC,MAAM,CAAC,IAAM,YAAY,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACvD,MAAM,CAAC,IAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAClD,MAAM,CAAC,IAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACpD,MAAM,CAAC,IAAM,UAAU,GAAG;IACtB,KAAK;IACL,WAAW;IACX,SAAS;IAET,QAAQ;IACR,cAAc;IACd,YAAY;IAEZ,MAAM;IACN,YAAY;IACZ,UAAU;IAEV,OAAO;IACP,aAAa;IACb,WAAW;IAEX,MAAM;CACT,CAAC"}
@@ -1 +0,0 @@
1
- export * from './TextField';
@@ -1,2 +0,0 @@
1
- export * from './TextField';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextField/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,230 +0,0 @@
1
- declare type CreateMetaProps = {
2
- component: any;
3
- componentConfig: any;
4
- title?: string;
5
- defaultArgs?: {};
6
- additionalArgTypes?: {};
7
- disablePropsList?: string[];
8
- };
9
- export declare const createMeta: ({ component, componentConfig, title, defaultArgs, additionalArgTypes, disablePropsList, }: CreateMetaProps) => {
10
- title: string;
11
- decorators: any[];
12
- component: any;
13
- args: {
14
- id: string;
15
- appearance: string;
16
- hasDivider: boolean;
17
- size: string;
18
- view: string;
19
- label: string;
20
- labelPlacement: string;
21
- keepPlaceholder: boolean;
22
- titleCaption: string;
23
- textBefore: string;
24
- textAfter: string;
25
- placeholder: string;
26
- leftHelper: string;
27
- disabled: boolean;
28
- readOnly: boolean;
29
- enableContentLeft: boolean;
30
- enableContentRight: boolean;
31
- optional: boolean;
32
- optionalText: string;
33
- required: boolean;
34
- requiredPlacement: string;
35
- hasRequiredIndicator: boolean;
36
- hasHint: boolean;
37
- hintText: string;
38
- hintTrigger: string;
39
- hintView: string;
40
- hintSize: string;
41
- hintTargetPlacement: string;
42
- hintPlacement: string;
43
- hintWidth: string;
44
- hintHasArrow: boolean;
45
- };
46
- argTypes: {
47
- view: {
48
- options: any;
49
- control: {
50
- type: string;
51
- };
52
- };
53
- size: {
54
- options: any;
55
- control: {
56
- type: string;
57
- };
58
- };
59
- appearance: {
60
- options: string[];
61
- control: {
62
- type: string;
63
- };
64
- };
65
- hasDivider: {
66
- control: {
67
- type: string;
68
- };
69
- if: {
70
- arg: string;
71
- eq: string;
72
- };
73
- };
74
- requiredPlacement: {
75
- options: string[];
76
- control: {
77
- type: string;
78
- };
79
- if: {
80
- arg: string;
81
- truthy: boolean;
82
- };
83
- };
84
- required: {
85
- control: {
86
- type: string;
87
- };
88
- if: {
89
- arg: string;
90
- truthy: boolean;
91
- };
92
- };
93
- hasRequiredIndicator: {
94
- control: {
95
- type: string;
96
- };
97
- if: {
98
- arg: string;
99
- truthy: boolean;
100
- };
101
- };
102
- optional: {
103
- control: {
104
- type: string;
105
- };
106
- if: {
107
- arg: string;
108
- truthy: boolean;
109
- };
110
- };
111
- optionalText: {
112
- control: {
113
- type: string;
114
- };
115
- if: {
116
- arg: string;
117
- truthy: boolean;
118
- };
119
- };
120
- maxLength: {
121
- control: {
122
- type: string;
123
- };
124
- };
125
- labelPlacement: {
126
- options: string[];
127
- control: {
128
- type: string;
129
- };
130
- };
131
- keepPlaceholder: {
132
- control: {
133
- type: string;
134
- };
135
- if: {
136
- arg: string;
137
- eq: string;
138
- };
139
- };
140
- titleCaption: {
141
- control: {
142
- type: string;
143
- };
144
- };
145
- leftHelper: {
146
- control: {
147
- type: string;
148
- };
149
- };
150
- hintText: {
151
- control: {
152
- type: string;
153
- };
154
- if: {
155
- arg: string;
156
- truthy: boolean;
157
- };
158
- };
159
- hintView: {
160
- options: string[];
161
- control: {
162
- type: string;
163
- };
164
- if: {
165
- arg: string;
166
- truthy: boolean;
167
- };
168
- };
169
- hintSize: {
170
- options: string[];
171
- control: {
172
- type: string;
173
- };
174
- if: {
175
- arg: string;
176
- truthy: boolean;
177
- };
178
- };
179
- hintTargetPlacement: {
180
- options: string[];
181
- control: {
182
- type: string;
183
- };
184
- if: {
185
- arg: string;
186
- truthy: boolean;
187
- };
188
- };
189
- hintTrigger: {
190
- options: string[];
191
- control: {
192
- type: string;
193
- };
194
- if: {
195
- arg: string;
196
- truthy: boolean;
197
- };
198
- };
199
- hintPlacement: {
200
- options: string[];
201
- control: {
202
- type: string;
203
- };
204
- if: {
205
- arg: string;
206
- truthy: boolean;
207
- };
208
- mappers: string[];
209
- };
210
- hintHasArrow: {
211
- control: {
212
- type: string;
213
- };
214
- if: {
215
- arg: string;
216
- truthy: boolean;
217
- };
218
- };
219
- hintWidth: {
220
- control: {
221
- type: string;
222
- };
223
- if: {
224
- arg: string;
225
- truthy: boolean;
226
- };
227
- };
228
- };
229
- };
230
- export {};