@salutejs/plasma-new-hope 0.175.0-canary.1452.11549482324.0 → 0.175.0-canary.1504.11549657359.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. package/cjs/components/Pagination/Pagination.css +13 -13
  2. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  3. package/cjs/components/Select/Select.css +13 -13
  4. package/cjs/components/Select/Select.styles.js +1 -1
  5. package/cjs/components/Select/Select.styles.js.map +1 -1
  6. package/cjs/components/Select/Select.styles_768h42.css +5 -0
  7. package/cjs/components/Select/Select.tokens.js +16 -4
  8. package/cjs/components/Select/Select.tokens.js.map +1 -1
  9. package/cjs/components/Select/ui/Inner/Inner.css +13 -13
  10. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  11. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  12. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  13. package/cjs/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_8oe5oy.css} +2 -2
  14. package/cjs/components/Slider/Slider.css +13 -15
  15. package/cjs/components/Slider/Slider.js +2 -11
  16. package/cjs/components/Slider/Slider.js.map +1 -1
  17. package/cjs/components/Slider/Slider.tokens.js +17 -23
  18. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  19. package/cjs/components/Slider/components/Double/Double.css +8 -8
  20. package/cjs/components/Slider/components/Double/Double.js +23 -58
  21. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  22. package/cjs/components/Slider/components/Single/Single.css +14 -14
  23. package/cjs/components/Slider/components/Single/Single.js +33 -64
  24. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  25. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  26. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  27. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  28. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  29. package/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  30. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  31. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  32. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  33. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  34. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  35. package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
  36. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  37. package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
  38. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  39. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  40. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  41. package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  42. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  43. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  44. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  45. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  46. package/cjs/components/Slider/utils/index.js +10 -28
  47. package/cjs/components/Slider/utils/index.js.map +1 -1
  48. package/cjs/components/Slider/variations/_view/base.js +1 -1
  49. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  50. package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
  51. package/cjs/index.css +26 -28
  52. package/cjs/utils/index.js.map +1 -1
  53. package/emotion/cjs/components/Select/Select.styles.js +5 -5
  54. package/emotion/cjs/components/Select/Select.tokens.js +16 -4
  55. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  56. package/emotion/cjs/components/Slider/Slider.js +2 -10
  57. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  58. package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
  59. package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
  60. package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
  61. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
  62. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  63. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  64. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  65. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
  66. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  67. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  68. package/emotion/cjs/components/Slider/utils/index.js +10 -28
  69. package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
  70. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +17 -17
  71. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  72. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  73. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +17 -17
  74. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  75. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  76. package/emotion/es/components/Select/Select.styles.js +5 -5
  77. package/emotion/es/components/Select/Select.tokens.js +16 -4
  78. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  79. package/emotion/es/components/Slider/Slider.js +2 -11
  80. package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
  81. package/emotion/es/components/Slider/Slider.tokens.js +17 -23
  82. package/emotion/es/components/Slider/components/Double/Double.js +19 -54
  83. package/emotion/es/components/Slider/components/Single/Single.js +34 -65
  84. package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
  85. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  86. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  87. package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
  88. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
  89. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  90. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  91. package/emotion/es/components/Slider/utils/index.js +10 -28
  92. package/emotion/es/components/Slider/variations/_view/base.js +1 -2
  93. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +17 -17
  94. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  95. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  96. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +17 -17
  97. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  98. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  99. package/es/components/Pagination/Pagination.css +13 -13
  100. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  101. package/es/components/Select/Select.css +13 -13
  102. package/es/components/Select/Select.styles.js +1 -1
  103. package/es/components/Select/Select.styles.js.map +1 -1
  104. package/es/components/Select/Select.styles_768h42.css +5 -0
  105. package/es/components/Select/Select.tokens.js +16 -4
  106. package/es/components/Select/Select.tokens.js.map +1 -1
  107. package/es/components/Select/ui/Inner/Inner.css +13 -13
  108. package/es/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  109. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  110. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  111. package/es/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_8oe5oy.css} +2 -2
  112. package/es/components/Slider/Slider.css +13 -15
  113. package/es/components/Slider/Slider.js +2 -11
  114. package/es/components/Slider/Slider.js.map +1 -1
  115. package/es/components/Slider/Slider.tokens.js +17 -23
  116. package/es/components/Slider/Slider.tokens.js.map +1 -1
  117. package/es/components/Slider/components/Double/Double.css +8 -8
  118. package/es/components/Slider/components/Double/Double.js +19 -54
  119. package/es/components/Slider/components/Double/Double.js.map +1 -1
  120. package/es/components/Slider/components/Single/Single.css +14 -14
  121. package/es/components/Slider/components/Single/Single.js +34 -65
  122. package/es/components/Slider/components/Single/Single.js.map +1 -1
  123. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  124. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  125. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  126. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  127. package/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  128. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  129. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  130. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  131. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  132. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  133. package/es/components/Slider/ui/Handler/Handler.js +87 -48
  134. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  135. package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
  136. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  137. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  138. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  139. package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  140. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  141. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  142. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  143. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  144. package/es/components/Slider/utils/index.js +10 -28
  145. package/es/components/Slider/utils/index.js.map +1 -1
  146. package/es/components/Slider/variations/_view/base.js +1 -1
  147. package/es/components/Slider/variations/_view/base.js.map +1 -1
  148. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  149. package/es/index.css +26 -28
  150. package/es/utils/index.js.map +1 -1
  151. package/package.json +2 -2
  152. package/styled-components/cjs/components/Select/Select.styles.js +2 -2
  153. package/styled-components/cjs/components/Select/Select.tokens.js +16 -4
  154. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +2 -2
  155. package/styled-components/cjs/components/Slider/Slider.js +2 -10
  156. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  157. package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
  158. package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
  159. package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
  160. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  161. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  162. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  163. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  164. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
  165. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  166. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  167. package/styled-components/cjs/components/Slider/utils/index.js +10 -28
  168. package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
  169. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +14 -14
  170. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  171. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  172. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +14 -14
  173. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  174. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  175. package/styled-components/es/components/Select/Select.styles.js +2 -2
  176. package/styled-components/es/components/Select/Select.tokens.js +16 -4
  177. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +2 -2
  178. package/styled-components/es/components/Slider/Slider.js +2 -11
  179. package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
  180. package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
  181. package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
  182. package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
  183. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  184. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  185. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  186. package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
  187. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
  188. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  189. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  190. package/styled-components/es/components/Slider/utils/index.js +10 -28
  191. package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
  192. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +14 -14
  193. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  194. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  195. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +14 -14
  196. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  197. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  198. package/types/components/Select/Select.tokens.d.ts +15 -3
  199. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  200. package/types/components/Slider/Slider.d.ts.map +1 -1
  201. package/types/components/Slider/Slider.tokens.d.ts +16 -22
  202. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  203. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  204. package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
  205. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  206. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  207. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  208. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  209. package/types/components/Slider/components/Single/Single.types.d.ts +7 -79
  210. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  211. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  212. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  213. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  214. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
  215. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  216. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  217. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
  218. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  219. package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
  220. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  221. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  222. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  223. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  224. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
  225. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  226. package/types/components/Slider/utils/index.d.ts +8 -26
  227. package/types/components/Slider/utils/index.d.ts.map +1 -1
  228. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  229. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  230. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  231. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -80
  232. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  233. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  234. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  235. package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -80
  236. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  237. package/types/utils/index.d.ts +1 -1
  238. package/types/utils/index.d.ts.map +1 -1
  239. package/cjs/components/Select/Select.styles_1nzals0.css +0 -5
  240. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  241. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  242. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  243. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  244. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
  245. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  246. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  247. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  248. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  249. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  250. package/es/components/Select/Select.styles_1nzals0.css +0 -5
  251. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  252. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  253. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  254. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  255. package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
  256. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  257. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  258. package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  259. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  260. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  261. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
  262. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +0 -1
@@ -1,7 +1,5 @@
1
1
  import React, { useRef, useEffect } from 'react';
2
2
  import { useIsomorphicLayoutEffect } from '../../../../hooks';
3
- import { classes } from '../../Slider.tokens';
4
- import { cx } from '../../../../utils';
5
3
  import { Fill, Rail, RailWrap, Slider } from './SliderBase.styles';
6
4
  export var SliderBase = function SliderBase(_ref) {
7
5
  var max = _ref.max,
@@ -15,9 +13,6 @@ export var SliderBase = function SliderBase(_ref) {
15
13
  labelPlacement = _ref.labelPlacement,
16
14
  rangeValuesPlacement = _ref.rangeValuesPlacement,
17
15
  onChange = _ref.onChange,
18
- orientation = _ref.orientation,
19
- size = _ref.size,
20
- sliderAlign = _ref.sliderAlign,
21
16
  _ref$settings = _ref.settings,
22
17
  settings = _ref$settings === void 0 ? {} : _ref$settings;
23
18
  var _settings$indent = settings.indent,
@@ -26,43 +21,34 @@ export var SliderBase = function SliderBase(_ref) {
26
21
  fontSizeMultiplier = _settings$fontSizeMul === void 0 ? 16 : _settings$fontSizeMul;
27
22
  var ref = useRef(null);
28
23
  var gap = indent * fontSizeMultiplier * 2;
29
- var isVertical = orientation === 'vertical';
30
24
  useEffect(function () {
31
25
  var resizeHandler = function resizeHandler() {
32
26
  if (ref.current) {
33
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
27
+ var railSize = ref.current.offsetWidth - gap;
34
28
  var totalSteps = max - min;
35
29
  setStepSize(railSize / totalSteps);
36
30
  }
37
31
  };
38
32
  resizeHandler();
39
- }, [labelPlacement, rangeValuesPlacement, gap, isVertical,
40
- // для перерасчета размеров
41
- size, sliderAlign]);
33
+ }, [labelPlacement, rangeValuesPlacement]);
42
34
  var onHandleChange = function onHandleChange(e) {
43
35
  if (!onChange || disabled) {
44
36
  return;
45
37
  }
46
38
  var _e$currentTarget$getB = e.currentTarget.getBoundingClientRect(),
47
39
  x = _e$currentTarget$getB.x,
48
- width = _e$currentTarget$getB.width,
49
- y = _e$currentTarget$getB.y,
50
- height = _e$currentTarget$getB.height;
51
- var lastPos = isVertical ? e.clientY - y : e.clientX - x;
52
- var sliderWidth = isVertical ? height : width;
53
- var position = min + lastPos / (sliderWidth - gap) * (max - min);
40
+ width = _e$currentTarget$getB.width;
41
+ var lastX = e.clientX - x;
42
+ var position = min + lastX / (width - gap) * (max - min);
54
43
  var result = Math.max(min, Math.min(max, position));
55
- var data = isVertical ? {
56
- lastY: lastPos
57
- } : {
58
- lastX: lastPos
59
- };
60
- onChange(result, data);
44
+ onChange(result, {
45
+ lastX: lastX
46
+ });
61
47
  };
62
48
  useIsomorphicLayoutEffect(function () {
63
49
  var resizeHandler = function resizeHandler() {
64
50
  if (ref.current) {
65
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
51
+ var railSize = ref.current.offsetWidth - gap;
66
52
  var totalSteps = max - min;
67
53
  setStepSize(railSize / totalSteps);
68
54
  }
@@ -72,18 +58,13 @@ export var SliderBase = function SliderBase(_ref) {
72
58
  return function () {
73
59
  return window.removeEventListener('resize', resizeHandler);
74
60
  };
75
- }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement, isVertical]);
76
- var fillStyle = isVertical ? {
77
- top: "".concat(railFillXPosition, "px"),
78
- height: "".concat(railFillWidth, "px"),
79
- width: '100%'
80
- } : {
61
+ }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement]);
62
+ var fillStyle = {
81
63
  left: "".concat(railFillXPosition, "px"),
82
64
  width: "".concat(railFillWidth, "px")
83
65
  };
84
66
  return /*#__PURE__*/React.createElement(Slider, {
85
- ref: ref,
86
- className: cx(orientation === 'vertical' && classes.verticalOrientation)
67
+ ref: ref
87
68
  }, /*#__PURE__*/React.createElement(RailWrap, {
88
69
  "aria-hidden": "true",
89
70
  onMouseDown: onHandleChange
@@ -1,15 +1,15 @@
1
1
  import styled from 'styled-components';
2
2
  import { applyHidden } from '../../../../mixins';
3
- import { classes, tokens } from '../../Slider.tokens';
4
- export var Rail = /*#__PURE__*/styled.div.withConfig({
5
- componentId: "plasma-new-hope__sc-ik0bjb-0"
6
- })(["position:relative;top:50%;height:var(", ");border-radius:var(", ");background-color:var(", ");overflow:hidden;transform:translateY(-50%);"], tokens.railThickness, tokens.railBorderRadius, tokens.railBackgroundColor);
3
+ import { tokens } from '../../Slider.tokens';
7
4
  export var Slider = /*#__PURE__*/styled.div.withConfig({
8
- componentId: "plasma-new-hope__sc-ik0bjb-1"
9
- })(["flex:1;position:relative;user-select:none;height:var(", ");&.", "{width:var(", ");height:auto;", "{top:0;left:50%;transform:translateX(-50%);width:var(", ");height:100%;}}"], tokens.size, classes.verticalOrientation, tokens.size, Rail, tokens.railThickness);
5
+ componentId: "plasma-new-hope__sc-ik0bjb-0"
6
+ })(["flex:1;position:relative;user-select:none;height:var(", ");"], tokens.height);
10
7
  export var RailWrap = /*#__PURE__*/styled.div.withConfig({
11
- componentId: "plasma-new-hope__sc-ik0bjb-2"
8
+ componentId: "plasma-new-hope__sc-ik0bjb-1"
12
9
  })(["height:100%;"]);
10
+ export var Rail = /*#__PURE__*/styled.div.withConfig({
11
+ componentId: "plasma-new-hope__sc-ik0bjb-2"
12
+ })(["position:relative;top:50%;height:var(", ");border-radius:var(", ");background-color:var(", ");overflow:hidden;transform:translateY(-50%);"], tokens.railHeight, tokens.railBorderRadius, tokens.railBackgroundColor);
13
13
  export var Fill = /*#__PURE__*/styled.div.withConfig({
14
14
  componentId: "plasma-new-hope__sc-ik0bjb-3"
15
15
  })(["position:absolute;height:100%;top:0;left:0;background:var(", ");width:0;"], tokens.fillColor);
@@ -1,9 +1,5 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["size", "orientation", "stepSize", "onChangeCommitted", "onChange", "position", "min", "max", "bounds", "zIndex", "disabled", "side", "showCurrentValue", "startOffset", "endOffset", "value", "valuePlacement"];
1
+ var _excluded = ["stepSize", "onChangeCommitted", "onChange", "xPosition", "min", "max", "bounds", "zIndex", "disabled", "side", "showCurrentValue", "startOffset", "endOffset", "value"];
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -14,23 +10,28 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
14
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
11
  import React, { useRef, forwardRef } from 'react';
16
12
  import Draggable from 'react-draggable';
17
- import { cx } from '../../../../utils';
18
13
  import { getSliderThumbValue, getOffsets } from '../../utils';
19
14
  import { Thumb } from '../Thumb/Thumb';
20
- import { classes } from '../../Slider.tokens';
21
15
  import { HandlerStyled, StyledValue } from './Handler.styles';
22
- import { computeKeyPressData } from './computeKeyPressData';
23
16
 
24
17
  // TODO: PLASMA-1707
25
18
 
19
+ var KeyboardSupport = {
20
+ PageUp: 33,
21
+ PageDown: 34,
22
+ End: 35,
23
+ Home: 36,
24
+ ArrowLeft: 37,
25
+ ArrowUp: 38,
26
+ ArrowRight: 39,
27
+ ArrowDown: 40
28
+ };
26
29
  export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
27
- var size = _ref.size,
28
- orientation = _ref.orientation,
29
- stepSize = _ref.stepSize,
30
+ var stepSize = _ref.stepSize,
30
31
  onChangeCommitted = _ref.onChangeCommitted,
31
32
  onChange = _ref.onChange,
32
- _ref$position = _ref.position,
33
- position = _ref$position === void 0 ? 0 : _ref$position,
33
+ _ref$xPosition = _ref.xPosition,
34
+ xPosition = _ref$xPosition === void 0 ? 0 : _ref$xPosition,
34
35
  min = _ref.min,
35
36
  max = _ref.max,
36
37
  _ref$bounds = _ref.bounds,
@@ -45,88 +46,122 @@ export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
45
46
  _ref$endOffset = _ref.endOffset,
46
47
  endOffset = _ref$endOffset === void 0 ? 0 : _ref$endOffset,
47
48
  value = _ref.value,
48
- valuePlacement = _ref.valuePlacement,
49
49
  rest = _objectWithoutProperties(_ref, _excluded);
50
- var isVertical = orientation === 'vertical';
51
50
  var lastOnChangeValue = useRef();
52
- var _getOffsets = getOffsets(ref, side, isVertical),
51
+ var _getOffsets = getOffsets(ref, side),
53
52
  _getOffsets2 = _slicedToArray(_getOffsets, 2),
54
- startClientOffset = _getOffsets2[0],
55
- endClientOffset = _getOffsets2[1];
53
+ offsetLeft = _getOffsets2[0],
54
+ offsetRight = _getOffsets2[1];
56
55
  var _bounds = _slicedToArray(bounds, 2),
57
- startValueBound = _bounds[0],
58
- endValueBound = _bounds[1];
59
- var startPositionBound = startValueBound ? (startValueBound - min) * stepSize : null;
60
- var endPositionBound = endValueBound ? (endValueBound - min) * stepSize : null;
61
- var dragPosition = typeof position === 'number' ? {
62
- x: isVertical ? 0 : position,
63
- y: isVertical ? position : 0
56
+ leftValueBound = _bounds[0],
57
+ rightValueBound = _bounds[1];
58
+ var leftPositionBound = leftValueBound ? (leftValueBound - min) * stepSize : null;
59
+ var rightPositionBound = rightValueBound ? (rightValueBound - min) * stepSize : null;
60
+ var position = typeof xPosition === 'number' ? {
61
+ x: xPosition,
62
+ y: 0
64
63
  } : undefined;
65
64
  var tabIndex = disabled ? -1 : 0;
66
- var computedBounds = _defineProperty(_defineProperty({}, isVertical ? 'top' : 'left', (startPositionBound !== null && startPositionBound !== void 0 ? startPositionBound : 0) - (startClientOffset ? stepSize : 0)), isVertical ? 'bottom' : 'right', (endPositionBound !== null && endPositionBound !== void 0 ? endPositionBound : stepSize * (max - min)) - (endClientOffset ? stepSize : 0));
67
- var showCurrentValueCondition = showCurrentValue && (position >= startOffset && position <= max * stepSize - endOffset || position === 0 && value !== 0);
65
+ var computedBounds = {
66
+ left: (leftPositionBound !== null && leftPositionBound !== void 0 ? leftPositionBound : 0) - (offsetLeft ? stepSize : 0),
67
+ right: (rightPositionBound !== null && rightPositionBound !== void 0 ? rightPositionBound : stepSize * (max - min)) - (offsetRight ? stepSize : 0)
68
+ };
69
+ var showCurrentValueCondition = showCurrentValue && (xPosition >= startOffset && xPosition <= max * stepSize - endOffset || xPosition === 0 && value !== 0);
68
70
  var onDrag = function onDrag(_, data) {
69
- var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
71
+ var newValue = getSliderThumbValue(data.x, stepSize, min, max);
70
72
  if (lastOnChangeValue.current !== newValue) {
71
73
  onChange === null || onChange === void 0 || onChange(newValue, data);
72
74
  lastOnChangeValue.current = newValue;
73
75
  }
74
76
  };
75
77
  var onStop = function onStop(_, data) {
76
- var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
78
+ var newValue = getSliderThumbValue(data.x, stepSize, min, max);
77
79
  onChangeCommitted && onChangeCommitted(newValue, data);
78
80
  };
79
81
  var onKeyPress = function onKeyPress(event) {
80
82
  event.persist();
81
- var computedMultipleSteps = stepSize * (rest.multipleStepSize / 100 * max);
82
- var data = computeKeyPressData(event, {
83
- isVertical: isVertical,
84
- stepSize: stepSize,
85
- position: position,
86
- max: max,
87
- computedMultipleSteps: computedMultipleSteps
88
- });
89
- if (!data) {
83
+ var keyCode = event.keyCode,
84
+ target = event.target;
85
+ if (!Object.values(KeyboardSupport).includes(keyCode)) {
90
86
  return;
91
87
  }
88
+ var ArrowUp = KeyboardSupport.ArrowUp,
89
+ ArrowRight = KeyboardSupport.ArrowRight,
90
+ ArrowDown = KeyboardSupport.ArrowDown,
91
+ ArrowLeft = KeyboardSupport.ArrowLeft,
92
+ Home = KeyboardSupport.Home,
93
+ End = KeyboardSupport.End,
94
+ PageDown = KeyboardSupport.PageDown,
95
+ PageUp = KeyboardSupport.PageUp;
96
+ var computedMultipleSteps = stepSize * (rest.multipleStepSize / 100 * max);
97
+ var data = {
98
+ x: 0,
99
+ deltaX: stepSize,
100
+ lastX: xPosition,
101
+ y: 0,
102
+ deltaY: 0,
103
+ lastY: 0,
104
+ node: target
105
+ };
106
+ switch (keyCode) {
107
+ case ArrowUp:
108
+ case ArrowRight:
109
+ data.x = xPosition + stepSize;
110
+ break;
111
+ case ArrowDown:
112
+ case ArrowLeft:
113
+ data.x = xPosition - stepSize;
114
+ data.deltaX = -stepSize;
115
+ break;
116
+ case PageUp:
117
+ data.x = xPosition + computedMultipleSteps;
118
+ data.deltaX = computedMultipleSteps;
119
+ break;
120
+ case PageDown:
121
+ data.x = xPosition - computedMultipleSteps;
122
+ data.deltaX = -computedMultipleSteps;
123
+ break;
124
+ case End:
125
+ data.x = max * stepSize;
126
+ break;
127
+ case Home:
128
+ data.x = 0;
129
+ break;
130
+ default:
131
+ data.x = 0;
132
+ }
92
133
  var left = computedBounds.left,
93
- right = computedBounds.right,
94
- top = computedBounds.top,
95
- bottom = computedBounds.bottom;
134
+ right = computedBounds.right;
96
135
 
97
136
  /*
98
137
  * INFO: Находим значение в диапазоне между указанными левой и правой границами.
99
- * Или между верхней и нижней
100
138
  * Необходимо для правильного расчета положения SliderThumb.
101
139
  * см. функция clamp
102
140
  */
103
- var boundedValue = isVertical ? Math.max(Math.min(bottom, data.y), top) : Math.max(Math.min(right, data.x), left);
141
+ var boundedValue = Math.max(Math.min(right, data.x), left);
104
142
  var computedValue = getSliderThumbValue(boundedValue, stepSize, min, max);
105
143
  lastOnChangeValue.current = computedValue;
106
144
  onChangeCommitted && onChangeCommitted(computedValue, data);
107
145
  };
108
146
  return /*#__PURE__*/React.createElement(Draggable, {
109
- axis: isVertical ? 'y' : 'x',
147
+ axis: "x",
110
148
  bounds: computedBounds,
111
- grid: isVertical ? [1, stepSize] : [stepSize, 1],
149
+ grid: [stepSize, 1],
112
150
  onStop: onStop,
113
151
  onDrag: onDrag,
114
- position: dragPosition,
152
+ position: position,
115
153
  disabled: disabled
116
154
  }, /*#__PURE__*/React.createElement(HandlerStyled, {
117
155
  ref: ref,
118
156
  style: {
119
157
  zIndex: zIndex
120
158
  },
121
- className: cx(isVertical && classes.verticalOrientation, valuePlacement === 'left' && classes.valuePlacementLeft),
122
- isLarge: size === 'large',
123
159
  onKeyDown: onKeyPress
124
- }, size !== 'none' && /*#__PURE__*/React.createElement(Thumb, _extends({
160
+ }, /*#__PURE__*/React.createElement(Thumb, _extends({
125
161
  tabIndex: tabIndex,
126
162
  min: min,
127
163
  max: max,
128
164
  value: value,
129
- disabled: disabled,
130
- orientation: orientation
165
+ disabled: disabled
131
166
  }, rest)), showCurrentValueCondition && /*#__PURE__*/React.createElement(StyledValue, null, value)));
132
167
  });
@@ -1,11 +1,8 @@
1
1
  import styled from 'styled-components';
2
- import { classes, tokens } from '../../Slider.tokens';
3
- export var StyledValue = /*#__PURE__*/styled.span.withConfig({
4
- componentId: "plasma-new-hope__sc-a1py3c-0"
5
- })(["position:absolute;z-index:1;top:var(", ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.currentValueTopOffset, tokens.valueFontFamily, tokens.valueFontSize, tokens.valueFontStyle, tokens.valueFontWeight, tokens.valueLetterSpacing, tokens.valueLineHeight);
2
+ import { tokens } from '../../Slider.tokens';
6
3
  export var HandlerStyled = /*#__PURE__*/styled.div.withConfig({
4
+ componentId: "plasma-new-hope__sc-a1py3c-0"
5
+ })(["cursor:pointer;position:absolute;z-index:1;top:0;left:0;"]);
6
+ export var StyledValue = /*#__PURE__*/styled.span.withConfig({
7
7
  componentId: "plasma-new-hope__sc-a1py3c-1"
8
- })(["cursor:pointer;position:absolute;z-index:1;top:0;left:0;bottom:0;display:flex;align-items:center;justify-content:center;--thumb-size:", ";&.", "{right:0;bottom:auto;align-items:flex-start;justify-content:center;", "{margin:0;top:0;bottom:0;right:0;left:calc(var(", ") - (var(", ") - var(--thumb-size)) / 2 + 0.25rem);align-items:center;justify-content:flex-start;}}&.", "{", "{left:auto;right:calc(var(", ") - (var(", ") - var(--thumb-size)) / 2 + 0.3125rem);justify-content:flex-end;}}"], function (_ref) {
9
- var isLarge = _ref.isLarge;
10
- return isLarge ? "var(".concat(tokens.thumbSizeLarge, ")") : "var(".concat(tokens.thumbSize, ")");
11
- }, classes.verticalOrientation, StyledValue, tokens.size, tokens.size, classes.valuePlacementLeft, StyledValue, tokens.size, tokens.size);
8
+ })(["position:absolute;z-index:1;top:var(", ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.currentValueTopOffset, tokens.currentValueFontFamily, tokens.currentValueFontSize, tokens.currentValueFontStyle, tokens.currentValueFontWeight, tokens.currentValueLetterSpacing, tokens.currentValueLineHeight);
@@ -1,4 +1,4 @@
1
- var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled", "orientation"];
1
+ var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -12,7 +12,6 @@ export var Thumb = function Thumb(_ref) {
12
12
  ariaValueMin = _ref$ariaValueMin === void 0 ? min : _ref$ariaValueMin,
13
13
  ariaLabel = _ref.ariaLabel,
14
14
  disabled = _ref.disabled,
15
- orientation = _ref.orientation,
16
15
  rest = _objectWithoutProperties(_ref, _excluded);
17
16
  return /*#__PURE__*/React.createElement(ThumbBase, _extends({
18
17
  role: "slider",
@@ -21,6 +20,6 @@ export var Thumb = function Thumb(_ref) {
21
20
  "aria-valuemax": max,
22
21
  "aria-valuenow": value,
23
22
  disabled: disabled,
24
- "aria-orientation": orientation
23
+ "aria-orientation": "horizontal"
25
24
  }, rest));
26
25
  };
@@ -3,8 +3,8 @@ import { addFocus } from '../../../../mixins';
3
3
  import { tokens } from '../../Slider.tokens';
4
4
  export var ThumbBase = /*#__PURE__*/styled.div.withConfig({
5
5
  componentId: "plasma-new-hope__sc-13botku-0"
6
- })(["width:var(--thumb-size);height:var(--thumb-size);min-width:var(--thumb-size);min-height:var(--thumb-size);position:relative;border-radius:50%;box-sizing:border-box;background:var(", ");margin:0.0625rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", ");margin:-0.0625rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", ""], tokens.thumbBackgroundColor, tokens.thumbBorderColor, tokens.thumbFocusBorderColor, /*#__PURE__*/addFocus({
7
- outlineOffset: '0.0625rem',
6
+ })(["width:var(", ");height:var(", ");position:relative;left:-0.125rem;top:-0.125rem;border-radius:50%;box-sizing:border-box;background:var(", ");margin:0.125rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", ");margin:-0.125rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", ""], tokens.thumbSize, tokens.thumbSize, tokens.thumbBackgroundColor, tokens.thumbBorderColor, tokens.thumbFocusBorderColor, /*#__PURE__*/addFocus({
7
+ outlineOffset: '0.125rem',
8
8
  outlineSize: '0.125rem',
9
9
  outlineRadius: '50%',
10
10
  outlineColor: /*#__PURE__*/"var(".concat(tokens.thumbFocusBorderColor, ")")
@@ -6,8 +6,8 @@
6
6
  * @param {number} max
7
7
  * @return {number}
8
8
  */
9
- export function getSliderThumbValue(handleCenterPosRelative, stepSize, min, max) {
10
- var newValue = Math.round(handleCenterPosRelative / stepSize) + min;
9
+ export function getSliderThumbValue(handleCenterXRelative, stepSize, min, max) {
10
+ var newValue = Math.round(handleCenterXRelative / stepSize) + min;
11
11
  return Math.min(Math.max(newValue, min), max);
12
12
  }
13
13
 
@@ -18,11 +18,11 @@ export function getSliderThumbValue(handleCenterPosRelative, stepSize, min, max)
18
18
  * @param {'left' | 'right'} side
19
19
  * @return Array<number>
20
20
  */
21
- export function getOffsets(ref, side, isVertical) {
21
+ export function getOffsets(ref, side) {
22
22
  if (!ref || !('current' in ref) || !ref.current || !side) {
23
23
  return [0, 0];
24
24
  }
25
- var size = isVertical ? ref.current.clientHeight : ref.current.clientWidth;
25
+ var size = ref.current.clientWidth;
26
26
  if (side === 'left') {
27
27
  return [0, size];
28
28
  }
@@ -33,33 +33,15 @@ export function getOffsets(ref, side, isVertical) {
33
33
  }
34
34
  export var sizeData = {
35
35
  s: {
36
- small: {
37
- indent: 0.5,
38
- fontSizeMultiplier: 16
39
- },
40
- large: {
41
- indent: 0.625,
42
- fontSizeMultiplier: 16
43
- }
36
+ indent: 0.5,
37
+ fontSizeMultiplier: 16
44
38
  },
45
39
  m: {
46
- small: {
47
- indent: 0.5,
48
- fontSizeMultiplier: 16
49
- },
50
- large: {
51
- indent: 0.625,
52
- fontSizeMultiplier: 16
53
- }
40
+ indent: 0.75,
41
+ fontSizeMultiplier: 16
54
42
  },
55
43
  l: {
56
- small: {
57
- indent: 0.5,
58
- fontSizeMultiplier: 16
59
- },
60
- large: {
61
- indent: 0.625,
62
- fontSizeMultiplier: 16
63
- }
44
+ indent: 0.75,
45
+ fontSizeMultiplier: 16
64
46
  }
65
47
  };
@@ -1,3 +1,2 @@
1
1
  import { css } from 'styled-components';
2
- import { classes } from '../../Slider.tokens';
3
- export var base = /*#__PURE__*/css(["&.", "{height:100%;display:inline-flex;}"], classes.verticalOrientation);
2
+ export var base = /*#__PURE__*/css([""]);
@@ -8,22 +8,22 @@ export var config = {
8
8
  },
9
9
  variations: {
10
10
  size: {
11
- xs: /*#__PURE__*/css(["", ":0.125rem;", ":0.5rem;", ":0.125rem;", ":1rem;", ":0.5rem 0.5rem 0.5rem 0.375rem;", ":0.25rem 0.5rem 0.25rem 0.375rem;", ":0.375rem;", ":1rem;", ":1rem;", ":0 0.25rem 0 0;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.875rem;", ":0.875rem;", ":0.25rem;", ":0.25rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.125rem;", ":1.25rem;", ":0.375rem;", ":0.625rem;", ":0.25rem;", ":0rem;", ":0.75rem;", ":0 -0.125rem 0 0.25rem;", ":0 0 0 0.375rem;", ":2rem;", ":0.75rem 0 0.75rem;", ":0.5rem 0 0.625rem;", ":0.5rem 0 0.25rem;", ":0.375rem;", ":0;", ":0.25rem;", ":1rem;", ":1rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.itemIconMargin, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight),
12
- s: /*#__PURE__*/css(["", ":0.125rem;", ":0.625rem;", ":0.125rem;", ":1.5rem;", ":0.5rem 0.75rem 0.5rem 0.675rem;", ":0.25rem 0.75rem 0.25rem 0.675rem;", ":0.5rem;", ":1.5rem;", ":1rem;", ":0 0.375rem 0 0;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":1.25rem;", ":0.875rem;", ":0.375rem;", ":0.25rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":1.75rem;", ":0.5rem;", ":0.75rem;", ":0.375rem;", ":0rem;", ":0.75rem;", ":0 -0.125rem 0 0.25rem;", ":0 0 0 0.375rem;", ":2.5rem;", ":1rem 0 1rem;", ":0.75rem 0 0.875rem;", ":0.75rem 0 0.25rem;", ":0.5rem;", ":0;", ":0.25rem;", ":1.5rem;", ":1rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.itemIconMargin, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight),
13
- m: /*#__PURE__*/css(["", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":1.5rem;", ":0.75rem 0.75rem 0.75rem 0.75rem;", ":0.5rem 0.75rem 0.5rem 0.75rem;", ":0.625rem;", ":0 0.375rem 0 0;", ":1.5rem;", ":1.5rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":1.25rem;", ":1.25rem;", ":0.375rem;", ":0.375rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.375rem;", ":2.25rem;", ":0.875rem;", ":0.625rem;", ":0.5rem;", ":0rem;", ":1rem;", ":0 -0.125rem 0 0.375rem;", ":0 0 0 0.625rem;", ":3rem;", ":1.25rem 0 1.25rem;", ":0.875rem 0 1rem;", ":0.875rem 0 0.25rem;", ":0.625rem;", ":0.125rem;", ":0.25rem;", ":1.5rem;", ":1.5rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconMargin, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight),
14
- l: /*#__PURE__*/css(["", ":0.125rem;", ":0.875rem;", ":0.125rem;", ":1.5rem;", ":1rem 1rem 1rem 0.875rem;", ":0.75rem 1rem 0.75rem 0.875rem;", ":0.75rem;", ":0 0.5rem 0 0;", ":1.5rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.25rem;", ":1.25rem;", ":0.375rem;", ":0.375rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.5rem;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1rem;", ":0 -0.125rem 0 0.5rem;", ":0 0 0 0.75rem;", ":3.5rem;", ":1.5rem 0 1.5rem;", ":1rem 0 1.125rem;", ":1rem 0 0.25rem;", ":0.75rem;", ":0.125rem;", ":0.25rem;", ":1.5rem;", ":1.5rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconMargin, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight)
11
+ xs: /*#__PURE__*/css(["", ":0.125rem;", ":0.5rem;", ":0.125rem;", ":1rem;", ":0.5rem 0.5rem 0.5rem 0.375rem;", ":0.25rem 0.5rem 0.25rem 0.375rem;", ":0.375rem;", ":1rem;", ":1rem;", ":0 0.25rem 0 0;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.875rem;", ":0.875rem;", ":0.25rem;", ":0.25rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.125rem;", ":1.25rem;", ":0.375rem;", ":0.625rem;", ":0.25rem;", ":0rem;", ":0.75rem;", ":0 -0.125rem 0 0.25rem;", ":0 0 0 0.375rem;", ":2rem;", ":0.75rem 0 0.75rem;", ":0.5rem 0 0.625rem;", ":0.5rem 0 0.25rem;", ":0.375rem;", ":0;", ":0.25rem;", ":1rem;", ":1rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.itemIconMargin, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.labelFontFamily, selectTokens.labelFontSize, selectTokens.labelFontStyle, selectTokens.labelFontWeight, selectTokens.labelFontLetterSpacing, selectTokens.labelFontLineHeight, selectTokens.helperTextFontFamily, selectTokens.helperTextFontSize, selectTokens.helperTextFontStyle, selectTokens.helperTextFontWeight, selectTokens.helperTextFontLetterSpacing, selectTokens.helperTextFontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight),
12
+ s: /*#__PURE__*/css(["", ":0.125rem;", ":0.625rem;", ":0.125rem;", ":1.5rem;", ":0.5rem 0.75rem 0.5rem 0.675rem;", ":0.25rem 0.75rem 0.25rem 0.675rem;", ":0.5rem;", ":1.5rem;", ":1rem;", ":0 0.375rem 0 0;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1.25rem;", ":0.875rem;", ":0.375rem;", ":0.25rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.25rem;", ":1.75rem;", ":0.5rem;", ":0.75rem;", ":0.375rem;", ":0rem;", ":0.75rem;", ":0 -0.125rem 0 0.25rem;", ":0 0 0 0.375rem;", ":2.5rem;", ":1rem 0 1rem;", ":0.75rem 0 0.875rem;", ":0.75rem 0 0.25rem;", ":0.5rem;", ":0;", ":0.25rem;", ":1.5rem;", ":1rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.itemIconMargin, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.labelFontFamily, selectTokens.labelFontSize, selectTokens.labelFontStyle, selectTokens.labelFontWeight, selectTokens.labelFontLetterSpacing, selectTokens.labelFontLineHeight, selectTokens.helperTextFontFamily, selectTokens.helperTextFontSize, selectTokens.helperTextFontStyle, selectTokens.helperTextFontWeight, selectTokens.helperTextFontLetterSpacing, selectTokens.helperTextFontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight),
13
+ m: /*#__PURE__*/css(["", ":0.125rem;", ":0.75rem;", ":0.125rem;", ":1.5rem;", ":0.75rem 0.75rem 0.75rem 0.75rem;", ":0.5rem 0.75rem 0.5rem 0.75rem;", ":0.625rem;", ":0 0.375rem 0 0;", ":1.5rem;", ":1.5rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1.25rem;", ":1.25rem;", ":0.375rem;", ":0.375rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.375rem;", ":2.25rem;", ":0.875rem;", ":0.625rem;", ":0.5rem;", ":0rem;", ":1rem;", ":0 -0.125rem 0 0.375rem;", ":0 0 0 0.625rem;", ":3rem;", ":1.25rem 0 1.25rem;", ":0.875rem 0 1rem;", ":0.875rem 0 0.25rem;", ":0.625rem;", ":0.125rem;", ":0.25rem;", ":1.5rem;", ":1.5rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconMargin, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.labelFontFamily, selectTokens.labelFontSize, selectTokens.labelFontStyle, selectTokens.labelFontWeight, selectTokens.labelFontLetterSpacing, selectTokens.labelFontLineHeight, selectTokens.helperTextFontFamily, selectTokens.helperTextFontSize, selectTokens.helperTextFontStyle, selectTokens.helperTextFontWeight, selectTokens.helperTextFontLetterSpacing, selectTokens.helperTextFontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight),
14
+ l: /*#__PURE__*/css(["", ":0.125rem;", ":0.875rem;", ":0.125rem;", ":1.5rem;", ":1rem 1rem 1rem 0.875rem;", ":0.75rem 1rem 0.75rem 0.875rem;", ":0.75rem;", ":0 0.5rem 0 0;", ":1.5rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1.25rem;", ":1.25rem;", ":0.375rem;", ":0.375rem;", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":0.375rem;", ":0.25rem;", ":0.5rem;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1rem;", ":0 -0.125rem 0 0.5rem;", ":0 0 0 0.75rem;", ":3.5rem;", ":1.5rem 0 1.5rem;", ":1rem 0 1.125rem;", ":1rem 0 0.25rem;", ":0.75rem;", ":0.125rem;", ":0.25rem;", ":1.5rem;", ":1.5rem;"], selectTokens.padding, selectTokens.borderRadius, selectTokens.focusOffset, selectTokens.itemHeight, selectTokens.itemPadding, selectTokens.itemPaddingTight, selectTokens.itemBorderRadius, selectTokens.itemIconMargin, selectTokens.itemIconSize, selectTokens.itemIconSizeTight, selectTokens.fontFamily, selectTokens.fontSize, selectTokens.fontStyle, selectTokens.fontWeight, selectTokens.fontLetterSpacing, selectTokens.fontLineHeight, selectTokens.labelFontFamily, selectTokens.labelFontSize, selectTokens.labelFontStyle, selectTokens.labelFontWeight, selectTokens.labelFontLetterSpacing, selectTokens.labelFontLineHeight, selectTokens.helperTextFontFamily, selectTokens.helperTextFontSize, selectTokens.helperTextFontStyle, selectTokens.helperTextFontWeight, selectTokens.helperTextFontLetterSpacing, selectTokens.helperTextFontLineHeight, selectTokens.checkboxTriggerSize, selectTokens.checkboxTriggerSizeTight, selectTokens.checkboxTriggerBorderRadius, selectTokens.checkboxTriggerBorderRadiusTight, selectTokens.checkboxFillColor, selectTokens.checkboxIconColor, selectTokens.checkboxTriggerBorderColor, selectTokens.indicatorSize, selectTokens.chipGap, selectTokens.chipBorderRadius, selectTokens.chipHeight, selectTokens.chipPaddingRight, selectTokens.chipPaddingLeft, selectTokens.chipClearContentMarginLeft, selectTokens.chipClearContentMarginRight, selectTokens.chipCloseIconSize, selectTokens.targetButtonArrowMargin, selectTokens.targetTextfieldArrowMargin, selectTokens.targetHeight, selectTokens.targetButtonPadding, selectTokens.targetTextfieldPadding, selectTokens.targetTextfieldChipPadding, selectTokens.labelOffset, selectTokens.innerLabelGap, selectTokens.helperTextOffset, selectTokens.spinnerSize, selectTokens.spinnerSizeTight)
15
15
  },
16
16
  view: {
17
- "default": /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary-hover);", ":var(--inverse-text-primary-active);", ":var(--inverse-text-secondary);", ":var(--inverse-text-secondary-hover);", ":var(--inverse-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--surface-solid-default-hover);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);"], selectTokens.helperTextColor, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
18
- positive: /*#__PURE__*/css(["", ":var(--text-positive);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-positive);", ":var(--surface-positive-hover);", ":var(--surface-positive-active);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);"], selectTokens.helperTextColor, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
19
- warning: /*#__PURE__*/css(["", ":var(--text-warning);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-warning);", ":var(--surface-warning-hover);", ":var(--surface-warning-active);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);"], selectTokens.helperTextColor, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
20
- negative: /*#__PURE__*/css(["", ":var(--text-negative);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-negative);", ":var(--surface-negative-hover);", ":var(--surface-negative-active);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);"], selectTokens.helperTextColor, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
21
- accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);"], selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
22
- secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--surface-transparent-secondary-active);"], selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
23
- clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-clear);", ":var(--surface-clear);", ":var(--surface-clear);"], selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
24
- dark: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-transparent-deep);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-light-surface-transparent-deep-active);"], selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
25
- black: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-solid-default);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-light-surface-solid-default-active);"], selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
26
- white: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-light-text-primary-hover);", ":var(--on-light-text-primary-active);", ":var(--on-light-text-secondary);", ":var(--on-light-text-secondary-hover);", ":var(--on-light-text-secondary-active);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-dark-surface-solid-default-active);"], selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive)
17
+ "default": /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary-hover);", ":var(--inverse-text-primary-active);", ":var(--inverse-text-secondary);", ":var(--inverse-text-secondary-hover);", ":var(--inverse-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--surface-solid-default-hover);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);"], selectTokens.helperTextColor, selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
18
+ positive: /*#__PURE__*/css(["", ":var(--text-positive);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-positive);", ":var(--surface-positive-hover);", ":var(--surface-positive-active);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);"], selectTokens.helperTextColor, selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
19
+ warning: /*#__PURE__*/css(["", ":var(--text-warning);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-warning);", ":var(--surface-warning-hover);", ":var(--surface-warning-active);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);"], selectTokens.helperTextColor, selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
20
+ negative: /*#__PURE__*/css(["", ":var(--text-negative);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-negative);", ":var(--surface-negative-hover);", ":var(--surface-negative-active);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);"], selectTokens.helperTextColor, selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetTextfieldArrowColor, selectTokens.targetTextfieldArrowColorHover, selectTokens.targetTextfieldArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, selectTokens.targetTextfieldBackgroundColor, selectTokens.targetTextfieldBackgroundColorOpened),
21
+ accent: /*#__PURE__*/css(["", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-hover);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);"], selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
22
+ secondary: /*#__PURE__*/css(["", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-hover);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--surface-transparent-secondary-active);"], selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
23
+ clear: /*#__PURE__*/css(["", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-primary);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-clear);", ":var(--surface-clear);", ":var(--surface-clear);"], selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
24
+ dark: /*#__PURE__*/css(["", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-transparent-deep);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-light-surface-transparent-deep-active);"], selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
25
+ black: /*#__PURE__*/css(["", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--on-dark-text-primary);", ":var(--on-dark-text-primary-hover);", ":var(--on-dark-text-primary-active);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary-hover);", ":var(--on-dark-text-secondary-active);", ":var(--on-light-surface-solid-default);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-light-surface-solid-default-active);"], selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive),
26
+ white: /*#__PURE__*/css(["", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--on-light-text-primary);", ":var(--on-light-text-primary-hover);", ":var(--on-light-text-primary-active);", ":var(--on-light-text-secondary);", ":var(--on-light-text-secondary-hover);", ":var(--on-light-text-secondary-active);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-dark-surface-solid-default-active);"], selectTokens.itemBackgroundHover, selectTokens.disclosureIconColor, selectTokens.disclosureIconColorHover, selectTokens.targetButtonColor, selectTokens.targetButtonColorHover, selectTokens.targetButtonColorActive, selectTokens.targetButtonArrowColor, selectTokens.targetButtonArrowColorHover, selectTokens.targetButtonArrowColorActive, selectTokens.targetButtonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive)
27
27
  },
28
28
  chipView: {
29
29
  "default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--surface-solid-default-active);"], selectTokens.chipColor, selectTokens.chipBackground, selectTokens.chipBackgroundHover, selectTokens.chipBackgroundActive),