@salutejs/sdds-platform-ai 0.355.0-next-sbcom.0 → 0.355.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_1h906dx.css → Autocomplete.config_1ws4t03.css} +1 -1
- package/dist/css/cjs/components/Autocomplete/Autocomplete.css +11 -11
- package/dist/css/cjs/components/Avatar/Avatar.config.js +20 -17
- package/dist/css/cjs/components/Avatar/{Avatar.config_4f6mg3.css → Avatar.config_1rly8ti.css} +18 -17
- package/dist/css/cjs/components/Avatar/Avatar.css +22 -21
- package/dist/css/cjs/components/Button/Button.config.js +1 -1
- package/dist/css/cjs/components/Button/{Button.config_1qsrw04.css → Button.config_cvoiyn.css} +6 -6
- package/dist/css/cjs/components/Button/Button.css +17 -17
- package/dist/css/cjs/components/ChipGroup/ChipGroup.config.js +1 -1
- package/dist/css/{es/components/ChipGroup/ChipGroup.config_78ujzr.css → cjs/components/ChipGroup/ChipGroup.config_1s1t7h.css} +3 -3
- package/dist/css/cjs/components/ChipGroup/ChipGroup.css +7 -7
- package/dist/css/cjs/components/CodeArea/CodeArea.config.js +25 -0
- package/dist/css/cjs/components/CodeArea/CodeArea.config_1m6g1vz.css +6 -0
- package/dist/css/cjs/components/CodeArea/CodeArea.css +13 -0
- package/dist/css/cjs/components/CodeArea/CodeArea.hasWrapper.config.js +25 -0
- package/dist/css/cjs/components/CodeArea/CodeArea.hasWrapper.config_ughtmn.css +6 -0
- package/dist/css/cjs/components/CodeArea/CodeArea.js +20 -0
- package/dist/css/cjs/components/Combobox/Combobox.config.js +1 -1
- package/dist/css/cjs/components/Combobox/{Combobox.config_z0i33p.css → Combobox.config_omeedx.css} +1 -1
- package/dist/css/cjs/components/Combobox/Combobox.css +14 -14
- package/dist/css/cjs/components/IconButton/IconButton.config.js +1 -1
- package/dist/css/cjs/components/IconButton/{IconButton.config_7vu7fr.css → IconButton.config_ab79bx.css} +4 -4
- package/dist/css/cjs/components/IconButton/IconButton.css +17 -17
- package/dist/css/cjs/components/Mask/Mask.css +17 -17
- package/dist/css/cjs/components/Segment/Segment.css +10 -10
- package/dist/css/cjs/components/Segment/SegmentItem.config.js +1 -1
- package/dist/css/cjs/components/Segment/{SegmentItem.config_fzmyg5.css → SegmentItem.config_azurw1.css} +4 -4
- package/dist/css/cjs/components/Select/Select.config.js +1 -1
- package/dist/css/{es/components/Select/Select.config_ghpmgq.css → cjs/components/Select/Select.config_5e9tie.css} +1 -1
- package/dist/css/cjs/components/Select/Select.css +20 -20
- package/dist/css/cjs/components/Switch/Switch.config.js +1 -1
- package/dist/css/cjs/components/Switch/{Switch.config_14zkqto.css → Switch.config_18ynql6.css} +1 -1
- package/dist/css/cjs/components/Switch/Switch.css +7 -7
- package/dist/css/cjs/components/TextField/TextField.config.js +1 -1
- package/dist/css/{es/components/TextField/TextField.config_57h6xx.css → cjs/components/TextField/TextField.config_7lmxcl.css} +1 -1
- package/dist/css/cjs/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/dist/css/{es/components/TextFieldGroup/TextFieldGroup.config_86nlge.css → cjs/components/TextFieldGroup/TextFieldGroup.config_14jpfof.css} +1 -1
- package/dist/css/cjs/components/TextFieldGroup/TextFieldGroup.css +6 -6
- package/dist/css/cjs/components/ViewContainer/ViewContainer.config.js +1 -1
- package/dist/css/cjs/components/ViewContainer/ViewContainer.config_nfkllp.css +2 -0
- package/dist/css/cjs/components/ViewContainer/ViewContainer.css +2 -2
- package/dist/css/cjs/index.css +168 -153
- package/dist/css/cjs/index.js +2 -0
- package/dist/css/es/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/css/es/components/Autocomplete/{Autocomplete.config_1h906dx.css → Autocomplete.config_1ws4t03.css} +1 -1
- package/dist/css/es/components/Autocomplete/Autocomplete.css +11 -11
- package/dist/css/es/components/Avatar/Avatar.config.js +20 -17
- package/dist/css/es/components/Avatar/{Avatar.config_4f6mg3.css → Avatar.config_1rly8ti.css} +18 -17
- package/dist/css/es/components/Avatar/Avatar.css +22 -21
- package/dist/css/es/components/Button/Button.config.js +1 -1
- package/dist/css/es/components/Button/{Button.config_1qsrw04.css → Button.config_cvoiyn.css} +6 -6
- package/dist/css/es/components/Button/Button.css +17 -17
- package/dist/css/es/components/ChipGroup/ChipGroup.config.js +1 -1
- package/dist/css/{cjs/components/ChipGroup/ChipGroup.config_78ujzr.css → es/components/ChipGroup/ChipGroup.config_1s1t7h.css} +3 -3
- package/dist/css/es/components/ChipGroup/ChipGroup.css +7 -7
- package/dist/css/es/components/CodeArea/CodeArea.config.js +21 -0
- package/dist/css/es/components/CodeArea/CodeArea.config_1m6g1vz.css +6 -0
- package/dist/css/es/components/CodeArea/CodeArea.css +13 -0
- package/dist/css/es/components/CodeArea/CodeArea.hasWrapper.config.js +21 -0
- package/dist/css/es/components/CodeArea/CodeArea.hasWrapper.config_ughtmn.css +6 -0
- package/dist/css/es/components/CodeArea/CodeArea.js +14 -0
- package/dist/css/es/components/Combobox/Combobox.config.js +1 -1
- package/dist/css/es/components/Combobox/{Combobox.config_z0i33p.css → Combobox.config_omeedx.css} +1 -1
- package/dist/css/es/components/Combobox/Combobox.css +14 -14
- package/dist/css/es/components/IconButton/IconButton.config.js +1 -1
- package/dist/css/es/components/IconButton/{IconButton.config_7vu7fr.css → IconButton.config_ab79bx.css} +4 -4
- package/dist/css/es/components/IconButton/IconButton.css +17 -17
- package/dist/css/es/components/Mask/Mask.css +17 -17
- package/dist/css/es/components/Segment/Segment.css +10 -10
- package/dist/css/es/components/Segment/SegmentItem.config.js +1 -1
- package/dist/css/es/components/Segment/{SegmentItem.config_fzmyg5.css → SegmentItem.config_azurw1.css} +4 -4
- package/dist/css/es/components/Select/Select.config.js +1 -1
- package/dist/css/{cjs/components/Select/Select.config_ghpmgq.css → es/components/Select/Select.config_5e9tie.css} +1 -1
- package/dist/css/es/components/Select/Select.css +20 -20
- package/dist/css/es/components/Switch/Switch.config.js +1 -1
- package/dist/css/es/components/Switch/{Switch.config_14zkqto.css → Switch.config_18ynql6.css} +1 -1
- package/dist/css/es/components/Switch/Switch.css +7 -7
- package/dist/css/es/components/TextField/TextField.config.js +1 -1
- package/dist/css/{cjs/components/TextField/TextField.config_57h6xx.css → es/components/TextField/TextField.config_7lmxcl.css} +1 -1
- package/dist/css/es/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/dist/css/{cjs/components/TextFieldGroup/TextFieldGroup.config_86nlge.css → es/components/TextFieldGroup/TextFieldGroup.config_14jpfof.css} +1 -1
- package/dist/css/es/components/TextFieldGroup/TextFieldGroup.css +6 -6
- package/dist/css/es/components/ViewContainer/ViewContainer.config.js +1 -1
- package/dist/css/es/components/ViewContainer/ViewContainer.config_nfkllp.css +2 -0
- package/dist/css/es/components/ViewContainer/ViewContainer.css +2 -2
- package/dist/css/es/index.css +168 -153
- package/dist/css/es/index.js +1 -0
- package/dist/styled-components/cjs/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/styled-components/cjs/components/Avatar/Avatar.config.js +8 -0
- package/dist/styled-components/cjs/components/Button/Button.config.js +7 -7
- package/dist/styled-components/cjs/components/ChipGroup/ChipGroup.config.js +3 -0
- package/dist/styled-components/cjs/components/CodeArea/CodeArea.config.js +161 -0
- package/dist/styled-components/cjs/components/CodeArea/CodeArea.hasWrapper.config.js +161 -0
- package/dist/styled-components/cjs/components/CodeArea/CodeArea.js +32 -0
- package/dist/styled-components/cjs/components/CodeArea/index.js +11 -0
- package/dist/styled-components/cjs/components/Combobox/Combobox.config.js +1 -1
- package/dist/styled-components/cjs/components/IconButton/IconButton.config.js +4 -4
- package/dist/styled-components/cjs/components/Segment/SegmentItem.config.js +4 -4
- package/dist/styled-components/cjs/components/Select/Select.config.js +1 -1
- package/dist/styled-components/cjs/components/Switch/Switch.config.js +4 -4
- package/dist/styled-components/cjs/components/TextField/TextField.config.js +1 -1
- package/dist/styled-components/cjs/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/dist/styled-components/cjs/index.js +1 -0
- package/dist/styled-components/es/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/styled-components/es/components/Avatar/Avatar.config.js +8 -0
- package/dist/styled-components/es/components/Button/Button.config.js +7 -7
- package/dist/styled-components/es/components/ChipGroup/ChipGroup.config.js +3 -0
- package/dist/styled-components/es/components/CodeArea/CodeArea.config.js +151 -0
- package/dist/styled-components/es/components/CodeArea/CodeArea.hasWrapper.config.js +151 -0
- package/dist/styled-components/es/components/CodeArea/CodeArea.js +11 -0
- package/dist/styled-components/es/components/CodeArea/index.js +1 -0
- package/dist/styled-components/es/components/Combobox/Combobox.config.js +1 -1
- package/dist/styled-components/es/components/IconButton/IconButton.config.js +4 -4
- package/dist/styled-components/es/components/Segment/SegmentItem.config.js +4 -4
- package/dist/styled-components/es/components/Select/Select.config.js +1 -1
- package/dist/styled-components/es/components/Switch/Switch.config.js +4 -4
- package/dist/styled-components/es/components/TextField/TextField.config.js +1 -1
- package/dist/styled-components/es/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
- package/dist/styled-components/es/index.js +1 -0
- package/package.json +8 -8
- package/types/components/Avatar/Avatar.config.d.ts +3 -0
- package/types/components/Avatar/Avatar.d.ts +13 -4
- package/types/components/CodeArea/CodeArea.config.d.ts +18 -0
- package/types/components/CodeArea/CodeArea.d.ts +91 -0
- package/types/components/CodeArea/CodeArea.hasWrapper.config.d.ts +18 -0
- package/types/components/CodeArea/index.d.ts +1 -0
- package/types/components/Select/Select.d.ts +8 -8
- package/types/index.d.ts +1 -0
- package/types/mixins/index.d.ts +1 -1
- package/dist/css/cjs/components/ViewContainer/ViewContainer.config_jyhrh5.css +0 -2
- package/dist/css/es/components/ViewContainer/ViewContainer.config_jyhrh5.css +0 -2
|
@@ -120,6 +120,14 @@ export const config = {
|
|
|
120
120
|
${tokens.fontWeight}: 0;
|
|
121
121
|
${tokens.lineHeight}: 0;
|
|
122
122
|
${tokens.statusIconSize}: 0;
|
|
123
|
+
${tokens.borderRadius}: 50%;
|
|
124
|
+
`
|
|
125
|
+
},
|
|
126
|
+
focused: {
|
|
127
|
+
true: css`
|
|
128
|
+
${tokens.outlineSize}: 0.1rem;
|
|
129
|
+
${tokens.outlineOffset}: -0.2rem;
|
|
130
|
+
${tokens.outlineColor}: var(--surface-accent);
|
|
123
131
|
`
|
|
124
132
|
},
|
|
125
133
|
shape: {
|
|
@@ -51,8 +51,8 @@ export const config = {
|
|
|
51
51
|
${buttonTokens.buttonValueColor}: var(--text-secondary);
|
|
52
52
|
|
|
53
53
|
${buttonTokens.buttonBackgroundColor}: var(--surface-clear);
|
|
54
|
-
${buttonTokens.buttonBackgroundColorHover}: var(--
|
|
55
|
-
${buttonTokens.buttonBackgroundColorActive}: var(--
|
|
54
|
+
${buttonTokens.buttonBackgroundColorHover}: var(--surface-transparent-secondary-hover);
|
|
55
|
+
${buttonTokens.buttonBackgroundColorActive}: var(--surface-transparent-secondary-active);
|
|
56
56
|
|
|
57
57
|
${buttonTokens.buttonLoadingBackgroundColor}: var(${buttonTokens.buttonBackgroundColor});
|
|
58
58
|
`,
|
|
@@ -140,7 +140,7 @@ export const config = {
|
|
|
140
140
|
${buttonTokens.buttonHeight}: 4rem;
|
|
141
141
|
${buttonTokens.buttonWidth}: 12.5rem;
|
|
142
142
|
${buttonTokens.buttonPadding}: 1.75rem;
|
|
143
|
-
${buttonTokens.buttonRadius}:
|
|
143
|
+
${buttonTokens.buttonRadius}: 1rem;
|
|
144
144
|
${buttonTokens.buttonFontFamily}: var(--plasma-typo-body-l-font-family);
|
|
145
145
|
${buttonTokens.buttonFontSize}: var(--plasma-typo-body-l-font-size);
|
|
146
146
|
${buttonTokens.buttonFontStyle}: var(--plasma-typo-body-l-font-style);
|
|
@@ -161,7 +161,7 @@ export const config = {
|
|
|
161
161
|
${buttonTokens.buttonHeight}: 3.5rem;
|
|
162
162
|
${buttonTokens.buttonWidth}: 12.5rem;
|
|
163
163
|
${buttonTokens.buttonPadding}: 1.75rem;
|
|
164
|
-
${buttonTokens.buttonRadius}:
|
|
164
|
+
${buttonTokens.buttonRadius}: 0.875rem;
|
|
165
165
|
|
|
166
166
|
${buttonTokens.buttonFontFamily}: var(--plasma-typo-body-l-font-family);
|
|
167
167
|
${buttonTokens.buttonFontSize}: var(--plasma-typo-body-l-font-size);
|
|
@@ -183,7 +183,7 @@ export const config = {
|
|
|
183
183
|
${buttonTokens.buttonHeight}: 3rem;
|
|
184
184
|
${buttonTokens.buttonWidth}: 11.25rem;
|
|
185
185
|
${buttonTokens.buttonPadding}: 1.5rem;
|
|
186
|
-
${buttonTokens.buttonRadius}:
|
|
186
|
+
${buttonTokens.buttonRadius}: 0.75rem;
|
|
187
187
|
${buttonTokens.buttonFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
188
188
|
${buttonTokens.buttonFontSize}: var(--plasma-typo-body-m-font-size);
|
|
189
189
|
${buttonTokens.buttonFontStyle}: var(--plasma-typo-body-m-font-style);
|
|
@@ -204,7 +204,7 @@ export const config = {
|
|
|
204
204
|
${buttonTokens.buttonHeight}: 2.5rem;
|
|
205
205
|
${buttonTokens.buttonWidth}: 11.25rem;
|
|
206
206
|
${buttonTokens.buttonPadding}: 1rem;
|
|
207
|
-
${buttonTokens.buttonRadius}:
|
|
207
|
+
${buttonTokens.buttonRadius}: 0.625rem;
|
|
208
208
|
${buttonTokens.buttonFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
209
209
|
${buttonTokens.buttonFontSize}: var(--plasma-typo-body-s-font-size);
|
|
210
210
|
${buttonTokens.buttonFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
@@ -225,7 +225,7 @@ export const config = {
|
|
|
225
225
|
${buttonTokens.buttonHeight}: 2rem;
|
|
226
226
|
${buttonTokens.buttonWidth}: 10rem;
|
|
227
227
|
${buttonTokens.buttonPadding}: 0.75rem;
|
|
228
|
-
${buttonTokens.buttonRadius}:
|
|
228
|
+
${buttonTokens.buttonRadius}: 0.5rem;
|
|
229
229
|
|
|
230
230
|
${buttonTokens.buttonFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
231
231
|
${buttonTokens.buttonFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
@@ -7,6 +7,7 @@ export const config = {
|
|
|
7
7
|
variations: {
|
|
8
8
|
view: {
|
|
9
9
|
default: css`
|
|
10
|
+
${tokens.chipFocusColor}: var(--surface-accent);
|
|
10
11
|
${tokens.chipColor}: var(--inverse-text-primary);
|
|
11
12
|
${tokens.chipBackground}: var(--surface-solid-default);
|
|
12
13
|
${tokens.chipColorHover}: var(--inverse-text-primary);
|
|
@@ -15,6 +16,7 @@ export const config = {
|
|
|
15
16
|
${tokens.chipBackgroundActive}: var(--surface-solid-default-active);
|
|
16
17
|
`,
|
|
17
18
|
secondary: css`
|
|
19
|
+
${tokens.chipFocusColor}: var(--surface-accent);
|
|
18
20
|
${tokens.chipColor}: var(--text-primary);
|
|
19
21
|
${tokens.chipBackground}: var(--surface-transparent-secondary);
|
|
20
22
|
${tokens.chipColorHover}: var(--text-primary);
|
|
@@ -23,6 +25,7 @@ export const config = {
|
|
|
23
25
|
${tokens.chipBackgroundActive}: var(--surface-transparent-secondary-active);
|
|
24
26
|
`,
|
|
25
27
|
accent: css`
|
|
28
|
+
${tokens.chipFocusColor}: var(--surface-accent);
|
|
26
29
|
${tokens.chipColor}: var(--on-dark-text-primary);
|
|
27
30
|
${tokens.chipBackground}: var(--surface-accent);
|
|
28
31
|
${tokens.chipColorHover}: var(--on-dark-text-primary);
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { css, codeAreaTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
|
+
export const config = {
|
|
3
|
+
defaults: {
|
|
4
|
+
view: 'default',
|
|
5
|
+
size: 'm'
|
|
6
|
+
},
|
|
7
|
+
variations: {
|
|
8
|
+
view: {
|
|
9
|
+
default: css`
|
|
10
|
+
${tokens.wrapperBackgroundColor}: transparent;
|
|
11
|
+
${tokens.fieldBackgroundColor}: var(--surface-transparent-primary);
|
|
12
|
+
|
|
13
|
+
${tokens.codeColor}: var(--text-primary);
|
|
14
|
+
${tokens.lineNumberColor}: var(--text-tertiary);
|
|
15
|
+
${tokens.dividerColor}: var(--surface-transparent-tertiary);
|
|
16
|
+
|
|
17
|
+
${tokens.scrollTrackColor}: var(--surface-transparent-primary);
|
|
18
|
+
${tokens.scrollThumbColor}: var(--surface-transparent-tertiary);
|
|
19
|
+
|
|
20
|
+
${tokens.syntaxYellow}: var(--syntax-yellow);
|
|
21
|
+
${tokens.syntaxOrange}: var(--syntax-orange);
|
|
22
|
+
${tokens.syntaxPink}: var(--syntax-pink);
|
|
23
|
+
${tokens.syntaxSpring}: var(--syntax-spring);
|
|
24
|
+
${tokens.syntaxSkyBlue}: var(--syntax-sky-blue);
|
|
25
|
+
${tokens.syntaxRed}: var(--syntax-red);
|
|
26
|
+
`
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
xl: css`
|
|
30
|
+
${tokens.wrapperPadding}: 0;
|
|
31
|
+
${tokens.wrapperGap}: 1.25rem;
|
|
32
|
+
${tokens.wrapperBorderRadius}: 0;
|
|
33
|
+
|
|
34
|
+
${tokens.overlayBorderRadius}: 1rem;
|
|
35
|
+
${tokens.overlayPadding}: 1.25rem 1.125rem;
|
|
36
|
+
|
|
37
|
+
${tokens.headerMarginBottom}: 1.25rem;
|
|
38
|
+
${tokens.contentGap}: 0.5rem;
|
|
39
|
+
${tokens.lineNumberGap}: 0.5rem;
|
|
40
|
+
${tokens.numerationPaddingRight}: 0.5rem;
|
|
41
|
+
${tokens.codeMarginRight}: -1rem;
|
|
42
|
+
${tokens.codePaddingRight}: 2.875rem;
|
|
43
|
+
|
|
44
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
45
|
+
${tokens.fontSize}: var(--plasma-typo-body-l-font-size);
|
|
46
|
+
${tokens.fontStyle}: var(--plasma-typo-body-l-font-style);
|
|
47
|
+
${tokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
|
|
48
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
|
|
49
|
+
${tokens.lineHeight}: var(--plasma-typo-body-l-line-height);
|
|
50
|
+
|
|
51
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
52
|
+
`,
|
|
53
|
+
l: css`
|
|
54
|
+
${tokens.wrapperPadding}: 0;
|
|
55
|
+
${tokens.wrapperGap}: 1rem;
|
|
56
|
+
${tokens.wrapperBorderRadius}: 0;
|
|
57
|
+
|
|
58
|
+
${tokens.overlayBorderRadius}: 0.875rem;
|
|
59
|
+
${tokens.overlayPadding}: 1rem;
|
|
60
|
+
|
|
61
|
+
${tokens.headerMarginBottom}: 1rem;
|
|
62
|
+
${tokens.contentGap}: 0.5rem;
|
|
63
|
+
${tokens.lineNumberGap}: 0.5rem;
|
|
64
|
+
${tokens.numerationPaddingRight}: 0.5rem;
|
|
65
|
+
${tokens.codeMarginRight}: -0.875rem;
|
|
66
|
+
${tokens.codePaddingRight}: 2.75rem;
|
|
67
|
+
|
|
68
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
69
|
+
${tokens.fontSize}: var(--plasma-typo-body-l-font-size);
|
|
70
|
+
${tokens.fontStyle}: var(--plasma-typo-body-l-font-style);
|
|
71
|
+
${tokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
|
|
72
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
|
|
73
|
+
${tokens.lineHeight}: var(--plasma-typo-body-l-line-height);
|
|
74
|
+
|
|
75
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
76
|
+
`,
|
|
77
|
+
m: css`
|
|
78
|
+
${tokens.wrapperPadding}: 0;
|
|
79
|
+
${tokens.wrapperGap}: 0.75rem;
|
|
80
|
+
${tokens.wrapperBorderRadius}: 0;
|
|
81
|
+
|
|
82
|
+
${tokens.overlayBorderRadius}: 0.75rem;
|
|
83
|
+
${tokens.overlayPadding}: 0.75rem 0.875rem;
|
|
84
|
+
|
|
85
|
+
${tokens.headerMarginBottom}: 0.75rem;
|
|
86
|
+
${tokens.contentGap}: 0.375rem;
|
|
87
|
+
${tokens.lineNumberGap}: 0.375rem;
|
|
88
|
+
${tokens.numerationPaddingRight}: 0.375rem;
|
|
89
|
+
${tokens.codeMarginRight}: -0.75rem;
|
|
90
|
+
${tokens.codePaddingRight}: 2.5rem;
|
|
91
|
+
|
|
92
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
93
|
+
${tokens.fontSize}: var(--plasma-typo-body-m-font-size);
|
|
94
|
+
${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);
|
|
95
|
+
${tokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
|
|
96
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
97
|
+
${tokens.lineHeight}: var(--plasma-typo-body-m-line-height);
|
|
98
|
+
|
|
99
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
100
|
+
`,
|
|
101
|
+
s: css`
|
|
102
|
+
${tokens.wrapperPadding}: 0;
|
|
103
|
+
${tokens.wrapperGap}: 0.5rem;
|
|
104
|
+
${tokens.wrapperBorderRadius}: 0;
|
|
105
|
+
|
|
106
|
+
${tokens.overlayBorderRadius}: 0.625rem;
|
|
107
|
+
${tokens.overlayPadding}: 0.5rem 0.75rem;
|
|
108
|
+
|
|
109
|
+
${tokens.headerMarginBottom}: 0.5rem;
|
|
110
|
+
${tokens.contentGap}: 0.375rem;
|
|
111
|
+
${tokens.lineNumberGap}: 0.25rem;
|
|
112
|
+
${tokens.numerationPaddingRight}: 0.25rem;
|
|
113
|
+
${tokens.codeMarginRight}: -0.625rem;
|
|
114
|
+
${tokens.codePaddingRight}: 2.375rem;
|
|
115
|
+
|
|
116
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
117
|
+
${tokens.fontSize}: var(--plasma-typo-body-s-font-size);
|
|
118
|
+
${tokens.fontStyle}: var(--plasma-typo-body-s-font-style);
|
|
119
|
+
${tokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
120
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
121
|
+
${tokens.lineHeight}: var(--plasma-typo-body-s-line-height);
|
|
122
|
+
|
|
123
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
124
|
+
`,
|
|
125
|
+
xs: css`
|
|
126
|
+
${tokens.wrapperPadding}: 0;
|
|
127
|
+
${tokens.wrapperGap}: 0.5rem;
|
|
128
|
+
${tokens.wrapperBorderRadius}: 0;
|
|
129
|
+
|
|
130
|
+
${tokens.overlayBorderRadius}: 0.5rem;
|
|
131
|
+
${tokens.overlayPadding}: 0.5rem;
|
|
132
|
+
|
|
133
|
+
${tokens.headerMarginBottom}: 0.5rem;
|
|
134
|
+
${tokens.contentGap}: 0.25rem;
|
|
135
|
+
${tokens.lineNumberGap}: 0.25rem;
|
|
136
|
+
${tokens.numerationPaddingRight}: 0.25rem;
|
|
137
|
+
${tokens.codeMarginRight}: -0.375rem;
|
|
138
|
+
${tokens.codePaddingRight}: 1.5rem;
|
|
139
|
+
|
|
140
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
141
|
+
${tokens.fontSize}: var(--plasma-typo-body-xs-font-size);
|
|
142
|
+
${tokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
143
|
+
${tokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
|
|
144
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
145
|
+
${tokens.lineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
146
|
+
|
|
147
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
148
|
+
`
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { css, codeAreaTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
|
+
export const config = {
|
|
3
|
+
defaults: {
|
|
4
|
+
view: 'default',
|
|
5
|
+
size: 'm'
|
|
6
|
+
},
|
|
7
|
+
variations: {
|
|
8
|
+
view: {
|
|
9
|
+
default: css`
|
|
10
|
+
${tokens.wrapperBackgroundColor}: var(--surface-transparent-primary);
|
|
11
|
+
${tokens.fieldBackgroundColor}: var(--surface-solid-card);
|
|
12
|
+
|
|
13
|
+
${tokens.codeColor}: var(--text-primary);
|
|
14
|
+
${tokens.lineNumberColor}: var(--text-tertiary);
|
|
15
|
+
${tokens.dividerColor}: var(--surface-transparent-tertiary);
|
|
16
|
+
|
|
17
|
+
${tokens.scrollTrackColor}: var(--surface-transparent-primary);
|
|
18
|
+
${tokens.scrollThumbColor}: var(--surface-transparent-tertiary);
|
|
19
|
+
|
|
20
|
+
${tokens.syntaxYellow}: var(--syntax-yellow);
|
|
21
|
+
${tokens.syntaxOrange}: var(--syntax-orange);
|
|
22
|
+
${tokens.syntaxPink}: var(--syntax-pink);
|
|
23
|
+
${tokens.syntaxSpring}: var(--syntax-spring);
|
|
24
|
+
${tokens.syntaxSkyBlue}: var(--syntax-sky-blue);
|
|
25
|
+
${tokens.syntaxRed}: var(--syntax-red);
|
|
26
|
+
`
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
xl: css`
|
|
30
|
+
${tokens.wrapperPadding}: 1.25rem;
|
|
31
|
+
${tokens.wrapperGap}: 1.25rem;
|
|
32
|
+
${tokens.wrapperBorderRadius}: 2.25rem;
|
|
33
|
+
|
|
34
|
+
${tokens.overlayBorderRadius}: 1rem;
|
|
35
|
+
${tokens.overlayPadding}: 1.25rem 1.125rem;
|
|
36
|
+
|
|
37
|
+
${tokens.headerMarginBottom}: 1.25rem;
|
|
38
|
+
${tokens.contentGap}: 0.5rem;
|
|
39
|
+
${tokens.lineNumberGap}: 0.5rem;
|
|
40
|
+
${tokens.numerationPaddingRight}: 0.5rem;
|
|
41
|
+
${tokens.codeMarginRight}: -1rem;
|
|
42
|
+
${tokens.codePaddingRight}: 2.875rem;
|
|
43
|
+
|
|
44
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
45
|
+
${tokens.fontSize}: var(--plasma-typo-body-l-font-size);
|
|
46
|
+
${tokens.fontStyle}: var(--plasma-typo-body-l-font-style);
|
|
47
|
+
${tokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
|
|
48
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
|
|
49
|
+
${tokens.lineHeight}: var(--plasma-typo-body-l-line-height);
|
|
50
|
+
|
|
51
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
52
|
+
`,
|
|
53
|
+
l: css`
|
|
54
|
+
${tokens.wrapperPadding}: 1rem;
|
|
55
|
+
${tokens.wrapperGap}: 1rem;
|
|
56
|
+
${tokens.wrapperBorderRadius}: 1.875rem;
|
|
57
|
+
|
|
58
|
+
${tokens.overlayBorderRadius}: 0.875rem;
|
|
59
|
+
${tokens.overlayPadding}: 1rem;
|
|
60
|
+
|
|
61
|
+
${tokens.headerMarginBottom}: 1rem;
|
|
62
|
+
${tokens.contentGap}: 0.5rem;
|
|
63
|
+
${tokens.lineNumberGap}: 0.5rem;
|
|
64
|
+
${tokens.numerationPaddingRight}: 0.5rem;
|
|
65
|
+
${tokens.codeMarginRight}: -0.875rem;
|
|
66
|
+
${tokens.codePaddingRight}: 2.75rem;
|
|
67
|
+
|
|
68
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
69
|
+
${tokens.fontSize}: var(--plasma-typo-body-l-font-size);
|
|
70
|
+
${tokens.fontStyle}: var(--plasma-typo-body-l-font-style);
|
|
71
|
+
${tokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
|
|
72
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);
|
|
73
|
+
${tokens.lineHeight}: var(--plasma-typo-body-l-line-height);
|
|
74
|
+
|
|
75
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
76
|
+
`,
|
|
77
|
+
m: css`
|
|
78
|
+
${tokens.wrapperPadding}: 0.75rem;
|
|
79
|
+
${tokens.wrapperGap}: 0.75rem;
|
|
80
|
+
${tokens.wrapperBorderRadius}: 1.5rem;
|
|
81
|
+
|
|
82
|
+
${tokens.overlayBorderRadius}: 0.75rem;
|
|
83
|
+
${tokens.overlayPadding}: 0.75rem 0.875rem;
|
|
84
|
+
|
|
85
|
+
${tokens.headerMarginBottom}: 0.75rem;
|
|
86
|
+
${tokens.contentGap}: 0.375rem;
|
|
87
|
+
${tokens.lineNumberGap}: 0.375rem;
|
|
88
|
+
${tokens.numerationPaddingRight}: 0.375rem;
|
|
89
|
+
${tokens.codeMarginRight}: -0.75rem;
|
|
90
|
+
${tokens.codePaddingRight}: 2.5rem;
|
|
91
|
+
|
|
92
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
93
|
+
${tokens.fontSize}: var(--plasma-typo-body-m-font-size);
|
|
94
|
+
${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);
|
|
95
|
+
${tokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
|
|
96
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
97
|
+
${tokens.lineHeight}: var(--plasma-typo-body-m-line-height);
|
|
98
|
+
|
|
99
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
100
|
+
`,
|
|
101
|
+
s: css`
|
|
102
|
+
${tokens.wrapperPadding}: 0.5rem;
|
|
103
|
+
${tokens.wrapperGap}: 0.5rem;
|
|
104
|
+
${tokens.wrapperBorderRadius}: 1.125rem;
|
|
105
|
+
|
|
106
|
+
${tokens.overlayBorderRadius}: 0.625rem;
|
|
107
|
+
${tokens.overlayPadding}: 0.5rem 0.75rem;
|
|
108
|
+
|
|
109
|
+
${tokens.headerMarginBottom}: 0.5rem;
|
|
110
|
+
${tokens.contentGap}: 0.375rem;
|
|
111
|
+
${tokens.lineNumberGap}: 0.25rem;
|
|
112
|
+
${tokens.numerationPaddingRight}: 0.25rem;
|
|
113
|
+
${tokens.codeMarginRight}: -0.625rem;
|
|
114
|
+
${tokens.codePaddingRight}: 2.375rem;
|
|
115
|
+
|
|
116
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
117
|
+
${tokens.fontSize}: var(--plasma-typo-body-s-font-size);
|
|
118
|
+
${tokens.fontStyle}: var(--plasma-typo-body-s-font-style);
|
|
119
|
+
${tokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
120
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
121
|
+
${tokens.lineHeight}: var(--plasma-typo-body-s-line-height);
|
|
122
|
+
|
|
123
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
124
|
+
`,
|
|
125
|
+
xs: css`
|
|
126
|
+
${tokens.wrapperPadding}: 0.5rem;
|
|
127
|
+
${tokens.wrapperGap}: 0.5rem;
|
|
128
|
+
${tokens.wrapperBorderRadius}: 1rem;
|
|
129
|
+
|
|
130
|
+
${tokens.overlayBorderRadius}: 0.5rem;
|
|
131
|
+
${tokens.overlayPadding}: 0.5rem;
|
|
132
|
+
|
|
133
|
+
${tokens.headerMarginBottom}: 0.5rem;
|
|
134
|
+
${tokens.contentGap}: 0.25rem;
|
|
135
|
+
${tokens.lineNumberGap}: 0.25rem;
|
|
136
|
+
${tokens.numerationPaddingRight}: 0.25rem;
|
|
137
|
+
${tokens.codeMarginRight}: -0.375rem;
|
|
138
|
+
${tokens.codePaddingRight}: 1.5rem;
|
|
139
|
+
|
|
140
|
+
${tokens.fontFamily}: 'SB Sans Text Mono', sans-serif;
|
|
141
|
+
${tokens.fontSize}: var(--plasma-typo-body-xs-font-size);
|
|
142
|
+
${tokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
143
|
+
${tokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
|
|
144
|
+
${tokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
145
|
+
${tokens.lineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
146
|
+
|
|
147
|
+
${tokens.scrollWidth}: 0.125rem;
|
|
148
|
+
`
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { codeAreaConfig, component, createConditionalComponent, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
|
+
import { config } from './CodeArea.config';
|
|
3
|
+
import { config as hasWrapperConfig } from './CodeArea.hasWrapper.config';
|
|
4
|
+
const mergedConfig = mergeConfig(codeAreaConfig, config);
|
|
5
|
+
export const CodeAreaDefault = component(mergedConfig);
|
|
6
|
+
const mergedConfigHasWrapper = mergeConfig(codeAreaConfig, hasWrapperConfig);
|
|
7
|
+
export const CodeAreaHasWrapper = component(mergedConfigHasWrapper);
|
|
8
|
+
export const CodeArea = createConditionalComponent({
|
|
9
|
+
default: CodeAreaDefault,
|
|
10
|
+
hasWrapper: CodeAreaHasWrapper
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CodeArea } from './CodeArea';
|
|
@@ -270,7 +270,7 @@ export const config = {
|
|
|
270
270
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
|
|
271
271
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.312rem -2.188rem auto auto;
|
|
272
272
|
|
|
273
|
-
${tokens.
|
|
273
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
274
274
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
275
275
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
276
276
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -17,7 +17,7 @@ export const config = {
|
|
|
17
17
|
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
18
18
|
`,
|
|
19
19
|
accent: css`
|
|
20
|
-
${iconButtonTokens.iconButtonColor}: var(--text-primary);
|
|
20
|
+
${iconButtonTokens.iconButtonColor}: var(--on-light-text-primary);
|
|
21
21
|
${iconButtonTokens.iconButtonBackgroundColor}: var(--surface-accent-gradient);
|
|
22
22
|
|
|
23
23
|
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
@@ -96,7 +96,7 @@ export const config = {
|
|
|
96
96
|
${iconButtonTokens.iconButtonHeight}: 4rem;
|
|
97
97
|
${iconButtonTokens.iconButtonWidth}: 4.25rem;
|
|
98
98
|
${iconButtonTokens.iconButtonPadding}: 1.375rem;
|
|
99
|
-
${iconButtonTokens.iconButtonRadius}:
|
|
99
|
+
${iconButtonTokens.iconButtonRadius}: 1rem;
|
|
100
100
|
|
|
101
101
|
${iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-l-font-family);
|
|
102
102
|
${iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-l-font-size);
|
|
@@ -128,7 +128,7 @@ export const config = {
|
|
|
128
128
|
${iconButtonTokens.iconButtonHeight}: 3rem;
|
|
129
129
|
${iconButtonTokens.iconButtonWidth}: 3.25rem;
|
|
130
130
|
${iconButtonTokens.iconButtonPadding}: 0.875rem;
|
|
131
|
-
${iconButtonTokens.iconButtonRadius}:
|
|
131
|
+
${iconButtonTokens.iconButtonRadius}: 0.75rem;
|
|
132
132
|
|
|
133
133
|
${iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
134
134
|
${iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
|
|
@@ -145,7 +145,7 @@ export const config = {
|
|
|
145
145
|
${iconButtonTokens.iconButtonWidth}: 2.75rem;
|
|
146
146
|
|
|
147
147
|
${iconButtonTokens.iconButtonPadding}: 1rem;
|
|
148
|
-
${iconButtonTokens.iconButtonRadius}:
|
|
148
|
+
${iconButtonTokens.iconButtonRadius}: 0.625rem;
|
|
149
149
|
|
|
150
150
|
${iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
151
151
|
${iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
|
|
@@ -20,7 +20,7 @@ export const config = {
|
|
|
20
20
|
${segmentTokens.itemSelectedAdditionalColor}: var(--text-secondary);
|
|
21
21
|
${segmentTokens.itemSelectedAdditionalColorHover}: var(--text-secondary);
|
|
22
22
|
|
|
23
|
-
${segmentTokens.
|
|
23
|
+
${segmentTokens.outlineFocusColor}: var(--text-accent);
|
|
24
24
|
`,
|
|
25
25
|
secondary: css`
|
|
26
26
|
${segmentTokens.itemColor}: var(--text-primary);
|
|
@@ -36,7 +36,7 @@ export const config = {
|
|
|
36
36
|
${segmentTokens.itemSelectedAdditionalColor}: var(--text-secondary);
|
|
37
37
|
${segmentTokens.itemSelectedAdditionalColorHover}: var(--text-secondary);
|
|
38
38
|
|
|
39
|
-
${segmentTokens.
|
|
39
|
+
${segmentTokens.outlineFocusColor}: var(--text-accent);
|
|
40
40
|
`,
|
|
41
41
|
default: css`
|
|
42
42
|
${segmentTokens.itemColor}: var(--text-primary);
|
|
@@ -52,7 +52,7 @@ export const config = {
|
|
|
52
52
|
${segmentTokens.itemSelectedAdditionalColor}: var(--inverse-text-secondary);
|
|
53
53
|
${segmentTokens.itemSelectedAdditionalColorHover}: var(--inverse-text-secondary);
|
|
54
54
|
|
|
55
|
-
${segmentTokens.
|
|
55
|
+
${segmentTokens.outlineFocusColor}: var(--text-accent);
|
|
56
56
|
`,
|
|
57
57
|
accent: css`
|
|
58
58
|
${segmentTokens.itemColor}: var(--text-primary);
|
|
@@ -68,7 +68,7 @@ export const config = {
|
|
|
68
68
|
${segmentTokens.itemSelectedAdditionalColor}: var(--on-dark-text-secondary);
|
|
69
69
|
${segmentTokens.itemSelectedAdditionalColorHover}: var(--on-dark-text-secondary);
|
|
70
70
|
|
|
71
|
-
${segmentTokens.
|
|
71
|
+
${segmentTokens.outlineFocusColor}: var(--text-accent);
|
|
72
72
|
`
|
|
73
73
|
},
|
|
74
74
|
size: {
|
|
@@ -398,7 +398,7 @@ export const config = {
|
|
|
398
398
|
${tokens.textFieldHintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
|
|
399
399
|
${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.312rem -2.188rem auto auto;
|
|
400
400
|
|
|
401
|
-
${tokens.
|
|
401
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
402
402
|
${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
403
403
|
${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
404
404
|
${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -69,14 +69,14 @@ export const config = {
|
|
|
69
69
|
${switchTokens.labelColor}: var(--text-primary);
|
|
70
70
|
${switchTokens.descriptionColor}: var(--text-secondary);
|
|
71
71
|
${switchTokens.descriptionMaxLines}: initial;
|
|
72
|
-
${switchTokens.trackBackgroundColorOn}: var(--surface-
|
|
73
|
-
${switchTokens.trackBackgroundColorOnHover}: var(--surface-
|
|
72
|
+
${switchTokens.trackBackgroundColorOn}: var(--surface-solid-default);
|
|
73
|
+
${switchTokens.trackBackgroundColorOnHover}: var(--surface-solid-default-hover);
|
|
74
74
|
${switchTokens.trackBackgroundColorOff}: var(--surface-transparent-tertiary);
|
|
75
75
|
${switchTokens.trackBackgroundColorOffHover}: var(--surface-transparent-tertiary-hover);
|
|
76
76
|
${switchTokens.trackBorderWidthOn}: 0;
|
|
77
77
|
${switchTokens.trackBorderWidthOff}: 0;
|
|
78
|
-
${switchTokens.thumbBackgroundColorOn}: var(--
|
|
79
|
-
${switchTokens.thumbBackgroundColorOff}: var(--
|
|
78
|
+
${switchTokens.thumbBackgroundColorOn}: var(--surface-solid-primary);
|
|
79
|
+
${switchTokens.thumbBackgroundColorOff}: var(--surface-solid-primary);
|
|
80
80
|
${switchTokens.thumbBoxShadow}: 0 1px 1px rgba(0, 0, 0, 0.11);
|
|
81
81
|
`
|
|
82
82
|
},
|
|
@@ -192,7 +192,7 @@ export const config = {
|
|
|
192
192
|
${tokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
193
193
|
${tokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
|
|
194
194
|
|
|
195
|
-
${tokens.
|
|
195
|
+
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
196
196
|
${tokens.leftHelperFontFamily}: var(--plasma-typo-body-xs-font-family);
|
|
197
197
|
${tokens.leftHelperFontSize}: var(--plasma-typo-body-xs-font-size);
|
|
198
198
|
${tokens.leftHelperFontStyle}: var(--plasma-typo-body-xs-font-style);
|
|
@@ -35,7 +35,7 @@ export const config = {
|
|
|
35
35
|
${tokens.labelLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
36
36
|
${tokens.labelLineHeight}: var(--plasma-typo-body-m-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);
|
|
@@ -9,6 +9,7 @@ export * from './components/Card';
|
|
|
9
9
|
export * from './components/Cell';
|
|
10
10
|
export * from './components/Chip';
|
|
11
11
|
export * from './components/ChipGroup';
|
|
12
|
+
export * from './components/CodeArea';
|
|
12
13
|
export * from './components/Divider';
|
|
13
14
|
export * from './components/Image';
|
|
14
15
|
export * from './components/InformationWrapper';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/sdds-platform-ai",
|
|
3
|
-
"version": "0.355.0
|
|
3
|
+
"version": "0.355.0",
|
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS PLATFORM-AI 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.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salutejs/plasma-new-hope": "0.368.0
|
|
44
|
-
"@salutejs/sdds-themes": "0.70.0
|
|
43
|
+
"@salutejs/plasma-new-hope": "0.368.0",
|
|
44
|
+
"@salutejs/sdds-themes": "0.70.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.231.0
|
|
64
|
-
"@salutejs/plasma-cy-utils": "0.161.0
|
|
65
|
-
"@salutejs/plasma-icons": "1.242.0
|
|
66
|
-
"@salutejs/plasma-sb-utils": "0.232.0
|
|
63
|
+
"@salutejs/plasma-core": "1.231.0",
|
|
64
|
+
"@salutejs/plasma-cy-utils": "0.161.0",
|
|
65
|
+
"@salutejs/plasma-icons": "1.242.0",
|
|
66
|
+
"@salutejs/plasma-sb-utils": "0.232.0",
|
|
67
67
|
"@types/node": "16.7.13",
|
|
68
68
|
"@types/react": "18.0.28",
|
|
69
69
|
"@types/react-dom": "18.0.11",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"sideEffects": [
|
|
110
110
|
"*.css"
|
|
111
111
|
],
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "943a8d7362903f1a335fa5a99917fcbf0f673ea6"
|
|
113
113
|
}
|
|
@@ -14,6 +14,9 @@ export declare const config: {
|
|
|
14
14
|
s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
15
15
|
fit: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
16
16
|
};
|
|
17
|
+
focused: {
|
|
18
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
19
|
+
};
|
|
17
20
|
shape: {
|
|
18
21
|
circled: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
19
22
|
rounded: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|