@salutejs/plasma-web 1.596.0-canary.2280.18409919038.0 → 1.596.0-canary.2280.18412321271.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.
@@ -0,0 +1,25 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ };
6
+ variations: {
7
+ view: {
8
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
9
+ secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
+ accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
+ positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
12
+ warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
13
+ negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
+ };
15
+ size: {
16
+ xxl: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
+ xl: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
19
+ m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
20
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
21
+ xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
22
+ xxs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
23
+ };
24
+ };
25
+ };
@@ -0,0 +1,251 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "config", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return config;
9
+ }
10
+ });
11
+ var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
12
+ function _tagged_template_literal(strings, raw) {
13
+ if (!raw) {
14
+ raw = strings.slice(0);
15
+ }
16
+ return Object.freeze(Object.defineProperties(strings, {
17
+ raw: {
18
+ value: Object.freeze(raw)
19
+ }
20
+ }));
21
+ }
22
+ function _templateObject() {
23
+ var data = _tagged_template_literal([
24
+ "\n ",
25
+ ": var(--surface-transparent-tertiary);\n ",
26
+ ": var(--surface-solid-default);\n ",
27
+ ": var(--text-primary);\n "
28
+ ]);
29
+ _templateObject = function _templateObject() {
30
+ return data;
31
+ };
32
+ return data;
33
+ }
34
+ function _templateObject1() {
35
+ var data = _tagged_template_literal([
36
+ "\n ",
37
+ ": var(--surface-transparent-tertiary);\n ",
38
+ ": var(--surface-transparent-secondary);\n ",
39
+ ": var(--text-primary);\n "
40
+ ]);
41
+ _templateObject1 = function _templateObject() {
42
+ return data;
43
+ };
44
+ return data;
45
+ }
46
+ function _templateObject2() {
47
+ var data = _tagged_template_literal([
48
+ "\n ",
49
+ ": var(--surface-transparent-tertiary);\n ",
50
+ ": var(--surface-accent);\n ",
51
+ ": var(--text-primary);\n "
52
+ ]);
53
+ _templateObject2 = function _templateObject() {
54
+ return data;
55
+ };
56
+ return data;
57
+ }
58
+ function _templateObject3() {
59
+ var data = _tagged_template_literal([
60
+ "\n ",
61
+ ": var(--surface-transparent-tertiary);\n ",
62
+ ": var(--surface-positive);\n ",
63
+ ": var(--text-primary);\n "
64
+ ]);
65
+ _templateObject3 = function _templateObject() {
66
+ return data;
67
+ };
68
+ return data;
69
+ }
70
+ function _templateObject4() {
71
+ var data = _tagged_template_literal([
72
+ "\n ",
73
+ ": var(--surface-transparent-tertiary);\n ",
74
+ ": var(--surface-warning);\n ",
75
+ ": var(--text-primary);\n "
76
+ ]);
77
+ _templateObject4 = function _templateObject() {
78
+ return data;
79
+ };
80
+ return data;
81
+ }
82
+ function _templateObject5() {
83
+ var data = _tagged_template_literal([
84
+ "\n ",
85
+ ": var(--surface-transparent-tertiary);\n ",
86
+ ": var(--surface-negative);\n ",
87
+ ": var(--text-primary);\n "
88
+ ]);
89
+ _templateObject5 = function _templateObject() {
90
+ return data;
91
+ };
92
+ return data;
93
+ }
94
+ function _templateObject6() {
95
+ var data = _tagged_template_literal([
96
+ "\n ",
97
+ ": 8rem;\n ",
98
+ ": 8rem;\n ",
99
+ ": 0.25rem;\n ",
100
+ ": 0.25rem;\n ",
101
+ ": var(--plasma-typo-h2-font-family);\n ",
102
+ ": var(--plasma-typo-h2-font-size);\n ",
103
+ ": var(--plasma-typo-h2-font-style);\n ",
104
+ ": var(--plasma-typo-h2-bold-font-weight);\n ",
105
+ ": var(--plasma-typo-h2-letter-spacing);\n ",
106
+ ": var(--plasma-typo-h2-line-height);\n "
107
+ ]);
108
+ _templateObject6 = function _templateObject() {
109
+ return data;
110
+ };
111
+ return data;
112
+ }
113
+ function _templateObject7() {
114
+ var data = _tagged_template_literal([
115
+ "\n ",
116
+ ": 5.5rem;\n ",
117
+ ": 5.5rem;\n ",
118
+ ": 0.25rem;\n ",
119
+ ": 0.25rem;\n ",
120
+ ": var(--plasma-typo-h5-font-family);\n ",
121
+ ": var(--plasma-typo-h5-font-size);\n ",
122
+ ": var(--plasma-typo-h5-font-style);\n ",
123
+ ": var(--plasma-typo-h5-bold-font-weight);\n ",
124
+ ": var(--plasma-typo-h5-letter-spacing);\n ",
125
+ ": var(--plasma-typo-h5-line-height);\n "
126
+ ]);
127
+ _templateObject7 = function _templateObject() {
128
+ return data;
129
+ };
130
+ return data;
131
+ }
132
+ function _templateObject8() {
133
+ var data = _tagged_template_literal([
134
+ "\n ",
135
+ ": 3.5rem;\n ",
136
+ ": 3.5rem;\n ",
137
+ ": 0.125rem;\n ",
138
+ ": 0.125rem;\n ",
139
+ ": var(--plasma-typo-body-l-font-family);\n ",
140
+ ": var(--plasma-typo-body-l-font-size);\n ",
141
+ ": var(--plasma-typo-body-l-font-style);\n ",
142
+ ": var(--plasma-typo-body-l-body-font-weight);\n ",
143
+ ": var(--plasma-typo-body-l-letter-spacing);\n ",
144
+ ": var(--plasma-typo-body-l-line-height);\n "
145
+ ]);
146
+ _templateObject8 = function _templateObject() {
147
+ return data;
148
+ };
149
+ return data;
150
+ }
151
+ function _templateObject9() {
152
+ var data = _tagged_template_literal([
153
+ "\n ",
154
+ ": 3rem;\n ",
155
+ ": 3rem;\n ",
156
+ ": 0.125rem;\n ",
157
+ ": 0.125rem;\n ",
158
+ ": var(--plasma-typo-body-m-font-family);\n ",
159
+ ": var(--plasma-typo-body-m-font-size);\n ",
160
+ ": var(--plasma-typo-body-m-font-style);\n ",
161
+ ": var(--plasma-typo-body-m-body-font-weight);\n ",
162
+ ": var(--plasma-typo-body-m-letter-spacing);\n ",
163
+ ": var(--plasma-typo-body-m-line-height);\n "
164
+ ]);
165
+ _templateObject9 = function _templateObject() {
166
+ return data;
167
+ };
168
+ return data;
169
+ }
170
+ function _templateObject10() {
171
+ var data = _tagged_template_literal([
172
+ "\n ",
173
+ ": 2.25rem;\n ",
174
+ ": 2.25rem;\n ",
175
+ ": 0.125rem;\n ",
176
+ ": 0.125rem;\n ",
177
+ ": var(--plasma-typo-body-s-font-family);\n ",
178
+ ": var(--plasma-typo-body-s-font-size);\n ",
179
+ ": var(--plasma-typo-body-s-font-style);\n ",
180
+ ": var(--plasma-typo-body-s-body-font-weight);\n ",
181
+ ": var(--plasma-typo-body-s-letter-spacing);\n ",
182
+ ": var(--plasma-typo-body-s-line-height);\n "
183
+ ]);
184
+ _templateObject10 = function _templateObject() {
185
+ return data;
186
+ };
187
+ return data;
188
+ }
189
+ function _templateObject11() {
190
+ var data = _tagged_template_literal([
191
+ "\n ",
192
+ ": 1.5rem;\n ",
193
+ ": 1.5rem;\n ",
194
+ ": 0.125rem;\n ",
195
+ ": 0.125rem;\n ",
196
+ ": var(--plasma-typo-body-xs-font-family);\n ",
197
+ ": var(--plasma-typo-body-xs-font-size);\n ",
198
+ ": var(--plasma-typo-body-xs-font-style);\n ",
199
+ ": var(--plasma-typo-body-xs-body-font-weight);\n ",
200
+ ": var(--plasma-typo-body-xs-letter-spacing);\n ",
201
+ ": var(--plasma-typo-body-xs-line-height);\n "
202
+ ]);
203
+ _templateObject11 = function _templateObject() {
204
+ return data;
205
+ };
206
+ return data;
207
+ }
208
+ function _templateObject12() {
209
+ var data = _tagged_template_literal([
210
+ "\n ",
211
+ ": 1rem;\n ",
212
+ ": 1rem;\n ",
213
+ ": 0.125rem;\n ",
214
+ ": 0.125rem;\n ",
215
+ ": var(--plasma-typo-body-xxs-font-family);\n ",
216
+ ": var(--plasma-typo-body-xxs-font-size);\n ",
217
+ ": var(--plasma-typo-body-xxs-font-style);\n ",
218
+ ": var(--plasma-typo-body-xxs-body-font-weight);\n ",
219
+ ": var(--plasma-typo-body-xxs-letter-spacing);\n ",
220
+ ": var(--plasma-typo-body-xxs-line-height);\n "
221
+ ]);
222
+ _templateObject12 = function _templateObject() {
223
+ return data;
224
+ };
225
+ return data;
226
+ }
227
+ var config = {
228
+ defaults: {
229
+ view: 'default',
230
+ size: 'm'
231
+ },
232
+ variations: {
233
+ view: {
234
+ default: (0, _styledcomponents.css)(_templateObject(), _styledcomponents.progressBarCircularTokens.backgroundStroke, _styledcomponents.progressBarCircularTokens.progressStroke, _styledcomponents.progressBarCircularTokens.contentColor),
235
+ secondary: (0, _styledcomponents.css)(_templateObject1(), _styledcomponents.progressBarCircularTokens.backgroundStroke, _styledcomponents.progressBarCircularTokens.progressStroke, _styledcomponents.progressBarCircularTokens.contentColor),
236
+ accent: (0, _styledcomponents.css)(_templateObject2(), _styledcomponents.progressBarCircularTokens.backgroundStroke, _styledcomponents.progressBarCircularTokens.progressStroke, _styledcomponents.progressBarCircularTokens.contentColor),
237
+ positive: (0, _styledcomponents.css)(_templateObject3(), _styledcomponents.progressBarCircularTokens.backgroundStroke, _styledcomponents.progressBarCircularTokens.progressStroke, _styledcomponents.progressBarCircularTokens.contentColor),
238
+ warning: (0, _styledcomponents.css)(_templateObject4(), _styledcomponents.progressBarCircularTokens.backgroundStroke, _styledcomponents.progressBarCircularTokens.progressStroke, _styledcomponents.progressBarCircularTokens.contentColor),
239
+ negative: (0, _styledcomponents.css)(_templateObject5(), _styledcomponents.progressBarCircularTokens.backgroundStroke, _styledcomponents.progressBarCircularTokens.progressStroke, _styledcomponents.progressBarCircularTokens.contentColor)
240
+ },
241
+ size: {
242
+ xxl: (0, _styledcomponents.css)(_templateObject6(), _styledcomponents.progressBarCircularTokens.width, _styledcomponents.progressBarCircularTokens.height, _styledcomponents.progressBarCircularTokens.backgroundStrokeWidth, _styledcomponents.progressBarCircularTokens.progressStrokeWidth, _styledcomponents.progressBarCircularTokens.contentFontFamily, _styledcomponents.progressBarCircularTokens.contentFontSize, _styledcomponents.progressBarCircularTokens.contentFontStyle, _styledcomponents.progressBarCircularTokens.contentFontWeight, _styledcomponents.progressBarCircularTokens.contentLetterSpacing, _styledcomponents.progressBarCircularTokens.contentLineHeight),
243
+ xl: (0, _styledcomponents.css)(_templateObject7(), _styledcomponents.progressBarCircularTokens.width, _styledcomponents.progressBarCircularTokens.height, _styledcomponents.progressBarCircularTokens.backgroundStrokeWidth, _styledcomponents.progressBarCircularTokens.progressStrokeWidth, _styledcomponents.progressBarCircularTokens.contentFontFamily, _styledcomponents.progressBarCircularTokens.contentFontSize, _styledcomponents.progressBarCircularTokens.contentFontStyle, _styledcomponents.progressBarCircularTokens.contentFontWeight, _styledcomponents.progressBarCircularTokens.contentLetterSpacing, _styledcomponents.progressBarCircularTokens.contentLineHeight),
244
+ l: (0, _styledcomponents.css)(_templateObject8(), _styledcomponents.progressBarCircularTokens.width, _styledcomponents.progressBarCircularTokens.height, _styledcomponents.progressBarCircularTokens.backgroundStrokeWidth, _styledcomponents.progressBarCircularTokens.progressStrokeWidth, _styledcomponents.progressBarCircularTokens.contentFontFamily, _styledcomponents.progressBarCircularTokens.contentFontSize, _styledcomponents.progressBarCircularTokens.contentFontStyle, _styledcomponents.progressBarCircularTokens.contentFontWeight, _styledcomponents.progressBarCircularTokens.contentLetterSpacing, _styledcomponents.progressBarCircularTokens.contentLineHeight),
245
+ m: (0, _styledcomponents.css)(_templateObject9(), _styledcomponents.progressBarCircularTokens.width, _styledcomponents.progressBarCircularTokens.height, _styledcomponents.progressBarCircularTokens.backgroundStrokeWidth, _styledcomponents.progressBarCircularTokens.progressStrokeWidth, _styledcomponents.progressBarCircularTokens.contentFontFamily, _styledcomponents.progressBarCircularTokens.contentFontSize, _styledcomponents.progressBarCircularTokens.contentFontStyle, _styledcomponents.progressBarCircularTokens.contentFontWeight, _styledcomponents.progressBarCircularTokens.contentLetterSpacing, _styledcomponents.progressBarCircularTokens.contentLineHeight),
246
+ s: (0, _styledcomponents.css)(_templateObject10(), _styledcomponents.progressBarCircularTokens.width, _styledcomponents.progressBarCircularTokens.height, _styledcomponents.progressBarCircularTokens.backgroundStrokeWidth, _styledcomponents.progressBarCircularTokens.progressStrokeWidth, _styledcomponents.progressBarCircularTokens.contentFontFamily, _styledcomponents.progressBarCircularTokens.contentFontSize, _styledcomponents.progressBarCircularTokens.contentFontStyle, _styledcomponents.progressBarCircularTokens.contentFontWeight, _styledcomponents.progressBarCircularTokens.contentLetterSpacing, _styledcomponents.progressBarCircularTokens.contentLineHeight),
247
+ xs: (0, _styledcomponents.css)(_templateObject11(), _styledcomponents.progressBarCircularTokens.width, _styledcomponents.progressBarCircularTokens.height, _styledcomponents.progressBarCircularTokens.backgroundStrokeWidth, _styledcomponents.progressBarCircularTokens.progressStrokeWidth, _styledcomponents.progressBarCircularTokens.contentFontFamily, _styledcomponents.progressBarCircularTokens.contentFontSize, _styledcomponents.progressBarCircularTokens.contentFontStyle, _styledcomponents.progressBarCircularTokens.contentFontWeight, _styledcomponents.progressBarCircularTokens.contentLetterSpacing, _styledcomponents.progressBarCircularTokens.contentLineHeight),
248
+ xxs: (0, _styledcomponents.css)(_templateObject12(), _styledcomponents.progressBarCircularTokens.width, _styledcomponents.progressBarCircularTokens.height, _styledcomponents.progressBarCircularTokens.backgroundStrokeWidth, _styledcomponents.progressBarCircularTokens.progressStrokeWidth, _styledcomponents.progressBarCircularTokens.contentFontFamily, _styledcomponents.progressBarCircularTokens.contentFontSize, _styledcomponents.progressBarCircularTokens.contentFontStyle, _styledcomponents.progressBarCircularTokens.contentFontWeight, _styledcomponents.progressBarCircularTokens.contentLetterSpacing, _styledcomponents.progressBarCircularTokens.contentLineHeight)
249
+ }
250
+ }
251
+ };
@@ -0,0 +1,19 @@
1
+ export declare const ProgressBarCircular: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
2
+ view: {
3
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
4
+ secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
+ accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
6
+ positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
+ warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
+ negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
9
+ };
10
+ size: {
11
+ xxl: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
12
+ xl: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
13
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
+ m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
15
+ s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
16
+ xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
+ xxs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
+ };
19
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("@salutejs/plasma-new-hope/types/components/ProgressBarCircular/ProgressBarCircular.types").CustomProgressBarCircularProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "ProgressBarCircular", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return ProgressBarCircular;
9
+ }
10
+ });
11
+ var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
12
+ var _ProgressBarCircularconfig = require("./ProgressBarCircular.config");
13
+ var mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.progressBarCircularConfig, _ProgressBarCircularconfig.config);
14
+ var ProgressBarCircular = (0, _styledcomponents.component)(mergedConfig);
@@ -1,3 +1,2 @@
1
1
  export { ProgressBarCircular } from './ProgressBarCircular';
2
-
3
2
  export type { ProgressProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "ProgressBarCircular", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _ProgressBarCircular.ProgressBarCircular;
9
+ }
10
+ });
11
+ var _ProgressBarCircular = require("./ProgressBarCircular");
package/css/index.d.ts CHANGED
@@ -50,6 +50,7 @@ export * from '../components/PopupBase';
50
50
  export * from '../components/Portal';
51
51
  export * from '../components/Price';
52
52
  export * from '../components/Progress';
53
+ export * from '../components/ProgressBarCircular';
53
54
  export * from '../components/Radiobox';
54
55
  export * from '../components/Range';
55
56
  export * from '../components/Rating';
@@ -128,6 +129,7 @@ export * from '../components/PopupBase';
128
129
  export * from '../components/Portal';
129
130
  export * from '../components/Price';
130
131
  export * from '../components/Progress';
132
+ export * from '../components/ProgressBarCircular';
131
133
  export * from '../components/Radiobox';
132
134
  export * from '../components/Range';
133
135
  export * from '../components/Rating';
@@ -0,0 +1,241 @@
1
+ function _tagged_template_literal(strings, raw) {
2
+ if (!raw) {
3
+ raw = strings.slice(0);
4
+ }
5
+ return Object.freeze(Object.defineProperties(strings, {
6
+ raw: {
7
+ value: Object.freeze(raw)
8
+ }
9
+ }));
10
+ }
11
+ function _templateObject() {
12
+ var data = _tagged_template_literal([
13
+ "\n ",
14
+ ": var(--surface-transparent-tertiary);\n ",
15
+ ": var(--surface-solid-default);\n ",
16
+ ": var(--text-primary);\n "
17
+ ]);
18
+ _templateObject = function _templateObject() {
19
+ return data;
20
+ };
21
+ return data;
22
+ }
23
+ function _templateObject1() {
24
+ var data = _tagged_template_literal([
25
+ "\n ",
26
+ ": var(--surface-transparent-tertiary);\n ",
27
+ ": var(--surface-transparent-secondary);\n ",
28
+ ": var(--text-primary);\n "
29
+ ]);
30
+ _templateObject1 = function _templateObject() {
31
+ return data;
32
+ };
33
+ return data;
34
+ }
35
+ function _templateObject2() {
36
+ var data = _tagged_template_literal([
37
+ "\n ",
38
+ ": var(--surface-transparent-tertiary);\n ",
39
+ ": var(--surface-accent);\n ",
40
+ ": var(--text-primary);\n "
41
+ ]);
42
+ _templateObject2 = function _templateObject() {
43
+ return data;
44
+ };
45
+ return data;
46
+ }
47
+ function _templateObject3() {
48
+ var data = _tagged_template_literal([
49
+ "\n ",
50
+ ": var(--surface-transparent-tertiary);\n ",
51
+ ": var(--surface-positive);\n ",
52
+ ": var(--text-primary);\n "
53
+ ]);
54
+ _templateObject3 = function _templateObject() {
55
+ return data;
56
+ };
57
+ return data;
58
+ }
59
+ function _templateObject4() {
60
+ var data = _tagged_template_literal([
61
+ "\n ",
62
+ ": var(--surface-transparent-tertiary);\n ",
63
+ ": var(--surface-warning);\n ",
64
+ ": var(--text-primary);\n "
65
+ ]);
66
+ _templateObject4 = function _templateObject() {
67
+ return data;
68
+ };
69
+ return data;
70
+ }
71
+ function _templateObject5() {
72
+ var data = _tagged_template_literal([
73
+ "\n ",
74
+ ": var(--surface-transparent-tertiary);\n ",
75
+ ": var(--surface-negative);\n ",
76
+ ": var(--text-primary);\n "
77
+ ]);
78
+ _templateObject5 = function _templateObject() {
79
+ return data;
80
+ };
81
+ return data;
82
+ }
83
+ function _templateObject6() {
84
+ var data = _tagged_template_literal([
85
+ "\n ",
86
+ ": 8rem;\n ",
87
+ ": 8rem;\n ",
88
+ ": 0.25rem;\n ",
89
+ ": 0.25rem;\n ",
90
+ ": var(--plasma-typo-h2-font-family);\n ",
91
+ ": var(--plasma-typo-h2-font-size);\n ",
92
+ ": var(--plasma-typo-h2-font-style);\n ",
93
+ ": var(--plasma-typo-h2-bold-font-weight);\n ",
94
+ ": var(--plasma-typo-h2-letter-spacing);\n ",
95
+ ": var(--plasma-typo-h2-line-height);\n "
96
+ ]);
97
+ _templateObject6 = function _templateObject() {
98
+ return data;
99
+ };
100
+ return data;
101
+ }
102
+ function _templateObject7() {
103
+ var data = _tagged_template_literal([
104
+ "\n ",
105
+ ": 5.5rem;\n ",
106
+ ": 5.5rem;\n ",
107
+ ": 0.25rem;\n ",
108
+ ": 0.25rem;\n ",
109
+ ": var(--plasma-typo-h5-font-family);\n ",
110
+ ": var(--plasma-typo-h5-font-size);\n ",
111
+ ": var(--plasma-typo-h5-font-style);\n ",
112
+ ": var(--plasma-typo-h5-bold-font-weight);\n ",
113
+ ": var(--plasma-typo-h5-letter-spacing);\n ",
114
+ ": var(--plasma-typo-h5-line-height);\n "
115
+ ]);
116
+ _templateObject7 = function _templateObject() {
117
+ return data;
118
+ };
119
+ return data;
120
+ }
121
+ function _templateObject8() {
122
+ var data = _tagged_template_literal([
123
+ "\n ",
124
+ ": 3.5rem;\n ",
125
+ ": 3.5rem;\n ",
126
+ ": 0.125rem;\n ",
127
+ ": 0.125rem;\n ",
128
+ ": var(--plasma-typo-body-l-font-family);\n ",
129
+ ": var(--plasma-typo-body-l-font-size);\n ",
130
+ ": var(--plasma-typo-body-l-font-style);\n ",
131
+ ": var(--plasma-typo-body-l-body-font-weight);\n ",
132
+ ": var(--plasma-typo-body-l-letter-spacing);\n ",
133
+ ": var(--plasma-typo-body-l-line-height);\n "
134
+ ]);
135
+ _templateObject8 = function _templateObject() {
136
+ return data;
137
+ };
138
+ return data;
139
+ }
140
+ function _templateObject9() {
141
+ var data = _tagged_template_literal([
142
+ "\n ",
143
+ ": 3rem;\n ",
144
+ ": 3rem;\n ",
145
+ ": 0.125rem;\n ",
146
+ ": 0.125rem;\n ",
147
+ ": var(--plasma-typo-body-m-font-family);\n ",
148
+ ": var(--plasma-typo-body-m-font-size);\n ",
149
+ ": var(--plasma-typo-body-m-font-style);\n ",
150
+ ": var(--plasma-typo-body-m-body-font-weight);\n ",
151
+ ": var(--plasma-typo-body-m-letter-spacing);\n ",
152
+ ": var(--plasma-typo-body-m-line-height);\n "
153
+ ]);
154
+ _templateObject9 = function _templateObject() {
155
+ return data;
156
+ };
157
+ return data;
158
+ }
159
+ function _templateObject10() {
160
+ var data = _tagged_template_literal([
161
+ "\n ",
162
+ ": 2.25rem;\n ",
163
+ ": 2.25rem;\n ",
164
+ ": 0.125rem;\n ",
165
+ ": 0.125rem;\n ",
166
+ ": var(--plasma-typo-body-s-font-family);\n ",
167
+ ": var(--plasma-typo-body-s-font-size);\n ",
168
+ ": var(--plasma-typo-body-s-font-style);\n ",
169
+ ": var(--plasma-typo-body-s-body-font-weight);\n ",
170
+ ": var(--plasma-typo-body-s-letter-spacing);\n ",
171
+ ": var(--plasma-typo-body-s-line-height);\n "
172
+ ]);
173
+ _templateObject10 = function _templateObject() {
174
+ return data;
175
+ };
176
+ return data;
177
+ }
178
+ function _templateObject11() {
179
+ var data = _tagged_template_literal([
180
+ "\n ",
181
+ ": 1.5rem;\n ",
182
+ ": 1.5rem;\n ",
183
+ ": 0.125rem;\n ",
184
+ ": 0.125rem;\n ",
185
+ ": var(--plasma-typo-body-xs-font-family);\n ",
186
+ ": var(--plasma-typo-body-xs-font-size);\n ",
187
+ ": var(--plasma-typo-body-xs-font-style);\n ",
188
+ ": var(--plasma-typo-body-xs-body-font-weight);\n ",
189
+ ": var(--plasma-typo-body-xs-letter-spacing);\n ",
190
+ ": var(--plasma-typo-body-xs-line-height);\n "
191
+ ]);
192
+ _templateObject11 = function _templateObject() {
193
+ return data;
194
+ };
195
+ return data;
196
+ }
197
+ function _templateObject12() {
198
+ var data = _tagged_template_literal([
199
+ "\n ",
200
+ ": 1rem;\n ",
201
+ ": 1rem;\n ",
202
+ ": 0.125rem;\n ",
203
+ ": 0.125rem;\n ",
204
+ ": var(--plasma-typo-body-xxs-font-family);\n ",
205
+ ": var(--plasma-typo-body-xxs-font-size);\n ",
206
+ ": var(--plasma-typo-body-xxs-font-style);\n ",
207
+ ": var(--plasma-typo-body-xxs-body-font-weight);\n ",
208
+ ": var(--plasma-typo-body-xxs-letter-spacing);\n ",
209
+ ": var(--plasma-typo-body-xxs-line-height);\n "
210
+ ]);
211
+ _templateObject12 = function _templateObject() {
212
+ return data;
213
+ };
214
+ return data;
215
+ }
216
+ import { css, progressBarCircularTokens } from '@salutejs/plasma-new-hope/styled-components';
217
+ export var config = {
218
+ defaults: {
219
+ view: 'default',
220
+ size: 'm'
221
+ },
222
+ variations: {
223
+ view: {
224
+ default: css(_templateObject(), progressBarCircularTokens.backgroundStroke, progressBarCircularTokens.progressStroke, progressBarCircularTokens.contentColor),
225
+ secondary: css(_templateObject1(), progressBarCircularTokens.backgroundStroke, progressBarCircularTokens.progressStroke, progressBarCircularTokens.contentColor),
226
+ accent: css(_templateObject2(), progressBarCircularTokens.backgroundStroke, progressBarCircularTokens.progressStroke, progressBarCircularTokens.contentColor),
227
+ positive: css(_templateObject3(), progressBarCircularTokens.backgroundStroke, progressBarCircularTokens.progressStroke, progressBarCircularTokens.contentColor),
228
+ warning: css(_templateObject4(), progressBarCircularTokens.backgroundStroke, progressBarCircularTokens.progressStroke, progressBarCircularTokens.contentColor),
229
+ negative: css(_templateObject5(), progressBarCircularTokens.backgroundStroke, progressBarCircularTokens.progressStroke, progressBarCircularTokens.contentColor)
230
+ },
231
+ size: {
232
+ xxl: css(_templateObject6(), progressBarCircularTokens.width, progressBarCircularTokens.height, progressBarCircularTokens.backgroundStrokeWidth, progressBarCircularTokens.progressStrokeWidth, progressBarCircularTokens.contentFontFamily, progressBarCircularTokens.contentFontSize, progressBarCircularTokens.contentFontStyle, progressBarCircularTokens.contentFontWeight, progressBarCircularTokens.contentLetterSpacing, progressBarCircularTokens.contentLineHeight),
233
+ xl: css(_templateObject7(), progressBarCircularTokens.width, progressBarCircularTokens.height, progressBarCircularTokens.backgroundStrokeWidth, progressBarCircularTokens.progressStrokeWidth, progressBarCircularTokens.contentFontFamily, progressBarCircularTokens.contentFontSize, progressBarCircularTokens.contentFontStyle, progressBarCircularTokens.contentFontWeight, progressBarCircularTokens.contentLetterSpacing, progressBarCircularTokens.contentLineHeight),
234
+ l: css(_templateObject8(), progressBarCircularTokens.width, progressBarCircularTokens.height, progressBarCircularTokens.backgroundStrokeWidth, progressBarCircularTokens.progressStrokeWidth, progressBarCircularTokens.contentFontFamily, progressBarCircularTokens.contentFontSize, progressBarCircularTokens.contentFontStyle, progressBarCircularTokens.contentFontWeight, progressBarCircularTokens.contentLetterSpacing, progressBarCircularTokens.contentLineHeight),
235
+ m: css(_templateObject9(), progressBarCircularTokens.width, progressBarCircularTokens.height, progressBarCircularTokens.backgroundStrokeWidth, progressBarCircularTokens.progressStrokeWidth, progressBarCircularTokens.contentFontFamily, progressBarCircularTokens.contentFontSize, progressBarCircularTokens.contentFontStyle, progressBarCircularTokens.contentFontWeight, progressBarCircularTokens.contentLetterSpacing, progressBarCircularTokens.contentLineHeight),
236
+ s: css(_templateObject10(), progressBarCircularTokens.width, progressBarCircularTokens.height, progressBarCircularTokens.backgroundStrokeWidth, progressBarCircularTokens.progressStrokeWidth, progressBarCircularTokens.contentFontFamily, progressBarCircularTokens.contentFontSize, progressBarCircularTokens.contentFontStyle, progressBarCircularTokens.contentFontWeight, progressBarCircularTokens.contentLetterSpacing, progressBarCircularTokens.contentLineHeight),
237
+ xs: css(_templateObject11(), progressBarCircularTokens.width, progressBarCircularTokens.height, progressBarCircularTokens.backgroundStrokeWidth, progressBarCircularTokens.progressStrokeWidth, progressBarCircularTokens.contentFontFamily, progressBarCircularTokens.contentFontSize, progressBarCircularTokens.contentFontStyle, progressBarCircularTokens.contentFontWeight, progressBarCircularTokens.contentLetterSpacing, progressBarCircularTokens.contentLineHeight),
238
+ xxs: css(_templateObject12(), progressBarCircularTokens.width, progressBarCircularTokens.height, progressBarCircularTokens.backgroundStrokeWidth, progressBarCircularTokens.progressStrokeWidth, progressBarCircularTokens.contentFontFamily, progressBarCircularTokens.contentFontSize, progressBarCircularTokens.contentFontStyle, progressBarCircularTokens.contentFontWeight, progressBarCircularTokens.contentLetterSpacing, progressBarCircularTokens.contentLineHeight)
239
+ }
240
+ }
241
+ };
@@ -1,7 +1,4 @@
1
1
  import { progressBarCircularConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
-
3
2
  import { config } from './ProgressBarCircular.config';
4
-
5
- const mergedConfig = mergeConfig(progressBarCircularConfig, config);
6
-
7
- export const ProgressBarCircular = component(mergedConfig);
3
+ var mergedConfig = mergeConfig(progressBarCircularConfig, config);
4
+ export var ProgressBarCircular = component(mergedConfig);
@@ -0,0 +1 @@
1
+ export { ProgressBarCircular } from './ProgressBarCircular';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-web",
3
- "version": "1.596.0-canary.2280.18409919038.0",
3
+ "version": "1.596.0-canary.2280.18412321271.0",
4
4
  "description": "Salute Design System / React UI kit for web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@salutejs/plasma-core": "1.208.0",
23
23
  "@salutejs/plasma-hope": "1.353.0",
24
- "@salutejs/plasma-new-hope": "0.338.0-canary.2280.18409919038.0",
24
+ "@salutejs/plasma-new-hope": "0.338.0-canary.2280.18412321271.0",
25
25
  "@salutejs/plasma-themes": "0.38.0",
26
26
  "@salutejs/plasma-tokens-b2b": "1.54.0",
27
27
  "@salutejs/plasma-tokens-b2c": "0.65.0",
@@ -111,5 +111,5 @@
111
111
  "Fanil Zubairov"
112
112
  ],
113
113
  "sideEffects": false,
114
- "gitHead": "c513ab146a150c8c0dae83fbb8005adbfb1a044d"
114
+ "gitHead": "869e9ab7e4a97e1e36bf2daa9d25fd724c5cfc54"
115
115
  }
@@ -1,128 +0,0 @@
1
- import { css, progressBarCircularTokens } from '@salutejs/plasma-new-hope/styled-components';
2
-
3
- export const config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'm',
7
- },
8
- variations: {
9
- view: {
10
- default: css`
11
- ${progressBarCircularTokens.backgroundStroke}: var(--surface-transparent-tertiary);
12
- ${progressBarCircularTokens.progressStroke}: var(--surface-solid-default);
13
- ${progressBarCircularTokens.contentColor}: var(--text-primary);
14
- `,
15
- secondary: css`
16
- ${progressBarCircularTokens.backgroundStroke}: var(--surface-transparent-tertiary);
17
- ${progressBarCircularTokens.progressStroke}: var(--surface-transparent-secondary);
18
- ${progressBarCircularTokens.contentColor}: var(--text-primary);
19
- `,
20
- accent: css`
21
- ${progressBarCircularTokens.backgroundStroke}: var(--surface-transparent-tertiary);
22
- ${progressBarCircularTokens.progressStroke}: var(--surface-accent);
23
- ${progressBarCircularTokens.contentColor}: var(--text-primary);
24
- `,
25
- positive: css`
26
- ${progressBarCircularTokens.backgroundStroke}: var(--surface-transparent-tertiary);
27
- ${progressBarCircularTokens.progressStroke}: var(--surface-positive);
28
- ${progressBarCircularTokens.contentColor}: var(--text-primary);
29
- `,
30
- warning: css`
31
- ${progressBarCircularTokens.backgroundStroke}: var(--surface-transparent-tertiary);
32
- ${progressBarCircularTokens.progressStroke}: var(--surface-warning);
33
- ${progressBarCircularTokens.contentColor}: var(--text-primary);
34
- `,
35
- negative: css`
36
- ${progressBarCircularTokens.backgroundStroke}: var(--surface-transparent-tertiary);
37
- ${progressBarCircularTokens.progressStroke}: var(--surface-negative);
38
- ${progressBarCircularTokens.contentColor}: var(--text-primary);
39
- `,
40
- },
41
- size: {
42
- xxl: css`
43
- ${progressBarCircularTokens.width}: 8rem;
44
- ${progressBarCircularTokens.height}: 8rem;
45
- ${progressBarCircularTokens.backgroundStrokeWidth}: 0.25rem;
46
- ${progressBarCircularTokens.progressStrokeWidth}: 0.25rem;
47
- ${progressBarCircularTokens.contentFontFamily}: var(--plasma-typo-h2-font-family);
48
- ${progressBarCircularTokens.contentFontSize}: var(--plasma-typo-h2-font-size);
49
- ${progressBarCircularTokens.contentFontStyle}: var(--plasma-typo-h2-font-style);
50
- ${progressBarCircularTokens.contentFontWeight}: var(--plasma-typo-h2-bold-font-weight);
51
- ${progressBarCircularTokens.contentLetterSpacing}: var(--plasma-typo-h2-letter-spacing);
52
- ${progressBarCircularTokens.contentLineHeight}: var(--plasma-typo-h2-line-height);
53
- `,
54
- xl: css`
55
- ${progressBarCircularTokens.width}: 5.5rem;
56
- ${progressBarCircularTokens.height}: 5.5rem;
57
- ${progressBarCircularTokens.backgroundStrokeWidth}: 0.25rem;
58
- ${progressBarCircularTokens.progressStrokeWidth}: 0.25rem;
59
- ${progressBarCircularTokens.contentFontFamily}: var(--plasma-typo-h5-font-family);
60
- ${progressBarCircularTokens.contentFontSize}: var(--plasma-typo-h5-font-size);
61
- ${progressBarCircularTokens.contentFontStyle}: var(--plasma-typo-h5-font-style);
62
- ${progressBarCircularTokens.contentFontWeight}: var(--plasma-typo-h5-bold-font-weight);
63
- ${progressBarCircularTokens.contentLetterSpacing}: var(--plasma-typo-h5-letter-spacing);
64
- ${progressBarCircularTokens.contentLineHeight}: var(--plasma-typo-h5-line-height);
65
- `,
66
- l: css`
67
- ${progressBarCircularTokens.width}: 3.5rem;
68
- ${progressBarCircularTokens.height}: 3.5rem;
69
- ${progressBarCircularTokens.backgroundStrokeWidth}: 0.125rem;
70
- ${progressBarCircularTokens.progressStrokeWidth}: 0.125rem;
71
- ${progressBarCircularTokens.contentFontFamily}: var(--plasma-typo-body-l-font-family);
72
- ${progressBarCircularTokens.contentFontSize}: var(--plasma-typo-body-l-font-size);
73
- ${progressBarCircularTokens.contentFontStyle}: var(--plasma-typo-body-l-font-style);
74
- ${progressBarCircularTokens.contentFontWeight}: var(--plasma-typo-body-l-body-font-weight);
75
- ${progressBarCircularTokens.contentLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
76
- ${progressBarCircularTokens.contentLineHeight}: var(--plasma-typo-body-l-line-height);
77
- `,
78
- m: css`
79
- ${progressBarCircularTokens.width}: 3rem;
80
- ${progressBarCircularTokens.height}: 3rem;
81
- ${progressBarCircularTokens.backgroundStrokeWidth}: 0.125rem;
82
- ${progressBarCircularTokens.progressStrokeWidth}: 0.125rem;
83
- ${progressBarCircularTokens.contentFontFamily}: var(--plasma-typo-body-m-font-family);
84
- ${progressBarCircularTokens.contentFontSize}: var(--plasma-typo-body-m-font-size);
85
- ${progressBarCircularTokens.contentFontStyle}: var(--plasma-typo-body-m-font-style);
86
- ${progressBarCircularTokens.contentFontWeight}: var(--plasma-typo-body-m-body-font-weight);
87
- ${progressBarCircularTokens.contentLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
88
- ${progressBarCircularTokens.contentLineHeight}: var(--plasma-typo-body-m-line-height);
89
- `,
90
- s: css`
91
- ${progressBarCircularTokens.width}: 2.25rem;
92
- ${progressBarCircularTokens.height}: 2.25rem;
93
- ${progressBarCircularTokens.backgroundStrokeWidth}: 0.125rem;
94
- ${progressBarCircularTokens.progressStrokeWidth}: 0.125rem;
95
- ${progressBarCircularTokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);
96
- ${progressBarCircularTokens.contentFontSize}: var(--plasma-typo-body-s-font-size);
97
- ${progressBarCircularTokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);
98
- ${progressBarCircularTokens.contentFontWeight}: var(--plasma-typo-body-s-body-font-weight);
99
- ${progressBarCircularTokens.contentLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
100
- ${progressBarCircularTokens.contentLineHeight}: var(--plasma-typo-body-s-line-height);
101
- `,
102
- xs: css`
103
- ${progressBarCircularTokens.width}: 1.5rem;
104
- ${progressBarCircularTokens.height}: 1.5rem;
105
- ${progressBarCircularTokens.backgroundStrokeWidth}: 0.125rem;
106
- ${progressBarCircularTokens.progressStrokeWidth}: 0.125rem;
107
- ${progressBarCircularTokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);
108
- ${progressBarCircularTokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);
109
- ${progressBarCircularTokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);
110
- ${progressBarCircularTokens.contentFontWeight}: var(--plasma-typo-body-xs-body-font-weight);
111
- ${progressBarCircularTokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
112
- ${progressBarCircularTokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);
113
- `,
114
- xxs: css`
115
- ${progressBarCircularTokens.width}: 1rem;
116
- ${progressBarCircularTokens.height}: 1rem;
117
- ${progressBarCircularTokens.backgroundStrokeWidth}: 0.125rem;
118
- ${progressBarCircularTokens.progressStrokeWidth}: 0.125rem;
119
- ${progressBarCircularTokens.contentFontFamily}: var(--plasma-typo-body-xxs-font-family);
120
- ${progressBarCircularTokens.contentFontSize}: var(--plasma-typo-body-xxs-font-size);
121
- ${progressBarCircularTokens.contentFontStyle}: var(--plasma-typo-body-xxs-font-style);
122
- ${progressBarCircularTokens.contentFontWeight}: var(--plasma-typo-body-xxs-body-font-weight);
123
- ${progressBarCircularTokens.contentLetterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
124
- ${progressBarCircularTokens.contentLineHeight}: var(--plasma-typo-body-xxs-line-height);
125
- `,
126
- },
127
- },
128
- };
@@ -1,63 +0,0 @@
1
- import type { StoryObj, Meta } from '@storybook/react';
2
- import { InSpacingDecorator, getConfigVariations, disableProps } from '@salutejs/plasma-sb-utils';
3
- import React, { ComponentProps } from 'react';
4
- import { IconCross } from '@salutejs/plasma-icons';
5
-
6
- import { config } from './ProgressBarCircular.config';
7
-
8
- import { ProgressBarCircular } from '.';
9
-
10
- const { views, sizes } = getConfigVariations(config);
11
-
12
- const meta: Meta<typeof ProgressBarCircular> = {
13
- title: 'Overlay/ProgressBarCircular',
14
- component: ProgressBarCircular,
15
- decorators: [InSpacingDecorator],
16
- argTypes: {
17
- view: {
18
- options: views,
19
- control: {
20
- type: 'select',
21
- },
22
- },
23
- size: {
24
- options: sizes,
25
- control: {
26
- type: 'select',
27
- },
28
- },
29
- strokeWidth: {
30
- control: {
31
- type: 'range',
32
- min: 1,
33
- max: 16,
34
- },
35
- },
36
- ...disableProps(['status']),
37
- },
38
- };
39
-
40
- export default meta;
41
-
42
- type StoryPropsDefault = ComponentProps<typeof ProgressBarCircular>;
43
-
44
- const getContent = (value?: number, size?: string) => {
45
- if (size === 'xxl' || size === 'xl') {
46
- return `${value}%`;
47
- }
48
-
49
- if (size !== 'xxs') {
50
- return <IconCross size={size === 'l' ? 's' : 'xs'} />;
51
- }
52
-
53
- return '';
54
- };
55
-
56
- export const Default: StoryObj<StoryPropsDefault> = {
57
- args: {
58
- view: 'default',
59
- size: 's',
60
- value: 50,
61
- },
62
- render: ({ ...args }) => <ProgressBarCircular {...args}>{getContent(args.value, args.size)}</ProgressBarCircular>,
63
- };