@salutejs/plasma-new-hope 0.336.0-canary.2222.17612018746.0 → 0.336.0-canary.2224.17630468274.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.
Files changed (77) hide show
  1. package/cjs/components/Drawer/Drawer.css +2 -2
  2. package/cjs/components/Drawer/Drawer.js +7 -10
  3. package/cjs/components/Drawer/Drawer.js.map +1 -1
  4. package/cjs/components/Drawer/Drawer.styles.js +2 -10
  5. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  6. package/cjs/components/Drawer/{Drawer.styles_pltzxq.css → Drawer.styles_h5od79.css} +1 -1
  7. package/cjs/components/Drawer/Drawer.tokens.js +0 -10
  8. package/cjs/components/Drawer/Drawer.tokens.js.map +1 -1
  9. package/cjs/components/Switch/Switch.css +6 -6
  10. package/cjs/components/Switch/Switch.js +5 -2
  11. package/cjs/components/Switch/Switch.js.map +1 -1
  12. package/cjs/components/Switch/Switch.styles.js +1 -1
  13. package/cjs/components/Switch/Switch.styles.js.map +1 -1
  14. package/cjs/components/Switch/{Switch.styles_qjefea.css → Switch.styles_1pe5u24.css} +1 -1
  15. package/cjs/components/Switch/Switch.tokens.js +2 -1
  16. package/cjs/components/Switch/Switch.tokens.js.map +1 -1
  17. package/cjs/index.css +8 -8
  18. package/emotion/cjs/components/Drawer/Drawer.js +4 -13
  19. package/emotion/cjs/components/Drawer/Drawer.styles.js +4 -7
  20. package/emotion/cjs/components/Drawer/Drawer.tokens.js +0 -12
  21. package/emotion/cjs/components/Switch/Switch.js +4 -2
  22. package/emotion/cjs/components/Switch/Switch.styles.js +11 -11
  23. package/emotion/cjs/components/Switch/Switch.tokens.js +2 -1
  24. package/emotion/cjs/examples/components/Combobox/Combobox.js +0 -15
  25. package/emotion/es/components/Drawer/Drawer.js +5 -9
  26. package/emotion/es/components/Drawer/Drawer.styles.js +5 -8
  27. package/emotion/es/components/Drawer/Drawer.tokens.js +0 -9
  28. package/emotion/es/components/Switch/Switch.js +4 -2
  29. package/emotion/es/components/Switch/Switch.styles.js +11 -11
  30. package/emotion/es/components/Switch/Switch.tokens.js +2 -1
  31. package/es/components/Drawer/Drawer.css +2 -2
  32. package/es/components/Drawer/Drawer.js +6 -8
  33. package/es/components/Drawer/Drawer.js.map +1 -1
  34. package/es/components/Drawer/Drawer.styles.js +2 -10
  35. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  36. package/es/components/Drawer/{Drawer.styles_pltzxq.css → Drawer.styles_h5od79.css} +1 -1
  37. package/es/components/Drawer/Drawer.tokens.js +1 -10
  38. package/es/components/Drawer/Drawer.tokens.js.map +1 -1
  39. package/es/components/Switch/Switch.css +6 -6
  40. package/es/components/Switch/Switch.js +5 -2
  41. package/es/components/Switch/Switch.js.map +1 -1
  42. package/es/components/Switch/Switch.styles.js +1 -1
  43. package/es/components/Switch/Switch.styles.js.map +1 -1
  44. package/es/components/Switch/{Switch.styles_qjefea.css → Switch.styles_1pe5u24.css} +1 -1
  45. package/es/components/Switch/Switch.tokens.js +2 -1
  46. package/es/components/Switch/Switch.tokens.js.map +1 -1
  47. package/es/index.css +8 -8
  48. package/package.json +2 -2
  49. package/styled-components/cjs/components/Drawer/Drawer.js +4 -13
  50. package/styled-components/cjs/components/Drawer/Drawer.styles.js +4 -14
  51. package/styled-components/cjs/components/Drawer/Drawer.tokens.js +0 -12
  52. package/styled-components/cjs/components/Switch/Switch.js +4 -2
  53. package/styled-components/cjs/components/Switch/Switch.styles.js +9 -8
  54. package/styled-components/cjs/components/Switch/Switch.tokens.js +2 -1
  55. package/styled-components/es/components/Drawer/Drawer.js +5 -9
  56. package/styled-components/es/components/Drawer/Drawer.styles.js +5 -15
  57. package/styled-components/es/components/Drawer/Drawer.tokens.js +0 -9
  58. package/styled-components/es/components/Switch/Switch.js +4 -2
  59. package/styled-components/es/components/Switch/Switch.styles.js +9 -8
  60. package/styled-components/es/components/Switch/Switch.tokens.js +2 -1
  61. package/styled-components/es/examples/components/Combobox/Combobox.js +7 -0
  62. package/types/components/Drawer/Drawer.d.ts +0 -2
  63. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  64. package/types/components/Drawer/Drawer.styles.d.ts +1 -2
  65. package/types/components/Drawer/Drawer.styles.d.ts.map +1 -1
  66. package/types/components/Drawer/Drawer.tokens.d.ts +0 -9
  67. package/types/components/Drawer/Drawer.tokens.d.ts.map +1 -1
  68. package/types/components/Drawer/Drawer.types.d.ts +0 -16
  69. package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
  70. package/types/components/Switch/Switch.d.ts.map +1 -1
  71. package/types/components/Switch/Switch.styles.d.ts.map +1 -1
  72. package/types/components/Switch/Switch.tokens.d.ts +1 -0
  73. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  74. package/types/components/Switch/Switch.types.d.ts +5 -0
  75. package/types/components/Switch/Switch.types.d.ts.map +1 -1
  76. package/types/examples/components/Drawer/Drawer.d.ts +0 -1
  77. package/types/examples/components/Drawer/Drawer.d.ts.map +1 -1
@@ -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\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":";;;;;;;;;;;;;IAcaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBACrEC,UAAU,CAAgC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACtD,IAAA,IACIC,IAAI,GAsBJF,KAAK,CAtBLE,IAAI;M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E;AACRzC,IAAAA,IAAI,EAAE;AACF0C,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDzC,IAAAA,IAAI,EAAE;AACFwC,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACD3C,IAAAA,UAAU,EAAE;AACRyC,MAAAA,GAAG,EAAEG,MAAAA;KACR;AACDxC,IAAAA,QAAQ,EAAE;AACNqC,MAAAA,GAAG,EAAEI,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACD5C,IAAAA,OAAO,EAAE;AACLuC,MAAAA,GAAG,EAAEM,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNjD,IAAAA,IAAI,EAAE,GAAG;AACTE,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
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 labelEllipses = true,\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} className={labelEllipses ? classes.labelEllipsis : ''}>\n {label}\n </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","_props$labelEllipses","labelEllipses","id","style","className","checked","pressed","defaultChecked","rest","_objectWithoutProperties","_excluded","exactChecked","Boolean","undefined","React","createElement","cx","StyledContent","classes","concat","StyledInput","_extends","role","type","StyledLabel","tabIndex","labelEllipsis","_StyledTrigger","StyledTrigger","StyledDescription","switchConfig","name","tag","base","layout","variations","css","sizeCSS","viewCSS","toggleSizeCSS","disabledCSS","attrs","focusedCSS","defaults"],"mappings":";;;;;;;;;;;;;IAcaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBACrEC,UAAU,CAAgC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACtD,IAAA,IACIC,IAAI,GAuBJF,KAAK,CAvBLE,IAAI;MACJC,UAAU,GAsBVH,KAAK,CAtBLG,UAAU;MACVC,IAAI,GAqBJJ,KAAK,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C,EAAAA,GAAG,EAAE,OAAO;AACZC,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,MAAM,EAAEhD,UAAU;AAClBiD,EAAAA,UAAU,EAAE;AACR5C,IAAAA,IAAI,EAAE;AACF6C,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACD5C,IAAAA,IAAI,EAAE;AACF2C,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACD9C,IAAAA,UAAU,EAAE;AACR4C,MAAAA,GAAG,EAAEG,MAAAA;KACR;AACD3C,IAAAA,QAAQ,EAAE;AACNwC,MAAAA,GAAG,EAAEI,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACD/C,IAAAA,OAAO,EAAE;AACL0C,MAAAA,GAAG,EAAEM,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNpD,IAAAA,IAAI,EAAE,GAAG;AACTE,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- import './Switch.styles_qjefea.css';
1
+ import './Switch.styles_1pe5u24.css';
2
2
  import { styled } from '@linaria/react';
3
3
 
4
4
  var base = "b1fcyfkl";
@@ -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 // 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;;;;"}
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 &.${classes.labelEllipsis} {\n ${applyEllipsis()}\n }\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,CAMhC,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;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
5
+ .s1ilr5eq{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.s1ilr5eq.switch-label-ellipsis{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,7 +50,8 @@ var tokens = {
50
50
  };
51
51
  var classes = {
52
52
  beforeSwitchLabelPosition: 'switch-label-position-before',
53
- afterSwitchLabelPosition: 'switch-label-position-after'
53
+ afterSwitchLabelPosition: 'switch-label-position-after',
54
+ labelEllipsis: 'switch-label-ellipsis'
54
55
  };
55
56
 
56
57
  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};\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;;;;"}
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 labelEllipsis: 'switch-label-ellipsis',\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","labelEllipsis"],"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,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uBAAA;AACnB;;;;"}
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
- .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;}
249
+ .Switch_styles_1pe5u24_b1fcyfkl__3626c46a{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_1pe5u24_b1fcyfkl__3626c46a:focus{outline:0 none;}
250
+ .Switch_styles_1pe5u24_s10fscgc__3626c46a{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_1pe5u24_s10fscgc__3626c46a.Switch_styles_1pe5u24_switchLabelPositionBefore__3626c46a{-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_1pe5u24_s10fscgc__3626c46a.Switch_styles_1pe5u24_switchLabelPositionAfter__3626c46a{-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_1pe5u24_sdjnckq__3626c46a{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_1pe5u24_ssthlx1__3626c46a{position:absolute;right:0;margin:0;opacity:0;}.Switch_styles_1pe5u24_ssthlx1__3626c46a:focus{outline:0 none;}
253
+ .Switch_styles_1pe5u24_s1ilr5eq__3626c46a{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.Switch_styles_1pe5u24_s1ilr5eq__3626c46a.Switch_styles_1pe5u24_switchLabelEllipsis__3626c46a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
254
+ .Switch_styles_1pe5u24_s2cs3kf__3626c46a{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_1pe5u24_s2cs3kf__3626c46a::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_1pe5u24_ssthlx1__3626c46a:checked ~ .Switch_styles_1pe5u24_s2cs3kf__3626c46a::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
 
@@ -426,8 +426,8 @@
426
426
 
427
427
  .base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
428
428
 
429
- .Drawer_styles_pltzxq_s1ewnow2__a1d2f71a{--plasma-panel-close-color:var(--plasma-drawer-close-icon-color);}
430
- .Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerOverlay__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_fadeInSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_fadeInSv7q57r__a1d2f71a 0.2s forwards;-webkit-scrollbar-gutter:stable;-moz-scrollbar-gutter:stable;-ms-scrollbar-gutter:stable;scrollbar-gutter:stable;}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_popupEndAnimation__a1d2f71a .Drawer_styles_pltzxq_drawerOverlay__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_fadeOutSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_fadeOutSv7q57r__a1d2f71a 0.2s forwards;}@-webkit-keyframes Drawer_styles_pltzxq_fadeInSv7q57r__a1d2f71a{from{opacity:0;}to{opacity:1;}}@keyframes Drawer_styles_pltzxq_fadeInSv7q57r__a1d2f71a{from{opacity:0;}to{opacity:1;}}@-webkit-keyframes Drawer_styles_pltzxq_fadeOutSv7q57r__a1d2f71a{from{opacity:1;}to{opacity:0;}}@keyframes Drawer_styles_pltzxq_fadeOutSv7q57r__a1d2f71a{from{opacity:1;}to{opacity:0;}}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a,.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a > div{width:var(--sv7q57r-0);height:var(--sv7q57r-1);}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerRightPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerRightPlacement__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_rightShowAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_rightShowAnimationSv7q57r__a1d2f71a 0.2s forwards;}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerRightPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerRightPlacement__a1d2f71a.Drawer_styles_pltzxq_popupEndAnimation__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_rightHideAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_rightHideAnimationSv7q57r__a1d2f71a 0.2s forwards;}@-webkit-keyframes Drawer_styles_pltzxq_rightShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@keyframes Drawer_styles_pltzxq_rightShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@-webkit-keyframes Drawer_styles_pltzxq_rightHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}}@keyframes Drawer_styles_pltzxq_rightHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerBottomPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerBottomPlacement__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_bottomShowAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_bottomShowAnimationSv7q57r__a1d2f71a 0.2s forwards;}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerBottomPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerBottomPlacement__a1d2f71a.Drawer_styles_pltzxq_popupEndAnimation__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_bottomHideAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_bottomHideAnimationSv7q57r__a1d2f71a 0.2s forwards;}@-webkit-keyframes Drawer_styles_pltzxq_bottomShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@keyframes Drawer_styles_pltzxq_bottomShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@-webkit-keyframes Drawer_styles_pltzxq_bottomHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}}@keyframes Drawer_styles_pltzxq_bottomHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerLeftPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerLeftPlacement__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_leftShowAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_leftShowAnimationSv7q57r__a1d2f71a 0.2s forwards;}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerLeftPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerLeftPlacement__a1d2f71a.Drawer_styles_pltzxq_popupEndAnimation__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_leftHideAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_leftHideAnimationSv7q57r__a1d2f71a 0.2s forwards;}@-webkit-keyframes Drawer_styles_pltzxq_leftShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@keyframes Drawer_styles_pltzxq_leftShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@-webkit-keyframes Drawer_styles_pltzxq_leftHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}}@keyframes Drawer_styles_pltzxq_leftHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerTopPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerTopPlacement__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_topShowAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_topShowAnimationSv7q57r__a1d2f71a 0.2s forwards;}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerTopPlacement__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerTopPlacement__a1d2f71a.Drawer_styles_pltzxq_popupEndAnimation__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:Drawer_styles_pltzxq_topHideAnimationSv7q57r__a1d2f71a 0.2s forwards;animation:Drawer_styles_pltzxq_topHideAnimationSv7q57r__a1d2f71a 0.2s forwards;}@-webkit-keyframes Drawer_styles_pltzxq_topShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@keyframes Drawer_styles_pltzxq_topShowAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@-webkit-keyframes Drawer_styles_pltzxq_topHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}}@keyframes Drawer_styles_pltzxq_topHideAnimationSv7q57r__a1d2f71a{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerEnterCustomAnimation__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerEnterCustomAnimation__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:var(--sv7q57r-2);animation:var(--sv7q57r-2);}.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerExitCustomAnimation__a1d2f71a.Drawer_styles_pltzxq_sv7q57r__a1d2f71a.Drawer_styles_pltzxq_drawerExitCustomAnimation__a1d2f71a.Drawer_styles_pltzxq_popupEndAnimation__a1d2f71a .Drawer_styles_pltzxq_popupBaseRoot__a1d2f71a{-webkit-animation:var(--plasma__private-drawer-custom-exit-animation);animation:var(--plasma__private-drawer-custom-exit-animation);}
429
+ .Drawer_styles_h5od79_s1ewnow2__f99f45af{--plasma-panel-close-color:var(--plasma-drawer-close-icon-color);}
430
+ .Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerOverlay__f99f45af{-webkit-animation:Drawer_styles_h5od79_fadeInSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_fadeInSv7q57r__f99f45af 0.2s forwards;-webkit-scrollbar-gutter:stable;-moz-scrollbar-gutter:stable;-ms-scrollbar-gutter:stable;scrollbar-gutter:stable;}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_popupEndAnimation__f99f45af .Drawer_styles_h5od79_drawerOverlay__f99f45af{-webkit-animation:Drawer_styles_h5od79_fadeOutSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_fadeOutSv7q57r__f99f45af 0.2s forwards;}@-webkit-keyframes Drawer_styles_h5od79_fadeInSv7q57r__f99f45af{from{opacity:0;}to{opacity:1;}}@keyframes Drawer_styles_h5od79_fadeInSv7q57r__f99f45af{from{opacity:0;}to{opacity:1;}}@-webkit-keyframes Drawer_styles_h5od79_fadeOutSv7q57r__f99f45af{from{opacity:1;}to{opacity:0;}}@keyframes Drawer_styles_h5od79_fadeOutSv7q57r__f99f45af{from{opacity:1;}to{opacity:0;}}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af,.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af > div{width:var(--sv7q57r-0);height:var(--sv7q57r-1);}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerRightPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerRightPlacement__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_rightShowAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_rightShowAnimationSv7q57r__f99f45af 0.2s forwards;}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerRightPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerRightPlacement__f99f45af.Drawer_styles_h5od79_popupEndAnimation__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_rightHideAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_rightHideAnimationSv7q57r__f99f45af 0.2s forwards;}@-webkit-keyframes Drawer_styles_h5od79_rightShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@keyframes Drawer_styles_h5od79_rightShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@-webkit-keyframes Drawer_styles_h5od79_rightHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}}@keyframes Drawer_styles_h5od79_rightHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(100%,-50%);-ms-transform:translate(100%,-50%);transform:translate(100%,-50%);opacity:0;}}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerBottomPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerBottomPlacement__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_bottomShowAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_bottomShowAnimationSv7q57r__f99f45af 0.2s forwards;}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerBottomPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerBottomPlacement__f99f45af.Drawer_styles_h5od79_popupEndAnimation__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_bottomHideAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_bottomHideAnimationSv7q57r__f99f45af 0.2s forwards;}@-webkit-keyframes Drawer_styles_h5od79_bottomShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@keyframes Drawer_styles_h5od79_bottomShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@-webkit-keyframes Drawer_styles_h5od79_bottomHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}}@keyframes Drawer_styles_h5od79_bottomHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,100%);-ms-transform:translate(-50%,100%);transform:translate(-50%,100%);opacity:0;}}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerLeftPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerLeftPlacement__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_leftShowAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_leftShowAnimationSv7q57r__f99f45af 0.2s forwards;}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerLeftPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerLeftPlacement__f99f45af.Drawer_styles_h5od79_popupEndAnimation__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_leftHideAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_leftHideAnimationSv7q57r__f99f45af 0.2s forwards;}@-webkit-keyframes Drawer_styles_h5od79_leftShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@keyframes Drawer_styles_h5od79_leftShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}100%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}}@-webkit-keyframes Drawer_styles_h5od79_leftHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}}@keyframes Drawer_styles_h5od79_leftHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);opacity:1;}100%{-webkit-transform:translate(-100%,-50%);-ms-transform:translate(-100%,-50%);transform:translate(-100%,-50%);opacity:0;}}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerTopPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerTopPlacement__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_topShowAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_topShowAnimationSv7q57r__f99f45af 0.2s forwards;}.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerTopPlacement__f99f45af.Drawer_styles_h5od79_sv7q57r__f99f45af.Drawer_styles_h5od79_drawerTopPlacement__f99f45af.Drawer_styles_h5od79_popupEndAnimation__f99f45af .Drawer_styles_h5od79_popupBaseRoot__f99f45af{-webkit-animation:Drawer_styles_h5od79_topHideAnimationSv7q57r__f99f45af 0.2s forwards;animation:Drawer_styles_h5od79_topHideAnimationSv7q57r__f99f45af 0.2s forwards;}@-webkit-keyframes Drawer_styles_h5od79_topShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@keyframes Drawer_styles_h5od79_topShowAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}100%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}}@-webkit-keyframes Drawer_styles_h5od79_topHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}}@keyframes Drawer_styles_h5od79_topHideAnimationSv7q57r__f99f45af{0%{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0);opacity:1;}100%{-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);opacity:0;}}
431
431
 
432
432
  .Dropdown_styles_kkvnr1_ln7uamp__173ef985{width:var(--ln7uamp-0);padding:calc(var(--plasma-dropdown-padding) + var(--plasma-dropdown-border-width,0rem));border-radius:var(--plasma-dropdown-border-radius);box-sizing:border-box;background:var(--surface-solid-card-brightness);box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04), inset 0 0 0 var(--plasma-dropdown-border-width,0) var(--plasma-dropdown-border-color,transparent);}
433
433
  .Dropdown_styles_kkvnr1_ujr7fmv__173ef985{max-height:var(--ujr7fmv-0);overflow-x:hidden;overflow-y:auto;border-radius:calc(var(--plasma-dropdown-border-radius) - 0.125rem - var(--plasma-dropdown-border-width,0rem));margin:0;padding:0;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.336.0-canary.2222.17612018746.0",
3
+ "version": "0.336.0-canary.2224.17630468274.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": "c5bdb400db50e32cf4a98cca8075f020b8c83c50"
140
+ "gitHead": "82b826aaedfd9ec598f80a64db1d70e8434beb64"
141
141
  }
@@ -17,7 +17,6 @@ _export(exports, {
17
17
  }
18
18
  });
19
19
  var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
20
- var _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
21
20
  var _plasmacore = require("@salutejs/plasma-core");
22
21
  var _utils = require("../../utils");
23
22
  var _Popup = require("../Popup");
@@ -44,11 +43,6 @@ function _define_property(obj, key, value) {
44
43
  }
45
44
  return obj;
46
45
  }
47
- function _interop_require_default(obj) {
48
- return obj && obj.__esModule ? obj : {
49
- default: obj
50
- };
51
- }
52
46
  function _getRequireWildcardCache(nodeInterop) {
53
47
  if (typeof WeakMap !== "function") return null;
54
48
  var cacheBabelInterop = new WeakMap();
@@ -134,7 +128,7 @@ function _object_without_properties_loose(source, excluded) {
134
128
  }
135
129
  var drawerRoot = function(Root) {
136
130
  return /*#__PURE__*/ (0, _react.forwardRef)(function(_param, outerRef) {
137
- var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, animationInfo = _param.animationInfo, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
131
+ var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
138
132
  "id",
139
133
  "zIndex",
140
134
  "popupInfo",
@@ -148,7 +142,6 @@ var drawerRoot = function(Root) {
148
142
  "opened",
149
143
  "initialFocusRef",
150
144
  "focusAfterRef",
151
- "animationInfo",
152
145
  "className",
153
146
  "customBackgroundColor",
154
147
  "customContentBackgroundColor",
@@ -198,11 +191,10 @@ var drawerRoot = function(Root) {
198
191
  onClose();
199
192
  }
200
193
  };
201
- var _obj;
202
194
  return /*#__PURE__*/ _react.default.createElement(_Drawerstyles.StyledPopup, _object_spread({
203
195
  id: innerId,
204
196
  ref: asModal ? innerRef : outerRef,
205
- className: (0, _classnames.default)(placementClass, className, (_obj = {}, _define_property(_obj, _Drawertokens.classes.enterCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.enter), _define_property(_obj, _Drawertokens.classes.exitCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.exit), _obj)),
197
+ className: (0, _utils.cx)(placementClass),
206
198
  opened: innerIsOpen,
207
199
  zIndex: zIndex,
208
200
  placement: placement,
@@ -212,7 +204,6 @@ var drawerRoot = function(Root) {
212
204
  height: innerHeight,
213
205
  offset: offset,
214
206
  withAnimation: true,
215
- drawerAnimationInfo: animationInfo,
216
207
  overlay: asModal && /*#__PURE__*/ _react.default.createElement(Root, {
217
208
  view: view
218
209
  }, /*#__PURE__*/ _react.default.createElement(_Overlay.Overlay, {
@@ -225,7 +216,6 @@ var drawerRoot = function(Root) {
225
216
  onOverlayClick: onDrawerOverlayKeyDown
226
217
  }))
227
218
  }, rest), /*#__PURE__*/ _react.default.createElement(Root, {
228
- className: _Drawertokens.classes.panel,
229
219
  view: view,
230
220
  size: size,
231
221
  style: {
@@ -237,7 +227,8 @@ var drawerRoot = function(Root) {
237
227
  width: innerWidth,
238
228
  height: innerHeight,
239
229
  customBackgroundColor: customBackgroundColor,
240
- customContentBackgroundColor: customContentBackgroundColor
230
+ customContentBackgroundColor: customContentBackgroundColor,
231
+ className: className
241
232
  }, children)));
242
233
  });
243
234
  };
@@ -82,7 +82,7 @@ var getAnimationStyles = function() {
82
82
  };
83
83
  var StyledPanel = (0, _styledcomponents.default)(Panel).withConfig({
84
84
  displayName: "Drawer.styles__StyledPanel",
85
- componentId: "sc-5f1f6af-0"
85
+ componentId: "sc-7ba5c890-0"
86
86
  })([
87
87
  "",
88
88
  ":var(",
@@ -90,7 +90,7 @@ var StyledPanel = (0, _styledcomponents.default)(Panel).withConfig({
90
90
  ], _Panel.panelTokens.closeColor, _Drawertokens.tokens.closeIconColor);
91
91
  var StyledPopup = (0, _styledcomponents.default)(Popup).withConfig({
92
92
  displayName: "Drawer.styles__StyledPopup",
93
- componentId: "sc-5f1f6af-1"
93
+ componentId: "sc-7ba5c890-1"
94
94
  })([
95
95
  "&&.",
96
96
  "{animation:fadeIn 0.2s forwards;scrollbar-gutter:stable;}&&.",
@@ -100,21 +100,11 @@ var StyledPopup = (0, _styledcomponents.default)(Popup).withConfig({
100
100
  " > div{width:",
101
101
  ";height:",
102
102
  ";}",
103
- " &.",
104
- "{&& .",
105
- "{animation:",
106
- ";}}&.",
107
- "{&&.",
108
- " .",
109
- "{animation:var(",
110
- ");}}"
103
+ ""
111
104
  ], _Drawertokens.classes.overlay, _Popup.popupClasses.endAnimation, _Drawertokens.classes.overlay, _Popup.popupClasses.root, _Popup.popupClasses.root, function(param) {
112
105
  var width = param.width;
113
106
  return width || 'auto';
114
107
  }, function(param) {
115
108
  var height = param.height;
116
109
  return height || 'auto';
117
- }, getAnimationStyles(), _Drawertokens.classes.enterCustomAnimation, _Popup.popupClasses.root, function(param) {
118
- var drawerAnimationInfo = param.drawerAnimationInfo;
119
- return (drawerAnimationInfo === null || drawerAnimationInfo === void 0 ? void 0 : drawerAnimationInfo.enter) || "var(".concat(_Drawertokens.privateTokens.enterAnimation, ")");
120
- }, _Drawertokens.classes.exitCustomAnimation, _Popup.popupClasses.endAnimation, _Popup.popupClasses.root, _Drawertokens.privateTokens.customExitAnimation);
110
+ }, getAnimationStyles());
@@ -12,9 +12,6 @@ _export(exports, {
12
12
  get classes () {
13
13
  return classes;
14
14
  },
15
- get privateTokens () {
16
- return privateTokens;
17
- },
18
15
  get tokens () {
19
16
  return tokens;
20
17
  }
@@ -24,9 +21,6 @@ var classes = {
24
21
  header: 'drawer-header',
25
22
  footer: 'drawer-footer',
26
23
  overlay: 'drawer-overlay',
27
- panel: 'drawer-panel',
28
- enterCustomAnimation: 'drawer-enter-custom-animation',
29
- exitCustomAnimation: 'drawer-exit-custom-animation',
30
24
  horizontal: 'drawer-horizontal',
31
25
  hasHeader: 'drawer-has-header',
32
26
  isRightClose: 'drawer-right-close-button',
@@ -35,12 +29,6 @@ var classes = {
35
29
  rightPlacement: 'drawer-right-placement',
36
30
  leftPlacement: 'drawer-left-placement'
37
31
  };
38
- var privateTokens = {
39
- enterAnimation: '--plasma__private-drawer-enter-animation',
40
- exitAnimation: '--plasma__private-drawer-exit-animation',
41
- customEnterAnimation: '--plasma__private-drawer-custom-enter-animation',
42
- customExitAnimation: '--plasma__private-drawer-custom-exit-animation'
43
- };
44
32
  var tokens = {
45
33
  drawerOverlayWithBlurColor: '--plasma-drawer-overlay-with-blur-color',
46
34
  drawerOverlayColor: '--plasma-drawer-overlay-color',
@@ -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, id = props.id, style = props.style, className = props.className, // singleLine,
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, _props_labelEllipses = props.labelEllipses, labelEllipses = _props_labelEllipses === void 0 ? true : _props_labelEllipses, 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,6 +158,7 @@ var switchRoot = function(Root) {
158
158
  "labelPosition",
159
159
  "label",
160
160
  "description",
161
+ "labelEllipses",
161
162
  "id",
162
163
  "style",
163
164
  "className",
@@ -187,7 +188,8 @@ var switchRoot = function(Root) {
187
188
  defaultChecked: defaultChecked,
188
189
  disabled: disabled
189
190
  })), /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledLabel, {
190
- tabIndex: -1
191
+ tabIndex: -1,
192
+ className: labelEllipses ? _Switchtokens.classes.labelEllipsis : ''
191
193
  }, label), /*#__PURE__*/ _react.default.createElement(_Switchstyles.StyledTrigger, {
192
194
  "aria-hidden": true
193
195
  })), 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-c4704e70-0"
81
+ componentId: "sc-66f1aa77-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-c4704e70-1"
93
+ componentId: "sc-66f1aa77-1"
94
94
  })([
95
95
  "position:relative;",
96
96
  " display:-webkit-box;line-clamp:var(",
@@ -99,20 +99,21 @@ 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-c4704e70-2"
102
+ componentId: "sc-66f1aa77-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-c4704e70-3"
108
+ componentId: "sc-66f1aa77-3"
109
109
  })([
110
- "user-select:none;",
111
- ""
112
- ], (0, _mixins.applyEllipsis)());
110
+ "user-select:none;&.",
111
+ "{",
112
+ "}"
113
+ ], _Switchtokens.classes.labelEllipsis, (0, _mixins.applyEllipsis)());
113
114
  var StyledTrigger = _styledcomponents.default.div.withConfig({
114
115
  displayName: "Switch.styles__StyledTrigger",
115
- componentId: "sc-c4704e70-4"
116
+ componentId: "sc-66f1aa77-4"
116
117
  })([
117
118
  "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;}",
118
119
  ":checked ~ &::after{right:0;left:auto;}"
@@ -64,5 +64,6 @@ var tokens = {
64
64
  };
65
65
  var classes = {
66
66
  beforeSwitchLabelPosition: 'switch-label-position-before',
67
- afterSwitchLabelPosition: 'switch-label-position-after'
67
+ afterSwitchLabelPosition: 'switch-label-position-after',
68
+ labelEllipsis: 'switch-label-ellipsis'
68
69
  };
@@ -54,9 +54,8 @@ function _object_without_properties_loose(source, excluded) {
54
54
  return target;
55
55
  }
56
56
  import React, { forwardRef, useMemo } from "react";
57
- import cls from "classnames";
58
57
  import { useForkRef } from "@salutejs/plasma-core";
59
- import { getSizeValueFromProp, safeUseId } from "../../utils";
58
+ import { cx, getSizeValueFromProp, safeUseId } from "../../utils";
60
59
  import { usePopupContext } from "../Popup";
61
60
  import { Overlay } from "../Overlay";
62
61
  import { DEFAULT_Z_INDEX } from "../Popup/utils";
@@ -71,7 +70,7 @@ import { useDrawer } from "./hooks";
71
70
  // issue #823
72
71
  export var drawerRoot = function(Root) {
73
72
  return /*#__PURE__*/ forwardRef(function(_param, outerRef) {
74
- var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, animationInfo = _param.animationInfo, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
73
+ var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
75
74
  "id",
76
75
  "zIndex",
77
76
  "popupInfo",
@@ -85,7 +84,6 @@ export var drawerRoot = function(Root) {
85
84
  "opened",
86
85
  "initialFocusRef",
87
86
  "focusAfterRef",
88
- "animationInfo",
89
87
  "className",
90
88
  "customBackgroundColor",
91
89
  "customContentBackgroundColor",
@@ -135,11 +133,10 @@ export var drawerRoot = function(Root) {
135
133
  onClose();
136
134
  }
137
135
  };
138
- var _obj;
139
136
  return /*#__PURE__*/ React.createElement(StyledPopup, _object_spread({
140
137
  id: innerId,
141
138
  ref: asModal ? innerRef : outerRef,
142
- className: cls(placementClass, className, (_obj = {}, _define_property(_obj, classes.enterCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.enter), _define_property(_obj, classes.exitCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.exit), _obj)),
139
+ className: cx(placementClass),
143
140
  opened: innerIsOpen,
144
141
  zIndex: zIndex,
145
142
  placement: placement,
@@ -149,7 +146,6 @@ export var drawerRoot = function(Root) {
149
146
  height: innerHeight,
150
147
  offset: offset,
151
148
  withAnimation: true,
152
- drawerAnimationInfo: animationInfo,
153
149
  overlay: asModal && /*#__PURE__*/ React.createElement(Root, {
154
150
  view: view
155
151
  }, /*#__PURE__*/ React.createElement(Overlay, {
@@ -162,7 +158,6 @@ export var drawerRoot = function(Root) {
162
158
  onOverlayClick: onDrawerOverlayKeyDown
163
159
  }))
164
160
  }, rest), /*#__PURE__*/ React.createElement(Root, {
165
- className: classes.panel,
166
161
  view: view,
167
162
  size: size,
168
163
  style: {
@@ -174,7 +169,8 @@ export var drawerRoot = function(Root) {
174
169
  width: innerWidth,
175
170
  height: innerHeight,
176
171
  customBackgroundColor: customBackgroundColor,
177
- customContentBackgroundColor: customContentBackgroundColor
172
+ customContentBackgroundColor: customContentBackgroundColor,
173
+ className: className
178
174
  }, children)));
179
175
  });
180
176
  };
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  import { component, mergeConfig } from "../../engines";
3
3
  import { popupClasses, popupConfig } from "../Popup";
4
4
  import { panelTokens, panelConfig } from "../Panel";
5
- import { classes, privateTokens, tokens } from "./Drawer.tokens";
5
+ import { classes, tokens } from "./Drawer.tokens";
6
6
  var mergedPanelConfig = mergeConfig(panelConfig);
7
7
  var Panel = component(mergedPanelConfig);
8
8
  var Popup = component(popupConfig);
@@ -59,7 +59,7 @@ var getAnimationStyles = function() {
59
59
  };
60
60
  export var StyledPanel = styled(Panel).withConfig({
61
61
  displayName: "Drawer.styles__StyledPanel",
62
- componentId: "sc-5f1f6af-0"
62
+ componentId: "sc-7ba5c890-0"
63
63
  })([
64
64
  "",
65
65
  ":var(",
@@ -67,7 +67,7 @@ export var StyledPanel = styled(Panel).withConfig({
67
67
  ], panelTokens.closeColor, tokens.closeIconColor);
68
68
  export var StyledPopup = styled(Popup).withConfig({
69
69
  displayName: "Drawer.styles__StyledPopup",
70
- componentId: "sc-5f1f6af-1"
70
+ componentId: "sc-7ba5c890-1"
71
71
  })([
72
72
  "&&.",
73
73
  "{animation:fadeIn 0.2s forwards;scrollbar-gutter:stable;}&&.",
@@ -77,21 +77,11 @@ export var StyledPopup = styled(Popup).withConfig({
77
77
  " > div{width:",
78
78
  ";height:",
79
79
  ";}",
80
- " &.",
81
- "{&& .",
82
- "{animation:",
83
- ";}}&.",
84
- "{&&.",
85
- " .",
86
- "{animation:var(",
87
- ");}}"
80
+ ""
88
81
  ], classes.overlay, popupClasses.endAnimation, classes.overlay, popupClasses.root, popupClasses.root, function(param) {
89
82
  var width = param.width;
90
83
  return width || 'auto';
91
84
  }, function(param) {
92
85
  var height = param.height;
93
86
  return height || 'auto';
94
- }, getAnimationStyles(), classes.enterCustomAnimation, popupClasses.root, function(param) {
95
- var drawerAnimationInfo = param.drawerAnimationInfo;
96
- return (drawerAnimationInfo === null || drawerAnimationInfo === void 0 ? void 0 : drawerAnimationInfo.enter) || "var(".concat(privateTokens.enterAnimation, ")");
97
- }, classes.exitCustomAnimation, popupClasses.endAnimation, popupClasses.root, privateTokens.customExitAnimation);
87
+ }, getAnimationStyles());
@@ -3,9 +3,6 @@ export var classes = {
3
3
  header: 'drawer-header',
4
4
  footer: 'drawer-footer',
5
5
  overlay: 'drawer-overlay',
6
- panel: 'drawer-panel',
7
- enterCustomAnimation: 'drawer-enter-custom-animation',
8
- exitCustomAnimation: 'drawer-exit-custom-animation',
9
6
  horizontal: 'drawer-horizontal',
10
7
  hasHeader: 'drawer-has-header',
11
8
  isRightClose: 'drawer-right-close-button',
@@ -14,12 +11,6 @@ export var classes = {
14
11
  rightPlacement: 'drawer-right-placement',
15
12
  leftPlacement: 'drawer-left-placement'
16
13
  };
17
- export var privateTokens = {
18
- enterAnimation: '--plasma__private-drawer-enter-animation',
19
- exitAnimation: '--plasma__private-drawer-exit-animation',
20
- customEnterAnimation: '--plasma__private-drawer-custom-enter-animation',
21
- customExitAnimation: '--plasma__private-drawer-custom-exit-animation'
22
- };
23
14
  export var tokens = {
24
15
  drawerOverlayWithBlurColor: '--plasma-drawer-overlay-with-blur-color',
25
16
  drawerOverlayColor: '--plasma-drawer-overlay-color',