@salutejs/plasma-sb-utils 0.211.0-canary.2367.19851506127.0 → 0.211.0-canary.2367.19924445223.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 (47) hide show
  1. package/lib/components/Button/Button.d.ts +2 -2
  2. package/lib/components/Button/meta.d.ts +2 -2
  3. package/lib/components/Button/meta.js +9 -5
  4. package/lib/components/Button/meta.js.map +1 -1
  5. package/lib/components/IconPlaceholder.d.ts +9 -1
  6. package/lib/components/PaletteGrid.js +2 -2
  7. package/lib/components/PaletteGrid.js.map +1 -1
  8. package/lib/components/ReactStrictModeDecorator.d.ts +1 -1
  9. package/lib/components/ReactStrictModeDecorator.js.map +1 -1
  10. package/lib/components/StoryDecorators.d.ts +1 -1
  11. package/lib/components/TextField/TextField.d.ts +258 -0
  12. package/lib/components/TextField/TextField.js +64 -0
  13. package/lib/components/TextField/TextField.js.map +1 -0
  14. package/lib/components/TextField/fixtures.d.ts +9 -0
  15. package/lib/components/TextField/fixtures.js +24 -0
  16. package/lib/components/TextField/fixtures.js.map +1 -0
  17. package/lib/components/TextField/index.d.ts +1 -0
  18. package/lib/components/TextField/index.js +2 -0
  19. package/lib/components/TextField/index.js.map +1 -0
  20. package/lib/components/TextField/meta.d.ts +230 -0
  21. package/lib/components/TextField/meta.js +196 -0
  22. package/lib/components/TextField/meta.js.map +1 -0
  23. package/lib/components/TextField/stories.d.ts +2 -0
  24. package/lib/components/TextField/stories.js +71 -0
  25. package/lib/components/TextField/stories.js.map +1 -0
  26. package/lib/components/ThemeColors.d.ts +1 -1
  27. package/lib/components/ThemeColors.js +5 -5
  28. package/lib/components/ThemeColors.js.map +1 -1
  29. package/lib/components/index.d.ts +1 -0
  30. package/lib/components/index.js +1 -0
  31. package/lib/components/index.js.map +1 -1
  32. package/lib/helpers/colorTokens.d.ts +5 -5
  33. package/lib/helpers/colorTokens.js +3 -3
  34. package/lib/helpers/colorTokens.js.map +1 -1
  35. package/lib/helpers/convertTheme.d.ts +1 -1
  36. package/lib/helpers/flattenPalette.d.ts +2 -2
  37. package/lib/helpers/getConfigVariations.d.ts +1 -1
  38. package/lib/helpers/numberTokens.d.ts +1 -1
  39. package/lib/helpers/numberTokens.js +2 -2
  40. package/lib/helpers/numberTokens.js.map +1 -1
  41. package/lib/helpers/themeColors.d.ts +2 -2
  42. package/lib/helpers/themeColors.js +5 -5
  43. package/lib/helpers/themeColors.js.map +1 -1
  44. package/lib/helpers/typographyTokens.d.ts +7 -7
  45. package/lib/helpers/typographyTokens.js +1 -1
  46. package/lib/helpers/typographyTokens.js.map +1 -1
  47. package/package.json +6 -6
@@ -1,4 +1,4 @@
1
- declare type CreateStoriesProps = {
1
+ type CreateStoriesProps = {
2
2
  component: any;
3
3
  componentConfig: any;
4
4
  title?: string;
@@ -13,7 +13,7 @@ declare type CreateStoriesProps = {
13
13
  export declare const getButtonStories: (config: CreateStoriesProps) => {
14
14
  meta: {
15
15
  title: string;
16
- decorators: any[];
16
+ decorators: import("@storybook/react").Decorator[];
17
17
  component: any;
18
18
  args: {
19
19
  view: string;
@@ -1,4 +1,4 @@
1
- declare type CreateMetaProps = {
1
+ type CreateMetaProps = {
2
2
  component: any;
3
3
  componentConfig: any;
4
4
  title?: string;
@@ -8,7 +8,7 @@ declare type CreateMetaProps = {
8
8
  };
9
9
  export declare const createMeta: ({ component, componentConfig, title, defaultArgs, additionalArgTypes, disablePropsList, }: CreateMetaProps) => {
10
10
  title: string;
11
- decorators: any[];
11
+ decorators: import("@storybook/react").Decorator[];
12
12
  component: any;
13
13
  args: {
14
14
  view: string;
@@ -9,10 +9,14 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
13
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
14
- to[j] = from[i];
15
- return to;
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
16
20
  };
17
21
  import { disableProps, InSpacingDecorator } from '../../index';
18
22
  import { stretchingValues, pinValues, contentPlacingValues } from './fixtures';
@@ -68,7 +72,7 @@ export var createMeta = function (_a) {
68
72
  'focused',
69
73
  'blur',
70
74
  'square'
71
- ], disablePropsList))),
75
+ ], disablePropsList, true))),
72
76
  };
73
77
  };
74
78
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Button/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAW/E,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAOT;QANd,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,aAA2B,EAA3B,KAAK,mBAAG,mBAAmB,KAAA,EAC3B,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,0BAAuB,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA;IAErB,OAAO;QACH,KAAK,OAAA;QACL,UAAU,EAAE,CAAC,kBAAkB,CAAC;QAChC,SAAS,WAAA;QACT,IAAI,aACA,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,GAAG,EACT,cAAc,EAAE,SAAS,EACzB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,IAAI,EACb,MAAM,EA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,OAAO,EAAE,eAAe,CAAC,KAAK;gBAC9B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,KAAK,EAAE;gBACH,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;aAC5B,EACD,IAAI,EAAE;gBACF,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;aAC5B,EACD,SAAS,EAAE;gBACP,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,QAAQ,EAAE;gBACN,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,cAAc,EAAE;gBACZ,OAAO,EAAE,oBAAoB;gBAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,UAAU,EAAE;gBACR,OAAO,EAAE,gBAAgB;gBACzB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,GAAG,EAAE;gBACD,OAAO,EAAE,SAAS;gBAClB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B,EACD,iBAAiB,EAAE;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,EACD,kBAAkB,EAAE;gBAChB,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC/B,IACE,kBAAkB,GAClB,YAAY;YACX,OAAO;YACP,QAAQ;YACR,SAAS;YACT,SAAS;YACT,QAAQ;YACR,UAAU;YACV,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,SAAS;YACT,IAAI;YACJ,aAAa;YACb,KAAK;YACL,SAAS;YACT,MAAM;YACN,QAAQ;WACL,gBAAgB,QACrB,CACL;KACJ,CAAC;AACN,CAAC,CAAC"}
@@ -1,3 +1,11 @@
1
+ declare const sizes: {
2
+ xs: string;
3
+ s: string;
4
+ m: string;
5
+ l: string;
6
+ xl: string;
7
+ };
1
8
  export declare const IconPlaceholder: import("styled-components").StyledComponent<"div", any, {
2
- size?: "s" | "xs" | "m" | "l" | "xl" | undefined;
9
+ size?: keyof typeof sizes;
3
10
  }, never>;
11
+ export {};
@@ -32,11 +32,11 @@ export var PaletteGrid = function (_a) {
32
32
  var colors = _a.colors;
33
33
  return (React.createElement(StyledGrid, null, colors.map(function (_a, i) {
34
34
  var name = _a.name, row = _a.row;
35
- return (React.createElement(React.Fragment, { key: "item:" + i },
35
+ return (React.createElement(React.Fragment, { key: "item:".concat(i) },
36
36
  React.createElement(ShowcaseHead, null, name),
37
37
  row.map(function (_a, j) {
38
38
  var sat = _a[0], hex = _a[1];
39
- return (React.createElement(StyledTile, { key: "item:" + i + j, style: { background: hex } },
39
+ return (React.createElement(StyledTile, { key: "item:".concat(i).concat(j), style: { background: hex } },
40
40
  React.createElement(StyledColorCard, null,
41
41
  React.createElement(Body1, { style: { color: textColors[sat][0] } }, sat),
42
42
  React.createElement(Caption, { style: { color: textColors[sat][1] } }, hex)),
@@ -1 +1 @@
1
- {"version":3,"file":"PaletteGrid.js","sourceRoot":"","sources":["../../src/components/PaletteGrid.tsx"],"names":[],"mappings":";;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAIrF,IAAM,UAAU,GAAG;IACf,IAAI,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IAC7B,GAAG,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IAC5B,GAAG,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IAC5B,GAAG,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IAC5B,GAAG,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IAC5B,GAAG,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IAC5B,GAAG,EAAE,CAAC,KAAK,EAAE,cA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AC,GAAG,EAAE,eAAQ,CAAC,CAAE;YAC5B,oBAAC,YAAY,QAAE,IAAI,CAAgB;YAClC,GAAG,CAAC,GAAG,CAAC,UAAC,EAAU,EAAE,CAAC;oBAAZ,GAAG,QAAA,EAAE,GAAG,QAAA;gBAAS,OAAA,CACxB,oBAAC,UAAU,IAAC,GAAG,EAAE,eAAQ,CAAC,SAAG,CAAC,CAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE;oBACxD,oBAAC,eAAe;wBACZ,oBAAC,KAAK,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAG,GAAG,CAAS;wBAC1D,oBAAC,OAAO,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAG,GAAG,CAAW,CAChD;oBAClB,oBAAC,eAAe;wBACZ,oBAAC,KAAK,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE;4BACtC,IAAI;;4BAAG,GAAG;;4BAAG,GAAG,CACb,CACM,CACT,CAChB;YAZ2B,CAY3B,CAAC,CACW,CACpB;IAjBiC,CAiBjC,CAAC,CACO,CAChB;AArBkE,CAqBlE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Decorator } from '@storybook/react';
1
+ import type { Decorator } from '@storybook/react-vite';
2
2
  export declare const reactStrictModePreviewOption: {
3
3
  reactStrictMode: {
4
4
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ReactStrictModeDecorator.js","sourceRoot":"","sources":["../../src/components/ReactStrictModeDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,IAAM,4BAA4B,GAAG;IACxC,eAAe,EAAE;QACb,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE;YACL,KAAK,EAAE,qBAAqB;YAC5B,KAAK,EAAE;gBACH,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE;gBACnC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;aACpC;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAc,UAAC,KAAc,EAAE,OAAqB;IAChF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,EAAE;QAClC,OAAO,oBAAC,KAAK,OAAG,CAAC;KACpB;IAED,OAAO,CACH,oBAAC,KAAK,CAAC,UAAU;QACb,oBAAC,KAAK,OAAG,CACM,CACtB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"ReactStrictModeDecorator.js","sourceRoot":"","sources":["../../src/components/ReactStrictModeDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,IAAM,4BAA4B,GAAG;IACxC,eAAe,EAAE;QACb,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE;YACL,KAAK,EAAE,qBAAqB;YAC5B,KAAK,EAAE;gBACH,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE;gBACnC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;aACpC;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAc,UAAC,KAAc,EAAE,OAAqB;IAChF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;QACnC,OAAO,oBAAC,KAAK,OAAG,CAAC;IACrB,CAAC;IAED,OAAO,CACH,oBAAC,KAAK,CAAC,UAAU;QACb,oBAAC,KAAK,OAAG,CACM,CACtB,CAAC;AACN,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- import type { Decorator } from '@storybook/react';
1
+ import type { Decorator } from '@storybook/react-vite';
2
2
  export declare const InSpacing: Decorator;
@@ -0,0 +1,258 @@
1
+ type CreateStoriesProps = {
2
+ component: any;
3
+ componentConfig: any;
4
+ customIcon?: (size: string) => JSX.Element;
5
+ title?: string;
6
+ disablePropsList?: string[];
7
+ defaultArgs?: {};
8
+ additionalArgTypes?: {};
9
+ additionalComponents?: {};
10
+ };
11
+ export declare const getTextFieldStories: (config: CreateStoriesProps) => {
12
+ meta: {
13
+ title: string;
14
+ decorators: import("@storybook/react").Decorator[];
15
+ component: any;
16
+ args: {
17
+ id: string;
18
+ appearance: string;
19
+ hasDivider: boolean;
20
+ size: string;
21
+ view: string;
22
+ label: string;
23
+ labelPlacement: string;
24
+ keepPlaceholder: boolean;
25
+ titleCaption: string;
26
+ textBefore: string;
27
+ textAfter: string;
28
+ placeholder: string;
29
+ leftHelper: string;
30
+ disabled: boolean;
31
+ readOnly: boolean;
32
+ enableContentLeft: boolean;
33
+ enableContentRight: boolean;
34
+ optional: boolean;
35
+ optionalText: string;
36
+ required: boolean;
37
+ requiredPlacement: string;
38
+ hasRequiredIndicator: boolean;
39
+ hasHint: boolean;
40
+ hintText: string;
41
+ hintTrigger: string;
42
+ hintView: string;
43
+ hintSize: string;
44
+ hintTargetPlacement: string;
45
+ hintPlacement: string;
46
+ hintWidth: string;
47
+ hintHasArrow: boolean;
48
+ };
49
+ argTypes: {
50
+ view: {
51
+ options: any;
52
+ control: {
53
+ type: string;
54
+ };
55
+ };
56
+ size: {
57
+ options: any;
58
+ control: {
59
+ type: string;
60
+ };
61
+ };
62
+ appearance: {
63
+ options: string[];
64
+ control: {
65
+ type: string;
66
+ };
67
+ };
68
+ hasDivider: {
69
+ control: {
70
+ type: string;
71
+ };
72
+ if: {
73
+ arg: string;
74
+ eq: string;
75
+ };
76
+ };
77
+ requiredPlacement: {
78
+ options: string[];
79
+ control: {
80
+ type: string;
81
+ };
82
+ if: {
83
+ arg: string;
84
+ truthy: boolean;
85
+ };
86
+ };
87
+ required: {
88
+ control: {
89
+ type: string;
90
+ };
91
+ if: {
92
+ arg: string;
93
+ truthy: boolean;
94
+ };
95
+ };
96
+ hasRequiredIndicator: {
97
+ control: {
98
+ type: string;
99
+ };
100
+ if: {
101
+ arg: string;
102
+ truthy: boolean;
103
+ };
104
+ };
105
+ optional: {
106
+ control: {
107
+ type: string;
108
+ };
109
+ if: {
110
+ arg: string;
111
+ truthy: boolean;
112
+ };
113
+ };
114
+ optionalText: {
115
+ control: {
116
+ type: string;
117
+ };
118
+ if: {
119
+ arg: string;
120
+ truthy: boolean;
121
+ };
122
+ };
123
+ maxLength: {
124
+ control: {
125
+ type: string;
126
+ };
127
+ };
128
+ labelPlacement: {
129
+ options: string[];
130
+ control: {
131
+ type: string;
132
+ };
133
+ };
134
+ keepPlaceholder: {
135
+ control: {
136
+ type: string;
137
+ };
138
+ if: {
139
+ arg: string;
140
+ eq: string;
141
+ };
142
+ };
143
+ titleCaption: {
144
+ control: {
145
+ type: string;
146
+ };
147
+ };
148
+ leftHelper: {
149
+ control: {
150
+ type: string;
151
+ };
152
+ };
153
+ hintText: {
154
+ control: {
155
+ type: string;
156
+ };
157
+ if: {
158
+ arg: string;
159
+ truthy: boolean;
160
+ };
161
+ };
162
+ hintView: {
163
+ options: string[];
164
+ control: {
165
+ type: string;
166
+ };
167
+ if: {
168
+ arg: string;
169
+ truthy: boolean;
170
+ };
171
+ };
172
+ hintSize: {
173
+ options: string[];
174
+ control: {
175
+ type: string;
176
+ };
177
+ if: {
178
+ arg: string;
179
+ truthy: boolean;
180
+ };
181
+ };
182
+ hintTargetPlacement: {
183
+ options: string[];
184
+ control: {
185
+ type: string;
186
+ };
187
+ if: {
188
+ arg: string;
189
+ truthy: boolean;
190
+ };
191
+ };
192
+ hintTrigger: {
193
+ options: string[];
194
+ control: {
195
+ type: string;
196
+ };
197
+ if: {
198
+ arg: string;
199
+ truthy: boolean;
200
+ };
201
+ };
202
+ hintPlacement: {
203
+ options: string[];
204
+ control: {
205
+ type: string;
206
+ };
207
+ if: {
208
+ arg: string;
209
+ truthy: boolean;
210
+ };
211
+ mappers: string[];
212
+ };
213
+ hintHasArrow: {
214
+ control: {
215
+ type: string;
216
+ };
217
+ if: {
218
+ arg: string;
219
+ truthy: boolean;
220
+ };
221
+ };
222
+ hintWidth: {
223
+ control: {
224
+ type: string;
225
+ };
226
+ if: {
227
+ arg: string;
228
+ truthy: boolean;
229
+ };
230
+ };
231
+ };
232
+ };
233
+ Default: {
234
+ render: (args: any) => JSX.Element;
235
+ };
236
+ Chips: {
237
+ render: (args: any) => JSX.Element;
238
+ args: {
239
+ leftHelper: string;
240
+ chipView: string;
241
+ chips: string[];
242
+ chipType: string;
243
+ };
244
+ argTypes: {
245
+ chipView: {
246
+ options: string[];
247
+ control: {
248
+ type: string;
249
+ };
250
+ };
251
+ chipType: {
252
+ control: string;
253
+ options: string[];
254
+ };
255
+ };
256
+ };
257
+ };
258
+ export {};
@@ -0,0 +1,64 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from 'react';
24
+ import { getConfigVariations } from '../../helpers';
25
+ import { createMeta } from './meta';
26
+ import { createChipsStory, createDefaultStory } from './stories';
27
+ import { chipViews } from './fixtures';
28
+ export var getTextFieldStories = function (config) {
29
+ var component = config.component, componentConfig = config.componentConfig, customIcon = config.customIcon, rest = __rest(config, ["component", "componentConfig", "customIcon"]);
30
+ var textFieldConfig = getConfigVariations(componentConfig);
31
+ var meta = createMeta(__assign({ component: component, componentConfig: textFieldConfig }, rest));
32
+ var DefaultStoryComponent = createDefaultStory(component, customIcon);
33
+ var ChipsStoryComponent = createChipsStory(component, customIcon);
34
+ var Default = {
35
+ render: function (args) { return React.createElement(DefaultStoryComponent, __assign({}, args)); },
36
+ };
37
+ var Chips = {
38
+ render: function (args) { return React.createElement(ChipsStoryComponent, __assign({}, args)); },
39
+ args: {
40
+ leftHelper: 'Для первого чипа валидация вернула view="negative"',
41
+ chipView: 'secondary',
42
+ chips: ['1 value', '2 value', '3 value', '4 value'],
43
+ chipType: 'default',
44
+ },
45
+ argTypes: {
46
+ chipView: {
47
+ options: chipViews,
48
+ control: {
49
+ type: 'select',
50
+ },
51
+ },
52
+ chipType: {
53
+ control: 'select',
54
+ options: ['default', 'text'],
55
+ },
56
+ },
57
+ };
58
+ return {
59
+ meta: meta,
60
+ Default: Default,
61
+ Chips: Chips,
62
+ };
63
+ };
64
+ //# sourceMappingURL=TextField.js.map
@@ -0,0 +1 @@
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;AAavC,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,MAA0B;IAClD,IAAA,SAAS,GAA2C,MAAM,UAAjD,EAAE,eAAe,GAA0B,MAAM,gBAAhC,EAAE,UAAU,GAAc,MAAM,WAApB,EAAK,IAAI,UAAK,MAAM,EAA5D,8CAAmD,CAAF,CAAY;IAEnE,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,EAAE,UAAU,CAAC,CAAC;IACxE,IAAM,mBAAmB,GAAG,gBAAgB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAEpE,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"}
@@ -0,0 +1,9 @@
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[];
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ export * from './TextField';
@@ -0,0 +1,2 @@
1
+ export * from './TextField';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextField/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}