@salutejs/plasma-sb-utils 0.234.0-next-sbcom.0 → 0.234.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/BottomSheet/BottomSheet.d.ts +120 -0
- package/lib/components/BottomSheet/BottomSheet.js +40 -0
- package/lib/components/BottomSheet/BottomSheet.js.map +1 -0
- package/lib/components/BottomSheet/fixtures.d.ts +5 -0
- package/lib/components/BottomSheet/fixtures.js +11 -0
- package/lib/components/BottomSheet/fixtures.js.map +1 -0
- package/lib/components/BottomSheet/index.d.ts +1 -0
- package/lib/components/BottomSheet/index.js +2 -0
- package/lib/components/BottomSheet/index.js.map +1 -0
- package/lib/components/BottomSheet/meta.d.ts +109 -0
- package/lib/components/BottomSheet/meta.js +75 -0
- package/lib/components/BottomSheet/meta.js.map +1 -0
- package/lib/components/BottomSheet/stories.d.ts +8 -0
- package/lib/components/BottomSheet/stories.js +58 -0
- package/lib/components/BottomSheet/stories.js.map +1 -0
- package/lib/components/Dropdown/stories.js +1 -1
- package/lib/components/Dropdown/stories.js.map +1 -1
- package/lib/components/Rating/Rating.d.ts +164 -0
- package/lib/components/Rating/Rating.js +46 -0
- package/lib/components/Rating/Rating.js.map +1 -0
- package/lib/components/Rating/fixtures.d.ts +4 -0
- package/lib/components/Rating/fixtures.js +5 -0
- package/lib/components/Rating/fixtures.js.map +1 -0
- package/lib/components/Rating/index.d.ts +1 -0
- package/lib/components/Rating/index.js +2 -0
- package/lib/components/Rating/index.js.map +1 -0
- package/lib/components/Rating/meta.d.ts +147 -0
- package/lib/components/Rating/meta.js +79 -0
- package/lib/components/Rating/meta.js.map +1 -0
- package/lib/components/Rating/stories.d.ts +8 -0
- package/lib/components/Rating/stories.js +44 -0
- package/lib/components/Rating/stories.js.map +1 -0
- package/lib/components/TextArea/TextArea.d.ts +4 -8
- package/lib/components/TextArea/TextArea.js +4 -0
- package/lib/components/TextArea/TextArea.js.map +1 -1
- package/lib/components/TextArea/meta.d.ts +0 -8
- package/lib/components/TextArea/meta.js +0 -2
- package/lib/components/TextArea/meta.js.map +1 -1
- package/lib/components/TextArea/stories.d.ts +1 -1
- package/lib/components/TextArea/stories.js +3 -3
- package/lib/components/TextArea/stories.js.map +1 -1
- package/lib/components/_ai/Answer/Answer.d.ts +131 -0
- package/lib/components/_ai/Answer/Answer.js +22 -0
- package/lib/components/_ai/Answer/Answer.js.map +1 -0
- package/lib/components/_ai/Answer/index.d.ts +1 -0
- package/lib/components/_ai/Answer/index.js +2 -0
- package/lib/components/_ai/Answer/index.js.map +1 -0
- package/lib/components/_ai/Answer/meta.d.ts +126 -0
- package/lib/components/_ai/Answer/meta.js +88 -0
- package/lib/components/_ai/Answer/meta.js.map +1 -0
- package/lib/components/_ai/Answer/stories.d.ts +1 -0
- package/lib/components/_ai/Answer/stories.js +129 -0
- package/lib/components/_ai/Answer/stories.js.map +1 -0
- package/lib/components/_ai/Container/Container.d.ts +208 -0
- package/lib/components/_ai/Container/Container.js +22 -0
- package/lib/components/_ai/Container/Container.js.map +1 -0
- package/lib/components/_ai/Container/index.d.ts +1 -0
- package/lib/components/_ai/Container/index.js +2 -0
- package/lib/components/_ai/Container/index.js.map +1 -0
- package/lib/components/_ai/Container/meta.d.ts +203 -0
- package/lib/components/_ai/Container/meta.js +144 -0
- package/lib/components/_ai/Container/meta.js.map +1 -0
- package/lib/components/_ai/Container/stories.d.ts +1 -0
- package/lib/components/_ai/Container/stories.js +243 -0
- package/lib/components/_ai/Container/stories.js.map +1 -0
- package/lib/components/_ai/Header/Header.d.ts +94 -0
- package/lib/components/_ai/Header/Header.js +22 -0
- package/lib/components/_ai/Header/Header.js.map +1 -0
- package/lib/components/_ai/Header/index.d.ts +1 -0
- package/lib/components/_ai/Header/index.js +2 -0
- package/lib/components/_ai/Header/index.js.map +1 -0
- package/lib/components/_ai/Header/meta.d.ts +89 -0
- package/lib/components/_ai/Header/meta.js +76 -0
- package/lib/components/_ai/Header/meta.js.map +1 -0
- package/lib/components/_ai/Header/stories.d.ts +1 -0
- package/lib/components/_ai/Header/stories.js +36 -0
- package/lib/components/_ai/Header/stories.js.map +1 -0
- package/lib/components/_ai/Input/Input.d.ts +109 -0
- package/lib/components/_ai/Input/Input.js +21 -0
- package/lib/components/_ai/Input/Input.js.map +1 -0
- package/lib/components/_ai/Input/index.d.ts +1 -0
- package/lib/components/_ai/Input/index.js +2 -0
- package/lib/components/_ai/Input/index.js.map +1 -0
- package/lib/components/_ai/Input/meta.d.ts +104 -0
- package/lib/components/_ai/Input/meta.js +95 -0
- package/lib/components/_ai/Input/meta.js.map +1 -0
- package/lib/components/_ai/Input/stories.d.ts +1 -0
- package/lib/components/_ai/Input/stories.js +103 -0
- package/lib/components/_ai/Input/stories.js.map +1 -0
- package/lib/components/_ai/Markdown/Markdown.d.ts +69 -0
- package/lib/components/_ai/Markdown/Markdown.js +19 -0
- package/lib/components/_ai/Markdown/Markdown.js.map +1 -0
- package/lib/components/_ai/Markdown/index.d.ts +1 -0
- package/lib/components/_ai/Markdown/index.js +2 -0
- package/lib/components/_ai/Markdown/index.js.map +1 -0
- package/lib/components/_ai/Markdown/meta.d.ts +36 -0
- package/lib/components/_ai/Markdown/meta.js +41 -0
- package/lib/components/_ai/Markdown/meta.js.map +1 -0
- package/lib/components/_ai/Markdown/stories.d.ts +34 -0
- package/lib/components/_ai/Markdown/stories.js +94 -0
- package/lib/components/_ai/Markdown/stories.js.map +1 -0
- package/lib/components/_ai/UserMessage/UserMessage.d.ts +81 -0
- package/lib/components/_ai/UserMessage/UserMessage.js +22 -0
- package/lib/components/_ai/UserMessage/UserMessage.js.map +1 -0
- package/lib/components/_ai/UserMessage/index.d.ts +1 -0
- package/lib/components/_ai/UserMessage/index.js +2 -0
- package/lib/components/_ai/UserMessage/index.js.map +1 -0
- package/lib/components/_ai/UserMessage/meta.d.ts +76 -0
- package/lib/components/_ai/UserMessage/meta.js +77 -0
- package/lib/components/_ai/UserMessage/meta.js.map +1 -0
- package/lib/components/_ai/UserMessage/stories.d.ts +1 -0
- package/lib/components/_ai/UserMessage/stories.js +115 -0
- package/lib/components/_ai/UserMessage/stories.js.map +1 -0
- package/lib/components/_ai/index.d.ts +6 -0
- package/lib/components/_ai/index.js +7 -0
- package/lib/components/_ai/index.js.map +1 -0
- package/lib/components/disabledToolsParameters.d.ts +30 -0
- package/lib/components/disabledToolsParameters.js +25 -0
- package/lib/components/disabledToolsParameters.js.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -1
- package/lib/managerVersions.d.ts +29 -0
- package/lib/managerVersions.js +69 -0
- package/lib/managerVersions.js.map +1 -0
- package/package.json +15 -4
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CreateBottomSheetStoriesProps = {
|
|
3
|
+
component: any;
|
|
4
|
+
componentConfig: any;
|
|
5
|
+
additionalComponents: {
|
|
6
|
+
Button: React.ComponentType<any>;
|
|
7
|
+
Body: React.ComponentType<any>;
|
|
8
|
+
H3: React.ComponentType<any>;
|
|
9
|
+
};
|
|
10
|
+
title?: string;
|
|
11
|
+
disablePropsList?: string[];
|
|
12
|
+
defaultArgs?: {};
|
|
13
|
+
additionalArgTypes?: {};
|
|
14
|
+
};
|
|
15
|
+
export declare const getBottomSheetStories: (config: CreateBottomSheetStoriesProps) => {
|
|
16
|
+
meta: {
|
|
17
|
+
title: string;
|
|
18
|
+
decorators: import("@storybook/react").Decorator[];
|
|
19
|
+
component: any;
|
|
20
|
+
args: {
|
|
21
|
+
handlePlacement: string;
|
|
22
|
+
hasClose: boolean;
|
|
23
|
+
hasHandle: boolean;
|
|
24
|
+
withOverlay: boolean;
|
|
25
|
+
withBlur: boolean;
|
|
26
|
+
withTransition: boolean;
|
|
27
|
+
maxHeight: string;
|
|
28
|
+
showContentBeforeHeader: boolean;
|
|
29
|
+
showContentHeader: boolean;
|
|
30
|
+
showContentFooter: boolean;
|
|
31
|
+
};
|
|
32
|
+
argTypes: {
|
|
33
|
+
handlePlacement: {
|
|
34
|
+
options: string[];
|
|
35
|
+
control: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
table: {
|
|
39
|
+
category: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
maxHeight: {
|
|
43
|
+
control: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
table: {
|
|
47
|
+
category: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
hasClose: {
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
table: {
|
|
55
|
+
category: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
hasHandle: {
|
|
59
|
+
control: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
table: {
|
|
63
|
+
category: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
withOverlay: {
|
|
67
|
+
control: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
table: {
|
|
71
|
+
category: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
withBlur: {
|
|
75
|
+
control: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
table: {
|
|
79
|
+
category: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
withTransition: {
|
|
83
|
+
control: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
table: {
|
|
87
|
+
category: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
showContentBeforeHeader: {
|
|
91
|
+
control: {
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
table: {
|
|
95
|
+
category: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
showContentHeader: {
|
|
99
|
+
control: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
table: {
|
|
103
|
+
category: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
showContentFooter: {
|
|
107
|
+
control: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
table: {
|
|
111
|
+
category: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
Default: {
|
|
117
|
+
render: (args: any) => JSX.Element;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
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 getBottomSheetStories = function (config) {
|
|
28
|
+
var component = config.component, componentConfig = config.componentConfig, additionalComponents = config.additionalComponents, rest = __rest(config, ["component", "componentConfig", "additionalComponents"]);
|
|
29
|
+
var bottomSheetConfig = __assign(__assign({}, getConfigVariations(componentConfig)), { defaults: componentConfig.defaults });
|
|
30
|
+
var meta = createMeta(__assign({ component: component, componentConfig: bottomSheetConfig }, rest));
|
|
31
|
+
var DefaultStoryComponent = createDefaultStory(component, additionalComponents);
|
|
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=BottomSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheet.js","sourceRoot":"","sources":["../../../src/components/BottomSheet/BottomSheet.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;AAgB/C,MAAM,CAAC,IAAM,qBAAqB,GAAG,UAAC,MAAqC;IAC/D,IAAA,SAAS,GAAqD,MAAM,UAA3D,EAAE,eAAe,GAAoC,MAAM,gBAA1C,EAAE,oBAAoB,GAAc,MAAM,qBAApB,EAAK,IAAI,UAAK,MAAM,EAAtE,wDAA6D,CAAF,CAAY;IAE7E,IAAM,iBAAiB,yBAChB,mBAAmB,CAAC,eAAe,CAAC,KACvC,QAAQ,EAAE,eAAe,CAAC,QAAQ,GACrC,CAAC;IAEF,IAAM,IAAI,GAAG,UAAU,YACnB,SAAS,WAAA,EACT,eAAe,EAAE,iBAAiB,IAC/B,IAAI,EACT,CAAC;IAEH,IAAM,qBAAqB,GAAG,kBAAkB,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAElF,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,11 @@
|
|
|
1
|
+
export var handlePlacements = ['inner', 'outer'];
|
|
2
|
+
export var sources = [
|
|
3
|
+
{ title: 'Эксперты описали двумя словами, что ждать от российской экономики', domain: 'rbc.ru' },
|
|
4
|
+
{ title: 'Экономика России в 2025 году: ключевые события, вызовы и прогнозы', domain: 'wikipedia.org' },
|
|
5
|
+
{ title: 'На тающей льдине. Экономические итоги 2025 года', domain: 'meduza.io' },
|
|
6
|
+
{ title: '«Замедление роста в экономике — это плата за стабильность»', domain: 'theins.ru' },
|
|
7
|
+
{ title: 'Промышленное производство: динамика по отраслям', domain: 'gks.ru' },
|
|
8
|
+
{ title: 'Аналитики о ключевой ставке и инфляционных ожиданиях', domain: 'kommersant.ru' },
|
|
9
|
+
{ title: 'Курс рубля: факторы и сценарии на ближайшие месяцы', domain: 'forbes.ru' },
|
|
10
|
+
];
|
|
11
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/BottomSheet/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAEnD,MAAM,CAAC,IAAM,OAAO,GAAG;IACnB,EAAE,KAAK,EAAE,mEAAmE,EAAE,MAAM,EAAE,QAAQ,EAAE;IAChG,EAAE,KAAK,EAAE,mEAAmE,EAAE,MAAM,EAAE,eAAe,EAAE;IACvG,EAAE,KAAK,EAAE,iDAAiD,EAAE,MAAM,EAAE,WAAW,EAAE;IACjF,EAAE,KAAK,EAAE,4DAA4D,EAAE,MAAM,EAAE,WAAW,EAAE;IAC5F,EAAE,KAAK,EAAE,iDAAiD,EAAE,MAAM,EAAE,QAAQ,EAAE;IAC9E,EAAE,KAAK,EAAE,sDAAsD,EAAE,MAAM,EAAE,eAAe,EAAE;IAC1F,EAAE,KAAK,EAAE,oDAAoD,EAAE,MAAM,EAAE,WAAW,EAAE;CACvF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BottomSheet';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/BottomSheet/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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, title, defaultArgs, additionalArgTypes, disablePropsList, }: CreateMetaProps) => {
|
|
10
|
+
title: string;
|
|
11
|
+
decorators: import("@storybook/react").Decorator[];
|
|
12
|
+
component: any;
|
|
13
|
+
args: {
|
|
14
|
+
handlePlacement: string;
|
|
15
|
+
hasClose: boolean;
|
|
16
|
+
hasHandle: boolean;
|
|
17
|
+
withOverlay: boolean;
|
|
18
|
+
withBlur: boolean;
|
|
19
|
+
withTransition: boolean;
|
|
20
|
+
maxHeight: string;
|
|
21
|
+
showContentBeforeHeader: boolean;
|
|
22
|
+
showContentHeader: boolean;
|
|
23
|
+
showContentFooter: boolean;
|
|
24
|
+
};
|
|
25
|
+
argTypes: {
|
|
26
|
+
handlePlacement: {
|
|
27
|
+
options: string[];
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
table: {
|
|
32
|
+
category: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
maxHeight: {
|
|
36
|
+
control: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
table: {
|
|
40
|
+
category: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
hasClose: {
|
|
44
|
+
control: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
table: {
|
|
48
|
+
category: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
hasHandle: {
|
|
52
|
+
control: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
table: {
|
|
56
|
+
category: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
withOverlay: {
|
|
60
|
+
control: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
table: {
|
|
64
|
+
category: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
withBlur: {
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
table: {
|
|
72
|
+
category: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
withTransition: {
|
|
76
|
+
control: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
table: {
|
|
80
|
+
category: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
showContentBeforeHeader: {
|
|
84
|
+
control: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
table: {
|
|
88
|
+
category: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
showContentHeader: {
|
|
92
|
+
control: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
table: {
|
|
96
|
+
category: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
showContentFooter: {
|
|
100
|
+
control: {
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
table: {
|
|
104
|
+
category: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { handlePlacements } from './fixtures';
|
|
23
|
+
var commonDisabledArgs = [
|
|
24
|
+
'opened',
|
|
25
|
+
'children',
|
|
26
|
+
'contentBeforeHeader',
|
|
27
|
+
'contentHeader',
|
|
28
|
+
'contentFooter',
|
|
29
|
+
'zIndex',
|
|
30
|
+
'onClose',
|
|
31
|
+
];
|
|
32
|
+
export var createMeta = function (_a) {
|
|
33
|
+
var component = _a.component, _b = _a.title, title = _b === void 0 ? 'Overlay/BottomSheet' : _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;
|
|
34
|
+
return {
|
|
35
|
+
title: title,
|
|
36
|
+
decorators: [InSpacingDecorator],
|
|
37
|
+
component: component,
|
|
38
|
+
args: __assign({ handlePlacement: 'inner', hasClose: true, hasHandle: true, withOverlay: true, withBlur: true, withTransition: true, maxHeight: '66dvh', showContentBeforeHeader: false, showContentHeader: true, showContentFooter: true }, defaultArgs),
|
|
39
|
+
argTypes: __assign(__assign({ handlePlacement: {
|
|
40
|
+
options: handlePlacements,
|
|
41
|
+
control: {
|
|
42
|
+
type: 'inline-radio',
|
|
43
|
+
},
|
|
44
|
+
table: { category: 'layout' },
|
|
45
|
+
}, maxHeight: {
|
|
46
|
+
control: { type: 'text' },
|
|
47
|
+
table: { category: 'layout' },
|
|
48
|
+
}, hasClose: {
|
|
49
|
+
control: { type: 'boolean' },
|
|
50
|
+
table: { category: 'layout' },
|
|
51
|
+
}, hasHandle: {
|
|
52
|
+
control: { type: 'boolean' },
|
|
53
|
+
table: { category: 'layout' },
|
|
54
|
+
}, withOverlay: {
|
|
55
|
+
control: { type: 'boolean' },
|
|
56
|
+
table: { category: 'overlay' },
|
|
57
|
+
}, withBlur: {
|
|
58
|
+
control: { type: 'boolean' },
|
|
59
|
+
table: { category: 'overlay' },
|
|
60
|
+
}, withTransition: {
|
|
61
|
+
control: { type: 'boolean' },
|
|
62
|
+
table: { category: 'animation' },
|
|
63
|
+
}, showContentBeforeHeader: {
|
|
64
|
+
control: { type: 'boolean' },
|
|
65
|
+
table: { category: 'story' },
|
|
66
|
+
}, showContentHeader: {
|
|
67
|
+
control: { type: 'boolean' },
|
|
68
|
+
table: { category: 'story' },
|
|
69
|
+
}, showContentFooter: {
|
|
70
|
+
control: { type: 'boolean' },
|
|
71
|
+
table: { category: 'story' },
|
|
72
|
+
} }, additionalArgTypes), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/BottomSheet/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAW9C,IAAM,kBAAkB,GAAG;IACvB,QAAQ;IACR,UAAU;IACV,qBAAqB;IACrB,eAAe;IACf,eAAe;IACf,QAAQ;IACR,SAAS;CACZ,CAAC;AAEF,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAMT;QALd,SAAS,eAAA,EACT,aAA6B,EAA7B,KAAK,mBAAG,qBAAqB,KAAA,EAC7B,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,eAAe,EAAE,OAAO,EACxB,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,IAAI,EACf,WAAW,EAAE,IAAI,EACjB,QAAQ,EAAE,IAAI,EACd,cAAc,EAAE,IAAI,EACpB,SAAS,EAAE,OAAO,EAClB,uBAAuB,EAAE,KAAK,EAC9B,iBAAiB,EAAE,IAAI,EACvB,iBAAiB,EAAE,IAAI,IACpB,WAAW,CACjB;QACD,QAAQ,sBACJ,eAAe,EAAE;gBACb,OAAO,EAAE,gBAAgB;gBACzB,OAAO,EAAE;oBACL,IAAI,EAAE,cAAc;iBACvB;gBACD,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,EACD,SAAS,EAAE;gBACP,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACzB,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,EACD,QAAQ,EAAE;gBACN,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,EACD,SAAS,EAAE;gBACP,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,EACD,WAAW,EAAE;gBACT,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;aACjC,EACD,QAAQ,EAAE;gBACN,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;aACjC,EACD,cAAc,EAAE;gBACZ,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE;aACnC,EACD,uBAAuB,EAAE;gBACrB,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE;aAC/B,EACD,iBAAiB,EAAE;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE;aAC/B,EACD,iBAAiB,EAAE;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE;aAC/B,IACE,kBAAkB,GAClB,YAAY,iCAAK,kBAAkB,SAAK,gBAAgB,QAAE,CAChE;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Components = {
|
|
3
|
+
Button: React.ComponentType<any>;
|
|
4
|
+
Body: React.ComponentType<any>;
|
|
5
|
+
H3: React.ComponentType<any>;
|
|
6
|
+
};
|
|
7
|
+
export declare const createDefaultStory: (BottomSheet: React.ComponentType<any>, { Button, Body, H3 }: Components) => ({ showContentBeforeHeader, showContentHeader, showContentFooter, ...rest }: any) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
+
t[p[i]] = s[p[i]];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
import React, { useState } from 'react';
|
|
28
|
+
import styled from 'styled-components';
|
|
29
|
+
import { action } from 'storybook/actions';
|
|
30
|
+
import { sources } from './fixtures';
|
|
31
|
+
var onCloseAction = action('onClose');
|
|
32
|
+
var HeaderContent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 1.875rem 1.5rem 0.875rem;\n"], ["\n padding: 1.875rem 1.5rem 0.875rem;\n"])));
|
|
33
|
+
var BodyContent = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 0 1.5rem;\n"], ["\n padding: 0 1.5rem;\n"])));
|
|
34
|
+
var FooterContent = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 1rem 1.5rem 2.5rem;\n"], ["\n padding: 1rem 1.5rem 2.5rem;\n"])));
|
|
35
|
+
var StyledImage = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 10rem;\n background: linear-gradient(135deg, #d3f8e2 0%, #a0e7e5 50%, #b4a7f5 100%);\n"], ["\n height: 10rem;\n background: linear-gradient(135deg, #d3f8e2 0%, #a0e7e5 50%, #b4a7f5 100%);\n"])));
|
|
36
|
+
var Source = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: 0.75rem 1rem;\n margin-bottom: 0.5rem;\n border: 1px solid var(--outline-transparent-primary);\n border-radius: 0.75rem;\n"], ["\n padding: 0.75rem 1rem;\n margin-bottom: 0.5rem;\n border: 1px solid var(--outline-transparent-primary);\n border-radius: 0.75rem;\n"])));
|
|
37
|
+
var createOnClose = function (setOpened) { return function () {
|
|
38
|
+
setOpened(false);
|
|
39
|
+
onCloseAction();
|
|
40
|
+
}; };
|
|
41
|
+
export var createDefaultStory = function (BottomSheet, _a) {
|
|
42
|
+
var Button = _a.Button, Body = _a.Body, H3 = _a.H3;
|
|
43
|
+
return function (_a) {
|
|
44
|
+
var showContentBeforeHeader = _a.showContentBeforeHeader, showContentHeader = _a.showContentHeader, showContentFooter = _a.showContentFooter, rest = __rest(_a, ["showContentBeforeHeader", "showContentHeader", "showContentFooter"]);
|
|
45
|
+
var _b = useState(false), opened = _b[0], setOpened = _b[1];
|
|
46
|
+
var onClose = createOnClose(setOpened);
|
|
47
|
+
return (React.createElement(React.Fragment, null,
|
|
48
|
+
React.createElement(Button, { onClick: function () { return setOpened(true); } }, "\u041E\u0442\u043A\u0440\u044B\u0442\u044C"),
|
|
49
|
+
React.createElement(BottomSheet, __assign({}, rest, { opened: opened, onClose: onClose, contentBeforeHeader: showContentBeforeHeader ? React.createElement(StyledImage, null) : undefined, contentHeader: showContentHeader ? (React.createElement(HeaderContent, null,
|
|
50
|
+
React.createElement(H3, null, "\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438"))) : undefined, contentFooter: showContentFooter ? (React.createElement(FooterContent, null,
|
|
51
|
+
React.createElement(Button, { stretching: "filled", view: "default" }, "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C"))) : undefined }),
|
|
52
|
+
React.createElement(BodyContent, null, sources.map(function (source) { return (React.createElement(Source, { key: source.title },
|
|
53
|
+
React.createElement(Body, null, source.title),
|
|
54
|
+
React.createElement(Body, { size: "s", style: { opacity: 0.5 } }, source.domain))); })))));
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
58
|
+
//# sourceMappingURL=stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/BottomSheet/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC,IAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAExC,IAAM,aAAa,GAAG,MAAM,CAAC,GAAG,+GAAA,4CAE/B,IAAA,CAAC;AAEF,IAAM,WAAW,GAAG,MAAM,CAAC,GAAG,+FAAA,4BAE7B,IAAA,CAAC;AAEF,IAAM,aAAa,GAAG,MAAM,CAAC,GAAG,yGAAA,sCAE/B,IAAA,CAAC;AAEF,IAAM,WAAW,GAAG,MAAM,CAAC,GAAG,4KAAA,yGAG7B,IAAA,CAAC;AAEF,IAAM,MAAM,GAAG,MAAM,CAAC,GAAG,uNAAA,oJAKxB,IAAA,CAAC;AAEF,IAAM,aAAa,GAAG,UAAC,SAAoC,IAAK,OAAA;IAC5D,SAAS,CAAC,KAAK,CAAC,CAAC;IACjB,aAAa,EAAE,CAAC;AACpB,CAAC,EAH+D,CAG/D,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,WAAqC,EAAE,EAAgC;QAA9B,MAAM,YAAA,EAAE,IAAI,UAAA,EAAE,EAAE,QAAA;IACxF,OAAO,UAAC,EAA+E;QAA7E,IAAA,uBAAuB,6BAAA,EAAE,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAA,EAAK,IAAI,cAAxE,qEAA0E,CAAF;QACtE,IAAA,KAAsB,QAAQ,CAAC,KAAK,CAAC,EAApC,MAAM,QAAA,EAAE,SAAS,QAAmB,CAAC;QAC5C,IAAM,OAAO,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;QAEzC,OAAO,CACH;YACI,oBAAC,MAAM,IAAC,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,IAAI,CAAC,EAAf,CAAe,iDAAkB;YACxD,oBAAC,WAAW,eACJ,IAAI,IACR,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,mBAAmB,EAAE,uBAAuB,CAAC,CAAC,CAAC,oBAAC,WAAW,OAAG,CAAC,CAAC,CAAC,SAAS,EAC1E,aAAa,EACT,iBAAiB,CAAC,CAAC,CAAC,CAChB,oBAAC,aAAa;oBACV,oBAAC,EAAE,iEAAe,CACN,CACnB,CAAC,CAAC,CAAC,SAAS,EAEjB,aAAa,EACT,iBAAiB,CAAC,CAAC,CAAC,CAChB,oBAAC,aAAa;oBACV,oBAAC,MAAM,IAAC,UAAU,EAAC,QAAQ,EAAC,IAAI,EAAC,SAAS,6DAEjC,CACG,CACnB,CAAC,CAAC,CAAC,SAAS;gBAGjB,oBAAC,WAAW,QACP,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,CACrB,oBAAC,MAAM,IAAC,GAAG,EAAE,MAAM,CAAC,KAAK;oBACrB,oBAAC,IAAI,QAAE,MAAM,CAAC,KAAK,CAAQ;oBAC3B,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,IACjC,MAAM,CAAC,MAAM,CACX,CACF,CACZ,EAPwB,CAOxB,CAAC,CACQ,CACJ,CACf,CACN,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -28,7 +28,7 @@ export var createDefaultStory = function (Dropdown, components) {
|
|
|
28
28
|
return function (_a) {
|
|
29
29
|
var rest = __rest(_a, []);
|
|
30
30
|
return (React.createElement(Dropdown, __assign({}, rest, { items: items, onToggle: action('onToggle'), onHover: action('onHover'), onItemSelect: action('onItemSelect') }),
|
|
31
|
-
React.createElement(Button, { text: "\u0421\u043F\u0438\u0441\u043E\u043A \u0441\u0442\u0440\u0430\u043D", size: rest.
|
|
31
|
+
React.createElement(Button, { text: "\u0421\u043F\u0438\u0441\u043E\u043A \u0441\u0442\u0440\u0430\u043D", size: rest.triggerSize })));
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Dropdown/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAC9B,QAAkC,EAClC,UAAoD;IAE5C,IAAA,MAAM,GAAK,UAAU,OAAf,CAAgB;IAE9B,OAAO,UAAC,EAAgB;YAAX,IAAI,cAAT,EAAW,CAAF;QACb,OAAO,CACH,oBAAC,QAAQ,eACD,IAAI,IACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,EAC5B,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,EAC1B,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC;YAEpC,oBAAC,MAAM,IAAC,IAAI,EAAC,qEAAc,EAAC,IAAI,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Dropdown/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAC9B,QAAkC,EAClC,UAAoD;IAE5C,IAAA,MAAM,GAAK,UAAU,OAAf,CAAgB;IAE9B,OAAO,UAAC,EAAgB;YAAX,IAAI,cAAT,EAAW,CAAF;QACb,OAAO,CACH,oBAAC,QAAQ,eACD,IAAI,IACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,EAC5B,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,EAC1B,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC;YAEpC,oBAAC,MAAM,IAAC,IAAI,EAAC,qEAAc,EAAC,IAAI,EAAE,IAAI,CAAC,WAAW,GAAI,CAC/C,CACd,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { RatingCustomIcons } from './stories';
|
|
2
|
+
type CreateRatingStoriesProps = {
|
|
3
|
+
component: any;
|
|
4
|
+
componentConfig: any;
|
|
5
|
+
title?: string;
|
|
6
|
+
disablePropsList?: string[];
|
|
7
|
+
defaultArgs?: {};
|
|
8
|
+
additionalArgTypes?: {};
|
|
9
|
+
customIcons?: RatingCustomIcons;
|
|
10
|
+
};
|
|
11
|
+
export declare const getRatingStories: (config: CreateRatingStoriesProps) => {
|
|
12
|
+
meta: {
|
|
13
|
+
title: string;
|
|
14
|
+
decorators: import("@storybook/react").Decorator[];
|
|
15
|
+
component: any;
|
|
16
|
+
args: {
|
|
17
|
+
view: string;
|
|
18
|
+
size: string;
|
|
19
|
+
hasValue: boolean;
|
|
20
|
+
value: number;
|
|
21
|
+
precision: number;
|
|
22
|
+
decimalSeparator: string;
|
|
23
|
+
valuePlacement: string;
|
|
24
|
+
hasIcons: boolean;
|
|
25
|
+
iconQuantity: number;
|
|
26
|
+
helperText: string;
|
|
27
|
+
helperTextStretching: string;
|
|
28
|
+
};
|
|
29
|
+
argTypes: {
|
|
30
|
+
view: {
|
|
31
|
+
options: any;
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
table: {
|
|
36
|
+
category: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
size: {
|
|
40
|
+
options: any;
|
|
41
|
+
control: {
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
table: {
|
|
45
|
+
category: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
hasValue: {
|
|
49
|
+
control: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
table: {
|
|
53
|
+
category: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
value: {
|
|
57
|
+
control: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
if: {
|
|
61
|
+
arg: string;
|
|
62
|
+
truthy: boolean;
|
|
63
|
+
};
|
|
64
|
+
table: {
|
|
65
|
+
category: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
precision: {
|
|
69
|
+
options: number[];
|
|
70
|
+
control: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
if: {
|
|
74
|
+
arg: string;
|
|
75
|
+
truthy: boolean;
|
|
76
|
+
};
|
|
77
|
+
table: {
|
|
78
|
+
category: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
decimalSeparator: {
|
|
82
|
+
control: {
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
if: {
|
|
86
|
+
arg: string;
|
|
87
|
+
truthy: boolean;
|
|
88
|
+
};
|
|
89
|
+
table: {
|
|
90
|
+
category: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
valuePlacement: {
|
|
94
|
+
options: string[];
|
|
95
|
+
control: {
|
|
96
|
+
type: string;
|
|
97
|
+
};
|
|
98
|
+
if: {
|
|
99
|
+
arg: string;
|
|
100
|
+
truthy: boolean;
|
|
101
|
+
};
|
|
102
|
+
table: {
|
|
103
|
+
category: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
hasIcons: {
|
|
107
|
+
control: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
if: {
|
|
111
|
+
arg: string;
|
|
112
|
+
truthy: boolean;
|
|
113
|
+
};
|
|
114
|
+
table: {
|
|
115
|
+
category: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
iconQuantity: {
|
|
119
|
+
options: number[];
|
|
120
|
+
control: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
table: {
|
|
124
|
+
category: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
helperText: {
|
|
128
|
+
control: {
|
|
129
|
+
type: string;
|
|
130
|
+
};
|
|
131
|
+
table: {
|
|
132
|
+
category: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
helperTextStretching: {
|
|
136
|
+
options: string[];
|
|
137
|
+
control: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
if: {
|
|
141
|
+
arg: string;
|
|
142
|
+
neq: string;
|
|
143
|
+
};
|
|
144
|
+
table: {
|
|
145
|
+
category: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
Default: {
|
|
151
|
+
render: (args: any) => JSX.Element;
|
|
152
|
+
};
|
|
153
|
+
CustomIcons: {
|
|
154
|
+
render: (args: any) => JSX.Element;
|
|
155
|
+
argTypes: {
|
|
156
|
+
[x: string]: {
|
|
157
|
+
table: {
|
|
158
|
+
disable: true;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
export {};
|