@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
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.focusedChipIndexReducer = focusedChipIndexReducer;
7
- function focusedChipIndexReducer(state, action) {
8
- switch (action.type) {
9
- case 'reset':
10
- {
11
- return null;
12
- }
13
- case 'moveLeft':
14
- {
15
- if (state === null) {
16
- return 0;
17
- }
18
- if (state === 0) {
19
- return state;
20
- }
21
- return state - 1;
22
- }
23
- case 'moveRight':
24
- {
25
- if (state === null) {
26
- return action.total - 1;
27
- }
28
- if (state === action.total - 1) {
29
- return state;
30
- }
31
- return state + 1;
32
- }
33
- default:
34
- {
35
- return null;
36
- }
37
- }
38
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Chip = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _Select = /*#__PURE__*/require("../../../../../../Select.tokens");
10
- var _Chip = /*#__PURE__*/require("./Chip.styles");
11
- var _div;
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
- var Chip = exports.Chip = function Chip(_ref) {
15
- var text = _ref.text,
16
- onClick = _ref.onClick,
17
- focused = _ref.focused,
18
- isTargetAmount = _ref.isTargetAmount;
19
- var ref = (0, _react.useRef)(null);
20
- (0, _react.useEffect)(function () {
21
- if (focused && ref.current) {
22
- ref.current.scrollIntoView({
23
- behavior: 'smooth',
24
- block: 'center',
25
- inline: 'center'
26
- });
27
- }
28
- }, [focused]);
29
- return /*#__PURE__*/_react["default"].createElement(_Chip.StyledChip, {
30
- contentClearButton: isTargetAmount && (_div || (_div = /*#__PURE__*/_react["default"].createElement("div", null))),
31
- tabIndex: -1,
32
- onClick: onClick,
33
- text: "".concat(text),
34
- className: focused ? _Select.classes.selectChipIsFocused : undefined,
35
- ref: ref
36
- });
37
- };
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.StyledChip = void 0;
7
- var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
8
- var _Chip = /*#__PURE__*/require("../../../../../../../Chip");
9
- var _engines = /*#__PURE__*/require("../../../../../../../../engines");
10
- var _Select = /*#__PURE__*/require("../../../../../../Select.tokens");
11
- var _mixins = /*#__PURE__*/require("../../../../../../../../mixins");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Chip.chipConfig);
14
- var Chip = /*#__PURE__*/(0, _engines.component)(mergedConfig);
15
- var StyledChip = exports.StyledChip = /*#__PURE__*/(0, _styledComponents["default"])(Chip).withConfig({
16
- componentId: "plasma-new-hope__sc-1mtedco-0"
17
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ";"], _Chip.chipTokens.color, _Select.tokens.chipColor, _Chip.chipTokens.colorHover, _Select.tokens.chipColor, _Chip.chipTokens.colorActive, _Select.tokens.chipColor, _Chip.chipTokens.background, _Select.tokens.chipBackground, _Chip.chipTokens.backgroundHover, _Select.tokens.chipBackgroundHover, _Chip.chipTokens.backgroundActive, _Select.tokens.chipBackgroundActive, _Chip.chipTokens.borderRadius, _Select.tokens.chipBorderRadius, _Chip.chipTokens.height, _Select.tokens.chipHeight, _Chip.chipTokens.paddingRight, _Select.tokens.chipPaddingRight, _Chip.chipTokens.paddingLeft, _Select.tokens.chipPaddingLeft, _Chip.chipTokens.fontFamily, _Select.tokens.fontFamily, _Chip.chipTokens.fontSize, _Select.tokens.fontSize, _Chip.chipTokens.fontStyle, _Select.tokens.fontStyle, _Chip.chipTokens.fontWeight, _Select.tokens.fontWeight, _Chip.chipTokens.letterSpacing, _Select.tokens.fontLetterSpacing, _Chip.chipTokens.lineHeight, _Select.tokens.fontLineHeight, _Chip.chipTokens.clearContentMarginLeft, _Select.tokens.chipClearContentMarginLeft, _Chip.chipTokens.clearContentMarginRight, _Select.tokens.chipClearContentMarginRight, _Chip.chipTokens.closeIconSize, _Select.tokens.chipCloseIconSize, _Chip.chipTokens.closeIconColor, _Select.tokens.chipColor, _Chip.chipTokens.focusColor, _Select.constants.focusColor, /*#__PURE__*/(0, _mixins.addFocus)({
18
- outlineOffset: /*#__PURE__*/"calc(var(".concat(_Select.tokens.focusOffset, ") * -1)"),
19
- outlineRadius: /*#__PURE__*/"calc(var(".concat(_Select.tokens.chipBorderRadius, ") + var(").concat(_Select.tokens.focusOffset, "))"),
20
- customFocusRules: /*#__PURE__*/"\n &.".concat(_Select.classes.selectChipIsFocused, ":before {\n outline: none;\n box-shadow: 0 0 0 ").concat(_Select.constants.focusSize, " var(").concat(_Select.constants.focusColor, ");\n }\n ")
21
- }));
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Chip = /*#__PURE__*/require("./Chip/Chip");
7
- Object.keys(_Chip).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Chip[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _Chip[key];
14
- }
15
- });
16
- });
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
@@ -1,9 +0,0 @@
1
- [
2
- " --plasma-select-width",
3
- " --plasma-select-height",
4
- " --plasma-select-border-radius",
5
- " --plasma-select-padding-top",
6
- " --plasma-select-padding-right",
7
- " --plasma-select-padding-bottom",
8
- " --plasma-select-padding-left"
9
- ]
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
@@ -1 +0,0 @@
1
- ["--plasma-select-background", "--plasma-select-box-shadow"]
@@ -1,32 +0,0 @@
1
- export function focusedChipIndexReducer(state, action) {
2
- switch (action.type) {
3
- case 'reset':
4
- {
5
- return null;
6
- }
7
- case 'moveLeft':
8
- {
9
- if (state === null) {
10
- return 0;
11
- }
12
- if (state === 0) {
13
- return state;
14
- }
15
- return state - 1;
16
- }
17
- case 'moveRight':
18
- {
19
- if (state === null) {
20
- return action.total - 1;
21
- }
22
- if (state === action.total - 1) {
23
- return state;
24
- }
25
- return state + 1;
26
- }
27
- default:
28
- {
29
- return null;
30
- }
31
- }
32
- }
@@ -1,28 +0,0 @@
1
- var _div;
2
- import React, { useEffect, useRef } from 'react';
3
- import { classes } from '../../../../../../Select.tokens';
4
- import { StyledChip } from './Chip.styles';
5
- export var Chip = function Chip(_ref) {
6
- var text = _ref.text,
7
- onClick = _ref.onClick,
8
- focused = _ref.focused,
9
- isTargetAmount = _ref.isTargetAmount;
10
- var ref = useRef(null);
11
- useEffect(function () {
12
- if (focused && ref.current) {
13
- ref.current.scrollIntoView({
14
- behavior: 'smooth',
15
- block: 'center',
16
- inline: 'center'
17
- });
18
- }
19
- }, [focused]);
20
- return /*#__PURE__*/React.createElement(StyledChip, {
21
- contentClearButton: isTargetAmount && (_div || (_div = /*#__PURE__*/React.createElement("div", null))),
22
- tabIndex: -1,
23
- onClick: onClick,
24
- text: "".concat(text),
25
- className: focused ? classes.selectChipIsFocused : undefined,
26
- ref: ref
27
- });
28
- };
@@ -1,14 +0,0 @@
1
- import styled from 'styled-components';
2
- import { chipConfig, chipTokens } from '../../../../../../../Chip';
3
- import { component, mergeConfig } from '../../../../../../../../engines';
4
- import { tokens, classes, constants } from '../../../../../../Select.tokens';
5
- import { addFocus } from '../../../../../../../../mixins';
6
- var mergedConfig = /*#__PURE__*/mergeConfig(chipConfig);
7
- var Chip = /*#__PURE__*/component(mergedConfig);
8
- export var StyledChip = /*#__PURE__*/styled(Chip).withConfig({
9
- componentId: "plasma-new-hope__sc-1mtedco-0"
10
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ";"], chipTokens.color, tokens.chipColor, chipTokens.colorHover, tokens.chipColor, chipTokens.colorActive, tokens.chipColor, chipTokens.background, tokens.chipBackground, chipTokens.backgroundHover, tokens.chipBackgroundHover, chipTokens.backgroundActive, tokens.chipBackgroundActive, chipTokens.borderRadius, tokens.chipBorderRadius, chipTokens.height, tokens.chipHeight, chipTokens.paddingRight, tokens.chipPaddingRight, chipTokens.paddingLeft, tokens.chipPaddingLeft, chipTokens.fontFamily, tokens.fontFamily, chipTokens.fontSize, tokens.fontSize, chipTokens.fontStyle, tokens.fontStyle, chipTokens.fontWeight, tokens.fontWeight, chipTokens.letterSpacing, tokens.fontLetterSpacing, chipTokens.lineHeight, tokens.fontLineHeight, chipTokens.clearContentMarginLeft, tokens.chipClearContentMarginLeft, chipTokens.clearContentMarginRight, tokens.chipClearContentMarginRight, chipTokens.closeIconSize, tokens.chipCloseIconSize, chipTokens.closeIconColor, tokens.chipColor, chipTokens.focusColor, constants.focusColor, /*#__PURE__*/addFocus({
11
- outlineOffset: /*#__PURE__*/"calc(var(".concat(tokens.focusOffset, ") * -1)"),
12
- outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.chipBorderRadius, ") + var(").concat(tokens.focusOffset, "))"),
13
- customFocusRules: /*#__PURE__*/"\n &.".concat(classes.selectChipIsFocused, ":before {\n outline: none;\n box-shadow: 0 0 0 ").concat(constants.focusSize, " var(").concat(constants.focusColor, ");\n }\n ")
14
- }));
@@ -1 +0,0 @@
1
- export * from './Chip/Chip';
@@ -1,2 +0,0 @@
1
- import { css } from 'styled-components';
2
- export var base = /*#__PURE__*/css([""]);
@@ -1,9 +0,0 @@
1
- [
2
- " --plasma-select-width",
3
- " --plasma-select-height",
4
- " --plasma-select-border-radius",
5
- " --plasma-select-padding-top",
6
- " --plasma-select-padding-right",
7
- " --plasma-select-padding-bottom",
8
- " --plasma-select-padding-left"
9
- ]
@@ -1,2 +0,0 @@
1
- import { css } from 'styled-components';
2
- export var base = /*#__PURE__*/css([""]);
@@ -1 +0,0 @@
1
- ["--plasma-select-background", "--plasma-select-box-shadow"]
@@ -1,11 +0,0 @@
1
- export declare type FocusedChipIndexState = number | null;
2
- export declare type FocusedChipIndexAction = {
3
- type: 'reset';
4
- } | {
5
- type: 'moveLeft';
6
- } | {
7
- type: 'moveRight';
8
- total: number;
9
- };
10
- export declare function focusedChipIndexReducer(state: FocusedChipIndexState, action: FocusedChipIndexAction): FocusedChipIndexState;
11
- //# sourceMappingURL=focusedChipIndexReducer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focusedChipIndexReducer.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/reducers/focusedChipIndexReducer.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAAG,MAAM,GAAG,IAAI,CAAC;AAElD,oBAAY,sBAAsB,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAErH,wBAAgB,uBAAuB,CACnC,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,sBAAsB,GAC/B,qBAAqB,CAkCvB"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { SelectProps } from '../../../../../../Select.types';
3
- export declare const Chip: React.FC<{
4
- text: string;
5
- onClick?: (e: React.MouseEvent<HTMLElement>) => void;
6
- focused?: boolean;
7
- isTargetAmount?: SelectProps['isTargetAmount'];
8
- }>;
9
- //# sourceMappingURL=Chip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAK7D,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAClD,CAuBA,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledChip: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../../../../../../../engines/types").PropsType<import("../../../../../../../../engines/types").Variants> & import("../../../../../../../Chip").ChipProps & import("react").RefAttributes<HTMLButtonElement>>;
3
- //# sourceMappingURL=Chip.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chip.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,UAAU,iSAiCtB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Chip/Chip';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Select/ui/Target/ui/Textfield/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const base: import("@linaria/core").LinariaClassName;
2
- //# sourceMappingURL=base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/variations/_size/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const base: import("@linaria/core").LinariaClassName;
2
- //# sourceMappingURL=base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/variations/_view/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}