@salutejs/plasma-sb-utils 0.226.0-next-platform-ai.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.
- package/lib/components/Combobox/Combobox.d.ts +408 -0
- package/lib/components/Combobox/Combobox.js +94 -0
- package/lib/components/Combobox/Combobox.js.map +1 -0
- package/lib/components/Combobox/fixtures.d.ts +42 -0
- package/lib/components/Combobox/fixtures.js +364 -0
- package/lib/components/Combobox/fixtures.js.map +1 -0
- package/lib/components/Combobox/index.d.ts +1 -0
- package/lib/components/Combobox/index.js +2 -0
- package/lib/components/Combobox/index.js.map +1 -0
- package/lib/components/Combobox/meta.d.ts +357 -0
- package/lib/components/Combobox/meta.js +149 -0
- package/lib/components/Combobox/meta.js.map +1 -0
- package/lib/components/Combobox/stories.d.ts +4 -0
- package/lib/components/Combobox/stories.js +109 -0
- package/lib/components/Combobox/stories.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +1 -0
- package/lib/components/DatePicker/DatePicker.js +4 -4
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/DatePicker/stories.d.ts +4 -2
- package/lib/components/DatePicker/stories.js +18 -5
- package/lib/components/DatePicker/stories.js.map +1 -1
- package/lib/components/DateTimePicker/DateTimePicker.d.ts +24 -0
- package/lib/components/DateTimePicker/DateTimePicker.js +2 -2
- package/lib/components/DateTimePicker/DateTimePicker.js.map +1 -1
- 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 +23 -0
- package/lib/components/DateTimePicker/meta.js +13 -3
- package/lib/components/DateTimePicker/meta.js.map +1 -1
- package/lib/components/DateTimePicker/stories.d.ts +1 -1
- package/lib/components/DateTimePicker/stories.js +8 -3
- package/lib/components/DateTimePicker/stories.js.map +1 -1
- package/lib/components/Dropzone/Dropzone.d.ts +122 -0
- package/lib/components/Dropzone/Dropzone.js +40 -0
- package/lib/components/Dropzone/Dropzone.js.map +1 -0
- package/lib/components/Dropzone/fixtures.d.ts +1 -0
- package/lib/components/Dropzone/fixtures.js +2 -0
- package/lib/components/Dropzone/fixtures.js.map +1 -0
- package/lib/components/Dropzone/index.d.ts +1 -0
- package/lib/components/Dropzone/index.js +2 -0
- package/lib/components/Dropzone/index.js.map +1 -0
- package/lib/components/Dropzone/meta.d.ts +117 -0
- package/lib/components/Dropzone/meta.js +81 -0
- package/lib/components/Dropzone/meta.js.map +1 -0
- package/lib/components/Dropzone/stories.d.ts +1 -0
- package/lib/components/Dropzone/stories.js +36 -0
- package/lib/components/Dropzone/stories.js.map +1 -0
- package/lib/components/InformationWrapper/InformationWrapper.d.ts +270 -0
- package/lib/components/InformationWrapper/InformationWrapper.js +40 -0
- package/lib/components/InformationWrapper/InformationWrapper.js.map +1 -0
- package/lib/components/InformationWrapper/fixtures.d.ts +6 -0
- package/lib/components/InformationWrapper/fixtures.js +21 -0
- package/lib/components/InformationWrapper/fixtures.js.map +1 -0
- package/lib/components/InformationWrapper/index.d.ts +1 -0
- package/lib/components/InformationWrapper/index.js +2 -0
- package/lib/components/InformationWrapper/index.js.map +1 -0
- package/lib/components/InformationWrapper/meta.d.ts +265 -0
- package/lib/components/InformationWrapper/meta.js +118 -0
- package/lib/components/InformationWrapper/meta.js.map +1 -0
- package/lib/components/InformationWrapper/stories.d.ts +1 -0
- package/lib/components/InformationWrapper/stories.js +42 -0
- package/lib/components/InformationWrapper/stories.js.map +1 -0
- package/lib/components/NumberInput/fixtures.js +1 -1
- package/lib/components/NumberInput/fixtures.js.map +1 -1
- package/lib/components/Popover/Popover.d.ts +195 -0
- package/lib/components/Popover/Popover.js +50 -0
- package/lib/components/Popover/Popover.js.map +1 -0
- package/lib/components/Popover/fixtures.d.ts +5 -0
- package/lib/components/Popover/fixtures.js +29 -0
- package/lib/components/Popover/fixtures.js.map +1 -0
- package/lib/components/Popover/index.d.ts +1 -0
- package/lib/components/Popover/index.js +2 -0
- package/lib/components/Popover/index.js.map +1 -0
- package/lib/components/Popover/meta.d.ts +110 -0
- package/lib/components/Popover/meta.js +78 -0
- package/lib/components/Popover/meta.js.map +1 -0
- package/lib/components/Popover/stories.d.ts +80 -0
- package/lib/components/Popover/stories.js +125 -0
- package/lib/components/Popover/stories.js.map +1 -0
- package/lib/components/Progress/Progress.d.ts +159 -0
- package/lib/components/Progress/Progress.js +38 -0
- package/lib/components/Progress/Progress.js.map +1 -0
- package/lib/components/Progress/fixtures.d.ts +5 -0
- package/lib/components/Progress/fixtures.js +6 -0
- package/lib/components/Progress/fixtures.js.map +1 -0
- package/lib/components/Progress/index.d.ts +1 -0
- package/lib/components/Progress/index.js +2 -0
- package/lib/components/Progress/index.js.map +1 -0
- package/lib/components/Progress/meta.d.ts +154 -0
- package/lib/components/Progress/meta.js +87 -0
- package/lib/components/Progress/meta.js.map +1 -0
- package/lib/components/Progress/stories.d.ts +2 -0
- package/lib/components/Progress/stories.js +59 -0
- package/lib/components/Progress/stories.js.map +1 -0
- package/lib/components/Range/Range.d.ts +1 -0
- package/lib/components/Range/Range.js +2 -2
- package/lib/components/Range/Range.js.map +1 -1
- package/lib/components/Range/stories.d.ts +1 -1
- package/lib/components/Range/stories.js +11 -2
- package/lib/components/Range/stories.js.map +1 -1
- package/lib/components/Select/Select.d.ts +1 -0
- package/lib/components/Select/Select.js +4 -4
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/stories.d.ts +5 -3
- package/lib/components/Select/stories.js +10 -7
- package/lib/components/Select/stories.js.map +1 -1
- package/lib/components/Skeleton/Skeleton.d.ts +28 -1
- package/lib/components/Skeleton/stories.d.ts +28 -1
- package/lib/components/Skeleton/stories.js +34 -1
- package/lib/components/Skeleton/stories.js.map +1 -1
- package/lib/components/TextArea/TextArea.d.ts +154 -19
- package/lib/components/TextArea/meta.d.ts +154 -19
- package/lib/components/TextArea/meta.js +92 -141
- package/lib/components/TextArea/meta.js.map +1 -1
- package/lib/components/TextArea/stories.js +8 -9
- package/lib/components/TextArea/stories.js.map +1 -1
- package/lib/components/TextFieldSlider/TextFieldSlider.d.ts +9 -0
- package/lib/components/TextFieldSlider/meta.d.ts +9 -0
- package/lib/components/TextFieldSlider/meta.js +4 -1
- package/lib/components/TextFieldSlider/meta.js.map +1 -1
- package/lib/components/TextFieldSlider/stories.d.ts +1 -1
- package/lib/components/TextFieldSlider/stories.js +13 -4
- package/lib/components/TextFieldSlider/stories.js.map +1 -1
- package/lib/components/TimePicker/TimePicker.d.ts +24 -0
- package/lib/components/TimePicker/TimePicker.js +2 -2
- package/lib/components/TimePicker/TimePicker.js.map +1 -1
- package/lib/components/TimePicker/fixtures.d.ts +1 -0
- package/lib/components/TimePicker/fixtures.js +1 -0
- package/lib/components/TimePicker/fixtures.js.map +1 -1
- package/lib/components/TimePicker/meta.d.ts +23 -0
- package/lib/components/TimePicker/meta.js +13 -3
- package/lib/components/TimePicker/meta.js.map +1 -1
- package/lib/components/TimePicker/stories.d.ts +1 -1
- package/lib/components/TimePicker/stories.js +11 -3
- package/lib/components/TimePicker/stories.js.map +1 -1
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
iconPlacement: string;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
stretch: boolean;
|
|
19
|
+
multiple: boolean;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
argTypes: {
|
|
24
|
+
view: {
|
|
25
|
+
options: any;
|
|
26
|
+
control: {
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
table: {
|
|
30
|
+
category: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
options: any;
|
|
35
|
+
control: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
category: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
disabled: {
|
|
43
|
+
control: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
table: {
|
|
47
|
+
category: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
iconPlacement: {
|
|
51
|
+
options: string[];
|
|
52
|
+
control: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
table: {
|
|
56
|
+
category: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
stretch: {
|
|
60
|
+
control: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
table: {
|
|
64
|
+
category: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
width: {
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
table: {
|
|
72
|
+
category: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
height: {
|
|
76
|
+
control: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
table: {
|
|
80
|
+
category: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
title: {
|
|
84
|
+
control: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
table: {
|
|
88
|
+
category: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
description: {
|
|
92
|
+
control: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
table: {
|
|
96
|
+
category: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
multiple: {
|
|
100
|
+
control: {
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
table: {
|
|
104
|
+
category: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
accept: {
|
|
108
|
+
control: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
table: {
|
|
112
|
+
category: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { iconPlacements } from './fixtures';
|
|
23
|
+
var commonDisabledArgs = [
|
|
24
|
+
'icon',
|
|
25
|
+
'files',
|
|
26
|
+
'onDragEnter',
|
|
27
|
+
'onDragLeave',
|
|
28
|
+
'onDragOver',
|
|
29
|
+
'onDrop',
|
|
30
|
+
'onChange',
|
|
31
|
+
'onClick',
|
|
32
|
+
'onChoseFiles',
|
|
33
|
+
'validator',
|
|
34
|
+
];
|
|
35
|
+
export var createMeta = function (_a) {
|
|
36
|
+
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Entry/Dropzone' : _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;
|
|
37
|
+
return {
|
|
38
|
+
title: title,
|
|
39
|
+
decorators: [InSpacingDecorator],
|
|
40
|
+
component: component,
|
|
41
|
+
args: __assign({ iconPlacement: 'top', width: 400, height: 280, disabled: false, stretch: false, multiple: false, title: 'Click to upload', description: 'or drag and drop files here' }, defaultArgs),
|
|
42
|
+
argTypes: __assign(__assign({ view: {
|
|
43
|
+
options: componentConfig.views,
|
|
44
|
+
control: { type: 'select' },
|
|
45
|
+
table: { category: 'variation' },
|
|
46
|
+
}, size: {
|
|
47
|
+
options: componentConfig.sizes,
|
|
48
|
+
control: { type: 'select' },
|
|
49
|
+
table: { category: 'variation' },
|
|
50
|
+
}, disabled: {
|
|
51
|
+
control: { type: 'boolean' },
|
|
52
|
+
table: { category: 'variation' },
|
|
53
|
+
}, iconPlacement: {
|
|
54
|
+
options: iconPlacements,
|
|
55
|
+
control: { type: 'inline-radio' },
|
|
56
|
+
table: { category: 'layout' },
|
|
57
|
+
}, stretch: {
|
|
58
|
+
control: { type: 'boolean' },
|
|
59
|
+
table: { category: 'layout' },
|
|
60
|
+
}, width: {
|
|
61
|
+
control: { type: 'number' },
|
|
62
|
+
table: { category: 'layout' },
|
|
63
|
+
}, height: {
|
|
64
|
+
control: { type: 'number' },
|
|
65
|
+
table: { category: 'layout' },
|
|
66
|
+
}, title: {
|
|
67
|
+
control: { type: 'text' },
|
|
68
|
+
table: { category: 'layout' },
|
|
69
|
+
}, description: {
|
|
70
|
+
control: { type: 'text' },
|
|
71
|
+
table: { category: 'layout' },
|
|
72
|
+
}, multiple: {
|
|
73
|
+
control: { type: 'boolean' },
|
|
74
|
+
table: { category: 'file-related' },
|
|
75
|
+
}, accept: {
|
|
76
|
+
control: { type: 'text' },
|
|
77
|
+
table: { category: 'file-related' },
|
|
78
|
+
} }, additionalArgTypes), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Dropzone/meta.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createDefaultStory: (Dropzone: any) => ({ ...rest }: any) => JSX.Element;
|
|
@@ -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 { action } from 'storybook/actions';
|
|
25
|
+
var onDragEnter = action('onDragEnter');
|
|
26
|
+
var onDragLeave = action('onDragLeave');
|
|
27
|
+
var onDrop = action('onDrop');
|
|
28
|
+
var onChange = action('onChange');
|
|
29
|
+
var onChoseFiles = action('onChoseFiles');
|
|
30
|
+
export var createDefaultStory = function (Dropzone) {
|
|
31
|
+
return function (_a) {
|
|
32
|
+
var rest = __rest(_a, []);
|
|
33
|
+
return (React.createElement(Dropzone, __assign({}, rest, { onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop, onChange: onChange, onChoseFiles: onChoseFiles })));
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Dropzone/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,IAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAC1C,IAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAC1C,IAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACpC,IAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE5C,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,QAAa;IAC5C,OAAO,UAAC,EAAgB;YAAX,IAAI,cAAT,EAAW,CAAF;QAAY,OAAA,CACzB,oBAAC,QAAQ,eACD,IAAI,IACR,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,IAC5B,CACL,CAAA;KAAA,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
type CreateInformationWrapperStoriesProps = {
|
|
2
|
+
component: any;
|
|
3
|
+
componentConfig: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
disablePropsList?: string[];
|
|
6
|
+
defaultArgs?: {};
|
|
7
|
+
additionalArgTypes?: {};
|
|
8
|
+
};
|
|
9
|
+
export declare const getInformationWrapperStories: (config: CreateInformationWrapperStoriesProps) => {
|
|
10
|
+
meta: {
|
|
11
|
+
title: string;
|
|
12
|
+
decorators: import("@storybook/react").Decorator[];
|
|
13
|
+
component: any;
|
|
14
|
+
args: {
|
|
15
|
+
size: string;
|
|
16
|
+
view: string;
|
|
17
|
+
label: string;
|
|
18
|
+
labelPlacement: string;
|
|
19
|
+
titleCaption: string;
|
|
20
|
+
leftHelper: string;
|
|
21
|
+
enableLeftHelperIcon: boolean;
|
|
22
|
+
rightHelper: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
hasRequiredIndicator: boolean;
|
|
25
|
+
requiredIndicatorPlacement: string;
|
|
26
|
+
optional: boolean;
|
|
27
|
+
optionalText: string;
|
|
28
|
+
hasHint: boolean;
|
|
29
|
+
hintText: string;
|
|
30
|
+
hintTrigger: string;
|
|
31
|
+
hintView: string;
|
|
32
|
+
hintSize: string;
|
|
33
|
+
hintPlacement: string;
|
|
34
|
+
hintWidth: string;
|
|
35
|
+
hintHasArrow: boolean;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
};
|
|
38
|
+
argTypes: {
|
|
39
|
+
view: {
|
|
40
|
+
options: any;
|
|
41
|
+
control: {
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
table: {
|
|
45
|
+
category: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
size: {
|
|
49
|
+
options: any;
|
|
50
|
+
control: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
table: {
|
|
54
|
+
category: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
control: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
table: {
|
|
62
|
+
category: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
label: {
|
|
66
|
+
control: {
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
table: {
|
|
70
|
+
category: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
labelPlacement: {
|
|
74
|
+
options: string[];
|
|
75
|
+
control: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
table: {
|
|
79
|
+
category: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
titleCaption: {
|
|
83
|
+
control: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
table: {
|
|
87
|
+
category: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
enableLeftHelperIcon: {
|
|
91
|
+
control: {
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
table: {
|
|
95
|
+
category: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
rightHelper: {
|
|
99
|
+
control: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
table: {
|
|
103
|
+
category: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
required: {
|
|
107
|
+
control: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
if: {
|
|
111
|
+
arg: string;
|
|
112
|
+
truthy: boolean;
|
|
113
|
+
};
|
|
114
|
+
table: {
|
|
115
|
+
category: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
requiredIndicatorPlacement: {
|
|
119
|
+
options: string[];
|
|
120
|
+
control: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
if: {
|
|
124
|
+
arg: string;
|
|
125
|
+
truthy: boolean;
|
|
126
|
+
};
|
|
127
|
+
table: {
|
|
128
|
+
category: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
hasRequiredIndicator: {
|
|
132
|
+
control: {
|
|
133
|
+
type: string;
|
|
134
|
+
};
|
|
135
|
+
if: {
|
|
136
|
+
arg: string;
|
|
137
|
+
truthy: boolean;
|
|
138
|
+
};
|
|
139
|
+
table: {
|
|
140
|
+
category: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
optional: {
|
|
144
|
+
control: {
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
if: {
|
|
148
|
+
arg: string;
|
|
149
|
+
truthy: boolean;
|
|
150
|
+
};
|
|
151
|
+
table: {
|
|
152
|
+
category: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
optionalText: {
|
|
156
|
+
control: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
if: {
|
|
160
|
+
arg: string;
|
|
161
|
+
truthy: boolean;
|
|
162
|
+
};
|
|
163
|
+
table: {
|
|
164
|
+
category: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
hasHint: {
|
|
168
|
+
control: {
|
|
169
|
+
type: string;
|
|
170
|
+
};
|
|
171
|
+
table: {
|
|
172
|
+
category: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
hintText: {
|
|
176
|
+
control: {
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
179
|
+
if: {
|
|
180
|
+
arg: string;
|
|
181
|
+
truthy: boolean;
|
|
182
|
+
};
|
|
183
|
+
table: {
|
|
184
|
+
category: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
hintView: {
|
|
188
|
+
options: string[];
|
|
189
|
+
control: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
if: {
|
|
193
|
+
arg: string;
|
|
194
|
+
truthy: boolean;
|
|
195
|
+
};
|
|
196
|
+
table: {
|
|
197
|
+
category: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
hintSize: {
|
|
201
|
+
options: string[];
|
|
202
|
+
control: {
|
|
203
|
+
type: string;
|
|
204
|
+
};
|
|
205
|
+
if: {
|
|
206
|
+
arg: string;
|
|
207
|
+
truthy: boolean;
|
|
208
|
+
};
|
|
209
|
+
table: {
|
|
210
|
+
category: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
hintTrigger: {
|
|
214
|
+
options: string[];
|
|
215
|
+
control: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
if: {
|
|
219
|
+
arg: string;
|
|
220
|
+
truthy: boolean;
|
|
221
|
+
};
|
|
222
|
+
table: {
|
|
223
|
+
category: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
hintPlacement: {
|
|
227
|
+
options: string[];
|
|
228
|
+
control: {
|
|
229
|
+
type: string;
|
|
230
|
+
};
|
|
231
|
+
if: {
|
|
232
|
+
arg: string;
|
|
233
|
+
truthy: boolean;
|
|
234
|
+
};
|
|
235
|
+
mappers: string[];
|
|
236
|
+
table: {
|
|
237
|
+
category: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
hintHasArrow: {
|
|
241
|
+
control: {
|
|
242
|
+
type: string;
|
|
243
|
+
};
|
|
244
|
+
if: {
|
|
245
|
+
arg: string;
|
|
246
|
+
truthy: boolean;
|
|
247
|
+
};
|
|
248
|
+
table: {
|
|
249
|
+
category: string;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
hintWidth: {
|
|
253
|
+
control: {
|
|
254
|
+
type: string;
|
|
255
|
+
};
|
|
256
|
+
if: {
|
|
257
|
+
arg: string;
|
|
258
|
+
truthy: boolean;
|
|
259
|
+
};
|
|
260
|
+
table: {
|
|
261
|
+
category: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
Default: {
|
|
267
|
+
render: (args: any) => JSX.Element;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
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 getInformationWrapperStories = function (config) {
|
|
28
|
+
var component = config.component, componentConfig = config.componentConfig, rest = __rest(config, ["component", "componentConfig"]);
|
|
29
|
+
var informationWrapperConfig = getConfigVariations(componentConfig);
|
|
30
|
+
var meta = createMeta(__assign({ component: component, componentConfig: informationWrapperConfig }, rest));
|
|
31
|
+
var DefaultStoryComponent = createDefaultStory(component);
|
|
32
|
+
var Default = {
|
|
33
|
+
render: function (args) { return React.createElement(DefaultStoryComponent, __assign({}, args)); },
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
meta: meta,
|
|
37
|
+
Default: Default,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=InformationWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InformationWrapper.js","sourceRoot":"","sources":["../../../src/components/InformationWrapper/InformationWrapper.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;AAW/C,MAAM,CAAC,IAAM,4BAA4B,GAAG,UAAC,MAA4C;IAC7E,IAAA,SAAS,GAA+B,MAAM,UAArC,EAAE,eAAe,GAAc,MAAM,gBAApB,EAAK,IAAI,UAAK,MAAM,EAAhD,gCAAuC,CAAF,CAAY;IAEvD,IAAM,wBAAwB,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAEtE,IAAM,IAAI,GAAG,UAAU,YACnB,SAAS,WAAA,EACT,eAAe,EAAE,wBAAwB,IACtC,IAAI,EACT,CAAC;IAEH,IAAM,qBAAqB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAE5D,IAAM,OAAO,GAAG;QACZ,MAAM,EAAE,UAAC,IAAS,IAAK,OAAA,oBAAC,qBAAqB,eAAK,IAAI,EAAI,EAAnC,CAAmC;KAC7D,CAAC;IAEF,OAAO;QACH,IAAI,MAAA;QACJ,OAAO,SAAA;KACV,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const labelPlacements: string[];
|
|
2
|
+
export declare const requiredPlacements: string[];
|
|
3
|
+
export declare const hintViews: string[];
|
|
4
|
+
export declare const hintSizes: string[];
|
|
5
|
+
export declare const hintTriggers: string[];
|
|
6
|
+
export declare const placements: string[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var labelPlacements = ['top', 'left'];
|
|
2
|
+
export var requiredPlacements = ['left', 'right'];
|
|
3
|
+
export var hintViews = ['default'];
|
|
4
|
+
export var hintSizes = ['m', 's'];
|
|
5
|
+
export var hintTriggers = ['hover', 'click'];
|
|
6
|
+
export var placements = [
|
|
7
|
+
'top',
|
|
8
|
+
'top-start',
|
|
9
|
+
'top-end',
|
|
10
|
+
'bottom',
|
|
11
|
+
'bottom-start',
|
|
12
|
+
'bottom-end',
|
|
13
|
+
'left',
|
|
14
|
+
'left-start',
|
|
15
|
+
'left-end',
|
|
16
|
+
'right',
|
|
17
|
+
'right-start',
|
|
18
|
+
'right-end',
|
|
19
|
+
'auto',
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/InformationWrapper/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAC/C,MAAM,CAAC,IAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACpD,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,UAAU,GAAG;IACtB,KAAK;IACL,WAAW;IACX,SAAS;IACT,QAAQ;IACR,cAAc;IACd,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,UAAU;IACV,OAAO;IACP,aAAa;IACb,WAAW;IACX,MAAM;CACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InformationWrapper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/InformationWrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|