@salutejs/plasma-sb-utils 0.226.1-next-sbcom.0 → 0.227.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.
Files changed (140) hide show
  1. package/lib/components/Combobox/Combobox.d.ts +408 -0
  2. package/lib/components/Combobox/Combobox.js +94 -0
  3. package/lib/components/Combobox/Combobox.js.map +1 -0
  4. package/lib/components/Combobox/fixtures.d.ts +42 -0
  5. package/lib/components/Combobox/fixtures.js +364 -0
  6. package/lib/components/Combobox/fixtures.js.map +1 -0
  7. package/lib/components/Combobox/index.d.ts +1 -0
  8. package/lib/components/Combobox/index.js +2 -0
  9. package/lib/components/Combobox/index.js.map +1 -0
  10. package/lib/components/Combobox/meta.d.ts +357 -0
  11. package/lib/components/Combobox/meta.js +149 -0
  12. package/lib/components/Combobox/meta.js.map +1 -0
  13. package/lib/components/Combobox/stories.d.ts +4 -0
  14. package/lib/components/Combobox/stories.js +109 -0
  15. package/lib/components/Combobox/stories.js.map +1 -0
  16. package/lib/components/DatePicker/DatePicker.d.ts +1 -0
  17. package/lib/components/DatePicker/DatePicker.js +4 -4
  18. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  19. package/lib/components/DatePicker/stories.d.ts +4 -2
  20. package/lib/components/DatePicker/stories.js +18 -5
  21. package/lib/components/DatePicker/stories.js.map +1 -1
  22. package/lib/components/DateTimePicker/DateTimePicker.d.ts +24 -0
  23. package/lib/components/DateTimePicker/DateTimePicker.js +2 -2
  24. package/lib/components/DateTimePicker/DateTimePicker.js.map +1 -1
  25. package/lib/components/DateTimePicker/fixtures.d.ts +1 -0
  26. package/lib/components/DateTimePicker/fixtures.js +1 -0
  27. package/lib/components/DateTimePicker/fixtures.js.map +1 -1
  28. package/lib/components/DateTimePicker/meta.d.ts +23 -0
  29. package/lib/components/DateTimePicker/meta.js +13 -3
  30. package/lib/components/DateTimePicker/meta.js.map +1 -1
  31. package/lib/components/DateTimePicker/stories.d.ts +1 -1
  32. package/lib/components/DateTimePicker/stories.js +8 -3
  33. package/lib/components/DateTimePicker/stories.js.map +1 -1
  34. package/lib/components/Dropzone/Dropzone.d.ts +122 -0
  35. package/lib/components/Dropzone/Dropzone.js +40 -0
  36. package/lib/components/Dropzone/Dropzone.js.map +1 -0
  37. package/lib/components/Dropzone/fixtures.d.ts +1 -0
  38. package/lib/components/Dropzone/fixtures.js +2 -0
  39. package/lib/components/Dropzone/fixtures.js.map +1 -0
  40. package/lib/components/Dropzone/index.d.ts +1 -0
  41. package/lib/components/Dropzone/index.js +2 -0
  42. package/lib/components/Dropzone/index.js.map +1 -0
  43. package/lib/components/Dropzone/meta.d.ts +117 -0
  44. package/lib/components/Dropzone/meta.js +81 -0
  45. package/lib/components/Dropzone/meta.js.map +1 -0
  46. package/lib/components/Dropzone/stories.d.ts +1 -0
  47. package/lib/components/Dropzone/stories.js +36 -0
  48. package/lib/components/Dropzone/stories.js.map +1 -0
  49. package/lib/components/InformationWrapper/InformationWrapper.d.ts +270 -0
  50. package/lib/components/InformationWrapper/InformationWrapper.js +40 -0
  51. package/lib/components/InformationWrapper/InformationWrapper.js.map +1 -0
  52. package/lib/components/InformationWrapper/fixtures.d.ts +6 -0
  53. package/lib/components/InformationWrapper/fixtures.js +21 -0
  54. package/lib/components/InformationWrapper/fixtures.js.map +1 -0
  55. package/lib/components/InformationWrapper/index.d.ts +1 -0
  56. package/lib/components/InformationWrapper/index.js +2 -0
  57. package/lib/components/InformationWrapper/index.js.map +1 -0
  58. package/lib/components/InformationWrapper/meta.d.ts +265 -0
  59. package/lib/components/InformationWrapper/meta.js +118 -0
  60. package/lib/components/InformationWrapper/meta.js.map +1 -0
  61. package/lib/components/InformationWrapper/stories.d.ts +1 -0
  62. package/lib/components/InformationWrapper/stories.js +42 -0
  63. package/lib/components/InformationWrapper/stories.js.map +1 -0
  64. package/lib/components/NumberInput/fixtures.js +1 -1
  65. package/lib/components/NumberInput/fixtures.js.map +1 -1
  66. package/lib/components/Popover/Popover.d.ts +195 -0
  67. package/lib/components/Popover/Popover.js +50 -0
  68. package/lib/components/Popover/Popover.js.map +1 -0
  69. package/lib/components/Popover/fixtures.d.ts +5 -0
  70. package/lib/components/Popover/fixtures.js +29 -0
  71. package/lib/components/Popover/fixtures.js.map +1 -0
  72. package/lib/components/Popover/index.d.ts +1 -0
  73. package/lib/components/Popover/index.js +2 -0
  74. package/lib/components/Popover/index.js.map +1 -0
  75. package/lib/components/Popover/meta.d.ts +110 -0
  76. package/lib/components/Popover/meta.js +78 -0
  77. package/lib/components/Popover/meta.js.map +1 -0
  78. package/lib/components/Popover/stories.d.ts +80 -0
  79. package/lib/components/Popover/stories.js +125 -0
  80. package/lib/components/Popover/stories.js.map +1 -0
  81. package/lib/components/Progress/Progress.d.ts +159 -0
  82. package/lib/components/Progress/Progress.js +38 -0
  83. package/lib/components/Progress/Progress.js.map +1 -0
  84. package/lib/components/Progress/fixtures.d.ts +5 -0
  85. package/lib/components/Progress/fixtures.js +6 -0
  86. package/lib/components/Progress/fixtures.js.map +1 -0
  87. package/lib/components/Progress/index.d.ts +1 -0
  88. package/lib/components/Progress/index.js +2 -0
  89. package/lib/components/Progress/index.js.map +1 -0
  90. package/lib/components/Progress/meta.d.ts +154 -0
  91. package/lib/components/Progress/meta.js +87 -0
  92. package/lib/components/Progress/meta.js.map +1 -0
  93. package/lib/components/Progress/stories.d.ts +2 -0
  94. package/lib/components/Progress/stories.js +59 -0
  95. package/lib/components/Progress/stories.js.map +1 -0
  96. package/lib/components/Range/Range.d.ts +1 -0
  97. package/lib/components/Range/Range.js +2 -2
  98. package/lib/components/Range/Range.js.map +1 -1
  99. package/lib/components/Range/stories.d.ts +1 -1
  100. package/lib/components/Range/stories.js +11 -2
  101. package/lib/components/Range/stories.js.map +1 -1
  102. package/lib/components/Select/Select.d.ts +1 -0
  103. package/lib/components/Select/Select.js +4 -4
  104. package/lib/components/Select/Select.js.map +1 -1
  105. package/lib/components/Select/stories.d.ts +5 -3
  106. package/lib/components/Select/stories.js +10 -7
  107. package/lib/components/Select/stories.js.map +1 -1
  108. package/lib/components/Skeleton/Skeleton.d.ts +28 -1
  109. package/lib/components/Skeleton/stories.d.ts +28 -1
  110. package/lib/components/Skeleton/stories.js +34 -1
  111. package/lib/components/Skeleton/stories.js.map +1 -1
  112. package/lib/components/TextArea/TextArea.d.ts +154 -19
  113. package/lib/components/TextArea/meta.d.ts +154 -19
  114. package/lib/components/TextArea/meta.js +92 -141
  115. package/lib/components/TextArea/meta.js.map +1 -1
  116. package/lib/components/TextArea/stories.js +8 -9
  117. package/lib/components/TextArea/stories.js.map +1 -1
  118. package/lib/components/TextFieldSlider/TextFieldSlider.d.ts +9 -0
  119. package/lib/components/TextFieldSlider/meta.d.ts +9 -0
  120. package/lib/components/TextFieldSlider/meta.js +4 -1
  121. package/lib/components/TextFieldSlider/meta.js.map +1 -1
  122. package/lib/components/TextFieldSlider/stories.d.ts +1 -1
  123. package/lib/components/TextFieldSlider/stories.js +13 -4
  124. package/lib/components/TextFieldSlider/stories.js.map +1 -1
  125. package/lib/components/TimePicker/TimePicker.d.ts +24 -0
  126. package/lib/components/TimePicker/TimePicker.js +2 -2
  127. package/lib/components/TimePicker/TimePicker.js.map +1 -1
  128. package/lib/components/TimePicker/fixtures.d.ts +1 -0
  129. package/lib/components/TimePicker/fixtures.js +1 -0
  130. package/lib/components/TimePicker/fixtures.js.map +1 -1
  131. package/lib/components/TimePicker/meta.d.ts +23 -0
  132. package/lib/components/TimePicker/meta.js +13 -3
  133. package/lib/components/TimePicker/meta.js.map +1 -1
  134. package/lib/components/TimePicker/stories.d.ts +1 -1
  135. package/lib/components/TimePicker/stories.js +11 -3
  136. package/lib/components/TimePicker/stories.js.map +1 -1
  137. package/lib/components/index.d.ts +5 -0
  138. package/lib/components/index.js +5 -0
  139. package/lib/components/index.js.map +1 -1
  140. package/package.json +4 -4
@@ -0,0 +1,265 @@
1
+ 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: import("@storybook/react").Decorator[];
12
+ component: any;
13
+ args: {
14
+ size: string;
15
+ view: string;
16
+ label: string;
17
+ labelPlacement: string;
18
+ titleCaption: string;
19
+ leftHelper: string;
20
+ enableLeftHelperIcon: boolean;
21
+ rightHelper: string;
22
+ required: boolean;
23
+ hasRequiredIndicator: boolean;
24
+ requiredIndicatorPlacement: string;
25
+ optional: boolean;
26
+ optionalText: string;
27
+ hasHint: boolean;
28
+ hintText: string;
29
+ hintTrigger: string;
30
+ hintView: string;
31
+ hintSize: string;
32
+ hintPlacement: string;
33
+ hintWidth: string;
34
+ hintHasArrow: boolean;
35
+ disabled: boolean;
36
+ };
37
+ argTypes: {
38
+ view: {
39
+ options: any;
40
+ control: {
41
+ type: string;
42
+ };
43
+ table: {
44
+ category: string;
45
+ };
46
+ };
47
+ size: {
48
+ options: any;
49
+ control: {
50
+ type: string;
51
+ };
52
+ table: {
53
+ category: string;
54
+ };
55
+ };
56
+ disabled: {
57
+ control: {
58
+ type: string;
59
+ };
60
+ table: {
61
+ category: string;
62
+ };
63
+ };
64
+ label: {
65
+ control: {
66
+ type: string;
67
+ };
68
+ table: {
69
+ category: string;
70
+ };
71
+ };
72
+ labelPlacement: {
73
+ options: string[];
74
+ control: {
75
+ type: string;
76
+ };
77
+ table: {
78
+ category: string;
79
+ };
80
+ };
81
+ titleCaption: {
82
+ control: {
83
+ type: string;
84
+ };
85
+ table: {
86
+ category: string;
87
+ };
88
+ };
89
+ enableLeftHelperIcon: {
90
+ control: {
91
+ type: string;
92
+ };
93
+ table: {
94
+ category: string;
95
+ };
96
+ };
97
+ rightHelper: {
98
+ control: {
99
+ type: string;
100
+ };
101
+ table: {
102
+ category: string;
103
+ };
104
+ };
105
+ required: {
106
+ control: {
107
+ type: string;
108
+ };
109
+ if: {
110
+ arg: string;
111
+ truthy: boolean;
112
+ };
113
+ table: {
114
+ category: string;
115
+ };
116
+ };
117
+ requiredIndicatorPlacement: {
118
+ options: string[];
119
+ control: {
120
+ type: string;
121
+ };
122
+ if: {
123
+ arg: string;
124
+ truthy: boolean;
125
+ };
126
+ table: {
127
+ category: string;
128
+ };
129
+ };
130
+ hasRequiredIndicator: {
131
+ control: {
132
+ type: string;
133
+ };
134
+ if: {
135
+ arg: string;
136
+ truthy: boolean;
137
+ };
138
+ table: {
139
+ category: string;
140
+ };
141
+ };
142
+ optional: {
143
+ control: {
144
+ type: string;
145
+ };
146
+ if: {
147
+ arg: string;
148
+ truthy: boolean;
149
+ };
150
+ table: {
151
+ category: string;
152
+ };
153
+ };
154
+ optionalText: {
155
+ control: {
156
+ type: string;
157
+ };
158
+ if: {
159
+ arg: string;
160
+ truthy: boolean;
161
+ };
162
+ table: {
163
+ category: string;
164
+ };
165
+ };
166
+ hasHint: {
167
+ control: {
168
+ type: string;
169
+ };
170
+ table: {
171
+ category: string;
172
+ };
173
+ };
174
+ hintText: {
175
+ control: {
176
+ type: string;
177
+ };
178
+ if: {
179
+ arg: string;
180
+ truthy: boolean;
181
+ };
182
+ table: {
183
+ category: string;
184
+ };
185
+ };
186
+ hintView: {
187
+ options: string[];
188
+ control: {
189
+ type: string;
190
+ };
191
+ if: {
192
+ arg: string;
193
+ truthy: boolean;
194
+ };
195
+ table: {
196
+ category: string;
197
+ };
198
+ };
199
+ hintSize: {
200
+ options: string[];
201
+ control: {
202
+ type: string;
203
+ };
204
+ if: {
205
+ arg: string;
206
+ truthy: boolean;
207
+ };
208
+ table: {
209
+ category: string;
210
+ };
211
+ };
212
+ hintTrigger: {
213
+ options: string[];
214
+ control: {
215
+ type: string;
216
+ };
217
+ if: {
218
+ arg: string;
219
+ truthy: boolean;
220
+ };
221
+ table: {
222
+ category: string;
223
+ };
224
+ };
225
+ hintPlacement: {
226
+ options: string[];
227
+ control: {
228
+ type: string;
229
+ };
230
+ if: {
231
+ arg: string;
232
+ truthy: boolean;
233
+ };
234
+ mappers: string[];
235
+ table: {
236
+ category: string;
237
+ };
238
+ };
239
+ hintHasArrow: {
240
+ control: {
241
+ type: string;
242
+ };
243
+ if: {
244
+ arg: string;
245
+ truthy: boolean;
246
+ };
247
+ table: {
248
+ category: string;
249
+ };
250
+ };
251
+ hintWidth: {
252
+ control: {
253
+ type: string;
254
+ };
255
+ if: {
256
+ arg: string;
257
+ truthy: boolean;
258
+ };
259
+ table: {
260
+ category: string;
261
+ };
262
+ };
263
+ };
264
+ };
265
+ export {};
@@ -0,0 +1,118 @@
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 __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));
20
+ };
21
+ import { disableProps, InSpacingDecorator } from '../../index';
22
+ import { labelPlacements, requiredPlacements, hintViews, hintSizes, hintTriggers, placements } from './fixtures';
23
+ var commonDisabledArgs = ['id', 'labelHtmlFor', 'children', 'leftHelper'];
24
+ export var createMeta = function (_a) {
25
+ var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Display/InformationWrapper' : _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
+ return ({
27
+ title: title,
28
+ decorators: [InSpacingDecorator],
29
+ component: component,
30
+ args: __assign({ size: 'l', view: 'default', label: 'Лейбл', labelPlacement: 'top', titleCaption: 'Подпись к полю', leftHelper: 'Подсказка слева', enableLeftHelperIcon: true, rightHelper: 'Подсказка справа', required: false, hasRequiredIndicator: false, requiredIndicatorPlacement: 'right', optional: false, optionalText: 'optional', hasHint: true, hintText: 'Текст подсказки', hintTrigger: 'hover', hintView: 'default', hintSize: 'm', hintPlacement: 'auto', hintWidth: '10rem', hintHasArrow: true, disabled: false }, defaultArgs),
31
+ argTypes: __assign(__assign({ view: {
32
+ options: componentConfig.views,
33
+ control: { type: 'select' },
34
+ table: { category: 'variation' },
35
+ }, size: {
36
+ options: componentConfig.sizes,
37
+ control: { type: 'inline-radio' },
38
+ table: { category: 'variation' },
39
+ }, disabled: {
40
+ control: { type: 'boolean' },
41
+ table: { category: 'variation' },
42
+ }, label: {
43
+ control: { type: 'text' },
44
+ table: { category: 'layout' },
45
+ }, labelPlacement: {
46
+ options: labelPlacements,
47
+ control: { type: 'select' },
48
+ table: { category: 'layout' },
49
+ }, titleCaption: {
50
+ control: { type: 'text' },
51
+ table: { category: 'layout' },
52
+ }, enableLeftHelperIcon: {
53
+ control: { type: 'boolean' },
54
+ table: { category: 'layout' },
55
+ }, rightHelper: {
56
+ control: { type: 'text' },
57
+ table: { category: 'layout' },
58
+ }, required: {
59
+ control: { type: 'boolean' },
60
+ if: { arg: 'optional', truthy: false },
61
+ table: { category: 'form-related' },
62
+ }, requiredIndicatorPlacement: {
63
+ options: requiredPlacements,
64
+ control: { type: 'select' },
65
+ if: { arg: 'optional', truthy: false },
66
+ table: { category: 'form-related' },
67
+ }, hasRequiredIndicator: {
68
+ control: { type: 'boolean' },
69
+ if: { arg: 'optional', truthy: false },
70
+ table: { category: 'form-related' },
71
+ }, optional: {
72
+ control: { type: 'boolean' },
73
+ if: { arg: 'required', truthy: false },
74
+ table: { category: 'form-related' },
75
+ }, optionalText: {
76
+ control: { type: 'text' },
77
+ if: { arg: 'required', truthy: false },
78
+ table: { category: 'form-related' },
79
+ }, hasHint: {
80
+ control: { type: 'boolean' },
81
+ table: { category: 'hint' },
82
+ }, hintText: {
83
+ control: { type: 'text' },
84
+ if: { arg: 'hasHint', truthy: true },
85
+ table: { category: 'hint' },
86
+ }, hintView: {
87
+ options: hintViews,
88
+ control: { type: 'select' },
89
+ if: { arg: 'hasHint', truthy: true },
90
+ table: { category: 'hint' },
91
+ }, hintSize: {
92
+ options: hintSizes,
93
+ control: { type: 'select' },
94
+ if: { arg: 'hasHint', truthy: true },
95
+ table: { category: 'hint' },
96
+ }, hintTrigger: {
97
+ options: hintTriggers,
98
+ control: { type: 'inline-radio' },
99
+ if: { arg: 'hasHint', truthy: true },
100
+ table: { category: 'hint' },
101
+ }, hintPlacement: {
102
+ options: placements,
103
+ control: { type: 'select' },
104
+ if: { arg: 'hasHint', truthy: true },
105
+ mappers: placements,
106
+ table: { category: 'hint' },
107
+ }, hintHasArrow: {
108
+ control: { type: 'boolean' },
109
+ if: { arg: 'hasHint', truthy: true },
110
+ table: { category: 'hint' },
111
+ }, hintWidth: {
112
+ control: { type: 'text' },
113
+ if: { arg: 'hasHint', truthy: true },
114
+ table: { category: 'hint' },
115
+ } }, additionalArgTypes), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
116
+ });
117
+ };
118
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/InformationWrapper/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAWjH,IAAM,kBAAkB,GAAG,CAAC,IA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Icon, leftHelper, size, ...rest }: any) => JSX.Element;
@@ -0,0 +1,42 @@
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 { IconFolder } from '@salutejs/plasma-icons';
25
+ var SvgPlaceholder = function () { return (React.createElement("div", { style: {
26
+ height: '3rem',
27
+ background: 'linear-gradient(to right, #9747FF 0.063rem, transparent 0.063rem) 0 0, linear-gradient(to right, #9747FF 0.063rem, transparent 0.063rem) 0 100%, linear-gradient(to left, #9747FF 0.063rem, transparent 0.063rem) 100% 0, linear-gradient(to left, #9747FF 0.063rem, transparent 0.063rem) 100% 100%, linear-gradient(to bottom, #9747FF 0.063rem, transparent 0.063rem) 0 0, linear-gradient(to bottom, #9747FF 0.063rem, transparent 0.063rem) 100% 0, linear-gradient(to top, #9747FF 0.063rem, transparent 0.063rem) 0 100%, linear-gradient(to top, #9747FF 0.063rem, transparent 0.063rem) 100% 100%',
28
+ backgroundRepeat: 'no-repeat',
29
+ backgroundSize: '3rem 1rem',
30
+ } })); };
31
+ export var createDefaultStory = function (InformationWrapper) {
32
+ return function (_a) {
33
+ var enableLeftHelperIcon = _a.enableLeftHelperIcon, leftHelper = _a.leftHelper, size = _a.size, rest = __rest(_a, ["enableLeftHelperIcon", "leftHelper", "size"]);
34
+ var LeftHelper = function () { return (React.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '0.25rem' } },
35
+ enableLeftHelperIcon && React.createElement(IconFolder, { size: "xs" }),
36
+ React.createElement("span", null, leftHelper))); };
37
+ return (React.createElement("div", { style: { width: '70%', margin: '0 auto' } },
38
+ React.createElement(InformationWrapper, __assign({ leftHelper: React.createElement(LeftHelper, null), size: size }, rest),
39
+ React.createElement(SvgPlaceholder, null))));
40
+ };
41
+ };
42
+ //# sourceMappingURL=stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/InformationWrapper/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,IAAM,cAAc,GAAG,cAAM,OAAA,CACzB,6BACI,KAAK,EAAE;QACH,MAAM,EAAE,MAAM;QACd,UAAU,EACN,4kBAA4kB;QAChlB,gBAAgB,EAAE,WAAW;QAC7B,cAAc,EAAE,WAAW;KAC9B,GACH,CACL,EAV4B,CAU5B,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,kBAAuB;IACtD,OAAO,UAAC,EAAwD;QAAtD,IAAA,oBAAoB,0BAAA,EAAE,UAAU,gBAAA,EAAE,IAAI,UAAA,EAAK,IAAI,cAAjD,8CAAmD,CAAF;QACrD,IAAM,UAAU,GAAG,cAAM,OAAA,CACrB,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;YAChE,oBAAoB,IAAI,oBAAC,UAAU,IAAC,IAAI,EAAC,IAAI,GAAG;YACjD,kCAAO,UAAU,CAAQ,CACvB,CACT,EALwB,CAKxB,CAAC;QAEF,OAAO,CACH,6BAAK,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE;YAC1C,oBAAC,kBAAkB,aAAC,UAAU,EAAE,oBAAC,UAAU,OAAG,EAAE,IAAI,EAAE,IAAI,IAAM,IAAI;gBAChE,oBAAC,cAAc,OAAG,CACD,CACnB,CACT,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -2,5 +2,5 @@ export var segmentations = ['default', 'segmented', 'solid'];
2
2
  export var shapes = ['cornered', 'pilled'];
3
3
  export var inputBackgroundTypes = ['fill', 'clear'];
4
4
  export var displayWithoutValueOptions = ['input', 'increment', 'decrement'];
5
- export var limitBehaviorOptions = ['disabled', 'hidden'];
5
+ export var limitBehaviorOptions = ['disabled'];
6
6
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/NumberInput/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,aAAa,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AAC/D,MAAM,CAAC,IAAM,MAAM,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC7C,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,CAAC,IAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAC9E,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/NumberInput/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,aAAa,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AAC/D,MAAM,CAAC,IAAM,MAAM,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC7C,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,CAAC,IAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAC9E,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,195 @@
1
+ import React from 'react';
2
+ type CreatePopoverStoriesProps = {
3
+ component: any;
4
+ componentConfig: any;
5
+ additionalComponents: {
6
+ Button: React.ComponentType<any>;
7
+ };
8
+ title?: string;
9
+ disablePropsList?: string[];
10
+ defaultArgs?: {};
11
+ additionalArgTypes?: {};
12
+ };
13
+ export declare const getPopoverStories: (config: CreatePopoverStoriesProps) => {
14
+ meta: {
15
+ title: string;
16
+ decorators: import("@storybook/react").Decorator[];
17
+ component: any;
18
+ args: {
19
+ placement: "bottom";
20
+ trigger: "click";
21
+ closeOnOverlayClick: boolean;
22
+ closeOnEsc: boolean;
23
+ isFocusTrapped: boolean;
24
+ skidding: number;
25
+ distance: number;
26
+ hasArrow: boolean;
27
+ animated: boolean;
28
+ };
29
+ argTypes: {
30
+ view: {
31
+ options: any;
32
+ control: {
33
+ type: string;
34
+ };
35
+ table: {
36
+ category: string;
37
+ };
38
+ };
39
+ placement: {
40
+ options: string[];
41
+ control: {
42
+ type: string;
43
+ };
44
+ table: {
45
+ category: string;
46
+ };
47
+ };
48
+ trigger: {
49
+ options: string[];
50
+ control: {
51
+ type: string;
52
+ };
53
+ table: {
54
+ category: string;
55
+ };
56
+ };
57
+ hasArrow: {
58
+ control: {
59
+ type: string;
60
+ };
61
+ table: {
62
+ category: string;
63
+ };
64
+ };
65
+ animated: {
66
+ control: {
67
+ type: string;
68
+ };
69
+ table: {
70
+ category: string;
71
+ };
72
+ };
73
+ closeOnOverlayClick: {
74
+ control: {
75
+ type: string;
76
+ };
77
+ table: {
78
+ category: string;
79
+ };
80
+ };
81
+ closeOnEsc: {
82
+ control: {
83
+ type: string;
84
+ };
85
+ table: {
86
+ category: string;
87
+ };
88
+ };
89
+ isFocusTrapped: {
90
+ control: {
91
+ type: string;
92
+ };
93
+ table: {
94
+ category: string;
95
+ };
96
+ };
97
+ skidding: {
98
+ control: {
99
+ type: string;
100
+ };
101
+ table: {
102
+ category: string;
103
+ };
104
+ };
105
+ distance: {
106
+ control: {
107
+ type: string;
108
+ };
109
+ table: {
110
+ category: string;
111
+ };
112
+ };
113
+ };
114
+ };
115
+ Default: {
116
+ render: (args: any) => JSX.Element;
117
+ };
118
+ Resizable: {
119
+ argTypes: {
120
+ resizableDisabled: {
121
+ control: string;
122
+ table: {
123
+ category: string;
124
+ };
125
+ };
126
+ resizableDirections: {
127
+ control: string;
128
+ options: string[];
129
+ table: {
130
+ category: string;
131
+ };
132
+ };
133
+ resizableHiddenIcons: {
134
+ control: string;
135
+ options: string[];
136
+ table: {
137
+ category: string;
138
+ };
139
+ };
140
+ resizableDefaultSize: {
141
+ control: string;
142
+ table: {
143
+ category: string;
144
+ };
145
+ };
146
+ resizableMinWidth: {
147
+ control: string;
148
+ table: {
149
+ category: string;
150
+ };
151
+ };
152
+ resizableMinHeight: {
153
+ control: string;
154
+ table: {
155
+ category: string;
156
+ };
157
+ };
158
+ resizableMaxWidth: {
159
+ control: string;
160
+ table: {
161
+ category: string;
162
+ };
163
+ };
164
+ resizableMaxHeight: {
165
+ control: string;
166
+ table: {
167
+ category: string;
168
+ };
169
+ };
170
+ resizableIconSize: {
171
+ control: {
172
+ type: string;
173
+ };
174
+ options: string[];
175
+ table: {
176
+ category: string;
177
+ };
178
+ };
179
+ };
180
+ args: {
181
+ resizableDisabled: boolean;
182
+ resizableDirections: string[];
183
+ resizableHiddenIcons: never[];
184
+ resizableIconSize: string;
185
+ resizableDefaultSize: {
186
+ width: number;
187
+ height: number;
188
+ };
189
+ resizableMinWidth: number;
190
+ resizableMinHeight: number;
191
+ };
192
+ render: (args: any) => JSX.Element;
193
+ };
194
+ };
195
+ export {};