@salutejs/plasma-new-hope 0.197.0-canary.1588.11972699441.0 → 0.197.1-canary.1569.11973386056.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/cjs/components/Calendar/store/reducer.js +2 -2
- package/cjs/components/Calendar/store/reducer.js.map +1 -1
- package/cjs/components/Switch/Switch.css +2 -2
- package/cjs/components/Switch/Switch.tokens.js +9 -7
- package/cjs/components/Switch/Switch.tokens.js.map +1 -1
- package/cjs/components/Switch/_toggleSize/base.js +1 -1
- package/cjs/components/Switch/_toggleSize/base.js.map +1 -1
- package/cjs/components/Switch/_toggleSize/base_1e2ou53.css +1 -0
- package/cjs/components/Switch/_view/base.js +1 -1
- package/{es/components/Switch/_view/base_15atbyp.css → cjs/components/Switch/_view/base_qbpw2g.css} +1 -1
- package/cjs/components/Typography/Body/Body.css +1 -1
- package/cjs/components/Typography/Old/Button/Button.css +1 -1
- package/cjs/components/Typography/Old/Paragraph/Paragraph.css +1 -1
- package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
- package/{es/components/Typography/Old/Paragraph/Paragraph.styles_f6q9s8.css → cjs/components/Typography/Old/Paragraph/Paragraph.styles_179bahu.css} +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.css +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.js +1 -7
- package/cjs/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
- package/{es/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css → cjs/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css} +1 -1
- package/cjs/components/Typography/Old/TypographyOld.js +2 -4
- package/cjs/components/Typography/Old/TypographyOld.js.map +1 -1
- package/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/cjs/components/Typography/Old/TypographyOld.styles.js.map +1 -1
- package/cjs/components/Typography/Old/{TypographyOld.styles_168abbx.css → TypographyOld.styles_17w0rtq.css} +1 -1
- package/cjs/components/Typography/Old/Underline/Underline.css +1 -1
- package/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/cjs/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
- package/cjs/components/Typography/Old/Underline/{Underline.styles_1x2vb5e.css → Underline.styles_vsz834.css} +1 -1
- package/cjs/components/Typography/Typography.js +2 -4
- package/cjs/components/Typography/Typography.js.map +1 -1
- package/cjs/components/Typography/Typography.styles.js +1 -1
- package/cjs/components/Typography/Typography.styles.js.map +1 -1
- package/cjs/components/Typography/{Typography.styles_fa07dt.css → Typography.styles_6mr47g.css} +1 -1
- package/cjs/components/Typography/tokens.js +0 -1
- package/cjs/components/Typography/tokens.js.map +1 -1
- package/cjs/index.css +7 -7
- package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/emotion/cjs/components/Calendar/store/reducer.js +2 -2
- package/emotion/cjs/components/Switch/Switch.tokens.js +9 -7
- package/emotion/cjs/components/Switch/_toggleSize/base.js +1 -1
- package/emotion/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.js +1 -7
- package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/emotion/cjs/components/Typography/Old/TypographyOld.js +2 -4
- package/emotion/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/emotion/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/emotion/cjs/components/Typography/Typography.js +2 -4
- package/emotion/cjs/components/Typography/Typography.styles.js +1 -1
- package/emotion/cjs/components/Typography/Typography.template-doc.mdx +0 -4
- package/emotion/cjs/components/Typography/tokens.js +0 -1
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +8 -8
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.outline.config.js +8 -8
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +8 -8
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.outline.config.js +8 -8
- package/emotion/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
- package/emotion/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
- package/emotion/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -9
- package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/emotion/es/components/Calendar/store/reducer.js +2 -2
- package/emotion/es/components/Switch/Switch.tokens.js +9 -7
- package/emotion/es/components/Switch/_toggleSize/base.js +2 -2
- package/emotion/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/emotion/es/components/Typography/Old/Subtitle/Subtitle.js +1 -7
- package/emotion/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
- package/emotion/es/components/Typography/Old/TypographyOld.js +2 -4
- package/emotion/es/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/emotion/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/emotion/es/components/Typography/Typography.js +2 -4
- package/emotion/es/components/Typography/Typography.styles.js +1 -1
- package/emotion/es/components/Typography/Typography.template-doc.mdx +0 -4
- package/emotion/es/components/Typography/tokens.js +0 -1
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +8 -8
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.outline.config.js +8 -8
- package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +8 -8
- package/emotion/es/examples/plasma_web/components/Switch/Switch.outline.config.js +8 -8
- package/emotion/es/examples/typograpy/components/Body/Body.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
- package/emotion/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
- package/emotion/es/examples/typograpy/components/Text/Text.stories.tsx +1 -9
- package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/es/components/Calendar/store/reducer.js +2 -2
- package/es/components/Calendar/store/reducer.js.map +1 -1
- package/es/components/Switch/Switch.css +2 -2
- package/es/components/Switch/Switch.tokens.js +9 -7
- package/es/components/Switch/Switch.tokens.js.map +1 -1
- package/es/components/Switch/_toggleSize/base.js +1 -1
- package/es/components/Switch/_toggleSize/base.js.map +1 -1
- package/es/components/Switch/_toggleSize/base_1e2ou53.css +1 -0
- package/es/components/Switch/_view/base.js +1 -1
- package/{cjs/components/Switch/_view/base_15atbyp.css → es/components/Switch/_view/base_qbpw2g.css} +1 -1
- package/es/components/Typography/Body/Body.css +1 -1
- package/es/components/Typography/Old/Button/Button.css +1 -1
- package/es/components/Typography/Old/Paragraph/Paragraph.css +1 -1
- package/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/es/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
- package/{cjs/components/Typography/Old/Paragraph/Paragraph.styles_f6q9s8.css → es/components/Typography/Old/Paragraph/Paragraph.styles_179bahu.css} +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.css +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.js +1 -7
- package/es/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
- package/{cjs/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css → es/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css} +1 -1
- package/es/components/Typography/Old/TypographyOld.js +2 -4
- package/es/components/Typography/Old/TypographyOld.js.map +1 -1
- package/es/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/es/components/Typography/Old/TypographyOld.styles.js.map +1 -1
- package/es/components/Typography/Old/{TypographyOld.styles_168abbx.css → TypographyOld.styles_17w0rtq.css} +1 -1
- package/es/components/Typography/Old/Underline/Underline.css +1 -1
- package/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/es/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
- package/es/components/Typography/Old/Underline/{Underline.styles_1x2vb5e.css → Underline.styles_vsz834.css} +1 -1
- package/es/components/Typography/Typography.js +2 -4
- package/es/components/Typography/Typography.js.map +1 -1
- package/es/components/Typography/Typography.styles.js +1 -1
- package/es/components/Typography/Typography.styles.js.map +1 -1
- package/es/components/Typography/{Typography.styles_fa07dt.css → Typography.styles_6mr47g.css} +1 -1
- package/es/components/Typography/tokens.js +0 -1
- package/es/components/Typography/tokens.js.map +1 -1
- package/es/index.css +7 -7
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/styled-components/cjs/components/Calendar/store/reducer.js +2 -2
- package/styled-components/cjs/components/Switch/Switch.tokens.js +9 -7
- package/styled-components/cjs/components/Switch/_toggleSize/base.js +1 -1
- package/styled-components/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.js +1 -7
- package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Old/TypographyOld.js +2 -4
- package/styled-components/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Typography.js +2 -4
- package/styled-components/cjs/components/Typography/Typography.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Typography.template-doc.mdx +0 -4
- package/styled-components/cjs/components/Typography/tokens.js +0 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.outline.config.js +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.outline.config.js +3 -3
- package/styled-components/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
- package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
- package/styled-components/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -9
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/styled-components/es/components/Calendar/store/reducer.js +2 -2
- package/styled-components/es/components/Switch/Switch.tokens.js +9 -7
- package/styled-components/es/components/Switch/_toggleSize/base.js +2 -2
- package/styled-components/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.js +1 -7
- package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
- package/styled-components/es/components/Typography/Old/TypographyOld.js +2 -4
- package/styled-components/es/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/styled-components/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/styled-components/es/components/Typography/Typography.js +2 -4
- package/styled-components/es/components/Typography/Typography.styles.js +1 -1
- package/styled-components/es/components/Typography/Typography.template-doc.mdx +0 -4
- package/styled-components/es/components/Typography/tokens.js +0 -1
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.outline.config.js +3 -3
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +3 -3
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.outline.config.js +3 -3
- package/styled-components/es/examples/typograpy/components/Body/Body.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
- package/styled-components/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
- package/styled-components/es/examples/typograpy/components/Text/Text.stories.tsx +1 -9
- package/types/components/Calendar/store/reducer.d.ts +1 -1
- package/types/components/Calendar/store/reducer.d.ts.map +1 -1
- package/types/components/Switch/Switch.tokens.d.ts +4 -2
- package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
- package/types/components/Switch/_toggleSize/base.d.ts.map +1 -1
- package/types/components/Typography/Body/Body.d.ts +0 -2
- package/types/components/Typography/Body/Body.d.ts.map +1 -1
- package/types/components/Typography/Dspl/Dspl.d.ts +0 -2
- package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
- package/types/components/Typography/Heading/Heading.d.ts +0 -2
- package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
- package/types/components/Typography/Old/Paragraph/Paragraph.styles.d.ts.map +1 -1
- package/types/components/Typography/Old/Subtitle/Subtitle.d.ts.map +1 -1
- package/types/components/Typography/Old/Subtitle/Subtitle.styles.d.ts.map +1 -1
- package/types/components/Typography/Old/TypographyOld.d.ts.map +1 -1
- package/types/components/Typography/Old/TypographyOld.styles.d.ts.map +1 -1
- package/types/components/Typography/Old/Underline/Underline.styles.d.ts.map +1 -1
- package/types/components/Typography/Text/Text.d.ts +0 -2
- package/types/components/Typography/Text/Text.d.ts.map +1 -1
- package/types/components/Typography/Typography.d.ts +0 -1
- package/types/components/Typography/Typography.d.ts.map +1 -1
- package/types/components/Typography/Typography.styles.d.ts.map +1 -1
- package/types/components/Typography/Typography.types.d.ts +0 -1
- package/types/components/Typography/Typography.types.d.ts.map +1 -1
- package/types/components/Typography/tokens.d.ts +0 -1
- package/types/components/Typography/tokens.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Editable/Editable.d.ts +0 -4
- package/types/examples/plasma_b2c/components/Editable/Editable.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.outline.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Editable/Editable.d.ts +0 -4
- package/types/examples/plasma_web/components/Editable/Editable.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.outline.config.d.ts.map +1 -1
- package/types/examples/typograpy/components/Body/Body.d.ts +0 -1
- package/types/examples/typograpy/components/Body/Body.d.ts.map +1 -1
- package/types/examples/typograpy/components/Dspl/Dspl.d.ts +0 -1
- package/types/examples/typograpy/components/Dspl/Dspl.d.ts.map +1 -1
- package/types/examples/typograpy/components/Heading/Heading.d.ts +0 -1
- package/types/examples/typograpy/components/Heading/Heading.d.ts.map +1 -1
- package/types/examples/typograpy/components/Text/Text.d.ts +0 -1
- package/types/examples/typograpy/components/Text/Text.d.ts.map +1 -1
- package/cjs/components/Switch/_toggleSize/base_1d0b3t4.css +0 -1
- package/es/components/Switch/_toggleSize/base_1d0b3t4.css +0 -1
package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.outline.config.js
CHANGED
@@ -21,11 +21,11 @@ var config = exports.config = {
|
|
21
21
|
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], _Switch.switchTokens.fontFamily, _Switch.switchTokens.fontStyle, _Switch.switchTokens.fontWeight, _Switch.switchTokens.lineHeight, _Switch.switchTokens.fontSize, _Switch.switchTokens.letterSpacing, _Switch.switchTokens.descriptionFontFamily, _Switch.switchTokens.descriptionFontStyle, _Switch.switchTokens.descriptionFontWeight, _Switch.switchTokens.descriptionLineHeight, _Switch.switchTokens.descriptionFontSize, _Switch.switchTokens.descriptionLetterSpacing, _Switch.switchTokens.verticalGap, _Switch.switchTokens.labelOffset)
|
22
22
|
},
|
23
23
|
toggleSize: {
|
24
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.375rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.
|
25
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":0.875rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.
|
24
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.375rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbOffsetOn, _Switch.switchTokens.thumbOffsetOff, _Switch.switchTokens.thumbPressScale),
|
25
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":0.875rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbOffsetOn, _Switch.switchTokens.thumbOffsetOff, _Switch.switchTokens.thumbPressScale)
|
26
26
|
},
|
27
27
|
view: {
|
28
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":0.0625rem;", ":var(--outline-
|
28
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":0.0625rem;", ":0.0625rem;", ":var(--outline-accent);", ":var(--outline-accent-hover);", ":var(--outline-secondary);", ":var(--outline-secondary-hover);", ":var(--text-accent);", ":var(--text-tertiary);", ":0 1px 1px rgba(0,0,0,0.11);"], _Switch.switchTokens.labelColor, _Switch.switchTokens.descriptionColor, _Switch.switchTokens.trackBorderWidthOn, _Switch.switchTokens.trackBorderWidthOff, _Switch.switchTokens.trackBorderColorOn, _Switch.switchTokens.trackBorderColorOnHover, _Switch.switchTokens.trackBorderColorOff, _Switch.switchTokens.trackBorderColorOffHover, _Switch.switchTokens.thumbBackgroundColorOn, _Switch.switchTokens.thumbBackgroundColorOff, _Switch.switchTokens.thumbBoxShadow)
|
29
29
|
},
|
30
30
|
disabled: {
|
31
31
|
"true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Switch.switchTokens.disabledOpacity)
|
@@ -21,11 +21,11 @@ var config = exports.config = {
|
|
21
21
|
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], _Switch.switchTokens.fontFamily, _Switch.switchTokens.fontStyle, _Switch.switchTokens.fontWeight, _Switch.switchTokens.lineHeight, _Switch.switchTokens.fontSize, _Switch.switchTokens.letterSpacing, _Switch.switchTokens.descriptionFontFamily, _Switch.switchTokens.descriptionFontStyle, _Switch.switchTokens.descriptionFontWeight, _Switch.switchTokens.descriptionLineHeight, _Switch.switchTokens.descriptionFontSize, _Switch.switchTokens.descriptionLetterSpacing, _Switch.switchTokens.verticalGap, _Switch.switchTokens.labelOffset)
|
22
22
|
},
|
23
23
|
toggleSize: {
|
24
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.
|
25
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":1rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.
|
24
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbOffsetOn, _Switch.switchTokens.thumbOffsetOff, _Switch.switchTokens.thumbPressScale),
|
25
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":1rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbOffsetOn, _Switch.switchTokens.thumbOffsetOff, _Switch.switchTokens.thumbPressScale)
|
26
26
|
},
|
27
27
|
view: {
|
28
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":
|
28
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":0;", ":0;", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], _Switch.switchTokens.labelColor, _Switch.switchTokens.descriptionColor, _Switch.switchTokens.trackBackgroundColorOn, _Switch.switchTokens.trackBackgroundColorOnHover, _Switch.switchTokens.trackBackgroundColorOff, _Switch.switchTokens.trackBackgroundColorOffHover, _Switch.switchTokens.trackBorderWidthOn, _Switch.switchTokens.trackBorderWidthOff, _Switch.switchTokens.thumbBackgroundColorOn, _Switch.switchTokens.thumbBackgroundColorOff, _Switch.switchTokens.thumbBoxShadow)
|
29
29
|
},
|
30
30
|
disabled: {
|
31
31
|
"true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Switch.switchTokens.disabledOpacity)
|
package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.outline.config.js
CHANGED
@@ -21,11 +21,11 @@ var config = exports.config = {
|
|
21
21
|
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], _Switch.switchTokens.fontFamily, _Switch.switchTokens.fontStyle, _Switch.switchTokens.fontWeight, _Switch.switchTokens.lineHeight, _Switch.switchTokens.fontSize, _Switch.switchTokens.letterSpacing, _Switch.switchTokens.descriptionFontFamily, _Switch.switchTokens.descriptionFontStyle, _Switch.switchTokens.descriptionFontWeight, _Switch.switchTokens.descriptionLineHeight, _Switch.switchTokens.descriptionFontSize, _Switch.switchTokens.descriptionLetterSpacing, _Switch.switchTokens.verticalGap, _Switch.switchTokens.labelOffset)
|
22
22
|
},
|
23
23
|
toggleSize: {
|
24
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.375rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.
|
25
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":0.875rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.
|
24
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.375rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbOffsetOn, _Switch.switchTokens.thumbOffsetOff, _Switch.switchTokens.thumbPressScale),
|
25
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":0.875rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], _Switch.switchTokens.trackWidth, _Switch.switchTokens.trackHeight, _Switch.switchTokens.trackBorderRadius, _Switch.switchTokens.trackHeight, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbBorderRadius, _Switch.switchTokens.thumbSize, _Switch.switchTokens.thumbOffsetOn, _Switch.switchTokens.thumbOffsetOff, _Switch.switchTokens.thumbPressScale)
|
26
26
|
},
|
27
27
|
view: {
|
28
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":0.0625rem;", ":var(--outline-
|
28
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":0.0625rem;", ":0.0625rem;", ":var(--outline-accent);", ":var(--outline-accent-hover);", ":var(--outline-secondary);", ":var(--outline-secondary-hover);", ":var(--text-accent);", ":var(--text-tertiary);", ":0 1px 1px rgba(0,0,0,0.11);"], _Switch.switchTokens.labelColor, _Switch.switchTokens.descriptionColor, _Switch.switchTokens.trackBorderWidthOn, _Switch.switchTokens.trackBorderWidthOff, _Switch.switchTokens.trackBorderColorOn, _Switch.switchTokens.trackBorderColorOnHover, _Switch.switchTokens.trackBorderColorOff, _Switch.switchTokens.trackBorderColorOffHover, _Switch.switchTokens.thumbBackgroundColorOn, _Switch.switchTokens.thumbBackgroundColorOff, _Switch.switchTokens.thumbBoxShadow)
|
29
29
|
},
|
30
30
|
disabled: {
|
31
31
|
"true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _Switch.switchTokens.disabledOpacity)
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof Body> = {
|
|
12
12
|
title: 'typography/Body',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Body,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(bodyConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(bodyConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
bold: false,
|
27
19
|
},
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof Dspl> = {
|
|
12
12
|
title: 'typography/Dspl',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Dspl,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(dsplConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
bold: false,
|
27
19
|
},
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof Heading> = {
|
|
12
12
|
title: 'typography/Heading',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Heading,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(dsplConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
bold: false,
|
27
19
|
},
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof OldBody> = {
|
|
12
12
|
title: 'typography/Old/Body',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: OldBody,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
},
|
27
19
|
};
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof Button> = {
|
|
12
12
|
title: 'typography/Old/Button',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Button,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
},
|
27
19
|
};
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof Caption> = {
|
|
12
12
|
title: 'typography/Old/Caption',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Caption,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(captionConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(captionConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
},
|
27
19
|
};
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof Display> = {
|
|
12
12
|
title: 'typography/Old/Display',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Display,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(displayConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(displayConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
},
|
27
19
|
};
|
package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx
CHANGED
@@ -12,16 +12,8 @@ const meta: Meta<typeof Footnote> = {
|
|
12
12
|
title: 'typography/Old/Footnote',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Footnote,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(footnoteConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(footnoteConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
},
|
27
19
|
};
|
package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx
CHANGED
@@ -12,16 +12,8 @@ const meta: Meta<typeof Headline> = {
|
|
12
12
|
title: 'typography/Old/Headline',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Headline,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(headlineConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(headlineConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
},
|
27
19
|
};
|
package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx
CHANGED
@@ -12,16 +12,8 @@ const meta: Meta<typeof Paragraph> = {
|
|
12
12
|
title: 'typography/Old/Paragraph',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Paragraph,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(paragraphConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(paragraphConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
resetMargin: false,
|
27
19
|
m: 2,
|
package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx
CHANGED
@@ -12,17 +12,7 @@ const meta: Meta<typeof Subtitle> = {
|
|
12
12
|
title: 'typography/Old/Subtitle',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Subtitle,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(subtitleConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
23
|
-
args: {
|
24
|
-
noWrap: false,
|
25
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(subtitleConfig, config)),
|
26
16
|
};
|
27
17
|
|
28
18
|
export default meta;
|
package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx
CHANGED
@@ -12,16 +12,8 @@ const meta: Meta<typeof Underline> = {
|
|
12
12
|
title: 'typography/Old/Underline',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Underline,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(underlineConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(underlineConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
},
|
27
19
|
};
|
@@ -12,16 +12,8 @@ const meta: Meta<typeof Text> = {
|
|
12
12
|
title: 'typography/Text',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Text,
|
15
|
-
argTypes:
|
16
|
-
...argTypesFromConfig(mergeConfig(textConfig, config)),
|
17
|
-
color: {
|
18
|
-
control: {
|
19
|
-
type: 'color',
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
15
|
+
argTypes: argTypesFromConfig(mergeConfig(textConfig, config)),
|
23
16
|
args: {
|
24
|
-
noWrap: false,
|
25
17
|
breakWord: true,
|
26
18
|
bold: false,
|
27
19
|
},
|
@@ -63,7 +63,7 @@ export var calendarBaseRoot = function calendarBaseRoot(Root) {
|
|
63
63
|
_useState8 = _slicedToArray(_useState7, 2),
|
64
64
|
outOfRangeKey = _useState8[0],
|
65
65
|
setOutOfRangeKey = _useState8[1];
|
66
|
-
var _useReducer = useReducer(reducer, getInitialState(value, type)),
|
66
|
+
var _useReducer = useReducer(reducer, getInitialState(value, min, type)),
|
67
67
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
68
68
|
state = _useReducer2[0],
|
69
69
|
dispatch = _useReducer2[1];
|
@@ -64,7 +64,7 @@ export var calendarDoubleRoot = function calendarDoubleRoot(Root) {
|
|
64
64
|
_useState8 = _slicedToArray(_useState7, 2),
|
65
65
|
outOfRangeKey = _useState8[0],
|
66
66
|
setOutOfRangeKey = _useState8[1];
|
67
|
-
var _useReducer = useReducer(reducer, getInitialState(value, type, true)),
|
67
|
+
var _useReducer = useReducer(reducer, getInitialState(value, min, type, true)),
|
68
68
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
69
69
|
state = _useReducer2[0],
|
70
70
|
dispatch = _useReducer2[1];
|
@@ -30,8 +30,8 @@ export var sizeMap = {
|
|
30
30
|
"double": [3, 1]
|
31
31
|
}
|
32
32
|
};
|
33
|
-
export var getInitialState = function getInitialState(value, calendarState, isDouble) {
|
34
|
-
var initDate = value || new Date();
|
33
|
+
export var getInitialState = function getInitialState(value, min, calendarState, isDouble) {
|
34
|
+
var initDate = value || min || new Date();
|
35
35
|
var date = getDateFromValue(initDate);
|
36
36
|
var resSize = isDouble ? sizeMap[calendarState]["double"] : sizeMap[calendarState].single;
|
37
37
|
return {
|
@@ -23,11 +23,12 @@ export var tokens = {
|
|
23
23
|
verticalGap: '--plasma-switch-vertical-gap',
|
24
24
|
trackWidth: '--plasma-switch__track-width',
|
25
25
|
trackHeight: '--plasma-switch__track-height',
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
trackBorderWidthOn: '--plasma-switch__track_checked_true-border-width',
|
27
|
+
trackBorderWidthOff: '--plasma-switch__track_checked_false-border-width',
|
28
|
+
trackBorderColorOn: '--plasma-switch__track_checked_true-border-color',
|
29
|
+
trackBorderColorOnHover: '--plasma-switch__track_checked_true_hovered_true-border-color',
|
30
|
+
trackBorderColorOff: '--plasma-switch__track_checked_false-border-color',
|
31
|
+
trackBorderColorOffHover: '--plasma-switch__track_checked_false_hovered_true-border-color',
|
31
32
|
trackBorderRadius: '--plasma-switch__track-border-radius',
|
32
33
|
// NOTE: could be intersection with checked
|
33
34
|
trackBackgroundColorOn: '--plasma-switch__track_checked_true-bg-color',
|
@@ -36,11 +37,12 @@ export var tokens = {
|
|
36
37
|
trackBackgroundColorOffHover: '--plasma-switch__track_checked_false_hovered_true-bg-color',
|
37
38
|
trackFocusColor: '--plasma-switch__track-focus-color',
|
38
39
|
thumbSize: '--plasma-switch__thumb-size',
|
39
|
-
|
40
|
+
thumbOffsetOn: '--plasma-switch__thumb_checked_true-offset',
|
41
|
+
thumbOffsetOff: '--plasma-switch__thumb_checked_false-offset',
|
40
42
|
thumbBorderRadius: '--plasma-switch__thumb-border-radius',
|
41
43
|
thumbPressScale: '--plasma-switch__thumb-scale',
|
42
44
|
thumbBackgroundColorOn: '--plasma-switch__thumb_checked_true-bg-color',
|
43
|
-
thumbBackgroundColorOff: '--plasma-
|
45
|
+
thumbBackgroundColorOff: '--plasma-switch__thumb_checked_false-bg-color',
|
44
46
|
thumbBoxShadow: '--plasma-switch__thumb-box-shadow',
|
45
47
|
thumbBoxShadowOn: '--plasma-switch__thumb-box-shadow_checked_true',
|
46
48
|
labelOffsetPrivate: '--plasma_private-switch__label-offset'
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { tokens } from '../Switch.tokens';
|
3
|
-
import { StyledTrigger } from '../Switch.styles';
|
4
|
-
export var base = /*#__PURE__*/css(["", "{box-sizing:border-box;flex:0 0 var(", ");border-style:solid;border-width:var(", ");border-radius:var(", ");width:var(", ");height:var(", ");&::after{width:var(", ");height:var(", ");border-radius:var(", ");margin:auto var(", ");}}:active:not([disabled]) ", "::after{width:calc(var(", ") * var(", ",1));}"], StyledTrigger, tokens.trackWidth, tokens.
|
3
|
+
import { StyledInput, StyledTrigger } from '../Switch.styles';
|
4
|
+
export var base = /*#__PURE__*/css(["", "{box-sizing:border-box;flex:0 0 var(", ");border-style:solid;border-width:var(", ");border-radius:var(", ");width:var(", ");height:var(", ");&::after{width:var(", ");height:var(", ");border-radius:var(", ");margin:auto var(", ");}}", ":checked ~ ", "{border-width:var(", ",var(", "));&::after{margin:auto var(", ");}}:active:not([disabled]) ", "::after{width:calc(var(", ") * var(", ",1));}"], StyledTrigger, tokens.trackWidth, tokens.trackBorderWidthOff, tokens.trackBorderRadius, tokens.trackWidth, tokens.trackHeight, tokens.thumbSize, tokens.thumbSize, tokens.thumbBorderRadius, tokens.thumbOffsetOff, StyledInput, StyledTrigger, tokens.trackBorderWidthOn, tokens.trackBorderWidthOff, tokens.thumbOffsetOn, StyledTrigger, tokens.thumbSize, tokens.thumbPressScale);
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { classes, tokens } from '../../tokens';
|
3
3
|
import { applyHyphens, applyHyphensNormal } from '../../../../mixins';
|
4
|
-
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");margin:0
|
4
|
+
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");margin:0;", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["size", "children", "color", "
|
2
|
+
var _excluded = ["size", "children", "color", "style"];
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -11,23 +11,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
11
11
|
import React, { forwardRef } from 'react';
|
12
12
|
import { applySpacing } from '../../../../mixins/applySpacing';
|
13
13
|
import { base as sizeCSS } from '../../variations/_size/base';
|
14
|
-
import { classes } from '../../tokens';
|
15
|
-
import { cx } from '../../../../utils';
|
16
14
|
import { base } from './Subtitle.styles';
|
17
15
|
export var subtitleRoot = function subtitleRoot(Root) {
|
18
16
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
19
17
|
var size = props.size,
|
20
18
|
children = props.children,
|
21
19
|
color = props.color,
|
22
|
-
noWrap = props.noWrap,
|
23
|
-
className = props.className,
|
24
20
|
style = props.style,
|
25
21
|
rest = _objectWithoutProperties(props, _excluded);
|
26
|
-
var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
|
27
22
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
28
23
|
size: size,
|
29
24
|
ref: ref,
|
30
|
-
className: cx(withNoWrap, className),
|
31
25
|
style: _objectSpread(_objectSpread({
|
32
26
|
color: color
|
33
27
|
}, style), applySpacing(rest))
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
|
-
import {
|
2
|
+
import { tokens } from '../../tokens';
|
3
3
|
import { applyHyphens } from '../../../../mixins';
|
4
|
-
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ")
|
4
|
+
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphens));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["size", "children", "breakWord", "
|
2
|
+
var _excluded = ["size", "children", "breakWord", "color", "className", "style"];
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -17,17 +17,15 @@ export var typographyOldRoot = function typographyOldRoot(Root) {
|
|
17
17
|
var size = props.size,
|
18
18
|
children = props.children,
|
19
19
|
breakWord = props.breakWord,
|
20
|
-
noWrap = props.noWrap,
|
21
20
|
color = props.color,
|
22
21
|
className = props.className,
|
23
22
|
style = props.style,
|
24
23
|
rest = _objectWithoutProperties(props, _excluded);
|
25
|
-
var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
|
26
24
|
var withBreakWord = breakWord ? classes.typoWithBreakWord : undefined;
|
27
25
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
28
26
|
size: size,
|
29
27
|
ref: ref,
|
30
|
-
className: cx(
|
28
|
+
className: cx(withBreakWord, className),
|
31
29
|
style: _objectSpread(_objectSpread({
|
32
30
|
color: color
|
33
31
|
}, style), applySpacing(rest))
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { classes, tokens } from '../tokens';
|
3
3
|
import { applyHyphens, applyHyphensNormal } from '../../../mixins';
|
4
|
-
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ")
|
4
|
+
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { classes, tokens } from '../../tokens';
|
3
3
|
import { applyHyphens, applyHyphensNormal } from '../../../../mixins';
|
4
|
-
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");text-transform:uppercase
|
4
|
+
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");text-transform:uppercase;", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["size", "children", "breakWord", "
|
2
|
+
var _excluded = ["size", "children", "breakWord", "bold", "color", "className", "style"];
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -18,20 +18,18 @@ export var typographyRootCompose = function typographyRootCompose(defaultArgs) {
|
|
18
18
|
var size = props.size,
|
19
19
|
children = props.children,
|
20
20
|
breakWord = props.breakWord,
|
21
|
-
noWrap = props.noWrap,
|
22
21
|
_props$bold = props.bold,
|
23
22
|
bold = _props$bold === void 0 ? defaultArgs === null || defaultArgs === void 0 ? void 0 : defaultArgs.defaultBold : _props$bold,
|
24
23
|
color = props.color,
|
25
24
|
className = props.className,
|
26
25
|
style = props.style,
|
27
26
|
rest = _objectWithoutProperties(props, _excluded);
|
28
|
-
var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
|
29
27
|
var withBreakWord = breakWord ? classes.typoWithBreakWord : undefined;
|
30
28
|
var typographyBold = bold ? classes.typoBold : undefined;
|
31
29
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
32
30
|
size: size,
|
33
31
|
ref: ref,
|
34
|
-
className: cx(
|
32
|
+
className: cx(withBreakWord, typographyBold, className),
|
35
33
|
style: _objectSpread(_objectSpread({
|
36
34
|
color: color
|
37
35
|
}, style), applySpacing(rest)),
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { applyHyphens, applyHyphensNormal } from '../../mixins';
|
3
3
|
import { classes, tokens } from './tokens';
|
4
|
-
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{font-weight:var(", ");}
|
4
|
+
export var base = /*#__PURE__*/css(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{font-weight:var(", ");}", ";&.", "{", ";}"], tokens.typoFontFamily, tokens.typoFontSize, tokens.typoFontStyle, tokens.typoFontLetterSpacing, tokens.typoFontLineHeight, tokens.typoFontWeight, /*#__PURE__*/String(classes.typoBold), tokens.typoFontWeightBold, /*#__PURE__*/String(applyHyphensNormal), /*#__PURE__*/String(classes.typoWithBreakWord), /*#__PURE__*/String(applyHyphens));
|
@@ -19,10 +19,6 @@ title: Typography
|
|
19
19
|
По умолчанию в типографике слова переносятся по слогам.
|
20
20
|
Чтобы отключить данный функционал, необходимо установить свойство `breakWord` в значении `false`.
|
21
21
|
|
22
|
-
## Пробелы
|
23
|
-
По умолчанию в типографике если текст превышает ширину элемента, то слова будут переноситься по пробелам.
|
24
|
-
Чтобы запретить перенос по пробелам, необходимо установить свойство `noWrap` в значении `true`.
|
25
|
-
|
26
22
|
## Состав
|
27
23
|
|
28
24
|
### Hero unit
|
@@ -15,11 +15,11 @@ export var config = {
|
|
15
15
|
l: /*#__PURE__*/css(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset)
|
16
16
|
},
|
17
17
|
toggleSize: {
|
18
|
-
l: /*#__PURE__*/css(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.
|
19
|
-
s: /*#__PURE__*/css(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":1rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.
|
18
|
+
l: /*#__PURE__*/css(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffsetOn, switchTokens.thumbOffsetOff, switchTokens.thumbPressScale),
|
19
|
+
s: /*#__PURE__*/css(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":1rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffsetOn, switchTokens.thumbOffsetOff, switchTokens.thumbPressScale)
|
20
20
|
},
|
21
21
|
view: {
|
22
|
-
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":
|
22
|
+
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":0;", ":0;", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.trackBorderWidthOn, switchTokens.trackBorderWidthOff, switchTokens.thumbBackgroundColorOn, switchTokens.thumbBackgroundColorOff, switchTokens.thumbBoxShadow)
|
23
23
|
},
|
24
24
|
disabled: {
|
25
25
|
"true": /*#__PURE__*/css(["", ":0.4;"], switchTokens.disabledOpacity)
|
@@ -15,11 +15,11 @@ export var config = {
|
|
15
15
|
l: /*#__PURE__*/css(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset)
|
16
16
|
},
|
17
17
|
toggleSize: {
|
18
|
-
l: /*#__PURE__*/css(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.375rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.
|
19
|
-
s: /*#__PURE__*/css(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":0.875rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.
|
18
|
+
l: /*#__PURE__*/css(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.375rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffsetOn, switchTokens.thumbOffsetOff, switchTokens.thumbPressScale),
|
19
|
+
s: /*#__PURE__*/css(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":0.875rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffsetOn, switchTokens.thumbOffsetOff, switchTokens.thumbPressScale)
|
20
20
|
},
|
21
21
|
view: {
|
22
|
-
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":0.0625rem;", ":var(--outline-
|
22
|
+
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":0.0625rem;", ":0.0625rem;", ":var(--outline-accent);", ":var(--outline-accent-hover);", ":var(--outline-secondary);", ":var(--outline-secondary-hover);", ":var(--text-accent);", ":var(--text-tertiary);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBorderWidthOn, switchTokens.trackBorderWidthOff, switchTokens.trackBorderColorOn, switchTokens.trackBorderColorOnHover, switchTokens.trackBorderColorOff, switchTokens.trackBorderColorOffHover, switchTokens.thumbBackgroundColorOn, switchTokens.thumbBackgroundColorOff, switchTokens.thumbBoxShadow)
|
23
23
|
},
|
24
24
|
disabled: {
|
25
25
|
"true": /*#__PURE__*/css(["", ":0.4;"], switchTokens.disabledOpacity)
|