@salutejs/plasma-new-hope 0.184.0-canary.1539.11687316067.0 → 0.184.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/cjs/components/DatePicker/RangeDate/RangeDate.js +3 -1
  2. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  3. package/cjs/components/Range/Range.js +7 -4
  4. package/cjs/components/Range/Range.js.map +1 -1
  5. package/cjs/components/Switch/Switch.css +7 -11
  6. package/cjs/components/Switch/Switch.js +7 -16
  7. package/cjs/components/Switch/Switch.js.map +1 -1
  8. package/cjs/components/Switch/Switch.styles.js +4 -16
  9. package/cjs/components/Switch/Switch.styles.js.map +1 -1
  10. package/cjs/components/Switch/Switch.styles_1kk0qzz.css +4 -0
  11. package/cjs/components/Switch/Switch.tokens.js +0 -11
  12. package/cjs/components/Switch/Switch.tokens.js.map +1 -1
  13. package/cjs/components/Switch/_focused/base.js +1 -1
  14. package/{es/components/Switch/_focused/base_sz3n0x.css → cjs/components/Switch/_focused/base_j4murk.css} +1 -1
  15. package/cjs/components/Switch/_size/base.js +1 -1
  16. package/cjs/components/Switch/_size/base.js.map +1 -1
  17. package/cjs/components/Switch/_size/base_1rjzpi4.css +1 -0
  18. package/cjs/components/Switch/_view/base.js +1 -1
  19. package/cjs/components/Switch/_view/base.js.map +1 -1
  20. package/cjs/components/Switch/_view/base_1mtyz12.css +1 -0
  21. package/cjs/index.css +7 -11
  22. package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +3 -1
  23. package/emotion/cjs/components/Range/Range.js +7 -4
  24. package/emotion/cjs/components/Switch/Switch.js +8 -17
  25. package/emotion/cjs/components/Switch/Switch.styles.js +5 -21
  26. package/emotion/cjs/components/Switch/Switch.template-doc.mdx +1 -37
  27. package/emotion/cjs/components/Switch/Switch.tokens.js +0 -11
  28. package/emotion/cjs/components/Switch/_size/base.js +1 -1
  29. package/emotion/cjs/components/Switch/_view/base.js +1 -1
  30. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +4 -11
  31. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  32. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +4 -11
  33. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  34. package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +3 -1
  35. package/emotion/es/components/Range/Range.js +7 -4
  36. package/emotion/es/components/Switch/Switch.js +4 -13
  37. package/emotion/es/components/Switch/Switch.styles.js +4 -20
  38. package/emotion/es/components/Switch/Switch.template-doc.mdx +1 -37
  39. package/emotion/es/components/Switch/Switch.tokens.js +0 -11
  40. package/emotion/es/components/Switch/_size/base.js +2 -2
  41. package/emotion/es/components/Switch/_view/base.js +2 -2
  42. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +4 -11
  43. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  44. package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +4 -11
  45. package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  46. package/es/components/DatePicker/RangeDate/RangeDate.js +3 -1
  47. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  48. package/es/components/Range/Range.js +7 -4
  49. package/es/components/Range/Range.js.map +1 -1
  50. package/es/components/Switch/Switch.css +7 -11
  51. package/es/components/Switch/Switch.js +8 -17
  52. package/es/components/Switch/Switch.js.map +1 -1
  53. package/es/components/Switch/Switch.styles.js +5 -15
  54. package/es/components/Switch/Switch.styles.js.map +1 -1
  55. package/es/components/Switch/Switch.styles_1kk0qzz.css +4 -0
  56. package/es/components/Switch/Switch.tokens.js +0 -11
  57. package/es/components/Switch/Switch.tokens.js.map +1 -1
  58. package/es/components/Switch/_focused/base.js +1 -1
  59. package/{cjs/components/Switch/_focused/base_sz3n0x.css → es/components/Switch/_focused/base_j4murk.css} +1 -1
  60. package/es/components/Switch/_size/base.js +1 -1
  61. package/es/components/Switch/_size/base.js.map +1 -1
  62. package/es/components/Switch/_size/base_1rjzpi4.css +1 -0
  63. package/es/components/Switch/_view/base.js +1 -1
  64. package/es/components/Switch/_view/base.js.map +1 -1
  65. package/es/components/Switch/_view/base_1mtyz12.css +1 -0
  66. package/es/index.css +7 -11
  67. package/package.json +2 -2
  68. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +3 -1
  69. package/styled-components/cjs/components/Range/Range.js +7 -4
  70. package/styled-components/cjs/components/Switch/Switch.js +8 -17
  71. package/styled-components/cjs/components/Switch/Switch.styles.js +5 -11
  72. package/styled-components/cjs/components/Switch/Switch.template-doc.mdx +1 -37
  73. package/styled-components/cjs/components/Switch/Switch.tokens.js +0 -11
  74. package/styled-components/cjs/components/Switch/_size/base.js +1 -1
  75. package/styled-components/cjs/components/Switch/_view/base.js +1 -1
  76. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +2 -9
  77. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  78. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +2 -9
  79. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  80. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +3 -1
  81. package/styled-components/es/components/Range/Range.js +7 -4
  82. package/styled-components/es/components/Switch/Switch.js +4 -13
  83. package/styled-components/es/components/Switch/Switch.styles.js +4 -10
  84. package/styled-components/es/components/Switch/Switch.template-doc.mdx +1 -37
  85. package/styled-components/es/components/Switch/Switch.tokens.js +0 -11
  86. package/styled-components/es/components/Switch/_size/base.js +2 -2
  87. package/styled-components/es/components/Switch/_view/base.js +2 -2
  88. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +2 -9
  89. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -7
  90. package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +2 -9
  91. package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -14
  92. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +2 -0
  93. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
  94. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +3 -0
  95. package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +1 -1
  96. package/types/components/Range/Range.d.ts.map +1 -1
  97. package/types/components/Range/Range.types.d.ts +4 -0
  98. package/types/components/Range/Range.types.d.ts.map +1 -1
  99. package/types/components/Switch/Switch.d.ts +0 -3
  100. package/types/components/Switch/Switch.d.ts.map +1 -1
  101. package/types/components/Switch/Switch.styles.d.ts +0 -2
  102. package/types/components/Switch/Switch.styles.d.ts.map +1 -1
  103. package/types/components/Switch/Switch.tokens.d.ts +0 -9
  104. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  105. package/types/components/Switch/Switch.types.d.ts +2 -10
  106. package/types/components/Switch/Switch.types.d.ts.map +1 -1
  107. package/types/components/Switch/_size/base.d.ts.map +1 -1
  108. package/types/components/Switch/_view/base.d.ts.map +1 -1
  109. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +1 -0
  110. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  111. package/types/examples/plasma_b2c/components/Range/Range.d.ts +3 -0
  112. package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
  113. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +0 -7
  114. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
  115. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +0 -6
  116. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
  117. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +1 -0
  118. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  119. package/types/examples/plasma_web/components/Range/Range.d.ts +3 -0
  120. package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
  121. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +0 -7
  122. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
  123. package/types/examples/plasma_web/components/Switch/Switch.d.ts +0 -6
  124. package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
  125. package/cjs/components/Switch/Switch.styles_bei7bh.css +0 -6
  126. package/cjs/components/Switch/_size/base_1tcl212.css +0 -1
  127. package/cjs/components/Switch/_toggleSize/base.js +0 -9
  128. package/cjs/components/Switch/_toggleSize/base.js.map +0 -1
  129. package/cjs/components/Switch/_toggleSize/base_6i0904.css +0 -1
  130. package/cjs/components/Switch/_view/base_yxkf3s.css +0 -1
  131. package/emotion/cjs/components/Switch/_toggleSize/base.js +0 -10
  132. package/emotion/es/components/Switch/_toggleSize/base.js +0 -4
  133. package/es/components/Switch/Switch.styles_bei7bh.css +0 -6
  134. package/es/components/Switch/_size/base_1tcl212.css +0 -1
  135. package/es/components/Switch/_toggleSize/base.js +0 -5
  136. package/es/components/Switch/_toggleSize/base.js.map +0 -1
  137. package/es/components/Switch/_toggleSize/base_6i0904.css +0 -1
  138. package/es/components/Switch/_view/base_yxkf3s.css +0 -1
  139. package/styled-components/cjs/components/Switch/_toggleSize/base.js +0 -10
  140. package/styled-components/es/components/Switch/_toggleSize/base.js +0 -4
  141. package/types/components/Switch/_toggleSize/base.d.ts +0 -2
  142. package/types/components/Switch/_toggleSize/base.d.ts.map +0 -1
@@ -4,22 +4,15 @@ export var config = {
4
4
  defaults: {
5
5
  view: 'default',
6
6
  size: 'm',
7
- toggleSize: 'l',
8
7
  labelPosition: 'before',
9
8
  focused: 'true'
10
9
  },
11
10
  variations: {
12
11
  size: {
13
- s: /*#__PURE__*/css(["", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset),
14
- m: /*#__PURE__*/css(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset),
15
- l: /*#__PURE__*/css(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset)
16
- },
17
- toggleSize: {
18
- l: /*#__PURE__*/css(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale),
19
- s: /*#__PURE__*/css(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":1rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale)
12
+ m: /*#__PURE__*/css(["", ":var(--plasma-typo-body1-font-family);", ":var(--plasma-typo-body1-font-style);", ":var(--plasma-typo-body1-font-weight);", ":var(--plasma-typo-body1-font-weight);", ":var(--plasma-typo-body1-line-height);", ":var(--plasma-typo-body1-font-size);", ":var(--plasma-typo-body1-letter-spacing);", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale, switchTokens.labelOffset)
20
13
  },
21
14
  view: {
22
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
15
+ "default": /*#__PURE__*/css(["", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
23
16
  },
24
17
  disabled: {
25
18
  "true": /*#__PURE__*/css(["", ":0.4;"], switchTokens.disabledOpacity)
@@ -18,7 +18,7 @@ const meta: Meta<SwitchProps> = {
18
18
  decorators: [WithTheme],
19
19
  component: Switch,
20
20
  argTypes: {
21
- ...argTypesFromConfig(mergeConfig(switchConfig, config), ['view', 'focused']),
21
+ ...argTypesFromConfig(mergeConfig(switchConfig, config), ['size', 'view', 'focused']),
22
22
  labelPosition: {
23
23
  options: ['before', 'after'],
24
24
  control: { type: 'select' },
@@ -26,7 +26,6 @@ const meta: Meta<SwitchProps> = {
26
26
  },
27
27
  args: {
28
28
  label: 'Label',
29
- description: 'Description',
30
29
  labelPosition: 'before',
31
30
  },
32
31
  };
@@ -65,10 +64,5 @@ const StoryDefault = (args: SwitchProps) => {
65
64
  };
66
65
 
67
66
  export const Default: StoryObj<SwitchProps> = {
68
- args: {
69
- size: 'm',
70
- toggleSize: 'l',
71
- disabled: false,
72
- },
73
67
  render: (args) => <StoryDefault {...args} />,
74
68
  };
@@ -4,22 +4,15 @@ export var config = {
4
4
  defaults: {
5
5
  view: 'default',
6
6
  size: 'm',
7
- toggleSize: 'l',
8
7
  labelPosition: 'before',
9
8
  focused: 'true'
10
9
  },
11
10
  variations: {
12
11
  size: {
13
- s: /*#__PURE__*/css(["", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset),
14
- m: /*#__PURE__*/css(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset),
15
- l: /*#__PURE__*/css(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-xs-letter-spacing);", ":0.25rem;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.descriptionFontFamily, switchTokens.descriptionFontStyle, switchTokens.descriptionFontWeight, switchTokens.descriptionLineHeight, switchTokens.descriptionFontSize, switchTokens.descriptionLetterSpacing, switchTokens.verticalGap, switchTokens.labelOffset)
16
- },
17
- toggleSize: {
18
- l: /*#__PURE__*/css(["", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale),
19
- s: /*#__PURE__*/css(["", ":2rem;", ":1.25rem;", ":calc(var(", ") / 2);", ":1rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;"], switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale)
12
+ m: /*#__PURE__*/css(["", ":var(--plasma-typo-body1-font-family);", ":var(--plasma-typo-body1-font-style);", ":var(--plasma-typo-body1-font-weight);", ":var(--plasma-typo-body1-font-weight);", ":var(--plasma-typo-body1-line-height);", ":var(--plasma-typo-body1-font-size);", ":var(--plasma-typo-body1-letter-spacing);", ":2.75rem;", ":1.75rem;", ":calc(var(", ") / 2);", ":1.5rem;", ":calc(var(", ") / 2);", ":0.125rem;", ":1.25;", ":0.75rem;"], switchTokens.fontFamily, switchTokens.fontStyle, switchTokens.fontWeight, switchTokens.fontWeight, switchTokens.lineHeight, switchTokens.fontSize, switchTokens.letterSpacing, switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale, switchTokens.labelOffset)
20
13
  },
21
14
  view: {
22
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
15
+ "default": /*#__PURE__*/css(["", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-transparent-tertiary);", ":var(--surface-transparent-tertiary-hover);", ":var(--on-dark-surface-solid-default);", ":0 1px 1px rgba(0,0,0,0.11);"], switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.thumbBackgroundColor, switchTokens.thumbBoxShadow)
23
16
  },
24
17
  disabled: {
25
18
  "true": /*#__PURE__*/css(["", ":0.4;"], switchTokens.disabledOpacity)
@@ -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
  };
@@ -20,6 +20,7 @@ export declare const datePickerRangeRoot: (Root: RootProps<HTMLDivElement, Omit<
20
20
  label?: string | undefined;
21
21
  view?: string | undefined;
22
22
  disabled?: boolean | undefined;
23
+ autoComplete?: string | undefined;
23
24
  readOnly?: boolean | undefined;
24
25
  size?: string | undefined;
25
26
  contentLeft?: React.ReactNode;
@@ -70,6 +71,7 @@ export declare const datePickerRangeConfig: {
70
71
  label?: string | undefined;
71
72
  view?: string | undefined;
72
73
  disabled?: boolean | undefined;
74
+ autoComplete?: string | undefined;
73
75
  readOnly?: boolean | undefined;
74
76
  size?: string | undefined;
75
77
  contentLeft?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAW/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAQ9D,eAAO,MAAM,mBAAmB,SACtB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA6ZvG,CAAC;AAEN,eAAO,MAAM,qBAAqB;;;mBA/ZxB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwb3G,CAAC"}
1
+ {"version":3,"file":"RangeDate.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAW/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAQ9D,eAAO,MAAM,mBAAmB,SACtB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA+ZvG,CAAC;AAEN,eAAO,MAAM,qBAAqB;;;mBAjaxB,UAAU,cAAc,EAAE,KAAK,oBAAoB,EAAE,QAAQ,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0b3G,CAAC"}
@@ -19,6 +19,7 @@ export declare const StyledRange: import("@linaria/react").StyledMeta & import("
19
19
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
20
20
  firstTextfieldTextAfter?: string | undefined;
21
21
  secondTextfieldTextAfter?: string | undefined;
22
+ autoComplete?: string | undefined;
22
23
  view?: string | undefined;
23
24
  size?: string | undefined;
24
25
  readOnly?: boolean | undefined;
@@ -55,6 +56,7 @@ export declare const StyledRange: import("@linaria/react").StyledMeta & import("
55
56
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
56
57
  firstTextfieldTextAfter?: string | undefined;
57
58
  secondTextfieldTextAfter?: string | undefined;
59
+ autoComplete?: string | undefined;
58
60
  view?: string | undefined;
59
61
  size?: string | undefined;
60
62
  readOnly?: boolean | undefined;
@@ -91,6 +93,7 @@ export declare const StyledRange: import("@linaria/react").StyledMeta & import("
91
93
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
92
94
  firstTextfieldTextAfter?: string | undefined;
93
95
  secondTextfieldTextAfter?: string | undefined;
96
+ autoComplete?: string | undefined;
94
97
  view?: string | undefined;
95
98
  size?: string | undefined;
96
99
  readOnly?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RangeDate.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,aAAa,4TAAoB,CAAC;AAG/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2HA2FvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC"}
1
+ {"version":3,"file":"RangeDate.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/RangeDate/RangeDate.styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,aAAa,4TAAoB,CAAC;AAG/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2HA2FvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAEhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAkBhE,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,UAAU,CAAC,sFA2IhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA7IQ,UAAU,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;CAsKpE,CAAC"}
1
+ {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAEhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAkBhE,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,UAAU,CAAC,sFA8IhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBAhJQ,UAAU,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;CAyKpE,CAAC"}
@@ -95,6 +95,10 @@ export declare type RangeInnerProps = {
95
95
  * Слот для вспомогательного текста справа для второго поля ввода
96
96
  */
97
97
  secondTextfieldTextAfter?: string;
98
+ /**
99
+ * Автозаполнение полей.
100
+ */
101
+ autoComplete?: string;
98
102
  /**
99
103
  * Вариант отображения
100
104
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Range.types.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnH,oBAAY,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,oBAAY,oBAAoB,GAC1B;IACI,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACI,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC,GACD;IACI,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC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AAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACvE;;OAEG;IACH,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxE;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtE;;OAEG;IACH,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC1E,GAAG,oBAAoB,CAAC;AAEzB,oBAAY,UAAU,GAAG,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
@@ -14,9 +14,6 @@ export declare const switchConfig: {
14
14
  view: {
15
15
  css: import("@linaria/core").LinariaClassName;
16
16
  };
17
- toggleSize: {
18
- css: import("@linaria/core").LinariaClassName;
19
- };
20
17
  disabled: {
21
18
  css: import("@linaria/core").LinariaClassName;
22
19
  attrs: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,UAAU,SAAU,UAAU,gBAAgB,EAAE,WAAW,CAAC,yFA0DnE,CAAC;AAEP,eAAO,MAAM,YAAY;;;;mBA5DQ,UAAU,gBAAgB,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAuFxE,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,UAAU,SAAU,UAAU,gBAAgB,EAAE,WAAW,CAAC,yFAoDnE,CAAC;AAEP,eAAO,MAAM,YAAY;;;;mBAtDQ,UAAU,gBAAgB,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;CA8ExE,CAAC"}
@@ -1,7 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const base: import("@linaria/core").LinariaClassName;
3
- export declare const StyledContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const StyledDescription: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
3
  export declare const StyledInput: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown>>;
6
4
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
7
5
  export declare const StyledTrigger: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.styles.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,IAAI,0CAYhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAkBzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAE7B,CAAC;AAEF,eAAO,MAAM,WAAW,8KASvB,CAAC;AAEF,eAAO,MAAM,WAAW,uKAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAmBzB,CAAC"}
1
+ {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.styles.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,IAAI,0CAwBhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KASvB,CAAC;AAEF,eAAO,MAAM,WAAW,uKAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAmBzB,CAAC"}
@@ -5,19 +5,10 @@ export declare const tokens: {
5
5
  fontWeight: string;
6
6
  letterSpacing: string;
7
7
  lineHeight: string;
8
- descriptionFontFamily: string;
9
- descriptionFontStyle: string;
10
- descriptionFontSize: string;
11
- descriptionFontWeight: string;
12
- descriptionLetterSpacing: string;
13
- descriptionLineHeight: string;
14
8
  labelColor: string;
15
9
  labelOffset: string;
16
- descriptionColor: string;
17
- descriptionOffset: string;
18
10
  /** Прозрачность для всего компонента в состоянии disabled */
19
11
  disabledOpacity: string;
20
- verticalGap: string;
21
12
  trackWidth: string;
22
13
  trackHeight: string;
23
14
  trackBorderRadius: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;IAwBf,6DAA6D;;;;;;;;;;;;;;;;;;;CA0BhE,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
1
+ {"version":3,"file":"Switch.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;IAYf,6DAA6D;;;;;;;;;;;;;;;;;;CAyBhE,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
@@ -4,24 +4,16 @@ export interface SwitchPropsPropsBase {
4
4
  * Метка-подпись к элементу
5
5
  */
6
6
  label?: string;
7
- /**
8
- * Дополнительное описание
9
- */
10
- description?: string;
11
7
  }
12
8
  export interface SwitchPropsVariations extends SwitchPropsPropsBase {
13
9
  /**
14
- * Размер компонента.
10
+ * Размер контрола.
15
11
  */
16
12
  size?: string;
17
13
  /**
18
- * Вид компонента.
14
+ * Вид контрола.
19
15
  */
20
16
  view?: string;
21
- /**
22
- * Размер toggle.
23
- */
24
- toggleSize?: string;
25
17
  /**
26
18
  * Расположение подпись
27
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IAC/D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAEnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAAE,qBAAqB;CAAG"}
1
+ {"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IAC/D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAEnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAAE,qBAAqB;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAuBhB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CA8BhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAiChB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAyBhB,CAAC"}
@@ -50,6 +50,7 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
50
50
  label?: string | undefined;
51
51
  view?: string | undefined;
52
52
  disabled?: boolean | undefined;
53
+ autoComplete?: string | undefined;
53
54
  readOnly?: boolean | undefined;
54
55
  size?: string | undefined;
55
56
  contentLeft?: import("react").ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/DatePicker/DatePicker.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;ufAA0B,CAAC;AAGlD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAA+B,CAAC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/DatePicker/DatePicker.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;ufAA0B,CAAC;AAGlD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAA+B,CAAC"}
@@ -34,6 +34,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../.
34
34
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
35
35
  firstTextfieldTextAfter?: string | undefined;
36
36
  secondTextfieldTextAfter?: string | undefined;
37
+ autoComplete?: string | undefined;
37
38
  view?: string | undefined;
38
39
  size?: string | undefined;
39
40
  readOnly?: boolean | undefined;
@@ -70,6 +71,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../.
70
71
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
71
72
  firstTextfieldTextAfter?: string | undefined;
72
73
  secondTextfieldTextAfter?: string | undefined;
74
+ autoComplete?: string | undefined;
73
75
  view?: string | undefined;
74
76
  size?: string | undefined;
75
77
  readOnly?: boolean | undefined;
@@ -106,6 +108,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../.
106
108
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
107
109
  firstTextfieldTextAfter?: string | undefined;
108
110
  secondTextfieldTextAfter?: string | undefined;
111
+ autoComplete?: string | undefined;
109
112
  view?: string | undefined;
110
113
  size?: string | undefined;
111
114
  readOnly?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Range/Range.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4IAA0B,CAAC"}
1
+ {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Range/Range.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4IAA0B,CAAC"}
@@ -2,19 +2,12 @@ export declare const config: {
2
2
  defaults: {
3
3
  view: string;
4
4
  size: string;
5
- toggleSize: string;
6
5
  labelPosition: string;
7
6
  focused: string;
8
7
  };
9
8
  variations: {
10
9
  size: {
11
- s: import("@linaria/core").LinariaClassName;
12
10
  m: import("@linaria/core").LinariaClassName;
13
- l: import("@linaria/core").LinariaClassName;
14
- };
15
- toggleSize: {
16
- l: import("@linaria/core").LinariaClassName;
17
- s: import("@linaria/core").LinariaClassName;
18
11
  };
19
12
  view: {
20
13
  default: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGlB,CAAC"}
1
+ {"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAgDlB,CAAC"}
@@ -1,13 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Switch: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  size: {
4
- s: import("@linaria/core").LinariaClassName;
5
4
  m: import("@linaria/core").LinariaClassName;
6
- l: import("@linaria/core").LinariaClassName;
7
- };
8
- toggleSize: {
9
- l: import("@linaria/core").LinariaClassName;
10
- s: import("@linaria/core").LinariaClassName;
11
5
  };
12
6
  view: {
13
7
  default: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;2GAA0B,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;2GAA0B,CAAC"}
@@ -50,6 +50,7 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
50
50
  label?: string | undefined;
51
51
  view?: string | undefined;
52
52
  disabled?: boolean | undefined;
53
+ autoComplete?: string | undefined;
53
54
  readOnly?: boolean | undefined;
54
55
  size?: string | undefined;
55
56
  contentLeft?: import("react").ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/DatePicker/DatePicker.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;ufAA0B,CAAC;AAGlD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAA+B,CAAC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/DatePicker/DatePicker.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;ufAA0B,CAAC;AAGlD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAA+B,CAAC"}
@@ -34,6 +34,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../.
34
34
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
35
35
  firstTextfieldTextAfter?: string | undefined;
36
36
  secondTextfieldTextAfter?: string | undefined;
37
+ autoComplete?: string | undefined;
37
38
  view?: string | undefined;
38
39
  size?: string | undefined;
39
40
  readOnly?: boolean | undefined;
@@ -70,6 +71,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../.
70
71
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
71
72
  firstTextfieldTextAfter?: string | undefined;
72
73
  secondTextfieldTextAfter?: string | undefined;
74
+ autoComplete?: string | undefined;
73
75
  view?: string | undefined;
74
76
  size?: string | undefined;
75
77
  readOnly?: boolean | undefined;
@@ -106,6 +108,7 @@ export declare const Range: import("react").FunctionComponent<import("../../../.
106
108
  secondTextfieldContentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
107
109
  firstTextfieldTextAfter?: string | undefined;
108
110
  secondTextfieldTextAfter?: string | undefined;
111
+ autoComplete?: string | undefined;
109
112
  view?: string | undefined;
110
113
  size?: string | undefined;
111
114
  readOnly?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Range/Range.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4IAA0B,CAAC"}
1
+ {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Range/Range.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4IAA0B,CAAC"}
@@ -2,19 +2,12 @@ export declare const config: {
2
2
  defaults: {
3
3
  view: string;
4
4
  size: string;
5
- toggleSize: string;
6
5
  labelPosition: string;
7
6
  focused: string;
8
7
  };
9
8
  variations: {
10
9
  size: {
11
- s: import("@linaria/core").LinariaClassName;
12
10
  m: import("@linaria/core").LinariaClassName;
13
- l: import("@linaria/core").LinariaClassName;
14
- };
15
- toggleSize: {
16
- l: import("@linaria/core").LinariaClassName;
17
- s: import("@linaria/core").LinariaClassName;
18
11
  };
19
12
  view: {
20
13
  default: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGlB,CAAC"}
1
+ {"version":3,"file":"Switch.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAgDlB,CAAC"}
@@ -1,13 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Switch: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  size: {
4
- s: import("@linaria/core").LinariaClassName;
5
4
  m: import("@linaria/core").LinariaClassName;
6
- l: import("@linaria/core").LinariaClassName;
7
- };
8
- toggleSize: {
9
- l: import("@linaria/core").LinariaClassName;
10
- s: import("@linaria/core").LinariaClassName;
11
5
  };
12
6
  view: {
13
7
  default: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;2GAA0B,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Switch/Switch.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;2GAA0B,CAAC"}
@@ -1,6 +0,0 @@
1
- .b1fcyfkl{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);}.b1fcyfkl:focus{outline:0 none;}
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
- .sdjnckq{position:relative;}
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;}
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;}
@@ -1 +0,0 @@
1
- .bm1v11h .s10fscgc{font-family:var(--plasma-switch-font-family);font-style:var(--plasma-switch-font-style);font-weight:var(--plasma-switch-font-weight);-webkit-letter-spacing:var(--plasma-switch-letter-spacing);-moz-letter-spacing:var(--plasma-switch-letter-spacing);-ms-letter-spacing:var(--plasma-switch-letter-spacing);letter-spacing:var(--plasma-switch-letter-spacing);line-height:var(--plasma-switch-line-height);font-size:var(--plasma-switch-font-size);}.bm1v11h .sdjnckq{font-family:var(--plasma-switch-description-font-family);font-style:var(--plasma-switch-description-font-style);font-weight:var(--plasma-switch-description-font-weight);-webkit-letter-spacing:var(--plasma-switch-description-letter-spacing);-moz-letter-spacing:var(--plasma-switch-description-letter-spacing);-ms-letter-spacing:var(--plasma-switch-description-letter-spacing);letter-spacing:var(--plasma-switch-description-letter-spacing);line-height:var(--plasma-switch-description-line-height);font-size:var(--plasma-switch-description-font-size);}.bm1v11h .s1ilr5eq{margin:var(--plasma_private-switch__label-offset,0);}
@@ -1,9 +0,0 @@
1
- import './base_6i0904.css';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "b1wld3h3";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_toggleSize/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\nimport { StyledTrigger } from '../Switch.styles';\n\nexport const base = css`\n ${StyledTrigger} {\n flex: 0 0 var(${tokens.trackWidth});\n width: var(${tokens.trackWidth});\n height: var(${tokens.trackHeight});\n border-radius: var(${tokens.trackBorderRadius});\n\n &::after {\n width: var(${tokens.thumbSize});\n height: var(${tokens.thumbSize});\n border-radius: var(${tokens.thumbBorderRadius});\n margin: auto var(${tokens.thumbOffset});\n }\n }\n\n :active:not([disabled]) ${StyledTrigger}::after {\n width: calc(var(${tokens.thumbSize}) * var(${tokens.thumbPressScale}, 1));\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GAkBhB;;;;"}
@@ -1 +0,0 @@
1
- .b1wld3h3 .s2cs3kf{-webkit-flex:0 0 var(--plasma-switch__track-width);-ms-flex:0 0 var(--plasma-switch__track-width);flex:0 0 var(--plasma-switch__track-width);width:var(--plasma-switch__track-width);height:var(--plasma-switch__track-height);border-radius:var(--plasma-switch__track-border-radius);}.b1wld3h3 .s2cs3kf::after{width:var(--plasma-switch__thumb-size);height:var(--plasma-switch__thumb-size);border-radius:var(--plasma-switch__thumb-border-radius);margin:auto var(--plasma-switch__thumb-offset);}.b1wld3h3:active:not([disabled]) .s2cs3kf::after{width:calc(var(--plasma-switch__thumb-size) * var(--plasma-switch__thumb-scale,1));}
@@ -1 +0,0 @@
1
- .b1g0jmh3 .s2cs3kf{background-color:var(--plasma-switch__track_checked_false-bg-color);}.b1g0jmh3 .ssthlx1:not([disabled]) ~ .s2cs3kf:hover{background-color:var(--plasma-switch__track_checked_false_hovered_true-bg-color,var(--plasma-switch__track_checked_false-bg-color));}.b1g0jmh3 .ssthlx1:checked ~ .s2cs3kf{background-color:var(--plasma-switch__track_checked_true-bg-color);}.b1g0jmh3 .ssthlx1:checked:not([disabled]) ~ .s2cs3kf:hover{background-color:var(--plasma-switch__track_checked_true_hovered_true-bg-color,var(--plasma-switch__track_checked_true-bg-color));}.b1g0jmh3 .s2cs3kf::after{background-color:var(--plasma-switch__thumb-bg-color);box-shadow:var(--plasma-switch__thumb-box-shadow);}.b1g0jmh3 .ssthlx1:checked ~ .s2cs3kf::after{box-shadow:var(--plasma-switch__thumb-box-shadow_checked_true,var(--plasma-switch__thumb-box-shadow));}.b1g0jmh3 .s1ilr5eq{color:var(--plasma-switch__label-color);}.b1g0jmh3 .sdjnckq{color:var(--plasma-switch__description-color);}
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _react = /*#__PURE__*/require("@emotion/react");
8
- var _Switch = /*#__PURE__*/require("../Switch.tokens");
9
- var _Switch2 = /*#__PURE__*/require("../Switch.styles");
10
- var base = exports.base = /*#__PURE__*/(0, _react.css)(_Switch2.StyledTrigger, "{flex:0 0 var(", _Switch.tokens.trackWidth, ");width:var(", _Switch.tokens.trackWidth, ");height:var(", _Switch.tokens.trackHeight, ");border-radius:var(", _Switch.tokens.trackBorderRadius, ");&::after{width:var(", _Switch.tokens.thumbSize, ");height:var(", _Switch.tokens.thumbSize, ");border-radius:var(", _Switch.tokens.thumbBorderRadius, ");margin:auto var(", _Switch.tokens.thumbOffset, ");}}:active:not([disabled]) ", _Switch2.StyledTrigger, "::after{width:calc(var(", _Switch.tokens.thumbSize, ") * var(", _Switch.tokens.thumbPressScale, ", 1));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL190b2dnbGVTaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL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9XG5gO1xuIl19 */"));
@@ -1,4 +0,0 @@
1
- import { css } from '@emotion/react';
2
- import { tokens } from '../Switch.tokens';
3
- import { StyledTrigger } from '../Switch.styles';
4
- export var base = /*#__PURE__*/css(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, ");}}: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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL190b2dnbGVTaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL190b2dnbGVTaXplL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uL1N3aXRjaC50b2tlbnMnO1xuaW1wb3J0IHsgU3R5bGVkVHJpZ2dlciB9IGZyb20gJy4uL1N3aXRjaC5zdHlsZXMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAke1N0eWxlZFRyaWdnZXJ9IHtcbiAgICAgICAgZmxleDogMCAwIHZhcigke3Rva2Vucy50cmFja1dpZHRofSk7XG4gICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMudHJhY2tXaWR0aH0pO1xuICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy50cmFja0hlaWdodH0pO1xuICAgICAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMudHJhY2tCb3JkZXJSYWRpdXN9KTtcblxuICAgICAgICAmOjphZnRlciB7XG4gICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pO1xuICAgICAgICAgICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMudGh1bWJTaXplfSk7XG4gICAgICAgICAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMudGh1bWJCb3JkZXJSYWRpdXN9KTtcbiAgICAgICAgICAgIG1hcmdpbjogYXV0byB2YXIoJHt0b2tlbnMudGh1bWJPZmZzZXR9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIDphY3RpdmU6bm90KFtkaXNhYmxlZF0pICR7U3R5bGVkVHJpZ2dlcn06OmFmdGVyIHtcbiAgICAgICAgd2lkdGg6IGNhbGModmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pICogdmFyKCR7dG9rZW5zLnRodW1iUHJlc3NTY2FsZX0sIDEpKTtcbiAgICB9XG5gO1xuIl19 */"));
@@ -1,6 +0,0 @@
1
- .b1fcyfkl{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);}.b1fcyfkl:focus{outline:0 none;}
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
- .sdjnckq{position:relative;}
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;}
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;}
@@ -1 +0,0 @@
1
- .bm1v11h .s10fscgc{font-family:var(--plasma-switch-font-family);font-style:var(--plasma-switch-font-style);font-weight:var(--plasma-switch-font-weight);-webkit-letter-spacing:var(--plasma-switch-letter-spacing);-moz-letter-spacing:var(--plasma-switch-letter-spacing);-ms-letter-spacing:var(--plasma-switch-letter-spacing);letter-spacing:var(--plasma-switch-letter-spacing);line-height:var(--plasma-switch-line-height);font-size:var(--plasma-switch-font-size);}.bm1v11h .sdjnckq{font-family:var(--plasma-switch-description-font-family);font-style:var(--plasma-switch-description-font-style);font-weight:var(--plasma-switch-description-font-weight);-webkit-letter-spacing:var(--plasma-switch-description-letter-spacing);-moz-letter-spacing:var(--plasma-switch-description-letter-spacing);-ms-letter-spacing:var(--plasma-switch-description-letter-spacing);letter-spacing:var(--plasma-switch-description-letter-spacing);line-height:var(--plasma-switch-description-line-height);font-size:var(--plasma-switch-description-font-size);}.bm1v11h .s1ilr5eq{margin:var(--plasma_private-switch__label-offset,0);}
@@ -1,5 +0,0 @@
1
- import './base_6i0904.css';
2
- var base = "b1wld3h3";
3
-
4
- export { base };
5
- //# sourceMappingURL=base.js.map