@salutejs/sdds-scan 0.371.0 → 0.372.0-next-sbcom.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/dist/css/cjs/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/css/cjs/components/Autocomplete/Autocomplete.config.js.map +1 -1
- package/dist/css/cjs/components/Autocomplete/{Autocomplete.config_147p22p.css → Autocomplete.config_1agasej.css} +2 -2
- package/dist/css/cjs/components/Autocomplete/Autocomplete.css +12 -12
- package/dist/css/cjs/components/Calendar/Calendar.config.js +1 -1
- package/dist/css/cjs/components/Calendar/Calendar.config.js.map +1 -1
- package/dist/css/{es/components/Calendar/Calendar.config_13qlc3k.css → cjs/components/Calendar/Calendar.config_x901dx.css} +2 -2
- package/dist/css/cjs/components/Calendar/Calendar.css +10 -10
- package/dist/css/cjs/components/Calendar/CalendarDouble.config.js +1 -1
- package/dist/css/cjs/components/Calendar/CalendarDouble.config.js.map +1 -1
- package/dist/css/cjs/components/Calendar/{CalendarDouble.config_xlc8a.css → CalendarDouble.config_152ezcc.css} +2 -2
- package/dist/css/cjs/components/DatePicker/DatePicker.config.js +1 -1
- package/dist/css/cjs/components/DatePicker/DatePicker.config.js.map +1 -1
- package/dist/css/{es/components/DatePicker/DatePicker.config_1b5t9hz.css → cjs/components/DatePicker/DatePicker.config_1xy9d5w.css} +2 -2
- package/dist/css/cjs/components/DatePicker/DatePicker.css +10 -10
- package/dist/css/cjs/components/DateTimePicker/DateTimePicker.config.js +1 -1
- package/dist/css/cjs/components/DateTimePicker/DateTimePicker.config.js.map +1 -1
- package/dist/css/cjs/components/DateTimePicker/{DateTimePicker.config_700nbi.css → DateTimePicker.config_1qtejwo.css} +5 -5
- package/dist/css/cjs/components/DateTimePicker/DateTimePicker.css +13 -13
- package/dist/css/cjs/components/Spinner/Spinner.config.js +18 -9
- package/dist/css/cjs/components/Spinner/Spinner.config.js.map +1 -1
- package/dist/css/cjs/components/Spinner/Spinner.config_eyrgsm.css +15 -0
- package/dist/css/cjs/components/Spinner/Spinner.css +15 -8
- package/dist/css/cjs/components/Spinner/Spinner.js +3 -0
- package/dist/css/cjs/components/Spinner/Spinner.js.map +1 -1
- package/dist/css/cjs/index.css +62 -55
- package/dist/css/es/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/css/es/components/Autocomplete/Autocomplete.config.js.map +1 -1
- package/dist/css/es/components/Autocomplete/{Autocomplete.config_147p22p.css → Autocomplete.config_1agasej.css} +2 -2
- package/dist/css/es/components/Autocomplete/Autocomplete.css +12 -12
- package/dist/css/es/components/Calendar/Calendar.config.js +1 -1
- package/dist/css/es/components/Calendar/Calendar.config.js.map +1 -1
- package/dist/css/{cjs/components/Calendar/Calendar.config_13qlc3k.css → es/components/Calendar/Calendar.config_x901dx.css} +2 -2
- package/dist/css/es/components/Calendar/Calendar.css +10 -10
- package/dist/css/es/components/Calendar/CalendarDouble.config.js +1 -1
- package/dist/css/es/components/Calendar/CalendarDouble.config.js.map +1 -1
- package/dist/css/es/components/Calendar/{CalendarDouble.config_xlc8a.css → CalendarDouble.config_152ezcc.css} +2 -2
- package/dist/css/es/components/DatePicker/DatePicker.config.js +1 -1
- package/dist/css/es/components/DatePicker/DatePicker.config.js.map +1 -1
- package/dist/css/{cjs/components/DatePicker/DatePicker.config_1b5t9hz.css → es/components/DatePicker/DatePicker.config_1xy9d5w.css} +2 -2
- package/dist/css/es/components/DatePicker/DatePicker.css +10 -10
- package/dist/css/es/components/DateTimePicker/DateTimePicker.config.js +1 -1
- package/dist/css/es/components/DateTimePicker/DateTimePicker.config.js.map +1 -1
- package/dist/css/es/components/DateTimePicker/{DateTimePicker.config_700nbi.css → DateTimePicker.config_1qtejwo.css} +5 -5
- package/dist/css/es/components/DateTimePicker/DateTimePicker.css +13 -13
- package/dist/css/es/components/Spinner/Spinner.config.js +18 -9
- package/dist/css/es/components/Spinner/Spinner.config.js.map +1 -1
- package/dist/css/es/components/Spinner/Spinner.config_eyrgsm.css +15 -0
- package/dist/css/es/components/Spinner/Spinner.css +15 -8
- package/dist/css/es/components/Spinner/Spinner.js +3 -0
- package/dist/css/es/components/Spinner/Spinner.js.map +1 -1
- package/dist/css/es/index.css +62 -55
- package/dist/styled-components/cjs/components/Autocomplete/Autocomplete.config.js +2 -2
- package/dist/styled-components/cjs/components/Calendar/Calendar.config.js +2 -0
- package/dist/styled-components/cjs/components/Calendar/CalendarDouble.config.js +2 -0
- package/dist/styled-components/cjs/components/DatePicker/DatePicker.config.js +2 -0
- package/dist/styled-components/cjs/components/DateTimePicker/DateTimePicker.config.js +5 -0
- package/dist/styled-components/cjs/components/Spinner/Spinner.config.js +31 -8
- package/dist/styled-components/cjs/components/Spinner/Spinner.js +4 -15
- package/dist/styled-components/es/components/Autocomplete/Autocomplete.config.js +2 -2
- package/dist/styled-components/es/components/Calendar/Calendar.config.js +2 -0
- package/dist/styled-components/es/components/Calendar/CalendarDouble.config.js +2 -0
- package/dist/styled-components/es/components/DatePicker/DatePicker.config.js +2 -0
- package/dist/styled-components/es/components/DateTimePicker/DateTimePicker.config.js +5 -0
- package/dist/styled-components/es/components/Spinner/Spinner.config.js +32 -9
- package/dist/styled-components/es/components/Spinner/Spinner.js +1 -7
- package/package.json +9 -9
- package/types/components/Avatar/Avatar.d.ts +4 -4
- package/types/components/Spinner/Spinner.config.d.ts +9 -0
- package/types/components/Spinner/Spinner.d.ts +24 -28
- package/types/components/Spinner/index.d.ts +0 -1
- package/dist/css/cjs/components/Spinner/Spinner.config_1sal5bb.css +0 -8
- package/dist/css/es/components/Spinner/Spinner.config_1sal5bb.css +0 -8
|
@@ -235,7 +235,7 @@ const config = {
|
|
|
235
235
|
${_styledcomponents.autocompleteTokens.textFieldHintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
|
|
236
236
|
${_styledcomponents.autocompleteTokens.textFieldClearHintInnerLabelPlacementOffset}: 0.312rem -2.188rem auto auto;
|
|
237
237
|
|
|
238
|
-
${_styledcomponents.autocompleteTokens.
|
|
238
|
+
${_styledcomponents.autocompleteTokens.textFieldLeftHelperPadding}: 0.25rem 0 0 0;
|
|
239
239
|
${_styledcomponents.autocompleteTokens.textFieldLeftHelperFontFamily}: ${_sdds_scan.bodyXS.fontFamily};
|
|
240
240
|
${_styledcomponents.autocompleteTokens.textFieldLeftHelperFontSize}: ${_sdds_scan.bodyXS.fontSize};
|
|
241
241
|
${_styledcomponents.autocompleteTokens.textFieldLeftHelperFontStyle}: ${_sdds_scan.bodyXS.fontStyle};
|
|
@@ -317,7 +317,7 @@ const config = {
|
|
|
317
317
|
${_styledcomponents.autocompleteTokens.textFieldHintInnerLabelPlacementOffset}: 0.062rem -2.688rem auto auto;
|
|
318
318
|
${_styledcomponents.autocompleteTokens.textFieldClearHintInnerLabelPlacementOffset}: 0.062rem -2.188rem auto auto;
|
|
319
319
|
|
|
320
|
-
${_styledcomponents.autocompleteTokens.
|
|
320
|
+
${_styledcomponents.autocompleteTokens.textFieldLeftHelperPadding}: 0.25rem 0 0 0;
|
|
321
321
|
${_styledcomponents.autocompleteTokens.textFieldLeftHelperFontFamily}: ${_sdds_scan.bodyXS.fontFamily};
|
|
322
322
|
${_styledcomponents.autocompleteTokens.textFieldLeftHelperFontSize}: ${_sdds_scan.bodyXS.fontSize};
|
|
323
323
|
${_styledcomponents.autocompleteTokens.textFieldLeftHelperFontStyle}: ${_sdds_scan.bodyXS.fontStyle};
|
|
@@ -106,6 +106,7 @@ const config = {
|
|
|
106
106
|
|
|
107
107
|
${_styledcomponents.calendarBaseTokens.calendarHeaderArrowGap}: 0;
|
|
108
108
|
${_styledcomponents.calendarBaseTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
109
|
+
${_styledcomponents.calendarBaseTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
109
110
|
|
|
110
111
|
${_styledcomponents.calendarBaseTokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
111
112
|
${_styledcomponents.calendarBaseTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -175,6 +176,7 @@ const config = {
|
|
|
175
176
|
|
|
176
177
|
${_styledcomponents.calendarBaseTokens.calendarHeaderArrowGap}: 0;
|
|
177
178
|
${_styledcomponents.calendarBaseTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
179
|
+
${_styledcomponents.calendarBaseTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
178
180
|
|
|
179
181
|
${_styledcomponents.calendarBaseTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
180
182
|
${_styledcomponents.calendarBaseTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -107,6 +107,7 @@ const config = {
|
|
|
107
107
|
|
|
108
108
|
${_styledcomponents.calendarDoubleTokens.calendarHeaderArrowGap}: 0;
|
|
109
109
|
${_styledcomponents.calendarDoubleTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
110
|
+
${_styledcomponents.calendarDoubleTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
110
111
|
|
|
111
112
|
${_styledcomponents.calendarDoubleTokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
112
113
|
${_styledcomponents.calendarDoubleTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -176,6 +177,7 @@ const config = {
|
|
|
176
177
|
|
|
177
178
|
${_styledcomponents.calendarDoubleTokens.calendarHeaderArrowGap}: 0;
|
|
178
179
|
${_styledcomponents.calendarDoubleTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
180
|
+
${_styledcomponents.calendarDoubleTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
179
181
|
|
|
180
182
|
${_styledcomponents.calendarDoubleTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
181
183
|
${_styledcomponents.calendarDoubleTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -269,6 +269,7 @@ const config = {
|
|
|
269
269
|
${_styledcomponents.datePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
270
270
|
${_styledcomponents.datePickerTokens.calendarHeaderArrowGap}: 0;
|
|
271
271
|
${_styledcomponents.datePickerTokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
272
|
+
${_styledcomponents.datePickerTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
272
273
|
|
|
273
274
|
${_styledcomponents.datePickerTokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
274
275
|
${_styledcomponents.datePickerTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -440,6 +441,7 @@ const config = {
|
|
|
440
441
|
${_styledcomponents.datePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
441
442
|
${_styledcomponents.datePickerTokens.calendarHeaderArrowGap}: 0;
|
|
442
443
|
${_styledcomponents.datePickerTokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
444
|
+
${_styledcomponents.datePickerTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
443
445
|
|
|
444
446
|
${_styledcomponents.datePickerTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
445
447
|
${_styledcomponents.datePickerTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -236,6 +236,7 @@ const config = {
|
|
|
236
236
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
237
237
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowGap}: 0;
|
|
238
238
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
239
|
+
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
239
240
|
|
|
240
241
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderPadding}: 0 0 0 1rem;
|
|
241
242
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -404,6 +405,7 @@ const config = {
|
|
|
404
405
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
405
406
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowGap}: 0.5rem;
|
|
406
407
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
408
|
+
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
407
409
|
|
|
408
410
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderPadding}: 0 0 0 1rem;
|
|
409
411
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderDateGap}: 0.5rem;
|
|
@@ -572,6 +574,7 @@ const config = {
|
|
|
572
574
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
573
575
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowGap}: 0;
|
|
574
576
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
577
|
+
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
575
578
|
|
|
576
579
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
577
580
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -740,6 +743,7 @@ const config = {
|
|
|
740
743
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
741
744
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowGap}: 0;
|
|
742
745
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
746
|
+
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
743
747
|
|
|
744
748
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
745
749
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -908,6 +912,7 @@ const config = {
|
|
|
908
912
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderWrapperPadding}: 0;
|
|
909
913
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowGap}: 0;
|
|
910
914
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowCustomSize}: 1rem;
|
|
915
|
+
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowSize}: 1rem;
|
|
911
916
|
|
|
912
917
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
913
918
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -16,30 +16,53 @@ const config = {
|
|
|
16
16
|
size: 'm'
|
|
17
17
|
},
|
|
18
18
|
variations: {
|
|
19
|
+
size: {
|
|
20
|
+
xxs: (0, _styledcomponents.css)`
|
|
21
|
+
${_styledcomponents.spinnerTokens.size}: 1rem;
|
|
22
|
+
`,
|
|
23
|
+
xs: (0, _styledcomponents.css)`
|
|
24
|
+
${_styledcomponents.spinnerTokens.size}: 1.5rem;
|
|
25
|
+
`,
|
|
26
|
+
s: (0, _styledcomponents.css)`
|
|
27
|
+
${_styledcomponents.spinnerTokens.size}: 2.25rem;
|
|
28
|
+
`,
|
|
29
|
+
m: (0, _styledcomponents.css)`
|
|
30
|
+
${_styledcomponents.spinnerTokens.size}: 3rem;
|
|
31
|
+
`,
|
|
32
|
+
l: (0, _styledcomponents.css)`
|
|
33
|
+
${_styledcomponents.spinnerTokens.size}: 3.5rem;
|
|
34
|
+
`,
|
|
35
|
+
xl: (0, _styledcomponents.css)`
|
|
36
|
+
${_styledcomponents.spinnerTokens.size}: 5.5rem;
|
|
37
|
+
`,
|
|
38
|
+
xxl: (0, _styledcomponents.css)`
|
|
39
|
+
${_styledcomponents.spinnerTokens.size}: 8rem;
|
|
40
|
+
`
|
|
41
|
+
},
|
|
19
42
|
view: {
|
|
20
43
|
default: (0, _styledcomponents.css)`
|
|
21
|
-
|
|
44
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textPrimary};
|
|
22
45
|
`,
|
|
23
46
|
secondary: (0, _styledcomponents.css)`
|
|
24
|
-
|
|
47
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textSecondary};
|
|
25
48
|
`,
|
|
26
49
|
tertiary: (0, _styledcomponents.css)`
|
|
27
|
-
|
|
50
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textTertiary};
|
|
28
51
|
`,
|
|
29
52
|
paragraph: (0, _styledcomponents.css)`
|
|
30
|
-
|
|
53
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textParagraph};
|
|
31
54
|
`,
|
|
32
55
|
accent: (0, _styledcomponents.css)`
|
|
33
|
-
|
|
56
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textAccent};
|
|
34
57
|
`,
|
|
35
58
|
positive: (0, _styledcomponents.css)`
|
|
36
|
-
|
|
59
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textPositive};
|
|
37
60
|
`,
|
|
38
61
|
warning: (0, _styledcomponents.css)`
|
|
39
|
-
|
|
62
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textWarning};
|
|
40
63
|
`,
|
|
41
64
|
negative: (0, _styledcomponents.css)`
|
|
42
|
-
|
|
65
|
+
${_styledcomponents.spinnerTokens.color}: ${_sdds_scan.textNegative};
|
|
43
66
|
`
|
|
44
67
|
}
|
|
45
68
|
}
|
|
@@ -8,19 +8,8 @@ Object.defineProperty(exports, "Spinner", {
|
|
|
8
8
|
return Spinner;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const _styledcomponents =
|
|
12
|
-
const _styledcomponents1 = require("@salutejs/plasma-new-hope/styled-components");
|
|
11
|
+
const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
|
|
13
12
|
const _Spinnerconfig = require("./Spinner.config");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const mergedConfig = (0, _styledcomponents1.mergeConfig)(_styledcomponents1.spinnerConfig, _Spinnerconfig.config);
|
|
20
|
-
const SpinnerComponent = (0, _styledcomponents1.component)(mergedConfig);
|
|
21
|
-
const Spinner = (0, _styledcomponents.default)(SpinnerComponent).withConfig({
|
|
22
|
-
displayName: "Spinner",
|
|
23
|
-
componentId: "sc-d47c168-0"
|
|
24
|
-
})([
|
|
25
|
-
``
|
|
26
|
-
]);
|
|
13
|
+
const mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.spinnerConfig, _Spinnerconfig.config);
|
|
14
|
+
const SpinnerComponent = (0, _styledcomponents.component)(mergedConfig);
|
|
15
|
+
const Spinner = SpinnerComponent;
|
|
@@ -225,7 +225,7 @@ export const config = {
|
|
|
225
225
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
|
|
226
226
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.312rem -2.188rem auto auto;
|
|
227
227
|
|
|
228
|
-
${tokens.
|
|
228
|
+
${tokens.textFieldLeftHelperPadding}: 0.25rem 0 0 0;
|
|
229
229
|
${tokens.textFieldLeftHelperFontFamily}: ${bodyXS.fontFamily};
|
|
230
230
|
${tokens.textFieldLeftHelperFontSize}: ${bodyXS.fontSize};
|
|
231
231
|
${tokens.textFieldLeftHelperFontStyle}: ${bodyXS.fontStyle};
|
|
@@ -307,7 +307,7 @@ export const config = {
|
|
|
307
307
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.062rem -2.688rem auto auto;
|
|
308
308
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.062rem -2.188rem auto auto;
|
|
309
309
|
|
|
310
|
-
${tokens.
|
|
310
|
+
${tokens.textFieldLeftHelperPadding}: 0.25rem 0 0 0;
|
|
311
311
|
${tokens.textFieldLeftHelperFontFamily}: ${bodyXS.fontFamily};
|
|
312
312
|
${tokens.textFieldLeftHelperFontSize}: ${bodyXS.fontSize};
|
|
313
313
|
${tokens.textFieldLeftHelperFontStyle}: ${bodyXS.fontStyle};
|
|
@@ -96,6 +96,7 @@ export const config = {
|
|
|
96
96
|
|
|
97
97
|
${calendarBaseTokens.calendarHeaderArrowGap}: 0;
|
|
98
98
|
${calendarBaseTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
99
|
+
${calendarBaseTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
99
100
|
|
|
100
101
|
${calendarBaseTokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
101
102
|
${calendarBaseTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -165,6 +166,7 @@ export const config = {
|
|
|
165
166
|
|
|
166
167
|
${calendarBaseTokens.calendarHeaderArrowGap}: 0;
|
|
167
168
|
${calendarBaseTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
169
|
+
${calendarBaseTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
168
170
|
|
|
169
171
|
${calendarBaseTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
170
172
|
${calendarBaseTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -97,6 +97,7 @@ export const config = {
|
|
|
97
97
|
|
|
98
98
|
${calendarDoubleTokens.calendarHeaderArrowGap}: 0;
|
|
99
99
|
${calendarDoubleTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
100
|
+
${calendarDoubleTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
100
101
|
|
|
101
102
|
${calendarDoubleTokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
102
103
|
${calendarDoubleTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -166,6 +167,7 @@ export const config = {
|
|
|
166
167
|
|
|
167
168
|
${calendarDoubleTokens.calendarHeaderArrowGap}: 0;
|
|
168
169
|
${calendarDoubleTokens.calendarArrowHeaderCustomSize}: 1.5rem;
|
|
170
|
+
${calendarDoubleTokens.calendarHeaderArrowSize}: 1.5rem;
|
|
169
171
|
|
|
170
172
|
${calendarDoubleTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
171
173
|
${calendarDoubleTokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -259,6 +259,7 @@ export const config = {
|
|
|
259
259
|
${tokens.calendarHeaderWrapperPadding}: 0;
|
|
260
260
|
${tokens.calendarHeaderArrowGap}: 0;
|
|
261
261
|
${tokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
262
|
+
${tokens.calendarHeaderArrowSize}: 1.5rem;
|
|
262
263
|
|
|
263
264
|
${tokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
264
265
|
${tokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -430,6 +431,7 @@ export const config = {
|
|
|
430
431
|
${tokens.calendarHeaderWrapperPadding}: 0;
|
|
431
432
|
${tokens.calendarHeaderArrowGap}: 0;
|
|
432
433
|
${tokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
434
|
+
${tokens.calendarHeaderArrowSize}: 1.5rem;
|
|
433
435
|
|
|
434
436
|
${tokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
435
437
|
${tokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -226,6 +226,7 @@ export const config = {
|
|
|
226
226
|
${tokens.calendarHeaderWrapperPadding}: 0;
|
|
227
227
|
${tokens.calendarHeaderArrowGap}: 0;
|
|
228
228
|
${tokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
229
|
+
${tokens.calendarHeaderArrowSize}: 1.5rem;
|
|
229
230
|
|
|
230
231
|
${tokens.calendarHeaderPadding}: 0 0 0 1rem;
|
|
231
232
|
${tokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -394,6 +395,7 @@ export const config = {
|
|
|
394
395
|
${tokens.calendarHeaderWrapperPadding}: 0;
|
|
395
396
|
${tokens.calendarHeaderArrowGap}: 0.5rem;
|
|
396
397
|
${tokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
398
|
+
${tokens.calendarHeaderArrowSize}: 1.5rem;
|
|
397
399
|
|
|
398
400
|
${tokens.calendarHeaderPadding}: 0 0 0 1rem;
|
|
399
401
|
${tokens.calendarHeaderDateGap}: 0.5rem;
|
|
@@ -562,6 +564,7 @@ export const config = {
|
|
|
562
564
|
${tokens.calendarHeaderWrapperPadding}: 0;
|
|
563
565
|
${tokens.calendarHeaderArrowGap}: 0;
|
|
564
566
|
${tokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
567
|
+
${tokens.calendarHeaderArrowSize}: 1.5rem;
|
|
565
568
|
|
|
566
569
|
${tokens.calendarHeaderPadding}: 0 0 0 0.75rem;
|
|
567
570
|
${tokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -730,6 +733,7 @@ export const config = {
|
|
|
730
733
|
${tokens.calendarHeaderWrapperPadding}: 0;
|
|
731
734
|
${tokens.calendarHeaderArrowGap}: 0;
|
|
732
735
|
${tokens.calendarHeaderArrowCustomSize}: 1.5rem;
|
|
736
|
+
${tokens.calendarHeaderArrowSize}: 1.5rem;
|
|
733
737
|
|
|
734
738
|
${tokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
735
739
|
${tokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -898,6 +902,7 @@ export const config = {
|
|
|
898
902
|
${tokens.calendarHeaderWrapperPadding}: 0;
|
|
899
903
|
${tokens.calendarHeaderArrowGap}: 0;
|
|
900
904
|
${tokens.calendarHeaderArrowCustomSize}: 1rem;
|
|
905
|
+
${tokens.calendarHeaderArrowSize}: 1rem;
|
|
901
906
|
|
|
902
907
|
${tokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
903
908
|
${tokens.calendarHeaderDateGap}: 0.25rem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '@salutejs/plasma-new-hope/styled-components';
|
|
1
|
+
import { css, spinnerTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
2
|
import { textAccent, textNegative, textParagraph, textPositive, textPrimary, textSecondary, textTertiary, textWarning } from '@salutejs/sdds-themes/tokens/sdds_scan';
|
|
3
3
|
export const config = {
|
|
4
4
|
defaults: {
|
|
@@ -6,30 +6,53 @@ export const config = {
|
|
|
6
6
|
size: 'm'
|
|
7
7
|
},
|
|
8
8
|
variations: {
|
|
9
|
+
size: {
|
|
10
|
+
xxs: css`
|
|
11
|
+
${tokens.size}: 1rem;
|
|
12
|
+
`,
|
|
13
|
+
xs: css`
|
|
14
|
+
${tokens.size}: 1.5rem;
|
|
15
|
+
`,
|
|
16
|
+
s: css`
|
|
17
|
+
${tokens.size}: 2.25rem;
|
|
18
|
+
`,
|
|
19
|
+
m: css`
|
|
20
|
+
${tokens.size}: 3rem;
|
|
21
|
+
`,
|
|
22
|
+
l: css`
|
|
23
|
+
${tokens.size}: 3.5rem;
|
|
24
|
+
`,
|
|
25
|
+
xl: css`
|
|
26
|
+
${tokens.size}: 5.5rem;
|
|
27
|
+
`,
|
|
28
|
+
xxl: css`
|
|
29
|
+
${tokens.size}: 8rem;
|
|
30
|
+
`
|
|
31
|
+
},
|
|
9
32
|
view: {
|
|
10
33
|
default: css`
|
|
11
|
-
|
|
34
|
+
${tokens.color}: ${textPrimary};
|
|
12
35
|
`,
|
|
13
36
|
secondary: css`
|
|
14
|
-
|
|
37
|
+
${tokens.color}: ${textSecondary};
|
|
15
38
|
`,
|
|
16
39
|
tertiary: css`
|
|
17
|
-
|
|
40
|
+
${tokens.color}: ${textTertiary};
|
|
18
41
|
`,
|
|
19
42
|
paragraph: css`
|
|
20
|
-
|
|
43
|
+
${tokens.color}: ${textParagraph};
|
|
21
44
|
`,
|
|
22
45
|
accent: css`
|
|
23
|
-
|
|
46
|
+
${tokens.color}: ${textAccent};
|
|
24
47
|
`,
|
|
25
48
|
positive: css`
|
|
26
|
-
|
|
49
|
+
${tokens.color}: ${textPositive};
|
|
27
50
|
`,
|
|
28
51
|
warning: css`
|
|
29
|
-
|
|
52
|
+
${tokens.color}: ${textWarning};
|
|
30
53
|
`,
|
|
31
54
|
negative: css`
|
|
32
|
-
|
|
55
|
+
${tokens.color}: ${textNegative};
|
|
33
56
|
`
|
|
34
57
|
}
|
|
35
58
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
1
|
import { spinnerConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
|
3
2
|
import { config } from './Spinner.config';
|
|
4
3
|
const mergedConfig = mergeConfig(spinnerConfig, config);
|
|
5
4
|
const SpinnerComponent = component(mergedConfig);
|
|
6
5
|
/**
|
|
7
6
|
* Компонент для отображения индикатора загрузки.
|
|
8
|
-
*/ export const Spinner =
|
|
9
|
-
displayName: "Spinner",
|
|
10
|
-
componentId: "sc-d47c168-0"
|
|
11
|
-
})([
|
|
12
|
-
``
|
|
13
|
-
]);
|
|
7
|
+
*/ export const Spinner = SpinnerComponent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/sdds-scan",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.372.0-next-sbcom.0",
|
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS SCAN web applications",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"styled-components": "^5.3.11"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salutejs/plasma-new-hope": "0.
|
|
44
|
-
"@salutejs/sdds-themes": "0.
|
|
43
|
+
"@salutejs/plasma-new-hope": "0.386.0-next-sbcom.0",
|
|
44
|
+
"@salutejs/sdds-themes": "0.86.0-next-sbcom.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/cli": "7.24.1",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@rollup/plugin-babel": "^6.0.4",
|
|
60
60
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
61
61
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
62
|
-
"@salutejs/plasma-colors": "0.
|
|
63
|
-
"@salutejs/plasma-core": "1.
|
|
64
|
-
"@salutejs/plasma-cy-utils": "0.
|
|
65
|
-
"@salutejs/plasma-icons": "1.
|
|
66
|
-
"@salutejs/plasma-sb-utils": "0.
|
|
62
|
+
"@salutejs/plasma-colors": "0.27.0-next-sbcom.0",
|
|
63
|
+
"@salutejs/plasma-core": "1.248.0-next-sbcom.0",
|
|
64
|
+
"@salutejs/plasma-cy-utils": "0.178.0-next-sbcom.0",
|
|
65
|
+
"@salutejs/plasma-icons": "1.255.0-next-sbcom.0",
|
|
66
|
+
"@salutejs/plasma-sb-utils": "0.249.0-next-sbcom.0",
|
|
67
67
|
"@types/node": "16.7.13",
|
|
68
68
|
"@types/react": "18.0.28",
|
|
69
69
|
"@types/react-dom": "18.0.11",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"sideEffects": [
|
|
109
109
|
"*.css"
|
|
110
110
|
],
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "5680b021d11a986cb0e16bb9cd54303d5f250cc0"
|
|
112
112
|
}
|
|
@@ -75,7 +75,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
|
|
|
75
75
|
size?: string;
|
|
76
76
|
name?: string;
|
|
77
77
|
url?: string;
|
|
78
|
-
customText?:
|
|
78
|
+
customText?: import("react").ReactNode;
|
|
79
79
|
status?: "active" | "inactive";
|
|
80
80
|
isScalable?: boolean;
|
|
81
81
|
focused?: boolean;
|
|
@@ -104,7 +104,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/styled-components"
|
|
|
104
104
|
size?: string;
|
|
105
105
|
name?: string;
|
|
106
106
|
url?: string;
|
|
107
|
-
customText?:
|
|
107
|
+
customText?: import("react").ReactNode;
|
|
108
108
|
status?: "active" | "inactive";
|
|
109
109
|
isScalable?: boolean;
|
|
110
110
|
focused?: boolean;
|
|
@@ -170,7 +170,7 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
|
170
170
|
size?: string;
|
|
171
171
|
name?: string;
|
|
172
172
|
url?: string;
|
|
173
|
-
customText?:
|
|
173
|
+
customText?: import("react").ReactNode;
|
|
174
174
|
status?: "active" | "inactive";
|
|
175
175
|
isScalable?: boolean;
|
|
176
176
|
focused?: boolean;
|
|
@@ -199,7 +199,7 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
|
199
199
|
size?: string;
|
|
200
200
|
name?: string;
|
|
201
201
|
url?: string;
|
|
202
|
-
customText?:
|
|
202
|
+
customText?: import("react").ReactNode;
|
|
203
203
|
status?: "active" | "inactive";
|
|
204
204
|
isScalable?: boolean;
|
|
205
205
|
focused?: boolean;
|
|
@@ -4,6 +4,15 @@ export declare const config: {
|
|
|
4
4
|
size: string;
|
|
5
5
|
};
|
|
6
6
|
variations: {
|
|
7
|
+
size: {
|
|
8
|
+
xxs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
9
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
10
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
11
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
12
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
13
|
+
xl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
14
|
+
xxl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
15
|
+
};
|
|
7
16
|
view: {
|
|
8
17
|
default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
9
18
|
secondary: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* Цвет спиннера
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
color?: string;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
deviceScale?: number;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Компонент для отображения индикатора загрузки.
|
|
23
|
-
*/
|
|
24
|
-
export declare const Spinner: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
1
|
+
import type { ComponentProps, FunctionComponent } from 'react';
|
|
2
|
+
declare const SpinnerComponent: FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
3
|
+
size: {
|
|
4
|
+
xxs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
5
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
6
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
7
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
8
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
9
|
+
xl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
10
|
+
xxl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
11
|
+
};
|
|
25
12
|
view: {
|
|
26
13
|
default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
27
14
|
secondary: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
@@ -32,19 +19,28 @@ export declare const Spinner: import("styled-components").StyledComponent<import
|
|
|
32
19
|
warning: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
33
20
|
negative: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
34
21
|
};
|
|
35
|
-
}> & ((HTMLAttributes<HTMLDivElement> & {
|
|
22
|
+
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
|
36
23
|
width?: never;
|
|
37
24
|
height?: never;
|
|
38
25
|
size?: string | number;
|
|
39
26
|
view?: string;
|
|
40
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
|
27
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
|
41
28
|
width: number;
|
|
42
29
|
height: number;
|
|
43
30
|
size?: never;
|
|
44
31
|
view?: string;
|
|
45
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
|
32
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
|
46
33
|
width: string;
|
|
47
34
|
height: string;
|
|
48
35
|
size?: never;
|
|
49
36
|
view?: string;
|
|
50
|
-
} & import("react").RefAttributes<HTMLDivElement>))
|
|
37
|
+
} & import("react").RefAttributes<HTMLDivElement>))>;
|
|
38
|
+
type Variations = ComponentProps<typeof SpinnerComponent>;
|
|
39
|
+
type SpinnerComponentProps = Omit<Variations, 'size'> & {
|
|
40
|
+
size?: Variations['size'] | number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Компонент для отображения индикатора загрузки.
|
|
44
|
+
*/
|
|
45
|
+
export declare const Spinner: FunctionComponent<SpinnerComponentProps>;
|
|
46
|
+
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
.d1x5tqpm{--plasma-spinner-color:var(--text-primary,#F5F5F5F5);}
|
|
2
|
-
.s1jvlmv7{--plasma-spinner-color:var(--text-secondary,#F5F5F58F);}
|
|
3
|
-
.t1gckrx7{--plasma-spinner-color:var(--text-tertiary,#F5F5F547);}
|
|
4
|
-
.p1uk1ap6{--plasma-spinner-color:var(--text-paragraph,#F5F5F5CC);}
|
|
5
|
-
.a1el443i{--plasma-spinner-color:var(--text-accent,#0DA8AB);}
|
|
6
|
-
.p74k20o{--plasma-spinner-color:var(--text-positive,#24B23E);}
|
|
7
|
-
.wf42aip{--plasma-spinner-color:var(--text-warning,#FF7024);}
|
|
8
|
-
.no0v0wt{--plasma-spinner-color:var(--text-negative,#FF3D51);}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
.d1x5tqpm{--plasma-spinner-color:var(--text-primary,#F5F5F5F5);}
|
|
2
|
-
.s1jvlmv7{--plasma-spinner-color:var(--text-secondary,#F5F5F58F);}
|
|
3
|
-
.t1gckrx7{--plasma-spinner-color:var(--text-tertiary,#F5F5F547);}
|
|
4
|
-
.p1uk1ap6{--plasma-spinner-color:var(--text-paragraph,#F5F5F5CC);}
|
|
5
|
-
.a1el443i{--plasma-spinner-color:var(--text-accent,#0DA8AB);}
|
|
6
|
-
.p74k20o{--plasma-spinner-color:var(--text-positive,#24B23E);}
|
|
7
|
-
.wf42aip{--plasma-spinner-color:var(--text-warning,#FF7024);}
|
|
8
|
-
.no0v0wt{--plasma-spinner-color:var(--text-negative,#FF3D51);}
|