@salutejs/plasma-new-hope 0.336.0-canary.2224.17630468274.0 → 0.336.0-canary.2227.17639708086.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Switch/Switch.css +6 -6
- package/cjs/components/Switch/Switch.js +2 -5
- package/cjs/components/Switch/Switch.js.map +1 -1
- package/cjs/components/Switch/Switch.styles.js +1 -1
- package/cjs/components/Switch/Switch.styles.js.map +1 -1
- package/cjs/components/Switch/{Switch.styles_1pe5u24.css → Switch.styles_qjefea.css} +1 -1
- package/cjs/components/Switch/Switch.tokens.js +1 -2
- package/cjs/components/Switch/Switch.tokens.js.map +1 -1
- package/cjs/index.css +6 -6
- package/emotion/cjs/components/Switch/Switch.js +2 -4
- package/emotion/cjs/components/Switch/Switch.styles.js +11 -11
- package/emotion/cjs/components/Switch/Switch.tokens.js +1 -2
- package/emotion/cjs/examples/components/Combobox/Combobox.js +15 -0
- package/emotion/cjs/examples/components/Range/Range.config.js +8 -7
- package/emotion/es/components/Switch/Switch.js +2 -4
- package/emotion/es/components/Switch/Switch.styles.js +11 -11
- package/emotion/es/components/Switch/Switch.tokens.js +1 -2
- package/emotion/es/examples/components/Range/Range.config.js +8 -7
- package/es/components/Switch/Switch.css +6 -6
- package/es/components/Switch/Switch.js +2 -5
- package/es/components/Switch/Switch.js.map +1 -1
- package/es/components/Switch/Switch.styles.js +1 -1
- package/es/components/Switch/Switch.styles.js.map +1 -1
- package/es/components/Switch/{Switch.styles_1pe5u24.css → Switch.styles_qjefea.css} +1 -1
- package/es/components/Switch/Switch.tokens.js +1 -2
- package/es/components/Switch/Switch.tokens.js.map +1 -1
- package/es/index.css +6 -6
- package/package.json +2 -2
- package/styled-components/cjs/components/Switch/Switch.js +2 -4
- package/styled-components/cjs/components/Switch/Switch.styles.js +8 -9
- package/styled-components/cjs/components/Switch/Switch.tokens.js +1 -2
- package/styled-components/cjs/examples/components/Range/Range.config.js +46 -0
- package/styled-components/es/components/Switch/Switch.js +2 -4
- package/styled-components/es/components/Switch/Switch.styles.js +8 -9
- package/styled-components/es/components/Switch/Switch.tokens.js +1 -2
- package/styled-components/es/examples/components/Combobox/Combobox.js +0 -7
- package/styled-components/es/examples/components/Range/Range.config.js +46 -0
- package/types/components/Switch/Switch.d.ts.map +1 -1
- package/types/components/Switch/Switch.styles.d.ts.map +1 -1
- package/types/components/Switch/Switch.tokens.d.ts +0 -1
- package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
- package/types/components/Switch/Switch.types.d.ts +0 -5
- package/types/components/Switch/Switch.types.d.ts.map +1 -1
- package/types/examples/components/Range/Range.config.d.ts +1 -0
- package/types/examples/components/Range/Range.config.d.ts.map +1 -1
- package/types/examples/components/Range/Range.d.ts +1 -0
- package/types/examples/components/Range/Range.d.ts.map +1 -1
@@ -8,9 +8,9 @@
|
|
8
8
|
|
9
9
|
.base_15j754u_bnochw__b189000a{opacity:var(--plasma-switch-disabled-opacity);}.base_15j754u_bnochw__b189000a[disabled]{cursor:not-allowed;}
|
10
10
|
|
11
|
-
.
|
12
|
-
.
|
13
|
-
.
|
14
|
-
.
|
15
|
-
.
|
16
|
-
.
|
11
|
+
.Switch_styles_qjefea_b1fcyfkl__60191d72{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-switch-vertical-gap);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);}.Switch_styles_qjefea_b1fcyfkl__60191d72:focus{outline:0 none;}
|
12
|
+
.Switch_styles_qjefea_s10fscgc__60191d72{width:100%;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Switch_styles_qjefea_s10fscgc__60191d72.Switch_styles_qjefea_switchLabelPositionBefore__60191d72{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;--plasma_private-switch__label-offset:0 var(--plasma-switch__label-offset) 0 0;}.Switch_styles_qjefea_s10fscgc__60191d72.Switch_styles_qjefea_switchLabelPositionAfter__60191d72{-webkit-box-pack:start;-webkit-justify-content:start;-ms-flex-pack:start;justify-content:start;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(--plasma-switch__label-offset);}
|
13
|
+
.Switch_styles_qjefea_sdjnckq__60191d72{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:-webkit-box;line-clamp:var(--plasma-switch__description-max-lines);-webkit-line-clamp:var(--plasma-switch__description-max-lines);-webkit-box-orient:vertical;white-space:wrap;}
|
14
|
+
.Switch_styles_qjefea_ssthlx1__60191d72{position:absolute;right:0;margin:0;opacity:0;}.Switch_styles_qjefea_ssthlx1__60191d72:focus{outline:0 none;}
|
15
|
+
.Switch_styles_qjefea_s1ilr5eq__60191d72{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
16
|
+
.Switch_styles_qjefea_s2cs3kf__60191d72{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:background-color 0.15s ease-in-out 0.1s;transition:background-color 0.15s ease-in-out 0.1s;}.Switch_styles_qjefea_s2cs3kf__60191d72::after{content:'';position:absolute;right:auto;left:0;-webkit-transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}.Switch_styles_qjefea_ssthlx1__60191d72:checked ~ .Switch_styles_qjefea_s2cs3kf__60191d72::after{right:0;left:auto;}
|
@@ -10,7 +10,7 @@ import { StyledContent, StyledInput, StyledLabel, StyledTrigger, StyledDescripti
|
|
10
10
|
import { classes } from './Switch.tokens.js';
|
11
11
|
|
12
12
|
var _StyledTrigger;
|
13
|
-
var _excluded = ["size", "toggleSize", "view", "focused", "outlined", "disabled", "labelPosition", "label", "description", "
|
13
|
+
var _excluded = ["size", "toggleSize", "view", "focused", "outlined", "disabled", "labelPosition", "label", "description", "id", "style", "className", "checked", "pressed", "defaultChecked"];
|
14
14
|
var switchRoot = function switchRoot(Root) {
|
15
15
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
16
16
|
var size = props.size,
|
@@ -22,8 +22,6 @@ var switchRoot = function switchRoot(Root) {
|
|
22
22
|
labelPosition = props.labelPosition,
|
23
23
|
label = props.label,
|
24
24
|
description = props.description,
|
25
|
-
_props$labelEllipses = props.labelEllipses,
|
26
|
-
labelEllipses = _props$labelEllipses === void 0 ? true : _props$labelEllipses,
|
27
25
|
id = props.id,
|
28
26
|
style = props.style,
|
29
27
|
className = props.className,
|
@@ -53,8 +51,7 @@ var switchRoot = function switchRoot(Root) {
|
|
53
51
|
defaultChecked: defaultChecked,
|
54
52
|
disabled: disabled
|
55
53
|
})), /*#__PURE__*/React.createElement(StyledLabel, {
|
56
|
-
tabIndex: -1
|
57
|
-
className: labelEllipses ? classes.labelEllipsis : ''
|
54
|
+
tabIndex: -1
|
58
55
|
}, label), _StyledTrigger || (_StyledTrigger = /*#__PURE__*/React.createElement(StyledTrigger, {
|
59
56
|
"aria-hidden": true
|
60
57
|
}))), description && /*#__PURE__*/React.createElement(StyledDescription, null, description));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.js","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { base as sizeCSS } from '../Switch/_size/base';\nimport { base as toggleSizeCSS } from '../Switch/_toggleSize/base';\nimport { base as viewCSS } from '../Switch/_view/base';\nimport { base as focusedCSS } from '../Switch/_focused/base';\nimport { base as disabledCSS } from '../Switch/_disabled/base';\nimport { cx } from '../../utils';\n\nimport { StyledContent, StyledDescription, StyledInput, StyledLabel, StyledTrigger, base } from './Switch.styles';\nimport { SwitchProps } from './Switch.types';\nimport { classes } from './Switch.tokens';\n\nexport const switchRoot = (Root: RootProps<HTMLInputElement, SwitchProps>) =>\n forwardRef<HTMLInputElement, SwitchProps>((props, ref) => {\n const {\n size,\n toggleSize,\n view,\n focused,\n outlined,\n disabled,\n labelPosition,\n\n label,\n description,\n
|
1
|
+
{"version":3,"file":"Switch.js","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { base as sizeCSS } from '../Switch/_size/base';\nimport { base as toggleSizeCSS } from '../Switch/_toggleSize/base';\nimport { base as viewCSS } from '../Switch/_view/base';\nimport { base as focusedCSS } from '../Switch/_focused/base';\nimport { base as disabledCSS } from '../Switch/_disabled/base';\nimport { cx } from '../../utils';\n\nimport { StyledContent, StyledDescription, StyledInput, StyledLabel, StyledTrigger, base } from './Switch.styles';\nimport { SwitchProps } from './Switch.types';\nimport { classes } from './Switch.tokens';\n\nexport const switchRoot = (Root: RootProps<HTMLInputElement, SwitchProps>) =>\n forwardRef<HTMLInputElement, SwitchProps>((props, ref) => {\n const {\n size,\n toggleSize,\n view,\n focused,\n outlined,\n disabled,\n labelPosition,\n\n label,\n description,\n\n id,\n style,\n className,\n\n // singleLine,\n\n checked,\n pressed,\n defaultChecked,\n\n ...rest\n } = props;\n\n const exactChecked = Boolean((checked ?? pressed) !== undefined ? checked ?? pressed : defaultChecked);\n\n return (\n <Root\n view={view}\n size={size}\n toggleSize={toggleSize}\n disabled={disabled}\n focused={focused ?? outlined}\n labelPosition={labelPosition}\n id={id}\n style={style}\n className={cx(className)}\n >\n <StyledContent className={cx(classes[`${labelPosition}SwitchLabelPosition` as keyof typeof classes])}>\n <StyledInput\n {...rest}\n ref={ref}\n role=\"switch\"\n aria-checked={exactChecked}\n type=\"checkbox\"\n checked={checked ?? pressed}\n defaultChecked={defaultChecked}\n disabled={disabled}\n />\n <StyledLabel tabIndex={-1}>{label}</StyledLabel>\n <StyledTrigger aria-hidden />\n </StyledContent>\n {description && <StyledDescription>{description}</StyledDescription>}\n </Root>\n );\n });\n\nexport const switchConfig = {\n name: 'Switch',\n tag: 'label',\n base,\n layout: switchRoot,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n toggleSize: {\n css: toggleSizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n size: 's',\n view: 'default',\n },\n};\n"],"names":["switchRoot","Root","forwardRef","props","ref","size","toggleSize","view","focused","outlined","disabled","labelPosition","label","description","id","style","className","checked","pressed","defaultChecked","rest","_objectWithoutProperties","_excluded","exactChecked","Boolean","undefined","React","createElement","cx","StyledContent","classes","concat","StyledInput","_extends","role","type","StyledLabel","tabIndex","_StyledTrigger","StyledTrigger","StyledDescription","switchConfig","name","tag","base","layout","variations","css","sizeCSS","viewCSS","toggleSizeCSS","disabledCSS","attrs","focusedCSS","defaults"],"mappings":"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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.styles.js","sources":["../../../src/components/Switch/Switch.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { applyEllipsis } from '../../mixins';\n\nimport { classes, tokens } from './Switch.tokens';\n\nexport const base = css`\n position: relative;\n display: flex;\n flex-direction: column;\n gap: var(${tokens.verticalGap});\n\n cursor: pointer;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &:focus {\n outline: 0 none;\n }\n`;\n\nexport const StyledContent = styled.div`\n width: 100%;\n position: relative;\n display: flex;\n align-items: center;\n\n &.${classes.beforeSwitchLabelPosition} {\n justify-content: space-between;\n\n ${tokens.labelOffsetPrivate}: 0 var(${tokens.labelOffset}) 0 0;\n }\n\n &.${classes.afterSwitchLabelPosition} {\n justify-content: start;\n flex-direction: row-reverse;\n\n ${tokens.labelOffsetPrivate}: 0 0 0 var(${tokens.labelOffset});\n }\n`;\n\nexport const StyledDescription = styled.div`\n position: relative;\n\n ${applyEllipsis()}\n\n display: -webkit-box;\n line-clamp: var(${tokens.descriptionMaxLines});\n -webkit-line-clamp: var(${tokens.descriptionMaxLines}); /* Ограничиваем количество строк */\n -webkit-box-orient: vertical;\n white-space: wrap;\n`;\n\nexport const StyledInput = styled.input`\n position: absolute;\n right: 0;\n margin: 0;\n opacity: 0;\n\n &:focus {\n outline: 0 none;\n }\n`;\n\nexport const StyledLabel = styled.span`\n user-select: none;\n\n
|
1
|
+
{"version":3,"file":"Switch.styles.js","sources":["../../../src/components/Switch/Switch.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { applyEllipsis } from '../../mixins';\n\nimport { classes, tokens } from './Switch.tokens';\n\nexport const base = css`\n position: relative;\n display: flex;\n flex-direction: column;\n gap: var(${tokens.verticalGap});\n\n cursor: pointer;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &:focus {\n outline: 0 none;\n }\n`;\n\nexport const StyledContent = styled.div`\n width: 100%;\n position: relative;\n display: flex;\n align-items: center;\n\n &.${classes.beforeSwitchLabelPosition} {\n justify-content: space-between;\n\n ${tokens.labelOffsetPrivate}: 0 var(${tokens.labelOffset}) 0 0;\n }\n\n &.${classes.afterSwitchLabelPosition} {\n justify-content: start;\n flex-direction: row-reverse;\n\n ${tokens.labelOffsetPrivate}: 0 0 0 var(${tokens.labelOffset});\n }\n`;\n\nexport const StyledDescription = styled.div`\n position: relative;\n\n ${applyEllipsis()}\n\n display: -webkit-box;\n line-clamp: var(${tokens.descriptionMaxLines});\n -webkit-line-clamp: var(${tokens.descriptionMaxLines}); /* Ограничиваем количество строк */\n -webkit-box-orient: vertical;\n white-space: wrap;\n`;\n\nexport const StyledInput = styled.input`\n position: absolute;\n right: 0;\n margin: 0;\n opacity: 0;\n\n &:focus {\n outline: 0 none;\n }\n`;\n\nexport const StyledLabel = styled.span`\n user-select: none;\n\n // TODO: multiline switch\n ${applyEllipsis()}\n`;\n\nexport const StyledTrigger = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n transition: background-color 0.15s ease-in-out 0.1s;\n\n ::after {\n content: '';\n position: absolute;\n right: auto;\n left: 0;\n\n transition: width 0.15s ease-in-out 0s, left 0.3s ease-in-out 0s, right 0.3s ease-in-out 0s;\n }\n\n ${StyledInput}:checked ~ &::after {\n right: 0;\n left: auto;\n }\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","StyledDescription","StyledInput","StyledLabel","StyledTrigger"],"mappings":";;AAOO,IAAMA,IAAI,GAYhB,WAAA;AAEM,IAAMC,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAkBlC,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAUtC,EAAA;AAEM,IAAME,WAAW,gBAAGL,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAShC,EAAA;AAEM,IAAMG,WAAW,gBAAGN,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKhC,EAAA;AAEM,IAAMI,aAAa,gBAAGP,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAmBlC;;;;"}
|
@@ -2,5 +2,5 @@
|
|
2
2
|
.s10fscgc{width:100%;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.s10fscgc.switch-label-position-before{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;--plasma_private-switch__label-offset:0 var(--plasma-switch__label-offset) 0 0;}.s10fscgc.switch-label-position-after{-webkit-box-pack:start;-webkit-justify-content:start;-ms-flex-pack:start;justify-content:start;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(--plasma-switch__label-offset);}
|
3
3
|
.sdjnckq{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:-webkit-box;line-clamp:var(--plasma-switch__description-max-lines);-webkit-line-clamp:var(--plasma-switch__description-max-lines);-webkit-box-orient:vertical;white-space:wrap;}
|
4
4
|
.ssthlx1{position:absolute;right:0;margin:0;opacity:0;}.ssthlx1:focus{outline:0 none;}
|
5
|
-
.s1ilr5eq{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;
|
5
|
+
.s1ilr5eq{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
6
6
|
.s2cs3kf{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:background-color 0.15s ease-in-out 0.1s;transition:background-color 0.15s ease-in-out 0.1s;}.s2cs3kf::after{content:'';position:absolute;right:auto;left:0;-webkit-transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}.ssthlx1:checked ~ .s2cs3kf::after{right:0;left:auto;}
|
@@ -50,8 +50,7 @@ var tokens = {
|
|
50
50
|
};
|
51
51
|
var classes = {
|
52
52
|
beforeSwitchLabelPosition: 'switch-label-position-before',
|
53
|
-
afterSwitchLabelPosition: 'switch-label-position-after'
|
54
|
-
labelEllipsis: 'switch-label-ellipsis'
|
53
|
+
afterSwitchLabelPosition: 'switch-label-position-after'
|
55
54
|
};
|
56
55
|
|
57
56
|
export { classes, tokens };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.tokens.js","sources":["../../../src/components/Switch/Switch.tokens.ts"],"sourcesContent":["export const tokens = {\n fontFamily: '--plasma-switch-font-family',\n fontStyle: '--plasma-switch-font-style',\n fontSize: '--plasma-switch-font-size',\n fontWeight: '--plasma-switch-font-weight',\n letterSpacing: '--plasma-switch-letter-spacing',\n lineHeight: '--plasma-switch-line-height',\n\n /* Токены description */\n descriptionFontFamily: '--plasma-switch-description-font-family',\n descriptionFontStyle: '--plasma-switch-description-font-style',\n descriptionFontSize: '--plasma-switch-description-font-size',\n descriptionFontWeight: '--plasma-switch-description-font-weight',\n descriptionLetterSpacing: '--plasma-switch-description-letter-spacing',\n descriptionLineHeight: '--plasma-switch-description-line-height',\n\n /* Цвет подписи */\n labelColor: '--plasma-switch__label-color',\n labelOffset: '--plasma-switch__label-offset',\n\n /* Цвет описания */\n descriptionColor: '--plasma-switch__description-color',\n descriptionOffset: '--plasma-switch__description-offset',\n descriptionMaxLines: '--plasma-switch__description-max-lines',\n\n /** Прозрачность для всего компонента в состоянии disabled */\n disabledOpacity: '--plasma-switch-disabled-opacity',\n\n verticalGap: '--plasma-switch-vertical-gap',\n trackWidth: '--plasma-switch__track-width',\n trackHeight: '--plasma-switch__track-height',\n trackBorderWidthOn: '--plasma-switch__track_checked_true-border-width',\n trackBorderWidthOff: '--plasma-switch__track_checked_false-border-width',\n trackBorderColorOn: '--plasma-switch__track_checked_true-border-color',\n trackBorderColorOnHover: '--plasma-switch__track_checked_true_hovered_true-border-color',\n trackBorderColorOff: '--plasma-switch__track_checked_false-border-color',\n trackBorderColorOffHover: '--plasma-switch__track_checked_false_hovered_true-border-color',\n\n trackBorderRadius: '--plasma-switch__track-border-radius',\n // NOTE: could be intersection with checked\n trackBackgroundColorOn: '--plasma-switch__track_checked_true-bg-color',\n trackBackgroundColorOnHover: '--plasma-switch__track_checked_true_hovered_true-bg-color',\n trackBackgroundColorOff: '--plasma-switch__track_checked_false-bg-color',\n trackBackgroundColorOffHover: '--plasma-switch__track_checked_false_hovered_true-bg-color',\n\n trackFocusColor: '--plasma-switch__track-focus-color',\n\n thumbSize: '--plasma-switch__thumb-size',\n thumbOffsetOn: '--plasma-switch__thumb_checked_true-offset',\n thumbOffsetOff: '--plasma-switch__thumb_checked_false-offset',\n thumbBorderRadius: '--plasma-switch__thumb-border-radius',\n\n thumbPressScale: '--plasma-switch__thumb-scale',\n\n thumbBackgroundColorOn: '--plasma-switch__thumb_checked_true-bg-color',\n thumbBackgroundColorOff: '--plasma-switch__thumb_checked_false-bg-color',\n thumbBoxShadow: '--plasma-switch__thumb-box-shadow',\n thumbBoxShadowOn: '--plasma-switch__thumb-box-shadow_checked_true',\n\n labelOffsetPrivate: '--plasma_private-switch__label-offset',\n};\n\nexport const classes = {\n beforeSwitchLabelPosition: 'switch-label-position-before',\n afterSwitchLabelPosition: 'switch-label-position-after',\n
|
1
|
+
{"version":3,"file":"Switch.tokens.js","sources":["../../../src/components/Switch/Switch.tokens.ts"],"sourcesContent":["export const tokens = {\n fontFamily: '--plasma-switch-font-family',\n fontStyle: '--plasma-switch-font-style',\n fontSize: '--plasma-switch-font-size',\n fontWeight: '--plasma-switch-font-weight',\n letterSpacing: '--plasma-switch-letter-spacing',\n lineHeight: '--plasma-switch-line-height',\n\n /* Токены description */\n descriptionFontFamily: '--plasma-switch-description-font-family',\n descriptionFontStyle: '--plasma-switch-description-font-style',\n descriptionFontSize: '--plasma-switch-description-font-size',\n descriptionFontWeight: '--plasma-switch-description-font-weight',\n descriptionLetterSpacing: '--plasma-switch-description-letter-spacing',\n descriptionLineHeight: '--plasma-switch-description-line-height',\n\n /* Цвет подписи */\n labelColor: '--plasma-switch__label-color',\n labelOffset: '--plasma-switch__label-offset',\n\n /* Цвет описания */\n descriptionColor: '--plasma-switch__description-color',\n descriptionOffset: '--plasma-switch__description-offset',\n descriptionMaxLines: '--plasma-switch__description-max-lines',\n\n /** Прозрачность для всего компонента в состоянии disabled */\n disabledOpacity: '--plasma-switch-disabled-opacity',\n\n verticalGap: '--plasma-switch-vertical-gap',\n trackWidth: '--plasma-switch__track-width',\n trackHeight: '--plasma-switch__track-height',\n trackBorderWidthOn: '--plasma-switch__track_checked_true-border-width',\n trackBorderWidthOff: '--plasma-switch__track_checked_false-border-width',\n trackBorderColorOn: '--plasma-switch__track_checked_true-border-color',\n trackBorderColorOnHover: '--plasma-switch__track_checked_true_hovered_true-border-color',\n trackBorderColorOff: '--plasma-switch__track_checked_false-border-color',\n trackBorderColorOffHover: '--plasma-switch__track_checked_false_hovered_true-border-color',\n\n trackBorderRadius: '--plasma-switch__track-border-radius',\n // NOTE: could be intersection with checked\n trackBackgroundColorOn: '--plasma-switch__track_checked_true-bg-color',\n trackBackgroundColorOnHover: '--plasma-switch__track_checked_true_hovered_true-bg-color',\n trackBackgroundColorOff: '--plasma-switch__track_checked_false-bg-color',\n trackBackgroundColorOffHover: '--plasma-switch__track_checked_false_hovered_true-bg-color',\n\n trackFocusColor: '--plasma-switch__track-focus-color',\n\n thumbSize: '--plasma-switch__thumb-size',\n thumbOffsetOn: '--plasma-switch__thumb_checked_true-offset',\n thumbOffsetOff: '--plasma-switch__thumb_checked_false-offset',\n thumbBorderRadius: '--plasma-switch__thumb-border-radius',\n\n thumbPressScale: '--plasma-switch__thumb-scale',\n\n thumbBackgroundColorOn: '--plasma-switch__thumb_checked_true-bg-color',\n thumbBackgroundColorOff: '--plasma-switch__thumb_checked_false-bg-color',\n thumbBoxShadow: '--plasma-switch__thumb-box-shadow',\n thumbBoxShadowOn: '--plasma-switch__thumb-box-shadow_checked_true',\n\n labelOffsetPrivate: '--plasma_private-switch__label-offset',\n};\n\nexport const classes = {\n beforeSwitchLabelPosition: 'switch-label-position-before',\n afterSwitchLabelPosition: 'switch-label-position-after',\n};\n"],"names":["tokens","fontFamily","fontStyle","fontSize","fontWeight","letterSpacing","lineHeight","descriptionFontFamily","descriptionFontStyle","descriptionFontSize","descriptionFontWeight","descriptionLetterSpacing","descriptionLineHeight","labelColor","labelOffset","descriptionColor","descriptionOffset","descriptionMaxLines","disabledOpacity","verticalGap","trackWidth","trackHeight","trackBorderWidthOn","trackBorderWidthOff","trackBorderColorOn","trackBorderColorOnHover","trackBorderColorOff","trackBorderColorOffHover","trackBorderRadius","trackBackgroundColorOn","trackBackgroundColorOnHover","trackBackgroundColorOff","trackBackgroundColorOffHover","trackFocusColor","thumbSize","thumbOffsetOn","thumbOffsetOff","thumbBorderRadius","thumbPressScale","thumbBackgroundColorOn","thumbBackgroundColorOff","thumbBoxShadow","thumbBoxShadowOn","labelOffsetPrivate","classes","beforeSwitchLabelPosition","afterSwitchLabelPosition"],"mappings":"AAAO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,SAAS,EAAE,4BAA4B;AACvCC,EAAAA,QAAQ,EAAE,2BAA2B;AACrCC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,aAAa,EAAE,gCAAgC;AAC/CC,EAAAA,UAAU,EAAE,6BAA6B;AAEzC;AACAC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,oBAAoB,EAAE,wCAAwC;AAC9DC,EAAAA,mBAAmB,EAAE,uCAAuC;AAC5DC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,wBAAwB,EAAE,4CAA4C;AACtEC,EAAAA,qBAAqB,EAAE,yCAAyC;AAEhE;AACAC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAE5C;AACAC,EAAAA,gBAAgB,EAAE,oCAAoC;AACtDC,EAAAA,iBAAiB,EAAE,qCAAqC;AACxDC,EAAAA,mBAAmB,EAAE,wCAAwC;AAE7D;AACAC,EAAAA,eAAe,EAAE,kCAAkC;AAEnDC,EAAAA,WAAW,EAAE,8BAA8B;AAC3CC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,kBAAkB,EAAE,kDAAkD;AACtEC,EAAAA,mBAAmB,EAAE,mDAAmD;AACxEC,EAAAA,kBAAkB,EAAE,kDAAkD;AACtEC,EAAAA,uBAAuB,EAAE,+DAA+D;AACxFC,EAAAA,mBAAmB,EAAE,mDAAmD;AACxEC,EAAAA,wBAAwB,EAAE,gEAAgE;AAE1FC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzD;AACAC,EAAAA,sBAAsB,EAAE,8CAA8C;AACtEC,EAAAA,2BAA2B,EAAE,2DAA2D;AACxFC,EAAAA,uBAAuB,EAAE,+CAA+C;AACxEC,EAAAA,4BAA4B,EAAE,4DAA4D;AAE1FC,EAAAA,eAAe,EAAE,oCAAoC;AAErDC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,aAAa,EAAE,4CAA4C;AAC3DC,EAAAA,cAAc,EAAE,6CAA6C;AAC7DC,EAAAA,iBAAiB,EAAE,sCAAsC;AAEzDC,EAAAA,eAAe,EAAE,8BAA8B;AAE/CC,EAAAA,sBAAsB,EAAE,8CAA8C;AACtEC,EAAAA,uBAAuB,EAAE,+CAA+C;AACxEC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,gBAAgB,EAAE,gDAAgD;AAElEC,EAAAA,kBAAkB,EAAE,uCAAA;AACxB,EAAC;AAEM,IAAMC,OAAO,GAAG;AACnBC,EAAAA,yBAAyB,EAAE,8BAA8B;AACzDC,EAAAA,wBAAwB,EAAE,6BAAA;AAC9B;;;;"}
|
package/es/index.css
CHANGED
@@ -246,12 +246,12 @@
|
|
246
246
|
|
247
247
|
.base_15j754u_bnochw__b189000a{opacity:var(--plasma-switch-disabled-opacity);}.base_15j754u_bnochw__b189000a[disabled]{cursor:not-allowed;}
|
248
248
|
|
249
|
-
.
|
250
|
-
.
|
251
|
-
.
|
252
|
-
.
|
253
|
-
.
|
254
|
-
.
|
249
|
+
.Switch_styles_qjefea_b1fcyfkl__60191d72{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-switch-vertical-gap);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);}.Switch_styles_qjefea_b1fcyfkl__60191d72:focus{outline:0 none;}
|
250
|
+
.Switch_styles_qjefea_s10fscgc__60191d72{width:100%;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Switch_styles_qjefea_s10fscgc__60191d72.Switch_styles_qjefea_switchLabelPositionBefore__60191d72{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;--plasma_private-switch__label-offset:0 var(--plasma-switch__label-offset) 0 0;}.Switch_styles_qjefea_s10fscgc__60191d72.Switch_styles_qjefea_switchLabelPositionAfter__60191d72{-webkit-box-pack:start;-webkit-justify-content:start;-ms-flex-pack:start;justify-content:start;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;--plasma_private-switch__label-offset:0 0 0 var(--plasma-switch__label-offset);}
|
251
|
+
.Switch_styles_qjefea_sdjnckq__60191d72{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:-webkit-box;line-clamp:var(--plasma-switch__description-max-lines);-webkit-line-clamp:var(--plasma-switch__description-max-lines);-webkit-box-orient:vertical;white-space:wrap;}
|
252
|
+
.Switch_styles_qjefea_ssthlx1__60191d72{position:absolute;right:0;margin:0;opacity:0;}.Switch_styles_qjefea_ssthlx1__60191d72:focus{outline:0 none;}
|
253
|
+
.Switch_styles_qjefea_s1ilr5eq__60191d72{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
254
|
+
.Switch_styles_qjefea_s2cs3kf__60191d72{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:background-color 0.15s ease-in-out 0.1s;transition:background-color 0.15s ease-in-out 0.1s;}.Switch_styles_qjefea_s2cs3kf__60191d72::after{content:'';position:absolute;right:auto;left:0;-webkit-transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}.Switch_styles_qjefea_ssthlx1__60191d72:checked ~ .Switch_styles_qjefea_s2cs3kf__60191d72::after{right:0;left:auto;}
|
255
255
|
|
256
256
|
.base_1sq08yf_bxoicu2__bb7a4868{width:var(--plasma-tabs-width);height:var(--plasma-tabs-height);--plasma_private-outline-radius:var(--plasma-tabs-border-radius);border-radius:var(--plasma-tabs-border-radius);}
|
257
257
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.336.0-canary.
|
3
|
+
"version": "0.336.0-canary.2227.17639708086.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -137,5 +137,5 @@
|
|
137
137
|
"sideEffects": [
|
138
138
|
"*.css"
|
139
139
|
],
|
140
|
-
"gitHead": "
|
140
|
+
"gitHead": "64c58b5cf392597d3a0609a4d68a5be7bdaa2bea"
|
141
141
|
}
|
@@ -147,7 +147,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
147
147
|
}
|
148
148
|
var switchRoot = function(Root) {
|
149
149
|
return /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
150
|
-
var size = props.size, toggleSize = props.toggleSize, view = props.view, focused = props.focused, outlined = props.outlined, disabled = props.disabled, labelPosition = props.labelPosition, label = props.label, description = props.description,
|
150
|
+
var size = props.size, toggleSize = props.toggleSize, view = props.view, focused = props.focused, outlined = props.outlined, disabled = props.disabled, labelPosition = props.labelPosition, label = props.label, description = props.description, id = props.id, style = props.style, className = props.className, // singleLine,
|
151
151
|
checked = props.checked, pressed = props.pressed, defaultChecked = props.defaultChecked, rest = _object_without_properties(props, [
|
152
152
|
"size",
|
153
153
|
"toggleSize",
|
@@ -158,7 +158,6 @@ var switchRoot = function(Root) {
|
|
158
158
|
"labelPosition",
|
159
159
|
"label",
|
160
160
|
"description",
|
161
|
-
"labelEllipses",
|
162
161
|
"id",
|
163
162
|
"style",
|
164
163
|
"className",
|
@@ -188,8 +187,7 @@ var switchRoot = function(Root) {
|
|
188
187
|
defaultChecked: defaultChecked,
|
189
188
|
disabled: disabled
|
190
189
|
})), /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledLabel, {
|
191
|
-
tabIndex: -1
|
192
|
-
className: labelEllipses ? _Switchtokens.classes.labelEllipsis : ''
|
190
|
+
tabIndex: -1
|
193
191
|
}, label), /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledTrigger, {
|
194
192
|
"aria-hidden": true
|
195
193
|
})), description && /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledDescription, null, description));
|
@@ -78,7 +78,7 @@ var base = (0, _styledcomponents.css)([
|
|
78
78
|
], _Switchtokens.tokens.verticalGap);
|
79
79
|
var StyledContent = _styledcomponents.default.div.withConfig({
|
80
80
|
displayName: "Switch.styles__StyledContent",
|
81
|
-
componentId: "sc-
|
81
|
+
componentId: "sc-c4704e70-0"
|
82
82
|
})([
|
83
83
|
"width:100%;position:relative;display:flex;align-items:center;&.",
|
84
84
|
"{justify-content:space-between;",
|
@@ -90,7 +90,7 @@ var StyledContent = _styledcomponents.default.div.withConfig({
|
|
90
90
|
], _Switchtokens.classes.beforeSwitchLabelPosition, _Switchtokens.tokens.labelOffsetPrivate, _Switchtokens.tokens.labelOffset, _Switchtokens.classes.afterSwitchLabelPosition, _Switchtokens.tokens.labelOffsetPrivate, _Switchtokens.tokens.labelOffset);
|
91
91
|
var StyledDescription = _styledcomponents.default.div.withConfig({
|
92
92
|
displayName: "Switch.styles__StyledDescription",
|
93
|
-
componentId: "sc-
|
93
|
+
componentId: "sc-c4704e70-1"
|
94
94
|
})([
|
95
95
|
"position:relative;",
|
96
96
|
" display:-webkit-box;line-clamp:var(",
|
@@ -99,21 +99,20 @@ var StyledDescription = _styledcomponents.default.div.withConfig({
|
|
99
99
|
], (0, _mixins.applyEllipsis)(), _Switchtokens.tokens.descriptionMaxLines, _Switchtokens.tokens.descriptionMaxLines);
|
100
100
|
var StyledInput = _styledcomponents.default.input.withConfig({
|
101
101
|
displayName: "Switch.styles__StyledInput",
|
102
|
-
componentId: "sc-
|
102
|
+
componentId: "sc-c4704e70-2"
|
103
103
|
})([
|
104
104
|
"position:absolute;right:0;margin:0;opacity:0;&:focus{outline:0 none;}"
|
105
105
|
]);
|
106
106
|
var StyledLabel = _styledcomponents.default.span.withConfig({
|
107
107
|
displayName: "Switch.styles__StyledLabel",
|
108
|
-
componentId: "sc-
|
108
|
+
componentId: "sc-c4704e70-3"
|
109
109
|
})([
|
110
|
-
"user-select:none
|
111
|
-
"
|
112
|
-
|
113
|
-
], _Switchtokens.classes.labelEllipsis, (0, _mixins.applyEllipsis)());
|
110
|
+
"user-select:none;",
|
111
|
+
""
|
112
|
+
], (0, _mixins.applyEllipsis)());
|
114
113
|
var StyledTrigger = _styledcomponents.default.div.withConfig({
|
115
114
|
displayName: "Switch.styles__StyledTrigger",
|
116
|
-
componentId: "sc-
|
115
|
+
componentId: "sc-c4704e70-4"
|
117
116
|
})([
|
118
117
|
"position:relative;display:flex;align-items:center;transition:background-color 0.15s ease-in-out 0.1s;::after{content:'';position:absolute;right:auto;left:0;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}",
|
119
118
|
":checked ~ &::after{right:0;left:auto;}"
|
@@ -64,6 +64,5 @@ var tokens = {
|
|
64
64
|
};
|
65
65
|
var classes = {
|
66
66
|
beforeSwitchLabelPosition: 'switch-label-position-before',
|
67
|
-
afterSwitchLabelPosition: 'switch-label-position-after'
|
68
|
-
labelEllipsis: 'switch-label-ellipsis'
|
67
|
+
afterSwitchLabelPosition: 'switch-label-position-after'
|
69
68
|
};
|
@@ -46,6 +46,52 @@ var config = {
|
|
46
46
|
], _Range.rangeTokens.background, _Range.rangeTokens.backgroundError, _Range.rangeTokens.backgroundSuccess, _Range.rangeTokens.dividerColor, _Range.rangeTokens.labelColor, _Range.rangeTokens.leftHelperColor, _Range.rangeTokens.leftHelperColorError, _Range.rangeTokens.leftHelperColorSuccess, _Range.rangeTokens.textFieldColor, _Range.rangeTokens.textFieldPlaceholderColor, _Range.rangeTokens.textFieldCaretColor, _Range.rangeTokens.textFieldBackgroundColorHover, _Range.rangeTokens.textFieldBackgroundColorFocus, _Range.rangeTokens.textFieldBackgroundErrorColor, _Range.rangeTokens.textFieldBackgroundErrorColorHover, _Range.rangeTokens.textFieldBackgroundErrorColorFocus, _Range.rangeTokens.textFieldBackgroundSuccessColor, _Range.rangeTokens.textFieldBackgroundSuccessColorHover, _Range.rangeTokens.textFieldBackgroundSuccessColorFocus, _Range.rangeTokens.textFieldTextBeforeColor, _Range.rangeTokens.textFieldTextAfterColor, _Range.rangeTokens.indicatorColor, _Range.rangeTokens.focusColor, _Range.rangeTokens.textFieldPlaceholderColorFocus)
|
47
47
|
},
|
48
48
|
size: {
|
49
|
+
xl: (0, _styledcomponents.css)([
|
50
|
+
"",
|
51
|
+
":1rem;",
|
52
|
+
":0 0.375rem;",
|
53
|
+
":var(--plasma-typo-body-l-font-family);",
|
54
|
+
":var(--plasma-typo-body-l-font-style);",
|
55
|
+
":var(--plasma-typo-body-l-font-size);",
|
56
|
+
":var(--plasma-typo-body-l-font-weight);",
|
57
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
58
|
+
":var(--plasma-typo-body-l-line-height);",
|
59
|
+
":0 0 0 1.125rem;",
|
60
|
+
":0;",
|
61
|
+
":0.75rem;",
|
62
|
+
":var(--plasma-typo-body-l-font-family);",
|
63
|
+
":var(--plasma-typo-body-l-font-style);",
|
64
|
+
":var(--plasma-typo-body-l-font-size);",
|
65
|
+
":var(--plasma-typo-body-l-font-weight);",
|
66
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
67
|
+
":var(--plasma-typo-body-l-line-height);",
|
68
|
+
":4rem;",
|
69
|
+
":1rem;",
|
70
|
+
":1.3125rem 1.125rem;",
|
71
|
+
":var(--plasma-typo-body-l-font-family);",
|
72
|
+
":var(--plasma-typo-body-l-font-style);",
|
73
|
+
":var(--plasma-typo-body-l-font-size);",
|
74
|
+
":var(--plasma-typo-body-l-font-weight);",
|
75
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
76
|
+
":var(--plasma-typo-body-l-line-height);",
|
77
|
+
":0.25rem 0 0 0;",
|
78
|
+
":var(--plasma-typo-body-xs-font-family);",
|
79
|
+
":var(--plasma-typo-body-xs-font-style);",
|
80
|
+
":var(--plasma-typo-body-xs-font-size);",
|
81
|
+
":var(--plasma-typo-body-xs-font-weight);",
|
82
|
+
":var(--plasma-typo-body-xs-letter-spacing);",
|
83
|
+
":var(--plasma-typo-body-xs-line-height);",
|
84
|
+
":-0.0625rem 0.5rem -0.0625rem 0;",
|
85
|
+
":-0.0625rem 0 -0.0625rem 0.75rem;",
|
86
|
+
":0 0.25rem 0 0;",
|
87
|
+
":0 0 0 0.25rem;",
|
88
|
+
":0.5rem;",
|
89
|
+
":0.375rem;",
|
90
|
+
":0 0 0 0;",
|
91
|
+
":0.5rem auto auto -0.75rem;",
|
92
|
+
":0 0 auto auto;",
|
93
|
+
":0.25rem -0.625rem auto auto;"
|
94
|
+
], _Range.rangeTokens.borderRadius, _Range.rangeTokens.dividerPadding, _Range.rangeTokens.dividerFontFamily, _Range.rangeTokens.dividerFontStyle, _Range.rangeTokens.dividerFontSize, _Range.rangeTokens.dividerFontWeight, _Range.rangeTokens.dividerLetterSpacing, _Range.rangeTokens.dividerLineHeight, _Range.rangeTokens.leftContentMargin, _Range.rangeTokens.rightContentMargin, _Range.rangeTokens.labelOffset, _Range.rangeTokens.labelFontFamily, _Range.rangeTokens.labelFontStyle, _Range.rangeTokens.labelFontSize, _Range.rangeTokens.labelFontWeight, _Range.rangeTokens.labelLetterSpacing, _Range.rangeTokens.labelLineHeight, _Range.rangeTokens.textFieldHeight, _Range.rangeTokens.textFieldBorderRadius, _Range.rangeTokens.textFieldPadding, _Range.rangeTokens.textFieldFontFamily, _Range.rangeTokens.textFieldFontStyle, _Range.rangeTokens.textFieldFontSize, _Range.rangeTokens.textFieldFontWeight, _Range.rangeTokens.textFieldLetterSpacing, _Range.rangeTokens.textFieldLineHeight, _Range.rangeTokens.leftHelperOffset, _Range.rangeTokens.leftHelperFontFamily, _Range.rangeTokens.leftHelperFontStyle, _Range.rangeTokens.leftHelperFontSize, _Range.rangeTokens.leftHelperFontWeight, _Range.rangeTokens.leftHelperLetterSpacing, _Range.rangeTokens.leftHelperLineHeight, _Range.rangeTokens.textFieldLeftContentMargin, _Range.rangeTokens.textFieldRightContentMargin, _Range.rangeTokens.textFieldTextBeforeMargin, _Range.rangeTokens.textFieldTextAfterMargin, _Range.rangeTokens.indicatorSize, _Range.rangeTokens.indicatorSizeOuter, _Range.rangeTokens.indicatorPlacement, _Range.rangeTokens.indicatorOuterPlacement, _Range.rangeTokens.indicatorPlacementRight, _Range.rangeTokens.indicatorOuterPlacementRight),
|
49
95
|
l: (0, _styledcomponents.css)([
|
50
96
|
"",
|
51
97
|
":0.875rem;",
|
@@ -88,7 +88,7 @@ import { StyledContent, StyledDescription, StyledInput, StyledLabel, StyledTrigg
|
|
88
88
|
import { classes } from "./Switch.tokens";
|
89
89
|
export var switchRoot = function(Root) {
|
90
90
|
return /*#__PURE__*/ forwardRef(function(props, ref) {
|
91
|
-
var size = props.size, toggleSize = props.toggleSize, view = props.view, focused = props.focused, outlined = props.outlined, disabled = props.disabled, labelPosition = props.labelPosition, label = props.label, description = props.description,
|
91
|
+
var size = props.size, toggleSize = props.toggleSize, view = props.view, focused = props.focused, outlined = props.outlined, disabled = props.disabled, labelPosition = props.labelPosition, label = props.label, description = props.description, id = props.id, style = props.style, className = props.className, // singleLine,
|
92
92
|
checked = props.checked, pressed = props.pressed, defaultChecked = props.defaultChecked, rest = _object_without_properties(props, [
|
93
93
|
"size",
|
94
94
|
"toggleSize",
|
@@ -99,7 +99,6 @@ export var switchRoot = function(Root) {
|
|
99
99
|
"labelPosition",
|
100
100
|
"label",
|
101
101
|
"description",
|
102
|
-
"labelEllipses",
|
103
102
|
"id",
|
104
103
|
"style",
|
105
104
|
"className",
|
@@ -129,8 +128,7 @@ export var switchRoot = function(Root) {
|
|
129
128
|
defaultChecked: defaultChecked,
|
130
129
|
disabled: disabled
|
131
130
|
})), /*#__PURE__*/ React.createElement(StyledLabel, {
|
132
|
-
tabIndex: -1
|
133
|
-
className: labelEllipses ? classes.labelEllipsis : ''
|
131
|
+
tabIndex: -1
|
134
132
|
}, label), /*#__PURE__*/ React.createElement(StyledTrigger, {
|
135
133
|
"aria-hidden": true
|
136
134
|
})), description && /*#__PURE__*/ React.createElement(StyledDescription, null, description));
|
@@ -8,7 +8,7 @@ export var base = css([
|
|
8
8
|
], tokens.verticalGap);
|
9
9
|
export var StyledContent = styled.div.withConfig({
|
10
10
|
displayName: "Switch.styles__StyledContent",
|
11
|
-
componentId: "sc-
|
11
|
+
componentId: "sc-c4704e70-0"
|
12
12
|
})([
|
13
13
|
"width:100%;position:relative;display:flex;align-items:center;&.",
|
14
14
|
"{justify-content:space-between;",
|
@@ -20,7 +20,7 @@ export var StyledContent = styled.div.withConfig({
|
|
20
20
|
], classes.beforeSwitchLabelPosition, tokens.labelOffsetPrivate, tokens.labelOffset, classes.afterSwitchLabelPosition, tokens.labelOffsetPrivate, tokens.labelOffset);
|
21
21
|
export var StyledDescription = styled.div.withConfig({
|
22
22
|
displayName: "Switch.styles__StyledDescription",
|
23
|
-
componentId: "sc-
|
23
|
+
componentId: "sc-c4704e70-1"
|
24
24
|
})([
|
25
25
|
"position:relative;",
|
26
26
|
" display:-webkit-box;line-clamp:var(",
|
@@ -29,21 +29,20 @@ export var StyledDescription = styled.div.withConfig({
|
|
29
29
|
], applyEllipsis(), tokens.descriptionMaxLines, tokens.descriptionMaxLines);
|
30
30
|
export var StyledInput = styled.input.withConfig({
|
31
31
|
displayName: "Switch.styles__StyledInput",
|
32
|
-
componentId: "sc-
|
32
|
+
componentId: "sc-c4704e70-2"
|
33
33
|
})([
|
34
34
|
"position:absolute;right:0;margin:0;opacity:0;&:focus{outline:0 none;}"
|
35
35
|
]);
|
36
36
|
export var StyledLabel = styled.span.withConfig({
|
37
37
|
displayName: "Switch.styles__StyledLabel",
|
38
|
-
componentId: "sc-
|
38
|
+
componentId: "sc-c4704e70-3"
|
39
39
|
})([
|
40
|
-
"user-select:none
|
41
|
-
"
|
42
|
-
|
43
|
-
], classes.labelEllipsis, applyEllipsis());
|
40
|
+
"user-select:none;",
|
41
|
+
""
|
42
|
+
], applyEllipsis());
|
44
43
|
export var StyledTrigger = styled.div.withConfig({
|
45
44
|
displayName: "Switch.styles__StyledTrigger",
|
46
|
-
componentId: "sc-
|
45
|
+
componentId: "sc-c4704e70-4"
|
47
46
|
})([
|
48
47
|
"position:relative;display:flex;align-items:center;transition:background-color 0.15s ease-in-out 0.1s;::after{content:'';position:absolute;right:auto;left:0;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}",
|
49
48
|
":checked ~ &::after{right:0;left:auto;}"
|
@@ -46,6 +46,5 @@ export var tokens = {
|
|
46
46
|
};
|
47
47
|
export var classes = {
|
48
48
|
beforeSwitchLabelPosition: 'switch-label-position-before',
|
49
|
-
afterSwitchLabelPosition: 'switch-label-position-after'
|
50
|
-
labelEllipsis: 'switch-label-ellipsis'
|
49
|
+
afterSwitchLabelPosition: 'switch-label-position-after'
|
51
50
|
};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { component, mergeConfig } from "../../../engines";
|
2
|
-
import { comboboxNewConfig } from "../../..";
|
3
|
-
import { config } from "./Combobox.config";
|
4
|
-
var mergedConfig = mergeConfig(comboboxNewConfig, config);
|
5
|
-
var ComboboxComponent = component(mergedConfig);
|
6
|
-
var Combobox = ComboboxComponent;
|
7
|
-
export { Combobox };
|
@@ -36,6 +36,52 @@ export var config = {
|
|
36
36
|
], tokens.background, tokens.backgroundError, tokens.backgroundSuccess, tokens.dividerColor, tokens.labelColor, tokens.leftHelperColor, tokens.leftHelperColorError, tokens.leftHelperColorSuccess, tokens.textFieldColor, tokens.textFieldPlaceholderColor, tokens.textFieldCaretColor, tokens.textFieldBackgroundColorHover, tokens.textFieldBackgroundColorFocus, tokens.textFieldBackgroundErrorColor, tokens.textFieldBackgroundErrorColorHover, tokens.textFieldBackgroundErrorColorFocus, tokens.textFieldBackgroundSuccessColor, tokens.textFieldBackgroundSuccessColorHover, tokens.textFieldBackgroundSuccessColorFocus, tokens.textFieldTextBeforeColor, tokens.textFieldTextAfterColor, tokens.indicatorColor, tokens.focusColor, tokens.textFieldPlaceholderColorFocus)
|
37
37
|
},
|
38
38
|
size: {
|
39
|
+
xl: css([
|
40
|
+
"",
|
41
|
+
":1rem;",
|
42
|
+
":0 0.375rem;",
|
43
|
+
":var(--plasma-typo-body-l-font-family);",
|
44
|
+
":var(--plasma-typo-body-l-font-style);",
|
45
|
+
":var(--plasma-typo-body-l-font-size);",
|
46
|
+
":var(--plasma-typo-body-l-font-weight);",
|
47
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
48
|
+
":var(--plasma-typo-body-l-line-height);",
|
49
|
+
":0 0 0 1.125rem;",
|
50
|
+
":0;",
|
51
|
+
":0.75rem;",
|
52
|
+
":var(--plasma-typo-body-l-font-family);",
|
53
|
+
":var(--plasma-typo-body-l-font-style);",
|
54
|
+
":var(--plasma-typo-body-l-font-size);",
|
55
|
+
":var(--plasma-typo-body-l-font-weight);",
|
56
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
57
|
+
":var(--plasma-typo-body-l-line-height);",
|
58
|
+
":4rem;",
|
59
|
+
":1rem;",
|
60
|
+
":1.3125rem 1.125rem;",
|
61
|
+
":var(--plasma-typo-body-l-font-family);",
|
62
|
+
":var(--plasma-typo-body-l-font-style);",
|
63
|
+
":var(--plasma-typo-body-l-font-size);",
|
64
|
+
":var(--plasma-typo-body-l-font-weight);",
|
65
|
+
":var(--plasma-typo-body-l-letter-spacing);",
|
66
|
+
":var(--plasma-typo-body-l-line-height);",
|
67
|
+
":0.25rem 0 0 0;",
|
68
|
+
":var(--plasma-typo-body-xs-font-family);",
|
69
|
+
":var(--plasma-typo-body-xs-font-style);",
|
70
|
+
":var(--plasma-typo-body-xs-font-size);",
|
71
|
+
":var(--plasma-typo-body-xs-font-weight);",
|
72
|
+
":var(--plasma-typo-body-xs-letter-spacing);",
|
73
|
+
":var(--plasma-typo-body-xs-line-height);",
|
74
|
+
":-0.0625rem 0.5rem -0.0625rem 0;",
|
75
|
+
":-0.0625rem 0 -0.0625rem 0.75rem;",
|
76
|
+
":0 0.25rem 0 0;",
|
77
|
+
":0 0 0 0.25rem;",
|
78
|
+
":0.5rem;",
|
79
|
+
":0.375rem;",
|
80
|
+
":0 0 0 0;",
|
81
|
+
":0.5rem auto auto -0.75rem;",
|
82
|
+
":0 0 auto auto;",
|
83
|
+
":0.25rem -0.625rem auto auto;"
|
84
|
+
], tokens.borderRadius, tokens.dividerPadding, tokens.dividerFontFamily, tokens.dividerFontStyle, tokens.dividerFontSize, tokens.dividerFontWeight, tokens.dividerLetterSpacing, tokens.dividerLineHeight, tokens.leftContentMargin, tokens.rightContentMargin, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontStyle, tokens.labelFontSize, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.textFieldHeight, tokens.textFieldBorderRadius, tokens.textFieldPadding, tokens.textFieldFontFamily, tokens.textFieldFontStyle, tokens.textFieldFontSize, tokens.textFieldFontWeight, tokens.textFieldLetterSpacing, tokens.textFieldLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontStyle, tokens.leftHelperFontSize, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.textFieldLeftContentMargin, tokens.textFieldRightContentMargin, tokens.textFieldTextBeforeMargin, tokens.textFieldTextAfterMargin, tokens.indicatorSize, tokens.indicatorSizeOuter, tokens.indicatorPlacement, tokens.indicatorOuterPlacement, tokens.indicatorPlacementRight, tokens.indicatorOuterPlacementRight),
|
39
85
|
l: css([
|
40
86
|
"",
|
41
87
|
":0.875rem;",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,gBAAgB,EAAE,WAAW,CAAC,
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,gBAAgB,EAAE,WAAW,CAAC,yFA0DnE,CAAC;AAEP,eAAO,MAAM,YAAY;;;;mBA5DQ,SAAS,CAAC,gBAAgB,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAuFxE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI,0CAYhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAkBzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAU7B,CAAC;AAEF,eAAO,MAAM,WAAW,8KASvB,CAAC;AAEF,eAAO,MAAM,WAAW,
|
1
|
+
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI,0CAYhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAkBzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAU7B,CAAC;AAEF,eAAO,MAAM,WAAW,8KASvB,CAAC;AAEF,eAAO,MAAM,WAAW,uKAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAmBzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;IAyBf,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmChE,CAAC;AAEF,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;IAyBf,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmChE,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB
|
1
|
+
{"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IAC/D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAEnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAAE,qBAAqB;CAAG"}
|
@@ -8,6 +8,7 @@ export declare const config: {
|
|
8
8
|
default: import("@linaria/core").LinariaClassName;
|
9
9
|
};
|
10
10
|
size: {
|
11
|
+
xl: import("@linaria/core").LinariaClassName;
|
11
12
|
l: import("@linaria/core").LinariaClassName;
|
12
13
|
m: import("@linaria/core").LinariaClassName;
|
13
14
|
s: import("@linaria/core").LinariaClassName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Range.config.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"Range.config.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAwUlB,CAAC"}
|
@@ -3,6 +3,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../e
|
|
3
3
|
default: import("@linaria/core").LinariaClassName;
|
4
4
|
};
|
5
5
|
size: {
|
6
|
+
xl: import("@linaria/core").LinariaClassName;
|
6
7
|
l: import("@linaria/core").LinariaClassName;
|
7
8
|
m: import("@linaria/core").LinariaClassName;
|
8
9
|
s: import("@linaria/core").LinariaClassName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Range/Range.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAA0B,CAAC"}
|