@salutejs/plasma-web 1.572.0-canary.1872.14102929402.0 → 1.572.0-canary.1872.14126863379.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.
@@ -8,7 +8,7 @@ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-c
|
|
8
8
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
9
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
10
10
|
var baseItemView = /*#__PURE__*/"\n ".concat(_styledComponents.stepsTokens.activeTitleColor, ": var(--text-primary);\n ").concat(_styledComponents.stepsTokens.activeTitleColorHover, ": var(--text-primary-hover);\n ").concat(_styledComponents.stepsTokens.activeIndicatorBorder, ": solid var(--surface-solid-default);\n ").concat(_styledComponents.stepsTokens.activeIndicatorColor, ": var(--text-primary);\n ").concat(_styledComponents.stepsTokens.activeIndicatorBackground, ": var(--surface-clear);\n\n ").concat(_styledComponents.stepsTokens.completedIndicatorColor, ": var(--inverse-text-primary);\n ").concat(_styledComponents.stepsTokens.completedIndicatorColorHover, ": var(--inverse-text-primary);\n ").concat(_styledComponents.stepsTokens.completedIndicatorBackground, ": var(--surface-solid-default);\n ").concat(_styledComponents.stepsTokens.completedIndicatorBackgroundHover, ": var(--surface-solid-default-hover);\n ").concat(_styledComponents.stepsTokens.completedTitleColor, ": var(--text-primary);\n ").concat(_styledComponents.stepsTokens.completedTitleColorHover, ": var(--text-primary-hover);\n\n ").concat(_styledComponents.stepsTokens.inactiveTitleColor, ": var(--text-secondary);\n ").concat(_styledComponents.stepsTokens.inactiveTitleColorHover, ": var(--text-secondary-hover);\n ").concat(_styledComponents.stepsTokens.inactiveIndicatorColor, ": var(--text-secondary);\n ").concat(_styledComponents.stepsTokens.inactiveIndicatorColorHover, ": var(--text-secondary);\n ").concat(_styledComponents.stepsTokens.inactiveIndicatorBackground, ": var(--surface-transparent-secondary);\n ").concat(_styledComponents.stepsTokens.inactiveIndicatorBackgroundHover, ": var(--surface-transparent-secondary-hover);\n\n ").concat(_styledComponents.stepsTokens.contentColor, ": var(--text-secondary);\n ").concat(_styledComponents.stepsTokens.focusColor, ": var(--surface-accent);\n\n ").concat(_styledComponents.stepsTokens.disabledOpacity, ": 0.4;\n");
|
11
|
-
var accentConfig = /*#__PURE__*/"\n ".concat(_styledComponents.stepsTokens.completedTitleColor, ": var(--text-primary);\n ").concat(_styledComponents.stepsTokens.completedTitleColorHover, ": var(--text-primary-hover);\n \n ").concat(_styledComponents.stepsTokens.completedIndicatorBackground, ": var(--surface-accent);\n ").concat(_styledComponents.stepsTokens.completedIndicatorBackgroundHover, ": var(--surface-accent-hover);\n \n // \u0426\u0432\u0435\u0442 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u043D\u0443\u0442\u0440\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 Step\n ").concat(_styledComponents.stepsTokens.completedIndicatorColor, ": var(--text-primary);\n ").concat(_styledComponents.stepsTokens.completedIndicatorColorHover, ": var(--text-primary-hover);\n");
|
11
|
+
var accentConfig = /*#__PURE__*/"\n ".concat(_styledComponents.stepsTokens.completedTitleColor, ": var(--text-primary);\n ").concat(_styledComponents.stepsTokens.completedTitleColorHover, ": var(--text-primary-hover);\n \n ").concat(_styledComponents.stepsTokens.completedIndicatorBackground, ": var(--surface-accent);\n ").concat(_styledComponents.stepsTokens.completedIndicatorBackgroundHover, ": var(--surface-accent-hover);\n \n // \u0426\u0432\u0435\u0442 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u043D\u0443\u0442\u0440\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 Step\n ").concat(_styledComponents.stepsTokens.completedIndicatorColor, ": var(--on-dark-text-primary);\n ").concat(_styledComponents.stepsTokens.completedIndicatorColorHover, ": var(--on-dark-text-primary-hover);\n");
|
12
12
|
var config = exports.config = {
|
13
13
|
defaults: {
|
14
14
|
size: 'm',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Steps.config.js","sources":["../../../../src-css/components/Steps/Steps.config.ts"],"sourcesContent":["import { css, stepsTokens as tokens } from '@salutejs/plasma-new-hope';\n\nconst baseItemView = `\n ${tokens.activeTitleColor}: var(--text-primary);\n ${tokens.activeTitleColorHover}: var(--text-primary-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-solid-default);\n ${tokens.activeIndicatorColor}: var(--text-primary);\n ${tokens.activeIndicatorBackground}: var(--surface-clear);\n\n ${tokens.completedIndicatorColor}: var(--inverse-text-primary);\n ${tokens.completedIndicatorColorHover}: var(--inverse-text-primary);\n ${tokens.completedIndicatorBackground}: var(--surface-solid-default);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-solid-default-hover);\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n\n ${tokens.inactiveTitleColor}: var(--text-secondary);\n ${tokens.inactiveTitleColorHover}: var(--text-secondary-hover);\n ${tokens.inactiveIndicatorColor}: var(--text-secondary);\n ${tokens.inactiveIndicatorColorHover}: var(--text-secondary);\n ${tokens.inactiveIndicatorBackground}: var(--surface-transparent-secondary);\n ${tokens.inactiveIndicatorBackgroundHover}: var(--surface-transparent-secondary-hover);\n\n ${tokens.contentColor}: var(--text-secondary);\n ${tokens.focusColor}: var(--surface-accent);\n\n ${tokens.disabledOpacity}: 0.4;\n`;\n\nconst accentConfig = `\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n \n ${tokens.completedIndicatorBackground}: var(--surface-accent);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-accent-hover);\n \n // Цвет контента внутри элемента Step\n ${tokens.completedIndicatorColor}: var(--text-primary);\n ${tokens.completedIndicatorColorHover}: var(--text-primary-hover);\n`;\n\nexport const config = {\n defaults: {\n size: 'm',\n view: 'default',\n },\n variations: {\n view: {\n default: css`\n ${tokens.dividerColor}: var(--surface-solid-default);\n `,\n accent: css`\n ${tokens.dividerColor}: var(--surface-accent);\n `,\n },\n itemView: {\n default: css`\n ${baseItemView};\n `,\n negative: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-negative);\n ${tokens.activeTitleColorHover}: var(--surface-negative-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-negative);\n ${tokens.activeIndicatorColor}: var(--text-negative);\n `,\n warning: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-warning);\n ${tokens.activeTitleColorHover}: var(--surface-warning-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-warning);\n ${tokens.activeIndicatorColor}: var(--text-warning);\n `,\n positive: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-positive);\n ${tokens.activeTitleColorHover}: var(--surface-positive-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-positive);\n ${tokens.activeIndicatorColor}: var(--text-positive);\n `,\n },\n size: {\n l: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.75rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 2rem;\n ${tokens.contentVerticalPadding}: 1.0625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 1rem;\n ${tokens.largeIndicatorIndentHeight}: 0.625rem;\n ${tokens.smallBulletIndentHeight}: 1.5rem;\n ${tokens.largeBulletIndentHeight}: 1.25rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-l-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-l-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-l-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-l-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-l-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n m: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.625rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.75rem;\n ${tokens.contentVerticalPadding}: 0.875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.75rem;\n ${tokens.largeIndicatorIndentHeight}: 0.4375rem;\n ${tokens.smallBulletIndentHeight}: 1.25rem;\n ${tokens.largeBulletIndentHeight}: 1.125rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n s: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.6875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.5rem;\n ${tokens.largeIndicatorIndentHeight}: 0.5rem;\n ${tokens.smallBulletIndentHeight}: 1rem;\n ${tokens.largeBulletIndentHeight}: 0.75rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n xs: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.25rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.5625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.25rem;\n ${tokens.largeIndicatorIndentHeight}: 0.25rem;\n ${tokens.smallBulletIndentHeight}: 0.75rem;\n ${tokens.largeBulletIndentHeight}: 0.5rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n },\n },\n intersections: [\n {\n view: 'accent',\n itemView: 'default',\n style: css`\n ${tokens.activeIndicatorBorder}: solid var(--text-accent);\n ${tokens.activeIndicatorColor}: var(--text-accent);\n\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'negative',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'warning',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'positive',\n style: css`\n ${accentConfig};\n `,\n },\n ],\n};\n"],"names":["config","defaults","size","view","variations","default","accent","itemView","negative","warning","positive","l","m","s","xs","intersections","style"],"mappings":";;;;AAyCO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,IAAI,EAAE,SAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRD,IAAAA,IAAI,EAAE;AACFE,MAAAA,SAAAA,EAEC,UAAA;AACDC,MAAAA,MAAM,EAAA,SAAA;KAGT;AACDC,IAAAA,QAAQ,EAAE;AACNF,MAAAA,SAAAA,EAEC,UAAA;AACDG,MAAAA,QAAQ,EAOP,SAAA;AACDC,MAAAA,OAAO,EAON,SAAA;AACDC,MAAAA,QAAQ,EAAA,SAAA;KAQX;AACDR,IAAAA,IAAI,EAAE;AACFS,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,CAAC,EA8CA,UAAA;AACDC,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,EAAE,EAAA,SAAA;AA+CN,KAAA;GACH;AACDC,EAAAA,aAAa,EAAE,CACX;AACIZ,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,SAAA;AAMT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,UAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;GAGR,CAAA;AAET;;;;"}
|
1
|
+
{"version":3,"file":"Steps.config.js","sources":["../../../../src-css/components/Steps/Steps.config.ts"],"sourcesContent":["import { css, stepsTokens as tokens } from '@salutejs/plasma-new-hope';\n\nconst baseItemView = `\n ${tokens.activeTitleColor}: var(--text-primary);\n ${tokens.activeTitleColorHover}: var(--text-primary-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-solid-default);\n ${tokens.activeIndicatorColor}: var(--text-primary);\n ${tokens.activeIndicatorBackground}: var(--surface-clear);\n\n ${tokens.completedIndicatorColor}: var(--inverse-text-primary);\n ${tokens.completedIndicatorColorHover}: var(--inverse-text-primary);\n ${tokens.completedIndicatorBackground}: var(--surface-solid-default);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-solid-default-hover);\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n\n ${tokens.inactiveTitleColor}: var(--text-secondary);\n ${tokens.inactiveTitleColorHover}: var(--text-secondary-hover);\n ${tokens.inactiveIndicatorColor}: var(--text-secondary);\n ${tokens.inactiveIndicatorColorHover}: var(--text-secondary);\n ${tokens.inactiveIndicatorBackground}: var(--surface-transparent-secondary);\n ${tokens.inactiveIndicatorBackgroundHover}: var(--surface-transparent-secondary-hover);\n\n ${tokens.contentColor}: var(--text-secondary);\n ${tokens.focusColor}: var(--surface-accent);\n\n ${tokens.disabledOpacity}: 0.4;\n`;\n\nconst accentConfig = `\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n \n ${tokens.completedIndicatorBackground}: var(--surface-accent);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-accent-hover);\n \n // Цвет контента внутри элемента Step\n ${tokens.completedIndicatorColor}: var(--on-dark-text-primary);\n ${tokens.completedIndicatorColorHover}: var(--on-dark-text-primary-hover);\n`;\n\nexport const config = {\n defaults: {\n size: 'm',\n view: 'default',\n },\n variations: {\n view: {\n default: css`\n ${tokens.dividerColor}: var(--surface-solid-default);\n `,\n accent: css`\n ${tokens.dividerColor}: var(--surface-accent);\n `,\n },\n itemView: {\n default: css`\n ${baseItemView};\n `,\n negative: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-negative);\n ${tokens.activeTitleColorHover}: var(--surface-negative-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-negative);\n ${tokens.activeIndicatorColor}: var(--text-negative);\n `,\n warning: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-warning);\n ${tokens.activeTitleColorHover}: var(--surface-warning-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-warning);\n ${tokens.activeIndicatorColor}: var(--text-warning);\n `,\n positive: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-positive);\n ${tokens.activeTitleColorHover}: var(--surface-positive-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-positive);\n ${tokens.activeIndicatorColor}: var(--text-positive);\n `,\n },\n size: {\n l: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.75rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 2rem;\n ${tokens.contentVerticalPadding}: 1.0625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 1rem;\n ${tokens.largeIndicatorIndentHeight}: 0.625rem;\n ${tokens.smallBulletIndentHeight}: 1.5rem;\n ${tokens.largeBulletIndentHeight}: 1.25rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-l-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-l-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-l-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-l-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-l-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n m: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.625rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.75rem;\n ${tokens.contentVerticalPadding}: 0.875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.75rem;\n ${tokens.largeIndicatorIndentHeight}: 0.4375rem;\n ${tokens.smallBulletIndentHeight}: 1.25rem;\n ${tokens.largeBulletIndentHeight}: 1.125rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n s: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.6875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.5rem;\n ${tokens.largeIndicatorIndentHeight}: 0.5rem;\n ${tokens.smallBulletIndentHeight}: 1rem;\n ${tokens.largeBulletIndentHeight}: 0.75rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n xs: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.25rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.5625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.25rem;\n ${tokens.largeIndicatorIndentHeight}: 0.25rem;\n ${tokens.smallBulletIndentHeight}: 0.75rem;\n ${tokens.largeBulletIndentHeight}: 0.5rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n },\n },\n intersections: [\n {\n view: 'accent',\n itemView: 'default',\n style: css`\n ${tokens.activeIndicatorBorder}: solid var(--text-accent);\n ${tokens.activeIndicatorColor}: var(--text-accent);\n\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'negative',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'warning',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'positive',\n style: css`\n ${accentConfig};\n `,\n },\n ],\n};\n"],"names":["config","defaults","size","view","variations","default","accent","itemView","negative","warning","positive","l","m","s","xs","intersections","style"],"mappings":";;;;AAyCO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,IAAI,EAAE,SAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRD,IAAAA,IAAI,EAAE;AACFE,MAAAA,SAAAA,EAEC,UAAA;AACDC,MAAAA,MAAM,EAAA,SAAA;KAGT;AACDC,IAAAA,QAAQ,EAAE;AACNF,MAAAA,SAAAA,EAEC,UAAA;AACDG,MAAAA,QAAQ,EAOP,SAAA;AACDC,MAAAA,OAAO,EAON,SAAA;AACDC,MAAAA,QAAQ,EAAA,SAAA;KAQX;AACDR,IAAAA,IAAI,EAAE;AACFS,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,CAAC,EA8CA,UAAA;AACDC,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,EAAE,EAAA,SAAA;AA+CN,KAAA;GACH;AACDC,EAAAA,aAAa,EAAE,CACX;AACIZ,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,SAAA;AAMT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,UAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;GAGR,CAAA;AAET;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Steps.config.js","sources":["../../../../src-css/components/Steps/Steps.config.ts"],"sourcesContent":["import { css, stepsTokens as tokens } from '@salutejs/plasma-new-hope';\n\nconst baseItemView = `\n ${tokens.activeTitleColor}: var(--text-primary);\n ${tokens.activeTitleColorHover}: var(--text-primary-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-solid-default);\n ${tokens.activeIndicatorColor}: var(--text-primary);\n ${tokens.activeIndicatorBackground}: var(--surface-clear);\n\n ${tokens.completedIndicatorColor}: var(--inverse-text-primary);\n ${tokens.completedIndicatorColorHover}: var(--inverse-text-primary);\n ${tokens.completedIndicatorBackground}: var(--surface-solid-default);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-solid-default-hover);\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n\n ${tokens.inactiveTitleColor}: var(--text-secondary);\n ${tokens.inactiveTitleColorHover}: var(--text-secondary-hover);\n ${tokens.inactiveIndicatorColor}: var(--text-secondary);\n ${tokens.inactiveIndicatorColorHover}: var(--text-secondary);\n ${tokens.inactiveIndicatorBackground}: var(--surface-transparent-secondary);\n ${tokens.inactiveIndicatorBackgroundHover}: var(--surface-transparent-secondary-hover);\n\n ${tokens.contentColor}: var(--text-secondary);\n ${tokens.focusColor}: var(--surface-accent);\n\n ${tokens.disabledOpacity}: 0.4;\n`;\n\nconst accentConfig = `\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n \n ${tokens.completedIndicatorBackground}: var(--surface-accent);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-accent-hover);\n \n // Цвет контента внутри элемента Step\n ${tokens.completedIndicatorColor}: var(--text-primary);\n ${tokens.completedIndicatorColorHover}: var(--text-primary-hover);\n`;\n\nexport const config = {\n defaults: {\n size: 'm',\n view: 'default',\n },\n variations: {\n view: {\n default: css`\n ${tokens.dividerColor}: var(--surface-solid-default);\n `,\n accent: css`\n ${tokens.dividerColor}: var(--surface-accent);\n `,\n },\n itemView: {\n default: css`\n ${baseItemView};\n `,\n negative: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-negative);\n ${tokens.activeTitleColorHover}: var(--surface-negative-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-negative);\n ${tokens.activeIndicatorColor}: var(--text-negative);\n `,\n warning: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-warning);\n ${tokens.activeTitleColorHover}: var(--surface-warning-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-warning);\n ${tokens.activeIndicatorColor}: var(--text-warning);\n `,\n positive: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-positive);\n ${tokens.activeTitleColorHover}: var(--surface-positive-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-positive);\n ${tokens.activeIndicatorColor}: var(--text-positive);\n `,\n },\n size: {\n l: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.75rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 2rem;\n ${tokens.contentVerticalPadding}: 1.0625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 1rem;\n ${tokens.largeIndicatorIndentHeight}: 0.625rem;\n ${tokens.smallBulletIndentHeight}: 1.5rem;\n ${tokens.largeBulletIndentHeight}: 1.25rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-l-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-l-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-l-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-l-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-l-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n m: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.625rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.75rem;\n ${tokens.contentVerticalPadding}: 0.875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.75rem;\n ${tokens.largeIndicatorIndentHeight}: 0.4375rem;\n ${tokens.smallBulletIndentHeight}: 1.25rem;\n ${tokens.largeBulletIndentHeight}: 1.125rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n s: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.6875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.5rem;\n ${tokens.largeIndicatorIndentHeight}: 0.5rem;\n ${tokens.smallBulletIndentHeight}: 1rem;\n ${tokens.largeBulletIndentHeight}: 0.75rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n xs: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.25rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.5625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.25rem;\n ${tokens.largeIndicatorIndentHeight}: 0.25rem;\n ${tokens.smallBulletIndentHeight}: 0.75rem;\n ${tokens.largeBulletIndentHeight}: 0.5rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n },\n },\n intersections: [\n {\n view: 'accent',\n itemView: 'default',\n style: css`\n ${tokens.activeIndicatorBorder}: solid var(--text-accent);\n ${tokens.activeIndicatorColor}: var(--text-accent);\n\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'negative',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'warning',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'positive',\n style: css`\n ${accentConfig};\n `,\n },\n ],\n};\n"],"names":["config","defaults","size","view","variations","default","accent","itemView","negative","warning","positive","l","m","s","xs","intersections","style"],"mappings":"AAyCO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,IAAI,EAAE,SAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRD,IAAAA,IAAI,EAAE;AACFE,MAAAA,SAAAA,EAEC,UAAA;AACDC,MAAAA,MAAM,EAAA,SAAA;KAGT;AACDC,IAAAA,QAAQ,EAAE;AACNF,MAAAA,SAAAA,EAEC,UAAA;AACDG,MAAAA,QAAQ,EAOP,SAAA;AACDC,MAAAA,OAAO,EAON,SAAA;AACDC,MAAAA,QAAQ,EAAA,SAAA;KAQX;AACDR,IAAAA,IAAI,EAAE;AACFS,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,CAAC,EA8CA,UAAA;AACDC,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,EAAE,EAAA,SAAA;AA+CN,KAAA;GACH;AACDC,EAAAA,aAAa,EAAE,CACX;AACIZ,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,SAAA;AAMT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,UAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;GAGR,CAAA;AAET;;;;"}
|
1
|
+
{"version":3,"file":"Steps.config.js","sources":["../../../../src-css/components/Steps/Steps.config.ts"],"sourcesContent":["import { css, stepsTokens as tokens } from '@salutejs/plasma-new-hope';\n\nconst baseItemView = `\n ${tokens.activeTitleColor}: var(--text-primary);\n ${tokens.activeTitleColorHover}: var(--text-primary-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-solid-default);\n ${tokens.activeIndicatorColor}: var(--text-primary);\n ${tokens.activeIndicatorBackground}: var(--surface-clear);\n\n ${tokens.completedIndicatorColor}: var(--inverse-text-primary);\n ${tokens.completedIndicatorColorHover}: var(--inverse-text-primary);\n ${tokens.completedIndicatorBackground}: var(--surface-solid-default);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-solid-default-hover);\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n\n ${tokens.inactiveTitleColor}: var(--text-secondary);\n ${tokens.inactiveTitleColorHover}: var(--text-secondary-hover);\n ${tokens.inactiveIndicatorColor}: var(--text-secondary);\n ${tokens.inactiveIndicatorColorHover}: var(--text-secondary);\n ${tokens.inactiveIndicatorBackground}: var(--surface-transparent-secondary);\n ${tokens.inactiveIndicatorBackgroundHover}: var(--surface-transparent-secondary-hover);\n\n ${tokens.contentColor}: var(--text-secondary);\n ${tokens.focusColor}: var(--surface-accent);\n\n ${tokens.disabledOpacity}: 0.4;\n`;\n\nconst accentConfig = `\n ${tokens.completedTitleColor}: var(--text-primary);\n ${tokens.completedTitleColorHover}: var(--text-primary-hover);\n \n ${tokens.completedIndicatorBackground}: var(--surface-accent);\n ${tokens.completedIndicatorBackgroundHover}: var(--surface-accent-hover);\n \n // Цвет контента внутри элемента Step\n ${tokens.completedIndicatorColor}: var(--on-dark-text-primary);\n ${tokens.completedIndicatorColorHover}: var(--on-dark-text-primary-hover);\n`;\n\nexport const config = {\n defaults: {\n size: 'm',\n view: 'default',\n },\n variations: {\n view: {\n default: css`\n ${tokens.dividerColor}: var(--surface-solid-default);\n `,\n accent: css`\n ${tokens.dividerColor}: var(--surface-accent);\n `,\n },\n itemView: {\n default: css`\n ${baseItemView};\n `,\n negative: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-negative);\n ${tokens.activeTitleColorHover}: var(--surface-negative-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-negative);\n ${tokens.activeIndicatorColor}: var(--text-negative);\n `,\n warning: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-warning);\n ${tokens.activeTitleColorHover}: var(--surface-warning-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-warning);\n ${tokens.activeIndicatorColor}: var(--text-warning);\n `,\n positive: css`\n ${baseItemView};\n\n ${tokens.activeTitleColor}: var(--surface-positive);\n ${tokens.activeTitleColorHover}: var(--surface-positive-hover);\n ${tokens.activeIndicatorBorder}: solid var(--surface-positive);\n ${tokens.activeIndicatorColor}: var(--text-positive);\n `,\n },\n size: {\n l: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.75rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 2rem;\n ${tokens.contentVerticalPadding}: 1.0625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 1rem;\n ${tokens.largeIndicatorIndentHeight}: 0.625rem;\n ${tokens.smallBulletIndentHeight}: 1.5rem;\n ${tokens.largeBulletIndentHeight}: 1.25rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-l-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-l-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-l-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-l-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-l-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n m: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 2.25rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.625rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.75rem;\n ${tokens.contentVerticalPadding}: 0.875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.75rem;\n ${tokens.largeIndicatorIndentHeight}: 0.4375rem;\n ${tokens.smallBulletIndentHeight}: 1.25rem;\n ${tokens.largeBulletIndentHeight}: 1.125rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-m-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n s: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.375rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.6875rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.5rem;\n ${tokens.largeIndicatorIndentHeight}: 0.5rem;\n ${tokens.smallBulletIndentHeight}: 1rem;\n ${tokens.largeBulletIndentHeight}: 0.75rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n xs: css`\n ${tokens.indicatorSize}: 1.5rem;\n ${tokens.activeIndicatorSize}: 1.5rem;\n ${tokens.bulletSize}: 0.5rem;\n ${tokens.activeBulletSize}: 1rem;\n\n ${tokens.titlePaddingTop}: 0.5rem;\n ${tokens.contentPaddingTop}: 0.25rem;\n ${tokens.contentSidePadding}: 1.5rem;\n ${tokens.contentVerticalPadding}: 0.5625rem;\n ${tokens.verticalContentPaddingLeft}: 0.75rem;\n\n ${tokens.smallIndicatorIndentHeight}: 0.25rem;\n ${tokens.largeIndicatorIndentHeight}: 0.25rem;\n ${tokens.smallBulletIndentHeight}: 0.75rem;\n ${tokens.largeBulletIndentHeight}: 0.5rem;\n\n ${tokens.indicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.indicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.indicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.indicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.indicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.titleFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.titleFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.titleFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.titleFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.titleLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.titleLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.contentFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.contentFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.contentFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.contentFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.contentLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.contentLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.dividerThickness}: 0.125rem;\n `,\n },\n },\n intersections: [\n {\n view: 'accent',\n itemView: 'default',\n style: css`\n ${tokens.activeIndicatorBorder}: solid var(--text-accent);\n ${tokens.activeIndicatorColor}: var(--text-accent);\n\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'negative',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'warning',\n style: css`\n ${accentConfig};\n `,\n },\n {\n view: 'accent',\n itemView: 'positive',\n style: css`\n ${accentConfig};\n `,\n },\n ],\n};\n"],"names":["config","defaults","size","view","variations","default","accent","itemView","negative","warning","positive","l","m","s","xs","intersections","style"],"mappings":"AAyCO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,IAAI,EAAE,SAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRD,IAAAA,IAAI,EAAE;AACFE,MAAAA,SAAAA,EAEC,UAAA;AACDC,MAAAA,MAAM,EAAA,SAAA;KAGT;AACDC,IAAAA,QAAQ,EAAE;AACNF,MAAAA,SAAAA,EAEC,UAAA;AACDG,MAAAA,QAAQ,EAOP,SAAA;AACDC,MAAAA,OAAO,EAON,SAAA;AACDC,MAAAA,QAAQ,EAAA,SAAA;KAQX;AACDR,IAAAA,IAAI,EAAE;AACFS,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,CAAC,EA8CA,UAAA;AACDC,MAAAA,CAAC,EA8CA,SAAA;AACDC,MAAAA,EAAE,EAAA,SAAA;AA+CN,KAAA;GACH;AACDC,EAAAA,aAAa,EAAE,CACX;AACIZ,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,SAAA;AAMT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,SAAS;AACnBS,IAAAA,KAAK,EAAA,UAAA;AAGT,GAAC,EACD;AACIb,IAAAA,IAAI,EAAE,QAAQ;AACdI,IAAAA,QAAQ,EAAE,UAAU;AACpBS,IAAAA,KAAK,EAAA,SAAA;GAGR,CAAA;AAET;;;;"}
|
@@ -2,7 +2,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
3
|
import { css, stepsTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
4
|
var baseItemView = /*#__PURE__*/"\n ".concat(tokens.activeTitleColor, ": var(--text-primary);\n ").concat(tokens.activeTitleColorHover, ": var(--text-primary-hover);\n ").concat(tokens.activeIndicatorBorder, ": solid var(--surface-solid-default);\n ").concat(tokens.activeIndicatorColor, ": var(--text-primary);\n ").concat(tokens.activeIndicatorBackground, ": var(--surface-clear);\n\n ").concat(tokens.completedIndicatorColor, ": var(--inverse-text-primary);\n ").concat(tokens.completedIndicatorColorHover, ": var(--inverse-text-primary);\n ").concat(tokens.completedIndicatorBackground, ": var(--surface-solid-default);\n ").concat(tokens.completedIndicatorBackgroundHover, ": var(--surface-solid-default-hover);\n ").concat(tokens.completedTitleColor, ": var(--text-primary);\n ").concat(tokens.completedTitleColorHover, ": var(--text-primary-hover);\n\n ").concat(tokens.inactiveTitleColor, ": var(--text-secondary);\n ").concat(tokens.inactiveTitleColorHover, ": var(--text-secondary-hover);\n ").concat(tokens.inactiveIndicatorColor, ": var(--text-secondary);\n ").concat(tokens.inactiveIndicatorColorHover, ": var(--text-secondary);\n ").concat(tokens.inactiveIndicatorBackground, ": var(--surface-transparent-secondary);\n ").concat(tokens.inactiveIndicatorBackgroundHover, ": var(--surface-transparent-secondary-hover);\n\n ").concat(tokens.contentColor, ": var(--text-secondary);\n ").concat(tokens.focusColor, ": var(--surface-accent);\n\n ").concat(tokens.disabledOpacity, ": 0.4;\n");
|
5
|
-
var accentConfig = /*#__PURE__*/"\n ".concat(tokens.completedTitleColor, ": var(--text-primary);\n ").concat(tokens.completedTitleColorHover, ": var(--text-primary-hover);\n \n ").concat(tokens.completedIndicatorBackground, ": var(--surface-accent);\n ").concat(tokens.completedIndicatorBackgroundHover, ": var(--surface-accent-hover);\n \n // \u0426\u0432\u0435\u0442 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u043D\u0443\u0442\u0440\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 Step\n ").concat(tokens.completedIndicatorColor, ": var(--text-primary);\n ").concat(tokens.completedIndicatorColorHover, ": var(--text-primary-hover);\n");
|
5
|
+
var accentConfig = /*#__PURE__*/"\n ".concat(tokens.completedTitleColor, ": var(--text-primary);\n ").concat(tokens.completedTitleColorHover, ": var(--text-primary-hover);\n \n ").concat(tokens.completedIndicatorBackground, ": var(--surface-accent);\n ").concat(tokens.completedIndicatorBackgroundHover, ": var(--surface-accent-hover);\n \n // \u0426\u0432\u0435\u0442 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u043D\u0443\u0442\u0440\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 Step\n ").concat(tokens.completedIndicatorColor, ": var(--on-dark-text-primary);\n ").concat(tokens.completedIndicatorColorHover, ": var(--on-dark-text-primary-hover);\n");
|
6
6
|
export var config = {
|
7
7
|
defaults: {
|
8
8
|
size: 'm',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-web",
|
3
|
-
"version": "1.572.0-canary.1872.
|
3
|
+
"version": "1.572.0-canary.1872.14126863379.0",
|
4
4
|
"description": "Salute Design System / React UI kit for web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -19,10 +19,10 @@
|
|
19
19
|
"directory": "packages/plasma-web"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@salutejs/plasma-core": "1.195.0-canary.1872.
|
23
|
-
"@salutejs/plasma-hope": "1.338.0-canary.1872.
|
24
|
-
"@salutejs/plasma-new-hope": "0.314.0-canary.1872.
|
25
|
-
"@salutejs/plasma-themes": "0.31.0-canary.1872.
|
22
|
+
"@salutejs/plasma-core": "1.195.0-canary.1872.14126863379.0",
|
23
|
+
"@salutejs/plasma-hope": "1.338.0-canary.1872.14126863379.0",
|
24
|
+
"@salutejs/plasma-new-hope": "0.314.0-canary.1872.14126863379.0",
|
25
|
+
"@salutejs/plasma-themes": "0.31.0-canary.1872.14126863379.0",
|
26
26
|
"@salutejs/plasma-tokens-b2b": "1.48.0",
|
27
27
|
"@salutejs/plasma-tokens-b2c": "0.59.0",
|
28
28
|
"@salutejs/plasma-tokens-web": "1.64.0",
|
@@ -49,9 +49,9 @@
|
|
49
49
|
"@rollup/plugin-commonjs": "25.0.7",
|
50
50
|
"@rollup/plugin-node-resolve": "15.2.3",
|
51
51
|
"@salutejs/plasma-colors": "0.15.0",
|
52
|
-
"@salutejs/plasma-cy-utils": "0.126.0-canary.1872.
|
53
|
-
"@salutejs/plasma-icons": "1.216.0-canary.1872.
|
54
|
-
"@salutejs/plasma-sb-utils": "0.195.0-canary.1872.
|
52
|
+
"@salutejs/plasma-cy-utils": "0.126.0-canary.1872.14126863379.0",
|
53
|
+
"@salutejs/plasma-icons": "1.216.0-canary.1872.14126863379.0",
|
54
|
+
"@salutejs/plasma-sb-utils": "0.195.0-canary.1872.14126863379.0",
|
55
55
|
"@storybook/addon-docs": "7.6.17",
|
56
56
|
"@storybook/addon-essentials": "7.6.17",
|
57
57
|
"@storybook/addons": "7.6.17",
|
@@ -111,5 +111,5 @@
|
|
111
111
|
"Fanil Zubairov"
|
112
112
|
],
|
113
113
|
"sideEffects": false,
|
114
|
-
"gitHead": "
|
114
|
+
"gitHead": "a59aa4dd5a21a5bc1ad867d11ec263269ca677f1"
|
115
115
|
}
|