@salutejs/plasma-new-hope 0.184.0-canary.1539.11687316067.0 → 0.184.0-canary.1540.11688781632.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Switch/Switch.css +7 -11
- package/cjs/components/Switch/Switch.js +7 -16
- package/cjs/components/Switch/Switch.js.map +1 -1
- package/cjs/components/Switch/Switch.styles.js +4 -16
- package/cjs/components/Switch/Switch.styles.js.map +1 -1
- package/cjs/components/Switch/Switch.styles_1kk0qzz.css +4 -0
- package/cjs/components/Switch/Switch.tokens.js +0 -11
- package/cjs/components/Switch/Switch.tokens.js.map +1 -1
- package/cjs/components/Switch/_focused/base.js +1 -1
- package/{es/components/Switch/_focused/base_sz3n0x.css → cjs/components/Switch/_focused/base_j4murk.css} +1 -1
- package/cjs/components/Switch/_size/base.js +1 -1
- package/cjs/components/Switch/_size/base.js.map +1 -1
- package/cjs/components/Switch/_size/base_1rjzpi4.css +1 -0
- package/cjs/components/Switch/_view/base.js +1 -1
- package/cjs/components/Switch/_view/base.js.map +1 -1
- package/cjs/components/Switch/_view/base_1mtyz12.css +1 -0
- package/cjs/index.css +7 -11
- package/emotion/cjs/components/Switch/Switch.js +8 -17
- package/emotion/cjs/components/Switch/Switch.styles.js +5 -21
- package/emotion/cjs/components/Switch/Switch.template-doc.mdx +1 -37
- package/emotion/cjs/components/Switch/Switch.tokens.js +0 -11
- package/emotion/cjs/components/Switch/_size/base.js +1 -1
- package/emotion/cjs/components/Switch/_view/base.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +4 -11
- package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +4 -11
- package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
- package/emotion/es/components/Switch/Switch.js +4 -13
- package/emotion/es/components/Switch/Switch.styles.js +4 -20
- package/emotion/es/components/Switch/Switch.template-doc.mdx +1 -37
- package/emotion/es/components/Switch/Switch.tokens.js +0 -11
- package/emotion/es/components/Switch/_size/base.js +2 -2
- package/emotion/es/components/Switch/_view/base.js +2 -2
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +4 -11
- package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
- package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +4 -11
- package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
- package/es/components/Switch/Switch.css +7 -11
- package/es/components/Switch/Switch.js +8 -17
- package/es/components/Switch/Switch.js.map +1 -1
- package/es/components/Switch/Switch.styles.js +5 -15
- package/es/components/Switch/Switch.styles.js.map +1 -1
- package/es/components/Switch/Switch.styles_1kk0qzz.css +4 -0
- package/es/components/Switch/Switch.tokens.js +0 -11
- package/es/components/Switch/Switch.tokens.js.map +1 -1
- package/es/components/Switch/_focused/base.js +1 -1
- package/{cjs/components/Switch/_focused/base_sz3n0x.css → es/components/Switch/_focused/base_j4murk.css} +1 -1
- package/es/components/Switch/_size/base.js +1 -1
- package/es/components/Switch/_size/base.js.map +1 -1
- package/es/components/Switch/_size/base_1rjzpi4.css +1 -0
- package/es/components/Switch/_view/base.js +1 -1
- package/es/components/Switch/_view/base.js.map +1 -1
- package/es/components/Switch/_view/base_1mtyz12.css +1 -0
- package/es/index.css +7 -11
- package/package.json +4 -4
- package/styled-components/cjs/components/Switch/Switch.js +8 -17
- package/styled-components/cjs/components/Switch/Switch.styles.js +5 -11
- package/styled-components/cjs/components/Switch/Switch.template-doc.mdx +1 -37
- package/styled-components/cjs/components/Switch/Switch.tokens.js +0 -11
- package/styled-components/cjs/components/Switch/_size/base.js +1 -1
- package/styled-components/cjs/components/Switch/_view/base.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +2 -9
- package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +2 -9
- package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
- package/styled-components/es/components/Switch/Switch.js +4 -13
- package/styled-components/es/components/Switch/Switch.styles.js +4 -10
- package/styled-components/es/components/Switch/Switch.template-doc.mdx +1 -37
- package/styled-components/es/components/Switch/Switch.tokens.js +0 -11
- package/styled-components/es/components/Switch/_size/base.js +2 -2
- package/styled-components/es/components/Switch/_view/base.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +2 -9
- package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +2 -9
- package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
- package/types/components/Switch/Switch.d.ts +0 -3
- package/types/components/Switch/Switch.d.ts.map +1 -1
- package/types/components/Switch/Switch.styles.d.ts +0 -2
- package/types/components/Switch/Switch.styles.d.ts.map +1 -1
- package/types/components/Switch/Switch.tokens.d.ts +0 -9
- package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
- package/types/components/Switch/Switch.types.d.ts +2 -10
- package/types/components/Switch/Switch.types.d.ts.map +1 -1
- package/types/components/Switch/_size/base.d.ts.map +1 -1
- package/types/components/Switch/_view/base.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +0 -7
- package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +0 -6
- package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +0 -7
- package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Switch/Switch.d.ts +0 -6
- package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
- package/cjs/components/Switch/Switch.styles_bei7bh.css +0 -6
- package/cjs/components/Switch/_size/base_1tcl212.css +0 -1
- package/cjs/components/Switch/_toggleSize/base.js +0 -9
- package/cjs/components/Switch/_toggleSize/base.js.map +0 -1
- package/cjs/components/Switch/_toggleSize/base_6i0904.css +0 -1
- package/cjs/components/Switch/_view/base_yxkf3s.css +0 -1
- package/emotion/cjs/components/Switch/_toggleSize/base.js +0 -10
- package/emotion/es/components/Switch/_toggleSize/base.js +0 -4
- package/es/components/Switch/Switch.styles_bei7bh.css +0 -6
- package/es/components/Switch/_size/base_1tcl212.css +0 -1
- package/es/components/Switch/_toggleSize/base.js +0 -5
- package/es/components/Switch/_toggleSize/base.js.map +0 -1
- package/es/components/Switch/_toggleSize/base_6i0904.css +0 -1
- package/es/components/Switch/_view/base_yxkf3s.css +0 -1
- package/styled-components/cjs/components/Switch/_toggleSize/base.js +0 -10
- package/styled-components/es/components/Switch/_toggleSize/base.js +0 -4
- package/types/components/Switch/_toggleSize/base.d.ts +0 -2
- package/types/components/Switch/_toggleSize/base.d.ts.map +0 -1
@@ -10,28 +10,21 @@ var config = exports.config = {
|
|
10
10
|
defaults: {
|
11
11
|
view: 'default',
|
12
12
|
size: 'm',
|
13
|
-
toggleSize: 'l',
|
14
13
|
labelPosition: 'before',
|
15
14
|
focused: 'true'
|
16
15
|
},
|
17
16
|
variations: {
|
18
17
|
size: {
|
19
|
-
|
20
|
-
m: /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.fontFamily, ":var(--plasma-typo-body-m-font-family);", _Switch.switchTokens.fontStyle, ":var(--plasma-typo-body-m-font-style);", _Switch.switchTokens.fontWeight, ":var(--plasma-typo-body-m-font-weight);", _Switch.switchTokens.lineHeight, ":var(--plasma-typo-body-m-line-height);", _Switch.switchTokens.fontSize, ":var(--plasma-typo-body-m-font-size);", _Switch.switchTokens.letterSpacing, ":var(--plasma-typo-body-m-letter-spacing);", _Switch.switchTokens.descriptionFontFamily, ":var(--plasma-typo-body-s-font-family);", _Switch.switchTokens.descriptionFontStyle, ":var(--plasma-typo-body-s-font-style);", _Switch.switchTokens.descriptionFontWeight, ":var(--plasma-typo-body-s-font-weight);", _Switch.switchTokens.descriptionLineHeight, ":var(--plasma-typo-body-s-line-height);", _Switch.switchTokens.descriptionFontSize, ":var(--plasma-typo-body-s-font-size);", _Switch.switchTokens.descriptionLetterSpacing, ":var(--plasma-typo-body-xs-letter-spacing);", _Switch.switchTokens.verticalGap, ":0.25rem;", _Switch.switchTokens.labelOffset, ":0.75rem;;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4QmtCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgc3dpdGNoVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Td2l0Y2gnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgICAgICB0b2dnbGVTaXplOiAnbCcsXG4gICAgICAgIGxhYmVsUG9zaXRpb246ICdiZWZvcmUnLFxuICAgICAgICBmb2N1c2VkOiAndHJ1ZScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy52ZXJ0aWNhbEdhcH06IDAuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGFiZWxPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1tLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LW0tZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LW0tZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLX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ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRlc2NyaXB0aW9uTGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnZlcnRpY2FsR2FwfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sYWJlbE9mZnNldH06IDAuNzVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICB0b2dnbGVTaXplOiB7XG4gICAgICAgICAgICBsOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tXaWR0aH06IDIuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9OiAxLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQm9yZGVyUmFkaXVzfTogY2FsYyh2YXIoJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9KSAvIDIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX06IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja1dpZHRofTogMnJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH06IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCb3JkZXJSYWRpdXN9OiBjYWxjKHZhcigke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfTogMXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmxhYmVsQ29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9OiB2YXIoLS10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPbn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9uSG92ZXJ9OiB2YXIoLS1zdXJmYWNlLWFjY2VudC1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPZmZ9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9mZkhvdmVyfTogdmFyKC0tc3VyZmFjZS10cmFuc3BhcmVudC10ZXJ0aWFyeS1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCYWNrZ3JvdW5kQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXN1cmZhY2Utc29saWQtZGVmYXVsdCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCb3hTaGFkb3d9OiAwIDFweCAxcHggcmdiYSgwLCAwLCAwLCAwLjExKTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGlzYWJsZWRPcGFjaXR5fTogMC40O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZm9jdXNlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrRm9jdXNDb2xvcn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */")),
|
21
|
-
l: /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.fontFamily, ":var(--plasma-typo-body-l-font-family);", _Switch.switchTokens.fontStyle, ":var(--plasma-typo-body-l-font-style);", _Switch.switchTokens.fontWeight, ":var(--plasma-typo-body-l-font-weight);", _Switch.switchTokens.lineHeight, ":var(--plasma-typo-body-l-line-height);", _Switch.switchTokens.fontSize, ":var(--plasma-typo-body-l-font-size);", _Switch.switchTokens.letterSpacing, ":var(--plasma-typo-body-l-letter-spacing);", _Switch.switchTokens.descriptionFontFamily, ":var(--plasma-typo-body-m-font-family);", _Switch.switchTokens.descriptionFontStyle, ":var(--plasma-typo-body-m-font-style);", _Switch.switchTokens.descriptionFontWeight, ":var(--plasma-typo-body-m-font-weight);", _Switch.switchTokens.descriptionLineHeight, ":var(--plasma-typo-body-m-line-height);", _Switch.switchTokens.descriptionFontSize, ":var(--plasma-typo-body-m-font-size);", _Switch.switchTokens.descriptionLetterSpacing, ":var(--plasma-typo-body-xs-letter-spacing);", _Switch.switchTokens.verticalGap, ":0.25rem;", _Switch.switchTokens.labelOffset, ":0.75rem;;label:plasma-new-hope__l;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4Q2tCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgc3dpdGNoVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Td2l0Y2gnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgICAgICB0b2dnbGVTaXplOiAnbCcsXG4gICAgICAgIGxhYmVsUG9zaXRpb246ICdiZWZvcmUnLFxuICAgICAgICBmb2N1c2VkOiAndHJ1ZScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy52ZXJ0aWNhbEdhcH06IDAuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGFiZWxPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1tLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LW0tZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2h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W5zLmRlc2NyaXB0aW9uTGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRlc2NyaXB0aW9uTGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnZlcnRpY2FsR2FwfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sYWJlbE9mZnNldH06IDAuNzVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICB0b2dnbGVTaXplOiB7XG4gICAgICAgICAgICBsOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tXaWR0aH06IDIuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9OiAxLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQm9yZGVyUmFkaXVzfTogY2FsYyh2YXIoJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9KSAvIDIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX06IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja1dpZHRofTogMnJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH06IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCb3JkZXJSYWRpdXN9OiBjYWxjKHZhcigke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfTogMXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmxhYmVsQ29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9OiB2YXIoLS10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPbn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9uSG92ZXJ9OiB2YXIoLS1zdXJmYWNlLWFjY2VudC1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPZmZ9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9mZkhvdmVyfTogdmFyKC0tc3VyZmFjZS10cmFuc3BhcmVudC10ZXJ0aWFyeS1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCYWNrZ3JvdW5kQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXN1cmZhY2Utc29saWQtZGVmYXVsdCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCb3hTaGFkb3d9OiAwIDFweCAxcHggcmdiYSgwLCAwLCAwLCAwLjExKTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGlzYWJsZWRPcGFjaXR5fTogMC40O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZm9jdXNlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrRm9jdXNDb2xvcn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
|
22
|
-
},
|
23
|
-
toggleSize: {
|
24
|
-
l: /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.trackWidth, ":2.75rem;", _Switch.switchTokens.trackHeight, ":1.75rem;", _Switch.switchTokens.trackBorderRadius, ":calc(var(", _Switch.switchTokens.trackHeight, ") / 2);", _Switch.switchTokens.thumbSize, ":1.5rem;", _Switch.switchTokens.thumbBorderRadius, ":calc(var(", _Switch.switchTokens.thumbSize, ") / 2);", _Switch.switchTokens.thumbOffset, ":0.125rem;", _Switch.switchTokens.thumbPressScale, ":1.25;;label:plasma-new-hope__l;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnRWtCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgc3dpdGNoVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Td2l0Y2gnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgICAgICB0b2dnbGVTaXplOiAnbCcsXG4gICAgICAgIGxhYmVsUG9zaXRpb246ICdiZWZvcmUnLFxuICAgICAgICBmb2N1c2VkOiAndHJ1ZScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy52ZXJ0aWNhbEdhcH06IDAuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGFiZWxPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1tLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LW0tZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LW0tZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21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l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRlc2NyaXB0aW9uTGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnZlcnRpY2FsR2FwfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sYWJlbE9mZnNldH06IDAuNzVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICB0b2dnbGVTaXplOiB7XG4gICAgICAgICAgICBsOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tXaWR0aH06IDIuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9OiAxLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQm9yZGVyUmFkaXVzfTogY2FsYyh2YXIoJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9KSAvIDIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX06IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja1dpZHRofTogMnJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH06IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCb3JkZXJSYWRpdXN9OiBjYWxjKHZhcigke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfTogMXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmxhYmVsQ29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9OiB2YXIoLS10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPbn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9uSG92ZXJ9OiB2YXIoLS1zdXJmYWNlLWFjY2VudC1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPZmZ9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9mZkhvdmVyfTogdmFyKC0tc3VyZmFjZS10cmFuc3BhcmVudC10ZXJ0aWFyeS1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCYWNrZ3JvdW5kQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXN1cmZhY2Utc29saWQtZGVmYXVsdCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCb3hTaGFkb3d9OiAwIDFweCAxcHggcmdiYSgwLCAwLCAwLCAwLjExKTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGlzYWJsZWRPcGFjaXR5fTogMC40O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZm9jdXNlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrRm9jdXNDb2xvcn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */")),
|
25
|
-
s: /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.trackWidth, ":2rem;", _Switch.switchTokens.trackHeight, ":1.25rem;", _Switch.switchTokens.trackBorderRadius, ":calc(var(", _Switch.switchTokens.trackHeight, ") / 2);", _Switch.switchTokens.thumbSize, ":1rem;", _Switch.switchTokens.thumbBorderRadius, ":calc(var(", _Switch.switchTokens.thumbSize, ") / 2);", _Switch.switchTokens.thumbOffset, ":0.125rem;", _Switch.switchTokens.thumbPressScale, ":1.25;;label:plasma-new-hope__s;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5RWtCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgc3dpdGNoVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Td2l0Y2gnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgICAgICB0b2dnbGVTaXplOiAnbCcsXG4gICAgICAgIGxhYmVsUG9zaXRpb246ICdiZWZvcmUnLFxuICAgICAgICBmb2N1c2VkOiAndHJ1ZScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGVzY3JpcHRpb25Gb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy52ZXJ0aWNhbEdhcH06IDAuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGFiZWxPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1tLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LW0tZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktbS1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LW0tZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1tLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5kZXNjcmlwdGlvbkZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAg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bmcpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnZlcnRpY2FsR2FwfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sYWJlbE9mZnNldH06IDAuNzVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICB0b2dnbGVTaXplOiB7XG4gICAgICAgICAgICBsOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tXaWR0aH06IDIuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9OiAxLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQm9yZGVyUmFkaXVzfTogY2FsYyh2YXIoJHtzd2l0Y2hUb2tlbnMudHJhY2tIZWlnaHR9KSAvIDIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX06IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja1dpZHRofTogMnJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH06IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCb3JkZXJSYWRpdXN9OiBjYWxjKHZhcigke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfTogMXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYkJvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRodW1iU2l6ZX0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJPZmZzZXR9OiAwLjEyNXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlByZXNzU2NhbGV9OiAxLjI1O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmxhYmVsQ29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9OiB2YXIoLS10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPbn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9uSG92ZXJ9OiB2YXIoLS1zdXJmYWNlLWFjY2VudC1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPZmZ9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JhY2tncm91bmRDb2xvck9mZkhvdmVyfTogdmFyKC0tc3VyZmFjZS10cmFuc3BhcmVudC10ZXJ0aWFyeS1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCYWNrZ3JvdW5kQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXN1cmZhY2Utc29saWQtZGVmYXVsdCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCb3hTaGFkb3d9OiAwIDFweCAxcHggcmdiYSgwLCAwLCAwLCAwLjExKTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGlzYWJsZWRPcGFjaXR5fTogMC40O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZm9jdXNlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrRm9jdXNDb2xvcn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
|
18
|
+
m: /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.fontFamily, ":var(--plasma-typo-body1-font-family);", _Switch.switchTokens.fontStyle, ":var(--plasma-typo-body1-font-style);", _Switch.switchTokens.fontWeight, ":var(--plasma-typo-body1-font-weight);", _Switch.switchTokens.fontWeight, ":var(--plasma-typo-body1-font-weight);", _Switch.switchTokens.lineHeight, ":var(--plasma-typo-body1-line-height);", _Switch.switchTokens.fontSize, ":var(--plasma-typo-body1-font-size);", _Switch.switchTokens.letterSpacing, ":var(--plasma-typo-body1-letter-spacing);", _Switch.switchTokens.trackWidth, ":2.75rem;", _Switch.switchTokens.trackHeight, ":1.75rem;", _Switch.switchTokens.trackBorderRadius, ":calc(var(", _Switch.switchTokens.trackHeight, ") / 2);", _Switch.switchTokens.thumbSize, ":1.5rem;", _Switch.switchTokens.thumbBorderRadius, ":calc(var(", _Switch.switchTokens.thumbSize, ") / 2);", _Switch.switchTokens.thumbOffset, ":0.125rem;", _Switch.switchTokens.thumbPressScale, ":1.25;", _Switch.switchTokens.labelOffset, ":0.75rem;;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFha0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vZXhhbXBsZXMvcGxhc21hX3dlYi9jb21wb25lbnRzL1N3aXRjaC9Td2l0Y2guY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBzd2l0Y2hUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1N3aXRjaCc7XG5cbmV4cG9ydCBjb25zdCBjb25maWcgPSB7XG4gICAgZGVmYXVsdHM6IHtcbiAgICAgICAgdmlldzogJ2RlZmF1bHQnLFxuICAgICAgICBzaXplOiAnbScsXG4gICAgICAgIGxhYmVsUG9zaXRpb246ICdiZWZvcmUnLFxuICAgICAgICBmb2N1c2VkOiAndHJ1ZScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keTEtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5MS1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWZvbnQtd2VpZ2h0KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5saW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keTEtbGluZS1oZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keTEtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5sZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keTEtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrV2lkdGh9OiAyLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrSGVpZ2h0fTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0JvcmRlclJhZGl1c306IGNhbGModmFyKCR7c3dpdGNoVG9rZW5zLnRyYWNrSGVpZ2h0fSkgLyAyKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYlNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJCb3JkZXJSYWRpdXN9OiBjYWxjKHZhcigke3N3aXRjaFRva2Vuc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Rpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZGlzYWJsZWRPcGFjaXR5fTogMC40O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZm9jdXNlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrRm9jdXNDb2xvcn06IHZhcigtLXN1cmZhY2UtYWNjZW50KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
|
26
19
|
},
|
27
20
|
view: {
|
28
|
-
"default": /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.
|
21
|
+
"default": /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.trackBackgroundColorOn, ":var(--surface-accent);", _Switch.switchTokens.trackBackgroundColorOnHover, ":var(--surface-accent-hover);", _Switch.switchTokens.trackBackgroundColorOff, ":var(--surface-transparent-tertiary);", _Switch.switchTokens.trackBackgroundColorOffHover, ":var(--surface-transparent-tertiary-hover);", _Switch.switchTokens.thumbBackgroundColor, ":var(--on-dark-surface-solid-default);", _Switch.switchTokens.thumbBoxShadow, ":0 1px 1px rgba(0, 0, 0, 0.11);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQ3dCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZ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HkxLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja1dpZHRofTogMi43NXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH06IDEuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCb3JkZXJSYWRpdXN9OiBjYWxjKHZhcigke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfTogMS41cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iQm9yZGVyUmFkaXVzfTogY2FsYyh2YXIoJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfSkgLyAyKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYk9mZnNldH06IDAuMTI1cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iUHJlc3NTY2FsZX06IDEuMjU7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGFiZWxPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQmFja2dyb3VuZENvbG9yT259OiB2YXIoLS1zdXJmYWNlLWFjY2VudCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPbkhvdmVyfTogdmFyKC0tc3VyZmFjZS1hY2NlbnQtaG92ZXIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQmFja2dyb3VuZENvbG9yT2ZmfTogdmFyKC0tc3VyZmFjZS10cmFuc3BhcmVudC10ZXJ0aWFyeSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPZmZIb3Zlcn06IHZhcigtLXN1cmZhY2UtdHJhbnNwYXJlbnQtdGVydGlhcnktaG92ZXIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iQmFja2dyb3VuZENvbG9yfTogdmFyKC0tb24tZGFyay1zdXJmYWNlLXNvbGlkLWRlZmF1bHQpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iQm94U2hhZG93fTogMCAxcHggMXB4IHJnYmEoMCwgMCwgMCwgMC4xMSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGZvY3VzZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0ZvY3VzQ29sb3J9OiB2YXIoLS1zdXJmYWNlLWFjY2VudCk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
|
29
22
|
},
|
30
23
|
disabled: {
|
31
|
-
"true": /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.disabledOpacity, ":0.4;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
24
|
+
"true": /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.disabledOpacity, ":0.4;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ3FCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgc3dpdGNoVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Td2l0Y2gnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgICAgICBsYWJlbFBvc2l0aW9uOiAnYmVmb3JlJyxcbiAgICAgICAgZm9jdXNlZDogJ3RydWUnLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5MS1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keTEtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5MS1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja1dpZHRofTogMi43NXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH06IDEuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCb3JkZXJSYWRpdXN9OiBjYWxjKHZhcigke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH0pIC8gMik7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfTogMS41cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iQm9yZGVyUmFkaXVzfTogY2FsYyh2YXIoJHtzd2l0Y2hUb2tlbnMudGh1bWJTaXplfSkgLyAyKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50aHVtYk9mZnNldH06IDAuMTI1cmVtO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iUHJlc3NTY2FsZX06IDEuMjU7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGFiZWxPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQmFja2dyb3VuZENvbG9yT259OiB2YXIoLS1zdXJmYWNlLWFjY2VudCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPbkhvdmVyfTogdmFyKC0tc3VyZmFjZS1hY2NlbnQtaG92ZXIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRyYWNrQmFja2dyb3VuZENvbG9yT2ZmfTogdmFyKC0tc3VyZmFjZS10cmFuc3BhcmVudC10ZXJ0aWFyeSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMudHJhY2tCYWNrZ3JvdW5kQ29sb3JPZmZIb3Zlcn06IHZhcigtLXN1cmZhY2UtdHJhbnNwYXJlbnQtdGVydGlhcnktaG92ZXIpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iQmFja2dyb3VuZENvbG9yfTogdmFyKC0tb24tZGFyay1zdXJmYWNlLXNvbGlkLWRlZmF1bHQpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iQm94U2hhZG93fTogMCAxcHggMXB4IHJnYmEoMCwgMCwgMCwgMC4xMSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGZvY3VzZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0ZvY3VzQ29sb3J9OiB2YXIoLS1zdXJmYWNlLWFjY2VudCk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
|
32
25
|
},
|
33
26
|
focused: {
|
34
|
-
"true": /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.trackFocusColor, ":var(--surface-accent);;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
27
|
+
"true": /*#__PURE__*/(0, _react.css)(_Switch.switchTokens.trackFocusColor, ":var(--surface-accent);;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUErQ3FCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Td2l0Y2gvU3dpdGNoLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgc3dpdGNoVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Td2l0Y2gnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgICAgICBsYWJlbFBvc2l0aW9uOiAnYmVmb3JlJyxcbiAgICAgICAgZm9jdXNlZDogJ3RydWUnLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMuZm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5MS1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keTEtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5MS1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy5mb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2hUb2tlbnMubGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkxLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja1dpZHRofTogMi43NXJlbTtcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0hlaWdodH06IDEuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtzd2l0Y2h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gICR7c3dpdGNoVG9rZW5zLnRodW1iQmFja2dyb3VuZENvbG9yfTogdmFyKC0tb24tZGFyay1zdXJmYWNlLXNvbGlkLWRlZmF1bHQpO1xuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLnRodW1iQm94U2hhZG93fTogMCAxcHggMXB4IHJnYmEoMCwgMCwgMCwgMC4xMSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7c3dpdGNoVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGZvY3VzZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke3N3aXRjaFRva2Vucy50cmFja0ZvY3VzQ29sb3J9OiB2YXIoLS1zdXJmYWNlLWFjY2VudCk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
|
35
28
|
}
|
36
29
|
}
|
37
30
|
};
|
@@ -17,17 +17,9 @@ const meta: Meta<SwitchProps> = {
|
|
17
17
|
title: 'plasma_web/Switch',
|
18
18
|
decorators: [WithTheme],
|
19
19
|
component: Switch,
|
20
|
-
argTypes:
|
21
|
-
...argTypesFromConfig(mergeConfig(switchConfig, config), ['view', 'focused']),
|
22
|
-
labelPosition: {
|
23
|
-
options: ['before', 'after'],
|
24
|
-
control: { type: 'select' },
|
25
|
-
},
|
26
|
-
},
|
20
|
+
argTypes: argTypesFromConfig(mergeConfig(switchConfig, config), ['size', 'view', 'focused']),
|
27
21
|
args: {
|
28
22
|
label: 'Label',
|
29
|
-
description: 'Description',
|
30
|
-
labelPosition: 'before',
|
31
23
|
},
|
32
24
|
};
|
33
25
|
|
@@ -65,10 +57,5 @@ const StoryDefault = (args: SwitchProps) => {
|
|
65
57
|
};
|
66
58
|
|
67
59
|
export const Default: StoryObj<SwitchProps> = {
|
68
|
-
args: {
|
69
|
-
size: 'm',
|
70
|
-
toggleSize: 'l',
|
71
|
-
disabled: false,
|
72
|
-
},
|
73
60
|
render: (args) => <StoryDefault {...args} />,
|
74
61
|
};
|
@@ -1,28 +1,25 @@
|
|
1
1
|
var _StyledTrigger;
|
2
|
-
var _excluded = ["size", "
|
2
|
+
var _excluded = ["size", "view", "focused", "outlined", "disabled", "labelPosition", "label", "id", "style", "className", "checked", "pressed", "defaultChecked"];
|
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 _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
6
6
|
import React, { forwardRef } from 'react';
|
7
7
|
import { base as sizeCSS } from '../Switch/_size/base';
|
8
|
-
import { base as toggleSizeCSS } from '../Switch/_toggleSize/base';
|
9
8
|
import { base as viewCSS } from '../Switch/_view/base';
|
10
9
|
import { base as focusedCSS } from '../Switch/_focused/base';
|
11
10
|
import { base as disabledCSS } from '../Switch/_disabled/base';
|
12
11
|
import { cx } from '../../utils';
|
13
|
-
import {
|
12
|
+
import { StyledInput, StyledLabel, StyledTrigger, base } from './Switch.styles';
|
14
13
|
import { classes } from './Switch.tokens';
|
15
14
|
export var switchRoot = function switchRoot(Root) {
|
16
15
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
17
16
|
var size = props.size,
|
18
|
-
toggleSize = props.toggleSize,
|
19
17
|
view = props.view,
|
20
18
|
focused = props.focused,
|
21
19
|
outlined = props.outlined,
|
22
20
|
disabled = props.disabled,
|
23
21
|
labelPosition = props.labelPosition,
|
24
22
|
label = props.label,
|
25
|
-
description = props.description,
|
26
23
|
id = props.id,
|
27
24
|
style = props.style,
|
28
25
|
className = props.className,
|
@@ -34,15 +31,12 @@ export var switchRoot = function switchRoot(Root) {
|
|
34
31
|
return /*#__PURE__*/React.createElement(Root, {
|
35
32
|
view: view,
|
36
33
|
size: size,
|
37
|
-
toggleSize: toggleSize,
|
38
34
|
disabled: disabled,
|
39
35
|
focused: focused !== null && focused !== void 0 ? focused : outlined,
|
40
36
|
labelPosition: labelPosition,
|
41
37
|
id: id,
|
42
38
|
style: style,
|
43
|
-
className: cx(className)
|
44
|
-
}, /*#__PURE__*/React.createElement(StyledContent, {
|
45
|
-
className: cx(classes["".concat(labelPosition, "SwitchLabelPosition")])
|
39
|
+
className: cx(className, classes["".concat(labelPosition, "SwitchLabelPosition")])
|
46
40
|
}, /*#__PURE__*/React.createElement(StyledInput, _extends({}, rest, {
|
47
41
|
ref: ref,
|
48
42
|
role: "switch",
|
@@ -55,7 +49,7 @@ export var switchRoot = function switchRoot(Root) {
|
|
55
49
|
tabIndex: -1
|
56
50
|
}, label), _StyledTrigger || (_StyledTrigger = /*#__PURE__*/React.createElement(StyledTrigger, {
|
57
51
|
"aria-hidden": true
|
58
|
-
})))
|
52
|
+
})));
|
59
53
|
});
|
60
54
|
};
|
61
55
|
export var switchConfig = {
|
@@ -70,9 +64,6 @@ export var switchConfig = {
|
|
70
64
|
view: {
|
71
65
|
css: viewCSS
|
72
66
|
},
|
73
|
-
toggleSize: {
|
74
|
-
css: toggleSizeCSS
|
75
|
-
},
|
76
67
|
disabled: {
|
77
68
|
css: disabledCSS,
|
78
69
|
attrs: true
|
@@ -3,23 +3,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
3
3
|
import { css } from '@emotion/react';
|
4
4
|
import { applyEllipsis } from '../../mixins';
|
5
5
|
import { classes, tokens } from './Switch.tokens';
|
6
|
-
export var base = /*#__PURE__*/css("position:relative;display:flex;
|
7
|
-
export var StyledContent = /*#__PURE__*/_styled("div", {
|
8
|
-
target: "e14sd5t14",
|
9
|
-
label: "plasma-new-hope__StyledContent"
|
10
|
-
})("width:100%;position:relative;display:flex;align-items:center;&.", classes.beforeSwitchLabelPosition, "{justify-content:space-between;", tokens.labelOffsetPrivate, ":0 var(", tokens.labelOffset, ") 0 0;}&.", classes.afterSwitchLabelPosition, "{justify-content:start;flex-direction:row-reverse;", tokens.labelOffsetPrivate, ":0 0 0 var(", tokens.labelOffset, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL1N3aXRjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUJ1QyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N3aXRjaC9Td2l0Y2guc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhcHBseUVsbGlwc2lzIH0gZnJvbSAnLi4vLi4vbWl4aW5zJztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJ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VmdDogYXV0bztcbiAgICB9XG5gO1xuIl19 */"));
|
11
|
-
export var StyledDescription = /*#__PURE__*/_styled("div", {
|
12
|
-
target: "e14sd5t13",
|
13
|
-
label: "plasma-new-hope__StyledDescription"
|
14
|
-
})(process.env.NODE_ENV === "production" ? {
|
15
|
-
name: "bjn8wh",
|
16
|
-
styles: "position:relative"
|
17
|
-
} : {
|
18
|
-
name: "bjn8wh",
|
19
|
-
styles: "position:relative",
|
20
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL1N3aXRjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUMyQyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N3aXRjaC9Td2l0Y2guc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhcHBseUVsbGlwc2lzIH0gZnJvbSAnLi4vLi4vbWl4aW5zJztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi9Td2l0Y2gudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBnYXA6IHZhcigke3Rva2Vucy52ZXJ0aWNhbEdhcH0pO1xuXG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIC13ZWJraXQtdGFwLWhpZ2hsaWdodC1jb2xvcjogcmdiYS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cblxuZXhwb3J0IGNvbnN0IFN0eWxlZExhYmVsID0gc3R5bGVkLnNwYW5gXG4gICAgdXNlci1zZWxlY3Q6IG5vbmU7XG5cbiAgICAvLyBUT0RPOiBtdWx0aWxpbmUgc3dpdGNoXG4gICAgJHthcHBseUVsbGlwc2lzKCl9XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVHJpZ2dlciA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMTVzIGVhc2UtaW4tb3V0IDAuMXM7XG5cbiAgICA6OmFmdGVyIHtcbiAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgcmlnaHQ6IGF1dG87XG4gICAgICAgIGxlZnQ6IDA7XG5cbiAgICAgICAgdHJhbnNpdGlvbjogd2lkdGggMC4xNXMgZWFzZS1pbi1vdXQgMHMsIGxlZnQgMC4zcyBlYXNlLWluLW91dCAwcywgcmlnaHQgMC4zcyBlYXNlLWluLW91dCAwcztcbiAgICB9XG5cbiAgICAke1N0eWxlZElucHV0fTpjaGVja2VkIH4gJjo6YWZ0ZXIge1xuICAgICAgICByaWdodDogMDtcbiAgICAgICAgbGVmdDogYXV0bztcbiAgICB9XG5gO1xuIl19 */",
|
21
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
22
|
-
});
|
6
|
+
export var base = /*#__PURE__*/css("position:relative;display:flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);&:focus{outline:0 none;}&.", classes.beforeSwitchLabelPosition, "{justify-content:space-between;", tokens.labelOffsetPrivate, ":0 var(", tokens.labelOffset, ") 0 0;}&.", classes.afterSwitchLabelPosition, "{justify-content:start;flex-direction:row-reverse;", tokens.labelOffsetPrivate, ":0 0 0 var(", tokens.labelOffset, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL1N3aXRjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL1N3aXRjaC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGFwcGx5RWxsaXBzaXMgfSBmcm9tICcuLi8uLi9taXhpbnMnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuL1N3aXRjaC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIC13ZWJraXQtdGFwLWhpZ2hsaWdodC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwKTtcblxuICAgICY6Zm9jdXMge1xuICAgICAgICBvdXRsaW5lOiAwIG5vbmU7XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMuYmVmb3JlU3dpdGNoTGFiZWxQb3NpdGlvbn0ge1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG5cbiAgICAgICAgJHt0b2tlbnMubGFiZWxP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bGVmdDogMDtcblxuICAgICAgICB0cmFuc2l0aW9uOiB3aWR0aCAwLjE1cyBlYXNlLWluLW91dCAwcywgbGVmdCAwLjNzIGVhc2UtaW4tb3V0IDBzLCByaWdodCAwLjNzIGVhc2UtaW4tb3V0IDBzO1xuICAgIH1cblxuICAgICR7U3R5bGVkSW5wdXR9OmNoZWNrZWQgfiAmOjphZnRlciB7XG4gICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICBsZWZ0OiBhdXRvO1xuICAgIH1cbmA7XG4iXX0= */"));
|
23
7
|
export var StyledInput = /*#__PURE__*/_styled("input", {
|
24
8
|
target: "e14sd5t12",
|
25
9
|
label: "plasma-new-hope__StyledInput"
|
@@ -29,14 +13,14 @@ export var StyledInput = /*#__PURE__*/_styled("input", {
|
|
29
13
|
} : {
|
30
14
|
name: "1nnrczf",
|
31
15
|
styles: "position:absolute;right:0;margin:0;opacity:0;&:focus{outline:0 none;}",
|
32
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
16
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL1N3aXRjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUN1QyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N3aXRjaC9Td2l0Y2guc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhcHBseUVsbGlwc2lzIH0gZnJvbSAnLi4vLi4vbWl4aW5zJztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5z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hYmVsID0gc3R5bGVkLnNwYW5gXG4gICAgdXNlci1zZWxlY3Q6IG5vbmU7XG5cbiAgICAvLyBUT0RPOiBtdWx0aWxpbmUgc3dpdGNoXG4gICAgJHthcHBseUVsbGlwc2lzKCl9XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVHJpZ2dlciA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMTVzIGVhc2UtaW4tb3V0IDAuMXM7XG5cbiAgICA6OmFmdGVyIHtcbiAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgcmlnaHQ6IGF1dG87XG4gICAgICAgIGxlZnQ6IDA7XG5cbiAgICAgICAgdHJhbnNpdGlvbjogd2lkdGggMC4xNXMgZWFzZS1pbi1vdXQgMHMsIGxlZnQgMC4zcyBlYXNlLWluLW91dCAwcywgcmlnaHQgMC4zcyBlYXNlLWluLW91dCAwcztcbiAgICB9XG5cbiAgICAke1N0eWxlZElucHV0fTpjaGVja2VkIH4gJjo6YWZ0ZXIge1xuICAgICAgICByaWdodDogMDtcbiAgICAgICAgbGVmdDogYXV0bztcbiAgICB9XG5gO1xuIl19 */",
|
33
17
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
34
18
|
});
|
35
19
|
export var StyledLabel = /*#__PURE__*/_styled("span", {
|
36
20
|
target: "e14sd5t11",
|
37
21
|
label: "plasma-new-hope__StyledLabel"
|
38
|
-
})("user-select:none;", /*#__PURE__*/applyEllipsis(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
22
|
+
})("user-select:none;", /*#__PURE__*/applyEllipsis(), ";" + (process.env.NODE_ENV === "production" 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MgZWFzZS1pbi1vdXQgMHMsIGxlZnQgMC4zcyBlYXNlLWluLW91dCAwcywgcmlnaHQgMC4zcyBlYXNlLWluLW91dCAwcztcbiAgICB9XG5cbiAgICAke1N0eWxlZElucHV0fTpjaGVja2VkIH4gJjo6YWZ0ZXIge1xuICAgICAgICByaWdodDogMDtcbiAgICAgICAgbGVmdDogYXV0bztcbiAgICB9XG5gO1xuIl19 */"));
|
39
23
|
export var StyledTrigger = /*#__PURE__*/_styled("div", {
|
40
24
|
target: "e14sd5t10",
|
41
25
|
label: "plasma-new-hope__StyledTrigger"
|
42
|
-
})("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;}", StyledInput, ":checked~&::after{right:0;left:auto;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
26
|
+
})("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;}", StyledInput, ":checked~&::after{right:0;left:auto;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL1N3aXRjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUR1QyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1N3aXRjaC9Td2l0Y2guc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb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WdodDogMDtcbiAgICBtYXJnaW46IDA7XG4gICAgb3BhY2l0eTogMDtcblxuICAgICY6Zm9jdXMge1xuICAgICAgICBvdXRsaW5lOiAwIG5vbmU7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZExhYmVsID0gc3R5bGVkLnNwYW5gXG4gICAgdXNlci1zZWxlY3Q6IG5vbmU7XG5cbiAgICAvLyBUT0RPOiBtdWx0aWxpbmUgc3dpdGNoXG4gICAgJHthcHBseUVsbGlwc2lzKCl9XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVHJpZ2dlciA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuMTVzIGVhc2UtaW4tb3V0IDAuMXM7XG5cbiAgICA6OmFmdGVyIHtcbiAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgcmlnaHQ6IGF1dG87XG4gICAgICAgIGxlZnQ6IDA7XG5cbiAgICAgICAgdHJhbnNpdGlvbjogd2lkdGggMC4xNXMgZWFzZS1pbi1vdXQgMHMsIGxlZnQgMC4zcyBlYXNlLWluLW91dCAwcywgcmlnaHQgMC4zcyBlYXNlLWluLW91dCAwcztcbiAgICB9XG5cbiAgICAke1N0eWxlZElucHV0fTpjaGVja2VkIH4gJjo6YWZ0ZXIge1xuICAgICAgICByaWdodDogMDtcbiAgICAgICAgbGVmdDogYXV0bztcbiAgICB9XG5gO1xuIl19 */"));
|
@@ -18,43 +18,7 @@ import { Switch } from '@salutejs/{{ package }}';
|
|
18
18
|
|
19
19
|
export function App() {
|
20
20
|
return (
|
21
|
-
<Switch
|
22
|
-
);
|
23
|
-
}
|
24
|
-
```
|
25
|
-
|
26
|
-
## Примеры
|
27
|
-
|
28
|
-
### Размер Switch
|
29
|
-
Размер компонента задается с помощью свойства `size`.
|
30
|
-
|
31
|
-
```tsx live
|
32
|
-
import React from 'react';
|
33
|
-
import { Button } from '@salutejs/{{ package }}';
|
34
|
-
|
35
|
-
export function App() {
|
36
|
-
return (
|
37
|
-
<div>
|
38
|
-
<Switch size="s" description="Описание переключателя" label="Переключатель" defaultChecked />
|
39
|
-
<Switch size="m" description="Описание переключателя" label="Переключатель" defaultChecked />
|
40
|
-
<Switch size="l" description="Описание переключателя" label="Переключатель" defaultChecked />
|
41
|
-
</div>
|
42
|
-
);
|
43
|
-
}
|
44
|
-
```
|
45
|
-
|
46
|
-
Размер переключателя задается с помощью свойства `toggleSize`.
|
47
|
-
|
48
|
-
```tsx live
|
49
|
-
import React from 'react';
|
50
|
-
import { Button } from '@salutejs/{{ package }}';
|
51
|
-
|
52
|
-
export function App() {
|
53
|
-
return (
|
54
|
-
<div style=\{{ alignItems: "center" }}>
|
55
|
-
<Switch toggleSize="s" label="Переключатель" defaultChecked />
|
56
|
-
<Switch toggleSize="l" label="Переключатель" defaultChecked />
|
57
|
-
</div>
|
21
|
+
<Switch label="Переключатель" defaultChecked />
|
58
22
|
);
|
59
23
|
}
|
60
24
|
```
|
@@ -5,22 +5,11 @@ export var tokens = {
|
|
5
5
|
fontWeight: '--plasma-switch-font-weight',
|
6
6
|
letterSpacing: '--plasma-switch-letter-spacing',
|
7
7
|
lineHeight: '--plasma-switch-line-height',
|
8
|
-
/* Токены description */
|
9
|
-
descriptionFontFamily: '--plasma-switch-description-font-family',
|
10
|
-
descriptionFontStyle: '--plasma-switch-description-font-style',
|
11
|
-
descriptionFontSize: '--plasma-switch-description-font-size',
|
12
|
-
descriptionFontWeight: '--plasma-switch-description-font-weight',
|
13
|
-
descriptionLetterSpacing: '--plasma-switch-description-letter-spacing',
|
14
|
-
descriptionLineHeight: '--plasma-switch-description-line-height',
|
15
8
|
/* Цвет подписи */
|
16
9
|
labelColor: '--plasma-switch__label-color',
|
17
10
|
labelOffset: '--plasma-switch__label-offset',
|
18
|
-
/* Цвет описания */
|
19
|
-
descriptionColor: '--plasma-switch__description-color',
|
20
|
-
descriptionOffset: '--plasma-switch__description-offset',
|
21
11
|
/** Прозрачность для всего компонента в состоянии disabled */
|
22
12
|
disabledOpacity: '--plasma-switch-disabled-opacity',
|
23
|
-
verticalGap: '--plasma-switch-vertical-gap',
|
24
13
|
trackWidth: '--plasma-switch__track-width',
|
25
14
|
trackHeight: '--plasma-switch__track-height',
|
26
15
|
trackBorderRadius: '--plasma-switch__track-border-radius',
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from '@emotion/react';
|
2
2
|
import { tokens } from '../Switch.tokens';
|
3
|
-
import {
|
4
|
-
export var base = /*#__PURE__*/css(
|
3
|
+
import { StyledLabel, StyledTrigger } from '../Switch.styles';
|
4
|
+
export var base = /*#__PURE__*/css("font-family:var(", tokens.fontFamily, ");font-style:var(", tokens.fontStyle, ");font-weight:var(", tokens.fontWeight, ");letter-spacing:var(", tokens.letterSpacing, ");line-height:var(", tokens.lineHeight, ");font-size:var(", tokens.fontSize, ");", StyledTrigger, "{flex:0 0 var(", tokens.trackWidth, ");width:var(", tokens.trackWidth, ");height:var(", tokens.trackHeight, ");border-radius:var(", tokens.trackBorderRadius, ");&::after{width:var(", tokens.thumbSize, ");height:var(", tokens.thumbSize, ");border-radius:var(", tokens.thumbBorderRadius, ");margin:auto var(", tokens.thumbOffset, ");}}", StyledLabel, "{margin:var(", tokens.labelOffsetPrivate, ", 0);}:active:not([disabled]) ", StyledTrigger, "::after{width:calc(var(", tokens.thumbSize, ") * var(", tokens.thumbPressScale, ", 1));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL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ICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pO1xuICAgICAgICAgICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMudGh1bWJTaXplfSk7XG4gICAgICAgICAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMudGh1bWJCb3JkZXJSYWRpdXN9KTtcbiAgICAgICAgICAgIG1hcmdpbjogYXV0byB2YXIoJHt0b2tlbnMudGh1bWJPZmZzZXR9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgICR7U3R5bGVkTGFiZWx9IHtcbiAgICAgICAgLyogY2hlY2sgX2xhYmVsX3Bvc2l0aW9uICovXG4gICAgICAgIG1hcmdpbjogdmFyKCR7dG9rZW5zLmxhYmVsT2Zmc2V0UHJpdmF0ZX0sIDApO1xuICAgIH1cblxuICAgIDphY3RpdmU6bm90KFtkaXNhYmxlZF0pICR7U3R5bGVkVHJpZ2dlcn06OmFmdGVyIHtcbiAgICAgICAgd2lkdGg6IGNhbGModmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pICogdmFyKCR7dG9rZW5zLnRodW1iUHJlc3NTY2FsZX0sIDEpKTtcbiAgICB9XG5gO1xuIl19 */"));
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { css } from '@emotion/react';
|
2
2
|
import { tokens } from '../Switch.tokens';
|
3
|
-
import { StyledTrigger, StyledInput
|
4
|
-
export var base = /*#__PURE__*/css(StyledTrigger, "{background-color:var(", tokens.trackBackgroundColorOff, ");}", StyledInput, ":not([disabled])~", StyledTrigger, ":hover{background-color:var(", tokens.trackBackgroundColorOffHover, ", var(", tokens.trackBackgroundColorOff, "));}", StyledInput, ":checked~", StyledTrigger, "{background-color:var(", tokens.trackBackgroundColorOn, ");}", StyledInput, ":checked:not([disabled])~", StyledTrigger, ":hover{background-color:var(", tokens.trackBackgroundColorOnHover, ", var(", tokens.trackBackgroundColorOn, "));}", StyledTrigger, "::after{background-color:var(", tokens.thumbBackgroundColor, ");box-shadow:var(", tokens.thumbBoxShadow, ");}", StyledInput, ":checked~", StyledTrigger, "::after{box-shadow:var(", tokens.thumbBoxShadowOn, ", var(", tokens.thumbBoxShadow, "));}
|
3
|
+
import { StyledTrigger, StyledInput } from '../Switch.styles';
|
4
|
+
export var base = /*#__PURE__*/css(StyledTrigger, "{background-color:var(", tokens.trackBackgroundColorOff, ");}", StyledInput, ":not([disabled])~", StyledTrigger, ":hover{background-color:var(", tokens.trackBackgroundColorOffHover, ", var(", tokens.trackBackgroundColorOff, "));}", StyledInput, ":checked~", StyledTrigger, "{background-color:var(", tokens.trackBackgroundColorOn, ");}", StyledInput, ":checked:not([disabled])~", StyledTrigger, ":hover{background-color:var(", tokens.trackBackgroundColorOnHover, ", var(", tokens.trackBackgroundColorOn, "));}", StyledTrigger, "::after{background-color:var(", tokens.thumbBackgroundColor, ");box-shadow:var(", tokens.thumbBoxShadow, ");}", StyledInput, ":checked~", StyledTrigger, "::after{box-shadow:var(", tokens.thumbBoxShadowOn, ", var(", tokens.thumbBoxShadow, "));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL192aWV3L2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL192aWV3L2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uL1N3aXRjaC50b2tlbnMnO1xuaW1wb3J0IHsgU3R5bGVkVHJpZ2dlciwgU3R5bGVkSW5wdXQgf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