@salutejs/sdds-cs 0.359.0-next-sbcom.0 → 0.359.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/emotion/cjs/components/Accordion/Accordion.config.js +1 -1
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/emotion/cjs/components/Badge/Badge.clear.config.js +47 -0
- package/dist/emotion/cjs/components/Badge/Badge.config.common.js +41 -0
- package/dist/emotion/cjs/components/Badge/Badge.config.js +3 -18
- package/dist/emotion/cjs/components/Badge/Badge.js +22 -4
- package/dist/emotion/cjs/components/Button/Button.config.js +19 -0
- package/dist/emotion/cjs/components/Combobox/Combobox.config.js +2 -2
- package/dist/emotion/cjs/components/IconButton/IconButton.config.js +15 -0
- package/dist/emotion/cjs/components/Select/Select.config.js +1 -1
- package/dist/emotion/cjs/components/Slider/Slider.config.js +0 -1
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +1 -1
- package/dist/emotion/cjs/components/TextField/TextField.config.js +78 -1
- package/dist/emotion/es/components/Accordion/Accordion.config.js +1 -1
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/emotion/es/components/Badge/Badge.clear.config.js +37 -0
- package/dist/emotion/es/components/Badge/Badge.config.common.js +23 -0
- package/dist/emotion/es/components/Badge/Badge.config.js +3 -18
- package/dist/emotion/es/components/Badge/Badge.js +9 -2
- package/dist/emotion/es/components/Button/Button.config.js +19 -0
- package/dist/emotion/es/components/Combobox/Combobox.config.js +2 -2
- package/dist/emotion/es/components/IconButton/IconButton.config.js +15 -0
- package/dist/emotion/es/components/Select/Select.config.js +1 -1
- package/dist/emotion/es/components/Slider/Slider.config.js +0 -1
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +1 -1
- package/dist/emotion/es/components/TextField/TextField.config.js +78 -1
- package/package.json +8 -8
- package/types/components/Attach/Attach.d.ts +32 -16
- package/types/components/Autocomplete/Autocomplete.d.ts +8 -8
- package/types/components/Avatar/Avatar.d.ts +8 -0
- package/types/components/Badge/Badge.clear.config.d.ts +23 -0
- package/types/components/Badge/Badge.config.common.d.ts +2 -0
- package/types/components/Badge/Badge.d.ts +166 -18
- package/types/components/Button/Button.config.d.ts +1 -0
- package/types/components/Button/Button.d.ts +3 -0
- package/types/components/DatePicker/DatePicker.d.ts +5 -1
- package/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/types/components/IconButton/IconButton.config.d.ts +1 -0
- package/types/components/IconButton/IconButton.d.ts +1 -0
- package/types/components/Mask/Mask.d.ts +24 -16
- package/types/components/Range/Range.d.ts +372 -0
- package/types/components/TextArea/TextArea.d.ts +32 -32
- package/types/components/TextField/TextField.config.d.ts +1 -0
- package/types/components/TextField/TextField.d.ts +41 -32
- package/types/components/TimePicker/TimePicker.d.ts +8 -2
|
@@ -38,7 +38,7 @@ const config = {
|
|
|
38
38
|
${_emotion.accordionTokens.accordionItemTextColor}: var(--text-primary);
|
|
39
39
|
${_emotion.accordionTokens.accordionItemIconColor}: var(--text-accent);
|
|
40
40
|
${_emotion.accordionTokens.accordionItemFocus}: var(--surface-accent);
|
|
41
|
-
${_emotion.accordionTokens.
|
|
41
|
+
${_emotion.accordionTokens.accordionItemViewBorderRadius}: 0rem;
|
|
42
42
|
${_emotion.accordionTokens.accordionBackground}: var(--surface-clear);
|
|
43
43
|
${_emotion.accordionTokens.accordionItemBorderBottom}: 0.125rem solid var(--surface-solid-tertiary);
|
|
44
44
|
${_emotion.accordionTokens.accordionItemPaddingHorizontalLeft}: 0;
|
|
@@ -132,7 +132,7 @@ const config = {
|
|
|
132
132
|
${_emotion.autocompleteTokens.textFieldLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
133
133
|
${_emotion.autocompleteTokens.textFieldLabelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
134
134
|
|
|
135
|
-
${_emotion.autocompleteTokens.
|
|
135
|
+
${_emotion.autocompleteTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
136
136
|
${_emotion.autocompleteTokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
137
137
|
${_emotion.autocompleteTokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
138
138
|
${_emotion.autocompleteTokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
|
+
const _Badgeconfigcommon = require("./Badge.config.common");
|
|
13
|
+
const config = {
|
|
14
|
+
defaults: {
|
|
15
|
+
view: 'default',
|
|
16
|
+
size: 's'
|
|
17
|
+
},
|
|
18
|
+
variations: {
|
|
19
|
+
view: {
|
|
20
|
+
default: (0, _emotion.css)`
|
|
21
|
+
${_emotion.badgeTokens.color}: var(--text-primary);
|
|
22
|
+
`,
|
|
23
|
+
accent: (0, _emotion.css)`
|
|
24
|
+
${_emotion.badgeTokens.color}: var(--text-accent);
|
|
25
|
+
`,
|
|
26
|
+
positive: (0, _emotion.css)`
|
|
27
|
+
${_emotion.badgeTokens.color}: var(--text-positive);
|
|
28
|
+
`,
|
|
29
|
+
negative: (0, _emotion.css)`
|
|
30
|
+
${_emotion.badgeTokens.color}: var(--text-negative);
|
|
31
|
+
`
|
|
32
|
+
},
|
|
33
|
+
size: {
|
|
34
|
+
s: (0, _emotion.css)`
|
|
35
|
+
${_Badgeconfigcommon.sizeS}
|
|
36
|
+
`
|
|
37
|
+
},
|
|
38
|
+
pilled: {
|
|
39
|
+
true: (0, _emotion.css)`
|
|
40
|
+
${_Badgeconfigcommon.pilled}
|
|
41
|
+
`
|
|
42
|
+
},
|
|
43
|
+
truncate: {
|
|
44
|
+
true: (0, _emotion.css)``
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get pilled () {
|
|
13
|
+
return pilled;
|
|
14
|
+
},
|
|
15
|
+
get sizeS () {
|
|
16
|
+
return sizeS;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
20
|
+
const sizeS = `
|
|
21
|
+
${_emotion.badgeTokens.borderRadius}: 0.375rem;
|
|
22
|
+
${_emotion.badgeTokens.height}: 1.5rem;
|
|
23
|
+
${_emotion.badgeTokens.padding}: 0 0.5rem;
|
|
24
|
+
${_emotion.badgeTokens.paddingIconOnly}: 0 0.375rem;
|
|
25
|
+
|
|
26
|
+
${_emotion.badgeTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
|
|
27
|
+
${_emotion.badgeTokens.fontSize}: var(--plasma-typo-body-s-font-size);
|
|
28
|
+
${_emotion.badgeTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
|
|
29
|
+
${_emotion.badgeTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
30
|
+
${_emotion.badgeTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
31
|
+
${_emotion.badgeTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
|
|
32
|
+
|
|
33
|
+
${_emotion.badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
34
|
+
${_emotion.badgeTokens.leftContentMarginRight}: 0.125rem;
|
|
35
|
+
|
|
36
|
+
${_emotion.badgeTokens.rightContentMarginLeft}: 0.125rem;
|
|
37
|
+
${_emotion.badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
38
|
+
`;
|
|
39
|
+
const pilled = `
|
|
40
|
+
${_emotion.badgeTokens.pilledBorderRadius}: 1000px;
|
|
41
|
+
`;
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "config", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
|
+
const _Badgeconfigcommon = require("./Badge.config.common");
|
|
12
13
|
const config = {
|
|
13
14
|
defaults: {
|
|
14
15
|
view: 'default',
|
|
@@ -46,28 +47,12 @@ const config = {
|
|
|
46
47
|
},
|
|
47
48
|
size: {
|
|
48
49
|
s: (0, _emotion.css)`
|
|
49
|
-
${
|
|
50
|
-
${_emotion.badgeTokens.height}: 1.5rem;
|
|
51
|
-
${_emotion.badgeTokens.padding}: 0 0.5rem;
|
|
52
|
-
${_emotion.badgeTokens.paddingIconOnly}: 0 0.375rem;
|
|
53
|
-
|
|
54
|
-
${_emotion.badgeTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
|
|
55
|
-
${_emotion.badgeTokens.fontSize}: var(--plasma-typo-body-s-font-size);
|
|
56
|
-
${_emotion.badgeTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
|
|
57
|
-
${_emotion.badgeTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
58
|
-
${_emotion.badgeTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
59
|
-
${_emotion.badgeTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
|
|
60
|
-
|
|
61
|
-
${_emotion.badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
62
|
-
${_emotion.badgeTokens.leftContentMarginRight}: 0.125rem;
|
|
63
|
-
|
|
64
|
-
${_emotion.badgeTokens.rightContentMarginLeft}: 0.125rem;
|
|
65
|
-
${_emotion.badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
50
|
+
${_Badgeconfigcommon.sizeS}
|
|
66
51
|
`
|
|
67
52
|
},
|
|
68
53
|
pilled: {
|
|
69
54
|
true: (0, _emotion.css)`
|
|
70
|
-
${
|
|
55
|
+
${_Badgeconfigcommon.pilled}
|
|
71
56
|
`
|
|
72
57
|
},
|
|
73
58
|
transparent: {
|
|
@@ -2,13 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get Badge () {
|
|
8
13
|
return Badge;
|
|
14
|
+
},
|
|
15
|
+
get BadgeClear () {
|
|
16
|
+
return BadgeClear;
|
|
17
|
+
},
|
|
18
|
+
get BadgeDefault () {
|
|
19
|
+
return BadgeDefault;
|
|
9
20
|
}
|
|
10
21
|
});
|
|
11
22
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
23
|
const _Badgeconfig = require("./Badge.config");
|
|
24
|
+
const _Badgeclearconfig = require("./Badge.clear.config");
|
|
13
25
|
const mergedConfig = (0, _emotion.mergeConfig)(_emotion.badgeConfig, _Badgeconfig.config);
|
|
14
|
-
const
|
|
26
|
+
const BadgeDefault = (0, _emotion.component)(mergedConfig);
|
|
27
|
+
const mergedConfigClear = (0, _emotion.mergeConfig)(_emotion.badgeConfig, _Badgeclearconfig.config);
|
|
28
|
+
const BadgeClear = (0, _emotion.component)(mergedConfigClear);
|
|
29
|
+
const Badge = (0, _emotion.createConditionalComponent)({
|
|
30
|
+
default: BadgeDefault,
|
|
31
|
+
clear: BadgeClear
|
|
32
|
+
});
|
|
@@ -51,6 +51,25 @@ const config = {
|
|
|
51
51
|
`
|
|
52
52
|
},
|
|
53
53
|
size: {
|
|
54
|
+
m: (0, _emotion.css)`
|
|
55
|
+
${_emotion.buttonTokens.buttonHeight}: 3rem;
|
|
56
|
+
${_emotion.buttonTokens.buttonWidth}: 11.25rem;
|
|
57
|
+
${_emotion.buttonTokens.buttonPadding}: 1rem;
|
|
58
|
+
${_emotion.buttonTokens.buttonRadius}: 0.75rem;
|
|
59
|
+
${_emotion.buttonTokens.buttonFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
60
|
+
${_emotion.buttonTokens.buttonFontSize}: var(--plasma-typo-body-m-font-size);
|
|
61
|
+
${_emotion.buttonTokens.buttonFontStyle}: var(--plasma-typo-body-m-font-style);
|
|
62
|
+
${_emotion.buttonTokens.buttonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
|
|
63
|
+
${_emotion.buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
64
|
+
${_emotion.buttonTokens.buttonLineHeight}: var(--plasma-typo-body-m-line-height);
|
|
65
|
+
|
|
66
|
+
${_emotion.buttonTokens.buttonSpinnerSize}: 1.375rem;
|
|
67
|
+
${_emotion.buttonTokens.buttonSpinnerColor}: inherit;
|
|
68
|
+
|
|
69
|
+
${_emotion.buttonTokens.buttonLeftContentMargin}: 0 0.5rem 0 0;
|
|
70
|
+
${_emotion.buttonTokens.buttonRightContentMargin}: 0 0 0 0.5rem;
|
|
71
|
+
${_emotion.buttonTokens.buttonValueMargin}: 0 0 0 0.5rem;
|
|
72
|
+
`,
|
|
54
73
|
s: (0, _emotion.css)`
|
|
55
74
|
${_emotion.buttonTokens.buttonHeight}: 2.5rem;
|
|
56
75
|
${_emotion.buttonTokens.buttonWidth}: 11.25rem;
|
|
@@ -170,7 +170,7 @@ const config = {
|
|
|
170
170
|
${_emotion.comboboxTokens.textFieldLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
171
171
|
${_emotion.comboboxTokens.textFieldLabelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
172
172
|
|
|
173
|
-
${_emotion.comboboxTokens.
|
|
173
|
+
${_emotion.comboboxTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
174
174
|
${_emotion.comboboxTokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
175
175
|
${_emotion.comboboxTokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
176
176
|
${_emotion.comboboxTokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -301,7 +301,7 @@ const config = {
|
|
|
301
301
|
${_emotion.comboboxTokens.disclosureIconColorHover}: transparent;
|
|
302
302
|
${_emotion.comboboxTokens.textFieldPadding}: 0;
|
|
303
303
|
${_emotion.comboboxTokens.textFieldLabelOffset}: 0.25rem;
|
|
304
|
-
${_emotion.comboboxTokens.
|
|
304
|
+
${_emotion.comboboxTokens.textFieldLeftHelperOffset}: 0rem 0 0 0;
|
|
305
305
|
${_emotion.comboboxTokens.textFieldBorderColor}: transparent;
|
|
306
306
|
${_emotion.comboboxTokens.textFieldBorderWidth}: 0;
|
|
307
307
|
`
|
|
@@ -44,6 +44,21 @@ const config = {
|
|
|
44
44
|
`
|
|
45
45
|
},
|
|
46
46
|
size: {
|
|
47
|
+
m: (0, _emotion.css)`
|
|
48
|
+
${_emotion.iconButtonTokens.iconButtonHeight}: 3rem;
|
|
49
|
+
${_emotion.iconButtonTokens.iconButtonWidth}: 3rem;
|
|
50
|
+
${_emotion.iconButtonTokens.iconButtonPadding}: 0.75rem;
|
|
51
|
+
${_emotion.iconButtonTokens.iconButtonRadius}: 0.75rem;
|
|
52
|
+
${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
53
|
+
${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
|
|
54
|
+
${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-m-font-style);
|
|
55
|
+
${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
|
|
56
|
+
${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
57
|
+
${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-m-line-height);
|
|
58
|
+
|
|
59
|
+
${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
|
|
60
|
+
${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
|
|
61
|
+
`,
|
|
47
62
|
s: (0, _emotion.css)`
|
|
48
63
|
${_emotion.iconButtonTokens.iconButtonHeight}: 2.5rem;
|
|
49
64
|
${_emotion.iconButtonTokens.iconButtonWidth}: 2.5rem;
|
|
@@ -134,7 +134,7 @@ const config = {
|
|
|
134
134
|
${_emotion.selectTokens.textFieldLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
135
135
|
${_emotion.selectTokens.textFieldLabelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
136
136
|
|
|
137
|
-
${_emotion.selectTokens.
|
|
137
|
+
${_emotion.selectTokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
138
138
|
${_emotion.selectTokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
139
139
|
${_emotion.selectTokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
140
140
|
${_emotion.selectTokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -114,7 +114,6 @@ const config = {
|
|
|
114
114
|
|
|
115
115
|
${_emotion.sliderTokens.railThickness}: 0.25rem;
|
|
116
116
|
${_emotion.sliderTokens.railBorderRadius}: 0.125rem;
|
|
117
|
-
${_emotion.sliderTokens.railIndent}: 0.75rem;
|
|
118
117
|
|
|
119
118
|
${_emotion.sliderTokens.textFieldWrapperGap}: 0.063rem;
|
|
120
119
|
${_emotion.sliderTokens.textFieldBorderWidth}: 0.125rem;
|
|
@@ -122,7 +122,7 @@ const config = {
|
|
|
122
122
|
${_emotion.textFieldTokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
123
123
|
${_emotion.textFieldTokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
124
124
|
|
|
125
|
-
${_emotion.textFieldTokens.
|
|
125
|
+
${_emotion.textFieldTokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
126
126
|
${_emotion.textFieldTokens.leftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
127
127
|
${_emotion.textFieldTokens.leftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
128
128
|
${_emotion.textFieldTokens.leftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -105,6 +105,83 @@ const config = {
|
|
|
105
105
|
`
|
|
106
106
|
},
|
|
107
107
|
size: {
|
|
108
|
+
m: (0, _emotion.css)`
|
|
109
|
+
${_emotion.textFieldTokens.height}: 3rem;
|
|
110
|
+
${_emotion.textFieldTokens.padding}: 0.75rem 0.875rem 0.75rem 0.875rem;
|
|
111
|
+
${_emotion.textFieldTokens.paddingWithChips}: 0.375rem;
|
|
112
|
+
${_emotion.textFieldTokens.borderRadius}: 0.75rem;
|
|
113
|
+
${_emotion.textFieldTokens.borderWidth}: 0.125rem;
|
|
114
|
+
|
|
115
|
+
${_emotion.textFieldTokens.leftContentMargin}: -0.125rem 0.375rem -0.125rem -0.125rem;
|
|
116
|
+
${_emotion.textFieldTokens.rightContentMargin}: -0.125rem -0.125rem -0.125rem 0.75rem;
|
|
117
|
+
${_emotion.textFieldTokens.rightContentWithHintMargin}: -0.125rem -0.438rem -0.125rem 0.75rem;
|
|
118
|
+
|
|
119
|
+
${_emotion.textFieldTokens.contentRightWrapperGap}: 0.25rem;
|
|
120
|
+
${_emotion.textFieldTokens.contentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;
|
|
121
|
+
|
|
122
|
+
${_emotion.textFieldTokens.textBeforeMargin}: 0 0.25rem 0 0;
|
|
123
|
+
${_emotion.textFieldTokens.textAfterMargin}: 0 0 0 0.25rem;
|
|
124
|
+
|
|
125
|
+
${_emotion.textFieldTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
|
|
126
|
+
${_emotion.textFieldTokens.fontSize}: var(--plasma-typo-body-m-font-size);
|
|
127
|
+
${_emotion.textFieldTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
|
|
128
|
+
${_emotion.textFieldTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
|
|
129
|
+
${_emotion.textFieldTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
130
|
+
${_emotion.textFieldTokens.lineHeight}: var(--plasma-typo-body-m-line-height);
|
|
131
|
+
|
|
132
|
+
${_emotion.textFieldTokens.labelOffset}: 0.5rem;
|
|
133
|
+
${_emotion.textFieldTokens.labelFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
134
|
+
${_emotion.textFieldTokens.labelFontSize}: var(--plasma-typo-body-s-font-size);
|
|
135
|
+
${_emotion.textFieldTokens.labelFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
136
|
+
${_emotion.textFieldTokens.labelFontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
137
|
+
${_emotion.textFieldTokens.labelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
138
|
+
${_emotion.textFieldTokens.labelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
139
|
+
|
|
140
|
+
${_emotion.textFieldTokens.hintMargin}: -0.688rem -0.5rem;
|
|
141
|
+
${_emotion.textFieldTokens.hintTargetSize}: 2.375rem;
|
|
142
|
+
${_emotion.textFieldTokens.hintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
|
|
143
|
+
|
|
144
|
+
${_emotion.textFieldTokens.titleCaptionInnerLabelOffset}: 0.25rem;
|
|
145
|
+
${_emotion.textFieldTokens.titleCaptionFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
146
|
+
${_emotion.textFieldTokens.titleCaptionFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
147
|
+
${_emotion.textFieldTokens.titleCaptionFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
148
|
+
${_emotion.textFieldTokens.titleCaptionFontWeight}: var(--plasma-typo-body-xs-font-weight);
|
|
149
|
+
${_emotion.textFieldTokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
150
|
+
${_emotion.textFieldTokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
151
|
+
|
|
152
|
+
${_emotion.textFieldTokens.leftHelperOffset}: 0.25rem;
|
|
153
|
+
${_emotion.textFieldTokens.leftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
154
|
+
${_emotion.textFieldTokens.leftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
155
|
+
${_emotion.textFieldTokens.leftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
156
|
+
${_emotion.textFieldTokens.leftHelperFontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
157
|
+
${_emotion.textFieldTokens.leftHelperLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
158
|
+
${_emotion.textFieldTokens.leftHelperLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
159
|
+
|
|
160
|
+
${_emotion.textFieldTokens.labelInnerPadding}: 0.375rem 0 0.125rem 0;
|
|
161
|
+
${_emotion.textFieldTokens.contentLabelInnerPadding}: 1.375rem 0 0.375rem 0;
|
|
162
|
+
|
|
163
|
+
${_emotion.textFieldTokens.chipGap}: 0.25rem;
|
|
164
|
+
${_emotion.textFieldTokens.chipBorderRadius}: 0.375rem;
|
|
165
|
+
${_emotion.textFieldTokens.chipWidth}: auto;
|
|
166
|
+
${_emotion.textFieldTokens.chipHeight}: 2.25rem;
|
|
167
|
+
${_emotion.textFieldTokens.chipPadding}: 0 0.625rem 0 0.875rem;
|
|
168
|
+
${_emotion.textFieldTokens.chipClearContentMarginLeft}: 0.5rem;
|
|
169
|
+
${_emotion.textFieldTokens.chipClearContentMarginRight}: 0rem;
|
|
170
|
+
${_emotion.textFieldTokens.chipCloseIconSize}: 1.25rem;
|
|
171
|
+
${_emotion.textFieldTokens.chipFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
172
|
+
${_emotion.textFieldTokens.chipFontSize}: var(--plasma-typo-body-m-font-size);
|
|
173
|
+
${_emotion.textFieldTokens.chipFontStyle}: var(--plasma-typo-body-m-font-style);
|
|
174
|
+
${_emotion.textFieldTokens.chipFontWeight}: var(--plasma-typo-body-m-font-weight);
|
|
175
|
+
${_emotion.textFieldTokens.chipLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
176
|
+
${_emotion.textFieldTokens.chipLineHeight}: var(--plasma-typo-body-m-line-height);
|
|
177
|
+
|
|
178
|
+
${_emotion.textFieldTokens.indicatorSizeInner}: 0.5rem;
|
|
179
|
+
${_emotion.textFieldTokens.indicatorSizeOuter}: 0.375rem;
|
|
180
|
+
${_emotion.textFieldTokens.indicatorLabelPlacementInner}: 0 0 0 0;
|
|
181
|
+
${_emotion.textFieldTokens.indicatorLabelPlacementOuter}: 0.375rem auto auto -0.75rem;
|
|
182
|
+
${_emotion.textFieldTokens.indicatorLabelPlacementInnerRight}: 0 0 auto auto;
|
|
183
|
+
${_emotion.textFieldTokens.indicatorLabelPlacementOuterRight}: 0.25rem -0.6875rem auto auto;
|
|
184
|
+
`,
|
|
108
185
|
s: (0, _emotion.css)`
|
|
109
186
|
${_emotion.textFieldTokens.height}: 2.5rem;
|
|
110
187
|
${_emotion.textFieldTokens.padding}: 0.6875rem 0.75rem 0.6875rem 0.75rem;
|
|
@@ -145,7 +222,7 @@ const config = {
|
|
|
145
222
|
${_emotion.textFieldTokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
146
223
|
${_emotion.textFieldTokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
147
224
|
|
|
148
|
-
${_emotion.textFieldTokens.
|
|
225
|
+
${_emotion.textFieldTokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
149
226
|
${_emotion.textFieldTokens.leftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
150
227
|
${_emotion.textFieldTokens.leftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
151
228
|
${_emotion.textFieldTokens.leftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -28,7 +28,7 @@ export const config = {
|
|
|
28
28
|
${accordionTokens.accordionItemTextColor}: var(--text-primary);
|
|
29
29
|
${accordionTokens.accordionItemIconColor}: var(--text-accent);
|
|
30
30
|
${accordionTokens.accordionItemFocus}: var(--surface-accent);
|
|
31
|
-
${accordionTokens.
|
|
31
|
+
${accordionTokens.accordionItemViewBorderRadius}: 0rem;
|
|
32
32
|
${accordionTokens.accordionBackground}: var(--surface-clear);
|
|
33
33
|
${accordionTokens.accordionItemBorderBottom}: 0.125rem solid var(--surface-solid-tertiary);
|
|
34
34
|
${accordionTokens.accordionItemPaddingHorizontalLeft}: 0;
|
|
@@ -122,7 +122,7 @@ export const config = {
|
|
|
122
122
|
${tokens.textFieldLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
123
123
|
${tokens.textFieldLabelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
124
124
|
|
|
125
|
-
${tokens.
|
|
125
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
126
126
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
127
127
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
128
128
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { css, badgeTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
+
import { pilled, sizeS } from './Badge.config.common';
|
|
3
|
+
export const config = {
|
|
4
|
+
defaults: {
|
|
5
|
+
view: 'default',
|
|
6
|
+
size: 's'
|
|
7
|
+
},
|
|
8
|
+
variations: {
|
|
9
|
+
view: {
|
|
10
|
+
default: css`
|
|
11
|
+
${badgeTokens.color}: var(--text-primary);
|
|
12
|
+
`,
|
|
13
|
+
accent: css`
|
|
14
|
+
${badgeTokens.color}: var(--text-accent);
|
|
15
|
+
`,
|
|
16
|
+
positive: css`
|
|
17
|
+
${badgeTokens.color}: var(--text-positive);
|
|
18
|
+
`,
|
|
19
|
+
negative: css`
|
|
20
|
+
${badgeTokens.color}: var(--text-negative);
|
|
21
|
+
`
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
s: css`
|
|
25
|
+
${sizeS}
|
|
26
|
+
`
|
|
27
|
+
},
|
|
28
|
+
pilled: {
|
|
29
|
+
true: css`
|
|
30
|
+
${pilled}
|
|
31
|
+
`
|
|
32
|
+
},
|
|
33
|
+
truncate: {
|
|
34
|
+
true: css``
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { badgeTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
+
export const sizeS = `
|
|
3
|
+
${badgeTokens.borderRadius}: 0.375rem;
|
|
4
|
+
${badgeTokens.height}: 1.5rem;
|
|
5
|
+
${badgeTokens.padding}: 0 0.5rem;
|
|
6
|
+
${badgeTokens.paddingIconOnly}: 0 0.375rem;
|
|
7
|
+
|
|
8
|
+
${badgeTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
|
|
9
|
+
${badgeTokens.fontSize}: var(--plasma-typo-body-s-font-size);
|
|
10
|
+
${badgeTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
|
|
11
|
+
${badgeTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
12
|
+
${badgeTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
13
|
+
${badgeTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
|
|
14
|
+
|
|
15
|
+
${badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
16
|
+
${badgeTokens.leftContentMarginRight}: 0.125rem;
|
|
17
|
+
|
|
18
|
+
${badgeTokens.rightContentMarginLeft}: 0.125rem;
|
|
19
|
+
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
20
|
+
`;
|
|
21
|
+
export const pilled = `
|
|
22
|
+
${badgeTokens.pilledBorderRadius}: 1000px;
|
|
23
|
+
`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css, badgeTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
+
import { pilled, sizeS } from './Badge.config.common';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
4
5
|
view: 'default',
|
|
@@ -36,28 +37,12 @@ export const config = {
|
|
|
36
37
|
},
|
|
37
38
|
size: {
|
|
38
39
|
s: css`
|
|
39
|
-
${
|
|
40
|
-
${badgeTokens.height}: 1.5rem;
|
|
41
|
-
${badgeTokens.padding}: 0 0.5rem;
|
|
42
|
-
${badgeTokens.paddingIconOnly}: 0 0.375rem;
|
|
43
|
-
|
|
44
|
-
${badgeTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
|
|
45
|
-
${badgeTokens.fontSize}: var(--plasma-typo-body-s-font-size);
|
|
46
|
-
${badgeTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
|
|
47
|
-
${badgeTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
48
|
-
${badgeTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
49
|
-
${badgeTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
|
|
50
|
-
|
|
51
|
-
${badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
52
|
-
${badgeTokens.leftContentMarginRight}: 0.125rem;
|
|
53
|
-
|
|
54
|
-
${badgeTokens.rightContentMarginLeft}: 0.125rem;
|
|
55
|
-
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
40
|
+
${sizeS}
|
|
56
41
|
`
|
|
57
42
|
},
|
|
58
43
|
pilled: {
|
|
59
44
|
true: css`
|
|
60
|
-
${
|
|
45
|
+
${pilled}
|
|
61
46
|
`
|
|
62
47
|
},
|
|
63
48
|
transparent: {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { badgeConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
|
1
|
+
import { badgeConfig, component, mergeConfig, createConditionalComponent } from '@salutejs/plasma-new-hope/emotion';
|
|
2
2
|
import { config } from './Badge.config';
|
|
3
|
+
import { config as clearConfig } from './Badge.clear.config';
|
|
3
4
|
const mergedConfig = mergeConfig(badgeConfig, config);
|
|
5
|
+
export const BadgeDefault = component(mergedConfig);
|
|
6
|
+
const mergedConfigClear = mergeConfig(badgeConfig, clearConfig);
|
|
7
|
+
export const BadgeClear = component(mergedConfigClear);
|
|
4
8
|
/**
|
|
5
9
|
* Компонент Badge.
|
|
6
|
-
*/ export const Badge =
|
|
10
|
+
*/ export const Badge = createConditionalComponent({
|
|
11
|
+
default: BadgeDefault,
|
|
12
|
+
clear: BadgeClear
|
|
13
|
+
});
|
|
@@ -41,6 +41,25 @@ export const config = {
|
|
|
41
41
|
`
|
|
42
42
|
},
|
|
43
43
|
size: {
|
|
44
|
+
m: css`
|
|
45
|
+
${buttonTokens.buttonHeight}: 3rem;
|
|
46
|
+
${buttonTokens.buttonWidth}: 11.25rem;
|
|
47
|
+
${buttonTokens.buttonPadding}: 1rem;
|
|
48
|
+
${buttonTokens.buttonRadius}: 0.75rem;
|
|
49
|
+
${buttonTokens.buttonFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
50
|
+
${buttonTokens.buttonFontSize}: var(--plasma-typo-body-m-font-size);
|
|
51
|
+
${buttonTokens.buttonFontStyle}: var(--plasma-typo-body-m-font-style);
|
|
52
|
+
${buttonTokens.buttonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
|
|
53
|
+
${buttonTokens.buttonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
54
|
+
${buttonTokens.buttonLineHeight}: var(--plasma-typo-body-m-line-height);
|
|
55
|
+
|
|
56
|
+
${buttonTokens.buttonSpinnerSize}: 1.375rem;
|
|
57
|
+
${buttonTokens.buttonSpinnerColor}: inherit;
|
|
58
|
+
|
|
59
|
+
${buttonTokens.buttonLeftContentMargin}: 0 0.5rem 0 0;
|
|
60
|
+
${buttonTokens.buttonRightContentMargin}: 0 0 0 0.5rem;
|
|
61
|
+
${buttonTokens.buttonValueMargin}: 0 0 0 0.5rem;
|
|
62
|
+
`,
|
|
44
63
|
s: css`
|
|
45
64
|
${buttonTokens.buttonHeight}: 2.5rem;
|
|
46
65
|
${buttonTokens.buttonWidth}: 11.25rem;
|
|
@@ -160,7 +160,7 @@ export const config = {
|
|
|
160
160
|
${tokens.textFieldLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
161
161
|
${tokens.textFieldLabelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
162
162
|
|
|
163
|
-
${tokens.
|
|
163
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
164
164
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
165
165
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
166
166
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -291,7 +291,7 @@ export const config = {
|
|
|
291
291
|
${tokens.disclosureIconColorHover}: transparent;
|
|
292
292
|
${tokens.textFieldPadding}: 0;
|
|
293
293
|
${tokens.textFieldLabelOffset}: 0.25rem;
|
|
294
|
-
${tokens.
|
|
294
|
+
${tokens.textFieldLeftHelperOffset}: 0rem 0 0 0;
|
|
295
295
|
${tokens.textFieldBorderColor}: transparent;
|
|
296
296
|
${tokens.textFieldBorderWidth}: 0;
|
|
297
297
|
`
|
|
@@ -34,6 +34,21 @@ export const config = {
|
|
|
34
34
|
`
|
|
35
35
|
},
|
|
36
36
|
size: {
|
|
37
|
+
m: css`
|
|
38
|
+
${iconButtonTokens.iconButtonHeight}: 3rem;
|
|
39
|
+
${iconButtonTokens.iconButtonWidth}: 3rem;
|
|
40
|
+
${iconButtonTokens.iconButtonPadding}: 0.75rem;
|
|
41
|
+
${iconButtonTokens.iconButtonRadius}: 0.75rem;
|
|
42
|
+
${iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
43
|
+
${iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
|
|
44
|
+
${iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-m-font-style);
|
|
45
|
+
${iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
|
|
46
|
+
${iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
47
|
+
${iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-m-line-height);
|
|
48
|
+
|
|
49
|
+
${iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
|
|
50
|
+
${iconButtonTokens.iconButtonSpinnerColor}: inherit;
|
|
51
|
+
`,
|
|
37
52
|
s: css`
|
|
38
53
|
${iconButtonTokens.iconButtonHeight}: 2.5rem;
|
|
39
54
|
${iconButtonTokens.iconButtonWidth}: 2.5rem;
|
|
@@ -124,7 +124,7 @@ export const config = {
|
|
|
124
124
|
${tokens.textFieldLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
125
125
|
${tokens.textFieldLabelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
126
126
|
|
|
127
|
-
${tokens.
|
|
127
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
128
128
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
129
129
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
130
130
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -104,7 +104,6 @@ export const config = {
|
|
|
104
104
|
|
|
105
105
|
${sliderTokens.railThickness}: 0.25rem;
|
|
106
106
|
${sliderTokens.railBorderRadius}: 0.125rem;
|
|
107
|
-
${sliderTokens.railIndent}: 0.75rem;
|
|
108
107
|
|
|
109
108
|
${sliderTokens.textFieldWrapperGap}: 0.063rem;
|
|
110
109
|
${sliderTokens.textFieldBorderWidth}: 0.125rem;
|
|
@@ -112,7 +112,7 @@ export const config = {
|
|
|
112
112
|
${tokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
113
113
|
${tokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
114
114
|
|
|
115
|
-
${tokens.
|
|
115
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
116
116
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
117
117
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-s-font-size);
|
|
118
118
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
|