@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
@@ -9,7 +9,7 @@ export var SelectPerPageRoot = /*#__PURE__*/styled.div.withConfig({
9
9
  })(["display:flex;align-items:center;gap:0.5rem;"]);
10
10
  export var SelectPerPageSelect = /*#__PURE__*/styled(Select).withConfig({
11
11
  componentId: "plasma-new-hope__sc-1g304l9-1"
12
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":0.125rem;", ":0.125rem;", ":var(", ");", ":calc(var(", ") - 0.125rem);", ":0 0.375rem 0 0;", ":1.5rem;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], selectTokens.targetButtonColor, tokens.buttonColor, selectTokens.targetButtonColorHover, tokens.buttonColorHover, selectTokens.targetButtonColorActive, tokens.buttonColorActive, selectTokens.targetButtonBackgroundColor, tokens.buttonBackgroundColor, selectTokens.targetButtonBackgroundColorHover, tokens.buttonBackgroundColorHover, selectTokens.targetButtonBackgroundColorActive, tokens.buttonBackgroundColorActive, selectTokens.targetHeight, tokens.buttonHeight, selectTokens.targetButtonPadding, tokens.selectTargetPadding, selectTokens.borderRadius, tokens.buttonRadius, selectTokens.targetButtonArrowColor, tokens.buttonArrowColor, selectTokens.targetButtonArrowColorHover, tokens.buttonArrowColorHover, selectTokens.targetButtonArrowColorActive, tokens.buttonArrowColorActive, selectTokens.targetButtonArrowMargin, tokens.buttonArrowMargin, selectTokens.padding, selectTokens.focusOffset, selectTokens.itemPadding, tokens.selectItemPadding, selectTokens.itemBorderRadius, tokens.buttonRadius, selectTokens.itemIconMargin, selectTokens.itemIconSize, selectTokens.itemHeight, tokens.selectItemHeight, selectTokens.fontFamily, tokens.paginationFontFamily, selectTokens.fontSize, tokens.paginationFontSize, selectTokens.fontStyle, tokens.paginationFontStyle, selectTokens.fontWeight, tokens.paginationFontWeight, selectTokens.fontLetterSpacing, tokens.paginationLetterSpacing, selectTokens.fontLineHeight, tokens.paginationLineHeight);
12
+ })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":0.125rem;", ":var(", ");", ":calc(var(", ") - 0.125rem);", ":0 0.375rem 0 0;", ":1.5rem;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], selectTokens.buttonColor, tokens.buttonColor, selectTokens.buttonColorHover, tokens.buttonColorHover, selectTokens.buttonColorActive, tokens.buttonColorActive, selectTokens.buttonBackgroundColor, tokens.buttonBackgroundColor, selectTokens.buttonBackgroundColorHover, tokens.buttonBackgroundColorHover, selectTokens.buttonBackgroundColorActive, tokens.buttonBackgroundColorActive, selectTokens.targetHeight, tokens.buttonHeight, selectTokens.buttonPadding, tokens.selectTargetPadding, selectTokens.borderRadius, tokens.buttonRadius, selectTokens.buttonArrowColor, tokens.buttonArrowColor, selectTokens.buttonArrowColorHover, tokens.buttonArrowColorHover, selectTokens.buttonArrowColorActive, tokens.buttonArrowColorActive, selectTokens.buttonArrowMargin, tokens.buttonArrowMargin, selectTokens.padding, selectTokens.itemPadding, tokens.selectItemPadding, selectTokens.itemBorderRadius, tokens.buttonRadius, selectTokens.itemIconMargin, selectTokens.itemIconSize, selectTokens.itemHeight, tokens.selectItemHeight, selectTokens.fontFamily, tokens.paginationFontFamily, selectTokens.fontSize, tokens.paginationFontSize, selectTokens.fontStyle, tokens.paginationFontStyle, selectTokens.fontWeight, tokens.paginationFontWeight, selectTokens.fontLetterSpacing, tokens.paginationLetterSpacing, selectTokens.fontLineHeight, tokens.paginationLineHeight);
13
13
  export var SelectPerPageTypography = /*#__PURE__*/styled.div.withConfig({
14
14
  componentId: "plasma-new-hope__sc-1g304l9-2"
15
15
  })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.paginationFontFamily, tokens.paginationFontSize, tokens.paginationFontStyle, tokens.paginationFontWeight, tokens.paginationLetterSpacing, tokens.paginationLineHeight);
@@ -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 };
@@ -1,4 +1,4 @@
1
- var _excluded = ["value", "onChange", "target", "items", "placement", "label", "labelPlacement", "placeholder", "helperText", "disabled", "view", "size", "listOverflow", "listHeight", "listWidth", "contentLeft", "onScrollBottom", "chipView", "variant", "portal", "renderValue", "renderItem", "status", "onItemSelect", "separator", "closeAfterSelect"];
1
+ var _excluded = ["value", "onChange", "target", "items", "placement", "label", "labelPlacement", "placeholder", "helperText", "disabled", "view", "size", "listOverflow", "listHeight", "listWidth", "contentLeft", "onScrollBottom", "chipView", "variant", "portal", "renderValue", "renderItem", "status", "onItemSelect", "separator", "closeAfterSelect", "isTargetAmount"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -8,17 +8,17 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  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
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect } from 'react';
12
- import { isEmpty, getPlacements } from '../../utils';
11
+ import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';
12
+ import { safeUseId } from '@salutejs/plasma-core';
13
+ import { isEmpty } from '../../utils';
13
14
  import { useOutsideClick } from '../../hooks';
14
- import { useKeyNavigation } from './hooks/useKeyboardNavigation';
15
+ import { useKeyNavigation, getItemByFocused } from './hooks/useKeyboardNavigation';
15
16
  import { initialItemsTransform, updateAncestors, updateDescendants, updateSingleAncestors, getView, getInitialValue } from './utils';
16
17
  import { Inner, Target } from './ui';
17
- import { pathReducer, focusedPathReducer, focusedChipIndexReducer } from './reducers';
18
+ import { pathReducer, focusedPathReducer } from './reducers';
18
19
  import { usePathMaps } from './hooks/usePathMaps';
19
- import { StyledPopover, Ul, base, OuterLabel, HelperText } from './Select.styles';
20
- import { base as viewCSS } from './variations/_view/base';
21
- import { base as sizeCSS } from './variations/_size/base';
20
+ import { Ul, base } from './Select.styles';
21
+ import { FloatingPopover } from './FloatingPopover';
22
22
  export var Context = /*#__PURE__*/createContext({});
23
23
 
24
24
  /**
@@ -26,21 +26,21 @@ export var Context = /*#__PURE__*/createContext({});
26
26
  */
27
27
  export var selectRoot = function selectRoot(Root) {
28
28
  return /*#__PURE__*/forwardRef(function (props, ref) {
29
+ var _getItemByFocused;
29
30
  var outerValue = props.value,
30
31
  outerOnChange = props.onChange,
31
32
  _props$target = props.target,
32
- target = _props$target === void 0 ? 'textfield-like' : _props$target,
33
+ _target = _props$target === void 0 ? 'textfield-like' : _props$target,
33
34
  items = props.items,
34
35
  _props$placement = props.placement,
35
36
  placement = _props$placement === void 0 ? 'bottom' : _props$placement,
36
37
  label = props.label,
37
- _props$labelPlacement = props.labelPlacement,
38
- labelPlacement = _props$labelPlacement === void 0 ? 'outer' : _props$labelPlacement,
38
+ labelPlacement = props.labelPlacement,
39
39
  placeholder = props.placeholder,
40
40
  helperText = props.helperText,
41
41
  _props$disabled = props.disabled,
42
42
  disabled = _props$disabled === void 0 ? false : _props$disabled,
43
- view = props.view,
43
+ outerView = props.view,
44
44
  size = props.size,
45
45
  listOverflow = props.listOverflow,
46
46
  listHeight = props.listHeight,
@@ -57,22 +57,28 @@ export var selectRoot = function selectRoot(Root) {
57
57
  onItemSelect = props.onItemSelect,
58
58
  separator = props.separator,
59
59
  outerCloseAfterSelect = props.closeAfterSelect,
60
+ isTargetAmount = props.isTargetAmount,
60
61
  rest = _objectWithoutProperties(props, _excluded);
61
62
  var transformedItems = useMemo(function () {
62
63
  return initialItemsTransform(items || []);
63
64
  }, [items]);
65
+
66
+ // Создаем структуры для быстрой работы с деревом
64
67
  var _usePathMaps = usePathMaps(transformedItems),
65
- _usePathMaps2 = _slicedToArray(_usePathMaps, 4),
68
+ _usePathMaps2 = _slicedToArray(_usePathMaps, 5),
66
69
  pathMap = _usePathMaps2[0],
67
70
  focusedToValueMap = _usePathMaps2[1],
68
71
  valueToCheckedMap = _usePathMaps2[2],
69
- valueToItemMap = _usePathMaps2[3];
70
- var value = getInitialValue(outerValue, valueToItemMap);
71
- var onChange = function onChange(e) {
72
- if (outerOnChange) {
73
- outerOnChange(e);
74
- }
75
- };
72
+ valueToItemMap = _usePathMaps2[3],
73
+ labelToItemMap = _usePathMaps2[4];
74
+ var _useState = useState(props.multiselect ? [] : ''),
75
+ _useState2 = _slicedToArray(_useState, 2),
76
+ internalValue = _useState2[0],
77
+ setInternalValue = _useState2[1];
78
+ var value = outerValue !== null && outerValue !== undefined ? getInitialValue(outerValue, valueToItemMap) : internalValue;
79
+ var floatingPopoverRef = useRef(null);
80
+
81
+ // Состояния дерева элементов
76
82
  var _useReducer = useReducer(pathReducer, []),
77
83
  _useReducer2 = _slicedToArray(_useReducer, 2),
78
84
  path = _useReducer2[0],
@@ -81,23 +87,53 @@ export var selectRoot = function selectRoot(Root) {
81
87
  _useReducer4 = _slicedToArray(_useReducer3, 2),
82
88
  focusedPath = _useReducer4[0],
83
89
  dispatchFocusedPath = _useReducer4[1];
84
- var _useReducer5 = useReducer(focusedChipIndexReducer, null),
85
- _useReducer6 = _slicedToArray(_useReducer5, 2),
86
- focusedChipIndex = _useReducer6[0],
87
- dispatchFocusedChipIndex = _useReducer6[1];
88
- var _useState = useState(valueToCheckedMap),
89
- _useState2 = _slicedToArray(_useState, 2),
90
- checked = _useState2[0],
91
- setChecked = _useState2[1];
90
+ var _useState3 = useState(valueToCheckedMap),
91
+ _useState4 = _slicedToArray(_useState3, 2),
92
+ checked = _useState4[0],
93
+ setChecked = _useState4[1];
94
+ var isCurrentListOpen = Boolean(path[0]);
95
+ var activeDescendantItemValue = ((_getItemByFocused = getItemByFocused(focusedPath, focusedToValueMap)) === null || _getItemByFocused === void 0 ? void 0 : _getItemByFocused.value.toString()) || '';
92
96
  var closeAfterSelect = outerCloseAfterSelect !== null && outerCloseAfterSelect !== void 0 ? outerCloseAfterSelect : !props.multiselect;
97
+ var treeId = safeUseId();
98
+ var view = _target === 'textfield-like' && disabled ? 'default' : getView(status, outerView);
93
99
  var targetRef = useOutsideClick(function () {
94
- if (focusedChipIndex != null) {
95
- dispatchFocusedChipIndex({
100
+ if (!isCurrentListOpen) {
101
+ return;
102
+ }
103
+ dispatchPath({
104
+ type: 'reset'
105
+ });
106
+ dispatchFocusedPath({
107
+ type: 'reset'
108
+ });
109
+ }, floatingPopoverRef);
110
+ var onChange = function onChange(newValue) {
111
+ if (outerOnChange) {
112
+ outerOnChange(newValue);
113
+ }
114
+ setInternalValue(newValue);
115
+ };
116
+ var handleClickArrow = function handleClickArrow() {
117
+ if (disabled) {
118
+ return;
119
+ }
120
+ if (isCurrentListOpen) {
121
+ dispatchPath({
96
122
  type: 'reset'
97
123
  });
124
+ } else {
125
+ dispatchPath({
126
+ type: 'opened_first_level'
127
+ });
128
+ }
129
+ dispatchFocusedPath({
130
+ type: 'reset'
131
+ });
132
+ };
133
+ var handleListToggle = function handleListToggle(opened) {
134
+ if (disabled) {
135
+ return;
98
136
  }
99
- });
100
- var handleToggle = function handleToggle(opened) {
101
137
  if (opened) {
102
138
  dispatchPath({
103
139
  type: 'opened_first_level'
@@ -109,39 +145,37 @@ export var selectRoot = function selectRoot(Root) {
109
145
  dispatchPath({
110
146
  type: 'reset'
111
147
  });
112
- dispatchFocusedChipIndex({
113
- type: 'reset'
114
- });
115
148
  }
116
149
  };
117
150
  var handleCheckboxChange = function handleCheckboxChange(item) {
118
- if (props.multiselect) {
119
- var checkedCopy = new Map(checked);
120
- if (!checkedCopy.get(item.value)) {
121
- checkedCopy.set(item.value, true);
122
- updateDescendants(item, checkedCopy, true);
123
- } else {
124
- checkedCopy.set(item.value, false);
125
- updateDescendants(item, checkedCopy, false);
151
+ if (!props.multiselect) {
152
+ return;
153
+ }
154
+ var checkedCopy = new Map(checked);
155
+ if (!checkedCopy.get(item.value)) {
156
+ checkedCopy.set(item.value, true);
157
+ updateDescendants(item, checkedCopy, true);
158
+ } else {
159
+ checkedCopy.set(item.value, false);
160
+ updateDescendants(item, checkedCopy, false);
161
+ }
162
+ updateAncestors(item, checkedCopy);
163
+ var newValues = [];
164
+ valueToItemMap.forEach(function (item, key) {
165
+ if (checkedCopy.get(key)) {
166
+ newValues.push(item.value);
126
167
  }
127
- updateAncestors(item, checkedCopy);
128
- var newValues = [];
129
- valueToItemMap.forEach(function (item, key) {
130
- if (checkedCopy.get(key)) {
131
- newValues.push(item.value);
132
- }
168
+ });
169
+ if (closeAfterSelect) {
170
+ dispatchPath({
171
+ type: 'reset'
133
172
  });
134
- if (closeAfterSelect) {
135
- dispatchPath({
136
- type: 'reset'
137
- });
138
- dispatchFocusedPath({
139
- type: 'reset'
140
- });
141
- }
142
- if (onChange) {
143
- onChange(newValues);
144
- }
173
+ dispatchFocusedPath({
174
+ type: 'reset'
175
+ });
176
+ }
177
+ if (onChange) {
178
+ onChange(newValues);
145
179
  }
146
180
  };
147
181
  var handleItemClick = function handleItemClick(item, e) {
@@ -150,29 +184,26 @@ export var selectRoot = function selectRoot(Root) {
150
184
  }
151
185
  if (props.multiselect) {
152
186
  handleCheckboxChange(item);
153
- } else {
154
- if (e) {
155
- e.stopPropagation();
156
- }
157
- var isCurrentChecked = checked.get(item.value);
158
- if (closeAfterSelect) {
159
- dispatchPath({
160
- type: 'reset'
161
- });
162
- dispatchFocusedPath({
163
- type: 'reset'
164
- });
165
- }
166
- if (onChange) {
167
- onChange(isCurrentChecked ? '' : item.value);
168
- }
169
- if (onItemSelect) {
170
- onItemSelect(item, e);
171
- }
187
+ return;
188
+ }
189
+ if (e) {
190
+ e.stopPropagation();
191
+ }
192
+ var isCurrentChecked = checked.get(item.value);
193
+ if (closeAfterSelect) {
194
+ dispatchPath({
195
+ type: 'reset'
196
+ });
197
+ dispatchFocusedPath({
198
+ type: 'reset'
199
+ });
200
+ }
201
+ if (onChange) {
202
+ onChange(isCurrentChecked ? '' : item.value);
203
+ }
204
+ if (onItemSelect) {
205
+ onItemSelect(item, e);
172
206
  }
173
- };
174
- var handleChipClick = function handleChipClick(currentValue) {
175
- handleCheckboxChange(valueToItemMap.get(currentValue));
176
207
  };
177
208
  var handlePressDown = function handlePressDown(item, e) {
178
209
  if (isEmpty(item.items)) {
@@ -189,25 +220,19 @@ export var selectRoot = function selectRoot(Root) {
189
220
  }
190
221
  };
191
222
  var _useKeyNavigation = useKeyNavigation({
192
- value: value,
193
223
  focusedPath: focusedPath,
194
224
  dispatchFocusedPath: dispatchFocusedPath,
195
225
  path: path,
196
226
  dispatchPath: dispatchPath,
197
227
  pathMap: pathMap,
198
228
  focusedToValueMap: focusedToValueMap,
199
- handleToggle: handleToggle,
200
- handlePressDown: handlePressDown,
201
- focusedChipIndex: focusedChipIndex,
202
- dispatchFocusedChipIndex: dispatchFocusedChipIndex,
203
- valueToItemMap: valueToItemMap,
204
- multiselect: props.multiselect,
205
- isTargetAmount: props.isTargetAmount
229
+ handleListToggle: handleListToggle,
230
+ handlePressDown: handlePressDown
206
231
  }),
207
232
  onKeyDown = _useKeyNavigation.onKeyDown;
208
- var isCurrentListOpen = Boolean(path[0]);
209
233
 
210
- // В данном эффекте мы следим за изменениями value и вносим коррективы в дерево чекбоксов.
234
+ // В данном эффекте мы следим за изменениями value снаружи и вносим коррективы в дерево чекбоксов.
235
+ // Пример: когда юзер очистил value извне, тогда нужно пройтись по элементам и выключить все чекбоксы.
211
236
  useLayoutEffect(function () {
212
237
  var checkedCopy = new Map(checked);
213
238
  checkedCopy.forEach(function (_, key) {
@@ -226,13 +251,18 @@ export var selectRoot = function selectRoot(Root) {
226
251
  }
227
252
  }
228
253
  setChecked(checkedCopy);
229
- }, [outerValue, items]);
254
+
255
+ // В deps мы кладем именно outerValue и internalValue, а не просто value.
256
+ // Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.
257
+ // А переменную, содержащую сложные типы данных, нельзя помещать в deps.
258
+ }, [outerValue, internalValue, items]);
230
259
  return /*#__PURE__*/React.createElement(Root, _extends({
231
- ref: ref,
260
+ view: view,
232
261
  size: size,
233
- view: status ? getView(status) : view,
234
- chipView: chipView
235
- }, rest), label && labelPlacement === 'outer' && target !== 'button-like' && /*#__PURE__*/React.createElement(OuterLabel, null, label), /*#__PURE__*/React.createElement(Context.Provider, {
262
+ labelPlacement: labelPlacement,
263
+ chipView: chipView,
264
+ disabled: disabled
265
+ }, rest), /*#__PURE__*/React.createElement(Context.Provider, {
236
266
  value: {
237
267
  focusedPath: focusedPath,
238
268
  checked: checked,
@@ -242,46 +272,63 @@ export var selectRoot = function selectRoot(Root) {
242
272
  handleItemClick: handleItemClick,
243
273
  variant: variant,
244
274
  renderItem: renderItem,
245
- valueToItemMap: valueToItemMap
275
+ valueToItemMap: valueToItemMap,
276
+ treeId: treeId
246
277
  }
247
- }, /*#__PURE__*/React.createElement(StyledPopover, {
248
- ref: targetRef,
278
+ }, /*#__PURE__*/React.createElement(FloatingPopover, {
279
+ ref: floatingPopoverRef,
249
280
  opened: isCurrentListOpen,
250
- placement: getPlacements(placement),
251
- usePortal: Boolean(portal),
252
- frame: portal,
253
- onToggle: handleToggle,
254
- trigger: "click",
255
- target: /*#__PURE__*/React.createElement(Target, {
256
- opened: isCurrentListOpen,
257
- value: value,
258
- valueToItemMap: valueToItemMap,
259
- focusedPath: focusedPath,
260
- focusedToValueMap: focusedToValueMap,
261
- onChipClick: handleChipClick,
262
- label: label,
263
- placeholder: placeholder,
264
- onKeyDown: onKeyDown,
265
- focusedChipIndex: focusedChipIndex,
266
- labelPlacement: labelPlacement,
267
- selectProps: props,
268
- size: size,
269
- contentLeft: contentLeft,
270
- disabled: disabled,
271
- renderValue: renderValue
272
- }),
273
- preventOverflow: false,
274
- closeOnOverlayClick: true,
275
- listWidth: listWidth
276
- }, items && /*#__PURE__*/React.createElement(Root, _extends({
277
- size: size
281
+ onToggle: function onToggle(opened) {
282
+ return opened && handleListToggle(true);
283
+ },
284
+ placement: placement,
285
+ portal: portal,
286
+ listWidth: listWidth,
287
+ target: function target(referenceRef) {
288
+ return /*#__PURE__*/React.createElement(Target, {
289
+ ref: ref,
290
+ target: _target,
291
+ value: value,
292
+ opened: isCurrentListOpen,
293
+ valueToItemMap: valueToItemMap,
294
+ label: label,
295
+ placeholder: placeholder,
296
+ onKeyDown: onKeyDown,
297
+ labelPlacement: labelPlacement,
298
+ size: size,
299
+ contentLeft: contentLeft,
300
+ disabled: disabled,
301
+ renderValue: renderValue,
302
+ selectProps: props,
303
+ inputWrapperRef: referenceRef,
304
+ multiselect: props.multiselect,
305
+ view: view,
306
+ handleClickArrow: handleClickArrow,
307
+ helperText: helperText,
308
+ treeId: treeId,
309
+ activeDescendantItemValue: activeDescendantItemValue,
310
+ isTargetAmount: isTargetAmount,
311
+ onChange: onChange,
312
+ labelToItemMap: labelToItemMap,
313
+ chipView: chipView,
314
+ separator: separator
315
+ });
316
+ }
317
+ }, /*#__PURE__*/React.createElement(Root, _extends({
318
+ view: view,
319
+ size: size,
320
+ labelPlacement: labelPlacement,
321
+ chipView: chipView,
322
+ disabled: disabled
278
323
  }, rest), /*#__PURE__*/React.createElement(Ul, {
279
324
  role: "tree",
280
- id: "tree_level_1",
325
+ id: "".concat(treeId, "_tree_level_1"),
326
+ "aria-multiselectable": Boolean(props.multiselect),
281
327
  listHeight: listHeight,
282
328
  listOverflow: listOverflow,
283
329
  onScroll: handleScroll,
284
- listWidth: listWidth
330
+ listWidth: listWidth,
331
+ ref: targetRef
285
332
  }, transformedItems.map(function (item, index) {
286
333
  return /*#__PURE__*/React.createElement(Inner, {
287
334
  key: "".concat(index, "/0"),
@@ -292,7 +339,7 @@ export var selectRoot = function selectRoot(Root) {
292
339
  index: index,
293
340
  listWidth: listWidth
294
341
  });
295
- }))))), helperText && target === 'textfield-like' && /*#__PURE__*/React.createElement(HelperText, null, helperText));
342
+ }))))));
296
343
  });
297
344
  };
298
345
  export var selectConfig = {
@@ -300,17 +347,11 @@ export var selectConfig = {
300
347
  tag: 'div',
301
348
  layout: selectRoot,
302
349
  base: base,
303
- variations: {
304
- view: {
305
- css: viewCSS
306
- },
307
- size: {
308
- css: sizeCSS
309
- }
310
- },
350
+ variations: {},
311
351
  defaults: {
312
352
  view: 'default',
313
- chipView: 'default',
314
- size: 'm'
353
+ size: 'm',
354
+ labelPlacement: 'outer',
355
+ chipView: 'default'
315
356
  }
316
357
  };
@@ -1,35 +1,20 @@
1
1
  import styled from 'styled-components';
2
2
  import { css } from 'styled-components';
3
- import { component } from '../../engines';
4
- import { popoverClasses, popoverConfig } from '../Popover';
5
3
  import { getCorrectHeight } from './utils';
6
4
  import { tokens, constants } from './Select.tokens';
7
- var Popover = /*#__PURE__*/component(popoverConfig);
8
- export var StyledPopover = /*#__PURE__*/styled(Popover).withConfig({
5
+ export var Ul = /*#__PURE__*/styled.ul.withConfig({
9
6
  componentId: "plasma-new-hope__sc-le54jv-0"
10
- })([".", "{width:", ";}.", "{width:100%;}"], /*#__PURE__*/String(popoverClasses.root), function (_ref) {
7
+ })(["box-sizing:border-box;background:var(", ");box-shadow:", ";border-radius:var(", ");width:", ";height:", ";overflow:", ";border:var(", ") solid var(", ");margin:", ";padding:var(", ") 0;"], constants.background, constants.boxShadow, tokens.borderRadius, function (_ref) {
11
8
  var listWidth = _ref.listWidth;
12
9
  return listWidth || '100%';
13
- }, /*#__PURE__*/String(popoverClasses.target));
14
- export var Ul = /*#__PURE__*/styled.ul.withConfig({
15
- componentId: "plasma-new-hope__sc-le54jv-1"
16
- })(["box-sizing:border-box;background:var(", ");box-shadow:", ";border-radius:var(", ");width:", ";height:", ";overflow:", ";border:var(", ") solid var(", ");margin:", ";padding:var(", ");"], constants.background, constants.boxShadow, tokens.borderRadius, function (_ref2) {
17
- var listWidth = _ref2.listWidth;
18
- return listWidth || '100%';
19
- }, function (_ref3) {
20
- var listHeight = _ref3.listHeight;
10
+ }, function (_ref2) {
11
+ var listHeight = _ref2.listHeight;
21
12
  return listHeight ? getCorrectHeight(listHeight) : 'auto';
22
- }, function (_ref4) {
23
- var listOverflow = _ref4.listOverflow;
13
+ }, function (_ref3) {
14
+ var listOverflow = _ref3.listOverflow;
24
15
  return listOverflow || 'initial';
25
- }, tokens.popoverBorderWidth, tokens.popoverBorderColor, function (_ref5) {
26
- var isInnerUl = _ref5.isInnerUl;
27
- return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0 0 var(").concat(tokens.padding, ")") : 0;
16
+ }, tokens.dropdownBorderWidth, tokens.dropdownBorderColor, function (_ref4) {
17
+ var isInnerUl = _ref4.isInnerUl;
18
+ return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0 0 0") : 0;
28
19
  }, tokens.padding);
29
- export var base = /*#__PURE__*/css([".", ",.", "{display:block;}"], popoverClasses.wrapper, popoverClasses.target);
30
- export var OuterLabel = /*#__PURE__*/styled.label.withConfig({
31
- componentId: "plasma-new-hope__sc-le54jv-2"
32
- })(["display:block;margin-bottom:var(", ");color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.labelOffset, constants.textfieldOuterLabelColor, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelFontLetterSpacing, tokens.labelFontLineHeight);
33
- export var HelperText = /*#__PURE__*/styled.div.withConfig({
34
- componentId: "plasma-new-hope__sc-le54jv-3"
35
- })(["margin-top:var(", ");color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.helperTextOffset, tokens.helperTextColor, tokens.helperTextFontFamily, tokens.helperTextFontSize, tokens.helperTextFontStyle, tokens.helperTextFontWeight, tokens.helperTextFontLetterSpacing, tokens.helperTextFontLineHeight);
20
+ export var base = /*#__PURE__*/css([""]);