@salutejs/plasma-new-hope 0.192.0-canary.1550.11799501370.0 → 0.192.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (731) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +22 -21
  2. package/cjs/components/Breadcrumbs/Breadcrumbs.css +3 -3
  3. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +7 -14
  4. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  5. package/cjs/components/Breadcrumbs/{Breadcrumbs.styles_19b6ey4.css → Breadcrumbs.styles_1icsgdr.css} +1 -1
  6. package/cjs/components/Breadcrumbs/utils/index.css +3 -3
  7. package/cjs/components/Cell/Cell.js +1 -3
  8. package/cjs/components/Cell/Cell.js.map +1 -1
  9. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  10. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
  11. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  12. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
  13. package/cjs/components/Chip/Chip.js +1 -3
  14. package/cjs/components/Chip/Chip.js.map +1 -1
  15. package/cjs/components/Combobox/ComboboxNew/Combobox.css +22 -21
  16. package/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
  17. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  18. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  19. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  20. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  21. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  22. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  23. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  24. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  25. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +22 -21
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +22 -21
  27. package/cjs/components/DatePicker/RangeDate/RangeDate.css +22 -21
  28. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  29. package/cjs/components/DatePicker/SingleDate/SingleDate.css +22 -21
  30. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -1
  31. package/cjs/components/Pagination/Pagination.css +37 -86
  32. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  33. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  34. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  35. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  36. package/cjs/components/Range/Range.css +22 -21
  37. package/cjs/components/Select/Select.css +34 -83
  38. package/cjs/components/Select/Select.js +139 -179
  39. package/cjs/components/Select/Select.js.map +1 -1
  40. package/cjs/components/Select/Select.styles.js +50 -17
  41. package/cjs/components/Select/Select.styles.js.map +1 -1
  42. package/cjs/components/Select/Select.styles_768h42.css +5 -0
  43. package/cjs/components/Select/Select.tokens.js +78 -122
  44. package/cjs/components/Select/Select.tokens.js.map +1 -1
  45. package/cjs/components/Select/hooks/useKeyboardNavigation.js +72 -19
  46. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  47. package/cjs/components/Select/hooks/usePathMaps.js +1 -4
  48. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  49. package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
  50. package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  51. package/cjs/components/Select/ui/Inner/Inner.css +34 -83
  52. package/cjs/components/Select/ui/Inner/Inner.js +9 -9
  53. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  54. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  55. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -20
  56. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  57. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +51 -34
  58. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  59. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  60. package/cjs/components/Select/ui/Target/Target.css +17 -58
  61. package/cjs/components/Select/ui/Target/Target.js +16 -34
  62. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  63. package/cjs/components/Select/ui/Target/ui/Button/Button.css +5 -5
  64. package/cjs/components/Select/ui/Target/ui/Button/Button.js +14 -10
  65. package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  66. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  67. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  68. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  69. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  70. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +97 -84
  71. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  72. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +103 -38
  73. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  74. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  75. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  76. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +36 -0
  77. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  78. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  79. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  80. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  81. package/cjs/components/Select/utils/getView.js +2 -2
  82. package/cjs/components/Select/utils/getView.js.map +1 -1
  83. package/cjs/components/Select/variations/_size/base.js +9 -0
  84. package/cjs/components/Select/variations/_size/base.js.map +1 -0
  85. package/cjs/components/Select/variations/_size/base_x642ct.css +1 -0
  86. package/cjs/components/Select/variations/_view/base.js +9 -0
  87. package/cjs/components/Select/variations/_view/base.js.map +1 -0
  88. package/cjs/components/Select/variations/_view/base_x642ct.css +1 -0
  89. package/cjs/components/Slider/Slider.css +22 -21
  90. package/cjs/components/Slider/components/Double/Double.css +22 -21
  91. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  92. package/cjs/components/Switch/Switch.css +11 -7
  93. package/cjs/components/Switch/Switch.js +16 -7
  94. package/cjs/components/Switch/Switch.js.map +1 -1
  95. package/cjs/components/Switch/Switch.styles.js +16 -4
  96. package/cjs/components/Switch/Switch.styles.js.map +1 -1
  97. package/cjs/components/Switch/Switch.styles_bei7bh.css +6 -0
  98. package/cjs/components/Switch/Switch.tokens.js +11 -0
  99. package/cjs/components/Switch/Switch.tokens.js.map +1 -1
  100. package/cjs/components/Switch/_focused/base.js +1 -1
  101. package/cjs/components/Switch/_focused/{base_j4murk.css → base_sz3n0x.css} +1 -1
  102. package/cjs/components/Switch/_size/base.js +1 -1
  103. package/cjs/components/Switch/_size/base.js.map +1 -1
  104. package/cjs/components/Switch/_size/base_1tcl212.css +1 -0
  105. package/cjs/components/Switch/_toggleSize/base.js +9 -0
  106. package/cjs/components/Switch/_toggleSize/base.js.map +1 -0
  107. package/cjs/components/Switch/_toggleSize/base_6i0904.css +1 -0
  108. package/cjs/components/Switch/_view/base.js +1 -1
  109. package/cjs/components/Switch/_view/base.js.map +1 -1
  110. package/cjs/components/Switch/_view/base_yxkf3s.css +1 -0
  111. package/cjs/components/TextField/TextField.js +2 -11
  112. package/cjs/components/TextField/TextField.js.map +1 -1
  113. package/cjs/components/TextField/TextField.styles.js +22 -14
  114. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  115. package/cjs/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_grgg7q.css} +7 -6
  116. package/cjs/components/TextField/TextField.tokens.js +1 -2
  117. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  118. package/cjs/components/TextField/ui/Hint/Hint.css +21 -20
  119. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  120. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  121. package/cjs/components/TextField/variations/_clear/base.js +1 -1
  122. package/cjs/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  123. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  124. package/cjs/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  125. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  126. package/cjs/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  127. package/cjs/components/TextField/variations/_size/base.js +1 -1
  128. package/cjs/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  129. package/cjs/components/TextField/variations/_view/base.js +1 -1
  130. package/cjs/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  131. package/cjs/index.css +75 -56
  132. package/cjs/index.js +0 -2
  133. package/cjs/index.js.map +1 -1
  134. package/cjs/utils/index.js.map +1 -1
  135. package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +8 -11
  136. package/emotion/cjs/components/Cell/Cell.js +1 -3
  137. package/emotion/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  138. package/emotion/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  139. package/emotion/cjs/components/Chip/Chip.js +1 -3
  140. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
  141. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  142. package/emotion/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  143. package/emotion/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  144. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  145. package/emotion/cjs/components/Select/Select.js +136 -177
  146. package/emotion/cjs/components/Select/Select.styles.js +31 -13
  147. package/emotion/cjs/components/Select/Select.tokens.js +60 -125
  148. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  149. package/emotion/cjs/components/Select/hooks/usePathMaps.js +1 -4
  150. package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  151. package/emotion/cjs/components/Select/reducers/index.js +11 -0
  152. package/emotion/cjs/components/Select/ui/Inner/Inner.js +9 -9
  153. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  154. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -27
  155. package/emotion/cjs/components/Select/ui/Target/Target.js +18 -38
  156. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  157. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  158. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  159. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  160. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  161. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  162. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  163. package/emotion/cjs/components/Select/utils/getView.js +2 -2
  164. package/emotion/cjs/components/Select/utils/index.js +1 -22
  165. package/emotion/cjs/components/Select/variations/_size/base.js +8 -0
  166. package/emotion/cjs/components/Select/variations/_size/tokens.json +9 -0
  167. package/emotion/cjs/components/Select/variations/_view/base.js +8 -0
  168. package/emotion/cjs/components/Select/variations/_view/tokens.json +1 -0
  169. package/emotion/cjs/components/Switch/Switch.js +17 -8
  170. package/emotion/cjs/components/Switch/Switch.styles.js +21 -5
  171. package/emotion/cjs/components/Switch/Switch.template-doc.mdx +37 -1
  172. package/emotion/cjs/components/Switch/Switch.tokens.js +11 -0
  173. package/emotion/cjs/components/Switch/_size/base.js +1 -1
  174. package/emotion/cjs/components/Switch/_toggleSize/base.js +10 -0
  175. package/emotion/cjs/components/Switch/_view/base.js +1 -1
  176. package/emotion/cjs/components/TextField/TextField.js +3 -12
  177. package/emotion/cjs/components/TextField/TextField.styles.js +40 -36
  178. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -2
  179. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  180. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  181. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  182. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  183. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +11 -4
  184. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  185. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  186. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  187. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  188. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +11 -4
  189. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  190. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  191. package/emotion/cjs/index.js +0 -11
  192. package/emotion/cjs/utils/index.js +1 -9
  193. package/emotion/es/components/Breadcrumbs/Breadcrumbs.styles.js +8 -11
  194. package/emotion/es/components/Cell/Cell.js +1 -3
  195. package/emotion/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  196. package/emotion/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  197. package/emotion/es/components/Chip/Chip.js +1 -3
  198. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
  199. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  200. package/emotion/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  201. package/emotion/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  202. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  203. package/emotion/es/components/Select/Select.js +141 -182
  204. package/emotion/es/components/Select/Select.styles.js +30 -12
  205. package/emotion/es/components/Select/Select.tokens.js +60 -125
  206. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  207. package/emotion/es/components/Select/hooks/usePathMaps.js +1 -4
  208. package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  209. package/emotion/es/components/Select/reducers/index.js +2 -1
  210. package/emotion/es/components/Select/ui/Inner/Inner.js +10 -10
  211. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  212. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +49 -26
  213. package/emotion/es/components/Select/ui/Target/Target.js +17 -35
  214. package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  215. package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  216. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  217. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  218. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  219. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +15 -0
  220. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  221. package/emotion/es/components/Select/utils/getView.js +2 -2
  222. package/emotion/es/components/Select/utils/index.js +1 -4
  223. package/emotion/es/components/Select/variations/_size/base.js +2 -0
  224. package/emotion/es/components/Select/variations/_size/tokens.json +9 -0
  225. package/emotion/es/components/Select/variations/_view/base.js +2 -0
  226. package/emotion/es/components/Select/variations/_view/tokens.json +1 -0
  227. package/emotion/es/components/Switch/Switch.js +13 -4
  228. package/emotion/es/components/Switch/Switch.styles.js +20 -4
  229. package/emotion/es/components/Switch/Switch.template-doc.mdx +37 -1
  230. package/emotion/es/components/Switch/Switch.tokens.js +11 -0
  231. package/emotion/es/components/Switch/_size/base.js +2 -2
  232. package/emotion/es/components/Switch/_toggleSize/base.js +4 -0
  233. package/emotion/es/components/Switch/_view/base.js +2 -2
  234. package/emotion/es/components/TextField/TextField.js +3 -12
  235. package/emotion/es/components/TextField/TextField.styles.js +40 -36
  236. package/emotion/es/components/TextField/TextField.tokens.js +1 -2
  237. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  238. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  239. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  240. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  241. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +11 -4
  242. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  243. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  244. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  245. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  246. package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +11 -4
  247. package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  248. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  249. package/emotion/es/index.js +0 -1
  250. package/emotion/es/utils/index.js +1 -2
  251. package/es/components/Autocomplete/Autocomplete.css +22 -21
  252. package/es/components/Breadcrumbs/Breadcrumbs.css +3 -3
  253. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +7 -14
  254. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  255. package/es/components/Breadcrumbs/{Breadcrumbs.styles_19b6ey4.css → Breadcrumbs.styles_1icsgdr.css} +1 -1
  256. package/es/components/Breadcrumbs/utils/index.css +3 -3
  257. package/es/components/Cell/Cell.js +1 -3
  258. package/es/components/Cell/Cell.js.map +1 -1
  259. package/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  260. package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
  261. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  262. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
  263. package/es/components/Chip/Chip.js +1 -3
  264. package/es/components/Chip/Chip.js.map +1 -1
  265. package/es/components/Combobox/ComboboxNew/Combobox.css +22 -21
  266. package/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
  267. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  268. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  269. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  270. package/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  271. package/es/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  272. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  273. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  274. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  275. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +22 -21
  276. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +22 -21
  277. package/es/components/DatePicker/RangeDate/RangeDate.css +22 -21
  278. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  279. package/es/components/DatePicker/SingleDate/SingleDate.css +22 -21
  280. package/es/components/Dropdown/FloatingPopover.js.map +1 -1
  281. package/es/components/Pagination/Pagination.css +37 -86
  282. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  283. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  284. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  285. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  286. package/es/components/Range/Range.css +22 -21
  287. package/es/components/Select/Select.css +34 -83
  288. package/es/components/Select/Select.js +142 -182
  289. package/es/components/Select/Select.js.map +1 -1
  290. package/es/components/Select/Select.styles.js +48 -18
  291. package/es/components/Select/Select.styles.js.map +1 -1
  292. package/es/components/Select/Select.styles_768h42.css +5 -0
  293. package/es/components/Select/Select.tokens.js +78 -123
  294. package/es/components/Select/Select.tokens.js.map +1 -1
  295. package/es/components/Select/hooks/useKeyboardNavigation.js +73 -19
  296. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  297. package/es/components/Select/hooks/usePathMaps.js +1 -4
  298. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  299. package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
  300. package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  301. package/es/components/Select/ui/Inner/Inner.css +34 -83
  302. package/es/components/Select/ui/Inner/Inner.js +10 -10
  303. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  304. package/es/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  305. package/es/components/Select/ui/Inner/ui/Item/Item.js +14 -22
  306. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  307. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -33
  308. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  309. package/es/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  310. package/es/components/Select/ui/Target/Target.css +17 -58
  311. package/es/components/Select/ui/Target/Target.js +17 -35
  312. package/es/components/Select/ui/Target/Target.js.map +1 -1
  313. package/es/components/Select/ui/Target/ui/Button/Button.css +5 -5
  314. package/es/components/Select/ui/Target/ui/Button/Button.js +15 -11
  315. package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  316. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  317. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  318. package/es/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  319. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  320. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  321. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  322. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +95 -39
  323. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  324. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  325. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  326. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +32 -0
  327. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  328. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +18 -0
  329. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  330. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  331. package/es/components/Select/utils/getView.js +2 -2
  332. package/es/components/Select/utils/getView.js.map +1 -1
  333. package/es/components/Select/variations/_size/base.js +5 -0
  334. package/es/components/Select/variations/_size/base.js.map +1 -0
  335. package/es/components/Select/variations/_size/base_x642ct.css +1 -0
  336. package/es/components/Select/variations/_view/base.js +5 -0
  337. package/es/components/Select/variations/_view/base.js.map +1 -0
  338. package/es/components/Select/variations/_view/base_x642ct.css +1 -0
  339. package/es/components/Slider/Slider.css +22 -21
  340. package/es/components/Slider/components/Double/Double.css +22 -21
  341. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  342. package/es/components/Switch/Switch.css +11 -7
  343. package/es/components/Switch/Switch.js +17 -8
  344. package/es/components/Switch/Switch.js.map +1 -1
  345. package/es/components/Switch/Switch.styles.js +15 -5
  346. package/es/components/Switch/Switch.styles.js.map +1 -1
  347. package/es/components/Switch/Switch.styles_bei7bh.css +6 -0
  348. package/es/components/Switch/Switch.tokens.js +11 -0
  349. package/es/components/Switch/Switch.tokens.js.map +1 -1
  350. package/es/components/Switch/_focused/base.js +1 -1
  351. package/es/components/Switch/_focused/{base_j4murk.css → base_sz3n0x.css} +1 -1
  352. package/es/components/Switch/_size/base.js +1 -1
  353. package/es/components/Switch/_size/base.js.map +1 -1
  354. package/es/components/Switch/_size/base_1tcl212.css +1 -0
  355. package/es/components/Switch/_toggleSize/base.js +5 -0
  356. package/es/components/Switch/_toggleSize/base.js.map +1 -0
  357. package/es/components/Switch/_toggleSize/base_6i0904.css +1 -0
  358. package/es/components/Switch/_view/base.js +1 -1
  359. package/es/components/Switch/_view/base.js.map +1 -1
  360. package/es/components/Switch/_view/base_yxkf3s.css +1 -0
  361. package/es/components/TextField/TextField.js +2 -11
  362. package/es/components/TextField/TextField.js.map +1 -1
  363. package/es/components/TextField/TextField.styles.js +22 -14
  364. package/es/components/TextField/TextField.styles.js.map +1 -1
  365. package/es/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_grgg7q.css} +7 -6
  366. package/es/components/TextField/TextField.tokens.js +1 -2
  367. package/es/components/TextField/TextField.tokens.js.map +1 -1
  368. package/es/components/TextField/ui/Hint/Hint.css +21 -20
  369. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  370. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  371. package/es/components/TextField/variations/_clear/base.js +1 -1
  372. package/es/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  373. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  374. package/es/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  375. package/es/components/TextField/variations/_read-only/base.js +1 -1
  376. package/es/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  377. package/es/components/TextField/variations/_size/base.js +1 -1
  378. package/es/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  379. package/es/components/TextField/variations/_view/base.js +1 -1
  380. package/es/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  381. package/es/index.css +75 -56
  382. package/es/index.js +0 -1
  383. package/es/index.js.map +1 -1
  384. package/es/utils/index.js.map +1 -1
  385. package/package.json +2 -2
  386. package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +5 -8
  387. package/styled-components/cjs/components/Cell/Cell.js +1 -3
  388. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  389. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  390. package/styled-components/cjs/components/Chip/Chip.js +1 -3
  391. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
  392. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  393. package/styled-components/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  394. package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  395. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  396. package/styled-components/cjs/components/Select/Select.js +136 -177
  397. package/styled-components/cjs/components/Select/Select.styles.js +27 -12
  398. package/styled-components/cjs/components/Select/Select.tokens.js +60 -125
  399. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  400. package/styled-components/cjs/components/Select/hooks/usePathMaps.js +1 -4
  401. package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  402. package/styled-components/cjs/components/Select/reducers/index.js +11 -0
  403. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +9 -9
  404. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  405. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +26 -20
  406. package/styled-components/cjs/components/Select/ui/Target/Target.js +18 -38
  407. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  408. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  409. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  410. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  411. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  412. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +21 -0
  413. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  414. package/styled-components/cjs/components/Select/utils/getView.js +2 -2
  415. package/styled-components/cjs/components/Select/utils/index.js +1 -22
  416. package/styled-components/cjs/components/Select/variations/_size/base.js +8 -0
  417. package/styled-components/cjs/components/Select/variations/_size/tokens.json +9 -0
  418. package/styled-components/cjs/components/Select/variations/_view/base.js +8 -0
  419. package/styled-components/cjs/components/Select/variations/_view/tokens.json +1 -0
  420. package/styled-components/cjs/components/Switch/Switch.js +17 -8
  421. package/styled-components/cjs/components/Switch/Switch.styles.js +11 -5
  422. package/styled-components/cjs/components/Switch/Switch.template-doc.mdx +37 -1
  423. package/styled-components/cjs/components/Switch/Switch.tokens.js +11 -0
  424. package/styled-components/cjs/components/Switch/_size/base.js +1 -1
  425. package/styled-components/cjs/components/Switch/_toggleSize/base.js +10 -0
  426. package/styled-components/cjs/components/Switch/_view/base.js +1 -1
  427. package/styled-components/cjs/components/TextField/TextField.js +2 -11
  428. package/styled-components/cjs/components/TextField/TextField.styles.js +15 -12
  429. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -2
  430. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  431. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  432. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  433. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  434. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +9 -2
  435. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  436. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  437. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  438. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  439. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +9 -2
  440. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  441. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  442. package/styled-components/cjs/index.js +0 -11
  443. package/styled-components/cjs/utils/index.js +1 -9
  444. package/styled-components/es/components/Breadcrumbs/Breadcrumbs.styles.js +5 -8
  445. package/styled-components/es/components/Cell/Cell.js +1 -3
  446. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  447. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  448. package/styled-components/es/components/Chip/Chip.js +1 -3
  449. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
  450. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  451. package/styled-components/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  452. package/styled-components/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  453. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  454. package/styled-components/es/components/Select/Select.js +141 -182
  455. package/styled-components/es/components/Select/Select.styles.js +26 -11
  456. package/styled-components/es/components/Select/Select.tokens.js +60 -125
  457. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  458. package/styled-components/es/components/Select/hooks/usePathMaps.js +1 -4
  459. package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  460. package/styled-components/es/components/Select/reducers/index.js +2 -1
  461. package/styled-components/es/components/Select/ui/Inner/Inner.js +10 -10
  462. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  463. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +25 -19
  464. package/styled-components/es/components/Select/ui/Target/Target.js +17 -35
  465. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  466. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  467. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  468. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  469. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  470. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +14 -0
  471. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  472. package/styled-components/es/components/Select/utils/getView.js +2 -2
  473. package/styled-components/es/components/Select/utils/index.js +1 -4
  474. package/styled-components/es/components/Select/variations/_size/base.js +2 -0
  475. package/styled-components/es/components/Select/variations/_size/tokens.json +9 -0
  476. package/styled-components/es/components/Select/variations/_view/base.js +2 -0
  477. package/styled-components/es/components/Select/variations/_view/tokens.json +1 -0
  478. package/styled-components/es/components/Switch/Switch.js +13 -4
  479. package/styled-components/es/components/Switch/Switch.styles.js +10 -4
  480. package/styled-components/es/components/Switch/Switch.template-doc.mdx +37 -1
  481. package/styled-components/es/components/Switch/Switch.tokens.js +11 -0
  482. package/styled-components/es/components/Switch/_size/base.js +2 -2
  483. package/styled-components/es/components/Switch/_toggleSize/base.js +4 -0
  484. package/styled-components/es/components/Switch/_view/base.js +2 -2
  485. package/styled-components/es/components/TextField/TextField.js +2 -11
  486. package/styled-components/es/components/TextField/TextField.styles.js +15 -12
  487. package/styled-components/es/components/TextField/TextField.tokens.js +1 -2
  488. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  489. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  490. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  491. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  492. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +9 -2
  493. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  494. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +15 -13
  495. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  496. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  497. package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +9 -2
  498. package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  499. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +14 -12
  500. package/styled-components/es/index.js +0 -1
  501. package/styled-components/es/utils/index.js +1 -2
  502. package/types/components/Attach/ui/Button/Button.styles.d.ts +2 -2
  503. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +4 -4
  504. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +16 -16
  505. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  506. package/types/components/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
  507. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +2 -2
  508. package/types/components/Cell/Cell.d.ts.map +1 -1
  509. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -1
  510. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -1
  511. package/types/components/Chip/Chip.d.ts.map +1 -1
  512. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  513. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +1 -0
  514. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  515. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +1 -1
  516. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  517. package/types/components/Combobox/ComboboxNew/FloatingPopover.d.ts.map +1 -1
  518. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +3 -1
  519. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
  520. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +16 -16
  521. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  522. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +16 -16
  523. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  524. package/types/components/EmptyState/EmptyState.styles.d.ts +2 -2
  525. package/types/components/Notification/Notification.styles.d.ts +2 -2
  526. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +2 -2
  527. package/types/components/Pagination/Pagination.styles.d.ts +4 -4
  528. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +40 -40
  529. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +2 -2
  530. package/types/components/Range/Range.styles.d.ts +16 -16
  531. package/types/components/Range/Range.styles.d.ts.map +1 -1
  532. package/types/components/Select/Select.d.ts +11 -5
  533. package/types/components/Select/Select.d.ts.map +1 -1
  534. package/types/components/Select/Select.styles.d.ts +9 -0
  535. package/types/components/Select/Select.styles.d.ts.map +1 -1
  536. package/types/components/Select/Select.tokens.d.ts +58 -121
  537. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  538. package/types/components/Select/Select.types.d.ts +20 -41
  539. package/types/components/Select/Select.types.d.ts.map +1 -1
  540. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +11 -5
  541. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  542. package/types/components/Select/hooks/usePathMaps.d.ts +1 -2
  543. package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -1
  544. package/types/components/Select/index.d.ts +1 -1
  545. package/types/components/Select/index.d.ts.map +1 -1
  546. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +11 -0
  547. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +1 -0
  548. package/types/components/Select/reducers/index.d.ts +1 -0
  549. package/types/components/Select/reducers/index.d.ts.map +1 -1
  550. package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -1
  551. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  552. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +2 -32
  553. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  554. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +0 -9
  555. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
  556. package/types/components/Select/ui/Target/Target.d.ts +2 -14
  557. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  558. package/types/components/Select/ui/Target/Target.types.d.ts +9 -10
  559. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  560. package/types/components/Select/ui/Target/ui/Button/Button.d.ts +1 -1
  561. package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -1
  562. package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts +2 -2
  563. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +1 -1
  564. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -1
  565. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +1 -1
  566. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  567. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +60 -628
  568. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  569. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +4 -1
  570. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  571. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts +9 -0
  572. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts.map +1 -0
  573. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts +3 -0
  574. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts.map +1 -0
  575. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts +2 -0
  576. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts.map +1 -0
  577. package/types/components/Select/utils/getView.d.ts +1 -1
  578. package/types/components/Select/utils/getView.d.ts.map +1 -1
  579. package/types/components/Select/utils/index.d.ts +0 -3
  580. package/types/components/Select/utils/index.d.ts.map +1 -1
  581. package/types/components/Select/variations/_size/base.d.ts +2 -0
  582. package/types/components/Select/variations/_size/base.d.ts.map +1 -0
  583. package/types/components/Select/variations/_view/base.d.ts +2 -0
  584. package/types/components/Select/variations/_view/base.d.ts.map +1 -0
  585. package/types/components/Slider/components/Double/Double.styles.d.ts +16 -16
  586. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  587. package/types/components/Switch/Switch.d.ts +3 -0
  588. package/types/components/Switch/Switch.d.ts.map +1 -1
  589. package/types/components/Switch/Switch.styles.d.ts +2 -0
  590. package/types/components/Switch/Switch.styles.d.ts.map +1 -1
  591. package/types/components/Switch/Switch.tokens.d.ts +9 -0
  592. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  593. package/types/components/Switch/Switch.types.d.ts +10 -2
  594. package/types/components/Switch/Switch.types.d.ts.map +1 -1
  595. package/types/components/Switch/_size/base.d.ts.map +1 -1
  596. package/types/components/Switch/_toggleSize/base.d.ts +2 -0
  597. package/types/components/Switch/_toggleSize/base.d.ts.map +1 -0
  598. package/types/components/Switch/_view/base.d.ts.map +1 -1
  599. package/types/components/TextField/TextField.d.ts.map +1 -1
  600. package/types/components/TextField/TextField.styles.d.ts +3 -1
  601. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  602. package/types/components/TextField/TextField.tokens.d.ts +0 -1
  603. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  604. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +1 -3
  605. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  606. package/types/components/Toast/Toast.styles.d.ts +2 -2
  607. package/types/components/Toast/utils.d.ts +2 -2
  608. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +8 -8
  609. package/types/examples/plasma_b2c/components/Button/Button.d.ts +2 -2
  610. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +24 -24
  611. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +2 -2
  612. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +16 -16
  613. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  614. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
  615. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts.map +1 -1
  616. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +7 -15
  617. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  618. package/types/examples/plasma_b2c/components/Select/Select.d.ts +46 -53
  619. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  620. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +7 -0
  621. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
  622. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +6 -0
  623. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
  624. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +16 -16
  625. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +16 -16
  626. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  627. package/types/examples/plasma_web/components/Attach/Attach.d.ts +8 -8
  628. package/types/examples/plasma_web/components/Button/Button.d.ts +2 -2
  629. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +24 -24
  630. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +2 -2
  631. package/types/examples/plasma_web/components/Mask/Mask.d.ts +16 -16
  632. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  633. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
  634. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts.map +1 -1
  635. package/types/examples/plasma_web/components/Select/Select.config.d.ts +7 -15
  636. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  637. package/types/examples/plasma_web/components/Select/Select.d.ts +46 -53
  638. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  639. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +7 -0
  640. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
  641. package/types/examples/plasma_web/components/Switch/Switch.d.ts +6 -0
  642. package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
  643. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +16 -16
  644. package/types/examples/plasma_web/components/TextField/TextField.d.ts +16 -16
  645. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  646. package/types/index.d.ts +0 -1
  647. package/types/index.d.ts.map +1 -1
  648. package/types/types/index.d.ts +0 -2
  649. package/types/types/index.d.ts.map +1 -1
  650. package/types/utils/index.d.ts +0 -1
  651. package/types/utils/index.d.ts.map +1 -1
  652. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  653. package/cjs/components/Select/FloatingPopover.js +0 -87
  654. package/cjs/components/Select/FloatingPopover.js.map +0 -1
  655. package/cjs/components/Select/Select.styles_1p5c9p3.css +0 -2
  656. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  657. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  658. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_q4kc1p.css +0 -3
  659. package/cjs/components/Select/utils/getFallbackPlacements.js +0 -15
  660. package/cjs/components/Select/utils/getFallbackPlacements.js.map +0 -1
  661. package/cjs/components/Select/utils/getItemId.js +0 -10
  662. package/cjs/components/Select/utils/getItemId.js.map +0 -1
  663. package/cjs/components/Select/utils/getPlacement.js +0 -13
  664. package/cjs/components/Select/utils/getPlacement.js.map +0 -1
  665. package/cjs/components/Switch/Switch.styles_1kk0qzz.css +0 -4
  666. package/cjs/components/Switch/_size/base_1rjzpi4.css +0 -1
  667. package/cjs/components/Switch/_view/base_1mtyz12.css +0 -1
  668. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  669. package/cjs/utils/fixedForwardRef.js +0 -12
  670. package/cjs/utils/fixedForwardRef.js.map +0 -1
  671. package/emotion/cjs/components/Select/FloatingPopover.js +0 -91
  672. package/emotion/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  673. package/emotion/cjs/components/Select/utils/getItemId.js +0 -9
  674. package/emotion/cjs/components/Select/utils/getPlacement.js +0 -12
  675. package/emotion/cjs/types/DistributiveOmit.js +0 -5
  676. package/emotion/cjs/types/DistributivePick.js +0 -5
  677. package/emotion/cjs/utils/fixedForwardRef.js +0 -11
  678. package/emotion/es/components/Select/FloatingPopover.js +0 -84
  679. package/emotion/es/components/Select/utils/getFallbackPlacements.js +0 -8
  680. package/emotion/es/components/Select/utils/getItemId.js +0 -3
  681. package/emotion/es/components/Select/utils/getPlacement.js +0 -6
  682. package/emotion/es/types/DistributiveOmit.js +0 -1
  683. package/emotion/es/types/DistributivePick.js +0 -1
  684. package/emotion/es/utils/fixedForwardRef.js +0 -4
  685. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  686. package/es/components/Select/FloatingPopover.js +0 -83
  687. package/es/components/Select/FloatingPopover.js.map +0 -1
  688. package/es/components/Select/Select.styles_1p5c9p3.css +0 -2
  689. package/es/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  690. package/es/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  691. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_q4kc1p.css +0 -3
  692. package/es/components/Select/utils/getFallbackPlacements.js +0 -11
  693. package/es/components/Select/utils/getFallbackPlacements.js.map +0 -1
  694. package/es/components/Select/utils/getItemId.js +0 -6
  695. package/es/components/Select/utils/getItemId.js.map +0 -1
  696. package/es/components/Select/utils/getPlacement.js +0 -9
  697. package/es/components/Select/utils/getPlacement.js.map +0 -1
  698. package/es/components/Switch/Switch.styles_1kk0qzz.css +0 -4
  699. package/es/components/Switch/_size/base_1rjzpi4.css +0 -1
  700. package/es/components/Switch/_view/base_1mtyz12.css +0 -1
  701. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  702. package/es/utils/fixedForwardRef.js +0 -8
  703. package/es/utils/fixedForwardRef.js.map +0 -1
  704. package/styled-components/cjs/components/Select/FloatingPopover.js +0 -91
  705. package/styled-components/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  706. package/styled-components/cjs/components/Select/utils/getItemId.js +0 -9
  707. package/styled-components/cjs/components/Select/utils/getPlacement.js +0 -12
  708. package/styled-components/cjs/types/DistributiveOmit.js +0 -5
  709. package/styled-components/cjs/types/DistributivePick.js +0 -5
  710. package/styled-components/cjs/utils/fixedForwardRef.js +0 -11
  711. package/styled-components/es/components/Select/FloatingPopover.js +0 -84
  712. package/styled-components/es/components/Select/utils/getFallbackPlacements.js +0 -8
  713. package/styled-components/es/components/Select/utils/getItemId.js +0 -3
  714. package/styled-components/es/components/Select/utils/getPlacement.js +0 -6
  715. package/styled-components/es/types/DistributiveOmit.js +0 -1
  716. package/styled-components/es/types/DistributivePick.js +0 -1
  717. package/styled-components/es/utils/fixedForwardRef.js +0 -4
  718. package/types/components/Select/FloatingPopover.d.ts +0 -5
  719. package/types/components/Select/FloatingPopover.d.ts.map +0 -1
  720. package/types/components/Select/utils/getFallbackPlacements.d.ts +0 -4
  721. package/types/components/Select/utils/getFallbackPlacements.d.ts.map +0 -1
  722. package/types/components/Select/utils/getItemId.d.ts +0 -2
  723. package/types/components/Select/utils/getItemId.d.ts.map +0 -1
  724. package/types/components/Select/utils/getPlacement.d.ts +0 -4
  725. package/types/components/Select/utils/getPlacement.d.ts.map +0 -1
  726. package/types/types/DistributiveOmit.d.ts +0 -2
  727. package/types/types/DistributiveOmit.d.ts.map +0 -1
  728. package/types/types/DistributivePick.d.ts +0 -2
  729. package/types/types/DistributivePick.d.ts.map +0 -1
  730. package/types/utils/fixedForwardRef.d.ts +0 -3
  731. package/types/utils/fixedForwardRef.d.ts.map +0 -1
@@ -5,24 +5,27 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var React = require('react');
7
7
  var base = require('./_size/base.js');
8
+ var base$2 = require('./_toggleSize/base.js');
8
9
  var base$1 = require('./_view/base.js');
9
- var base$3 = require('./_focused/base.js');
10
- var base$2 = require('./_disabled/base.js');
10
+ var base$4 = require('./_focused/base.js');
11
+ var base$3 = require('./_disabled/base.js');
11
12
  var index = require('../../utils/index.js');
12
13
  var Switch_styles = require('./Switch.styles.js');
13
14
  var Switch_tokens = require('./Switch.tokens.js');
14
15
 
15
16
  var _StyledTrigger;
16
- var _excluded = ["size", "view", "focused", "outlined", "disabled", "labelPosition", "label", "id", "style", "className", "checked", "pressed", "defaultChecked"];
17
+ var _excluded = ["size", "toggleSize", "view", "focused", "outlined", "disabled", "labelPosition", "label", "description", "id", "style", "className", "checked", "pressed", "defaultChecked"];
17
18
  var switchRoot = function switchRoot(Root) {
18
19
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
19
20
  var size = props.size,
21
+ toggleSize = props.toggleSize,
20
22
  view = props.view,
21
23
  focused = props.focused,
22
24
  outlined = props.outlined,
23
25
  disabled = props.disabled,
24
26
  labelPosition = props.labelPosition,
25
27
  label = props.label,
28
+ description = props.description,
26
29
  id = props.id,
27
30
  style = props.style,
28
31
  className = props.className,
@@ -34,12 +37,15 @@ var switchRoot = function switchRoot(Root) {
34
37
  return /*#__PURE__*/React.createElement(Root, {
35
38
  view: view,
36
39
  size: size,
40
+ toggleSize: toggleSize,
37
41
  disabled: disabled,
38
42
  focused: focused !== null && focused !== void 0 ? focused : outlined,
39
43
  labelPosition: labelPosition,
40
44
  id: id,
41
45
  style: style,
42
- className: index.cx(className, Switch_tokens.classes["".concat(labelPosition, "SwitchLabelPosition")])
46
+ className: index.cx(className)
47
+ }, /*#__PURE__*/React.createElement(Switch_styles.StyledContent, {
48
+ className: index.cx(Switch_tokens.classes["".concat(labelPosition, "SwitchLabelPosition")])
43
49
  }, /*#__PURE__*/React.createElement(Switch_styles.StyledInput, _rollupPluginBabelHelpers.extends({}, rest, {
44
50
  ref: ref,
45
51
  role: "switch",
@@ -52,7 +58,7 @@ var switchRoot = function switchRoot(Root) {
52
58
  tabIndex: -1
53
59
  }, label), _StyledTrigger || (_StyledTrigger = /*#__PURE__*/React.createElement(Switch_styles.StyledTrigger, {
54
60
  "aria-hidden": true
55
- })));
61
+ }))), description && /*#__PURE__*/React.createElement(Switch_styles.StyledDescription, null, description));
56
62
  });
57
63
  };
58
64
  var switchConfig = {
@@ -67,12 +73,15 @@ var switchConfig = {
67
73
  view: {
68
74
  css: base$1.base
69
75
  },
76
+ toggleSize: {
77
+ css: base$2.base
78
+ },
70
79
  disabled: {
71
- css: base$2.base,
80
+ css: base$3.base,
72
81
  attrs: true
73
82
  },
74
83
  focused: {
75
- css: base$3.base
84
+ css: base$4.base
76
85
  }
77
86
  },
78
87
  defaults: {
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { base as sizeCSS } from '../Switch/_size/base';\nimport { base as viewCSS } from '../Switch/_view/base';\nimport { base as focusedCSS } from '../Switch/_focused/base';\nimport { base as disabledCSS } from '../Switch/_disabled/base';\nimport { cx } from '../../utils';\n\nimport { StyledInput, StyledLabel, StyledTrigger, base } from './Switch.styles';\nimport { SwitchProps } from './Switch.types';\nimport { classes } from './Switch.tokens';\n\nexport const switchRoot = (Root: RootProps<HTMLInputElement, SwitchProps>) =>\n forwardRef<HTMLInputElement, SwitchProps>((props, ref) => {\n const {\n size,\n view,\n focused,\n outlined,\n disabled,\n labelPosition,\n\n label,\n\n id,\n style,\n className,\n\n // singleLine,\n\n checked,\n pressed,\n defaultChecked,\n\n ...rest\n } = props;\n\n const exactChecked = Boolean((checked ?? pressed) !== undefined ? checked ?? pressed : defaultChecked);\n\n return (\n <Root\n view={view}\n size={size}\n disabled={disabled}\n focused={focused ?? outlined}\n labelPosition={labelPosition}\n id={id}\n style={style}\n className={cx(className, classes[`${labelPosition}SwitchLabelPosition` as keyof typeof classes])}\n >\n <StyledInput\n {...rest}\n ref={ref}\n role=\"switch\"\n aria-checked={exactChecked}\n type=\"checkbox\"\n checked={checked ?? pressed}\n defaultChecked={defaultChecked}\n disabled={disabled}\n />\n <StyledLabel tabIndex={-1}>{label}</StyledLabel>\n <StyledTrigger aria-hidden />\n </Root>\n );\n });\n\nexport const switchConfig = {\n name: 'Switch',\n tag: 'label',\n base,\n layout: switchRoot,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n size: 's',\n view: 'default',\n },\n};\n"],"names":["switchRoot","Root","forwardRef","props","ref","size","view","focused","outlined","disabled","labelPosition","label","id","style","className","checked","pressed","defaultChecked","rest","_objectWithoutProperties","_excluded","exactChecked","Boolean","undefined","React","createElement","cx","classes","concat","StyledInput","_extends","role","type","StyledLabel","tabIndex","_StyledTrigger","StyledTrigger","switchConfig","name","tag","base","layout","variations","css","sizeCSS","viewCSS","disabledCSS","attrs","focusedCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;IAaaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAAgC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACtD,IAAA,IACIC,IAAI,GAoBJF,KAAK,CApBLE,IAAI;MACJC,IAAI,GAmBJH,KAAK,CAnBLG,IAAI;MACJC,OAAO,GAkBPJ,KAAK,CAlBLI,OAAO;MACPC,QAAQ,GAiBRL,KAAK,CAjBLK,QAAQ;MACRC,QAAQ,GAgBRN,KAAK,CAhBLM,QAAQ;MACRC,aAAa,GAebP,KAAK,CAfLO,aAAa;MAEbC,KAAK,GAaLR,KAAK,CAbLQ,KAAK;MAELC,EAAE,GAWFT,KAAK,CAXLS,EAAE;MACFC,KAAK,GAULV,KAAK,CAVLU,KAAK;MACLC,SAAS,GASTX,KAAK,CATLW,SAAS;M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AAO,GAAIC,OAAQ;AAC5BC,MAAAA,cAAc,EAAEA,cAAe;AAC/BR,MAAAA,QAAQ,EAAEA,QAAAA;AAAS,KAAA,CACtB,CAAC,eACFe,KAAA,CAAAC,aAAA,CAACQ,yBAAW,EAAA;AAACC,MAAAA,QAAQ,EAAE,CAAC,CAAA;KAAIvB,EAAAA,KAAmB,CAAC,EAAAwB,cAAA,KAAAA,cAAA,gBAChDX,KAAA,CAAAC,aAAA,CAACW,2BAAa,EAAA;AAAC,MAAA,aAAA,EAAA,IAAA;KAAa,CAAC,CAC3B,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMC,YAAY,GAAG;AACxBC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,OAAO;AACZC,EAAAA,IAAI,EAAJA,kBAAI;AACJC,EAAAA,MAAM,EAAEzC,UAAU;AAClB0C,EAAAA,UAAU,EAAE;AACRrC,IAAAA,IAAI,EAAE;AACFsC,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDtC,IAAAA,IAAI,EAAE;AACFqC,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDpC,IAAAA,QAAQ,EAAE;AACNkC,MAAAA,GAAG,EAAEG,WAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDxC,IAAAA,OAAO,EAAE;AACLoC,MAAAA,GAAG,EAAEK,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN5C,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"Switch.js","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { base as sizeCSS } from '../Switch/_size/base';\nimport { base as toggleSizeCSS } from '../Switch/_toggleSize/base';\nimport { base as viewCSS } from '../Switch/_view/base';\nimport { base as focusedCSS } from '../Switch/_focused/base';\nimport { base as disabledCSS } from '../Switch/_disabled/base';\nimport { cx } from '../../utils';\n\nimport { StyledContent, StyledDescription, StyledInput, StyledLabel, StyledTrigger, base } from './Switch.styles';\nimport { SwitchProps } from './Switch.types';\nimport { classes } from './Switch.tokens';\n\nexport const switchRoot = (Root: RootProps<HTMLInputElement, SwitchProps>) =>\n forwardRef<HTMLInputElement, SwitchProps>((props, ref) => {\n const {\n size,\n toggleSize,\n view,\n focused,\n outlined,\n disabled,\n labelPosition,\n\n label,\n description,\n\n id,\n style,\n className,\n\n // singleLine,\n\n checked,\n pressed,\n defaultChecked,\n\n ...rest\n } = props;\n\n const exactChecked = Boolean((checked ?? pressed) !== undefined ? checked ?? pressed : defaultChecked);\n\n return (\n <Root\n view={view}\n size={size}\n toggleSize={toggleSize}\n disabled={disabled}\n focused={focused ?? outlined}\n labelPosition={labelPosition}\n id={id}\n style={style}\n className={cx(className)}\n >\n <StyledContent className={cx(classes[`${labelPosition}SwitchLabelPosition` as keyof typeof classes])}>\n <StyledInput\n {...rest}\n ref={ref}\n role=\"switch\"\n aria-checked={exactChecked}\n type=\"checkbox\"\n checked={checked ?? pressed}\n defaultChecked={defaultChecked}\n disabled={disabled}\n />\n <StyledLabel tabIndex={-1}>{label}</StyledLabel>\n <StyledTrigger aria-hidden />\n </StyledContent>\n {description && <StyledDescription>{description}</StyledDescription>}\n </Root>\n );\n });\n\nexport const switchConfig = {\n name: 'Switch',\n tag: 'label',\n base,\n layout: switchRoot,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n toggleSize: {\n css: toggleSizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n size: 's',\n view: 'default',\n },\n};\n"],"names":["switchRoot","Root","forwardRef","props","ref","size","toggleSize","view","focused","outlined","disabled","labelPosition","label","description","id","style","className","checked","pressed","defaultChecked","rest","_objectWithoutProperties","_excluded","exactChecked","Boolean","undefined","React","createElement","cx","StyledContent","classes","concat","StyledInput","_extends","role","type","StyledLabel","tabIndex","_StyledTrigger","StyledTrigger","StyledDescription","switchConfig","name","tag","base","layout","variations","css","sizeCSS","viewCSS","toggleSizeCSS","disabledCSS","attrs","focusedCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;IAcaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAAgC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACtD,IAAA,IACIC,IAAI,GAsBJF,KAAK,CAtBLE,IAAI;MACJC,UAAU,GAqBVH,KAAK,CArBLG,UAAU;MACVC,IAAI,GAoBJJ,KAAK,CApBLI,IAAI;MACJC,OAAO,GAmBPL,KAAK,CAnBLK,OAAO;MACPC,QAAQ,GAkBRN,KAAK,CAlBLM,QAAQ;MACRC,QAAQ,GAiBRP,KAAK,CAjBLO,QAAQ;MACRC,aAAa,GAgBbR,KAAK,CAhBLQ,aAAa;MAEbC,KAAK,GAcLT,KAAK,CAdLS,KAAK;MACLC,WAAW,GAaXV,KAAK,CAbLU,WAAW;MAEXC,EAAE,GAWFX,KAAK,CAXLW,EAAE;MACFC,KAAK,GAULZ,KAAK,CAVLY,KAAK;MACLC,SAAS,GASTb,KAAK,CATLa,SAAS;MAITC,OAAO,GAKPd,KAAK,CALLc,OAAO;MACPC,OAAO,GAIPf,KAAK,CAJLe,OAAO;MACPC,cAAc,GAGdhB,KAAK,CAHLgB,cAAc;AAEXC,MAAAA,IAAI,GAAAC,iDAAA,CACPlB,KAAK,EAAAmB,SAAA,CAAA,CAAA;IAET,IAAMC,YAAY,GAAGC,OAAO,CAAC,CAACP,OAAO,KAAPA,IAAAA,IAAAA,OAAO,KAAPA,KAAAA,CAAAA,GAAAA,OAAO,GAAIC,OAAO,MAAMO,SAAS,GAAGR,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,KAAA,CAAA,GAAPA,OAAO,GAAIC,OAA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AAA;AAAC,MAAA,aAAA,EAAA,IAAA;AAAW,KAAE,CAAC,CAClB,CAAC,EACf1B,WAAW,iBAAIa,KAAA,CAAAC,aAAA,CAACa,+BAAiB,EAAE3B,IAAAA,EAAAA,WAA+B,CACjE,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAM4B,YAAY,GAAG;AACxBC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,OAAO;AACZC,EAAAA,IAAI,EAAJA,kBAAI;AACJC,EAAAA,MAAM,EAAE7C,UAAU;AAClB8C,EAAAA,UAAU,EAAE;AACRzC,IAAAA,IAAI,EAAE;AACF0C,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDzC,IAAAA,IAAI,EAAE;AACFwC,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACD3C,IAAAA,UAAU,EAAE;AACRyC,MAAAA,GAAG,EAAEG,WAAAA;KACR;AACDxC,IAAAA,QAAQ,EAAE;AACNqC,MAAAA,GAAG,EAAEI,WAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACD5C,IAAAA,OAAO,EAAE;AACLuC,MAAAA,GAAG,EAAEM,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNjD,IAAAA,IAAI,EAAE,GAAG;AACTE,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
@@ -1,4 +1,4 @@
1
- import './Switch.styles_1kk0qzz.css';
1
+ import './Switch.styles_bei7bh.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6,22 +6,34 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var react = require('@linaria/react');
7
7
 
8
8
  var base = "b1fcyfkl";
9
+ var StyledContent = /*#__PURE__*/react.styled('div')({
10
+ name: "StyledContent",
11
+ "class": "s10fscgc",
12
+ propsAsIs: false
13
+ });
14
+ var StyledDescription = /*#__PURE__*/react.styled('div')({
15
+ name: "StyledDescription",
16
+ "class": "sdjnckq",
17
+ propsAsIs: false
18
+ });
9
19
  var StyledInput = /*#__PURE__*/react.styled('input')({
10
20
  name: "StyledInput",
11
- "class": "s10fscgc",
21
+ "class": "ssthlx1",
12
22
  propsAsIs: false
13
23
  });
14
24
  var StyledLabel = /*#__PURE__*/react.styled('span')({
15
25
  name: "StyledLabel",
16
- "class": "sdjnckq",
26
+ "class": "s1ilr5eq",
17
27
  propsAsIs: false
18
28
  });
19
29
  var StyledTrigger = /*#__PURE__*/react.styled('div')({
20
30
  name: "StyledTrigger",
21
- "class": "ssthlx1",
31
+ "class": "s2cs3kf",
22
32
  propsAsIs: false
23
33
  });
24
34
 
35
+ exports.StyledContent = StyledContent;
36
+ exports.StyledDescription = StyledDescription;
25
37
  exports.StyledInput = StyledInput;
26
38
  exports.StyledLabel = StyledLabel;
27
39
  exports.StyledTrigger = StyledTrigger;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.styles.js","sources":["../../../src/components/Switch/Switch.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { applyEllipsis } from '../../mixins';\n\nimport { classes, tokens } from './Switch.tokens';\n\nexport const base = css`\n position: relative;\n display: flex;\n align-items: center;\n\n cursor: pointer;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &:focus {\n outline: 0 none;\n }\n\n &.${classes.beforeSwitchLabelPosition} {\n justify-content: space-between;\n\n ${tokens.labelOffsetPrivate}: 0 var(${tokens.labelOffset}) 0 0;\n }\n\n &.${classes.afterSwitchLabelPosition} {\n justify-content: start;\n flex-direction: row-reverse;\n\n ${tokens.labelOffsetPrivate}: 0 0 0 var(${tokens.labelOffset});\n }\n`;\n\nexport const StyledInput = styled.input`\n position: absolute;\n right: 0;\n margin: 0;\n opacity: 0;\n\n &:focus {\n outline: 0 none;\n }\n`;\n\nexport const StyledLabel = styled.span`\n user-select: none;\n\n // TODO: multiline switch\n ${applyEllipsis()}\n`;\n\nexport const StyledTrigger = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n transition: background-color 0.15s ease-in-out 0.1s;\n\n ::after {\n content: '';\n position: absolute;\n right: auto;\n left: 0;\n\n transition: width 0.15s ease-in-out 0s, left 0.3s ease-in-out 0s, right 0.3s ease-in-out 0s;\n }\n\n ${StyledInput}:checked ~ &::after {\n right: 0;\n left: auto;\n }\n`;\n"],"names":["base","StyledInput","styled","name","class","propsAsIs","StyledLabel","StyledTrigger"],"mappings":";;;;;;AAOO,IAAMA,IAAI,GAwBhB,WAAA;AAEM,IAAMC,WAAW,gBAAGC,YAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAShC,EAAA;AAEM,IAAMC,WAAW,gBAAGJ,YAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKhC,EAAA;AAEM,IAAME,aAAa,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAmBlC;;;;;;;"}
1
+ {"version":3,"file":"Switch.styles.js","sources":["../../../src/components/Switch/Switch.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { applyEllipsis } from '../../mixins';\n\nimport { classes, tokens } from './Switch.tokens';\n\nexport const base = css`\n position: relative;\n display: flex;\n flex-direction: column;\n gap: var(${tokens.verticalGap});\n\n cursor: pointer;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &:focus {\n outline: 0 none;\n }\n`;\n\nexport const StyledContent = styled.div`\n width: 100%;\n position: relative;\n display: flex;\n align-items: center;\n\n &.${classes.beforeSwitchLabelPosition} {\n justify-content: space-between;\n\n ${tokens.labelOffsetPrivate}: 0 var(${tokens.labelOffset}) 0 0;\n }\n\n &.${classes.afterSwitchLabelPosition} {\n justify-content: start;\n flex-direction: row-reverse;\n\n ${tokens.labelOffsetPrivate}: 0 0 0 var(${tokens.labelOffset});\n }\n`;\n\nexport const StyledDescription = styled.div`\n position: relative;\n`;\n\nexport const StyledInput = styled.input`\n position: absolute;\n right: 0;\n margin: 0;\n opacity: 0;\n\n &:focus {\n outline: 0 none;\n }\n`;\n\nexport const StyledLabel = styled.span`\n user-select: none;\n\n // TODO: multiline switch\n ${applyEllipsis()}\n`;\n\nexport const StyledTrigger = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n transition: background-color 0.15s ease-in-out 0.1s;\n\n ::after {\n content: '';\n position: absolute;\n right: auto;\n left: 0;\n\n transition: width 0.15s ease-in-out 0s, left 0.3s ease-in-out 0s, right 0.3s ease-in-out 0s;\n }\n\n ${StyledInput}:checked ~ &::after {\n right: 0;\n left: auto;\n }\n`;\n"],"names":["base","StyledContent","styled","name","class","propsAsIs","StyledDescription","StyledInput","StyledLabel","StyledTrigger"],"mappings":";;;;;;AAOO,IAAMA,IAAI,GAYhB,WAAA;AAEM,IAAMC,aAAa,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAkBlC,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEtC,EAAA;AAEM,IAAME,WAAW,gBAAGL,YAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAShC,EAAA;AAEM,IAAMG,WAAW,gBAAGN,YAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKhC,EAAA;AAEM,IAAMI,aAAa,gBAAGP,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAmBlC;;;;;;;;;"}
@@ -0,0 +1,6 @@
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;}
@@ -9,11 +9,22 @@ var tokens = {
9
9
  fontWeight: '--plasma-switch-font-weight',
10
10
  letterSpacing: '--plasma-switch-letter-spacing',
11
11
  lineHeight: '--plasma-switch-line-height',
12
+ /* Токены description */
13
+ descriptionFontFamily: '--plasma-switch-description-font-family',
14
+ descriptionFontStyle: '--plasma-switch-description-font-style',
15
+ descriptionFontSize: '--plasma-switch-description-font-size',
16
+ descriptionFontWeight: '--plasma-switch-description-font-weight',
17
+ descriptionLetterSpacing: '--plasma-switch-description-letter-spacing',
18
+ descriptionLineHeight: '--plasma-switch-description-line-height',
12
19
  /* Цвет подписи */
13
20
  labelColor: '--plasma-switch__label-color',
14
21
  labelOffset: '--plasma-switch__label-offset',
22
+ /* Цвет описания */
23
+ descriptionColor: '--plasma-switch__description-color',
24
+ descriptionOffset: '--plasma-switch__description-offset',
15
25
  /** Прозрачность для всего компонента в состоянии disabled */
16
26
  disabledOpacity: '--plasma-switch-disabled-opacity',
27
+ verticalGap: '--plasma-switch-vertical-gap',
17
28
  trackWidth: '--plasma-switch__track-width',
18
29
  trackHeight: '--plasma-switch__track-height',
19
30
  trackBorderRadius: '--plasma-switch__track-border-radius',
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.tokens.js","sources":["../../../src/components/Switch/Switch.tokens.ts"],"sourcesContent":["export const tokens = {\n fontFamily: '--plasma-switch-font-family',\n fontStyle: '--plasma-switch-font-style',\n fontSize: '--plasma-switch-font-size',\n fontWeight: '--plasma-switch-font-weight',\n letterSpacing: '--plasma-switch-letter-spacing',\n lineHeight: '--plasma-switch-line-height',\n\n /* Цвет подписи */\n labelColor: '--plasma-switch__label-color',\n labelOffset: '--plasma-switch__label-offset',\n\n /** Прозрачность для всего компонента в состоянии disabled */\n disabledOpacity: '--plasma-switch-disabled-opacity',\n\n trackWidth: '--plasma-switch__track-width',\n trackHeight: '--plasma-switch__track-height',\n trackBorderRadius: '--plasma-switch__track-border-radius',\n // NOTE: could be intersection with checked\n trackBackgroundColorOn: '--plasma-switch__track_checked_true-bg-color',\n trackBackgroundColorOnHover: '--plasma-switch__track_checked_true_hovered_true-bg-color',\n trackBackgroundColorOff: '--plasma-switch__track_checked_false-bg-color',\n trackBackgroundColorOffHover: '--plasma-switch__track_checked_false_hovered_true-bg-color',\n\n trackFocusColor: '--plasma-switch__track-focus-color',\n\n thumbSize: '--plasma-switch__thumb-size',\n thumbOffset: '--plasma-switch__thumb-offset',\n thumbBorderRadius: '--plasma-switch__thumb-border-radius',\n\n thumbPressScale: '--plasma-switch__thumb-scale',\n\n thumbBackgroundColor: '--plasma-switch__thumb-bg-color',\n thumbBoxShadow: '--plasma-switch__thumb-box-shadow',\n thumbBoxShadowOn: '--plasma-switch__thumb-box-shadow_checked_true',\n\n labelOffsetPrivate: '--plasma_private-switch__label-offset',\n};\n\nexport const classes = {\n beforeSwitchLabelPosition: 'switch-label-position-before',\n afterSwitchLabelPosition: 'switch-label-position-after',\n};\n"],"names":["tokens","fontFamily","fontStyle","fontSize","fontWeight","letterSpacing","lineHeight","labelColor","labelOffset","disabledOpacity","trackWidth","trackHeight","trackBorderRadius","trackBackgroundColorOn","trackBackgroundColorOnHover","trackBackgroundColorOff","trackBackgroundColorOffHover","trackFocusColor","thumbSize","thumbOffset","thumbBorderRadius","thumbPressScale","thumbBackgroundColor","thumbBoxShadow","thumbBoxShadowOn","labelOffsetPrivate","classes","beforeSwitchLabelPosition","afterSwitchLabelPosition"],"mappings":";;;;AAAO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,SAAS,EAAE,4BAA4B;AACvCC,EAAAA,QAAQ,EAAE,2BAA2B;AACrCC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,aAAa,EAAE,gCAAgC;AAC/CC,EAAAA,UAAU,EAAE,6BAA6B;AAEzC;AACAC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAE5C;AACAC,EAAAA,eAAe,EAAE,kCAAkC;AAEnDC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzD;AACAC,EAAAA,sBAAsB,EAAE,8CAA8C;AACtEC,EAAAA,2BAA2B,EAAE,2DAA2D;AACxFC,EAAAA,uBAAuB,EAAE,+CAA+C;AACxEC,EAAAA,4BAA4B,EAAE,4DAA4D;AAE1FC,EAAAA,eAAe,EAAE,oCAAoC;AAErDC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,iBAAiB,EAAE,sCAAsC;AAEzDC,EAAAA,eAAe,EAAE,8BAA8B;AAE/CC,EAAAA,oBAAoB,EAAE,iCAAiC;AACvDC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,gBAAgB,EAAE,gDAAgD;AAElEC,EAAAA,kBAAkB,EAAE,uCAAA;AACxB,EAAC;AAEM,IAAMC,OAAO,GAAG;AACnBC,EAAAA,yBAAyB,EAAE,8BAA8B;AACzDC,EAAAA,wBAAwB,EAAE,6BAAA;AAC9B;;;;;"}
1
+ {"version":3,"file":"Switch.tokens.js","sources":["../../../src/components/Switch/Switch.tokens.ts"],"sourcesContent":["export const tokens = {\n fontFamily: '--plasma-switch-font-family',\n fontStyle: '--plasma-switch-font-style',\n fontSize: '--plasma-switch-font-size',\n fontWeight: '--plasma-switch-font-weight',\n letterSpacing: '--plasma-switch-letter-spacing',\n lineHeight: '--plasma-switch-line-height',\n\n /* Токены description */\n descriptionFontFamily: '--plasma-switch-description-font-family',\n descriptionFontStyle: '--plasma-switch-description-font-style',\n descriptionFontSize: '--plasma-switch-description-font-size',\n descriptionFontWeight: '--plasma-switch-description-font-weight',\n descriptionLetterSpacing: '--plasma-switch-description-letter-spacing',\n descriptionLineHeight: '--plasma-switch-description-line-height',\n\n /* Цвет подписи */\n labelColor: '--plasma-switch__label-color',\n labelOffset: '--plasma-switch__label-offset',\n\n /* Цвет описания */\n descriptionColor: '--plasma-switch__description-color',\n descriptionOffset: '--plasma-switch__description-offset',\n\n /** Прозрачность для всего компонента в состоянии disabled */\n disabledOpacity: '--plasma-switch-disabled-opacity',\n\n verticalGap: '--plasma-switch-vertical-gap',\n trackWidth: '--plasma-switch__track-width',\n trackHeight: '--plasma-switch__track-height',\n trackBorderRadius: '--plasma-switch__track-border-radius',\n // NOTE: could be intersection with checked\n trackBackgroundColorOn: '--plasma-switch__track_checked_true-bg-color',\n trackBackgroundColorOnHover: '--plasma-switch__track_checked_true_hovered_true-bg-color',\n trackBackgroundColorOff: '--plasma-switch__track_checked_false-bg-color',\n trackBackgroundColorOffHover: '--plasma-switch__track_checked_false_hovered_true-bg-color',\n\n trackFocusColor: '--plasma-switch__track-focus-color',\n\n thumbSize: '--plasma-switch__thumb-size',\n thumbOffset: '--plasma-switch__thumb-offset',\n thumbBorderRadius: '--plasma-switch__thumb-border-radius',\n\n thumbPressScale: '--plasma-switch__thumb-scale',\n\n thumbBackgroundColor: '--plasma-switch__thumb-bg-color',\n thumbBoxShadow: '--plasma-switch__thumb-box-shadow',\n thumbBoxShadowOn: '--plasma-switch__thumb-box-shadow_checked_true',\n\n labelOffsetPrivate: '--plasma_private-switch__label-offset',\n};\n\nexport const classes = {\n beforeSwitchLabelPosition: 'switch-label-position-before',\n afterSwitchLabelPosition: 'switch-label-position-after',\n};\n"],"names":["tokens","fontFamily","fontStyle","fontSize","fontWeight","letterSpacing","lineHeight","descriptionFontFamily","descriptionFontStyle","descriptionFontSize","descriptionFontWeight","descriptionLetterSpacing","descriptionLineHeight","labelColor","labelOffset","descriptionColor","descriptionOffset","disabledOpacity","verticalGap","trackWidth","trackHeight","trackBorderRadius","trackBackgroundColorOn","trackBackgroundColorOnHover","trackBackgroundColorOff","trackBackgroundColorOffHover","trackFocusColor","thumbSize","thumbOffset","thumbBorderRadius","thumbPressScale","thumbBackgroundColor","thumbBoxShadow","thumbBoxShadowOn","labelOffsetPrivate","classes","beforeSwitchLabelPosition","afterSwitchLabelPosition"],"mappings":";;;;AAAO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,SAAS,EAAE,4BAA4B;AACvCC,EAAAA,QAAQ,EAAE,2BAA2B;AACrCC,EAAAA,UAAU,EAAE,6BAA6B;AACzCC,EAAAA,aAAa,EAAE,gCAAgC;AAC/CC,EAAAA,UAAU,EAAE,6BAA6B;AAEzC;AACAC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,oBAAoB,EAAE,wCAAwC;AAC9DC,EAAAA,mBAAmB,EAAE,uCAAuC;AAC5DC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,wBAAwB,EAAE,4CAA4C;AACtEC,EAAAA,qBAAqB,EAAE,yCAAyC;AAEhE;AACAC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAE5C;AACAC,EAAAA,gBAAgB,EAAE,oCAAoC;AACtDC,EAAAA,iBAAiB,EAAE,qCAAqC;AAExD;AACAC,EAAAA,eAAe,EAAE,kCAAkC;AAEnDC,EAAAA,WAAW,EAAE,8BAA8B;AAC3CC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,iBAAiB,EAAE,sCAAsC;AACzD;AACAC,EAAAA,sBAAsB,EAAE,8CAA8C;AACtEC,EAAAA,2BAA2B,EAAE,2DAA2D;AACxFC,EAAAA,uBAAuB,EAAE,+CAA+C;AACxEC,EAAAA,4BAA4B,EAAE,4DAA4D;AAE1FC,EAAAA,eAAe,EAAE,oCAAoC;AAErDC,EAAAA,SAAS,EAAE,6BAA6B;AACxCC,EAAAA,WAAW,EAAE,+BAA+B;AAC5CC,EAAAA,iBAAiB,EAAE,sCAAsC;AAEzDC,EAAAA,eAAe,EAAE,8BAA8B;AAE/CC,EAAAA,oBAAoB,EAAE,iCAAiC;AACvDC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,gBAAgB,EAAE,gDAAgD;AAElEC,EAAAA,kBAAkB,EAAE,uCAAA;AACxB,EAAC;AAEM,IAAMC,OAAO,GAAG;AACnBC,EAAAA,yBAAyB,EAAE,8BAA8B;AACzDC,EAAAA,wBAAwB,EAAE,6BAAA;AAC9B;;;;;"}
@@ -1,4 +1,4 @@
1
- import './base_j4murk.css';
1
+ import './base_sz3n0x.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- .bvwxj2r .ssthlx1::before{content:'';position:absolute;inset:-0.125rem;display:block;box-sizing:content-box;border-radius:calc(0.125rem + var(--plasma-switch__track-border-radius));border:0.125rem solid transparent;pointer-events:none;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;}.bvwxj2r .s10fscgc.focus-visible ~ .ssthlx1::before{box-shadow:0 0 0 0.125rem var(--plasma-switch__track-focus-color);}
1
+ .bvwxj2r .s2cs3kf::before{content:'';position:absolute;inset:-0.125rem;display:block;box-sizing:content-box;border-radius:calc(0.125rem + var(--plasma-switch__track-border-radius));border:0.125rem solid transparent;pointer-events:none;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;}.bvwxj2r .ssthlx1.focus-visible ~ .s2cs3kf::before{box-shadow:0 0 0 0.125rem var(--plasma-switch__track-focus-color);}
@@ -1,4 +1,4 @@
1
- import './base_1rjzpi4.css';
1
+ import './base_1tcl212.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\nimport { StyledLabel, StyledTrigger } from '../Switch.styles';\n\nexport const base = css`\n font-family: var(${tokens.fontFamily});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n font-size: var(${tokens.fontSize});\n\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 ${StyledLabel} {\n /* check _label_position */\n margin: var(${tokens.labelOffsetPrivate}, 0);\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,GA8BhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\nimport { StyledContent, StyledDescription, StyledLabel } from '../Switch.styles';\n\nexport const base = css`\n ${StyledContent} {\n font-family: var(${tokens.fontFamily});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n font-size: var(${tokens.fontSize});\n }\n\n ${StyledDescription} {\n font-family: var(${tokens.descriptionFontFamily});\n font-style: var(${tokens.descriptionFontStyle});\n font-weight: var(${tokens.descriptionFontWeight});\n letter-spacing: var(${tokens.descriptionLetterSpacing});\n line-height: var(${tokens.descriptionLineHeight});\n font-size: var(${tokens.descriptionFontSize});\n }\n\n ${StyledLabel} {\n /* check _label_position */\n margin: var(${tokens.labelOffsetPrivate}, 0);\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GAuBhB;;;;"}
@@ -0,0 +1 @@
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);}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -0,0 +1 @@
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,4 +1,4 @@
1
- import './base_1mtyz12.css';
1
+ import './base_yxkf3s.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\nimport { StyledTrigger, StyledInput } from '../Switch.styles';\n\nexport const base = css`\n ${StyledTrigger} {\n background-color: var(${tokens.trackBackgroundColorOff});\n }\n\n ${StyledInput}:not([disabled]) ~ ${StyledTrigger}:hover {\n background-color: var(${tokens.trackBackgroundColorOffHover}, var(${tokens.trackBackgroundColorOff}));\n }\n\n ${StyledInput}:checked ~ ${StyledTrigger} {\n background-color: var(${tokens.trackBackgroundColorOn});\n }\n\n ${StyledInput}:checked:not([disabled]) ~ ${StyledTrigger}:hover {\n background-color: var(${tokens.trackBackgroundColorOnHover}, var(${tokens.trackBackgroundColorOn}));\n }\n\n ${StyledTrigger}::after {\n background-color: var(${tokens.thumbBackgroundColor});\n box-shadow: var(${tokens.thumbBoxShadow});\n }\n\n ${StyledInput}:checked ~ ${StyledTrigger}::after {\n box-shadow: var(${tokens.thumbBoxShadowOn}, var(${tokens.thumbBoxShadow}));\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GAyBhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../src/components/Switch/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../Switch.tokens';\nimport { StyledTrigger, StyledInput, StyledLabel, StyledDescription } from '../Switch.styles';\n\nexport const base = css`\n ${StyledTrigger} {\n background-color: var(${tokens.trackBackgroundColorOff});\n }\n\n ${StyledInput}:not([disabled]) ~ ${StyledTrigger}:hover {\n background-color: var(${tokens.trackBackgroundColorOffHover}, var(${tokens.trackBackgroundColorOff}));\n }\n\n ${StyledInput}:checked ~ ${StyledTrigger} {\n background-color: var(${tokens.trackBackgroundColorOn});\n }\n\n ${StyledInput}:checked:not([disabled]) ~ ${StyledTrigger}:hover {\n background-color: var(${tokens.trackBackgroundColorOnHover}, var(${tokens.trackBackgroundColorOn}));\n }\n\n ${StyledTrigger}::after {\n background-color: var(${tokens.thumbBackgroundColor});\n box-shadow: var(${tokens.thumbBoxShadow});\n }\n\n ${StyledInput}:checked ~ ${StyledTrigger}::after {\n box-shadow: var(${tokens.thumbBoxShadowOn}, var(${tokens.thumbBoxShadow}));\n }\n\n ${StyledLabel} {\n color: var(${tokens.labelColor});\n }\n\n ${StyledDescription} {\n color: var(${tokens.descriptionColor});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GAiChB;;;;"}
@@ -0,0 +1 @@
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);}
@@ -265,10 +265,8 @@ var textFieldRoot = function textFieldRoot(Root) {
265
265
  }), optionalTextNode), titleCaption && /*#__PURE__*/React.createElement(TextField_styles.TitleCaption, null, titleCaption)), /*#__PURE__*/React.createElement(TextField_styles.InputWrapper
266
266
  // Ref для внутреннего использования. Не отдается наружу.
267
267
  , {
268
- ref: rest.inputWrapperRef
269
- // TODO: #1544, и после убрать classes.inputWrapper
270
- ,
271
- className: index.cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent, TextField_tokens.classes.inputWrapper)
268
+ ref: rest.inputWrapperRef,
269
+ className: index.cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
272
270
  }, !hasOuterLabel && /*#__PURE__*/React.createElement(React.Fragment, null, required && /*#__PURE__*/React.createElement(TextField_styles.StyledIndicator, {
273
271
  className: index.cx(TextField_tokens.classes.innerLabelPlacement, requiredPlacementClass)
274
272
  }), hintText && /*#__PURE__*/React.createElement(TextField_styles.StyledHintWrapper, {
@@ -315,13 +313,6 @@ var textFieldRoot = function textFieldRoot(Root) {
315
313
  return onChipClear(chipId, index);
316
314
  },
317
315
  onClick: onChipClick
318
- // TODO: #1547
319
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
320
- // @ts-ignore
321
- ,
322
- _forceChipManipulationWithReadonly:
323
- // eslint-disable-next-line no-underscore-dangle
324
- rest._forceChipManipulationWithReadonly
325
316
  });
326
317
  })), /*#__PURE__*/React.createElement(TextField_styles.InputContainer, null, /*#__PURE__*/React.createElement(TextField_styles.Input, _rollupPluginBabelHelpers.extends({
327
318
  ref: inputForkRef,
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport type { FormEventHandler, ChangeEventHandler, KeyboardEvent, ChangeEvent, MouseEventHandler } from 'react';\nimport { safeUseId, useForkRef } from '@salutejs/plasma-core';\nimport { css } from '@linaria/core';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\nimport { useOutsideClick } from '../../hooks';\n\nimport type { ChipValues, TextFieldPrimitiveValue, TextFieldProps, TextFieldRootProps } from './TextField.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as clearCSS } from './variations/_clear/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as readOnlyCSS } from './variations/_read-only/base';\nimport { base as labelPlacementCSS } from './variations/_label-placement/base';\nimport { base as hintViewCSS } from './variations/_hint-view/base';\nimport { base as hintSizeCSS } from './variations/_hint-size/base';\nimport {\n Input,\n InputContainer,\n LeftHelper,\n Label,\n InputWrapper,\n InputLabelWrapper,\n StyledContentLeft,\n StyledContentRight,\n StyledChips,\n StyledTextBefore,\n StyledTextAfter,\n StyledIndicator,\n StyledOptionalText,\n InputPlaceholder,\n OuterLabelWrapper,\n TitleCaption,\n StyledHintWrapper,\n StyledIndicatorWrapper,\n} from './TextField.styles';\nimport { classes } from './TextField.tokens';\nimport { TextFieldChip } from './ui';\nimport { useKeyNavigation } from './hooks';\nimport { HintComponent } from './ui/Hint/Hint';\n\nconst optionalText = 'optional';\n\nexport const base = css`\n /* NOTE: Webkit не применяет opacity к inline тегам */\n display: block;\n`;\n\nconst HINT_DEFAULT_OFFSET: [number, number] = [0, 0];\n\nexport const textFieldRoot = (Root: RootProps<HTMLDivElement, TextFieldRootProps>) =>\n forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n id,\n className,\n style,\n\n // layout\n contentLeft,\n contentRight,\n label,\n labelPlacement,\n textBefore,\n textAfter,\n placeholder,\n leftHelper,\n enumerationType = 'plain',\n requiredPlacement = 'right',\n titleCaption,\n\n // hint\n hintTrigger = 'hover',\n hintText,\n hintView = 'default',\n hintSize = 'm',\n hintTargetIcon,\n hintPlacement = 'auto',\n hintHasArrow,\n hintOffset = HINT_DEFAULT_OFFSET,\n hintWidth,\n hintContentLeft,\n\n // variations\n view,\n size,\n readOnly = false,\n disabled = false,\n required = false,\n clear = false,\n optional,\n hasDivider,\n\n // controlled\n value: outerValue,\n chips: values,\n\n // events\n onChange,\n onChangeChips,\n onSearch,\n onKeyDown,\n\n ...rest\n },\n ref,\n ) => {\n const contentRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const inputForkRef = useForkRef(inputRef, ref);\n const chipsRefs = useRef<Array<HTMLButtonElement>>([]);\n\n const controlledRefs = { contentRef, inputRef, chipsRefs };\n\n const [hasValue, setHasValue] = useState(\n Boolean(outerValue) || Boolean(inputRef?.current?.value) || Boolean(rest?.defaultValue),\n );\n const [chips, setChips] = useState<Array<ChipValues>>([]);\n const [isHintVisible, setIsHintVisible] = useState(false);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const labelId = safeUseId();\n const helperTextId = safeUseId();\n\n const isDefaultView = view === 'default' || readOnly || disabled;\n\n const isChipEnumeration = enumerationType === 'chip';\n const isChipsVisible = isChipEnumeration && Boolean(chips?.length);\n const withHasChips = isChipsVisible ? classes.hasChips : undefined;\n\n const hasLabelValue = Boolean(label);\n const hasInnerLabel = size !== 'xs' && labelPlacement === 'inner' && !isChipsVisible && hasLabelValue;\n const hasOuterLabel = labelPlacement === 'outer' && hasLabelValue;\n const hasPlaceholder = Boolean(placeholder) && !hasInnerLabel;\n\n const innerLabelValue = hasInnerLabel || hasOuterLabel ? label : undefined;\n const innerLabelPlacementValue = labelPlacement === 'inner' && !hasInnerLabel ? undefined : labelPlacement;\n\n const innerPlaceholderValue = hasPlaceholder ? placeholder : undefined;\n const placeholderShown = Boolean(innerPlaceholderValue) && !hasValue;\n\n const clearClass = clear ? classes.clear : undefined;\n const hasDividerClass = hasDivider ? classes.hasDivider : undefined;\n const hasHintClass = hintText ? classes.hasHint : undefined;\n const requiredPlacementClass = requiredPlacement === 'right' ? classes.requiredAlignRight : undefined;\n const labelPlacementClass = innerLabelPlacementValue\n ? classes[`${innerLabelPlacementValue}LabelPlacement` as keyof typeof classes]\n : undefined;\n const hasValueClass = hasValue ? classes.hasValue : undefined;\n\n const wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;\n const wrapperWithoutRightContent =\n !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;\n\n const hintRef = useOutsideClick<HTMLDivElement>(() => {\n setIsHintVisible(false);\n });\n const hintInnerRef = useRef<HTMLDivElement>(null);\n const hintForkRef = useForkRef(hintRef, hintInnerRef);\n\n const handleInput: FormEventHandler<HTMLInputElement> = (event) => {\n setHasValue(Boolean((event.target as HTMLInputElement).value));\n };\n\n const handleHintShow = () => setIsHintVisible(true);\n const handleHintHide = () => setIsHintVisible(false);\n const handleHintClick: MouseEventHandler = (event) => {\n if (!hintText || hintTrigger !== 'click') {\n return;\n }\n\n event.stopPropagation();\n const targetIsPopover = event.target === hintInnerRef.current;\n const rootHasTarget = hintInnerRef.current?.contains(event.target as Element);\n\n if (!targetIsPopover && !rootHasTarget) {\n setIsHintVisible(true);\n }\n };\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = (event) => {\n if (disabled || readOnly) {\n return;\n }\n\n const { maxLength, value } = event.target;\n\n if (maxLength !== -1 && value.length > maxLength) {\n return;\n }\n\n onChange?.(event);\n };\n\n const updateChips = (newChips: Array<ChipValues>, newValues: Array<TextFieldPrimitiveValue>) => {\n setChips(newChips);\n onChangeChips?.(newValues);\n };\n\n const { handleInputKeydown, handleChipKeyDown, onChipClear, handleContentKeyDown } = useKeyNavigation({\n controlledRefs,\n disabled,\n readOnly,\n chips,\n enumerationType,\n updateChips,\n onSearch,\n onChange,\n onEnterDisabled: (rest as any).onEnterDisabled,\n });\n\n const onChipClick = (event: React.MouseEvent<HTMLButtonElement>) => event.stopPropagation();\n\n const handleInputFocus = () => {\n if (readOnly || disabled || !inputRef?.current) {\n return;\n }\n\n inputRef.current.scrollTo({\n top: 0,\n left: inputRef.current.offsetLeft,\n behavior: 'smooth',\n });\n\n inputRef.current.focus();\n };\n\n const getRef = (element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs?.current) {\n chipsRefs.current[index] = element;\n }\n };\n\n const handleOnKeyDown = (event: ChangeEvent<HTMLInputElement> & KeyboardEvent<HTMLInputElement>) => {\n handleInputKeydown(event);\n\n if (onKeyDown) {\n onKeyDown(event);\n }\n };\n\n useEffect(() => {\n if (!isChipEnumeration && !values?.length) {\n return;\n }\n\n const newChips =\n values?.map((value, index) => ({\n id: `${index}_${value}`,\n text: value,\n })) || [];\n\n setChips(newChips);\n }, [isChipEnumeration, values]);\n\n useEffect(() => {\n setHasValue(Boolean(rest?.defaultValue));\n }, [rest.defaultValue]);\n\n useEffect(() => {\n setHasValue(Boolean(outerValue) || Boolean(inputRef?.current?.value));\n }, [outerValue, inputRef?.current?.value]);\n\n const innerOptional = Boolean(required ? false : optional);\n const hasPlaceholderOptional = innerOptional && !innerLabelValue && !hasOuterLabel;\n const optionalTextNode = innerOptional ? (\n <StyledOptionalText>\n {Boolean(hasPlaceholderOptional ? innerPlaceholderValue : innerLabelValue) && '\\xa0'}\n {optionalText}\n </StyledOptionalText>\n ) : null;\n\n return (\n <Root\n view={view}\n size={size}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n clear={clear}\n labelPlacement={innerLabelPlacementValue}\n onClick={handleInputFocus}\n className={cx(\n labelPlacementClass,\n clearClass,\n hasDividerClass,\n hasHintClass,\n classes.textFieldGroupItem,\n className,\n )}\n style={style}\n {...(hintText && { hintView, hintSize })}\n >\n {(hasOuterLabel || titleCaption) && (\n <OuterLabelWrapper isInnerLabel={labelPlacement === 'inner'}>\n {hasOuterLabel && (\n <StyledIndicatorWrapper>\n <Label id={labelId} htmlFor={id}>\n {innerLabelValue}\n </Label>\n\n {hintText && (\n <StyledHintWrapper>\n <HintComponent\n ref={hintForkRef}\n hintText={hintText}\n hintTrigger={hintTrigger}\n isHintVisible={isHintVisible}\n hintTargetIcon={hintTargetIcon}\n hintPlacement={hintPlacement}\n hintHasArrow={hintHasArrow}\n hintOffset={hintOffset}\n hintWidth={hintWidth}\n hintContentLeft={hintContentLeft}\n handleHintShow={handleHintShow}\n handleHintHide={handleHintHide}\n handleHintClick={handleHintClick}\n />\n </StyledHintWrapper>\n )}\n {required && (\n <StyledIndicator\n className={cx(\n classes.outerLabelPlacement,\n requiredPlacementClass,\n hasHintClass,\n )}\n />\n )}\n {optionalTextNode}\n </StyledIndicatorWrapper>\n )}\n {titleCaption && <TitleCaption>{titleCaption}</TitleCaption>}\n </OuterLabelWrapper>\n )}\n <InputWrapper\n // Ref для внутреннего использования. Не отдается наружу.\n ref={(rest as any).inputWrapperRef}\n // TODO: #1544, и после убрать classes.inputWrapper\n className={cx(\n withHasChips,\n wrapperWithoutLeftContent,\n wrapperWithoutRightContent,\n classes.inputWrapper,\n )}\n >\n {!hasOuterLabel && (\n <>\n {required && (\n <StyledIndicator\n className={cx(classes.innerLabelPlacement, requiredPlacementClass)}\n />\n )}\n {hintText && (\n <StyledHintWrapper className={classes.innerLabelPlacement}>\n <HintComponent\n ref={hintForkRef}\n hintText={hintText}\n hintTrigger={hintTrigger}\n isHintVisible={isHintVisible}\n hintTargetIcon={hintTargetIcon}\n hintPlacement={hintPlacement}\n hintHasArrow={hintHasArrow}\n hintOffset={hintOffset}\n hintWidth={hintWidth}\n hintContentLeft={hintContentLeft}\n handleHintShow={handleHintShow}\n handleHintHide={handleHintHide}\n handleHintClick={handleHintClick}\n />\n </StyledHintWrapper>\n )}\n </>\n )}\n {contentLeft && (\n <StyledContentLeft isClear={clear} isDefaultView={isDefaultView}>\n {contentLeft}\n </StyledContentLeft>\n )}\n <InputLabelWrapper\n tabIndex={-1}\n ref={contentRef}\n onKeyDown={handleContentKeyDown}\n className={withHasChips}\n >\n {textBefore && <StyledTextBefore>{textBefore}</StyledTextBefore>}\n {isChipEnumeration && Boolean(chips?.length) && (\n <StyledChips>\n {chips?.map(({ id: chipId, text }, index) => {\n return (\n <TextFieldChip\n id={chipId}\n ref={(element) => getRef(element, index)}\n key={`${chipId}_${index}`}\n disabled={disabled}\n readOnly={readOnly}\n value={text}\n text={text}\n onKeyDown={(event) => handleChipKeyDown(event, chipId, index)}\n onClear={() => onChipClear(chipId, index)}\n onClick={onChipClick}\n // TODO: #1547\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n _forceChipManipulationWithReadonly={\n // eslint-disable-next-line no-underscore-dangle\n (rest as any)._forceChipManipulationWithReadonly\n }\n />\n );\n })}\n </StyledChips>\n )}\n <InputContainer>\n <Input\n ref={inputForkRef}\n id={innerId}\n value={outerValue}\n aria-labelledby={labelId}\n aria-describedby={helperTextId}\n placeholder={innerPlaceholderValue}\n className={cx(hasValueClass)}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n onInput={handleInput}\n onChange={handleChange}\n onKeyDown={handleOnKeyDown}\n {...rest}\n />\n {hasInnerLabel && (\n <Label id={labelId} htmlFor={innerId}>\n {innerLabelValue}\n {optionalTextNode}\n </Label>\n )}\n {placeholderShown && !hasValue && (\n <InputPlaceholder>\n {innerPlaceholderValue}\n {hasPlaceholderOptional && optionalTextNode}\n </InputPlaceholder>\n )}\n </InputContainer>\n {textAfter && <StyledTextAfter>{textAfter}</StyledTextAfter>}\n </InputLabelWrapper>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </InputWrapper>\n {leftHelper && <LeftHelper id={helperTextId}>{leftHelper}</LeftHelper>}\n </Root>\n );\n },\n );\n\nexport const textFieldConfig = {\n name: 'TextField',\n tag: 'div',\n layout: textFieldRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n clear: {\n css: clearCSS,\n attrs: true,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n css: readOnlyCSS,\n attrs: true,\n },\n labelPlacement: {\n css: labelPlacementCSS,\n },\n hintView: {\n css: hintViewCSS,\n },\n hintSize: {\n css: hintSizeCSS,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["optionalText","base","HINT_DEFAULT_OFFSET","textFieldRoot","Root","forwardRef","_ref","ref","_inputRef$current","_inputRef$current3","id","className","style","contentLeft","contentRight","label","labelPlacement","textBefore","textAfter","placeholder","leftHelper","_ref$enumerationType","enumerationType","_ref$requiredPlacemen","requiredPlacement","titleCaption","_ref$hintTrigger","hintTrigger","hintText","_ref$hintView","hintView","_ref$hintSize","hintSize","hintTargetIcon","_ref$hintPlacement","hintPlacement","hintHasArrow","_ref$hintOffset","hintOffset","hintWidth","hintContentLeft","view","size","_ref$readOnly","readOnly","_ref$disabled","disabled","_ref$required","required","_ref$clear","clear","optional","hasDivider","outerValue","value","values","chips","onChange","onChangeChips","onSearch","onKeyDown","rest","contentRef","useRef","inputRef","inputForkRef","useForkRef","chipsRefs","controlledRefs","_useState","useState","Boolean","current","defaultValue","_useState2","_slicedToArray","hasValue","setHasValue","_useState3","_useState4","setChips","_useState5","_useState6","isHintVisible","setIsHintVisible","uniqId","safeUseId","innerId","labelId","helperTextId","isDefaultView","isChipEnumeration","isChipsVisible","length","withHasChips","classes","hasChips","undefined","hasLabelValue","hasInnerLabel","hasOuterLabel","hasPlaceholder","innerLabelValue","innerLabelPlacementValue","innerPlaceholderValue","placeholderShown","clearClass","hasDividerClass","hasHintClass","hasHint","requiredPlacementClass","requiredAlignRight","labelPlacementClass","concat","hasValueClass","wrapperWithoutLeftContent","hasEmptyContentLeft","wrapperWithoutRightContent","hasEmptyContentRight","hintRef","useOutsideClick","hintInnerRef","hintForkRef","handleInput","event","target","handleHintShow","handleHintHide","handleHintClick","_hintInnerRef$current","stopPropagation","targetIsPopover","rootHasTarget","contains","handleChange","_event$target","maxLength","updateChips","newChips","newValues","_useKeyNavigation","useKeyNavigation","onEnterDisabled","handleInputKeydown","handleChipKeyDown","onChipClear","handleContentKeyDown","onChipClick","handleInputFocus","scrollTo","top","left","offsetLeft","behavior","focus","getRef","element","index","handleOnKeyDown","useEffect","map","text","_inputRef$current2","innerOptional","hasPlaceholderOptional","optionalTextNode","React","createElement","StyledOptionalText","_extends","onClick","cx","textFieldGroupItem","OuterLabelWrapper","isInnerLabel","StyledIndicatorWrapper","Label","htmlFor","StyledHintWrapper","HintComponent","StyledIndicator","outerLabelPlacement","TitleCaption","InputWrapper","inputWrapperRef","inputWrapper","Fragment","innerLabelPlacement","StyledContentLeft","isClear","InputLabelWrapper","tabIndex","StyledTextBefore","StyledChips","_ref2","chipId","TextFieldChip","key","onClear","_forceChipManipulationWithReadonly","InputContainer","Input","onInput","InputPlaceholder","StyledTextAfter","StyledContentRight","LeftHelper","textFieldConfig","name","tag","layout","variations","css","viewCSS","sizeCSS","clearCSS","attrs","disabledCSS","readOnlyCSS","labelPlacementCSS","hintViewCSS","hintSizeC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K,IAAAA,QAAQ,EAAE;AACNsK,MAAAA,GAAG,EAAEK,WAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;KACV;AACD5K,IAAAA,QAAQ,EAAE;AACNwK,MAAAA,GAAG,EAAEM,WAAW;AAChBF,MAAAA,KAAK,EAAE,IAAA;KACV;AACDxM,IAAAA,cAAc,EAAE;AACZoM,MAAAA,GAAG,EAAEO,WAAAA;KACR;AACD7L,IAAAA,QAAQ,EAAE;AACNsL,MAAAA,GAAG,EAAEQ,WAAAA;KACR;AACD5L,IAAAA,QAAQ,EAAE;AACNoL,MAAAA,GAAG,EAAES,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNpL,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;;"}
1
+ {"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport type { FormEventHandler, ChangeEventHandler, KeyboardEvent, ChangeEvent, MouseEventHandler } from 'react';\nimport { safeUseId, useForkRef } from '@salutejs/plasma-core';\nimport { css } from '@linaria/core';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\nimport { useOutsideClick } from '../../hooks';\n\nimport type { ChipValues, TextFieldPrimitiveValue, TextFieldProps, TextFieldRootProps } from './TextField.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as clearCSS } from './variations/_clear/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as readOnlyCSS } from './variations/_read-only/base';\nimport { base as labelPlacementCSS } from './variations/_label-placement/base';\nimport { base as hintViewCSS } from './variations/_hint-view/base';\nimport { base as hintSizeCSS } from './variations/_hint-size/base';\nimport {\n Input,\n InputContainer,\n LeftHelper,\n Label,\n InputWrapper,\n InputLabelWrapper,\n StyledContentLeft,\n StyledContentRight,\n StyledChips,\n StyledTextBefore,\n StyledTextAfter,\n StyledIndicator,\n StyledOptionalText,\n InputPlaceholder,\n OuterLabelWrapper,\n TitleCaption,\n StyledHintWrapper,\n StyledIndicatorWrapper,\n} from './TextField.styles';\nimport { classes } from './TextField.tokens';\nimport { TextFieldChip } from './ui';\nimport { useKeyNavigation } from './hooks';\nimport { HintComponent } from './ui/Hint/Hint';\n\nconst optionalText = 'optional';\n\nexport const base = css`\n /* NOTE: Webkit не применяет opacity к inline тегам */\n display: block;\n`;\n\nconst HINT_DEFAULT_OFFSET: [number, number] = [0, 0];\n\nexport const textFieldRoot = (Root: RootProps<HTMLDivElement, TextFieldRootProps>) =>\n forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n id,\n className,\n style,\n\n // layout\n contentLeft,\n contentRight,\n label,\n labelPlacement,\n textBefore,\n textAfter,\n placeholder,\n leftHelper,\n enumerationType = 'plain',\n requiredPlacement = 'right',\n titleCaption,\n\n // hint\n hintTrigger = 'hover',\n hintText,\n hintView = 'default',\n hintSize = 'm',\n hintTargetIcon,\n hintPlacement = 'auto',\n hintHasArrow,\n hintOffset = HINT_DEFAULT_OFFSET,\n hintWidth,\n hintContentLeft,\n\n // variations\n view,\n size,\n readOnly = false,\n disabled = false,\n required = false,\n clear = false,\n optional,\n hasDivider,\n\n // controlled\n value: outerValue,\n chips: values,\n\n // events\n onChange,\n onChangeChips,\n onSearch,\n onKeyDown,\n\n ...rest\n },\n ref,\n ) => {\n const contentRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const inputForkRef = useForkRef(inputRef, ref);\n const chipsRefs = useRef<Array<HTMLButtonElement>>([]);\n\n const controlledRefs = { contentRef, inputRef, chipsRefs };\n\n const [hasValue, setHasValue] = useState(\n Boolean(outerValue) || Boolean(inputRef?.current?.value) || Boolean(rest?.defaultValue),\n );\n const [chips, setChips] = useState<Array<ChipValues>>([]);\n const [isHintVisible, setIsHintVisible] = useState(false);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const labelId = safeUseId();\n const helperTextId = safeUseId();\n\n const isDefaultView = view === 'default' || readOnly || disabled;\n\n const isChipEnumeration = enumerationType === 'chip';\n const isChipsVisible = isChipEnumeration && Boolean(chips?.length);\n const withHasChips = isChipsVisible ? classes.hasChips : undefined;\n\n const hasLabelValue = Boolean(label);\n const hasInnerLabel = size !== 'xs' && labelPlacement === 'inner' && !isChipsVisible && hasLabelValue;\n const hasOuterLabel = labelPlacement === 'outer' && hasLabelValue;\n const hasPlaceholder = Boolean(placeholder) && !hasInnerLabel;\n\n const innerLabelValue = hasInnerLabel || hasOuterLabel ? label : undefined;\n const innerLabelPlacementValue = labelPlacement === 'inner' && !hasInnerLabel ? undefined : labelPlacement;\n\n const innerPlaceholderValue = hasPlaceholder ? placeholder : undefined;\n const placeholderShown = Boolean(innerPlaceholderValue) && !hasValue;\n\n const clearClass = clear ? classes.clear : undefined;\n const hasDividerClass = hasDivider ? classes.hasDivider : undefined;\n const hasHintClass = hintText ? classes.hasHint : undefined;\n const requiredPlacementClass = requiredPlacement === 'right' ? classes.requiredAlignRight : undefined;\n const labelPlacementClass = innerLabelPlacementValue\n ? classes[`${innerLabelPlacementValue}LabelPlacement` as keyof typeof classes]\n : undefined;\n const hasValueClass = hasValue ? classes.hasValue : undefined;\n\n const wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;\n const wrapperWithoutRightContent =\n !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;\n\n const hintRef = useOutsideClick<HTMLDivElement>(() => {\n setIsHintVisible(false);\n });\n const hintInnerRef = useRef<HTMLDivElement>(null);\n const hintForkRef = useForkRef(hintRef, hintInnerRef);\n\n const handleInput: FormEventHandler<HTMLInputElement> = (event) => {\n setHasValue(Boolean((event.target as HTMLInputElement).value));\n };\n\n const handleHintShow = () => setIsHintVisible(true);\n const handleHintHide = () => setIsHintVisible(false);\n const handleHintClick: MouseEventHandler = (event) => {\n if (!hintText || hintTrigger !== 'click') {\n return;\n }\n\n event.stopPropagation();\n const targetIsPopover = event.target === hintInnerRef.current;\n const rootHasTarget = hintInnerRef.current?.contains(event.target as Element);\n\n if (!targetIsPopover && !rootHasTarget) {\n setIsHintVisible(true);\n }\n };\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = (event) => {\n if (disabled || readOnly) {\n return;\n }\n\n const { maxLength, value } = event.target;\n\n if (maxLength !== -1 && value.length > maxLength) {\n return;\n }\n\n onChange?.(event);\n };\n\n const updateChips = (newChips: Array<ChipValues>, newValues: Array<TextFieldPrimitiveValue>) => {\n setChips(newChips);\n onChangeChips?.(newValues);\n };\n\n const { handleInputKeydown, handleChipKeyDown, onChipClear, handleContentKeyDown } = useKeyNavigation({\n controlledRefs,\n disabled,\n readOnly,\n chips,\n enumerationType,\n updateChips,\n onSearch,\n onChange,\n onEnterDisabled: (rest as any).onEnterDisabled,\n });\n\n const onChipClick = (event: React.MouseEvent<HTMLButtonElement>) => event.stopPropagation();\n\n const handleInputFocus = () => {\n if (readOnly || disabled || !inputRef?.current) {\n return;\n }\n\n inputRef.current.scrollTo({\n top: 0,\n left: inputRef.current.offsetLeft,\n behavior: 'smooth',\n });\n\n inputRef.current.focus();\n };\n\n const getRef = (element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs?.current) {\n chipsRefs.current[index] = element;\n }\n };\n\n const handleOnKeyDown = (event: ChangeEvent<HTMLInputElement> & KeyboardEvent<HTMLInputElement>) => {\n handleInputKeydown(event);\n\n if (onKeyDown) {\n onKeyDown(event);\n }\n };\n\n useEffect(() => {\n if (!isChipEnumeration && !values?.length) {\n return;\n }\n\n const newChips =\n values?.map((value, index) => ({\n id: `${index}_${value}`,\n text: value,\n })) || [];\n\n setChips(newChips);\n }, [isChipEnumeration, values]);\n\n useEffect(() => {\n setHasValue(Boolean(rest?.defaultValue));\n }, [rest.defaultValue]);\n\n useEffect(() => {\n setHasValue(Boolean(outerValue) || Boolean(inputRef?.current?.value));\n }, [outerValue, inputRef?.current?.value]);\n\n const innerOptional = Boolean(required ? false : optional);\n const hasPlaceholderOptional = innerOptional && !innerLabelValue && !hasOuterLabel;\n const optionalTextNode = innerOptional ? (\n <StyledOptionalText>\n {Boolean(hasPlaceholderOptional ? innerPlaceholderValue : innerLabelValue) && '\\xa0'}\n {optionalText}\n </StyledOptionalText>\n ) : null;\n\n return (\n <Root\n view={view}\n size={size}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n clear={clear}\n labelPlacement={innerLabelPlacementValue}\n onClick={handleInputFocus}\n className={cx(\n labelPlacementClass,\n clearClass,\n hasDividerClass,\n hasHintClass,\n classes.textFieldGroupItem,\n className,\n )}\n style={style}\n {...(hintText && { hintView, hintSize })}\n >\n {(hasOuterLabel || titleCaption) && (\n <OuterLabelWrapper isInnerLabel={labelPlacement === 'inner'}>\n {hasOuterLabel && (\n <StyledIndicatorWrapper>\n <Label id={labelId} htmlFor={id}>\n {innerLabelValue}\n </Label>\n\n {hintText && (\n <StyledHintWrapper>\n <HintComponent\n ref={hintForkRef}\n hintText={hintText}\n hintTrigger={hintTrigger}\n isHintVisible={isHintVisible}\n hintTargetIcon={hintTargetIcon}\n hintPlacement={hintPlacement}\n hintHasArrow={hintHasArrow}\n hintOffset={hintOffset}\n hintWidth={hintWidth}\n hintContentLeft={hintContentLeft}\n handleHintShow={handleHintShow}\n handleHintHide={handleHintHide}\n handleHintClick={handleHintClick}\n />\n </StyledHintWrapper>\n )}\n {required && (\n <StyledIndicator\n className={cx(\n classes.outerLabelPlacement,\n requiredPlacementClass,\n hasHintClass,\n )}\n />\n )}\n {optionalTextNode}\n </StyledIndicatorWrapper>\n )}\n {titleCaption && <TitleCaption>{titleCaption}</TitleCaption>}\n </OuterLabelWrapper>\n )}\n <InputWrapper\n // Ref для внутреннего использования. Не отдается наружу.\n ref={(rest as any).inputWrapperRef}\n className={cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)}\n >\n {!hasOuterLabel && (\n <>\n {required && (\n <StyledIndicator\n className={cx(classes.innerLabelPlacement, requiredPlacementClass)}\n />\n )}\n {hintText && (\n <StyledHintWrapper className={classes.innerLabelPlacement}>\n <HintComponent\n ref={hintForkRef}\n hintText={hintText}\n hintTrigger={hintTrigger}\n isHintVisible={isHintVisible}\n hintTargetIcon={hintTargetIcon}\n hintPlacement={hintPlacement}\n hintHasArrow={hintHasArrow}\n hintOffset={hintOffset}\n hintWidth={hintWidth}\n hintContentLeft={hintContentLeft}\n handleHintShow={handleHintShow}\n handleHintHide={handleHintHide}\n handleHintClick={handleHintClick}\n />\n </StyledHintWrapper>\n )}\n </>\n )}\n {contentLeft && (\n <StyledContentLeft isClear={clear} isDefaultView={isDefaultView}>\n {contentLeft}\n </StyledContentLeft>\n )}\n <InputLabelWrapper\n tabIndex={-1}\n ref={contentRef}\n onKeyDown={handleContentKeyDown}\n className={withHasChips}\n >\n {textBefore && <StyledTextBefore>{textBefore}</StyledTextBefore>}\n {isChipEnumeration && Boolean(chips?.length) && (\n <StyledChips>\n {chips?.map(({ id: chipId, text }, index) => {\n return (\n <TextFieldChip\n id={chipId}\n ref={(element) => getRef(element, index)}\n key={`${chipId}_${index}`}\n disabled={disabled}\n readOnly={readOnly}\n value={text}\n text={text}\n onKeyDown={(event) => handleChipKeyDown(event, chipId, index)}\n onClear={() => onChipClear(chipId, index)}\n onClick={onChipClick}\n />\n );\n })}\n </StyledChips>\n )}\n <InputContainer>\n <Input\n ref={inputForkRef}\n id={innerId}\n value={outerValue}\n aria-labelledby={labelId}\n aria-describedby={helperTextId}\n placeholder={innerPlaceholderValue}\n className={cx(hasValueClass)}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n onInput={handleInput}\n onChange={handleChange}\n onKeyDown={handleOnKeyDown}\n {...rest}\n />\n {hasInnerLabel && (\n <Label id={labelId} htmlFor={innerId}>\n {innerLabelValue}\n {optionalTextNode}\n </Label>\n )}\n {placeholderShown && !hasValue && (\n <InputPlaceholder>\n {innerPlaceholderValue}\n {hasPlaceholderOptional && optionalTextNode}\n </InputPlaceholder>\n )}\n </InputContainer>\n {textAfter && <StyledTextAfter>{textAfter}</StyledTextAfter>}\n </InputLabelWrapper>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </InputWrapper>\n {leftHelper && <LeftHelper id={helperTextId}>{leftHelper}</LeftHelper>}\n </Root>\n );\n },\n );\n\nexport const textFieldConfig = {\n name: 'TextField',\n tag: 'div',\n layout: textFieldRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n clear: {\n css: clearCSS,\n attrs: true,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n css: readOnlyCSS,\n attrs: true,\n },\n labelPlacement: {\n css: labelPlacementCSS,\n },\n hintView: {\n css: hintViewCSS,\n },\n hintSize: {\n css: hintSizeCSS,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["optionalText","base","HINT_DEFAULT_OFFSET","textFieldRoot","Root","forwardRef","_ref","ref","_inputRef$current","_inputRef$current3","id","className","style","contentLeft","contentRight","label","labelPlacement","textBefore","textAfter","placeholder","leftHelper","_ref$enumerationType","enumerationType","_ref$requiredPlacemen","requiredPlacement","titleCaption","_ref$hintTrigger","hintTrigger","hintText","_ref$hintView","hintView","_ref$hintSize","hintSize","hintTargetIcon","_ref$hintPlacement","hintPlacement","hintHasArrow","_ref$hintOffset","hintOffset","hintWidth","hintContentLeft","view","size","_ref$readOnly","readOnly","_ref$disabled","disabled","_ref$required","required","_ref$clear","clear","optional","hasDivider","outerValue","value","values","chips","onChange","onChangeChips","onSearch","onKeyDown","rest","contentRef","useRef","inputRef","inputForkRef","useForkRef","chipsRefs","controlledRefs","_useState","useState","Boolean","current","defaultValue","_useState2","_slicedToArray","hasValue","setHasValue","_useState3","_useState4","setChips","_useState5","_useState6","isHintVisible","setIsHintVisible","uniqId","safeUseId","innerId","labelId","helperTextId","isDefaultView","isChipEnumeration","isChipsVisible","length","withHasChips","classes","hasChips","undefined","hasLabelValue","hasInnerLabel","hasOuterLabel","hasPlaceholder","innerLabelValue","innerLabelPlacementValue","innerPlaceholderValue","placeholderShown","clearClass","hasDividerClass","hasHintClass","hasHint","requiredPlacementClass","requiredAlignRight","labelPlacementClass","concat","hasValueClass","wrapperWithoutLeftContent","hasEmptyContentLeft","wrapperWithoutRightContent","hasEmptyContentRight","hintRef","useOutsideClick","hintInnerRef","hintForkRef","handleInput","event","target","handleHintShow","handleHintHide","handleHintClick","_hintInnerRef$current","stopPropagation","targetIsPopover","rootHasTarget","contains","handleChange","_event$target","maxLength","updateChips","newChips","newValues","_useKeyNavigation","useKeyNavigation","onEnterDisabled","handleInputKeydown","handleChipKeyDown","onChipClear","handleContentKeyDown","onChipClick","handleInputFocus","scrollTo","top","left","offsetLeft","behavior","focus","getRef","element","index","handleOnKeyDown","useEffect","map","text","_inputRef$current2","innerOptional","hasPlaceholderOptional","optionalTextNode","React","createElement","StyledOptionalText","_extends","onClick","cx","textFieldGroupItem","OuterLabelWrapper","isInnerLabel","StyledIndicatorWrapper","Label","htmlFor","StyledHintWrapper","HintComponent","StyledIndicator","outerLabelPlacement","TitleCaption","InputWrapper","inputWrapperRef","Fragment","innerLabelPlacement","StyledContentLeft","isClear","InputLabelWrapper","tabIndex","StyledTextBefore","StyledChips","_ref2","chipId","TextFieldChip","key","onClear","InputContainer","Input","onInput","InputPlaceholder","StyledTextAfter","StyledContentRight","LeftHelper","textFieldConfig","name","tag","layout","variations","css","viewCSS","sizeCSS","clearCSS","attrs","disabledCSS","readOnlyCSS","labelPlacementCSS","hintViewCSS","hintSizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2CA,IAAMA,YAAY,GAAG,UAAU,CAAA;AAExB,IAAMC,IAAI,GAGhB,UAAA;AAED,IAAMC,mBAAqC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAEvCC,aAAa,GAAGA,SAAhBA,aAAaA,CAAIC,IAAmD,EAA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