@salutejs/plasma-new-hope 0.187.0-dev.0 → 0.188.0-canary.1550.11767527974.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (478) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +21 -22
  2. package/cjs/components/Chip/Chip.js +3 -1
  3. package/cjs/components/Chip/Chip.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/Combobox.css +21 -22
  5. package/cjs/components/Combobox/ComboboxNew/Combobox.js +0 -1
  6. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  7. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  8. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  9. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +18 -4
  10. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  11. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  12. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +1 -50
  13. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  14. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +21 -22
  15. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +21 -22
  16. package/cjs/components/DatePicker/RangeDate/RangeDate.css +21 -22
  17. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +21 -22
  18. package/cjs/components/DatePicker/SingleDate/SingleDate.css +21 -22
  19. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -1
  20. package/cjs/components/Pagination/Pagination.css +86 -37
  21. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +86 -37
  22. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  23. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  24. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +3 -0
  25. package/cjs/components/Range/Range.css +21 -22
  26. package/cjs/components/Select/FloatingPopover.js +87 -0
  27. package/cjs/components/Select/FloatingPopover.js.map +1 -0
  28. package/cjs/components/Select/Select.css +83 -34
  29. package/cjs/components/Select/Select.js +179 -139
  30. package/cjs/components/Select/Select.js.map +1 -1
  31. package/cjs/components/Select/Select.styles.js +17 -50
  32. package/cjs/components/Select/Select.styles.js.map +1 -1
  33. package/cjs/components/Select/Select.styles_96j02v.css +2 -0
  34. package/cjs/components/Select/Select.tokens.js +122 -78
  35. package/cjs/components/Select/Select.tokens.js.map +1 -1
  36. package/cjs/components/Select/hooks/useKeyboardNavigation.js +19 -72
  37. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  38. package/cjs/components/Select/hooks/usePathMaps.js +4 -1
  39. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  40. package/cjs/components/Select/ui/Inner/Inner.css +83 -34
  41. package/cjs/components/Select/ui/Inner/Inner.js +9 -9
  42. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  43. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +83 -34
  44. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +16 -12
  45. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  46. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +34 -51
  47. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  48. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_1kgvsdc.css +9 -0
  49. package/cjs/components/Select/ui/Target/Target.css +58 -17
  50. package/cjs/components/Select/ui/Target/Target.js +34 -16
  51. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  52. package/cjs/components/Select/ui/Target/ui/Button/Button.css +5 -5
  53. package/cjs/components/Select/ui/Target/ui/Button/Button.js +10 -14
  54. package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  55. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  56. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  57. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +5 -0
  58. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +53 -38
  59. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +84 -97
  60. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  61. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +35 -107
  62. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  63. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1mneb9u.css +3 -0
  64. package/cjs/components/Select/utils/getFallbackPlacements.js +15 -0
  65. package/cjs/components/Select/utils/getFallbackPlacements.js.map +1 -0
  66. package/cjs/components/Select/utils/getItemId.js +10 -0
  67. package/cjs/components/Select/utils/getItemId.js.map +1 -0
  68. package/cjs/components/Select/utils/getPlacement.js +13 -0
  69. package/cjs/components/Select/utils/getPlacement.js.map +1 -0
  70. package/cjs/components/Select/utils/getView.js +2 -2
  71. package/cjs/components/Select/utils/getView.js.map +1 -1
  72. package/cjs/components/Slider/Slider.css +21 -22
  73. package/cjs/components/Slider/components/Double/Double.css +21 -22
  74. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +21 -22
  75. package/cjs/components/TextField/TextField.js +7 -0
  76. package/cjs/components/TextField/TextField.js.map +1 -1
  77. package/cjs/components/TextField/TextField.styles.js +14 -22
  78. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  79. package/{es/components/TextField/TextField.styles_grgg7q.css → cjs/components/TextField/TextField.styles_j7dqpn.css} +6 -7
  80. package/cjs/components/TextField/ui/Hint/Hint.css +20 -21
  81. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +7 -1
  82. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  83. package/cjs/components/TextField/variations/_clear/base.js +1 -1
  84. package/cjs/components/TextField/variations/_clear/{base_1i91sjp.css → base_1396md2.css} +1 -1
  85. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  86. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +1 -0
  87. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  88. package/cjs/components/TextField/variations/_read-only/{base_17ypmu7.css → base_1jvcf9a.css} +1 -1
  89. package/cjs/components/TextField/variations/_size/base.js +1 -1
  90. package/cjs/components/TextField/variations/_size/{base_1xdmaqh.css → base_1tei47x.css} +1 -1
  91. package/cjs/components/TextField/variations/_view/base.js +1 -1
  92. package/cjs/components/TextField/variations/_view/{base_qhyte8.css → base_8ogww5.css} +1 -1
  93. package/cjs/index.css +46 -61
  94. package/emotion/cjs/components/Chip/Chip.js +3 -1
  95. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +0 -1
  96. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  97. package/emotion/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +19 -5
  98. package/emotion/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +1 -50
  99. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  100. package/emotion/cjs/components/Select/FloatingPopover.js +91 -0
  101. package/emotion/cjs/components/Select/Select.js +177 -136
  102. package/emotion/cjs/components/Select/Select.styles.js +13 -31
  103. package/emotion/cjs/components/Select/Select.tokens.js +125 -60
  104. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +19 -73
  105. package/emotion/cjs/components/Select/hooks/usePathMaps.js +4 -1
  106. package/emotion/cjs/components/Select/reducers/index.js +0 -11
  107. package/emotion/cjs/components/Select/ui/Inner/Inner.js +9 -9
  108. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +15 -12
  109. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +26 -49
  110. package/emotion/cjs/components/Select/ui/Target/Target.js +38 -18
  111. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +13 -16
  112. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  113. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +88 -99
  114. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +25 -75
  115. package/emotion/cjs/components/Select/utils/getFallbackPlacements.js +14 -0
  116. package/emotion/cjs/components/Select/utils/getItemId.js +9 -0
  117. package/emotion/cjs/components/Select/utils/getPlacement.js +12 -0
  118. package/emotion/cjs/components/Select/utils/getView.js +2 -2
  119. package/emotion/cjs/components/Select/utils/index.js +22 -1
  120. package/emotion/cjs/components/TextField/TextField.js +8 -1
  121. package/emotion/cjs/components/TextField/TextField.styles.js +36 -40
  122. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +7 -1
  123. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  124. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +28 -20
  125. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +47 -40
  126. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +28 -20
  127. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +47 -40
  128. package/emotion/es/components/Chip/Chip.js +3 -1
  129. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +0 -1
  130. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  131. package/emotion/es/components/Combobox/ComboboxNew/FloatingPopover.js +18 -4
  132. package/emotion/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +1 -50
  133. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  134. package/emotion/es/components/Select/FloatingPopover.js +84 -0
  135. package/emotion/es/components/Select/Select.js +182 -141
  136. package/emotion/es/components/Select/Select.styles.js +12 -30
  137. package/emotion/es/components/Select/Select.tokens.js +125 -60
  138. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +18 -72
  139. package/emotion/es/components/Select/hooks/usePathMaps.js +4 -1
  140. package/emotion/es/components/Select/reducers/index.js +1 -2
  141. package/emotion/es/components/Select/ui/Inner/Inner.js +10 -10
  142. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +18 -15
  143. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +25 -48
  144. package/emotion/es/components/Select/ui/Target/Target.js +35 -17
  145. package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +11 -16
  146. package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  147. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +86 -99
  148. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +25 -75
  149. package/emotion/es/components/Select/utils/getFallbackPlacements.js +8 -0
  150. package/emotion/es/components/Select/utils/getItemId.js +3 -0
  151. package/emotion/es/components/Select/utils/getPlacement.js +6 -0
  152. package/emotion/es/components/Select/utils/getView.js +2 -2
  153. package/emotion/es/components/Select/utils/index.js +4 -1
  154. package/emotion/es/components/TextField/TextField.js +8 -1
  155. package/emotion/es/components/TextField/TextField.styles.js +36 -40
  156. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +7 -1
  157. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  158. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +29 -21
  159. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +47 -40
  160. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +29 -21
  161. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +47 -40
  162. package/es/components/Autocomplete/Autocomplete.css +21 -22
  163. package/es/components/Chip/Chip.js +3 -1
  164. package/es/components/Chip/Chip.js.map +1 -1
  165. package/es/components/Combobox/ComboboxNew/Combobox.css +21 -22
  166. package/es/components/Combobox/ComboboxNew/Combobox.js +0 -1
  167. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  168. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  169. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  170. package/es/components/Combobox/ComboboxNew/FloatingPopover.js +18 -4
  171. package/es/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  172. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  173. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +1 -50
  174. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  175. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +21 -22
  176. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +21 -22
  177. package/es/components/DatePicker/RangeDate/RangeDate.css +21 -22
  178. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +21 -22
  179. package/es/components/DatePicker/SingleDate/SingleDate.css +21 -22
  180. package/es/components/Dropdown/FloatingPopover.js.map +1 -1
  181. package/es/components/Pagination/Pagination.css +86 -37
  182. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +86 -37
  183. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  184. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  185. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +3 -0
  186. package/es/components/Range/Range.css +21 -22
  187. package/es/components/Select/FloatingPopover.js +83 -0
  188. package/es/components/Select/FloatingPopover.js.map +1 -0
  189. package/es/components/Select/Select.css +83 -34
  190. package/es/components/Select/Select.js +182 -142
  191. package/es/components/Select/Select.js.map +1 -1
  192. package/es/components/Select/Select.styles.js +18 -48
  193. package/es/components/Select/Select.styles.js.map +1 -1
  194. package/es/components/Select/Select.styles_96j02v.css +2 -0
  195. package/es/components/Select/Select.tokens.js +123 -78
  196. package/es/components/Select/Select.tokens.js.map +1 -1
  197. package/es/components/Select/hooks/useKeyboardNavigation.js +19 -73
  198. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  199. package/es/components/Select/hooks/usePathMaps.js +4 -1
  200. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  201. package/es/components/Select/ui/Inner/Inner.css +83 -34
  202. package/es/components/Select/ui/Inner/Inner.js +10 -10
  203. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  204. package/es/components/Select/ui/Inner/ui/Item/Item.css +83 -34
  205. package/es/components/Select/ui/Inner/ui/Item/Item.js +18 -14
  206. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  207. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +33 -50
  208. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  209. package/es/components/Select/ui/Inner/ui/Item/Item.styles_1kgvsdc.css +9 -0
  210. package/es/components/Select/ui/Target/Target.css +58 -17
  211. package/es/components/Select/ui/Target/Target.js +35 -17
  212. package/es/components/Select/ui/Target/Target.js.map +1 -1
  213. package/es/components/Select/ui/Target/ui/Button/Button.css +5 -5
  214. package/es/components/Select/ui/Target/ui/Button/Button.js +11 -15
  215. package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  216. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  217. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  218. package/es/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +5 -0
  219. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +53 -38
  220. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +86 -99
  221. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  222. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +36 -99
  223. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  224. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1mneb9u.css +3 -0
  225. package/es/components/Select/utils/getFallbackPlacements.js +11 -0
  226. package/es/components/Select/utils/getFallbackPlacements.js.map +1 -0
  227. package/es/components/Select/utils/getItemId.js +6 -0
  228. package/es/components/Select/utils/getItemId.js.map +1 -0
  229. package/es/components/Select/utils/getPlacement.js +9 -0
  230. package/es/components/Select/utils/getPlacement.js.map +1 -0
  231. package/es/components/Select/utils/getView.js +2 -2
  232. package/es/components/Select/utils/getView.js.map +1 -1
  233. package/es/components/Slider/Slider.css +21 -22
  234. package/es/components/Slider/components/Double/Double.css +21 -22
  235. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +21 -22
  236. package/es/components/TextField/TextField.js +7 -0
  237. package/es/components/TextField/TextField.js.map +1 -1
  238. package/es/components/TextField/TextField.styles.js +14 -22
  239. package/es/components/TextField/TextField.styles.js.map +1 -1
  240. package/{cjs/components/TextField/TextField.styles_grgg7q.css → es/components/TextField/TextField.styles_j7dqpn.css} +6 -7
  241. package/es/components/TextField/ui/Hint/Hint.css +20 -21
  242. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +7 -1
  243. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  244. package/es/components/TextField/variations/_clear/base.js +1 -1
  245. package/es/components/TextField/variations/_clear/{base_1i91sjp.css → base_1396md2.css} +1 -1
  246. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  247. package/es/components/TextField/variations/_label-placement/base_gttvto.css +1 -0
  248. package/es/components/TextField/variations/_read-only/base.js +1 -1
  249. package/es/components/TextField/variations/_read-only/{base_17ypmu7.css → base_1jvcf9a.css} +1 -1
  250. package/es/components/TextField/variations/_size/base.js +1 -1
  251. package/es/components/TextField/variations/_size/{base_1xdmaqh.css → base_1tei47x.css} +1 -1
  252. package/es/components/TextField/variations/_view/base.js +1 -1
  253. package/es/components/TextField/variations/_view/{base_qhyte8.css → base_8ogww5.css} +1 -1
  254. package/es/index.css +46 -61
  255. package/package.json +2 -2
  256. package/styled-components/cjs/components/Chip/Chip.js +3 -1
  257. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +0 -1
  258. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  259. package/styled-components/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +19 -5
  260. package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +1 -50
  261. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  262. package/styled-components/cjs/components/Select/FloatingPopover.js +91 -0
  263. package/styled-components/cjs/components/Select/Select.js +177 -136
  264. package/styled-components/cjs/components/Select/Select.styles.js +11 -26
  265. package/styled-components/cjs/components/Select/Select.tokens.js +125 -60
  266. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +19 -73
  267. package/styled-components/cjs/components/Select/hooks/usePathMaps.js +4 -1
  268. package/styled-components/cjs/components/Select/reducers/index.js +0 -11
  269. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +9 -9
  270. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +15 -12
  271. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +19 -25
  272. package/styled-components/cjs/components/Select/ui/Target/Target.js +38 -18
  273. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +13 -16
  274. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  275. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +88 -99
  276. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +21 -62
  277. package/styled-components/cjs/components/Select/utils/getFallbackPlacements.js +14 -0
  278. package/styled-components/cjs/components/Select/utils/getItemId.js +9 -0
  279. package/styled-components/cjs/components/Select/utils/getPlacement.js +12 -0
  280. package/styled-components/cjs/components/Select/utils/getView.js +2 -2
  281. package/styled-components/cjs/components/Select/utils/index.js +22 -1
  282. package/styled-components/cjs/components/TextField/TextField.js +7 -0
  283. package/styled-components/cjs/components/TextField/TextField.styles.js +12 -15
  284. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +7 -1
  285. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  286. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +28 -20
  287. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +47 -40
  288. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +28 -20
  289. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +47 -40
  290. package/styled-components/es/components/Chip/Chip.js +3 -1
  291. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +0 -1
  292. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +0 -1
  293. package/styled-components/es/components/Combobox/ComboboxNew/FloatingPopover.js +18 -4
  294. package/styled-components/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +1 -50
  295. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  296. package/styled-components/es/components/Select/FloatingPopover.js +84 -0
  297. package/styled-components/es/components/Select/Select.js +182 -141
  298. package/styled-components/es/components/Select/Select.styles.js +10 -25
  299. package/styled-components/es/components/Select/Select.tokens.js +125 -60
  300. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +18 -72
  301. package/styled-components/es/components/Select/hooks/usePathMaps.js +4 -1
  302. package/styled-components/es/components/Select/reducers/index.js +1 -2
  303. package/styled-components/es/components/Select/ui/Inner/Inner.js +10 -10
  304. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +18 -15
  305. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +18 -24
  306. package/styled-components/es/components/Select/ui/Target/Target.js +35 -17
  307. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +11 -16
  308. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  309. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +86 -99
  310. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +21 -62
  311. package/styled-components/es/components/Select/utils/getFallbackPlacements.js +8 -0
  312. package/styled-components/es/components/Select/utils/getItemId.js +3 -0
  313. package/styled-components/es/components/Select/utils/getPlacement.js +6 -0
  314. package/styled-components/es/components/Select/utils/getView.js +2 -2
  315. package/styled-components/es/components/Select/utils/index.js +4 -1
  316. package/styled-components/es/components/TextField/TextField.js +7 -0
  317. package/styled-components/es/components/TextField/TextField.styles.js +12 -15
  318. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +7 -1
  319. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  320. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +29 -21
  321. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +47 -40
  322. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +29 -21
  323. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +47 -40
  324. package/types/components/Chip/Chip.d.ts.map +1 -1
  325. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  326. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +0 -1
  327. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  328. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +1 -1
  329. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  330. package/types/components/Combobox/ComboboxNew/FloatingPopover.d.ts.map +1 -1
  331. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +1 -3
  332. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
  333. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +8 -8
  334. package/types/components/Select/FloatingPopover.d.ts +5 -0
  335. package/types/components/Select/FloatingPopover.d.ts.map +1 -0
  336. package/types/components/Select/Select.d.ts +5 -11
  337. package/types/components/Select/Select.d.ts.map +1 -1
  338. package/types/components/Select/Select.styles.d.ts +0 -9
  339. package/types/components/Select/Select.styles.d.ts.map +1 -1
  340. package/types/components/Select/Select.tokens.d.ts +121 -58
  341. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  342. package/types/components/Select/Select.types.d.ts +27 -16
  343. package/types/components/Select/Select.types.d.ts.map +1 -1
  344. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +5 -11
  345. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  346. package/types/components/Select/hooks/usePathMaps.d.ts +2 -1
  347. package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -1
  348. package/types/components/Select/reducers/index.d.ts +0 -1
  349. package/types/components/Select/reducers/index.d.ts.map +1 -1
  350. package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -1
  351. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  352. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +32 -2
  353. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  354. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +9 -0
  355. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
  356. package/types/components/Select/ui/Target/Target.d.ts +14 -2
  357. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  358. package/types/components/Select/ui/Target/Target.types.d.ts +10 -9
  359. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  360. package/types/components/Select/ui/Target/ui/Button/Button.d.ts +1 -1
  361. package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -1
  362. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +1 -1
  363. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -1
  364. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +1 -1
  365. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  366. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +628 -60
  367. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  368. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -4
  369. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  370. package/types/components/Select/utils/getFallbackPlacements.d.ts +4 -0
  371. package/types/components/Select/utils/getFallbackPlacements.d.ts.map +1 -0
  372. package/types/components/Select/utils/getItemId.d.ts +2 -0
  373. package/types/components/Select/utils/getItemId.d.ts.map +1 -0
  374. package/types/components/Select/utils/getPlacement.d.ts +4 -0
  375. package/types/components/Select/utils/getPlacement.d.ts.map +1 -0
  376. package/types/components/Select/utils/getView.d.ts +1 -1
  377. package/types/components/Select/utils/getView.d.ts.map +1 -1
  378. package/types/components/Select/utils/index.d.ts +3 -0
  379. package/types/components/Select/utils/index.d.ts.map +1 -1
  380. package/types/components/TextField/TextField.d.ts.map +1 -1
  381. package/types/components/TextField/TextField.styles.d.ts +1 -3
  382. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  383. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +3 -1
  384. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  385. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +24 -24
  386. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +15 -7
  387. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  388. package/types/examples/plasma_b2c/components/Select/Select.d.ts +21 -14
  389. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  390. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +24 -24
  391. package/types/examples/plasma_web/components/Select/Select.config.d.ts +15 -7
  392. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  393. package/types/examples/plasma_web/components/Select/Select.d.ts +21 -14
  394. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  395. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +0 -3
  396. package/cjs/components/Select/Select.styles_768h42.css +0 -5
  397. package/cjs/components/Select/reducers/focusedChipIndexReducer.js +0 -39
  398. package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +0 -1
  399. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +0 -9
  400. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +0 -5
  401. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +0 -12
  402. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +0 -21
  403. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +0 -36
  404. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +0 -1
  405. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +0 -22
  406. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +0 -1
  407. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +0 -1
  408. package/cjs/components/Select/variations/_size/base.js +0 -9
  409. package/cjs/components/Select/variations/_size/base.js.map +0 -1
  410. package/cjs/components/Select/variations/_size/base_x642ct.css +0 -1
  411. package/cjs/components/Select/variations/_view/base.js +0 -9
  412. package/cjs/components/Select/variations/_view/base.js.map +0 -1
  413. package/cjs/components/Select/variations/_view/base_x642ct.css +0 -1
  414. package/cjs/components/TextField/variations/_label-placement/base_3domm.css +0 -1
  415. package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +0 -38
  416. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +0 -37
  417. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +0 -22
  418. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +0 -16
  419. package/emotion/cjs/components/Select/variations/_size/base.js +0 -8
  420. package/emotion/cjs/components/Select/variations/_size/tokens.json +0 -9
  421. package/emotion/cjs/components/Select/variations/_view/base.js +0 -8
  422. package/emotion/cjs/components/Select/variations/_view/tokens.json +0 -1
  423. package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +0 -32
  424. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +0 -28
  425. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +0 -15
  426. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/index.js +0 -1
  427. package/emotion/es/components/Select/variations/_size/base.js +0 -2
  428. package/emotion/es/components/Select/variations/_size/tokens.json +0 -9
  429. package/emotion/es/components/Select/variations/_view/base.js +0 -2
  430. package/emotion/es/components/Select/variations/_view/tokens.json +0 -1
  431. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +0 -3
  432. package/es/components/Select/Select.styles_768h42.css +0 -5
  433. package/es/components/Select/reducers/focusedChipIndexReducer.js +0 -35
  434. package/es/components/Select/reducers/focusedChipIndexReducer.js.map +0 -1
  435. package/es/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +0 -9
  436. package/es/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +0 -5
  437. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +0 -12
  438. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +0 -21
  439. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +0 -32
  440. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +0 -1
  441. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +0 -18
  442. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +0 -1
  443. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +0 -1
  444. package/es/components/Select/variations/_size/base.js +0 -5
  445. package/es/components/Select/variations/_size/base.js.map +0 -1
  446. package/es/components/Select/variations/_size/base_x642ct.css +0 -1
  447. package/es/components/Select/variations/_view/base.js +0 -5
  448. package/es/components/Select/variations/_view/base.js.map +0 -1
  449. package/es/components/Select/variations/_view/base_x642ct.css +0 -1
  450. package/es/components/TextField/variations/_label-placement/base_3domm.css +0 -1
  451. package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +0 -38
  452. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +0 -37
  453. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +0 -21
  454. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +0 -16
  455. package/styled-components/cjs/components/Select/variations/_size/base.js +0 -8
  456. package/styled-components/cjs/components/Select/variations/_size/tokens.json +0 -9
  457. package/styled-components/cjs/components/Select/variations/_view/base.js +0 -8
  458. package/styled-components/cjs/components/Select/variations/_view/tokens.json +0 -1
  459. package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +0 -32
  460. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +0 -28
  461. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +0 -14
  462. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/index.js +0 -1
  463. package/styled-components/es/components/Select/variations/_size/base.js +0 -2
  464. package/styled-components/es/components/Select/variations/_size/tokens.json +0 -9
  465. package/styled-components/es/components/Select/variations/_view/base.js +0 -2
  466. package/styled-components/es/components/Select/variations/_view/tokens.json +0 -1
  467. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +0 -11
  468. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +0 -1
  469. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts +0 -9
  470. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts.map +0 -1
  471. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts +0 -3
  472. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts.map +0 -1
  473. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts +0 -2
  474. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts.map +0 -1
  475. package/types/components/Select/variations/_size/base.d.ts +0 -2
  476. package/types/components/Select/variations/_size/base.d.ts.map +0 -1
  477. package/types/components/Select/variations/_view/base.d.ts +0 -2
  478. package/types/components/Select/variations/_view/base.d.ts.map +0 -1
@@ -25,54 +25,58 @@ const meta: Meta<StorySelectProps> = {
25
25
  component: Select,
26
26
  argTypes: {
27
27
  target: {
28
+ control: 'select',
28
29
  options: ['button-like', 'textfield-like'],
29
- control: {
30
- type: 'select',
31
- },
32
30
  },
33
31
  size: {
32
+ control: 'select',
34
33
  options: size,
35
- control: {
36
- type: 'select',
37
- },
38
34
  },
39
35
  view: {
36
+ control: 'select',
40
37
  options: view,
41
- control: {
42
- type: 'select',
43
- },
44
38
  },
45
39
  labelPlacement: {
40
+ control: 'select',
46
41
  options: labelPlacement,
47
- control: {
48
- type: 'select',
42
+ if: {
43
+ arg: 'target',
44
+ eq: 'textfield-like',
49
45
  },
50
46
  },
51
47
  chipView: {
48
+ control: 'select',
52
49
  options: chip,
53
- control: {
54
- type: 'select',
50
+ if: {
51
+ arg: 'target',
52
+ eq: 'textfield-like',
55
53
  },
56
54
  },
57
55
  variant: {
56
+ control: 'select',
58
57
  options: variant,
59
- control: {
60
- type: 'select',
61
- },
62
58
  },
63
59
  listWidth: {
64
- control: {
65
- type: 'text',
66
- },
60
+ control: 'text',
67
61
  },
68
62
  listOverflow: {
69
- control: {
70
- type: 'text',
71
- },
63
+ control: 'text',
72
64
  },
73
65
  listHeight: {
74
- control: {
75
- type: 'text',
66
+ control: 'text',
67
+ },
68
+ helperText: {
69
+ control: 'text',
70
+ if: {
71
+ arg: 'target',
72
+ eq: 'textfield-like',
73
+ },
74
+ },
75
+ enableContentLeft: {
76
+ control: 'boolean',
77
+ if: {
78
+ arg: 'target',
79
+ eq: 'textfield-like',
76
80
  },
77
81
  },
78
82
  },
@@ -84,7 +88,7 @@ const meta: Meta<StorySelectProps> = {
84
88
  helperText: 'Helper text',
85
89
  size: 'm',
86
90
  view: 'default',
87
- chipView: 'default',
91
+ chipView: 'secondary',
88
92
  enableContentLeft: false,
89
93
  isTargetAmount: false,
90
94
  variant: 'normal',
@@ -338,13 +342,18 @@ const SingleStory = (args: StorySelectProps) => {
338
342
  items={items}
339
343
  value={value}
340
344
  onChange={setValue}
341
- contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
345
+ contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
342
346
  />
343
347
  </div>
344
348
  );
345
349
  };
346
350
 
347
351
  export const Single: StoryObj<StorySelectProps> = {
352
+ parameters: {
353
+ controls: {
354
+ exclude: ['chipView', 'isTargetAmount'],
355
+ },
356
+ },
348
357
  render: (args) => <SingleStory {...args} />,
349
358
  args: {
350
359
  closeAfterSelect: true,
@@ -361,7 +370,7 @@ const MultiselectStory = (args: StorySelectProps) => {
361
370
  items={items}
362
371
  value={value}
363
372
  onChange={setValue}
364
- contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
373
+ contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
365
374
  />
366
375
  </div>
367
376
  );
@@ -386,7 +395,7 @@ const PredefinedStory = (args: StorySelectProps) => {
386
395
  items={items}
387
396
  value={valueSingle}
388
397
  onChange={setValueSingle}
389
- contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
398
+ contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
390
399
  />
391
400
 
392
401
  <br />
@@ -397,7 +406,7 @@ const PredefinedStory = (args: StorySelectProps) => {
397
406
  multiselect
398
407
  value={valueMultiple}
399
408
  onChange={setValueMultiple}
400
- contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
409
+ contentLeft={args.enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
401
410
  />
402
411
  </div>
403
412
  );
@@ -462,7 +471,7 @@ const CommonStory = (args: StorySelectProps) => {
462
471
  value={value}
463
472
  onChange={setValue}
464
473
  view="default"
465
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
474
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
466
475
  />
467
476
  </div>
468
477
  </td>
@@ -475,7 +484,7 @@ const CommonStory = (args: StorySelectProps) => {
475
484
  value={valueMultiple}
476
485
  onChange={setValueMultiple}
477
486
  view="default"
478
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
487
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
479
488
  />
480
489
  </div>
481
490
  </td>
@@ -606,7 +615,7 @@ const CommonStory = (args: StorySelectProps) => {
606
615
  value={value}
607
616
  onChange={setValue}
608
617
  view="positive"
609
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
618
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
610
619
  />
611
620
  </div>
612
621
  </td>
@@ -619,7 +628,7 @@ const CommonStory = (args: StorySelectProps) => {
619
628
  value={valueMultiple}
620
629
  onChange={setValueMultiple}
621
630
  view="positive"
622
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
631
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
623
632
  />
624
633
  </div>
625
634
  </td>
@@ -659,7 +668,7 @@ const CommonStory = (args: StorySelectProps) => {
659
668
  value={value}
660
669
  onChange={setValue}
661
670
  view="warning"
662
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
671
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
663
672
  />
664
673
  </div>
665
674
  </td>
@@ -672,7 +681,7 @@ const CommonStory = (args: StorySelectProps) => {
672
681
  value={valueMultiple}
673
682
  onChange={setValueMultiple}
674
683
  view="warning"
675
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
684
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
676
685
  />
677
686
  </div>
678
687
  </td>
@@ -712,7 +721,7 @@ const CommonStory = (args: StorySelectProps) => {
712
721
  value={value}
713
722
  onChange={setValue}
714
723
  view="negative"
715
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
724
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
716
725
  />
717
726
  </div>
718
727
  </td>
@@ -725,7 +734,7 @@ const CommonStory = (args: StorySelectProps) => {
725
734
  value={valueMultiple}
726
735
  onChange={setValueMultiple}
727
736
  view="negative"
728
- contentLeft={enableContentLeft ? <IconDone size="s" /> : undefined}
737
+ contentLeft={enableContentLeft ? <IconDone size="s" color="inherit" /> : undefined}
729
738
  />
730
739
  </div>
731
740
  </td>
@@ -835,9 +844,7 @@ export const Common: StoryObj<StorySelectProps> = {
835
844
  argTypes: {
836
845
  size: {
837
846
  options: size,
838
- control: {
839
- type: 'select',
840
- },
847
+ control: 'select',
841
848
  },
842
849
  },
843
850
  args: {
@@ -37,7 +37,9 @@ 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
- if (disabled || readOnly) {
40
+ // TODO: #1547
41
+ // eslint-disable-next-line no-underscore-dangle
42
+ if (disabled || readOnly && !rest._forceChipManipulationWithReadonly) {
41
43
  return;
42
44
  }
43
45
  onClick === null || onClick === void 0 || onClick(event);
@@ -301,7 +301,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
301
301
  focusedToValueMap: focusedToValueMap,
302
302
  handleListToggle: handleListToggle,
303
303
  handlePressDown: handlePressDown,
304
- multiselect: multiple,
305
304
  setTextValue: setTextValue
306
305
  }),
307
306
  onKeyDown = _useKeyNavigation.onKeyDown;
@@ -51,7 +51,6 @@ 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',
55
54
  // Токены для TextField
56
55
  textFieldColor: '--plasma-combobox-new-textfield-color',
57
56
  textFieldClearColor: '--plasma-combobox-new-textfield-clear-color',
@@ -56,14 +56,28 @@ var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
56
56
  /*#__PURE__*/
57
57
  // root - принимает ref контейнера портала.
58
58
  // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
59
- React.createElement(FloatingPortal, {
60
- root: portal,
61
- id: portal ? undefined : wrappedId
62
- }, /*#__PURE__*/React.createElement("div", {
59
+ React.createElement(FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/React.createElement("div", {
63
60
  ref: refs.setFloating,
64
61
  style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
65
62
  zIndex: 1
66
63
  })
67
64
  }, children)));
68
65
  });
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
+ };
69
83
  export { FloatingPopover };
@@ -29,7 +29,6 @@ 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,
33
32
  setTextValue = _ref.setTextValue;
34
33
  var currentIndex = (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[focusedPath.length - 1]) || 0;
35
34
  var currentLength = pathMap.get(path === null || path === void 0 ? void 0 : path[focusedPath.length - 1]) || 0;
@@ -124,7 +123,6 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
124
123
  break;
125
124
  }
126
125
  var currentItem = getItemByFocused(focusedPath, focusedToValueMap);
127
- console.log('currentItem', currentItem, focusedPath, focusedToValueMap);
128
126
  if (currentItem !== null && currentItem !== void 0 && currentItem.items) {
129
127
  if (path.length > focusedPath.length) {
130
128
  dispatchFocusedPath({
@@ -141,32 +139,6 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
141
139
  }
142
140
  break;
143
141
  }
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
-
170
142
  case keys.Enter:
171
143
  {
172
144
  event.preventDefault();
@@ -183,34 +155,12 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
183
155
  });
184
156
  break;
185
157
  }
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
-
197
158
  if (_currentItem) {
198
159
  handlePressDown(_currentItem);
199
160
  }
200
161
  break;
201
162
  }
202
163
  case keys.Tab:
203
- {
204
- dispatchPath({
205
- type: 'reset'
206
- });
207
- dispatchFocusedPath({
208
- type: 'reset'
209
- });
210
- handleListToggle(false);
211
- setTextValue('');
212
- break;
213
- }
214
164
  case keys.Escape:
215
165
  {
216
166
  dispatchPath({
@@ -220,6 +170,7 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
220
170
  type: 'reset'
221
171
  });
222
172
  handleListToggle(false);
173
+ setTextValue('');
223
174
  break;
224
175
  }
225
176
  case keys.Home:
@@ -14,14 +14,14 @@ export var SelectPerPageRoot = /*#__PURE__*/_styled("div", {
14
14
  } : {
15
15
  name: "4ved3l",
16
16
  styles: "display:flex;align-items:center;gap:0.5rem",
17
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFnaW5hdGlvbi91aS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUzJDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFnaW5hdGlvbi91aS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IHNlbGVjdENvbmZpZywgc2VsZWN0VG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vU2VsZWN0JztcbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICc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RmFtaWx5fSk7XG4gICAgJHtzZWxlY3RUb2tlbnMuZm9udFNpemV9OiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkZvbnRTaXplfSk7XG4gICAgJHtzZWxlY3RUb2tlbnMuZm9udFN0eWxlfTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250U3R5bGV9KTtcbiAgICAke3NlbGVjdFRva2Vucy5mb250V2VpZ2h0fTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250V2VpZ2h0fSk7XG4gICAgJHtzZWxlY3RUb2tlbnMuZm9udExldHRlclNwYWNpbmd9OiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICAke3NlbGVjdFRva2Vucy5mb250TGluZUhlaWdodH06IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uTGluZUhlaWdodH0pO1xuYDtcblxuZXhwb3J0IGNvbnN0IFNlbGVjdFBlclBhZ2VUeXBvZ3JhcGh5ID0gc3R5bGVkLmRpdmBcbiAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkZvbnRTaXplfSk7XG4gICAgZm9udC1zdHlsZTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250U3R5bGV9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uTGV0dGVyU3BhY2luZ30pO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkxpbmVIZWlnaHR9KTtcbmA7XG4iXX0= */",
18
18
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
19
  });
20
20
  export var SelectPerPageSelect = /*#__PURE__*/_styled(Select, {
21
21
  target: "e18ppken1",
22
22
  label: "plasma-new-hope__SelectPerPageSelect"
23
- })(selectTokens.targetButtonColor, ":var(", tokens.buttonColor, ");", selectTokens.targetButtonColorHover, ":var(", tokens.buttonColorHover, ");", selectTokens.targetButtonColorActive, ":var(", tokens.buttonColorActive, ");", selectTokens.targetButtonBackgroundColor, ":var(", tokens.buttonBackgroundColor, ");", selectTokens.targetButtonBackgroundColorHover, ":var(", tokens.buttonBackgroundColorHover, ");", selectTokens.targetButtonBackgroundColorActive, ":var(", tokens.buttonBackgroundColorActive, ");", selectTokens.targetHeight, ":var(", tokens.buttonHeight, ");", selectTokens.targetButtonPadding, ":var(", tokens.selectTargetPadding, ");", selectTokens.borderRadius, ":var(", tokens.buttonRadius, ");", selectTokens.targetButtonArrowColor, ":var(", tokens.buttonArrowColor, ");", selectTokens.targetButtonArrowColorHover, ":var(", tokens.buttonArrowColorHover, ");", selectTokens.targetButtonArrowColorActive, ":var(", tokens.buttonArrowColorActive, ");", selectTokens.targetButtonArrowMargin, ":var(", tokens.buttonArrowMargin, ");", selectTokens.padding, ":0.125rem;", selectTokens.focusOffset, ":0.125rem;", selectTokens.itemPadding, ":var(", tokens.selectItemPadding, ");", selectTokens.itemBorderRadius, ":calc(var(", tokens.buttonRadius, ") - 0.125rem);", selectTokens.itemIconMargin, ":0 0.375rem 0 0;", selectTokens.itemIconSize, ":1.5rem;", selectTokens.itemHeight, ":var(", tokens.selectItemHeight, ");", selectTokens.fontFamily, ":var(", tokens.paginationFontFamily, ");", selectTokens.fontSize, ":var(", tokens.paginationFontSize, ");", selectTokens.fontStyle, ":var(", tokens.paginationFontStyle, ");", selectTokens.fontWeight, ":var(", tokens.paginationFontWeight, ");", selectTokens.fontLetterSpacing, ":var(", tokens.paginationLetterSpacing, ");", selectTokens.fontLineHeight, ":var(", tokens.paginationLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZX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7dG9rZW5zLnBhZ2luYXRpb25Gb250U3R5bGV9KTtcbiAgICAke3NlbGVjdFRva2Vucy5mb250V2VpZ2h0fTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250V2VpZ2h0fSk7XG4gICAgJHtzZWxlY3RUb2tlbnMuZm9udExldHRlclNwYWNpbmd9OiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICAke3NlbGVjdFRva2Vucy5mb250TGluZUhlaWdodH06IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uTGluZUhlaWdodH0pO1xuYDtcblxuZXhwb3J0IGNvbnN0IFNlbGVjdFBlclBhZ2VUeXBvZ3JhcGh5ID0gc3R5bGVkLmRpdmBcbiAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkZvbnRTaXplfSk7XG4gICAgZm9udC1zdHlsZTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250U3R5bGV9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uTGV0dGVyU3BhY2luZ30pO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkxpbmVIZWlnaHR9KTtcbmA7XG4iXX0= */"));
23
+ })(selectTokens.buttonColor, ":var(", tokens.buttonColor, ");", selectTokens.buttonColorHover, ":var(", tokens.buttonColorHover, ");", selectTokens.buttonColorActive, ":var(", tokens.buttonColorActive, ");", selectTokens.buttonBackgroundColor, ":var(", tokens.buttonBackgroundColor, ");", selectTokens.buttonBackgroundColorHover, ":var(", tokens.buttonBackgroundColorHover, ");", selectTokens.buttonBackgroundColorActive, ":var(", tokens.buttonBackgroundColorActive, ");", selectTokens.targetHeight, ":var(", tokens.buttonHeight, ");", selectTokens.buttonPadding, ":var(", tokens.selectTargetPadding, ");", selectTokens.borderRadius, ":var(", tokens.buttonRadius, ");", selectTokens.buttonArrowColor, ":var(", tokens.buttonArrowColor, ");", selectTokens.buttonArrowColorHover, ":var(", tokens.buttonArrowColorHover, ");", selectTokens.buttonArrowColorActive, ":var(", tokens.buttonArrowColorActive, ");", selectTokens.buttonArrowMargin, ":var(", tokens.buttonArrowMargin, ");", selectTokens.padding, ":0.125rem;", selectTokens.itemPadding, ":var(", tokens.selectItemPadding, ");", selectTokens.itemBorderRadius, ":calc(var(", tokens.buttonRadius, ") - 0.125rem);", selectTokens.itemIconMargin, ":0 0.375rem 0 0;", selectTokens.itemIconSize, ":1.5rem;", selectTokens.itemHeight, ":var(", tokens.selectItemHeight, ");", selectTokens.fontFamily, ":var(", tokens.paginationFontFamily, ");", selectTokens.fontSize, ":var(", tokens.paginationFontSize, ");", selectTokens.fontStyle, ":var(", tokens.paginationFontStyle, ");", selectTokens.fontWeight, ":var(", tokens.paginationFontWeight, ");", selectTokens.fontLetterSpacing, ":var(", tokens.paginationLetterSpacing, ");", selectTokens.fontLineHeight, ":var(", tokens.paginationLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFnaW5hdGlvbi91aS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZWlEIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFnaW5hdGlvbi91aS9QYWdpbmF0aW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FtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkZvbnRTaXplfSk7XG4gICAgZm9udC1zdHlsZTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250U3R5bGV9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uTGV0dGVyU3BhY2luZ30pO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkxpbmVIZWlnaHR9KTtcbmA7XG4iXX0= */"));
24
24
  export var SelectPerPageTypography = /*#__PURE__*/_styled("div", {
25
25
  target: "e18ppken0",
26
26
  label: "plasma-new-hope__SelectPerPageTypography"
27
- })("font-family:var(", tokens.paginationFontFamily, ");font-size:var(", tokens.paginationFontSize, ");font-style:var(", tokens.paginationFontStyle, ");font-weight:var(", tokens.paginationFontWeight, ");letter-spacing:var(", tokens.paginationLetterSpacing, ");line-height:var(", tokens.paginationLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFnaW5hdGlvbi91aS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENpRCIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhZ2luYXRpb24vdWkvUGFnaW5hdGlvblNlbGVjdFBlclBhZ2UvUGFnaW5hdGlvblNlbGVjdFBlclBhZ2Uuc3R5bGVzLn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CBTZWxlY3RQZXJQYWdlVHlwb2dyYXBoeSA9IHN0eWxlZC5kaXZgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uRm9udEZhbWlseX0pO1xuICAgIGZvbnQtc2l6ZTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250U2l6ZX0pO1xuICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uRm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uRm9udFdlaWdodH0pO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25MaW5lSGVpZ2h0fSk7XG5gO1xuIl19 */"));
27
+ })("font-family:var(", tokens.paginationFontFamily, ");font-size:var(", tokens.paginationFontSize, ");font-style:var(", tokens.paginationFontStyle, ");font-weight:var(", tokens.paginationFontWeight, ");letter-spacing:var(", tokens.paginationLetterSpacing, ");line-height:var(", tokens.paginationLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFnaW5hdGlvbi91aS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS9QYWdpbmF0aW9uU2VsZWN0UGVyUGFnZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENpRCIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhZ2luYXRpb24vdWkvUGFnaW5hdGlvblNlbGVjdFBlclBhZ2UvUGFnaW5hdGlvblN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hbWlseX0pO1xuICAgIGZvbnQtc2l6ZTogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25Gb250U2l6ZX0pO1xuICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uRm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5wYWdpbmF0aW9uRm9udFdlaWdodH0pO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMucGFnaW5hdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLnBhZ2luYXRpb25MaW5lSGVpZ2h0fSk7XG5gO1xuIl19 */"));
@@ -0,0 +1,84 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { flip, shift, size, useFloating, FloatingPortal, offset as offsetMiddleware } from '@floating-ui/react';
8
+ import React, { forwardRef } from 'react';
9
+ import { safeUseId } from '@salutejs/plasma-core';
10
+ import { getPlacement, getFallbackPlacements } from './utils';
11
+ var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
+ var target = _ref.target,
13
+ children = _ref.children,
14
+ opened = _ref.opened,
15
+ onToggle = _ref.onToggle,
16
+ placement = _ref.placement,
17
+ portal = _ref.portal,
18
+ listWidth = _ref.listWidth,
19
+ _ref$offset = _ref.offset,
20
+ offset = _ref$offset === void 0 ? 0 : _ref$offset;
21
+ var _useFloating = useFloating({
22
+ placement: getPlacement(placement),
23
+ open: opened,
24
+ middleware: [offsetMiddleware(offset), flip({
25
+ fallbackPlacements: getFallbackPlacements(placement)
26
+ }), shift(), size({
27
+ apply: function apply(_ref2) {
28
+ var rects = _ref2.rects,
29
+ elements = _ref2.elements;
30
+ Object.assign(elements.floating.style, {
31
+ width: listWidth || "".concat(rects.reference.width, "px")
32
+ });
33
+ }
34
+ })]
35
+ }),
36
+ refs = _useFloating.refs,
37
+ floatingStyles = _useFloating.floatingStyles;
38
+ var wrappedId = safeUseId();
39
+ var handleClick = function handleClick() {
40
+ if (onToggle) {
41
+ onToggle(!opened);
42
+ }
43
+ };
44
+
45
+ // Проверка на target. Это может быть как ReactNode, так и функция, в которую пробрасывается ref.
46
+ // Это нужно для более тонкой настройки reference-элемента, вокруг которого и будет позиционироваться выпадашка.
47
+ // Пример: когда в Textfield под инпутом находится helperText (или еще что-либо),
48
+ // но выпадающий список должен позиционироваться непосредственно возле самого инпута.
49
+ var isTargetAsFunction = typeof target === 'function';
50
+ return /*#__PURE__*/React.createElement("div", {
51
+ ref: ref,
52
+ id: wrappedId
53
+ }, /*#__PURE__*/React.createElement("div", {
54
+ ref: isTargetAsFunction ? undefined : refs.setReference,
55
+ onClick: handleClick
56
+ }, typeof target === 'function' ? target(refs.setReference) : target), opened &&
57
+ /*#__PURE__*/
58
+ // root - принимает ref контейнера портала.
59
+ // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
60
+ React.createElement(FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/React.createElement("div", {
61
+ ref: refs.setFloating,
62
+ style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
63
+ zIndex: 1
64
+ })
65
+ }, children)));
66
+ });
67
+ // root - принимает ref контейнера портала.
68
+ // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
69
+ var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
70
+ if (!portal) {
71
+ return {
72
+ id: wrappedId
73
+ };
74
+ }
75
+ if (typeof portal === 'string') {
76
+ return {
77
+ id: portal
78
+ };
79
+ }
80
+ return {
81
+ root: portal
82
+ };
83
+ };
84
+ export { FloatingPopover };