@salutejs/plasma-sb-utils 0.222.0-next-platform-ai.0 → 0.222.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/Note/Note.d.ts +133 -0
- package/lib/components/Note/Note.js +40 -0
- package/lib/components/Note/Note.js.map +1 -0
- package/lib/components/Note/fixtures.d.ts +1 -0
- package/lib/components/Note/fixtures.js +2 -0
- package/lib/components/Note/fixtures.js.map +1 -0
- package/lib/components/Note/index.d.ts +1 -0
- package/lib/components/Note/index.js +2 -0
- package/lib/components/Note/index.js.map +1 -0
- package/lib/components/Note/meta.d.ts +128 -0
- package/lib/components/Note/meta.js +72 -0
- package/lib/components/Note/meta.js.map +1 -0
- package/lib/components/Note/stories.d.ts +1 -0
- package/lib/components/Note/stories.js +41 -0
- package/lib/components/Note/stories.js.map +1 -0
- package/lib/components/ThemeColors.js +3 -3
- package/lib/components/ThemeColors.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
type CreateNoteStoriesProps = {
|
|
2
|
+
component: any;
|
|
3
|
+
componentConfig: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
disablePropsList?: string[];
|
|
6
|
+
defaultArgs?: {};
|
|
7
|
+
additionalArgTypes?: {};
|
|
8
|
+
};
|
|
9
|
+
export declare const getNoteStories: (config: CreateNoteStoriesProps) => {
|
|
10
|
+
meta: {
|
|
11
|
+
title: string;
|
|
12
|
+
decorators: import("@storybook/react").Decorator[];
|
|
13
|
+
component: any;
|
|
14
|
+
args: {
|
|
15
|
+
view: string;
|
|
16
|
+
size: string;
|
|
17
|
+
title: string;
|
|
18
|
+
text: string;
|
|
19
|
+
width: string;
|
|
20
|
+
stretch: boolean;
|
|
21
|
+
enableContentBefore: boolean;
|
|
22
|
+
contentBeforeSizing: string;
|
|
23
|
+
hasClose: boolean;
|
|
24
|
+
enableHeightControl: boolean;
|
|
25
|
+
height: string;
|
|
26
|
+
};
|
|
27
|
+
argTypes: {
|
|
28
|
+
view: {
|
|
29
|
+
options: any;
|
|
30
|
+
control: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
table: {
|
|
34
|
+
category: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
options: any;
|
|
39
|
+
control: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
table: {
|
|
43
|
+
category: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
title: {
|
|
47
|
+
control: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
table: {
|
|
51
|
+
category: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
text: {
|
|
55
|
+
control: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
table: {
|
|
59
|
+
category: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
stretch: {
|
|
63
|
+
control: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
table: {
|
|
67
|
+
category: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
hasClose: {
|
|
71
|
+
control: {
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
table: {
|
|
75
|
+
category: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
enableContentBefore: {
|
|
79
|
+
control: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
table: {
|
|
83
|
+
category: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
contentBeforeSizing: {
|
|
87
|
+
options: string[];
|
|
88
|
+
control: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
if: {
|
|
92
|
+
arg: string;
|
|
93
|
+
truthy: boolean;
|
|
94
|
+
};
|
|
95
|
+
table: {
|
|
96
|
+
category: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
width: {
|
|
100
|
+
control: {
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
table: {
|
|
104
|
+
category: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
enableHeightControl: {
|
|
108
|
+
control: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
table: {
|
|
112
|
+
category: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
height: {
|
|
116
|
+
control: {
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
if: {
|
|
120
|
+
arg: string;
|
|
121
|
+
truthy: boolean;
|
|
122
|
+
};
|
|
123
|
+
table: {
|
|
124
|
+
category: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
Default: {
|
|
130
|
+
render: (args: any) => JSX.Element;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
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 getNoteStories = function (config) {
|
|
28
|
+
var component = config.component, componentConfig = config.componentConfig, rest = __rest(config, ["component", "componentConfig"]);
|
|
29
|
+
var noteConfig = getConfigVariations(componentConfig);
|
|
30
|
+
var meta = createMeta(__assign({ component: component, componentConfig: noteConfig }, 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=Note.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Note.js","sourceRoot":"","sources":["../../../src/components/Note/Note.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,cAAc,GAAG,UAAC,MAA8B;IACjD,IAAA,SAAS,GAA+B,MAAM,UAArC,EAAE,eAAe,GAAc,MAAM,gBAApB,EAAK,IAAI,UAAK,MAAM,EAAhD,gCAAuC,CAAF,CAAY;IAEvD,IAAM,UAAU,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAExD,IAAM,IAAI,GAAG,UAAU,YACnB,SAAS,WAAA,EACT,eAAe,EAAE,UAAU,IACxB,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 @@
|
|
|
1
|
+
export declare const contentBeforeSizes: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/Note/fixtures.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Note';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Note/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
title: string;
|
|
17
|
+
text: string;
|
|
18
|
+
width: string;
|
|
19
|
+
stretch: boolean;
|
|
20
|
+
enableContentBefore: boolean;
|
|
21
|
+
contentBeforeSizing: string;
|
|
22
|
+
hasClose: boolean;
|
|
23
|
+
enableHeightControl: boolean;
|
|
24
|
+
height: string;
|
|
25
|
+
};
|
|
26
|
+
argTypes: {
|
|
27
|
+
view: {
|
|
28
|
+
options: any;
|
|
29
|
+
control: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
table: {
|
|
33
|
+
category: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
options: any;
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
table: {
|
|
42
|
+
category: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
title: {
|
|
46
|
+
control: {
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
table: {
|
|
50
|
+
category: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
text: {
|
|
54
|
+
control: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
table: {
|
|
58
|
+
category: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
stretch: {
|
|
62
|
+
control: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
table: {
|
|
66
|
+
category: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
hasClose: {
|
|
70
|
+
control: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
table: {
|
|
74
|
+
category: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
enableContentBefore: {
|
|
78
|
+
control: {
|
|
79
|
+
type: string;
|
|
80
|
+
};
|
|
81
|
+
table: {
|
|
82
|
+
category: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
contentBeforeSizing: {
|
|
86
|
+
options: string[];
|
|
87
|
+
control: {
|
|
88
|
+
type: string;
|
|
89
|
+
};
|
|
90
|
+
if: {
|
|
91
|
+
arg: string;
|
|
92
|
+
truthy: boolean;
|
|
93
|
+
};
|
|
94
|
+
table: {
|
|
95
|
+
category: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
width: {
|
|
99
|
+
control: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
table: {
|
|
103
|
+
category: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
enableHeightControl: {
|
|
107
|
+
control: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
table: {
|
|
111
|
+
category: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
height: {
|
|
115
|
+
control: {
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
if: {
|
|
119
|
+
arg: string;
|
|
120
|
+
truthy: boolean;
|
|
121
|
+
};
|
|
122
|
+
table: {
|
|
123
|
+
category: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { contentBeforeSizes } from './fixtures';
|
|
23
|
+
var commonDisabledArgs = ['contentBefore', 'onCloseButtonClick'];
|
|
24
|
+
export var createMeta = function (_a) {
|
|
25
|
+
var component = _a.component, componentConfig = _a.componentConfig, _b = _a.title, title = _b === void 0 ? 'Data Display/Note' : _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({ view: 'default', size: 'l', title: 'Title', text: 'Text', width: '400', stretch: false, enableContentBefore: true, contentBeforeSizing: 'fixed', hasClose: false, enableHeightControl: false, height: '400' }, 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: 'select' },
|
|
38
|
+
table: { category: 'variation' },
|
|
39
|
+
}, title: {
|
|
40
|
+
control: { type: 'text' },
|
|
41
|
+
table: { category: 'layout' },
|
|
42
|
+
}, text: {
|
|
43
|
+
control: { type: 'text' },
|
|
44
|
+
table: { category: 'layout' },
|
|
45
|
+
}, stretch: {
|
|
46
|
+
control: { type: 'boolean' },
|
|
47
|
+
table: { category: 'layout' },
|
|
48
|
+
}, hasClose: {
|
|
49
|
+
control: { type: 'boolean' },
|
|
50
|
+
table: { category: 'layout' },
|
|
51
|
+
}, enableContentBefore: {
|
|
52
|
+
control: { type: 'boolean' },
|
|
53
|
+
table: { category: 'layout' },
|
|
54
|
+
}, contentBeforeSizing: {
|
|
55
|
+
options: contentBeforeSizes,
|
|
56
|
+
control: { type: 'select' },
|
|
57
|
+
if: { arg: 'enableContentBefore', truthy: true },
|
|
58
|
+
table: { category: 'layout' },
|
|
59
|
+
}, width: {
|
|
60
|
+
control: { type: 'text' },
|
|
61
|
+
table: { category: 'layout' },
|
|
62
|
+
}, enableHeightControl: {
|
|
63
|
+
control: { type: 'boolean' },
|
|
64
|
+
table: { category: 'layout' },
|
|
65
|
+
}, height: {
|
|
66
|
+
control: { type: 'text' },
|
|
67
|
+
if: { arg: 'enableHeightControl', truthy: true },
|
|
68
|
+
table: { category: 'layout' },
|
|
69
|
+
} }, additionalArgTypes), disableProps(__spreadArray(__spreadArray([], commonDisabledArgs, true), disablePropsList, true))),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/Note/meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAWhD,IAAM,kBAAkB,GAAG,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC;AAEnE,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAOT;QANd,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,aAA2B,EAA3B,KAAK,mBAAG,mBAAmB,KAAA,EAC3B,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,0BAAuB,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA;IAErB,OAAO;QACH,KAAK,OAAA;QACL,UAAU,EAAE,CAAC,kBAAkB,CAAC;QAChC,SAAS,WAAA;QACT,IAAI,aACA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AAE;aAChC,EACD,mBAAmB,EAAE;gBACjB,OAAO,EAAE,kBAAkB;gBAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,EAAE,EAAE,EAAE,GAAG,EAAE,qBAAqB,EAAE,MAAM,EAAE,IAAI,EAAE;gBAChD,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,EACD,KAAK,EAAE;gBACH,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACzB,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,EACD,mBAAmB,EAAE;gBACjB,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,EACD,MAAM,EAAE;gBACJ,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACzB,EAAE,EAAE,EAAE,GAAG,EAAE,qBAAqB,EAAE,MAAM,EAAE,IAAI,EAAE;gBAChD,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;aAChC,IACE,kBAAkB,GAClB,YAAY,iCAAK,kBAAkB,SAAK,gBAAgB,QAAE,CAChE;KACJ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createDefaultStory: (NoteComponent: any) => ({ enableContentBefore, enableHeightControl, ...args }: any) => JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { IconPlasma } from '@salutejs/plasma-icons';
|
|
25
|
+
var getIconSize = function (size, isScalable) {
|
|
26
|
+
if (isScalable) {
|
|
27
|
+
return 'm';
|
|
28
|
+
}
|
|
29
|
+
if (size === 'l' || size === 'm') {
|
|
30
|
+
return 's';
|
|
31
|
+
}
|
|
32
|
+
return 'xs';
|
|
33
|
+
};
|
|
34
|
+
export var createDefaultStory = function (NoteComponent) {
|
|
35
|
+
return function (_a) {
|
|
36
|
+
var enableContentBefore = _a.enableContentBefore, enableHeightControl = _a.enableHeightControl, args = __rest(_a, ["enableContentBefore", "enableHeightControl"]);
|
|
37
|
+
return (React.createElement("div", { style: { height: '100vh' } },
|
|
38
|
+
React.createElement(NoteComponent, __assign({ contentBefore: enableContentBefore ? (React.createElement(IconPlasma, { size: getIconSize(args.size, args.contentBeforeSizing === 'scalable'), color: "inherit" })) : undefined, height: enableHeightControl ? args.height : undefined }, args))));
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Note/stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,IAAM,WAAW,GAAG,UAAC,IAAa,EAAE,UAAoB;IACpD,IAAI,UAAU,EAAE,CAAC;QACb,OAAO,GAAG,CAAC;IACf,CAAC;IAED,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QAC/B,OAAO,GAAG,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,aAAkB;IACjD,OAAO,UAAC,EAA0D;QAAxD,IAAA,mBAAmB,yBAAA,EAAE,mBAAmB,yBAAA,EAAK,IAAI,cAAnD,8CAAqD,CAAF;QACvD,OAAO,CACH,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;YAC3B,oBAAC,aAAa,aACV,aAAa,EACT,mBAAmB,CAAC,CAAC,CAAC,CAClB,oBAAC,UAAU,IACP,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,mBAAmB,KAAK,UAAU,CAAC,EACrE,KAAK,EAAC,SAAS,GACjB,CACL,CAAC,CAAC,CAAC,SAAS,EAEjB,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,IACjD,IAAI,EACV,CACA,CACT,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
var _a;
|
|
28
28
|
import React from 'react';
|
|
29
29
|
import styled, { css } from 'styled-components';
|
|
30
|
-
import { Headline1, Headline3, Footnote1, Caption
|
|
30
|
+
import { Headline1, Headline3, Footnote1, Caption } from '@salutejs/plasma-core';
|
|
31
31
|
import { paramCase } from 'param-case';
|
|
32
32
|
var NONE = 'NONE';
|
|
33
33
|
var comments = (_a = {
|
|
@@ -229,9 +229,9 @@ var StyledGroup = styled.div(templateObject_8 || (templateObject_8 = __makeTempl
|
|
|
229
229
|
var StyledSwatch = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n position: relative;\n display: grid;\n grid-template:\n 'color name' 1fr\n 'color descr' max-content / 3rem 1fr;\n\n padding-right: 0.25rem;\n border-radius: 2.25rem;\n cursor: pointer;\n\n &::before {\n content: '';\n position: absolute;\n top: -0.25rem;\n left: -0.25rem;\n right: -0.25rem;\n bottom: -0.25rem;\n z-index: 0;\n\n background: var(--plasma-tc-tertiary);\n border-radius: inherit;\n opacity: 0;\n transition: opacity 0.15s ease-in-out;\n }\n\n &:hover::before {\n opacity: 0.5;\n }\n"], ["\n position: relative;\n display: grid;\n grid-template:\n 'color name' 1fr\n 'color descr' max-content / 3rem 1fr;\n\n padding-right: 0.25rem;\n border-radius: 2.25rem;\n cursor: pointer;\n\n &::before {\n content: '';\n position: absolute;\n top: -0.25rem;\n left: -0.25rem;\n right: -0.25rem;\n bottom: -0.25rem;\n z-index: 0;\n\n background: var(--plasma-tc-tertiary);\n border-radius: inherit;\n opacity: 0;\n transition: opacity 0.15s ease-in-out;\n }\n\n &:hover::before {\n opacity: 0.5;\n }\n"])));
|
|
230
230
|
var StyledCard = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n height: 5.75rem;\n padding: 0.5rem 0.75rem;\n border-radius: 0.75rem;\n cursor: pointer;\n\n &::before {\n content: '';\n position: absolute;\n top: -0.25rem;\n left: -0.25rem;\n right: -0.25rem;\n bottom: -0.25rem;\n z-index: 0;\n\n box-shadow: inset 0 0 0 0.25rem var(--plasma-tc-tertiary);\n border-radius: 1rem;\n opacity: 0;\n transition: opacity 0.15s ease-in-out;\n }\n\n &:hover::before {\n opacity: 0.5;\n }\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n height: 5.75rem;\n padding: 0.5rem 0.75rem;\n border-radius: 0.75rem;\n cursor: pointer;\n\n &::before {\n content: '';\n position: absolute;\n top: -0.25rem;\n left: -0.25rem;\n right: -0.25rem;\n bottom: -0.25rem;\n z-index: 0;\n\n box-shadow: inset 0 0 0 0.25rem var(--plasma-tc-tertiary);\n border-radius: 1rem;\n opacity: 0;\n transition: opacity 0.15s ease-in-out;\n }\n\n &:hover::before {\n opacity: 0.5;\n }\n"])));
|
|
231
231
|
var StyledColor = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n position: relative;\n\n grid-area: color;\n width: 2.25rem;\n height: 2.25rem;\n border-radius: inherit;\n box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.11), 1px 1px rgba(0, 0, 0, 0.11);\n"], ["\n position: relative;\n\n grid-area: color;\n width: 2.25rem;\n height: 2.25rem;\n border-radius: inherit;\n box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.11), 1px 1px rgba(0, 0, 0, 0.11);\n"])));
|
|
232
|
-
var StyledTitle = styled(Footnote1)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n position: relative;\n grid-area: name;\n color: var(--plasma-tc-primary);\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: none;\n }\n
|
|
232
|
+
var StyledTitle = styled(Footnote1)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n position: relative;\n grid-area: name;\n color: var(--plasma-tc-primary);\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: none;\n }\n"], ["\n position: relative;\n grid-area: name;\n color: var(--plasma-tc-primary);\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: none;\n }\n"])));
|
|
233
233
|
var StyledName = styled(StyledTitle)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: none;\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: block;\n }\n"], ["\n display: none;\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: block;\n }\n"])));
|
|
234
|
-
var StyledDescr = styled(Caption)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n position: relative;\n color: var(--plasma-tc-secondary);\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: none;\n }\n
|
|
234
|
+
var StyledDescr = styled(Caption)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n position: relative;\n color: var(--plasma-tc-secondary);\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: none;\n }\n"], ["\n position: relative;\n color: var(--plasma-tc-secondary);\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: none;\n }\n"])));
|
|
235
235
|
var StyledVar = styled(StyledDescr)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: none;\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: block;\n }\n"], ["\n display: none;\n\n /* stylelint-disable-next-line selector-max-universal, selector-nested-pattern */\n *:hover > & {\n display: block;\n }\n"])));
|
|
236
236
|
var SwatchGroup = function (_a) {
|
|
237
237
|
var group = _a.group, colors = _a.colors;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeColors.js","sourceRoot":"","sources":["../../src/components/ThemeColors.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ThemeColors.js","sourceRoot":"","sources":["../../src/components/ThemeColors.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC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Ac,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,cAAc,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/plasma-sb-utils",
|
|
3
|
-
"version": "0.222.0
|
|
3
|
+
"version": "0.222.0",
|
|
4
4
|
"description": "Code shared between ui libraries.",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
"lint": "../../node_modules/.bin/eslint ./src --ext .ts,.tsx --quiet"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@emotion/react": "11.14.0",
|
|
22
23
|
"@salutejs/plasma-colors": "0.16.0",
|
|
23
|
-
"@salutejs/plasma-core": "1.222.0
|
|
24
|
-
"@salutejs/plasma-icons": "1.234.0
|
|
24
|
+
"@salutejs/plasma-core": "1.222.0",
|
|
25
|
+
"@salutejs/plasma-icons": "1.234.0",
|
|
25
26
|
"@storybook/addon-actions": "8.6.14",
|
|
26
27
|
"@storybook/react": "8.6.14",
|
|
27
28
|
"param-case": "^3.0.4"
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"files": [
|
|
47
48
|
"lib"
|
|
48
49
|
],
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "3cdbc596bd9ed805f8633fbd715d34ab85dd6180"
|
|
50
51
|
}
|