@salutejs/plasma-sb-utils 0.241.0 → 0.241.1-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 (58) hide show
  1. package/lib/components/Accordion/Accordion.d.ts +133 -0
  2. package/lib/components/Accordion/Accordion.js +45 -0
  3. package/lib/components/Accordion/Accordion.js.map +1 -0
  4. package/lib/components/Accordion/fixtures.d.ts +4 -0
  5. package/lib/components/Accordion/fixtures.js +13 -0
  6. package/lib/components/Accordion/fixtures.js.map +1 -0
  7. package/lib/components/Accordion/index.d.ts +1 -0
  8. package/lib/components/Accordion/index.js +2 -0
  9. package/lib/components/Accordion/index.js.map +1 -0
  10. package/lib/components/Accordion/meta.d.ts +126 -0
  11. package/lib/components/Accordion/meta.js +73 -0
  12. package/lib/components/Accordion/meta.js.map +1 -0
  13. package/lib/components/Accordion/stories.d.ts +2 -0
  14. package/lib/components/Accordion/stories.js +72 -0
  15. package/lib/components/Accordion/stories.js.map +1 -0
  16. package/lib/components/DatePicker/DatePicker.d.ts +12 -0
  17. package/lib/components/DatePicker/meta.d.ts +12 -0
  18. package/lib/components/DatePicker/meta.js +4 -0
  19. package/lib/components/DatePicker/meta.js.map +1 -1
  20. package/lib/components/Drawer/Drawer.d.ts +246 -0
  21. package/lib/components/Drawer/Drawer.js +36 -0
  22. package/lib/components/Drawer/Drawer.js.map +1 -0
  23. package/lib/components/Drawer/fixtures.d.ts +3 -0
  24. package/lib/components/Drawer/fixtures.js +4 -0
  25. package/lib/components/Drawer/fixtures.js.map +1 -0
  26. package/lib/components/Drawer/index.d.ts +1 -0
  27. package/lib/components/Drawer/index.js +2 -0
  28. package/lib/components/Drawer/index.js.map +1 -0
  29. package/lib/components/Drawer/meta.d.ts +228 -0
  30. package/lib/components/Drawer/meta.js +115 -0
  31. package/lib/components/Drawer/meta.js.map +1 -0
  32. package/lib/components/Drawer/stories.d.ts +17 -0
  33. package/lib/components/Drawer/stories.js +79 -0
  34. package/lib/components/Drawer/stories.js.map +1 -0
  35. package/lib/components/EmbeddedButton/stories.d.ts +1 -1
  36. package/lib/components/EmbeddedButton/stories.js +5 -3
  37. package/lib/components/EmbeddedButton/stories.js.map +1 -1
  38. package/lib/components/Tabs/Tabs.d.ts +23 -0
  39. package/lib/components/Tabs/Tabs.js +3 -0
  40. package/lib/components/Tabs/Tabs.js.map +1 -1
  41. package/lib/components/Tabs/meta.d.ts +9 -0
  42. package/lib/components/Tabs/meta.js +4 -1
  43. package/lib/components/Tabs/meta.js.map +1 -1
  44. package/lib/components/Tabs/stories.js +2 -1
  45. package/lib/components/Tabs/stories.js.map +1 -1
  46. package/lib/components/TimePicker/TimePicker.d.ts +1 -1
  47. package/lib/components/TimePicker/TimePicker.js.map +1 -1
  48. package/lib/components/TimePicker/stories.d.ts +1 -1
  49. package/lib/components/TimePicker/stories.js +1 -1
  50. package/lib/components/TimePicker/stories.js.map +1 -1
  51. package/lib/components/Tour/Tour.d.ts +5 -0
  52. package/lib/components/Tour/meta.d.ts +5 -0
  53. package/lib/components/Tour/meta.js +5 -0
  54. package/lib/components/Tour/meta.js.map +1 -1
  55. package/lib/components/index.d.ts +2 -0
  56. package/lib/components/index.js +2 -0
  57. package/lib/components/index.js.map +1 -1
  58. package/package.json +5 -5
@@ -0,0 +1,246 @@
1
+ import React from 'react';
2
+ type CreateDrawerStoriesProps = {
3
+ component: any;
4
+ componentConfig: any;
5
+ additionalComponents: {
6
+ Button: React.ComponentType<any>;
7
+ DrawerContent: React.ComponentType<any>;
8
+ DrawerFooter: React.ComponentType<any>;
9
+ DrawerHeader: React.ComponentType<any>;
10
+ H2: React.ComponentType<any>;
11
+ H3: React.ComponentType<any>;
12
+ PopupProvider: React.ComponentType<any>;
13
+ SSRProvider: React.ComponentType<any>;
14
+ };
15
+ title?: string;
16
+ disablePropsList?: string[];
17
+ defaultArgs?: {};
18
+ additionalArgTypes?: {};
19
+ frame?: string;
20
+ iconButtonColor?: string;
21
+ };
22
+ export declare const getDrawerStories: (config: CreateDrawerStoriesProps) => {
23
+ meta: {
24
+ title: string;
25
+ decorators: import("@storybook/react").Decorator[];
26
+ component: any;
27
+ args: {
28
+ view: string;
29
+ size: string;
30
+ placement: string;
31
+ withBlur: boolean;
32
+ closeOnEsc: boolean;
33
+ closeOnOverlayClick: boolean;
34
+ offsetX: number;
35
+ offsetY: number;
36
+ showHeader: boolean;
37
+ showFooter: boolean;
38
+ showActions: boolean;
39
+ hasClose: boolean;
40
+ asModal: boolean;
41
+ overlayProps: {
42
+ background: string;
43
+ top: string;
44
+ left: string;
45
+ width: string;
46
+ height: string;
47
+ };
48
+ closePlacement: string;
49
+ width: string;
50
+ height: string;
51
+ borderRadius: string;
52
+ };
53
+ argTypes: {
54
+ view: {
55
+ options: any;
56
+ control: {
57
+ type: string;
58
+ };
59
+ table: {
60
+ category: string;
61
+ };
62
+ };
63
+ size: {
64
+ options: any;
65
+ control: {
66
+ type: string;
67
+ };
68
+ table: {
69
+ category: string;
70
+ };
71
+ };
72
+ borderRadius: {
73
+ options: string[];
74
+ control: {
75
+ type: string;
76
+ };
77
+ table: {
78
+ category: string;
79
+ };
80
+ };
81
+ customBackgroundColor: {
82
+ control: {
83
+ type: string;
84
+ };
85
+ table: {
86
+ category: string;
87
+ };
88
+ };
89
+ customContentBackgroundColor: {
90
+ control: {
91
+ type: string;
92
+ };
93
+ table: {
94
+ category: string;
95
+ };
96
+ };
97
+ placement: {
98
+ options: string[];
99
+ control: {
100
+ type: string;
101
+ };
102
+ table: {
103
+ category: string;
104
+ defaultValue: {
105
+ summary: string;
106
+ };
107
+ };
108
+ };
109
+ width: {
110
+ control: {
111
+ type: string;
112
+ };
113
+ table: {
114
+ category: string;
115
+ };
116
+ };
117
+ height: {
118
+ control: {
119
+ type: string;
120
+ };
121
+ table: {
122
+ category: string;
123
+ };
124
+ };
125
+ offsetX: {
126
+ control: {
127
+ type: string;
128
+ };
129
+ table: {
130
+ category: string;
131
+ defaultValue: {
132
+ summary: number;
133
+ };
134
+ };
135
+ };
136
+ offsetY: {
137
+ control: {
138
+ type: string;
139
+ };
140
+ table: {
141
+ category: string;
142
+ defaultValue: {
143
+ summary: number;
144
+ };
145
+ };
146
+ };
147
+ closeOnEsc: {
148
+ control: {
149
+ type: string;
150
+ };
151
+ table: {
152
+ category: string;
153
+ defaultValue: {
154
+ summary: boolean;
155
+ };
156
+ };
157
+ };
158
+ closeOnOverlayClick: {
159
+ control: {
160
+ type: string;
161
+ };
162
+ table: {
163
+ category: string;
164
+ defaultValue: {
165
+ summary: boolean;
166
+ };
167
+ };
168
+ };
169
+ withBlur: {
170
+ control: {
171
+ type: string;
172
+ };
173
+ table: {
174
+ category: string;
175
+ defaultValue: {
176
+ summary: boolean;
177
+ };
178
+ };
179
+ };
180
+ asModal: {
181
+ control: {
182
+ type: string;
183
+ };
184
+ table: {
185
+ category: string;
186
+ };
187
+ };
188
+ overlayProps: {
189
+ control: {
190
+ type: string;
191
+ };
192
+ table: {
193
+ category: string;
194
+ };
195
+ };
196
+ showHeader: {
197
+ control: {
198
+ type: string;
199
+ };
200
+ table: {
201
+ category: string;
202
+ };
203
+ };
204
+ showFooter: {
205
+ control: {
206
+ type: string;
207
+ };
208
+ table: {
209
+ category: string;
210
+ };
211
+ };
212
+ showActions: {
213
+ control: {
214
+ type: string;
215
+ };
216
+ table: {
217
+ category: string;
218
+ };
219
+ };
220
+ hasClose: {
221
+ control: {
222
+ type: string;
223
+ };
224
+ table: {
225
+ category: string;
226
+ };
227
+ };
228
+ closePlacement: {
229
+ options: string[];
230
+ control: {
231
+ type: string;
232
+ };
233
+ table: {
234
+ category: string;
235
+ defaultValue: {
236
+ summary: string;
237
+ };
238
+ };
239
+ };
240
+ };
241
+ };
242
+ Default: {
243
+ render: (args: any) => JSX.Element;
244
+ };
245
+ };
246
+ export {};
@@ -0,0 +1,36 @@
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 { createDefaultStory } from './stories';
27
+ export var getDrawerStories = function (config) {
28
+ var component = config.component, componentConfig = config.componentConfig, additionalComponents = config.additionalComponents, frame = config.frame, iconButtonColor = config.iconButtonColor, rest = __rest(config, ["component", "componentConfig", "additionalComponents", "frame", "iconButtonColor"]);
29
+ var meta = createMeta(__assign({ component: component, componentConfig: getConfigVariations(componentConfig) }, rest));
30
+ var DefaultStoryComponent = createDefaultStory(component, additionalComponents, { frame: frame, iconButtonColor: iconButtonColor });
31
+ var Default = {
32
+ render: function (args) { return React.createElement(DefaultStoryComponent, __assign({}, args)); },
33
+ };
34
+ return { meta: meta, Default: Default };
35
+ };
36
+ //# sourceMappingURL=Drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.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,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAuB/C,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,MAAgC;IACrD,IAAA,SAAS,GAA6E,MAAM,UAAnF,EAAE,eAAe,GAA4D,MAAM,gBAAlE,EAAE,oBAAoB,GAAsC,MAAM,qBAA5C,EAAE,KAAK,GAA+B,MAAM,MAArC,EAAE,eAAe,GAAc,MAAM,gBAApB,EAAK,IAAI,UAAK,MAAM,EAA9F,oFAAqF,CAAF,CAAY;IAErG,IAAM,IAAI,GAAG,UAAU,YACnB,SAAS,WAAA,EACT,eAAe,EAAE,mBAAmB,CAAC,eAAe,CAAC,IAClD,IAAI,EACT,CAAC;IAEH,IAAM,qBAAqB,GAAG,kBAAkB,CAAC,SAAS,EAAE,oBAAoB,EAAE,EAAE,KAAK,OAAA,EAAE,eAAe,iBAAA,EAAE,CAAC,CAAC;IAE9G,IAAM,OAAO,GAAG;QACZ,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,qBAAqB,eAAK,IAAI,EAAI,EAAnC,CAAmC;KAC7D,CAAC;IAEF,OAAO,EAAE,IAAI,MAAA,EAAE,OAAO,SAAA,EAAE,CAAC;AAC7B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const placements: string[];
2
+ export declare const closePlacements: string[];
3
+ export declare const borderRadiuses: string[];
@@ -0,0 +1,4 @@
1
+ export var placements = ['top', 'bottom', 'right', 'left'];
2
+ export var closePlacements = ['right', 'left'];
3
+ export var borderRadiuses = ['none', 'default'];
4
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/Drawer/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAC7D,MAAM,CAAC,IAAM,eAAe,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AACjD,MAAM,CAAC,IAAM,cAAc,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './Drawer';
@@ -0,0 +1,2 @@
1
+ export * from './Drawer';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Drawer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,228 @@
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
+ view: string;
15
+ size: string;
16
+ placement: string;
17
+ withBlur: boolean;
18
+ closeOnEsc: boolean;
19
+ closeOnOverlayClick: boolean;
20
+ offsetX: number;
21
+ offsetY: number;
22
+ showHeader: boolean;
23
+ showFooter: boolean;
24
+ showActions: boolean;
25
+ hasClose: boolean;
26
+ asModal: boolean;
27
+ overlayProps: {
28
+ background: string;
29
+ top: string;
30
+ left: string;
31
+ width: string;
32
+ height: string;
33
+ };
34
+ closePlacement: string;
35
+ width: string;
36
+ height: string;
37
+ borderRadius: string;
38
+ };
39
+ argTypes: {
40
+ view: {
41
+ options: any;
42
+ control: {
43
+ type: string;
44
+ };
45
+ table: {
46
+ category: string;
47
+ };
48
+ };
49
+ size: {
50
+ options: any;
51
+ control: {
52
+ type: string;
53
+ };
54
+ table: {
55
+ category: string;
56
+ };
57
+ };
58
+ borderRadius: {
59
+ options: string[];
60
+ control: {
61
+ type: string;
62
+ };
63
+ table: {
64
+ category: string;
65
+ };
66
+ };
67
+ customBackgroundColor: {
68
+ control: {
69
+ type: string;
70
+ };
71
+ table: {
72
+ category: string;
73
+ };
74
+ };
75
+ customContentBackgroundColor: {
76
+ control: {
77
+ type: string;
78
+ };
79
+ table: {
80
+ category: string;
81
+ };
82
+ };
83
+ placement: {
84
+ options: string[];
85
+ control: {
86
+ type: string;
87
+ };
88
+ table: {
89
+ category: string;
90
+ defaultValue: {
91
+ summary: string;
92
+ };
93
+ };
94
+ };
95
+ width: {
96
+ control: {
97
+ type: string;
98
+ };
99
+ table: {
100
+ category: string;
101
+ };
102
+ };
103
+ height: {
104
+ control: {
105
+ type: string;
106
+ };
107
+ table: {
108
+ category: string;
109
+ };
110
+ };
111
+ offsetX: {
112
+ control: {
113
+ type: string;
114
+ };
115
+ table: {
116
+ category: string;
117
+ defaultValue: {
118
+ summary: number;
119
+ };
120
+ };
121
+ };
122
+ offsetY: {
123
+ control: {
124
+ type: string;
125
+ };
126
+ table: {
127
+ category: string;
128
+ defaultValue: {
129
+ summary: number;
130
+ };
131
+ };
132
+ };
133
+ closeOnEsc: {
134
+ control: {
135
+ type: string;
136
+ };
137
+ table: {
138
+ category: string;
139
+ defaultValue: {
140
+ summary: boolean;
141
+ };
142
+ };
143
+ };
144
+ closeOnOverlayClick: {
145
+ control: {
146
+ type: string;
147
+ };
148
+ table: {
149
+ category: string;
150
+ defaultValue: {
151
+ summary: boolean;
152
+ };
153
+ };
154
+ };
155
+ withBlur: {
156
+ control: {
157
+ type: string;
158
+ };
159
+ table: {
160
+ category: string;
161
+ defaultValue: {
162
+ summary: boolean;
163
+ };
164
+ };
165
+ };
166
+ asModal: {
167
+ control: {
168
+ type: string;
169
+ };
170
+ table: {
171
+ category: string;
172
+ };
173
+ };
174
+ overlayProps: {
175
+ control: {
176
+ type: string;
177
+ };
178
+ table: {
179
+ category: string;
180
+ };
181
+ };
182
+ showHeader: {
183
+ control: {
184
+ type: string;
185
+ };
186
+ table: {
187
+ category: string;
188
+ };
189
+ };
190
+ showFooter: {
191
+ control: {
192
+ type: string;
193
+ };
194
+ table: {
195
+ category: string;
196
+ };
197
+ };
198
+ showActions: {
199
+ control: {
200
+ type: string;
201
+ };
202
+ table: {
203
+ category: string;
204
+ };
205
+ };
206
+ hasClose: {
207
+ control: {
208
+ type: string;
209
+ };
210
+ table: {
211
+ category: string;
212
+ };
213
+ };
214
+ closePlacement: {
215
+ options: string[];
216
+ control: {
217
+ type: string;
218
+ };
219
+ table: {
220
+ category: string;
221
+ defaultValue: {
222
+ summary: string;
223
+ };
224
+ };
225
+ };
226
+ };
227
+ };
228
+ export {};
@@ -0,0 +1,115 @@
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 { borderRadiuses, closePlacements, placements } from './fixtures';
23
+ var commonDisabledArgs = [
24
+ 'children',
25
+ 'frame',
26
+ 'isOpen',
27
+ 'offset',
28
+ 'onClose',
29
+ 'onEscKeyDown',
30
+ 'onOverlayClick',
31
+ 'opened',
32
+ 'overlay',
33
+ ];
34
+ export var createMeta = function (_a) {
35
+ var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Overlay/Drawer' : _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;
36
+ return ({
37
+ title: title,
38
+ decorators: [InSpacingDecorator],
39
+ component: component,
40
+ args: __assign({ view: 'default', size: 'm', placement: 'right', withBlur: false, closeOnEsc: true, closeOnOverlayClick: true, offsetX: 0, offsetY: 0, showHeader: true, showFooter: true, showActions: true, hasClose: true, asModal: true, overlayProps: {
41
+ background: '',
42
+ top: '0',
43
+ left: '0',
44
+ width: '100%',
45
+ height: '100%',
46
+ }, closePlacement: 'right', width: '50vw', height: '100dvh', borderRadius: 'none' }, defaultArgs),
47
+ argTypes: __assign(__assign({ view: {
48
+ options: componentConfig.views,
49
+ control: { type: 'select' },
50
+ table: { category: 'variation' },
51
+ }, size: {
52
+ options: componentConfig.sizes,
53
+ control: { type: 'select' },
54
+ table: { category: 'variation' },
55
+ }, borderRadius: {
56
+ options: borderRadiuses,
57
+ control: { type: 'select' },
58
+ table: { category: 'variation' },
59
+ }, customBackgroundColor: {
60
+ control: { type: 'color' },
61
+ table: { category: 'variation' },
62
+ }, customContentBackgroundColor: {
63
+ control: { type: 'color' },
64
+ table: { category: 'variation' },
65
+ }, placement: {
66
+ options: placements,
67
+ control: { type: 'select' },
68
+ table: { category: 'layout', defaultValue: { summary: 'right' } },
69
+ }, width: {
70
+ control: { type: 'text' },
71
+ table: { category: 'layout' },
72
+ }, height: {
73
+ control: { type: 'text' },
74
+ table: { category: 'layout' },
75
+ }, offsetX: {
76
+ control: { type: 'number' },
77
+ table: { category: 'layout', defaultValue: { summary: 0 } },
78
+ }, offsetY: {
79
+ control: { type: 'number' },
80
+ table: { category: 'layout', defaultValue: { summary: 0 } },
81
+ }, closeOnEsc: {
82
+ control: { type: 'boolean' },
83
+ table: { category: 'overlay', defaultValue: { summary: true } },
84
+ }, closeOnOverlayClick: {
85
+ control: { type: 'boolean' },
86
+ table: { category: 'overlay', defaultValue: { summary: true } },
87
+ }, withBlur: {
88
+ control: { type: 'boolean' },
89
+ table: { category: 'overlay', defaultValue: { summary: false } },
90
+ }, asModal: {
91
+ control: { type: 'boolean' },
92
+ table: { category: 'overlay' },
93
+ }, overlayProps: {
94
+ control: { type: 'object' },
95
+ table: { category: 'overlay' },
96
+ }, showHeader: {
97
+ control: { type: 'boolean' },
98
+ table: { category: 'story' },
99
+ }, showFooter: {
100
+ control: { type: 'boolean' },
101
+ table: { category: 'story' },
102
+ }, showActions: {
103
+ control: { type: 'boolean' },
104
+ table: { category: 'story' },
105
+ }, hasClose: {
106
+ control: { type: 'boolean' },
107
+ table: { category: 'story' },
108
+ }, closePlacement: {
109
+ options: closePlacements,
110
+ control: { type: 'select' },
111
+ table: { category: 'story', defaultValue: { summary: 'right' } },
112
+ } }, additionalArgTypes), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
113
+ });
114
+ };
115
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Drawer/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAWzE,IAAM,kBAAkB,GAAG;IACvB,UAAU;IACV,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,cAAc;IACd,gBAAgB;IAChB,QAAQ;IACR,SAAS;CACZ,CAAC;AAEF,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAOT;QANd,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,aAAwB,EAAxB,KAAK,mBAAG,gBAAgB,KAAA,EACxB,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,0BAAuB,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA;IACF,OAAA,CAAC;QACpB,KAAK,OAAA;QACL,UAAU,EAAE,CAAC,kBAAkB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AC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ type Components = {
3
+ Button: React.ComponentType<any>;
4
+ DrawerContent: React.ComponentType<any>;
5
+ DrawerFooter: React.ComponentType<any>;
6
+ DrawerHeader: React.ComponentType<any>;
7
+ H2: React.ComponentType<any>;
8
+ H3: React.ComponentType<any>;
9
+ PopupProvider: React.ComponentType<any>;
10
+ SSRProvider: React.ComponentType<any>;
11
+ };
12
+ type StoryConfig = {
13
+ frame?: string;
14
+ iconButtonColor?: string;
15
+ };
16
+ export declare const createDefaultStory: (Drawer: React.ComponentType<any>, { Button, DrawerContent, DrawerFooter, DrawerHeader, H2, H3, PopupProvider, SSRProvider }: Components, { frame, iconButtonColor }?: StoryConfig) => ({ showHeader, showFooter, showActions, hasClose, closePlacement, offsetX, offsetY, ...rest }: any) => JSX.Element;
17
+ export {};