@salutejs/plasma-new-hope 0.190.0-canary.1550.11795356464.0 → 0.190.0-canary.1552.11794692529.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (631) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +22 -21
  2. package/cjs/components/Cell/Cell.js +1 -3
  3. package/cjs/components/Cell/Cell.js.map +1 -1
  4. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  5. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
  6. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  7. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
  8. package/cjs/components/Chip/Chip.js +1 -3
  9. package/cjs/components/Chip/Chip.js.map +1 -1
  10. package/cjs/components/Combobox/ComboboxNew/Combobox.css +24 -21
  11. package/cjs/components/Combobox/ComboboxNew/Combobox.js +32 -6
  12. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  13. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  14. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  15. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  16. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  17. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  18. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  19. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  20. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.css +1 -0
  21. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +37 -0
  22. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js.map +1 -0
  23. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +15 -0
  24. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +1 -0
  25. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +1 -0
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +24 -21
  27. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +24 -21
  28. package/cjs/components/DatePicker/RangeDate/RangeDate.css +22 -21
  29. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  30. package/cjs/components/DatePicker/SingleDate/SingleDate.css +22 -21
  31. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -1
  32. package/cjs/components/Pagination/Pagination.css +37 -86
  33. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  34. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  35. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  36. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  37. package/cjs/components/Range/Range.css +22 -21
  38. package/cjs/components/Select/Select.css +34 -83
  39. package/cjs/components/Select/Select.js +139 -179
  40. package/cjs/components/Select/Select.js.map +1 -1
  41. package/cjs/components/Select/Select.styles.js +50 -17
  42. package/cjs/components/Select/Select.styles.js.map +1 -1
  43. package/cjs/components/Select/Select.styles_768h42.css +5 -0
  44. package/cjs/components/Select/Select.tokens.js +78 -122
  45. package/cjs/components/Select/Select.tokens.js.map +1 -1
  46. package/cjs/components/Select/hooks/useKeyboardNavigation.js +72 -19
  47. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  48. package/cjs/components/Select/hooks/usePathMaps.js +1 -4
  49. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  50. package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
  51. package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  52. package/cjs/components/Select/ui/Inner/Inner.css +34 -83
  53. package/cjs/components/Select/ui/Inner/Inner.js +9 -9
  54. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  55. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  56. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -20
  57. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  58. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +51 -34
  59. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  60. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  61. package/cjs/components/Select/ui/Target/Target.css +17 -58
  62. package/cjs/components/Select/ui/Target/Target.js +16 -34
  63. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  64. package/cjs/components/Select/ui/Target/ui/Button/Button.css +5 -5
  65. package/cjs/components/Select/ui/Target/ui/Button/Button.js +14 -10
  66. package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  67. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  68. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  69. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  70. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  71. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +97 -84
  72. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  73. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +103 -38
  74. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  75. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  76. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  77. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +36 -0
  78. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  79. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  80. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  81. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  82. package/cjs/components/Select/utils/getView.js +2 -2
  83. package/cjs/components/Select/utils/getView.js.map +1 -1
  84. package/cjs/components/Select/variations/_size/base.js +9 -0
  85. package/cjs/components/Select/variations/_size/base.js.map +1 -0
  86. package/cjs/components/Select/variations/_size/base_x642ct.css +1 -0
  87. package/cjs/components/Select/variations/_view/base.js +9 -0
  88. package/cjs/components/Select/variations/_view/base.js.map +1 -0
  89. package/cjs/components/Select/variations/_view/base_x642ct.css +1 -0
  90. package/cjs/components/Slider/Slider.css +22 -21
  91. package/cjs/components/Slider/components/Double/Double.css +22 -21
  92. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  93. package/cjs/components/TextField/TextField.js +0 -7
  94. package/cjs/components/TextField/TextField.js.map +1 -1
  95. package/cjs/components/TextField/TextField.styles.js +22 -14
  96. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  97. package/{es/components/TextField/TextField.styles_j7dqpn.css → cjs/components/TextField/TextField.styles_grgg7q.css} +7 -6
  98. package/cjs/components/TextField/ui/Hint/Hint.css +21 -20
  99. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  100. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  101. package/cjs/components/TextField/variations/_clear/base.js +1 -1
  102. package/cjs/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  103. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  104. package/cjs/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  105. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  106. package/cjs/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  107. package/cjs/components/TextField/variations/_size/base.js +1 -1
  108. package/cjs/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  109. package/cjs/components/TextField/variations/_view/base.js +1 -1
  110. package/cjs/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  111. package/cjs/index.css +63 -46
  112. package/cjs/index.js +0 -2
  113. package/cjs/index.js.map +1 -1
  114. package/cjs/utils/index.js.map +1 -1
  115. package/cjs/utils/syntheticEvent.js +55 -0
  116. package/cjs/utils/syntheticEvent.js.map +1 -0
  117. package/emotion/cjs/components/Cell/Cell.js +1 -3
  118. package/emotion/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  119. package/emotion/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  120. package/emotion/cjs/components/Chip/Chip.js +1 -3
  121. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +33 -7
  122. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  123. package/emotion/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  124. package/emotion/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  125. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +38 -0
  126. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +13 -0
  127. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  128. package/emotion/cjs/components/Select/Select.js +136 -177
  129. package/emotion/cjs/components/Select/Select.styles.js +31 -13
  130. package/emotion/cjs/components/Select/Select.tokens.js +60 -125
  131. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  132. package/emotion/cjs/components/Select/hooks/usePathMaps.js +1 -4
  133. package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  134. package/emotion/cjs/components/Select/reducers/index.js +11 -0
  135. package/emotion/cjs/components/Select/ui/Inner/Inner.js +9 -9
  136. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  137. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -27
  138. package/emotion/cjs/components/Select/ui/Target/Target.js +18 -38
  139. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  140. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  141. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  142. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  143. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  144. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  145. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  146. package/emotion/cjs/components/Select/utils/getView.js +2 -2
  147. package/emotion/cjs/components/Select/utils/index.js +1 -22
  148. package/emotion/cjs/components/Select/variations/_size/base.js +8 -0
  149. package/emotion/cjs/components/Select/variations/_size/tokens.json +9 -0
  150. package/emotion/cjs/components/Select/variations/_view/base.js +8 -0
  151. package/emotion/cjs/components/Select/variations/_view/tokens.json +1 -0
  152. package/emotion/cjs/components/TextField/TextField.js +1 -8
  153. package/emotion/cjs/components/TextField/TextField.styles.js +40 -36
  154. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  155. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  156. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  157. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  158. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  159. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  160. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  161. package/emotion/cjs/index.js +0 -11
  162. package/emotion/cjs/utils/index.js +1 -9
  163. package/emotion/cjs/utils/syntheticEvent.js +53 -0
  164. package/emotion/es/components/Cell/Cell.js +1 -3
  165. package/emotion/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  166. package/emotion/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  167. package/emotion/es/components/Chip/Chip.js +1 -3
  168. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +34 -7
  169. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  170. package/emotion/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  171. package/emotion/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  172. package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.js +29 -0
  173. package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +6 -0
  174. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  175. package/emotion/es/components/Select/Select.js +141 -182
  176. package/emotion/es/components/Select/Select.styles.js +30 -12
  177. package/emotion/es/components/Select/Select.tokens.js +60 -125
  178. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  179. package/emotion/es/components/Select/hooks/usePathMaps.js +1 -4
  180. package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  181. package/emotion/es/components/Select/reducers/index.js +2 -1
  182. package/emotion/es/components/Select/ui/Inner/Inner.js +10 -10
  183. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  184. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +49 -26
  185. package/emotion/es/components/Select/ui/Target/Target.js +17 -35
  186. package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  187. package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  188. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  189. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  190. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  191. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +15 -0
  192. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  193. package/emotion/es/components/Select/utils/getView.js +2 -2
  194. package/emotion/es/components/Select/utils/index.js +1 -4
  195. package/emotion/es/components/Select/variations/_size/base.js +2 -0
  196. package/emotion/es/components/Select/variations/_size/tokens.json +9 -0
  197. package/emotion/es/components/Select/variations/_view/base.js +2 -0
  198. package/emotion/es/components/Select/variations/_view/tokens.json +1 -0
  199. package/emotion/es/components/TextField/TextField.js +1 -8
  200. package/emotion/es/components/TextField/TextField.styles.js +40 -36
  201. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  202. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  203. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  204. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  205. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  206. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  207. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  208. package/emotion/es/index.js +0 -1
  209. package/emotion/es/utils/index.js +1 -2
  210. package/emotion/es/utils/syntheticEvent.js +47 -0
  211. package/es/components/Autocomplete/Autocomplete.css +22 -21
  212. package/es/components/Cell/Cell.js +1 -3
  213. package/es/components/Cell/Cell.js.map +1 -1
  214. package/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  215. package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
  216. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  217. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
  218. package/es/components/Chip/Chip.js +1 -3
  219. package/es/components/Chip/Chip.js.map +1 -1
  220. package/es/components/Combobox/ComboboxNew/Combobox.css +24 -21
  221. package/es/components/Combobox/ComboboxNew/Combobox.js +34 -8
  222. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  223. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  224. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  225. package/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  226. package/es/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  227. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  228. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  229. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  230. package/es/components/Combobox/ComboboxNew/ui/Form/Form.css +1 -0
  231. package/es/components/Combobox/ComboboxNew/ui/Form/Form.js +33 -0
  232. package/es/components/Combobox/ComboboxNew/ui/Form/Form.js.map +1 -0
  233. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +11 -0
  234. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +1 -0
  235. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +1 -0
  236. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +24 -21
  237. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +24 -21
  238. package/es/components/DatePicker/RangeDate/RangeDate.css +22 -21
  239. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  240. package/es/components/DatePicker/SingleDate/SingleDate.css +22 -21
  241. package/es/components/Dropdown/FloatingPopover.js.map +1 -1
  242. package/es/components/Pagination/Pagination.css +37 -86
  243. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  244. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  245. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  246. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  247. package/es/components/Range/Range.css +22 -21
  248. package/es/components/Select/Select.css +34 -83
  249. package/es/components/Select/Select.js +142 -182
  250. package/es/components/Select/Select.js.map +1 -1
  251. package/es/components/Select/Select.styles.js +48 -18
  252. package/es/components/Select/Select.styles.js.map +1 -1
  253. package/es/components/Select/Select.styles_768h42.css +5 -0
  254. package/es/components/Select/Select.tokens.js +78 -123
  255. package/es/components/Select/Select.tokens.js.map +1 -1
  256. package/es/components/Select/hooks/useKeyboardNavigation.js +73 -19
  257. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  258. package/es/components/Select/hooks/usePathMaps.js +1 -4
  259. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  260. package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
  261. package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  262. package/es/components/Select/ui/Inner/Inner.css +34 -83
  263. package/es/components/Select/ui/Inner/Inner.js +10 -10
  264. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  265. package/es/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  266. package/es/components/Select/ui/Inner/ui/Item/Item.js +14 -22
  267. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  268. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -33
  269. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  270. package/es/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  271. package/es/components/Select/ui/Target/Target.css +17 -58
  272. package/es/components/Select/ui/Target/Target.js +17 -35
  273. package/es/components/Select/ui/Target/Target.js.map +1 -1
  274. package/es/components/Select/ui/Target/ui/Button/Button.css +5 -5
  275. package/es/components/Select/ui/Target/ui/Button/Button.js +15 -11
  276. package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  277. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  278. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  279. package/es/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  280. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  281. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  282. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  283. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +95 -39
  284. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  285. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  286. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  287. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +32 -0
  288. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  289. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +18 -0
  290. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  291. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  292. package/es/components/Select/utils/getView.js +2 -2
  293. package/es/components/Select/utils/getView.js.map +1 -1
  294. package/es/components/Select/variations/_size/base.js +5 -0
  295. package/es/components/Select/variations/_size/base.js.map +1 -0
  296. package/es/components/Select/variations/_size/base_x642ct.css +1 -0
  297. package/es/components/Select/variations/_view/base.js +5 -0
  298. package/es/components/Select/variations/_view/base.js.map +1 -0
  299. package/es/components/Select/variations/_view/base_x642ct.css +1 -0
  300. package/es/components/Slider/Slider.css +22 -21
  301. package/es/components/Slider/components/Double/Double.css +22 -21
  302. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  303. package/es/components/TextField/TextField.js +0 -7
  304. package/es/components/TextField/TextField.js.map +1 -1
  305. package/es/components/TextField/TextField.styles.js +22 -14
  306. package/es/components/TextField/TextField.styles.js.map +1 -1
  307. package/{cjs/components/TextField/TextField.styles_j7dqpn.css → es/components/TextField/TextField.styles_grgg7q.css} +7 -6
  308. package/es/components/TextField/ui/Hint/Hint.css +21 -20
  309. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  310. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  311. package/es/components/TextField/variations/_clear/base.js +1 -1
  312. package/es/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  313. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  314. package/es/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  315. package/es/components/TextField/variations/_read-only/base.js +1 -1
  316. package/es/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  317. package/es/components/TextField/variations/_size/base.js +1 -1
  318. package/es/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  319. package/es/components/TextField/variations/_view/base.js +1 -1
  320. package/es/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  321. package/es/index.css +63 -46
  322. package/es/index.js +0 -1
  323. package/es/index.js.map +1 -1
  324. package/es/utils/index.js.map +1 -1
  325. package/es/utils/syntheticEvent.js +50 -0
  326. package/es/utils/syntheticEvent.js.map +1 -0
  327. package/package.json +2 -2
  328. package/styled-components/cjs/components/Cell/Cell.js +1 -3
  329. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  330. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  331. package/styled-components/cjs/components/Chip/Chip.js +1 -3
  332. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +33 -7
  333. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  334. package/styled-components/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  335. package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  336. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +38 -0
  337. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +12 -0
  338. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  339. package/styled-components/cjs/components/Select/Select.js +136 -177
  340. package/styled-components/cjs/components/Select/Select.styles.js +27 -12
  341. package/styled-components/cjs/components/Select/Select.tokens.js +60 -125
  342. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  343. package/styled-components/cjs/components/Select/hooks/usePathMaps.js +1 -4
  344. package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  345. package/styled-components/cjs/components/Select/reducers/index.js +11 -0
  346. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +9 -9
  347. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  348. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +26 -20
  349. package/styled-components/cjs/components/Select/ui/Target/Target.js +18 -38
  350. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  351. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  352. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  353. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  354. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  355. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +21 -0
  356. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  357. package/styled-components/cjs/components/Select/utils/getView.js +2 -2
  358. package/styled-components/cjs/components/Select/utils/index.js +1 -22
  359. package/styled-components/cjs/components/Select/variations/_size/base.js +8 -0
  360. package/styled-components/cjs/components/Select/variations/_size/tokens.json +9 -0
  361. package/styled-components/cjs/components/Select/variations/_view/base.js +8 -0
  362. package/styled-components/cjs/components/Select/variations/_view/tokens.json +1 -0
  363. package/styled-components/cjs/components/TextField/TextField.js +0 -7
  364. package/styled-components/cjs/components/TextField/TextField.styles.js +15 -12
  365. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  366. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  367. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  368. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  369. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  370. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  371. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  372. package/styled-components/cjs/index.js +0 -11
  373. package/styled-components/cjs/utils/index.js +1 -9
  374. package/styled-components/cjs/utils/syntheticEvent.js +53 -0
  375. package/styled-components/es/components/Cell/Cell.js +1 -3
  376. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  377. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  378. package/styled-components/es/components/Chip/Chip.js +1 -3
  379. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +34 -7
  380. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  381. package/styled-components/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  382. package/styled-components/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  383. package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.js +29 -0
  384. package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +5 -0
  385. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  386. package/styled-components/es/components/Select/Select.js +141 -182
  387. package/styled-components/es/components/Select/Select.styles.js +26 -11
  388. package/styled-components/es/components/Select/Select.tokens.js +60 -125
  389. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  390. package/styled-components/es/components/Select/hooks/usePathMaps.js +1 -4
  391. package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  392. package/styled-components/es/components/Select/reducers/index.js +2 -1
  393. package/styled-components/es/components/Select/ui/Inner/Inner.js +10 -10
  394. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  395. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +25 -19
  396. package/styled-components/es/components/Select/ui/Target/Target.js +17 -35
  397. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  398. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  399. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  400. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  401. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  402. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +14 -0
  403. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  404. package/styled-components/es/components/Select/utils/getView.js +2 -2
  405. package/styled-components/es/components/Select/utils/index.js +1 -4
  406. package/styled-components/es/components/Select/variations/_size/base.js +2 -0
  407. package/styled-components/es/components/Select/variations/_size/tokens.json +9 -0
  408. package/styled-components/es/components/Select/variations/_view/base.js +2 -0
  409. package/styled-components/es/components/Select/variations/_view/tokens.json +1 -0
  410. package/styled-components/es/components/TextField/TextField.js +0 -7
  411. package/styled-components/es/components/TextField/TextField.styles.js +15 -12
  412. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  413. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  414. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  415. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  416. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  417. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  418. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  419. package/styled-components/es/index.js +0 -1
  420. package/styled-components/es/utils/index.js +1 -2
  421. package/styled-components/es/utils/syntheticEvent.js +47 -0
  422. package/types/components/Attach/ui/Button/Button.styles.d.ts +2 -2
  423. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +4 -4
  424. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +16 -16
  425. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  426. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +2 -2
  427. package/types/components/Cell/Cell.d.ts.map +1 -1
  428. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -1
  429. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -1
  430. package/types/components/Chip/Chip.d.ts.map +1 -1
  431. package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -2
  432. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  433. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +1 -0
  434. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  435. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +25 -3
  436. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  437. package/types/components/Combobox/ComboboxNew/FloatingPopover.d.ts.map +1 -1
  438. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +3 -1
  439. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
  440. package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts +6 -0
  441. package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts.map +1 -0
  442. package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts +3 -0
  443. package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts.map +1 -0
  444. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +16 -16
  445. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  446. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +16 -16
  447. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  448. package/types/components/EmptyState/EmptyState.styles.d.ts +2 -2
  449. package/types/components/Notification/Notification.styles.d.ts +2 -2
  450. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +2 -2
  451. package/types/components/Pagination/Pagination.styles.d.ts +4 -4
  452. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +40 -40
  453. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +2 -2
  454. package/types/components/Range/Range.styles.d.ts +16 -16
  455. package/types/components/Range/Range.styles.d.ts.map +1 -1
  456. package/types/components/Select/Select.d.ts +11 -5
  457. package/types/components/Select/Select.d.ts.map +1 -1
  458. package/types/components/Select/Select.styles.d.ts +9 -0
  459. package/types/components/Select/Select.styles.d.ts.map +1 -1
  460. package/types/components/Select/Select.tokens.d.ts +58 -121
  461. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  462. package/types/components/Select/Select.types.d.ts +20 -41
  463. package/types/components/Select/Select.types.d.ts.map +1 -1
  464. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +11 -5
  465. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  466. package/types/components/Select/hooks/usePathMaps.d.ts +1 -2
  467. package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -1
  468. package/types/components/Select/index.d.ts +1 -1
  469. package/types/components/Select/index.d.ts.map +1 -1
  470. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +11 -0
  471. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +1 -0
  472. package/types/components/Select/reducers/index.d.ts +1 -0
  473. package/types/components/Select/reducers/index.d.ts.map +1 -1
  474. package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -1
  475. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  476. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +2 -32
  477. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  478. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +0 -9
  479. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
  480. package/types/components/Select/ui/Target/Target.d.ts +2 -14
  481. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  482. package/types/components/Select/ui/Target/Target.types.d.ts +9 -10
  483. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  484. package/types/components/Select/ui/Target/ui/Button/Button.d.ts +1 -1
  485. package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -1
  486. package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts +2 -2
  487. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +1 -1
  488. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -1
  489. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +1 -1
  490. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  491. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +60 -628
  492. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  493. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +4 -1
  494. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  495. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts +9 -0
  496. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts.map +1 -0
  497. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts +3 -0
  498. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts.map +1 -0
  499. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts +2 -0
  500. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts.map +1 -0
  501. package/types/components/Select/utils/getView.d.ts +1 -1
  502. package/types/components/Select/utils/getView.d.ts.map +1 -1
  503. package/types/components/Select/utils/index.d.ts +0 -3
  504. package/types/components/Select/utils/index.d.ts.map +1 -1
  505. package/types/components/Select/variations/_size/base.d.ts +2 -0
  506. package/types/components/Select/variations/_size/base.d.ts.map +1 -0
  507. package/types/components/Select/variations/_view/base.d.ts +2 -0
  508. package/types/components/Select/variations/_view/base.d.ts.map +1 -0
  509. package/types/components/Slider/components/Double/Double.styles.d.ts +16 -16
  510. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  511. package/types/components/TextField/TextField.d.ts.map +1 -1
  512. package/types/components/TextField/TextField.styles.d.ts +3 -1
  513. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  514. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +1 -3
  515. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  516. package/types/components/Toast/Toast.styles.d.ts +2 -2
  517. package/types/components/Toast/utils.d.ts +2 -2
  518. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +8 -8
  519. package/types/examples/plasma_b2c/components/Button/Button.d.ts +2 -2
  520. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1100 -140
  521. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  522. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +2 -2
  523. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +16 -16
  524. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  525. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
  526. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts.map +1 -1
  527. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +7 -15
  528. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  529. package/types/examples/plasma_b2c/components/Select/Select.d.ts +46 -53
  530. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  531. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +16 -16
  532. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +16 -16
  533. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  534. package/types/examples/plasma_web/components/Attach/Attach.d.ts +8 -8
  535. package/types/examples/plasma_web/components/Button/Button.d.ts +2 -2
  536. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1100 -140
  537. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  538. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +2 -2
  539. package/types/examples/plasma_web/components/Mask/Mask.d.ts +16 -16
  540. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  541. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
  542. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts.map +1 -1
  543. package/types/examples/plasma_web/components/Select/Select.config.d.ts +7 -15
  544. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  545. package/types/examples/plasma_web/components/Select/Select.d.ts +46 -53
  546. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  547. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +16 -16
  548. package/types/examples/plasma_web/components/TextField/TextField.d.ts +16 -16
  549. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  550. package/types/index.d.ts +0 -1
  551. package/types/index.d.ts.map +1 -1
  552. package/types/types/index.d.ts +0 -2
  553. package/types/types/index.d.ts.map +1 -1
  554. package/types/utils/index.d.ts +0 -1
  555. package/types/utils/index.d.ts.map +1 -1
  556. package/types/utils/syntheticEvent.d.ts +4 -0
  557. package/types/utils/syntheticEvent.d.ts.map +1 -0
  558. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  559. package/cjs/components/Select/FloatingPopover.js +0 -87
  560. package/cjs/components/Select/FloatingPopover.js.map +0 -1
  561. package/cjs/components/Select/Select.styles_1p5c9p3.css +0 -2
  562. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  563. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  564. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_lu1i4v.css +0 -3
  565. package/cjs/components/Select/utils/getFallbackPlacements.js +0 -15
  566. package/cjs/components/Select/utils/getFallbackPlacements.js.map +0 -1
  567. package/cjs/components/Select/utils/getItemId.js +0 -10
  568. package/cjs/components/Select/utils/getItemId.js.map +0 -1
  569. package/cjs/components/Select/utils/getPlacement.js +0 -13
  570. package/cjs/components/Select/utils/getPlacement.js.map +0 -1
  571. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  572. package/cjs/utils/fixedForwardRef.js +0 -12
  573. package/cjs/utils/fixedForwardRef.js.map +0 -1
  574. package/emotion/cjs/components/Select/FloatingPopover.js +0 -91
  575. package/emotion/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  576. package/emotion/cjs/components/Select/utils/getItemId.js +0 -9
  577. package/emotion/cjs/components/Select/utils/getPlacement.js +0 -12
  578. package/emotion/cjs/types/DistributiveOmit.js +0 -5
  579. package/emotion/cjs/types/DistributivePick.js +0 -5
  580. package/emotion/cjs/utils/fixedForwardRef.js +0 -11
  581. package/emotion/es/components/Select/FloatingPopover.js +0 -84
  582. package/emotion/es/components/Select/utils/getFallbackPlacements.js +0 -8
  583. package/emotion/es/components/Select/utils/getItemId.js +0 -3
  584. package/emotion/es/components/Select/utils/getPlacement.js +0 -6
  585. package/emotion/es/types/DistributiveOmit.js +0 -1
  586. package/emotion/es/types/DistributivePick.js +0 -1
  587. package/emotion/es/utils/fixedForwardRef.js +0 -4
  588. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  589. package/es/components/Select/FloatingPopover.js +0 -83
  590. package/es/components/Select/FloatingPopover.js.map +0 -1
  591. package/es/components/Select/Select.styles_1p5c9p3.css +0 -2
  592. package/es/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  593. package/es/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  594. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_lu1i4v.css +0 -3
  595. package/es/components/Select/utils/getFallbackPlacements.js +0 -11
  596. package/es/components/Select/utils/getFallbackPlacements.js.map +0 -1
  597. package/es/components/Select/utils/getItemId.js +0 -6
  598. package/es/components/Select/utils/getItemId.js.map +0 -1
  599. package/es/components/Select/utils/getPlacement.js +0 -9
  600. package/es/components/Select/utils/getPlacement.js.map +0 -1
  601. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  602. package/es/utils/fixedForwardRef.js +0 -8
  603. package/es/utils/fixedForwardRef.js.map +0 -1
  604. package/styled-components/cjs/components/Select/FloatingPopover.js +0 -91
  605. package/styled-components/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  606. package/styled-components/cjs/components/Select/utils/getItemId.js +0 -9
  607. package/styled-components/cjs/components/Select/utils/getPlacement.js +0 -12
  608. package/styled-components/cjs/types/DistributiveOmit.js +0 -5
  609. package/styled-components/cjs/types/DistributivePick.js +0 -5
  610. package/styled-components/cjs/utils/fixedForwardRef.js +0 -11
  611. package/styled-components/es/components/Select/FloatingPopover.js +0 -84
  612. package/styled-components/es/components/Select/utils/getFallbackPlacements.js +0 -8
  613. package/styled-components/es/components/Select/utils/getItemId.js +0 -3
  614. package/styled-components/es/components/Select/utils/getPlacement.js +0 -6
  615. package/styled-components/es/types/DistributiveOmit.js +0 -1
  616. package/styled-components/es/types/DistributivePick.js +0 -1
  617. package/styled-components/es/utils/fixedForwardRef.js +0 -4
  618. package/types/components/Select/FloatingPopover.d.ts +0 -5
  619. package/types/components/Select/FloatingPopover.d.ts.map +0 -1
  620. package/types/components/Select/utils/getFallbackPlacements.d.ts +0 -4
  621. package/types/components/Select/utils/getFallbackPlacements.d.ts.map +0 -1
  622. package/types/components/Select/utils/getItemId.d.ts +0 -2
  623. package/types/components/Select/utils/getItemId.d.ts.map +0 -1
  624. package/types/components/Select/utils/getPlacement.d.ts +0 -4
  625. package/types/components/Select/utils/getPlacement.d.ts.map +0 -1
  626. package/types/types/DistributiveOmit.d.ts +0 -2
  627. package/types/types/DistributiveOmit.d.ts.map +0 -1
  628. package/types/types/DistributivePick.d.ts +0 -2
  629. package/types/types/DistributivePick.d.ts.map +0 -1
  630. package/types/utils/fixedForwardRef.d.ts +0 -3
  631. package/types/utils/fixedForwardRef.d.ts.map +0 -1
@@ -25,58 +25,54 @@ const meta: Meta<StorySelectProps> = {
25
25
  component: Select,
26
26
  argTypes: {
27
27
  target: {
28
- control: 'select',
29
28
  options: ['button-like', 'textfield-like'],
29
+ control: {
30
+ type: 'select',
31
+ },
30
32
  },
31
33
  size: {
32
- control: 'select',
33
34
  options: size,
35
+ control: {
36
+ type: 'select',
37
+ },
34
38
  },
35
39
  view: {
36
- control: 'select',
37
40
  options: view,
41
+ control: {
42
+ type: 'select',
43
+ },
38
44
  },
39
45
  labelPlacement: {
40
- control: 'select',
41
46
  options: labelPlacement,
42
- if: {
43
- arg: 'target',
44
- eq: 'textfield-like',
47
+ control: {
48
+ type: 'select',
45
49
  },
46
50
  },
47
51
  chipView: {
48
- control: 'select',
49
52
  options: chip,
50
- if: {
51
- arg: 'target',
52
- eq: 'textfield-like',
53
+ control: {
54
+ type: 'select',
53
55
  },
54
56
  },
55
57
  variant: {
56
- control: 'select',
57
58
  options: variant,
59
+ control: {
60
+ type: 'select',
61
+ },
58
62
  },
59
63
  listWidth: {
60
- control: 'text',
64
+ control: {
65
+ type: 'text',
66
+ },
61
67
  },
62
68
  listOverflow: {
63
- control: 'text',
64
- },
65
- listHeight: {
66
- control: 'text',
67
- },
68
- helperText: {
69
- control: 'text',
70
- if: {
71
- arg: 'target',
72
- eq: 'textfield-like',
69
+ control: {
70
+ type: 'text',
73
71
  },
74
72
  },
75
- enableContentLeft: {
76
- control: 'boolean',
77
- if: {
78
- arg: 'target',
79
- eq: 'textfield-like',
73
+ listHeight: {
74
+ control: {
75
+ type: 'text',
80
76
  },
81
77
  },
82
78
  },
@@ -88,7 +84,7 @@ const meta: Meta<StorySelectProps> = {
88
84
  helperText: 'Helper text',
89
85
  size: 'm',
90
86
  view: 'default',
91
- chipView: 'secondary',
87
+ chipView: 'default',
92
88
  enableContentLeft: false,
93
89
  isTargetAmount: false,
94
90
  variant: 'normal',
@@ -342,18 +338,13 @@ const SingleStory = (args: StorySelectProps) => {
342
338
  items={items}
343
339
  value={value}
344
340
  onChange={setValue}
345
- contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
341
+ contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
346
342
  />
347
343
  </div>
348
344
  );
349
345
  };
350
346
 
351
347
  export const Single: StoryObj<StorySelectProps> = {
352
- parameters: {
353
- controls: {
354
- exclude: ['chipView', 'isTargetAmount'],
355
- },
356
- },
357
348
  render: (args) => <SingleStory {...args} />,
358
349
  args: {
359
350
  closeAfterSelect: true,
@@ -370,7 +361,7 @@ const MultiselectStory = (args: StorySelectProps) => {
370
361
  items={items}
371
362
  value={value}
372
363
  onChange={setValue}
373
- contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
364
+ contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
374
365
  />
375
366
  </div>
376
367
  );
@@ -395,7 +386,7 @@ const PredefinedStory = (args: StorySelectProps) => {
395
386
  items={items}
396
387
  value={valueSingle}
397
388
  onChange={setValueSingle}
398
- contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
389
+ contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
399
390
  />
400
391
 
401
392
  <br />
@@ -406,7 +397,7 @@ const PredefinedStory = (args: StorySelectProps) => {
406
397
  multiselect
407
398
  value={valueMultiple}
408
399
  onChange={setValueMultiple}
409
- contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
400
+ contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
410
401
  />
411
402
  </div>
412
403
  );
@@ -471,7 +462,7 @@ const CommonStory = (args: StorySelectProps) => {
471
462
  value={value}
472
463
  onChange={setValue}
473
464
  view="default"
474
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
465
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
475
466
  />
476
467
  </div>
477
468
  </td>
@@ -484,7 +475,7 @@ const CommonStory = (args: StorySelectProps) => {
484
475
  value={valueMultiple}
485
476
  onChange={setValueMultiple}
486
477
  view="default"
487
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
478
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
488
479
  />
489
480
  </div>
490
481
  </td>
@@ -615,7 +606,7 @@ const CommonStory = (args: StorySelectProps) => {
615
606
  value={value}
616
607
  onChange={setValue}
617
608
  view="positive"
618
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
609
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
619
610
  />
620
611
  </div>
621
612
  </td>
@@ -628,7 +619,7 @@ const CommonStory = (args: StorySelectProps) => {
628
619
  value={valueMultiple}
629
620
  onChange={setValueMultiple}
630
621
  view="positive"
631
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
622
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
632
623
  />
633
624
  </div>
634
625
  </td>
@@ -668,7 +659,7 @@ const CommonStory = (args: StorySelectProps) => {
668
659
  value={value}
669
660
  onChange={setValue}
670
661
  view="warning"
671
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
662
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
672
663
  />
673
664
  </div>
674
665
  </td>
@@ -681,7 +672,7 @@ const CommonStory = (args: StorySelectProps) => {
681
672
  value={valueMultiple}
682
673
  onChange={setValueMultiple}
683
674
  view="warning"
684
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
675
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
685
676
  />
686
677
  </div>
687
678
  </td>
@@ -721,7 +712,7 @@ const CommonStory = (args: StorySelectProps) => {
721
712
  value={value}
722
713
  onChange={setValue}
723
714
  view="negative"
724
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
715
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
725
716
  />
726
717
  </div>
727
718
  </td>
@@ -734,7 +725,7 @@ const CommonStory = (args: StorySelectProps) => {
734
725
  value={valueMultiple}
735
726
  onChange={setValueMultiple}
736
727
  view="negative"
737
- contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
728
+ contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
738
729
  />
739
730
  </div>
740
731
  </td>
@@ -844,7 +835,9 @@ export const Common: StoryObj<StorySelectProps> = {
844
835
  argTypes: {
845
836
  size: {
846
837
  options: size,
847
- control: 'select',
838
+ control: {
839
+ type: 'select',
840
+ },
848
841
  },
849
842
  },
850
843
  args: {
@@ -47,17 +47,6 @@ Object.keys(_utils).forEach(function (key) {
47
47
  }
48
48
  });
49
49
  });
50
- var _types = /*#__PURE__*/require("./types");
51
- Object.keys(_types).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _types[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function get() {
57
- return _types[key];
58
- }
59
- });
60
- });
61
50
  var _Button = /*#__PURE__*/require("./components/Button");
62
51
  Object.keys(_Button).forEach(function (key) {
63
52
  if (key === "default" || key === "__esModule") return;
@@ -17,8 +17,7 @@ var _exportNames = {
17
17
  setRefList: true,
18
18
  isEmpty: true,
19
19
  constants: true,
20
- noop: true,
21
- fixedForwardRef: true
20
+ noop: true
22
21
  };
23
22
  Object.defineProperty(exports, "IS_REACT_18", {
24
23
  enumerable: true,
@@ -39,12 +38,6 @@ Object.defineProperty(exports, "extractTextFrom", {
39
38
  return _extractTextFrom.extractTextFrom;
40
39
  }
41
40
  });
42
- Object.defineProperty(exports, "fixedForwardRef", {
43
- enumerable: true,
44
- get: function get() {
45
- return _fixedForwardRef.fixedForwardRef;
46
- }
47
- });
48
41
  Object.defineProperty(exports, "getSizeValueFromProp", {
49
42
  enumerable: true,
50
43
  get: function get() {
@@ -109,7 +102,6 @@ Object.keys(_getPopoverPlacement).forEach(function (key) {
109
102
  });
110
103
  });
111
104
  var _noop = /*#__PURE__*/require("./noop");
112
- var _fixedForwardRef = /*#__PURE__*/require("./fixedForwardRef");
113
105
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
114
106
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
115
107
  var cx = exports.cx = function cx() {
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createSyntheticEvent = exports.createEvent = void 0;
7
+ var createEvent = exports.createEvent = function createEvent(ref) {
8
+ if (ref.current) {
9
+ var event = new Event('change', {
10
+ bubbles: true
11
+ });
12
+ Object.defineProperty(event, 'target', {
13
+ writable: false,
14
+ value: ref.current
15
+ });
16
+ var syntheticEvent = createSyntheticEvent(event);
17
+ return syntheticEvent;
18
+ }
19
+ return null;
20
+ };
21
+ var createSyntheticEvent = exports.createSyntheticEvent = function createSyntheticEvent(event) {
22
+ var _isDefaultPrevented = false;
23
+ var _isPropagationStopped = false;
24
+ var preventDefault = function preventDefault() {
25
+ _isDefaultPrevented = true;
26
+ event.preventDefault();
27
+ };
28
+ var stopPropagation = function stopPropagation() {
29
+ _isPropagationStopped = true;
30
+ event.stopPropagation();
31
+ };
32
+ return {
33
+ nativeEvent: event,
34
+ currentTarget: event.currentTarget,
35
+ target: event.target,
36
+ bubbles: event.bubbles,
37
+ cancelable: event.cancelable,
38
+ defaultPrevented: event.defaultPrevented,
39
+ eventPhase: event.eventPhase,
40
+ isTrusted: event.isTrusted,
41
+ preventDefault: preventDefault,
42
+ isDefaultPrevented: function isDefaultPrevented() {
43
+ return _isDefaultPrevented;
44
+ },
45
+ stopPropagation: stopPropagation,
46
+ isPropagationStopped: function isPropagationStopped() {
47
+ return _isPropagationStopped;
48
+ },
49
+ persist: function persist() {},
50
+ timeStamp: event.timeStamp,
51
+ type: event.type
52
+ };
53
+ };
@@ -36,9 +36,7 @@ export var cellRoot = function cellRoot(Root) {
36
36
  className: cx(stretchingClass, classes.cellRoot, className)
37
37
  }, contentLeftDeprecated && /*#__PURE__*/React.createElement(CellLeft, {
38
38
  align: alignContentLeft
39
- }, contentLeftDeprecated), /*#__PURE__*/React.createElement(CellContentWrapper, null, /*#__PURE__*/React.createElement(CellContent, {
40
- className: "cell-content"
41
- }, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox, {
39
+ }, contentLeftDeprecated), /*#__PURE__*/React.createElement(CellContentWrapper, null, /*#__PURE__*/React.createElement(CellContent, null, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox, {
42
40
  label: label,
43
41
  title: titleText,
44
42
  subtitle: subtitle
@@ -8,11 +8,5 @@ export var CellTextbox = function CellTextbox(_ref) {
8
8
  title = _ref.title,
9
9
  subtitle = _ref.subtitle,
10
10
  children = _ref.children;
11
- return (
12
- /*#__PURE__*/
13
- // TODO: #1548
14
- React.createElement(CellTextboxStyled, {
15
- className: "cell-textbox"
16
- }, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextboxLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextboxTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextboxSubtitle, null, subtitle)) : children)
17
- );
11
+ return /*#__PURE__*/React.createElement(CellTextboxStyled, null, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextboxLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextboxTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextboxSubtitle, null, subtitle)) : children);
18
12
  };
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
2
  import { StyledTextboxTitle } from './CellTextboxTitle.styles';
3
3
  export var CellTextboxTitle = function CellTextboxTitle(props) {
4
- // TODO: #1548
5
- return /*#__PURE__*/React.createElement(StyledTextboxTitle, {
6
- className: "cell-textbox-title"
7
- }, props.children);
4
+ return /*#__PURE__*/React.createElement(StyledTextboxTitle, null, props.children);
8
5
  };
@@ -37,9 +37,7 @@ export var chipRoot = function chipRoot(Root) {
37
37
  var txt = !text && typeof children === 'string' ? children : text;
38
38
  var pilledClass = pilled ? classes.pilled : undefined;
39
39
  var handleClick = function handleClick(event) {
40
- // TODO: #1547
41
- // eslint-disable-next-line no-underscore-dangle
42
- if (disabled || readOnly && !rest._forceChipManipulationWithReadonly) {
40
+ if (disabled || readOnly) {
43
41
  return;
44
42
  }
45
43
  onClick === null || onClick === void 0 || onClick(event);
@@ -1,5 +1,6 @@
1
- var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
1
+ var _excluded = ["name", "multiple", "value", "onChange", "defaultValue", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
4
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
5
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
6
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -8,7 +9,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
9
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';
12
+ import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef, useEffect } from 'react';
12
13
  import { safeUseId, useForkRef } from '@salutejs/plasma-core';
13
14
  import { isEmpty } from '../../../utils';
14
15
  import { useOutsideClick } from '../../../hooks';
@@ -23,17 +24,21 @@ import { getPathMap, getTreeMaps } from './hooks/getPathMaps';
23
24
  import { Ul, base, StyledArrow, IconArrowWrapper, StyledEmptyState } from './Combobox.styles';
24
25
  import { base as viewCSS } from './variations/_view/base';
25
26
  import { base as sizeCSS } from './variations/_size/base';
27
+ import { Form } from './ui/Form/Form';
26
28
  export var Context = /*#__PURE__*/createContext({});
27
29
 
28
30
  /**
29
31
  * Поле ввода с выпадающим списком и возможностью фильтрации и выбора элементов.
30
32
  */
33
+
31
34
  export var comboboxRoot = function comboboxRoot(Root) {
32
35
  return /*#__PURE__*/forwardRef(function (props, ref) {
33
36
  var _valueToItemMap$get, _valueToItemMap$get2, _getItemByFocused;
34
- var multiple = props.multiple,
37
+ var name = props.name,
38
+ multiple = props.multiple,
35
39
  outerValue = props.value,
36
40
  outerOnChange = props.onChange,
41
+ defaultValue = props.defaultValue,
37
42
  isTargetAmount = props.isTargetAmount,
38
43
  targetAmount = props.targetAmount,
39
44
  items = props.items,
@@ -142,9 +147,19 @@ export var comboboxRoot = function comboboxRoot(Root) {
142
147
  }, floatingPopoverRef);
143
148
  var onChange = function onChange(newValue) {
144
149
  if (outerOnChange) {
145
- outerOnChange(newValue);
150
+ if (!name && !multiple && typeof newValue === 'string') {
151
+ outerOnChange(newValue);
152
+ }
153
+ if (!name && multiple && Array.isArray(newValue)) {
154
+ outerOnChange(newValue);
155
+ }
156
+ if (name && _typeof(newValue) === 'object' && !Array.isArray(newValue)) {
157
+ outerOnChange(newValue);
158
+ }
159
+ }
160
+ if (typeof newValue === 'string' || Array.isArray(newValue)) {
161
+ setInternalValue(newValue);
146
162
  }
147
- setInternalValue(newValue);
148
163
  };
149
164
  var handleClickArrow = function handleClickArrow() {
150
165
  if (disabled || readOnly) {
@@ -301,6 +316,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
301
316
  focusedToValueMap: focusedToValueMap,
302
317
  handleListToggle: handleListToggle,
303
318
  handlePressDown: handlePressDown,
319
+ multiselect: multiple,
304
320
  setTextValue: setTextValue
305
321
  }),
306
322
  onKeyDown = _useKeyNavigation.onKeyDown;
@@ -332,13 +348,24 @@ export var comboboxRoot = function comboboxRoot(Root) {
332
348
  // Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.
333
349
  // А переменную, содержащую сложные типы данных, нельзя помещать в deps.
334
350
  }, [outerValue, internalValue, items]);
351
+ useEffect(function () {
352
+ if (defaultValue) {
353
+ setInternalValue(defaultValue);
354
+ }
355
+ }, [defaultValue]);
335
356
  return /*#__PURE__*/React.createElement(Root, {
336
357
  size: size,
337
358
  view: view,
338
359
  labelPlacement: labelPlacement,
339
360
  disabled: disabled,
340
361
  readOnly: readOnly
341
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Context.Provider, {
362
+ }, name && /*#__PURE__*/React.createElement(Form, {
363
+ name: name,
364
+ value: internalValue,
365
+ multiple: multiple,
366
+ onChange: onChange,
367
+ ref: ref
368
+ }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Context.Provider, {
342
369
  value: {
343
370
  focusedPath: focusedPath,
344
371
  checked: checked,
@@ -362,7 +389,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
362
389
  listWidth: listWidth,
363
390
  target: function target(referenceRef) {
364
391
  return /*#__PURE__*/React.createElement(StyledTextField, _extends({
365
- ref: inputForkRef,
392
+ ref: name ? inputRef : inputForkRef,
366
393
  inputWrapperRef: referenceRef,
367
394
  value: textValue,
368
395
  onChange: handleTextValueChange,
@@ -51,6 +51,7 @@ export var tokens = {
51
51
  checkboxIconColor: '--plasma-combobox-checkbox-icon-color',
52
52
  checkboxTriggerBorderColor: '--plasma-combobox-checkbox-trigger-border-color',
53
53
  indicatorSize: '--plasma-combobox-indicator-size',
54
+ targetHeight: '--plasma-combobox-target-height',
54
55
  // Токены для TextField
55
56
  textFieldColor: '--plasma-combobox-new-textfield-color',
56
57
  textFieldClearColor: '--plasma-combobox-new-textfield-clear-color',
@@ -56,28 +56,14 @@ var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
56
56
  /*#__PURE__*/
57
57
  // root - принимает ref контейнера портала.
58
58
  // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
59
- React.createElement(FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/React.createElement("div", {
59
+ React.createElement(FloatingPortal, {
60
+ root: portal,
61
+ id: portal ? undefined : wrappedId
62
+ }, /*#__PURE__*/React.createElement("div", {
60
63
  ref: refs.setFloating,
61
64
  style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
62
65
  zIndex: 1
63
66
  })
64
67
  }, children)));
65
68
  });
66
- // root - принимает ref контейнера портала.
67
- // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
68
- var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
69
- if (!portal) {
70
- return {
71
- id: wrappedId
72
- };
73
- }
74
- if (typeof portal === 'string') {
75
- return {
76
- id: portal
77
- };
78
- }
79
- return {
80
- root: portal
81
- };
82
- };
83
69
  export { FloatingPopover };
@@ -29,6 +29,7 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
29
29
  focusedToValueMap = _ref.focusedToValueMap,
30
30
  handleListToggle = _ref.handleListToggle,
31
31
  handlePressDown = _ref.handlePressDown,
32
+ multiselect = _ref.multiselect,
32
33
  setTextValue = _ref.setTextValue;
33
34
  var currentIndex = (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[focusedPath.length - 1]) || 0;
34
35
  var currentLength = pathMap.get(path === null || path === void 0 ? void 0 : path[focusedPath.length - 1]) || 0;
@@ -123,6 +124,7 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
123
124
  break;
124
125
  }
125
126
  var currentItem = getItemByFocused(focusedPath, focusedToValueMap);
127
+ console.log('currentItem', currentItem, focusedPath, focusedToValueMap);
126
128
  if (currentItem !== null && currentItem !== void 0 && currentItem.items) {
127
129
  if (path.length > focusedPath.length) {
128
130
  dispatchFocusedPath({
@@ -139,6 +141,32 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
139
141
  }
140
142
  break;
141
143
  }
144
+ case keys.Backspace:
145
+ {
146
+ if (!multiselect) break;
147
+ break;
148
+ }
149
+
150
+ // case keys.Space: {
151
+ // event.preventDefault();
152
+ //
153
+ // const currentItem = getItemByFocused(focusedPath, focusedToValueMap);
154
+ //
155
+ // if (!path[0]) {
156
+ // dispatchPath({ type: 'opened_first_level' });
157
+ // dispatchFocusedPath({ type: 'set_initial_focus' });
158
+ // break;
159
+ // }
160
+ //
161
+ // if (!currentItem || currentItem?.disabled) {
162
+ // break;
163
+ // }
164
+ //
165
+ // handlePressDown(currentItem);
166
+ //
167
+ // break;
168
+ // }
169
+
142
170
  case keys.Enter:
143
171
  {
144
172
  event.preventDefault();
@@ -155,13 +183,23 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
155
183
  });
156
184
  break;
157
185
  }
186
+
187
+ // if (currentItem?.items) {
188
+ // if (path.length > focusedPath.length) {
189
+ // dispatchFocusedPath({ type: 'add_focus', value: 0 });
190
+ // } else {
191
+ // dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });
192
+ // }
193
+ //
194
+ // break;
195
+ // }
196
+
158
197
  if (_currentItem) {
159
198
  handlePressDown(_currentItem);
160
199
  }
161
200
  break;
162
201
  }
163
202
  case keys.Tab:
164
- case keys.Escape:
165
203
  {
166
204
  dispatchPath({
167
205
  type: 'reset'
@@ -173,6 +211,17 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
173
211
  setTextValue('');
174
212
  break;
175
213
  }
214
+ case keys.Escape:
215
+ {
216
+ dispatchPath({
217
+ type: 'reset'
218
+ });
219
+ dispatchFocusedPath({
220
+ type: 'reset'
221
+ });
222
+ handleListToggle(false);
223
+ break;
224
+ }
176
225
  case keys.Home:
177
226
  {
178
227
  if (path[0]) {
@@ -0,0 +1,29 @@
1
+ import React, { forwardRef, useEffect, useRef } from 'react';
2
+ import { useForkRef } from '@salutejs/plasma-core';
3
+ import { createEvent } from '../../../../../utils/syntheticEvent';
4
+ import { SelectHidden } from './Form.styles';
5
+ export var Form = /*#__PURE__*/forwardRef(function (_ref, ref) {
6
+ var name = _ref.name,
7
+ multiple = _ref.multiple,
8
+ value = _ref.value,
9
+ onChange = _ref.onChange;
10
+ var values = multiple ? value : [value];
11
+ var selectRef = useRef(null);
12
+ var forkRef = useForkRef(selectRef, ref);
13
+ useEffect(function () {
14
+ var event = createEvent(selectRef);
15
+ onChange && onChange(event);
16
+ }, [values]);
17
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
18
+ ref: forkRef,
19
+ multiple: multiple,
20
+ name: name,
21
+ hidden: true,
22
+ value: multiple ? values : values[0]
23
+ }, values.map(function (v) {
24
+ return /*#__PURE__*/React.createElement("option", {
25
+ key: v,
26
+ value: v
27
+ }, v);
28
+ })));
29
+ });
@@ -0,0 +1,6 @@
1
+ import _styled from "@emotion/styled/base";
2
+ import { applyHidden } from '../../../../../mixins';
3
+ export var SelectHidden = /*#__PURE__*/_styled("select", {
4
+ target: "e10p9ksh0",
5
+ label: "plasma-new-hope__SelectHidden"
6
+ })( /*#__PURE__*/applyHidden(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvdWkvRm9ybS9Gb3JtLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJeUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db21ib2JveC9Db21ib2JveE5ldy91aS9Gb3JtL0Zvcm0uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBhcHBseUhpZGRlbiB9IGZyb20gJy4uLy4uLy4uLy4uLy4uL21peGlucyc7XG5cbmV4cG9ydCBjb25zdCBTZWxlY3RIaWRkZW4gPSBzdHlsZWQuc2VsZWN0YFxuICAgICR7YXBwbHlIaWRkZW4oKX07XG5gO1xuIl19 */"));