@salutejs/sdds-dfa 0.367.0 → 0.367.1-canary.3185.35701789905.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/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.config.js +4 -4
- package/dist/styled-components/cjs/components/Button/Button.js +1 -2
- package/dist/styled-components/cjs/components/Calendar/Calendar.config.js +2 -2
- package/dist/styled-components/cjs/components/Calendar/CalendarDouble.config.js +2 -2
- package/dist/styled-components/cjs/components/DatePicker/DatePicker.clear.config.js +2 -2
- package/dist/styled-components/cjs/components/DatePicker/DatePicker.config.js +2 -2
- package/dist/styled-components/cjs/components/DateTimePicker/DateTimePicker.config.js +2 -2
- package/dist/styled-components/cjs/components/Tokens/Colors/Colors.styles.js +15 -15
- package/dist/styled-components/cjs/components/Tokens/Typography/Typography.styles.js +23 -23
- package/dist/styled-components/es/components/Breadcrumbs/Breadcrumbs.config.js +5 -5
- package/dist/styled-components/es/components/Button/Button.js +1 -2
- package/dist/styled-components/es/components/Calendar/Calendar.config.js +2 -2
- package/dist/styled-components/es/components/Calendar/CalendarDouble.config.js +2 -2
- package/dist/styled-components/es/components/DatePicker/DatePicker.clear.config.js +2 -2
- package/dist/styled-components/es/components/DatePicker/DatePicker.config.js +2 -2
- package/dist/styled-components/es/components/DateTimePicker/DateTimePicker.config.js +2 -2
- package/dist/styled-components/es/components/Tokens/Colors/Colors.styles.js +14 -14
- package/dist/styled-components/es/components/Tokens/Typography/Typography.styles.js +18 -18
- package/package.json +9 -9
- package/types/components/Tokens/Colors/Colors.styles.d.ts +2 -2
- package/types/components/Tokens/Typography/Typography.styles.d.ts +2 -2
|
@@ -32,7 +32,7 @@ const config = {
|
|
|
32
32
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontFamily}: ${_sdds_dfa.bodyL.fontFamily};
|
|
33
33
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontSize}: ${_sdds_dfa.bodyL.fontSize};
|
|
34
34
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontStyle}: ${_sdds_dfa.bodyL.fontStyle};
|
|
35
|
-
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.
|
|
35
|
+
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.bodyL.fontWeight};
|
|
36
36
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLetterSpacing}: ${_sdds_dfa.bodyL.letterSpacing};
|
|
37
37
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLineHeight}: ${_sdds_dfa.bodyL.lineHeight};
|
|
38
38
|
`,
|
|
@@ -42,7 +42,7 @@ const config = {
|
|
|
42
42
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontFamily}: ${_sdds_dfa.bodyM.fontFamily};
|
|
43
43
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontSize}: ${_sdds_dfa.bodyM.fontSize};
|
|
44
44
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontStyle}: ${_sdds_dfa.bodyM.fontStyle};
|
|
45
|
-
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.
|
|
45
|
+
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.bodyM.fontWeight};
|
|
46
46
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLetterSpacing}: ${_sdds_dfa.bodyM.letterSpacing};
|
|
47
47
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLineHeight}: ${_sdds_dfa.bodyM.lineHeight};
|
|
48
48
|
`,
|
|
@@ -52,7 +52,7 @@ const config = {
|
|
|
52
52
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontFamily}: ${_sdds_dfa.bodyS.fontFamily};
|
|
53
53
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontSize}: ${_sdds_dfa.bodyS.fontSize};
|
|
54
54
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontStyle}: ${_sdds_dfa.bodyS.fontStyle};
|
|
55
|
-
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.
|
|
55
|
+
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.bodyS.fontWeight};
|
|
56
56
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLetterSpacing}: ${_sdds_dfa.bodyS.letterSpacing};
|
|
57
57
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLineHeight}: ${_sdds_dfa.bodyS.lineHeight};
|
|
58
58
|
`,
|
|
@@ -62,7 +62,7 @@ const config = {
|
|
|
62
62
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontFamily}: ${_sdds_dfa.bodyXS.fontFamily};
|
|
63
63
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontSize}: ${_sdds_dfa.bodyXS.fontSize};
|
|
64
64
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontStyle}: ${_sdds_dfa.bodyXS.fontStyle};
|
|
65
|
-
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.
|
|
65
|
+
${_styledcomponents.breadcrumbsTokens.breadcrumbsFontWeight}: ${_sdds_dfa.bodyXS.fontWeight};
|
|
66
66
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLetterSpacing}: ${_sdds_dfa.bodyXS.letterSpacing};
|
|
67
67
|
${_styledcomponents.breadcrumbsTokens.breadcrumbsLineHeight}: ${_sdds_dfa.bodyXS.lineHeight};
|
|
68
68
|
`
|
|
@@ -9,8 +9,7 @@ Object.defineProperty(exports, "Button", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
|
|
12
|
-
const _plasmanewhope = require("@salutejs/plasma-new-hope");
|
|
13
12
|
const _Buttonconfig = require("./Button.config");
|
|
14
13
|
const mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.buttonConfig, _Buttonconfig.config);
|
|
15
14
|
const ButtonComponent = (0, _styledcomponents.component)(mergedConfig);
|
|
16
|
-
const Button = (0,
|
|
15
|
+
const Button = (0, _styledcomponents.makePolymorphic)(ButtonComponent, 'button');
|
|
@@ -32,8 +32,8 @@ const config = {
|
|
|
32
32
|
${_styledcomponents.calendarBaseTokens.calendarHoveredItemColor}: ${_sdds_dfa.textPrimary};
|
|
33
33
|
${_styledcomponents.calendarBaseTokens.calendarRangeBackground}: ${_sdds_dfa.surfaceTransparentSecondary};
|
|
34
34
|
${_styledcomponents.calendarBaseTokens.calendarOutlineFocusColor}: ${_sdds_dfa.surfaceAccent};
|
|
35
|
-
${_styledcomponents.calendarBaseTokens.calendarContentPrimaryColor}: ${_sdds_dfa.
|
|
36
|
-
${_styledcomponents.calendarBaseTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.
|
|
35
|
+
${_styledcomponents.calendarBaseTokens.calendarContentPrimaryColor}: ${_sdds_dfa.textPrimary};
|
|
36
|
+
${_styledcomponents.calendarBaseTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.textPrimary};
|
|
37
37
|
${_styledcomponents.calendarBaseTokens.calendarContentSecondaryColor}: ${_sdds_dfa.textSecondary};
|
|
38
38
|
${_styledcomponents.calendarBaseTokens.calendarContentSecondaryDisabledColor}: ${_sdds_dfa.textSecondary};
|
|
39
39
|
${_styledcomponents.calendarBaseTokens.calendarHeaderArrowColor}: ${_styledcomponents.calendarBaseTokens.calendarContentPrimaryColor};
|
|
@@ -34,8 +34,8 @@ const config = {
|
|
|
34
34
|
${_styledcomponents.calendarDoubleTokens.calendarHoveredItemColor}: ${_sdds_dfa.textPrimary};
|
|
35
35
|
${_styledcomponents.calendarDoubleTokens.calendarRangeBackground}: ${_sdds_dfa.surfaceTransparentSecondary};
|
|
36
36
|
${_styledcomponents.calendarDoubleTokens.calendarOutlineFocusColor}: ${_sdds_dfa.surfaceAccent};
|
|
37
|
-
${_styledcomponents.calendarDoubleTokens.calendarContentPrimaryColor}: ${_sdds_dfa.
|
|
38
|
-
${_styledcomponents.calendarDoubleTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.
|
|
37
|
+
${_styledcomponents.calendarDoubleTokens.calendarContentPrimaryColor}: ${_sdds_dfa.textPrimary};
|
|
38
|
+
${_styledcomponents.calendarDoubleTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.textPrimary};
|
|
39
39
|
${_styledcomponents.calendarDoubleTokens.calendarHeaderArrowColor}: ${_styledcomponents.calendarDoubleTokens.calendarContentPrimaryColor};
|
|
40
40
|
${_styledcomponents.calendarDoubleTokens.calendarContentSecondaryColor}: ${_sdds_dfa.textSecondary};
|
|
41
41
|
${_styledcomponents.calendarDoubleTokens.calendarContentSecondaryDisabledColor}: ${_sdds_dfa.textSecondary};
|
|
@@ -133,8 +133,8 @@ const config = {
|
|
|
133
133
|
${_styledcomponents.datePickerTokens.calendarHoveredItemColor}: ${_sdds_dfa.textPrimary};
|
|
134
134
|
${_styledcomponents.datePickerTokens.calendarRangeBackground}: ${_sdds_dfa.surfaceTransparentSecondary};
|
|
135
135
|
${_styledcomponents.datePickerTokens.calendarOutlineFocusColor}: ${_sdds_dfa.surfaceAccent};
|
|
136
|
-
${_styledcomponents.datePickerTokens.calendarContentPrimaryColor}: ${_sdds_dfa.
|
|
137
|
-
${_styledcomponents.datePickerTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.
|
|
136
|
+
${_styledcomponents.datePickerTokens.calendarContentPrimaryColor}: ${_sdds_dfa.textPrimary};
|
|
137
|
+
${_styledcomponents.datePickerTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.textPrimary};
|
|
138
138
|
${_styledcomponents.datePickerTokens.calendarHeaderArrowColor}: ${_styledcomponents.datePickerTokens.calendarContentPrimaryColor};
|
|
139
139
|
${_styledcomponents.datePickerTokens.calendarContentSecondaryColor}: ${_sdds_dfa.textSecondary};
|
|
140
140
|
${_styledcomponents.datePickerTokens.calendarContentSecondaryDisabledColor}: ${_sdds_dfa.textSecondary};
|
|
@@ -102,8 +102,8 @@ const config = {
|
|
|
102
102
|
${_styledcomponents.datePickerTokens.calendarHoveredItemColor}: ${_sdds_dfa.textPrimary};
|
|
103
103
|
${_styledcomponents.datePickerTokens.calendarRangeBackground}: ${_sdds_dfa.surfaceTransparentSecondary};
|
|
104
104
|
${_styledcomponents.datePickerTokens.calendarOutlineFocusColor}: ${_sdds_dfa.surfaceAccent};
|
|
105
|
-
${_styledcomponents.datePickerTokens.calendarContentPrimaryColor}: ${_sdds_dfa.
|
|
106
|
-
${_styledcomponents.datePickerTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.
|
|
105
|
+
${_styledcomponents.datePickerTokens.calendarContentPrimaryColor}: ${_sdds_dfa.textPrimary};
|
|
106
|
+
${_styledcomponents.datePickerTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.textPrimary};
|
|
107
107
|
${_styledcomponents.datePickerTokens.calendarHeaderArrowColor}: ${_styledcomponents.datePickerTokens.calendarContentPrimaryColor};
|
|
108
108
|
${_styledcomponents.datePickerTokens.calendarContentSecondaryColor}: ${_sdds_dfa.textSecondary};
|
|
109
109
|
${_styledcomponents.datePickerTokens.calendarContentSecondaryDisabledColor}: ${_sdds_dfa.textSecondary};
|
|
@@ -79,8 +79,8 @@ const config = {
|
|
|
79
79
|
${_styledcomponents.dateTimePickerTokens.calendarHoveredItemColor}: ${_sdds_dfa.textPrimary};
|
|
80
80
|
${_styledcomponents.dateTimePickerTokens.calendarRangeBackground}: ${_sdds_dfa.surfaceTransparentSecondary};
|
|
81
81
|
${_styledcomponents.dateTimePickerTokens.calendarOutlineFocusColor}: ${_sdds_dfa.surfaceAccent};
|
|
82
|
-
${_styledcomponents.dateTimePickerTokens.calendarContentPrimaryColor}: ${_sdds_dfa.
|
|
83
|
-
${_styledcomponents.dateTimePickerTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.
|
|
82
|
+
${_styledcomponents.dateTimePickerTokens.calendarContentPrimaryColor}: ${_sdds_dfa.textPrimary};
|
|
83
|
+
${_styledcomponents.dateTimePickerTokens.calendarContentPrimaryDisabledColor}: ${_sdds_dfa.textPrimary};
|
|
84
84
|
${_styledcomponents.dateTimePickerTokens.calendarHeaderArrowColor}: ${_styledcomponents.dateTimePickerTokens.calendarContentPrimaryColor};
|
|
85
85
|
${_styledcomponents.dateTimePickerTokens.calendarContentSecondaryColor}: ${_sdds_dfa.textSecondary};
|
|
86
86
|
${_styledcomponents.dateTimePickerTokens.calendarContentSecondaryDisabledColor}: ${_sdds_dfa.textSecondary};
|
|
@@ -50,7 +50,7 @@ _export(exports, {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
const _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
|
|
53
|
-
const
|
|
53
|
+
const _styledcomponents1 = require("@salutejs/plasma-new-hope/styled-components");
|
|
54
54
|
const _Accordion = require("../../Accordion");
|
|
55
55
|
const _Segment = require("../../Segment/Segment");
|
|
56
56
|
function _interop_require_default(obj) {
|
|
@@ -60,45 +60,45 @@ function _interop_require_default(obj) {
|
|
|
60
60
|
}
|
|
61
61
|
const ColorTokensWrapper = _styledcomponents.default.div.withConfig({
|
|
62
62
|
displayName: "Colors.styles__ColorTokensWrapper",
|
|
63
|
-
componentId: "sc-
|
|
63
|
+
componentId: "sc-e9243388-0"
|
|
64
64
|
})([
|
|
65
65
|
`padding-top:1.5rem;width:100%;`
|
|
66
66
|
]);
|
|
67
67
|
const SubthemeSwitcher = _styledcomponents.default.div.withConfig({
|
|
68
68
|
displayName: "Colors.styles__SubthemeSwitcher",
|
|
69
|
-
componentId: "sc-
|
|
69
|
+
componentId: "sc-e9243388-1"
|
|
70
70
|
})([
|
|
71
71
|
`margin:-0.5rem auto 2.5rem auto;width:fit-content;position:relative;&:before{content:'Подтема';position:absolute;top:50%;transform:translate(-100%,-50%);left:-0.75rem;color:var(--text-tertiary);font-family:var(--plasma-typo-body-xs-font-family);font-size:var(--plasma-typo-body-xs-font-size);font-style:var(--plasma-typo-body-xs-font-style);font-weight:var(--plasma-typo-body-xs-font-weight);bold-font-weight:var(--plasma-typo-body-xs-bold-font-weight);letter-spacing:var(--plasma-typo-body-xs-letter-spacing);line-height:var(--plasma-typo-body-xs-line-height);}`
|
|
72
72
|
]);
|
|
73
73
|
const StyledSegmentItem = (0, _styledcomponents.default)(_Segment.SegmentItem).withConfig({
|
|
74
74
|
displayName: "Colors.styles__StyledSegmentItem",
|
|
75
|
-
componentId: "sc-
|
|
75
|
+
componentId: "sc-e9243388-2"
|
|
76
76
|
})([
|
|
77
77
|
``,
|
|
78
78
|
`:1.75rem;`,
|
|
79
79
|
`:0.375rem 0.5rem;`
|
|
80
|
-
],
|
|
80
|
+
], _styledcomponents1.segmentTokens.itemHeight, _styledcomponents1.segmentTokens.itemPilledPadding);
|
|
81
81
|
const AccordionInfo = _styledcomponents.default.div.withConfig({
|
|
82
82
|
displayName: "Colors.styles__AccordionInfo",
|
|
83
|
-
componentId: "sc-
|
|
83
|
+
componentId: "sc-e9243388-3"
|
|
84
84
|
})([
|
|
85
85
|
`display:grid;grid-template-columns:16.75rem 9.938rem 2.375rem 3.813rem 9.313rem;grid-column-gap:1.5rem;font-family:var(--plasma-typo-body-m-font-family);font-size:var(--plasma-typo-body-m-font-size);font-style:var(--plasma-typo-body-m-font-style);font-weight:var(--plasma-typo-body-m-font-weight);letter-spacing:var(--plasma-typo-body-m-letter-spacing);line-height:var(--plasma-typo-body-m-line-height);`
|
|
86
86
|
]);
|
|
87
87
|
const Subcategory = _styledcomponents.default.div.withConfig({
|
|
88
88
|
displayName: "Colors.styles__Subcategory",
|
|
89
|
-
componentId: "sc-
|
|
89
|
+
componentId: "sc-e9243388-4"
|
|
90
90
|
})([
|
|
91
91
|
`color:var(--text-secondary);`
|
|
92
92
|
]);
|
|
93
93
|
const ColumnTitle = _styledcomponents.default.div.withConfig({
|
|
94
94
|
displayName: "Colors.styles__ColumnTitle",
|
|
95
|
-
componentId: "sc-
|
|
95
|
+
componentId: "sc-e9243388-5"
|
|
96
96
|
})([
|
|
97
97
|
`color:var(--text-tertiary);transition:opacity 0.2s;&.color{display:flex;align-items:center;gap:2.5rem;}&.hex{padding-left:3.75rem;}`
|
|
98
98
|
]);
|
|
99
99
|
const StyledAccordionItem = (0, _styledcomponents.default)(_Accordion.AccordionItem).withConfig({
|
|
100
100
|
displayName: "Colors.styles__StyledAccordionItem",
|
|
101
|
-
componentId: "sc-
|
|
101
|
+
componentId: "sc-e9243388-6"
|
|
102
102
|
})([
|
|
103
103
|
`--plasma-accordion-item-padding:0;--plasma-accordion-item-padding-vertical:0;border-bottom:unset;width:50.375rem;div > div > div > svg{color:var(--text-secondary);}.accordion-item-body{margin-bottom:2.375rem;padding-top:0.125rem;transition:margin-bottom 0.2s,padding-top 0.2s;}[aria-expanded]{margin-bottom:1rem;}[aria-expanded='false']{margin-bottom:1.125rem;`,
|
|
104
104
|
` `,
|
|
@@ -106,31 +106,31 @@ const StyledAccordionItem = (0, _styledcomponents.default)(_Accordion.AccordionI
|
|
|
106
106
|
], AccordionInfo, ColumnTitle);
|
|
107
107
|
const TokenInfoWrapper = _styledcomponents.default.div.withConfig({
|
|
108
108
|
displayName: "Colors.styles__TokenInfoWrapper",
|
|
109
|
-
componentId: "sc-
|
|
109
|
+
componentId: "sc-e9243388-7"
|
|
110
110
|
})([
|
|
111
111
|
`display:flex;flex-direction:column;gap:0.75rem;margin-top:-0.125rem;`
|
|
112
112
|
]);
|
|
113
113
|
const ColorTokenDataWrapper = _styledcomponents.default.div.withConfig({
|
|
114
114
|
displayName: "Colors.styles__ColorTokenDataWrapper",
|
|
115
|
-
componentId: "sc-
|
|
115
|
+
componentId: "sc-e9243388-8"
|
|
116
116
|
})([
|
|
117
117
|
`display:flex;flex-direction:column;gap:0.5rem;`
|
|
118
118
|
]);
|
|
119
119
|
const StateDataWrapper = _styledcomponents.default.div.withConfig({
|
|
120
120
|
displayName: "Colors.styles__StateDataWrapper",
|
|
121
|
-
componentId: "sc-
|
|
121
|
+
componentId: "sc-e9243388-9"
|
|
122
122
|
})([
|
|
123
123
|
`display:flex;flex-direction:column;gap:0.5rem;margin-bottom:0.75rem;`
|
|
124
124
|
]);
|
|
125
125
|
const OpacityPart = _styledcomponents.default.span.withConfig({
|
|
126
126
|
displayName: "Colors.styles__OpacityPart",
|
|
127
|
-
componentId: "sc-
|
|
127
|
+
componentId: "sc-e9243388-10"
|
|
128
128
|
})([
|
|
129
129
|
`color:var(--text-secondary);padding-left:0.125rem;`
|
|
130
130
|
]);
|
|
131
131
|
const TokenInfo = _styledcomponents.default.div.withConfig({
|
|
132
132
|
displayName: "Colors.styles__TokenInfo",
|
|
133
|
-
componentId: "sc-
|
|
133
|
+
componentId: "sc-e9243388-11"
|
|
134
134
|
})([
|
|
135
135
|
`color:var(--text-paragraph);cursor:default;&.copy{cursor:copy;}&.color{display:flex;align-items:center;gap:2.5rem;}&.no-interaction{text-align:right;}&.hex{padding-left:3.75rem;}&:not(.no-interaction):hover{color:var(--text-paragraph-hover);`,
|
|
136
136
|
`{color:var(--text-paragraph-hover);}}&:not(.no-interaction):active{color:var(--text-paragraph-active);`,
|
|
@@ -138,7 +138,7 @@ const TokenInfo = _styledcomponents.default.div.withConfig({
|
|
|
138
138
|
], OpacityPart, OpacityPart);
|
|
139
139
|
const ColorCircle = _styledcomponents.default.div.withConfig({
|
|
140
140
|
displayName: "Colors.styles__ColorCircle",
|
|
141
|
-
componentId: "sc-
|
|
141
|
+
componentId: "sc-e9243388-12"
|
|
142
142
|
})([
|
|
143
143
|
`width:1.25rem;height:1.25rem;border-radius:50%;background:`,
|
|
144
144
|
`;box-shadow:`,
|
|
@@ -62,7 +62,7 @@ _export(exports, {
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
const _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
|
|
65
|
-
const
|
|
65
|
+
const _styledcomponents1 = require("@salutejs/plasma-new-hope/styled-components");
|
|
66
66
|
const _Accordion = require("../../Accordion");
|
|
67
67
|
const _Segment = require("../../Segment/Segment");
|
|
68
68
|
function _interop_require_default(obj) {
|
|
@@ -72,85 +72,85 @@ function _interop_require_default(obj) {
|
|
|
72
72
|
}
|
|
73
73
|
const TypographyTokensWrapper = _styledcomponents.default.div.withConfig({
|
|
74
74
|
displayName: "Typography.styles__TypographyTokensWrapper",
|
|
75
|
-
componentId: "sc-
|
|
75
|
+
componentId: "sc-8a9193e4-0"
|
|
76
76
|
})([
|
|
77
77
|
`width:100%;margin:1.5rem auto auto 2.5rem;`
|
|
78
78
|
]);
|
|
79
79
|
const FontPropsSwitcher = _styledcomponents.default.div.withConfig({
|
|
80
80
|
displayName: "Typography.styles__FontPropsSwitcher",
|
|
81
|
-
componentId: "sc-
|
|
81
|
+
componentId: "sc-8a9193e4-1"
|
|
82
82
|
})([
|
|
83
83
|
`margin:-0.5rem 0 2.5rem;display:flex;justify-content:center;width:100%;position:relative;box-sizing:border-box;`
|
|
84
84
|
]);
|
|
85
85
|
const FontWeightSwitcher = _styledcomponents.default.div.withConfig({
|
|
86
86
|
displayName: "Typography.styles__FontWeightSwitcher",
|
|
87
|
-
componentId: "sc-
|
|
87
|
+
componentId: "sc-8a9193e4-2"
|
|
88
88
|
})([
|
|
89
89
|
`position:absolute;top:0;left:0;`
|
|
90
90
|
]);
|
|
91
91
|
const BreakpointSwitcher = _styledcomponents.default.div.withConfig({
|
|
92
92
|
displayName: "Typography.styles__BreakpointSwitcher",
|
|
93
|
-
componentId: "sc-
|
|
93
|
+
componentId: "sc-8a9193e4-3"
|
|
94
94
|
})([
|
|
95
95
|
`width:fit-content;position:relative;&:before{content:'Экран';position:absolute;top:50%;transform:translate(-100%,-50%);left:-0.75rem;color:var(--text-tertiary);`,
|
|
96
96
|
`;}`
|
|
97
|
-
],
|
|
97
|
+
], _styledcomponents1.bodyXS);
|
|
98
98
|
const StyledSegmentItem = (0, _styledcomponents.default)(_Segment.SegmentItem).withConfig({
|
|
99
99
|
displayName: "Typography.styles__StyledSegmentItem",
|
|
100
|
-
componentId: "sc-
|
|
100
|
+
componentId: "sc-8a9193e4-4"
|
|
101
101
|
})([
|
|
102
102
|
``,
|
|
103
103
|
`:1.75rem;`,
|
|
104
104
|
`:0.375rem 0.5rem;`
|
|
105
|
-
],
|
|
105
|
+
], _styledcomponents1.segmentTokens.itemHeight, _styledcomponents1.segmentTokens.itemPilledPadding);
|
|
106
106
|
const AccordionTypographyTitle = _styledcomponents.default.div.withConfig({
|
|
107
107
|
displayName: "Typography.styles__AccordionTypographyTitle",
|
|
108
|
-
componentId: "sc-
|
|
108
|
+
componentId: "sc-8a9193e4-5"
|
|
109
109
|
})([
|
|
110
110
|
`color:var(--text-secondary);`,
|
|
111
111
|
`;`
|
|
112
|
-
],
|
|
112
|
+
], _styledcomponents1.bodyM);
|
|
113
113
|
const FontFamily = _styledcomponents.default.span.withConfig({
|
|
114
114
|
displayName: "Typography.styles__FontFamily",
|
|
115
|
-
componentId: "sc-
|
|
115
|
+
componentId: "sc-8a9193e4-6"
|
|
116
116
|
})([
|
|
117
117
|
`color:var(--text-tertiary);`
|
|
118
118
|
]);
|
|
119
119
|
const AccordionInfo = _styledcomponents.default.div.withConfig({
|
|
120
120
|
displayName: "Typography.styles__AccordionInfo",
|
|
121
|
-
componentId: "sc-
|
|
121
|
+
componentId: "sc-8a9193e4-7"
|
|
122
122
|
})([
|
|
123
123
|
`display:grid;grid-template-columns:16.75rem 35.75rem;grid-column-gap:1.5rem;max-width:55.5rem;`
|
|
124
124
|
]);
|
|
125
125
|
const StyledAccordionItem = (0, _styledcomponents.default)(_Accordion.AccordionItem).withConfig({
|
|
126
126
|
displayName: "Typography.styles__StyledAccordionItem",
|
|
127
|
-
componentId: "sc-
|
|
127
|
+
componentId: "sc-8a9193e4-8"
|
|
128
128
|
})([
|
|
129
129
|
`--plasma-accordion-item-padding:0;--plasma-accordion-item-padding-vertical:0;border-bottom:unset;.accordion-item-body{margin-bottom:2rem;padding-top:0.125rem;transition:margin-bottom 0.2s,padding-top 0.2s;}[aria-expanded]{margin-bottom:1rem;}[aria-expanded='false']{margin-bottom:1.125rem;`,
|
|
130
130
|
`{opacity:0;}}[aria-expanded='false'] + div > .accordion-item-body{margin:0;padding:0;}`
|
|
131
131
|
], AccordionInfo);
|
|
132
132
|
const TokenInfoWrapper = _styledcomponents.default.div.withConfig({
|
|
133
133
|
displayName: "Typography.styles__TokenInfoWrapper",
|
|
134
|
-
componentId: "sc-
|
|
134
|
+
componentId: "sc-8a9193e4-9"
|
|
135
135
|
})([
|
|
136
136
|
`display:flex;flex-direction:column;gap:2rem;`
|
|
137
137
|
]);
|
|
138
138
|
const TokenShortName = _styledcomponents.default.div.withConfig({
|
|
139
139
|
displayName: "Typography.styles__TokenShortName",
|
|
140
|
-
componentId: "sc-
|
|
140
|
+
componentId: "sc-8a9193e4-10"
|
|
141
141
|
})([
|
|
142
142
|
`cursor:copy;color:var(--text-paragraph);`,
|
|
143
143
|
`;&:hover{color:var(--text-paragraph-hover);}&:active{color:var(--text-paragraph-active);}`
|
|
144
|
-
],
|
|
144
|
+
], _styledcomponents1.bodyM);
|
|
145
145
|
const TokenInfo = _styledcomponents.default.div.withConfig({
|
|
146
146
|
displayName: "Typography.styles__TokenInfo",
|
|
147
|
-
componentId: "sc-
|
|
147
|
+
componentId: "sc-8a9193e4-11"
|
|
148
148
|
})([
|
|
149
149
|
`display:flex;flex-direction:column;gap:1rem;`
|
|
150
150
|
]);
|
|
151
151
|
const TokenText = _styledcomponents.default.div.withConfig({
|
|
152
152
|
displayName: "Typography.styles__TokenText",
|
|
153
|
-
componentId: "sc-
|
|
153
|
+
componentId: "sc-8a9193e4-12"
|
|
154
154
|
})([
|
|
155
155
|
`color:var(--text-primary);font-size:`,
|
|
156
156
|
`;font-weight:`,
|
|
@@ -162,29 +162,29 @@ const TokenText = _styledcomponents.default.div.withConfig({
|
|
|
162
162
|
], ({ fontSize })=>fontSize, ({ fontWeight })=>fontWeight, ({ lineHeight })=>lineHeight, ({ letterSpacing })=>letterSpacing, ({ fontStyle })=>fontStyle, ({ isDisplay })=>isDisplay ? 'nowrap' : 'normal');
|
|
163
163
|
const TokenPropValue = _styledcomponents.default.div.withConfig({
|
|
164
164
|
displayName: "Typography.styles__TokenPropValue",
|
|
165
|
-
componentId: "sc-
|
|
165
|
+
componentId: "sc-8a9193e4-13"
|
|
166
166
|
})([
|
|
167
167
|
`color:var(--text-paragraph);`
|
|
168
168
|
]);
|
|
169
169
|
const TokenPropName = _styledcomponents.default.div.withConfig({
|
|
170
170
|
displayName: "Typography.styles__TokenPropName",
|
|
171
|
-
componentId: "sc-
|
|
171
|
+
componentId: "sc-8a9193e4-14"
|
|
172
172
|
})([
|
|
173
173
|
`color:var(--text-tertiary);`
|
|
174
174
|
]);
|
|
175
175
|
const TokenPropsWrapper = _styledcomponents.default.div.withConfig({
|
|
176
176
|
displayName: "Typography.styles__TokenPropsWrapper",
|
|
177
|
-
componentId: "sc-
|
|
177
|
+
componentId: "sc-8a9193e4-15"
|
|
178
178
|
})([
|
|
179
179
|
`cursor:copy;width:fit-content;display:flex;flex-direction:column;gap:0.5rem;`,
|
|
180
180
|
`;&:hover{`,
|
|
181
181
|
`{color:var(--text-paragraph-hover);}}&:active{`,
|
|
182
182
|
`{color:var(--text-paragraph-active);}`,
|
|
183
183
|
`{color:var(--text-tertiary-active);}}`
|
|
184
|
-
],
|
|
184
|
+
], _styledcomponents1.bodyXS, TokenPropValue, TokenPropValue, TokenPropName);
|
|
185
185
|
const TokenProps = _styledcomponents.default.div.withConfig({
|
|
186
186
|
displayName: "Typography.styles__TokenProps",
|
|
187
|
-
componentId: "sc-
|
|
187
|
+
componentId: "sc-8a9193e4-16"
|
|
188
188
|
})([
|
|
189
189
|
`display:flex;gap:1rem;`
|
|
190
190
|
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, breadcrumbsTokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
|
-
import { bodyL,
|
|
2
|
+
import { bodyL, bodyM, bodyS, bodyXS, surfaceAccent, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_dfa';
|
|
3
3
|
export const config = {
|
|
4
4
|
defaults: {
|
|
5
5
|
view: 'default',
|
|
@@ -22,7 +22,7 @@ export const config = {
|
|
|
22
22
|
${breadcrumbsTokens.breadcrumbsFontFamily}: ${bodyL.fontFamily};
|
|
23
23
|
${breadcrumbsTokens.breadcrumbsFontSize}: ${bodyL.fontSize};
|
|
24
24
|
${breadcrumbsTokens.breadcrumbsFontStyle}: ${bodyL.fontStyle};
|
|
25
|
-
${breadcrumbsTokens.breadcrumbsFontWeight}: ${
|
|
25
|
+
${breadcrumbsTokens.breadcrumbsFontWeight}: ${bodyL.fontWeight};
|
|
26
26
|
${breadcrumbsTokens.breadcrumbsLetterSpacing}: ${bodyL.letterSpacing};
|
|
27
27
|
${breadcrumbsTokens.breadcrumbsLineHeight}: ${bodyL.lineHeight};
|
|
28
28
|
`,
|
|
@@ -32,7 +32,7 @@ export const config = {
|
|
|
32
32
|
${breadcrumbsTokens.breadcrumbsFontFamily}: ${bodyM.fontFamily};
|
|
33
33
|
${breadcrumbsTokens.breadcrumbsFontSize}: ${bodyM.fontSize};
|
|
34
34
|
${breadcrumbsTokens.breadcrumbsFontStyle}: ${bodyM.fontStyle};
|
|
35
|
-
${breadcrumbsTokens.breadcrumbsFontWeight}: ${
|
|
35
|
+
${breadcrumbsTokens.breadcrumbsFontWeight}: ${bodyM.fontWeight};
|
|
36
36
|
${breadcrumbsTokens.breadcrumbsLetterSpacing}: ${bodyM.letterSpacing};
|
|
37
37
|
${breadcrumbsTokens.breadcrumbsLineHeight}: ${bodyM.lineHeight};
|
|
38
38
|
`,
|
|
@@ -42,7 +42,7 @@ export const config = {
|
|
|
42
42
|
${breadcrumbsTokens.breadcrumbsFontFamily}: ${bodyS.fontFamily};
|
|
43
43
|
${breadcrumbsTokens.breadcrumbsFontSize}: ${bodyS.fontSize};
|
|
44
44
|
${breadcrumbsTokens.breadcrumbsFontStyle}: ${bodyS.fontStyle};
|
|
45
|
-
${breadcrumbsTokens.breadcrumbsFontWeight}: ${
|
|
45
|
+
${breadcrumbsTokens.breadcrumbsFontWeight}: ${bodyS.fontWeight};
|
|
46
46
|
${breadcrumbsTokens.breadcrumbsLetterSpacing}: ${bodyS.letterSpacing};
|
|
47
47
|
${breadcrumbsTokens.breadcrumbsLineHeight}: ${bodyS.lineHeight};
|
|
48
48
|
`,
|
|
@@ -52,7 +52,7 @@ export const config = {
|
|
|
52
52
|
${breadcrumbsTokens.breadcrumbsFontFamily}: ${bodyXS.fontFamily};
|
|
53
53
|
${breadcrumbsTokens.breadcrumbsFontSize}: ${bodyXS.fontSize};
|
|
54
54
|
${breadcrumbsTokens.breadcrumbsFontStyle}: ${bodyXS.fontStyle};
|
|
55
|
-
${breadcrumbsTokens.breadcrumbsFontWeight}: ${
|
|
55
|
+
${breadcrumbsTokens.breadcrumbsFontWeight}: ${bodyXS.fontWeight};
|
|
56
56
|
${breadcrumbsTokens.breadcrumbsLetterSpacing}: ${bodyXS.letterSpacing};
|
|
57
57
|
${breadcrumbsTokens.breadcrumbsLineHeight}: ${bodyXS.lineHeight};
|
|
58
58
|
`
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { buttonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
|
2
|
-
import { makePolymorphic } from '@salutejs/plasma-new-hope';
|
|
1
|
+
import { buttonConfig, component, mergeConfig, makePolymorphic } from '@salutejs/plasma-new-hope/styled-components';
|
|
3
2
|
import { config } from './Button.config';
|
|
4
3
|
const mergedConfig = mergeConfig(buttonConfig, config);
|
|
5
4
|
const ButtonComponent = component(mergedConfig);
|
|
@@ -22,8 +22,8 @@ export const config = {
|
|
|
22
22
|
${calendarBaseTokens.calendarHoveredItemColor}: ${textPrimary};
|
|
23
23
|
${calendarBaseTokens.calendarRangeBackground}: ${surfaceTransparentSecondary};
|
|
24
24
|
${calendarBaseTokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
25
|
-
${calendarBaseTokens.calendarContentPrimaryColor}: ${
|
|
26
|
-
${calendarBaseTokens.calendarContentPrimaryDisabledColor}: ${
|
|
25
|
+
${calendarBaseTokens.calendarContentPrimaryColor}: ${textPrimary};
|
|
26
|
+
${calendarBaseTokens.calendarContentPrimaryDisabledColor}: ${textPrimary};
|
|
27
27
|
${calendarBaseTokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
28
28
|
${calendarBaseTokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
29
29
|
${calendarBaseTokens.calendarHeaderArrowColor}: ${calendarBaseTokens.calendarContentPrimaryColor};
|
|
@@ -24,8 +24,8 @@ export const config = {
|
|
|
24
24
|
${calendarDoubleTokens.calendarHoveredItemColor}: ${textPrimary};
|
|
25
25
|
${calendarDoubleTokens.calendarRangeBackground}: ${surfaceTransparentSecondary};
|
|
26
26
|
${calendarDoubleTokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
27
|
-
${calendarDoubleTokens.calendarContentPrimaryColor}: ${
|
|
28
|
-
${calendarDoubleTokens.calendarContentPrimaryDisabledColor}: ${
|
|
27
|
+
${calendarDoubleTokens.calendarContentPrimaryColor}: ${textPrimary};
|
|
28
|
+
${calendarDoubleTokens.calendarContentPrimaryDisabledColor}: ${textPrimary};
|
|
29
29
|
${calendarDoubleTokens.calendarHeaderArrowColor}: ${calendarDoubleTokens.calendarContentPrimaryColor};
|
|
30
30
|
${calendarDoubleTokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
31
31
|
${calendarDoubleTokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
@@ -123,8 +123,8 @@ export const config = {
|
|
|
123
123
|
${tokens.calendarHoveredItemColor}: ${textPrimary};
|
|
124
124
|
${tokens.calendarRangeBackground}: ${surfaceTransparentSecondary};
|
|
125
125
|
${tokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
126
|
-
${tokens.calendarContentPrimaryColor}: ${
|
|
127
|
-
${tokens.calendarContentPrimaryDisabledColor}: ${
|
|
126
|
+
${tokens.calendarContentPrimaryColor}: ${textPrimary};
|
|
127
|
+
${tokens.calendarContentPrimaryDisabledColor}: ${textPrimary};
|
|
128
128
|
${tokens.calendarHeaderArrowColor}: ${tokens.calendarContentPrimaryColor};
|
|
129
129
|
${tokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
130
130
|
${tokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
@@ -92,8 +92,8 @@ export const config = {
|
|
|
92
92
|
${tokens.calendarHoveredItemColor}: ${textPrimary};
|
|
93
93
|
${tokens.calendarRangeBackground}: ${surfaceTransparentSecondary};
|
|
94
94
|
${tokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
95
|
-
${tokens.calendarContentPrimaryColor}: ${
|
|
96
|
-
${tokens.calendarContentPrimaryDisabledColor}: ${
|
|
95
|
+
${tokens.calendarContentPrimaryColor}: ${textPrimary};
|
|
96
|
+
${tokens.calendarContentPrimaryDisabledColor}: ${textPrimary};
|
|
97
97
|
${tokens.calendarHeaderArrowColor}: ${tokens.calendarContentPrimaryColor};
|
|
98
98
|
${tokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
99
99
|
${tokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
@@ -69,8 +69,8 @@ export const config = {
|
|
|
69
69
|
${tokens.calendarHoveredItemColor}: ${textPrimary};
|
|
70
70
|
${tokens.calendarRangeBackground}: ${surfaceTransparentSecondary};
|
|
71
71
|
${tokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
72
|
-
${tokens.calendarContentPrimaryColor}: ${
|
|
73
|
-
${tokens.calendarContentPrimaryDisabledColor}: ${
|
|
72
|
+
${tokens.calendarContentPrimaryColor}: ${textPrimary};
|
|
73
|
+
${tokens.calendarContentPrimaryDisabledColor}: ${textPrimary};
|
|
74
74
|
${tokens.calendarHeaderArrowColor}: ${tokens.calendarContentPrimaryColor};
|
|
75
75
|
${tokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
76
76
|
${tokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { segmentTokens } from '@salutejs/plasma-new-hope';
|
|
2
|
+
import { segmentTokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
3
3
|
import { AccordionItem } from '../../Accordion';
|
|
4
4
|
import { SegmentItem } from '../../Segment/Segment';
|
|
5
5
|
export const ColorTokensWrapper = styled.div.withConfig({
|
|
6
6
|
displayName: "Colors.styles__ColorTokensWrapper",
|
|
7
|
-
componentId: "sc-
|
|
7
|
+
componentId: "sc-e9243388-0"
|
|
8
8
|
})([
|
|
9
9
|
`padding-top:1.5rem;width:100%;`
|
|
10
10
|
]);
|
|
11
11
|
export const SubthemeSwitcher = styled.div.withConfig({
|
|
12
12
|
displayName: "Colors.styles__SubthemeSwitcher",
|
|
13
|
-
componentId: "sc-
|
|
13
|
+
componentId: "sc-e9243388-1"
|
|
14
14
|
})([
|
|
15
15
|
`margin:-0.5rem auto 2.5rem auto;width:fit-content;position:relative;&:before{content:'Подтема';position:absolute;top:50%;transform:translate(-100%,-50%);left:-0.75rem;color:var(--text-tertiary);font-family:var(--plasma-typo-body-xs-font-family);font-size:var(--plasma-typo-body-xs-font-size);font-style:var(--plasma-typo-body-xs-font-style);font-weight:var(--plasma-typo-body-xs-font-weight);bold-font-weight:var(--plasma-typo-body-xs-bold-font-weight);letter-spacing:var(--plasma-typo-body-xs-letter-spacing);line-height:var(--plasma-typo-body-xs-line-height);}`
|
|
16
16
|
]);
|
|
17
17
|
export const StyledSegmentItem = styled(SegmentItem).withConfig({
|
|
18
18
|
displayName: "Colors.styles__StyledSegmentItem",
|
|
19
|
-
componentId: "sc-
|
|
19
|
+
componentId: "sc-e9243388-2"
|
|
20
20
|
})([
|
|
21
21
|
``,
|
|
22
22
|
`:1.75rem;`,
|
|
@@ -24,25 +24,25 @@ export const StyledSegmentItem = styled(SegmentItem).withConfig({
|
|
|
24
24
|
], segmentTokens.itemHeight, segmentTokens.itemPilledPadding);
|
|
25
25
|
export const AccordionInfo = styled.div.withConfig({
|
|
26
26
|
displayName: "Colors.styles__AccordionInfo",
|
|
27
|
-
componentId: "sc-
|
|
27
|
+
componentId: "sc-e9243388-3"
|
|
28
28
|
})([
|
|
29
29
|
`display:grid;grid-template-columns:16.75rem 9.938rem 2.375rem 3.813rem 9.313rem;grid-column-gap:1.5rem;font-family:var(--plasma-typo-body-m-font-family);font-size:var(--plasma-typo-body-m-font-size);font-style:var(--plasma-typo-body-m-font-style);font-weight:var(--plasma-typo-body-m-font-weight);letter-spacing:var(--plasma-typo-body-m-letter-spacing);line-height:var(--plasma-typo-body-m-line-height);`
|
|
30
30
|
]);
|
|
31
31
|
export const Subcategory = styled.div.withConfig({
|
|
32
32
|
displayName: "Colors.styles__Subcategory",
|
|
33
|
-
componentId: "sc-
|
|
33
|
+
componentId: "sc-e9243388-4"
|
|
34
34
|
})([
|
|
35
35
|
`color:var(--text-secondary);`
|
|
36
36
|
]);
|
|
37
37
|
export const ColumnTitle = styled.div.withConfig({
|
|
38
38
|
displayName: "Colors.styles__ColumnTitle",
|
|
39
|
-
componentId: "sc-
|
|
39
|
+
componentId: "sc-e9243388-5"
|
|
40
40
|
})([
|
|
41
41
|
`color:var(--text-tertiary);transition:opacity 0.2s;&.color{display:flex;align-items:center;gap:2.5rem;}&.hex{padding-left:3.75rem;}`
|
|
42
42
|
]);
|
|
43
43
|
export const StyledAccordionItem = styled(AccordionItem).withConfig({
|
|
44
44
|
displayName: "Colors.styles__StyledAccordionItem",
|
|
45
|
-
componentId: "sc-
|
|
45
|
+
componentId: "sc-e9243388-6"
|
|
46
46
|
})([
|
|
47
47
|
`--plasma-accordion-item-padding:0;--plasma-accordion-item-padding-vertical:0;border-bottom:unset;width:50.375rem;div > div > div > svg{color:var(--text-secondary);}.accordion-item-body{margin-bottom:2.375rem;padding-top:0.125rem;transition:margin-bottom 0.2s,padding-top 0.2s;}[aria-expanded]{margin-bottom:1rem;}[aria-expanded='false']{margin-bottom:1.125rem;`,
|
|
48
48
|
` `,
|
|
@@ -50,31 +50,31 @@ export const StyledAccordionItem = styled(AccordionItem).withConfig({
|
|
|
50
50
|
], AccordionInfo, ColumnTitle);
|
|
51
51
|
export const TokenInfoWrapper = styled.div.withConfig({
|
|
52
52
|
displayName: "Colors.styles__TokenInfoWrapper",
|
|
53
|
-
componentId: "sc-
|
|
53
|
+
componentId: "sc-e9243388-7"
|
|
54
54
|
})([
|
|
55
55
|
`display:flex;flex-direction:column;gap:0.75rem;margin-top:-0.125rem;`
|
|
56
56
|
]);
|
|
57
57
|
export const ColorTokenDataWrapper = styled.div.withConfig({
|
|
58
58
|
displayName: "Colors.styles__ColorTokenDataWrapper",
|
|
59
|
-
componentId: "sc-
|
|
59
|
+
componentId: "sc-e9243388-8"
|
|
60
60
|
})([
|
|
61
61
|
`display:flex;flex-direction:column;gap:0.5rem;`
|
|
62
62
|
]);
|
|
63
63
|
export const StateDataWrapper = styled.div.withConfig({
|
|
64
64
|
displayName: "Colors.styles__StateDataWrapper",
|
|
65
|
-
componentId: "sc-
|
|
65
|
+
componentId: "sc-e9243388-9"
|
|
66
66
|
})([
|
|
67
67
|
`display:flex;flex-direction:column;gap:0.5rem;margin-bottom:0.75rem;`
|
|
68
68
|
]);
|
|
69
69
|
export const OpacityPart = styled.span.withConfig({
|
|
70
70
|
displayName: "Colors.styles__OpacityPart",
|
|
71
|
-
componentId: "sc-
|
|
71
|
+
componentId: "sc-e9243388-10"
|
|
72
72
|
})([
|
|
73
73
|
`color:var(--text-secondary);padding-left:0.125rem;`
|
|
74
74
|
]);
|
|
75
75
|
export const TokenInfo = styled.div.withConfig({
|
|
76
76
|
displayName: "Colors.styles__TokenInfo",
|
|
77
|
-
componentId: "sc-
|
|
77
|
+
componentId: "sc-e9243388-11"
|
|
78
78
|
})([
|
|
79
79
|
`color:var(--text-paragraph);cursor:default;&.copy{cursor:copy;}&.color{display:flex;align-items:center;gap:2.5rem;}&.no-interaction{text-align:right;}&.hex{padding-left:3.75rem;}&:not(.no-interaction):hover{color:var(--text-paragraph-hover);`,
|
|
80
80
|
`{color:var(--text-paragraph-hover);}}&:not(.no-interaction):active{color:var(--text-paragraph-active);`,
|
|
@@ -82,7 +82,7 @@ export const TokenInfo = styled.div.withConfig({
|
|
|
82
82
|
], OpacityPart, OpacityPart);
|
|
83
83
|
export const ColorCircle = styled.div.withConfig({
|
|
84
84
|
displayName: "Colors.styles__ColorCircle",
|
|
85
|
-
componentId: "sc-
|
|
85
|
+
componentId: "sc-e9243388-12"
|
|
86
86
|
})([
|
|
87
87
|
`width:1.25rem;height:1.25rem;border-radius:50%;background:`,
|
|
88
88
|
`;box-shadow:`,
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { segmentTokens, bodyXS, bodyM } from '@salutejs/plasma-new-hope';
|
|
2
|
+
import { segmentTokens, bodyXS, bodyM } from '@salutejs/plasma-new-hope/styled-components';
|
|
3
3
|
import { AccordionItem } from '../../Accordion';
|
|
4
4
|
import { SegmentItem } from '../../Segment/Segment';
|
|
5
5
|
export const TypographyTokensWrapper = styled.div.withConfig({
|
|
6
6
|
displayName: "Typography.styles__TypographyTokensWrapper",
|
|
7
|
-
componentId: "sc-
|
|
7
|
+
componentId: "sc-8a9193e4-0"
|
|
8
8
|
})([
|
|
9
9
|
`width:100%;margin:1.5rem auto auto 2.5rem;`
|
|
10
10
|
]);
|
|
11
11
|
export const FontPropsSwitcher = styled.div.withConfig({
|
|
12
12
|
displayName: "Typography.styles__FontPropsSwitcher",
|
|
13
|
-
componentId: "sc-
|
|
13
|
+
componentId: "sc-8a9193e4-1"
|
|
14
14
|
})([
|
|
15
15
|
`margin:-0.5rem 0 2.5rem;display:flex;justify-content:center;width:100%;position:relative;box-sizing:border-box;`
|
|
16
16
|
]);
|
|
17
17
|
export const FontWeightSwitcher = styled.div.withConfig({
|
|
18
18
|
displayName: "Typography.styles__FontWeightSwitcher",
|
|
19
|
-
componentId: "sc-
|
|
19
|
+
componentId: "sc-8a9193e4-2"
|
|
20
20
|
})([
|
|
21
21
|
`position:absolute;top:0;left:0;`
|
|
22
22
|
]);
|
|
23
23
|
export const BreakpointSwitcher = styled.div.withConfig({
|
|
24
24
|
displayName: "Typography.styles__BreakpointSwitcher",
|
|
25
|
-
componentId: "sc-
|
|
25
|
+
componentId: "sc-8a9193e4-3"
|
|
26
26
|
})([
|
|
27
27
|
`width:fit-content;position:relative;&:before{content:'Экран';position:absolute;top:50%;transform:translate(-100%,-50%);left:-0.75rem;color:var(--text-tertiary);`,
|
|
28
28
|
`;}`
|
|
29
29
|
], bodyXS);
|
|
30
30
|
export const StyledSegmentItem = styled(SegmentItem).withConfig({
|
|
31
31
|
displayName: "Typography.styles__StyledSegmentItem",
|
|
32
|
-
componentId: "sc-
|
|
32
|
+
componentId: "sc-8a9193e4-4"
|
|
33
33
|
})([
|
|
34
34
|
``,
|
|
35
35
|
`:1.75rem;`,
|
|
@@ -37,52 +37,52 @@ export const StyledSegmentItem = styled(SegmentItem).withConfig({
|
|
|
37
37
|
], segmentTokens.itemHeight, segmentTokens.itemPilledPadding);
|
|
38
38
|
export const AccordionTypographyTitle = styled.div.withConfig({
|
|
39
39
|
displayName: "Typography.styles__AccordionTypographyTitle",
|
|
40
|
-
componentId: "sc-
|
|
40
|
+
componentId: "sc-8a9193e4-5"
|
|
41
41
|
})([
|
|
42
42
|
`color:var(--text-secondary);`,
|
|
43
43
|
`;`
|
|
44
44
|
], bodyM);
|
|
45
45
|
export const FontFamily = styled.span.withConfig({
|
|
46
46
|
displayName: "Typography.styles__FontFamily",
|
|
47
|
-
componentId: "sc-
|
|
47
|
+
componentId: "sc-8a9193e4-6"
|
|
48
48
|
})([
|
|
49
49
|
`color:var(--text-tertiary);`
|
|
50
50
|
]);
|
|
51
51
|
export const AccordionInfo = styled.div.withConfig({
|
|
52
52
|
displayName: "Typography.styles__AccordionInfo",
|
|
53
|
-
componentId: "sc-
|
|
53
|
+
componentId: "sc-8a9193e4-7"
|
|
54
54
|
})([
|
|
55
55
|
`display:grid;grid-template-columns:16.75rem 35.75rem;grid-column-gap:1.5rem;max-width:55.5rem;`
|
|
56
56
|
]);
|
|
57
57
|
export const StyledAccordionItem = styled(AccordionItem).withConfig({
|
|
58
58
|
displayName: "Typography.styles__StyledAccordionItem",
|
|
59
|
-
componentId: "sc-
|
|
59
|
+
componentId: "sc-8a9193e4-8"
|
|
60
60
|
})([
|
|
61
61
|
`--plasma-accordion-item-padding:0;--plasma-accordion-item-padding-vertical:0;border-bottom:unset;.accordion-item-body{margin-bottom:2rem;padding-top:0.125rem;transition:margin-bottom 0.2s,padding-top 0.2s;}[aria-expanded]{margin-bottom:1rem;}[aria-expanded='false']{margin-bottom:1.125rem;`,
|
|
62
62
|
`{opacity:0;}}[aria-expanded='false'] + div > .accordion-item-body{margin:0;padding:0;}`
|
|
63
63
|
], AccordionInfo);
|
|
64
64
|
export const TokenInfoWrapper = styled.div.withConfig({
|
|
65
65
|
displayName: "Typography.styles__TokenInfoWrapper",
|
|
66
|
-
componentId: "sc-
|
|
66
|
+
componentId: "sc-8a9193e4-9"
|
|
67
67
|
})([
|
|
68
68
|
`display:flex;flex-direction:column;gap:2rem;`
|
|
69
69
|
]);
|
|
70
70
|
export const TokenShortName = styled.div.withConfig({
|
|
71
71
|
displayName: "Typography.styles__TokenShortName",
|
|
72
|
-
componentId: "sc-
|
|
72
|
+
componentId: "sc-8a9193e4-10"
|
|
73
73
|
})([
|
|
74
74
|
`cursor:copy;color:var(--text-paragraph);`,
|
|
75
75
|
`;&:hover{color:var(--text-paragraph-hover);}&:active{color:var(--text-paragraph-active);}`
|
|
76
76
|
], bodyM);
|
|
77
77
|
export const TokenInfo = styled.div.withConfig({
|
|
78
78
|
displayName: "Typography.styles__TokenInfo",
|
|
79
|
-
componentId: "sc-
|
|
79
|
+
componentId: "sc-8a9193e4-11"
|
|
80
80
|
})([
|
|
81
81
|
`display:flex;flex-direction:column;gap:1rem;`
|
|
82
82
|
]);
|
|
83
83
|
export const TokenText = styled.div.withConfig({
|
|
84
84
|
displayName: "Typography.styles__TokenText",
|
|
85
|
-
componentId: "sc-
|
|
85
|
+
componentId: "sc-8a9193e4-12"
|
|
86
86
|
})([
|
|
87
87
|
`color:var(--text-primary);font-size:`,
|
|
88
88
|
`;font-weight:`,
|
|
@@ -94,19 +94,19 @@ export const TokenText = styled.div.withConfig({
|
|
|
94
94
|
], ({ fontSize })=>fontSize, ({ fontWeight })=>fontWeight, ({ lineHeight })=>lineHeight, ({ letterSpacing })=>letterSpacing, ({ fontStyle })=>fontStyle, ({ isDisplay })=>isDisplay ? 'nowrap' : 'normal');
|
|
95
95
|
export const TokenPropValue = styled.div.withConfig({
|
|
96
96
|
displayName: "Typography.styles__TokenPropValue",
|
|
97
|
-
componentId: "sc-
|
|
97
|
+
componentId: "sc-8a9193e4-13"
|
|
98
98
|
})([
|
|
99
99
|
`color:var(--text-paragraph);`
|
|
100
100
|
]);
|
|
101
101
|
export const TokenPropName = styled.div.withConfig({
|
|
102
102
|
displayName: "Typography.styles__TokenPropName",
|
|
103
|
-
componentId: "sc-
|
|
103
|
+
componentId: "sc-8a9193e4-14"
|
|
104
104
|
})([
|
|
105
105
|
`color:var(--text-tertiary);`
|
|
106
106
|
]);
|
|
107
107
|
export const TokenPropsWrapper = styled.div.withConfig({
|
|
108
108
|
displayName: "Typography.styles__TokenPropsWrapper",
|
|
109
|
-
componentId: "sc-
|
|
109
|
+
componentId: "sc-8a9193e4-15"
|
|
110
110
|
})([
|
|
111
111
|
`cursor:copy;width:fit-content;display:flex;flex-direction:column;gap:0.5rem;`,
|
|
112
112
|
`;&:hover{`,
|
|
@@ -116,7 +116,7 @@ export const TokenPropsWrapper = styled.div.withConfig({
|
|
|
116
116
|
], bodyXS, TokenPropValue, TokenPropValue, TokenPropName);
|
|
117
117
|
export const TokenProps = styled.div.withConfig({
|
|
118
118
|
displayName: "Typography.styles__TokenProps",
|
|
119
|
-
componentId: "sc-
|
|
119
|
+
componentId: "sc-8a9193e4-16"
|
|
120
120
|
})([
|
|
121
121
|
`display:flex;gap:1rem;`
|
|
122
122
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/sdds-dfa",
|
|
3
|
-
"version": "0.367.0",
|
|
3
|
+
"version": "0.367.1-canary.3185.35701789905.0",
|
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS DFA web applications",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"styled-components": "^5.3.1"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@salutejs/plasma-new-hope": "0.381.0",
|
|
39
|
-
"@salutejs/sdds-themes": "0.82.0"
|
|
38
|
+
"@salutejs/plasma-new-hope": "0.381.1-canary.3185.35701789905.0",
|
|
39
|
+
"@salutejs/sdds-themes": "0.82.1-canary.3185.35701789905.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/cli": "7.24.1",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@babel/preset-env": "7.24.4",
|
|
47
47
|
"@babel/preset-react": "7.24.1",
|
|
48
48
|
"@babel/preset-typescript": "7.24.1",
|
|
49
|
-
"@salutejs/plasma-colors": "0.23.0",
|
|
50
|
-
"@salutejs/plasma-core": "1.244.0",
|
|
51
|
-
"@salutejs/plasma-cy-utils": "0.174.0",
|
|
52
|
-
"@salutejs/plasma-icons": "1.250.0",
|
|
53
|
-
"@salutejs/plasma-sb-utils": "0.245.0",
|
|
49
|
+
"@salutejs/plasma-colors": "0.23.1-canary.3185.35701789905.0",
|
|
50
|
+
"@salutejs/plasma-core": "1.244.1-canary.3185.35701789905.0",
|
|
51
|
+
"@salutejs/plasma-cy-utils": "0.174.1-canary.3185.35701789905.0",
|
|
52
|
+
"@salutejs/plasma-icons": "1.250.1-canary.3185.35701789905.0",
|
|
53
|
+
"@salutejs/plasma-sb-utils": "0.245.1-canary.3185.35701789905.0",
|
|
54
54
|
"@types/node": "16.7.13",
|
|
55
55
|
"@types/react": "18.0.28",
|
|
56
56
|
"@types/react-dom": "18.0.11",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"salute.developers@gmail.com"
|
|
89
89
|
],
|
|
90
90
|
"sideEffects": false,
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "8964a911f697ebb30ca16be813696e10d70d2549"
|
|
92
92
|
}
|
|
@@ -40,8 +40,8 @@ export declare const ColumnTitle: import("styled-components").StyledComponent<"d
|
|
|
40
40
|
export declare const StyledAccordionItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "onChange" | "title"> & {
|
|
41
41
|
value?: boolean;
|
|
42
42
|
type?: "clear" | "arrow" | "sign";
|
|
43
|
-
defaultIconContent?: import("@salutejs/plasma-new-hope").AccordionItemDefaultIconContent;
|
|
44
|
-
defaultIconPlacement?: import("@salutejs/plasma-new-hope").AccordionItemDefaultIconPlacement;
|
|
43
|
+
defaultIconContent?: import("@salutejs/plasma-new-hope/styled-components").AccordionItemDefaultIconContent;
|
|
44
|
+
defaultIconPlacement?: import("@salutejs/plasma-new-hope/styled-components").AccordionItemDefaultIconPlacement;
|
|
45
45
|
contentLeft?: React.ReactNode;
|
|
46
46
|
alignWithTitle?: boolean;
|
|
47
47
|
contentRight?: React.ReactNode;
|
|
@@ -42,8 +42,8 @@ export declare const AccordionInfo: import("styled-components").StyledComponent<
|
|
|
42
42
|
export declare const StyledAccordionItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "onChange" | "title"> & {
|
|
43
43
|
value?: boolean;
|
|
44
44
|
type?: "clear" | "arrow" | "sign";
|
|
45
|
-
defaultIconContent?: import("@salutejs/plasma-new-hope").AccordionItemDefaultIconContent;
|
|
46
|
-
defaultIconPlacement?: import("@salutejs/plasma-new-hope").AccordionItemDefaultIconPlacement;
|
|
45
|
+
defaultIconContent?: import("@salutejs/plasma-new-hope/styled-components").AccordionItemDefaultIconContent;
|
|
46
|
+
defaultIconPlacement?: import("@salutejs/plasma-new-hope/styled-components").AccordionItemDefaultIconPlacement;
|
|
47
47
|
contentLeft?: React.ReactNode;
|
|
48
48
|
alignWithTitle?: boolean;
|
|
49
49
|
contentRight?: React.ReactNode;
|