@salutejs/sdds-os 0.25.0-next-sbcom.0 → 0.25.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/Accordion/Accordion.config.js +1 -1
- package/dist/css/cjs/components/Accordion/Accordion.config.js.map +1 -1
- package/dist/css/cjs/components/Accordion/{Accordion.config_x0m23l.css → Accordion.config_q7m5gm.css} +1 -1
- package/dist/css/cjs/components/Accordion/Accordion.css +6 -6
- 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_5n66cg.css → Autocomplete.config_7vcl1u.css} +2 -2
- package/dist/css/cjs/components/Autocomplete/Autocomplete.css +12 -12
- package/dist/css/cjs/components/Badge/Badge.clear.config.js +36 -0
- package/dist/css/cjs/components/Badge/Badge.clear.config.js.map +1 -0
- package/dist/css/cjs/components/Badge/Badge.clear.config_rkojxj.css +12 -0
- package/dist/css/cjs/components/Badge/Badge.config.js +1 -1
- package/dist/css/cjs/components/Badge/Badge.config.js.map +1 -1
- package/dist/css/{es/components/Badge/Badge.config_1ch08c8.css → cjs/components/Badge/Badge.config_1roi5si.css} +1 -1
- package/dist/css/cjs/components/Badge/Badge.css +25 -12
- package/dist/css/cjs/components/Badge/Badge.js +10 -1
- package/dist/css/cjs/components/Badge/Badge.js.map +1 -1
- package/dist/css/cjs/components/Combobox/Combobox.config.js +1 -1
- package/dist/css/cjs/components/Combobox/Combobox.config.js.map +1 -1
- package/dist/css/{es/components/Combobox/Combobox.config_15t2f3z.css → cjs/components/Combobox/Combobox.config_15pzyh8.css} +2 -2
- package/dist/css/cjs/components/Combobox/Combobox.css +15 -15
- package/dist/css/cjs/components/Select/Select.config.js +1 -1
- package/dist/css/cjs/components/Select/Select.config.js.map +1 -1
- package/dist/css/cjs/components/Select/{Select.config_3qkz78.css → Select.config_12ruahx.css} +2 -2
- package/dist/css/cjs/components/Select/Select.css +15 -15
- package/dist/css/cjs/components/TextField/TextField.config.js +1 -1
- package/dist/css/cjs/components/TextField/TextField.config.js.map +1 -1
- package/dist/css/{es/components/TextField/TextField.config_5zurkr.css → cjs/components/TextField/TextField.config_b35paa.css} +2 -2
- package/dist/css/cjs/components/TextField/TextField.css +18 -18
- package/dist/css/cjs/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/dist/css/cjs/components/TextFieldGroup/TextFieldGroup.config.js.map +1 -1
- package/dist/css/cjs/components/TextFieldGroup/{TextFieldGroup.config_15af1x4.css → TextFieldGroup.config_1uu1mly.css} +4 -4
- package/dist/css/cjs/components/TextFieldGroup/TextFieldGroup.css +8 -8
- package/dist/css/cjs/index.css +103 -90
- package/dist/css/es/components/Accordion/Accordion.config.js +1 -1
- package/dist/css/es/components/Accordion/Accordion.config.js.map +1 -1
- package/dist/css/es/components/Accordion/{Accordion.config_x0m23l.css → Accordion.config_q7m5gm.css} +1 -1
- package/dist/css/es/components/Accordion/Accordion.css +6 -6
- 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_5n66cg.css → Autocomplete.config_7vcl1u.css} +2 -2
- package/dist/css/es/components/Autocomplete/Autocomplete.css +12 -12
- package/dist/css/es/components/Badge/Badge.clear.config.js +32 -0
- package/dist/css/es/components/Badge/Badge.clear.config.js.map +1 -0
- package/dist/css/es/components/Badge/Badge.clear.config_rkojxj.css +12 -0
- package/dist/css/es/components/Badge/Badge.config.js +1 -1
- package/dist/css/es/components/Badge/Badge.config.js.map +1 -1
- package/dist/css/{cjs/components/Badge/Badge.config_1ch08c8.css → es/components/Badge/Badge.config_1roi5si.css} +1 -1
- package/dist/css/es/components/Badge/Badge.css +25 -12
- package/dist/css/es/components/Badge/Badge.js +12 -5
- package/dist/css/es/components/Badge/Badge.js.map +1 -1
- package/dist/css/es/components/Combobox/Combobox.config.js +1 -1
- package/dist/css/es/components/Combobox/Combobox.config.js.map +1 -1
- package/dist/css/{cjs/components/Combobox/Combobox.config_15t2f3z.css → es/components/Combobox/Combobox.config_15pzyh8.css} +2 -2
- package/dist/css/es/components/Combobox/Combobox.css +15 -15
- package/dist/css/es/components/Select/Select.config.js +1 -1
- package/dist/css/es/components/Select/Select.config.js.map +1 -1
- package/dist/css/es/components/Select/{Select.config_3qkz78.css → Select.config_12ruahx.css} +2 -2
- package/dist/css/es/components/Select/Select.css +15 -15
- package/dist/css/es/components/TextField/TextField.config.js +1 -1
- package/dist/css/es/components/TextField/TextField.config.js.map +1 -1
- package/dist/css/{cjs/components/TextField/TextField.config_5zurkr.css → es/components/TextField/TextField.config_b35paa.css} +2 -2
- package/dist/css/es/components/TextField/TextField.css +18 -18
- package/dist/css/es/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/dist/css/es/components/TextFieldGroup/TextFieldGroup.config.js.map +1 -1
- package/dist/css/es/components/TextFieldGroup/{TextFieldGroup.config_15af1x4.css → TextFieldGroup.config_1uu1mly.css} +4 -4
- package/dist/css/es/components/TextFieldGroup/TextFieldGroup.css +8 -8
- package/dist/css/es/index.css +103 -90
- package/dist/styled-components/cjs/components/Accordion/Accordion.config.js +1 -1
- package/dist/styled-components/cjs/components/Autocomplete/Autocomplete.config.js +2 -2
- package/dist/styled-components/cjs/components/Badge/Badge.clear.config.js +62 -0
- package/dist/styled-components/cjs/components/Badge/Badge.config.common.js +85 -0
- package/dist/styled-components/cjs/components/Badge/Badge.config.js +5 -52
- package/dist/styled-components/cjs/components/Badge/Badge.js +22 -4
- package/dist/styled-components/cjs/components/Combobox/Combobox.config.js +2 -2
- package/dist/styled-components/cjs/components/LinkButton/LinkButton.config.js +14 -26
- package/dist/styled-components/cjs/components/Scrollbar/Scrollbar.config.js +3 -1
- package/dist/styled-components/cjs/components/Select/Select.config.js +2 -2
- package/dist/styled-components/cjs/components/TextField/TextField.config.js +2 -2
- package/dist/styled-components/cjs/components/TextFieldGroup/TextFieldGroup.config.js +4 -4
- package/dist/styled-components/es/components/Accordion/Accordion.config.js +1 -1
- package/dist/styled-components/es/components/Autocomplete/Autocomplete.config.js +2 -2
- package/dist/styled-components/es/components/Badge/Badge.clear.config.js +52 -0
- package/dist/styled-components/es/components/Badge/Badge.config.common.js +61 -0
- package/dist/styled-components/es/components/Badge/Badge.config.js +5 -52
- package/dist/styled-components/es/components/Badge/Badge.js +9 -2
- package/dist/styled-components/es/components/Combobox/Combobox.config.js +2 -2
- package/dist/styled-components/es/components/LinkButton/LinkButton.config.js +14 -26
- package/dist/styled-components/es/components/Scrollbar/Scrollbar.config.js +3 -1
- package/dist/styled-components/es/components/Select/Select.config.js +2 -2
- package/dist/styled-components/es/components/TextField/TextField.config.js +2 -2
- package/dist/styled-components/es/components/TextFieldGroup/TextFieldGroup.config.js +4 -4
- package/package.json +7 -7
- 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 +28 -0
- package/types/components/Badge/Badge.config.common.d.ts +4 -0
- package/types/components/Badge/Badge.d.ts +185 -18
- package/types/components/DatePicker/DatePicker.d.ts +5 -1
- package/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/types/components/Range/Range.d.ts +372 -0
- package/types/components/Scrollbar/Scrollbar.config.d.ts +2 -0
- package/types/components/TextArea/TextArea.d.ts +32 -32
- package/types/components/TextField/TextField.d.ts +8 -8
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { badgeTokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
|
+
export const sizeL = `
|
|
3
|
+
${badgeTokens.borderRadius}: 0.5rem;
|
|
4
|
+
${badgeTokens.height}: 1.75rem;
|
|
5
|
+
${badgeTokens.padding}: 0 0.6875rem;
|
|
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.25rem;
|
|
17
|
+
|
|
18
|
+
${badgeTokens.rightContentMarginLeft}: 0.25rem;
|
|
19
|
+
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
20
|
+
`;
|
|
21
|
+
export const sizeM = `
|
|
22
|
+
${badgeTokens.borderRadius}: 0.375rem;
|
|
23
|
+
${badgeTokens.height}: 1.5rem;
|
|
24
|
+
${badgeTokens.padding}: 0 0.5625rem;
|
|
25
|
+
${badgeTokens.paddingIconOnly}: 0 0.375rem;
|
|
26
|
+
|
|
27
|
+
${badgeTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
28
|
+
${badgeTokens.fontSize}: var(--plasma-typo-body-xs-font-size);
|
|
29
|
+
${badgeTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
30
|
+
${badgeTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
|
|
31
|
+
${badgeTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
32
|
+
${badgeTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
33
|
+
|
|
34
|
+
${badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
35
|
+
${badgeTokens.leftContentMarginRight}: 0.1875rem;
|
|
36
|
+
|
|
37
|
+
${badgeTokens.rightContentMarginLeft}: 0.1875rem;
|
|
38
|
+
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
39
|
+
`;
|
|
40
|
+
export const sizeS = `
|
|
41
|
+
${badgeTokens.borderRadius}: 0.375rem;
|
|
42
|
+
${badgeTokens.height}: 1.25rem;
|
|
43
|
+
${badgeTokens.padding}: 0 0.4375rem;
|
|
44
|
+
${badgeTokens.paddingIconOnly}: 0 0.25rem;
|
|
45
|
+
|
|
46
|
+
${badgeTokens.fontFamily}: var(--plasma-typo-body-xxs-font-family);
|
|
47
|
+
${badgeTokens.fontSize}: var(--plasma-typo-body-xxs-font-size);
|
|
48
|
+
${badgeTokens.fontStyle}: var(--plasma-typo-body-xxs-font-style);
|
|
49
|
+
${badgeTokens.fontWeight}: var(--plasma-typo-body-xxs-font-weight);
|
|
50
|
+
${badgeTokens.letterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
|
|
51
|
+
${badgeTokens.lineHeight}: var(--plasma-typo-body-xxs-line-height);
|
|
52
|
+
|
|
53
|
+
${badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
54
|
+
${badgeTokens.leftContentMarginRight}: 0.125rem;
|
|
55
|
+
|
|
56
|
+
${badgeTokens.rightContentMarginLeft}: 0.125rem;
|
|
57
|
+
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
58
|
+
`;
|
|
59
|
+
export const pilled = `
|
|
60
|
+
${badgeTokens.pilledBorderRadius}: 1000px;
|
|
61
|
+
`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css, badgeTokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
|
+
import { pilled, sizeL, sizeM, sizeS } from './Badge.config.common';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
4
5
|
view: 'default',
|
|
@@ -72,66 +73,18 @@ export const config = {
|
|
|
72
73
|
},
|
|
73
74
|
size: {
|
|
74
75
|
l: css`
|
|
75
|
-
${
|
|
76
|
-
${badgeTokens.height}: 1.75rem;
|
|
77
|
-
${badgeTokens.padding}: 0 0.6875rem;
|
|
78
|
-
${badgeTokens.paddingIconOnly}: 0 0.375rem;
|
|
79
|
-
|
|
80
|
-
${badgeTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
|
|
81
|
-
${badgeTokens.fontSize}: var(--plasma-typo-body-s-font-size);
|
|
82
|
-
${badgeTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
|
|
83
|
-
${badgeTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
84
|
-
${badgeTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
85
|
-
${badgeTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
|
|
86
|
-
|
|
87
|
-
${badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
88
|
-
${badgeTokens.leftContentMarginRight}: 0.25rem;
|
|
89
|
-
|
|
90
|
-
${badgeTokens.rightContentMarginLeft}: 0.25rem;
|
|
91
|
-
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
76
|
+
${sizeL}
|
|
92
77
|
`,
|
|
93
78
|
m: css`
|
|
94
|
-
${
|
|
95
|
-
${badgeTokens.height}: 1.5rem;
|
|
96
|
-
${badgeTokens.padding}: 0 0.5625rem;
|
|
97
|
-
${badgeTokens.paddingIconOnly}: 0 0.375rem;
|
|
98
|
-
|
|
99
|
-
${badgeTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
100
|
-
${badgeTokens.fontSize}: var(--plasma-typo-body-xs-font-size);
|
|
101
|
-
${badgeTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
102
|
-
${badgeTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
|
|
103
|
-
${badgeTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
104
|
-
${badgeTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
105
|
-
|
|
106
|
-
${badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
107
|
-
${badgeTokens.leftContentMarginRight}: 0.1875rem;
|
|
108
|
-
|
|
109
|
-
${badgeTokens.rightContentMarginLeft}: 0.1875rem;
|
|
110
|
-
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
79
|
+
${sizeM}
|
|
111
80
|
`,
|
|
112
81
|
s: css`
|
|
113
|
-
${
|
|
114
|
-
${badgeTokens.height}: 1.25rem;
|
|
115
|
-
${badgeTokens.padding}: 0 0.4375rem;
|
|
116
|
-
${badgeTokens.paddingIconOnly}: 0 0.25rem;
|
|
117
|
-
|
|
118
|
-
${badgeTokens.fontFamily}: var(--plasma-typo-body-xxs-font-family);
|
|
119
|
-
${badgeTokens.fontSize}: var(--plasma-typo-body-xxs-font-size);
|
|
120
|
-
${badgeTokens.fontStyle}: var(--plasma-typo-body-xxs-font-style);
|
|
121
|
-
${badgeTokens.fontWeight}: var(--plasma-typo-body-xxs-font-weight);
|
|
122
|
-
${badgeTokens.letterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
|
|
123
|
-
${badgeTokens.lineHeight}: var(--plasma-typo-body-xxs-line-height);
|
|
124
|
-
|
|
125
|
-
${badgeTokens.leftContentMarginLeft}: -0.0625rem;
|
|
126
|
-
${badgeTokens.leftContentMarginRight}: 0.125rem;
|
|
127
|
-
|
|
128
|
-
${badgeTokens.rightContentMarginLeft}: 0.125rem;
|
|
129
|
-
${badgeTokens.rightContentMarginRight}: -0.0625rem;
|
|
82
|
+
${sizeS}
|
|
130
83
|
`
|
|
131
84
|
},
|
|
132
85
|
pilled: {
|
|
133
86
|
true: css`
|
|
134
|
-
${
|
|
87
|
+
${pilled}
|
|
135
88
|
`
|
|
136
89
|
},
|
|
137
90
|
clear: {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { badgeConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
|
1
|
+
import { badgeConfig, component, mergeConfig, createConditionalComponent } from '@salutejs/plasma-new-hope/styled-components';
|
|
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
|
+
});
|
|
@@ -265,7 +265,7 @@ export const config = {
|
|
|
265
265
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
|
|
266
266
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.312rem -2.188rem auto auto;
|
|
267
267
|
|
|
268
|
-
${tokens.
|
|
268
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
269
269
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
270
270
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
271
271
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -386,7 +386,7 @@ export const config = {
|
|
|
386
386
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.062rem -2.688rem auto auto;
|
|
387
387
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.062rem -2.188rem auto auto;
|
|
388
388
|
|
|
389
|
-
${tokens.
|
|
389
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
390
390
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
391
391
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
392
392
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -7,78 +7,71 @@ export const config = {
|
|
|
7
7
|
variations: {
|
|
8
8
|
view: {
|
|
9
9
|
default: css`
|
|
10
|
-
${linkButtonTokens.linkButtonColor}: var(--text-primary);
|
|
11
10
|
${linkButtonTokens.linkButtonIconColor}: var(--text-primary);
|
|
12
11
|
${linkButtonTokens.linkButtonTextColor}: var(--text-primary);
|
|
13
12
|
${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-solid-clear);
|
|
14
|
-
${linkButtonTokens.
|
|
15
|
-
${linkButtonTokens.
|
|
13
|
+
${linkButtonTokens.linkButtonIconColorHover}: var(--text-primary-hover);
|
|
14
|
+
${linkButtonTokens.linkButtonIconColorActive}: var(--text-primary-active);
|
|
16
15
|
${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);
|
|
17
16
|
${linkButtonTokens.linkButtonTextColorHover}: var(--text-primary-hover);
|
|
18
17
|
${linkButtonTokens.linkButtonTextColorActive}: var(--text-primary-active);
|
|
19
18
|
`,
|
|
20
19
|
accent: css`
|
|
21
|
-
${linkButtonTokens.linkButtonColor}: var(--text-accent);
|
|
22
20
|
${linkButtonTokens.linkButtonIconColor}: var(--text-accent);
|
|
23
21
|
${linkButtonTokens.linkButtonTextColor}: var(--text-accent);
|
|
24
22
|
${linkButtonTokens.linkButtonBackgroundColor}: var(---surface-solid-clear);
|
|
25
|
-
${linkButtonTokens.
|
|
26
|
-
${linkButtonTokens.
|
|
23
|
+
${linkButtonTokens.linkButtonIconColorHover}: var(--text-accent-hover);
|
|
24
|
+
${linkButtonTokens.linkButtonIconColorActive}: var(--text-accent-active);
|
|
27
25
|
${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);
|
|
28
26
|
${linkButtonTokens.linkButtonTextColorHover}: var(--text-accent-hover);
|
|
29
27
|
${linkButtonTokens.linkButtonTextColorActive}: var(--text-accent-active);
|
|
30
28
|
`,
|
|
31
29
|
secondary: css`
|
|
32
|
-
${linkButtonTokens.linkButtonColor}: var(--text-secondary);
|
|
33
30
|
${linkButtonTokens.linkButtonIconColor}: var(--text-secondary);
|
|
34
31
|
${linkButtonTokens.linkButtonTextColor}: var(--text-secondary);
|
|
35
32
|
${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-solid-clear);
|
|
36
|
-
${linkButtonTokens.
|
|
37
|
-
${linkButtonTokens.
|
|
33
|
+
${linkButtonTokens.linkButtonIconColorHover}: var(--text-secondary-hover);
|
|
34
|
+
${linkButtonTokens.linkButtonIconColorActive}: var(--text-secondary-active);
|
|
38
35
|
${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);
|
|
39
36
|
${linkButtonTokens.linkButtonTextColorHover}: var(--text-secondary-hover);
|
|
40
37
|
${linkButtonTokens.linkButtonTextColorActive}: var(--text-secondary-active);
|
|
41
38
|
`,
|
|
42
39
|
positive: css`
|
|
43
|
-
${linkButtonTokens.linkButtonColor}: var(--text-positive);
|
|
44
40
|
${linkButtonTokens.linkButtonIconColor}: var(--text-positive);
|
|
45
41
|
${linkButtonTokens.linkButtonTextColor}: var(--text-positive);
|
|
46
42
|
${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-solid-clear);
|
|
47
|
-
${linkButtonTokens.
|
|
48
|
-
${linkButtonTokens.
|
|
43
|
+
${linkButtonTokens.linkButtonIconColorHover}: var(--text-positive-hover);
|
|
44
|
+
${linkButtonTokens.linkButtonIconColorActive}: var(--text-positive-active);
|
|
49
45
|
${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);
|
|
50
46
|
${linkButtonTokens.linkButtonTextColorHover}: var(--text-positive-hover);
|
|
51
47
|
${linkButtonTokens.linkButtonTextColorActive}: var(--text-positive-active);
|
|
52
48
|
`,
|
|
53
49
|
warning: css`
|
|
54
|
-
${linkButtonTokens.linkButtonColor}: var(--text-warning);
|
|
55
50
|
${linkButtonTokens.linkButtonIconColor}: var(--text-warning);
|
|
56
51
|
${linkButtonTokens.linkButtonTextColor}: var(--text-warning);
|
|
57
52
|
${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-solid-clear);
|
|
58
|
-
${linkButtonTokens.
|
|
59
|
-
${linkButtonTokens.
|
|
53
|
+
${linkButtonTokens.linkButtonIconColorHover}: var(--text-warning-hover);
|
|
54
|
+
${linkButtonTokens.linkButtonIconColorActive}: var(--text-warning-active);
|
|
60
55
|
${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);
|
|
61
56
|
${linkButtonTokens.linkButtonTextColorHover}: var(--text-warning-hover);
|
|
62
57
|
${linkButtonTokens.linkButtonTextColorActive}: var(--text-warning-active);
|
|
63
58
|
`,
|
|
64
59
|
negative: css`
|
|
65
|
-
${linkButtonTokens.linkButtonColor}: var(--text-negative);
|
|
66
60
|
${linkButtonTokens.linkButtonIconColor}: var(--text-negative);
|
|
67
61
|
${linkButtonTokens.linkButtonTextColor}: var(--text-negative);
|
|
68
62
|
${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-solid-clear);
|
|
69
|
-
${linkButtonTokens.
|
|
70
|
-
${linkButtonTokens.
|
|
63
|
+
${linkButtonTokens.linkButtonIconColorHover}: var(--text-negative-hover);
|
|
64
|
+
${linkButtonTokens.linkButtonIconColorActive}: var(--text-negative-active);
|
|
71
65
|
${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);
|
|
72
66
|
${linkButtonTokens.linkButtonTextColorHover}: var(--text-negative-hover);
|
|
73
67
|
${linkButtonTokens.linkButtonTextColorActive}: var(--text-negative-active);
|
|
74
68
|
`,
|
|
75
69
|
info: css`
|
|
76
|
-
${linkButtonTokens.linkButtonColor}: var(--text-info);
|
|
77
70
|
${linkButtonTokens.linkButtonIconColor}: var(--text-info);
|
|
78
71
|
${linkButtonTokens.linkButtonTextColor}: var(--text-info);
|
|
79
72
|
${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-solid-clear);
|
|
80
|
-
${linkButtonTokens.
|
|
81
|
-
${linkButtonTokens.
|
|
73
|
+
${linkButtonTokens.linkButtonIconColorHover}: var(--text-info-hover);
|
|
74
|
+
${linkButtonTokens.linkButtonIconColorActive}: var(--text-info-active);
|
|
82
75
|
${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);
|
|
83
76
|
${linkButtonTokens.linkButtonTextColorHover}: var(--text-info-hover);
|
|
84
77
|
${linkButtonTokens.linkButtonTextColorActive}: var(--text-info-active);
|
|
@@ -173,7 +166,6 @@ export const config = {
|
|
|
173
166
|
view: 'default',
|
|
174
167
|
disabled: true,
|
|
175
168
|
style: css`
|
|
176
|
-
${linkButtonTokens.linkButtonColor}: var(--text-tertiary);
|
|
177
169
|
${linkButtonTokens.linkButtonIconColor}: var(--text-tertiary);
|
|
178
170
|
${linkButtonTokens.linkButtonTextColor}: var(--text-tertiary);
|
|
179
171
|
`
|
|
@@ -189,7 +181,6 @@ export const config = {
|
|
|
189
181
|
view: 'secondary',
|
|
190
182
|
disabled: true,
|
|
191
183
|
style: css`
|
|
192
|
-
${linkButtonTokens.linkButtonColor}: var(--text-tertiary);
|
|
193
184
|
${linkButtonTokens.linkButtonIconColor}: var(--text-tertiary);
|
|
194
185
|
${linkButtonTokens.linkButtonTextColor}: var(--text-tertiary);
|
|
195
186
|
`
|
|
@@ -205,7 +196,6 @@ export const config = {
|
|
|
205
196
|
view: 'warning',
|
|
206
197
|
disabled: true,
|
|
207
198
|
style: css`
|
|
208
|
-
${linkButtonTokens.linkButtonColor}: var(--text-warning-minor);
|
|
209
199
|
${linkButtonTokens.linkButtonIconColor}: var(--text-warning-minor);
|
|
210
200
|
${linkButtonTokens.linkButtonTextColor}: var(--text-warning-minor);
|
|
211
201
|
`
|
|
@@ -214,7 +204,6 @@ export const config = {
|
|
|
214
204
|
view: 'negative',
|
|
215
205
|
disabled: true,
|
|
216
206
|
style: css`
|
|
217
|
-
${linkButtonTokens.linkButtonColor}: var(--text-negative-minor);
|
|
218
207
|
${linkButtonTokens.linkButtonIconColor}: var(--text-negative-minor);
|
|
219
208
|
${linkButtonTokens.linkButtonTextColor}: var(--text-negative-minor);
|
|
220
209
|
`
|
|
@@ -223,7 +212,6 @@ export const config = {
|
|
|
223
212
|
view: 'info',
|
|
224
213
|
disabled: true,
|
|
225
214
|
style: css`
|
|
226
|
-
${linkButtonTokens.linkButtonColor}: var(--text-info-minor);
|
|
227
215
|
${linkButtonTokens.linkButtonIconColor}: var(--text-info-minor);
|
|
228
216
|
${linkButtonTokens.linkButtonTextColor}: var(--text-info-minor);
|
|
229
217
|
`
|
|
@@ -6,7 +6,9 @@ export const config = {
|
|
|
6
6
|
view: {
|
|
7
7
|
default: {
|
|
8
8
|
trackColor: 'var(--surface-solid-primary)',
|
|
9
|
-
thumbColor: 'var(--surface-solid-tertiary)'
|
|
9
|
+
thumbColor: 'var(--surface-solid-tertiary)',
|
|
10
|
+
thumbHoverColor: 'var(--surface-solid-tertiary-hover)',
|
|
11
|
+
thumbActiveColor: 'var(--surface-solid-tertiary-active)'
|
|
10
12
|
}
|
|
11
13
|
},
|
|
12
14
|
size: {
|
|
@@ -236,7 +236,7 @@ export const config = {
|
|
|
236
236
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
|
|
237
237
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.312rem -2.188rem auto auto;
|
|
238
238
|
|
|
239
|
-
${tokens.
|
|
239
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
240
240
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
241
241
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
242
242
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -361,7 +361,7 @@ export const config = {
|
|
|
361
361
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.062rem -2.688rem auto auto;
|
|
362
362
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.062rem -2.188rem auto auto;
|
|
363
363
|
|
|
364
|
-
${tokens.
|
|
364
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
365
365
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
366
366
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
367
367
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -179,7 +179,7 @@ export const config = {
|
|
|
179
179
|
${tokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
180
180
|
${tokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
181
181
|
|
|
182
|
-
${tokens.
|
|
182
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
183
183
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
184
184
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
185
185
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -265,7 +265,7 @@ export const config = {
|
|
|
265
265
|
${tokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
266
266
|
${tokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
267
267
|
|
|
268
|
-
${tokens.
|
|
268
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
269
269
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
270
270
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
271
271
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -35,7 +35,7 @@ export const config = {
|
|
|
35
35
|
${tokens.labelLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
|
|
36
36
|
${tokens.labelLineHeight}: var(--plasma-typo-body-l-line-height);
|
|
37
37
|
|
|
38
|
-
${tokens.
|
|
38
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
39
39
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
40
40
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
41
41
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -91,7 +91,7 @@ export const config = {
|
|
|
91
91
|
${tokens.labelLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
92
92
|
${tokens.labelLineHeight}: var(--plasma-typo-body-m-line-height);
|
|
93
93
|
|
|
94
|
-
${tokens.
|
|
94
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
95
95
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
96
96
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
97
97
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -147,7 +147,7 @@ export const config = {
|
|
|
147
147
|
${tokens.labelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
148
148
|
${tokens.labelLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
149
149
|
|
|
150
|
-
${tokens.
|
|
150
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
151
151
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
152
152
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
153
153
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -203,7 +203,7 @@ export const config = {
|
|
|
203
203
|
${tokens.labelLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
204
204
|
${tokens.labelLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
205
205
|
|
|
206
|
-
${tokens.
|
|
206
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
207
207
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
208
208
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
209
209
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/sdds-os",
|
|
3
|
-
"version": "0.25.0
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS OS web applications",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@salutejs-ds/sdds_os": "0.1.2",
|
|
44
|
-
"@salutejs/plasma-new-hope": "0.367.0
|
|
44
|
+
"@salutejs/plasma-new-hope": "0.367.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/cli": "7.24.1",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
61
61
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
62
62
|
"@salutejs/plasma-colors": "0.16.0",
|
|
63
|
-
"@salutejs/plasma-core": "1.230.0
|
|
64
|
-
"@salutejs/plasma-cy-utils": "0.160.0
|
|
65
|
-
"@salutejs/plasma-icons": "1.241.0
|
|
66
|
-
"@salutejs/plasma-sb-utils": "0.231.0
|
|
63
|
+
"@salutejs/plasma-core": "1.230.0",
|
|
64
|
+
"@salutejs/plasma-cy-utils": "0.160.0",
|
|
65
|
+
"@salutejs/plasma-icons": "1.241.0",
|
|
66
|
+
"@salutejs/plasma-sb-utils": "0.231.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": "22cd4c680b11c65c8abe88d14e6c8c37af778906"
|
|
112
112
|
}
|