@salutejs/plasma-new-hope 0.195.0-canary.1534.11913376384.0 → 0.195.0-canary.1556.11915399849.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -333
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  3. package/cjs/components/Autocomplete/Autocomplete.css +17 -17
  4. package/cjs/components/Autocomplete/Autocomplete.js +7 -1
  5. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  6. package/cjs/components/Combobox/ComboboxNew/Combobox.css +17 -17
  7. package/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  8. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  9. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -17
  10. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -17
  11. package/cjs/components/DatePicker/RangeDate/RangeDate.css +17 -17
  12. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  13. package/cjs/components/DatePicker/SingleDate/SingleDate.css +17 -17
  14. package/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  15. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  16. package/cjs/components/Pagination/Pagination.css +17 -17
  17. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  18. package/cjs/components/Range/Range.css +17 -17
  19. package/cjs/components/Select/Select.css +17 -17
  20. package/cjs/components/Select/ui/Inner/Inner.css +17 -17
  21. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  22. package/cjs/components/Select/ui/Target/Target.css +17 -17
  23. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  24. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  25. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  26. package/cjs/components/Slider/Slider.css +17 -17
  27. package/cjs/components/Slider/components/Double/Double.css +17 -17
  28. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  29. package/cjs/components/TextField/TextField.js +9 -5
  30. package/cjs/components/TextField/TextField.js.map +1 -1
  31. package/cjs/components/TextField/TextField.styles.js +20 -11
  32. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  33. package/{es/components/TextField/TextField.styles_j7dqpn.css → cjs/components/TextField/TextField.styles_ppcxpx.css} +1 -1
  34. package/cjs/components/TextField/TextField.tokens.js +1 -0
  35. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  36. package/cjs/components/TextField/ui/Hint/Hint.css +20 -20
  37. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  38. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  39. package/cjs/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  40. package/cjs/index.css +17 -31
  41. package/cjs/index.js +0 -6
  42. package/cjs/index.js.map +1 -1
  43. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  44. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  45. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  46. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  47. package/emotion/cjs/components/TextField/TextField.js +10 -6
  48. package/emotion/cjs/components/TextField/TextField.styles.js +29 -26
  49. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
  50. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  51. package/emotion/cjs/components/_Icon/index.js +1 -8
  52. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  53. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  54. package/emotion/cjs/index.js +0 -11
  55. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  56. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  57. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  58. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  59. package/emotion/es/components/TextField/TextField.js +10 -6
  60. package/emotion/es/components/TextField/TextField.styles.js +29 -26
  61. package/emotion/es/components/TextField/TextField.tokens.js +1 -0
  62. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  63. package/emotion/es/components/_Icon/index.js +1 -2
  64. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  65. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  66. package/emotion/es/index.js +1 -2
  67. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -332
  68. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  69. package/es/components/Autocomplete/Autocomplete.css +17 -17
  70. package/es/components/Autocomplete/Autocomplete.js +7 -1
  71. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  72. package/es/components/Combobox/ComboboxNew/Combobox.css +17 -17
  73. package/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  74. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  75. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -17
  76. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -17
  77. package/es/components/DatePicker/RangeDate/RangeDate.css +17 -17
  78. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  79. package/es/components/DatePicker/SingleDate/SingleDate.css +17 -17
  80. package/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  81. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  82. package/es/components/Pagination/Pagination.css +17 -17
  83. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  84. package/es/components/Range/Range.css +17 -17
  85. package/es/components/Select/Select.css +17 -17
  86. package/es/components/Select/ui/Inner/Inner.css +17 -17
  87. package/es/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  88. package/es/components/Select/ui/Target/Target.css +17 -17
  89. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  90. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  91. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  92. package/es/components/Slider/Slider.css +17 -17
  93. package/es/components/Slider/components/Double/Double.css +17 -17
  94. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  95. package/es/components/TextField/TextField.js +9 -5
  96. package/es/components/TextField/TextField.js.map +1 -1
  97. package/es/components/TextField/TextField.styles.js +20 -11
  98. package/es/components/TextField/TextField.styles.js.map +1 -1
  99. package/{cjs/components/TextField/TextField.styles_j7dqpn.css → es/components/TextField/TextField.styles_ppcxpx.css} +1 -1
  100. package/es/components/TextField/TextField.tokens.js +1 -0
  101. package/es/components/TextField/TextField.tokens.js.map +1 -1
  102. package/es/components/TextField/ui/Hint/Hint.css +20 -20
  103. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  104. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  105. package/es/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  106. package/es/index.css +17 -31
  107. package/es/index.js +0 -2
  108. package/es/index.js.map +1 -1
  109. package/package.json +4 -4
  110. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  111. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  112. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  113. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  114. package/styled-components/cjs/components/TextField/TextField.js +9 -5
  115. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -6
  116. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
  117. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  118. package/styled-components/cjs/components/_Icon/index.js +1 -8
  119. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  120. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  121. package/styled-components/cjs/index.js +0 -11
  122. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  123. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  124. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  125. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +10 -3
  126. package/styled-components/es/components/TextField/TextField.js +9 -5
  127. package/styled-components/es/components/TextField/TextField.styles.js +9 -6
  128. package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
  129. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  130. package/styled-components/es/components/_Icon/index.js +1 -2
  131. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  132. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  133. package/styled-components/es/index.js +1 -2
  134. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  135. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +717 -61
  136. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  137. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  138. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +30 -10
  139. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  140. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +717 -61
  141. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  142. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  143. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  144. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +717 -61
  145. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  146. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +28 -9
  147. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  148. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +176 -4
  149. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  150. package/types/components/Range/Range.styles.d.ts +717 -61
  151. package/types/components/Range/Range.styles.d.ts.map +1 -1
  152. package/types/components/Select/Select.types.d.ts +30 -10
  153. package/types/components/Select/Select.types.d.ts.map +1 -1
  154. package/types/components/Select/ui/Target/Target.d.ts +1 -1
  155. package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
  156. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  157. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  158. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +717 -61
  159. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  160. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  161. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  162. package/types/components/Slider/components/Double/Double.styles.d.ts +717 -61
  163. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  164. package/types/components/TextField/TextField.d.ts.map +1 -1
  165. package/types/components/TextField/TextField.styles.d.ts +3 -1
  166. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  167. package/types/components/TextField/TextField.tokens.d.ts +1 -0
  168. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  169. package/types/components/TextField/TextField.types.d.ts +43 -20
  170. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  171. package/types/components/_Icon/index.d.ts +0 -1
  172. package/types/components/_Icon/index.d.ts.map +1 -1
  173. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +3 -5
  174. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  175. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1045 -133
  176. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  177. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +47 -1
  178. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  179. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +1246 -62
  180. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  181. package/types/examples/plasma_b2c/components/Select/Select.d.ts +176 -4
  182. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  183. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +717 -61
  184. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  185. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +3 -5
  186. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  187. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1045 -133
  188. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  189. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +47 -1
  190. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  191. package/types/examples/plasma_web/components/Mask/Mask.d.ts +1246 -62
  192. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  193. package/types/examples/plasma_web/components/Select/Select.d.ts +176 -4
  194. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  195. package/types/examples/plasma_web/components/TextField/TextField.d.ts +717 -61
  196. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  197. package/types/index.d.ts +0 -1
  198. package/types/index.d.ts.map +1 -1
  199. package/cjs/components/Dropzone/Dropzone.css +0 -15
  200. package/cjs/components/Dropzone/Dropzone.js +0 -252
  201. package/cjs/components/Dropzone/Dropzone.js.map +0 -1
  202. package/cjs/components/Dropzone/Dropzone.styles.js +0 -47
  203. package/cjs/components/Dropzone/Dropzone.styles.js.map +0 -1
  204. package/cjs/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  205. package/cjs/components/Dropzone/Dropzone.tokens.js +0 -47
  206. package/cjs/components/Dropzone/Dropzone.tokens.js.map +0 -1
  207. package/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  208. package/cjs/components/Dropzone/variations/_disabled/base.js.map +0 -1
  209. package/cjs/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  210. package/cjs/components/Dropzone/variations/_size/base.js +0 -9
  211. package/cjs/components/Dropzone/variations/_size/base.js.map +0 -1
  212. package/cjs/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  213. package/cjs/components/Dropzone/variations/_view/base.js +0 -9
  214. package/cjs/components/Dropzone/variations/_view/base.js.map +0 -1
  215. package/cjs/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  216. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  217. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -24
  218. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  219. package/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -23
  220. package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  221. package/emotion/cjs/components/Dropzone/Dropzone.js +0 -271
  222. package/emotion/cjs/components/Dropzone/Dropzone.styles.js +0 -67
  223. package/emotion/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  224. package/emotion/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  225. package/emotion/cjs/components/Dropzone/Dropzone.types.js +0 -5
  226. package/emotion/cjs/components/Dropzone/index.js +0 -31
  227. package/emotion/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  228. package/emotion/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  229. package/emotion/cjs/components/Dropzone/variations/_size/base.js +0 -10
  230. package/emotion/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  231. package/emotion/cjs/components/Dropzone/variations/_view/base.js +0 -10
  232. package/emotion/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  233. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  234. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  235. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  236. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  237. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  238. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  239. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  240. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  241. package/emotion/es/components/Dropzone/Dropzone.js +0 -263
  242. package/emotion/es/components/Dropzone/Dropzone.styles.js +0 -60
  243. package/emotion/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  244. package/emotion/es/components/Dropzone/Dropzone.tokens.js +0 -38
  245. package/emotion/es/components/Dropzone/Dropzone.types.js +0 -1
  246. package/emotion/es/components/Dropzone/index.js +0 -2
  247. package/emotion/es/components/Dropzone/variations/_disabled/base.js +0 -3
  248. package/emotion/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  249. package/emotion/es/components/Dropzone/variations/_size/base.js +0 -4
  250. package/emotion/es/components/Dropzone/variations/_size/tokens.json +0 -19
  251. package/emotion/es/components/Dropzone/variations/_view/base.js +0 -4
  252. package/emotion/es/components/Dropzone/variations/_view/tokens.json +0 -9
  253. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  254. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  255. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  256. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  257. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  258. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  259. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  260. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  261. package/es/components/Dropzone/Dropzone.css +0 -15
  262. package/es/components/Dropzone/Dropzone.js +0 -247
  263. package/es/components/Dropzone/Dropzone.js.map +0 -1
  264. package/es/components/Dropzone/Dropzone.styles.js +0 -37
  265. package/es/components/Dropzone/Dropzone.styles.js.map +0 -1
  266. package/es/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  267. package/es/components/Dropzone/Dropzone.tokens.js +0 -41
  268. package/es/components/Dropzone/Dropzone.tokens.js.map +0 -1
  269. package/es/components/Dropzone/variations/_disabled/base.js +0 -5
  270. package/es/components/Dropzone/variations/_disabled/base.js.map +0 -1
  271. package/es/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  272. package/es/components/Dropzone/variations/_size/base.js +0 -5
  273. package/es/components/Dropzone/variations/_size/base.js.map +0 -1
  274. package/es/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  275. package/es/components/Dropzone/variations/_view/base.js +0 -5
  276. package/es/components/Dropzone/variations/_view/base.js.map +0 -1
  277. package/es/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  278. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  279. package/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -20
  280. package/es/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  281. package/es/components/_Icon/Icons/IconArrowBarDown.js +0 -19
  282. package/es/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  283. package/styled-components/cjs/components/Dropzone/Dropzone.js +0 -271
  284. package/styled-components/cjs/components/Dropzone/Dropzone.styles.js +0 -29
  285. package/styled-components/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  286. package/styled-components/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  287. package/styled-components/cjs/components/Dropzone/Dropzone.types.js +0 -5
  288. package/styled-components/cjs/components/Dropzone/index.js +0 -31
  289. package/styled-components/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  290. package/styled-components/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  291. package/styled-components/cjs/components/Dropzone/variations/_size/base.js +0 -10
  292. package/styled-components/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  293. package/styled-components/cjs/components/Dropzone/variations/_view/base.js +0 -10
  294. package/styled-components/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  295. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  296. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  297. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  298. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  299. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  300. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  301. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  302. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  303. package/styled-components/es/components/Dropzone/Dropzone.js +0 -263
  304. package/styled-components/es/components/Dropzone/Dropzone.styles.js +0 -21
  305. package/styled-components/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  306. package/styled-components/es/components/Dropzone/Dropzone.tokens.js +0 -38
  307. package/styled-components/es/components/Dropzone/Dropzone.types.js +0 -1
  308. package/styled-components/es/components/Dropzone/index.js +0 -2
  309. package/styled-components/es/components/Dropzone/variations/_disabled/base.js +0 -3
  310. package/styled-components/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  311. package/styled-components/es/components/Dropzone/variations/_size/base.js +0 -4
  312. package/styled-components/es/components/Dropzone/variations/_size/tokens.json +0 -19
  313. package/styled-components/es/components/Dropzone/variations/_view/base.js +0 -4
  314. package/styled-components/es/components/Dropzone/variations/_view/tokens.json +0 -9
  315. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  316. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  317. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  318. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  319. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  320. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  321. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  322. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  323. package/types/components/Dropzone/Dropzone.d.ts +0 -59
  324. package/types/components/Dropzone/Dropzone.d.ts.map +0 -1
  325. package/types/components/Dropzone/Dropzone.styles.d.ts +0 -9
  326. package/types/components/Dropzone/Dropzone.styles.d.ts.map +0 -1
  327. package/types/components/Dropzone/Dropzone.tokens.d.ts +0 -39
  328. package/types/components/Dropzone/Dropzone.tokens.d.ts.map +0 -1
  329. package/types/components/Dropzone/Dropzone.types.d.ts +0 -77
  330. package/types/components/Dropzone/Dropzone.types.d.ts.map +0 -1
  331. package/types/components/Dropzone/index.d.ts +0 -3
  332. package/types/components/Dropzone/index.d.ts.map +0 -1
  333. package/types/components/Dropzone/variations/_disabled/base.d.ts +0 -2
  334. package/types/components/Dropzone/variations/_disabled/base.d.ts.map +0 -1
  335. package/types/components/Dropzone/variations/_size/base.d.ts +0 -2
  336. package/types/components/Dropzone/variations/_size/base.d.ts.map +0 -1
  337. package/types/components/Dropzone/variations/_view/base.d.ts +0 -2
  338. package/types/components/Dropzone/variations/_view/base.d.ts.map +0 -1
  339. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +0 -4
  340. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +0 -1
  341. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +0 -4
  342. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +0 -1
  343. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts +0 -18
  344. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  345. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +0 -29
  346. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +0 -1
  347. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts +0 -18
  348. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  349. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts +0 -29
  350. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts.map +0 -1
@@ -50,307 +50,6 @@ function _objectSpread2(e) {
50
50
  }
51
51
  return e;
52
52
  }
53
- function _regeneratorRuntime() {
54
- _regeneratorRuntime = function () {
55
- return e;
56
- };
57
- var t,
58
- e = {},
59
- r = Object.prototype,
60
- n = r.hasOwnProperty,
61
- o = Object.defineProperty || function (t, e, r) {
62
- t[e] = r.value;
63
- },
64
- i = "function" == typeof Symbol ? Symbol : {},
65
- a = i.iterator || "@@iterator",
66
- c = i.asyncIterator || "@@asyncIterator",
67
- u = i.toStringTag || "@@toStringTag";
68
- function define(t, e, r) {
69
- return Object.defineProperty(t, e, {
70
- value: r,
71
- enumerable: !0,
72
- configurable: !0,
73
- writable: !0
74
- }), t[e];
75
- }
76
- try {
77
- define({}, "");
78
- } catch (t) {
79
- define = function (t, e, r) {
80
- return t[e] = r;
81
- };
82
- }
83
- function wrap(t, e, r, n) {
84
- var i = e && e.prototype instanceof Generator ? e : Generator,
85
- a = Object.create(i.prototype),
86
- c = new Context(n || []);
87
- return o(a, "_invoke", {
88
- value: makeInvokeMethod(t, r, c)
89
- }), a;
90
- }
91
- function tryCatch(t, e, r) {
92
- try {
93
- return {
94
- type: "normal",
95
- arg: t.call(e, r)
96
- };
97
- } catch (t) {
98
- return {
99
- type: "throw",
100
- arg: t
101
- };
102
- }
103
- }
104
- e.wrap = wrap;
105
- var h = "suspendedStart",
106
- l = "suspendedYield",
107
- f = "executing",
108
- s = "completed",
109
- y = {};
110
- function Generator() {}
111
- function GeneratorFunction() {}
112
- function GeneratorFunctionPrototype() {}
113
- var p = {};
114
- define(p, a, function () {
115
- return this;
116
- });
117
- var d = Object.getPrototypeOf,
118
- v = d && d(d(values([])));
119
- v && v !== r && n.call(v, a) && (p = v);
120
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
121
- function defineIteratorMethods(t) {
122
- ["next", "throw", "return"].forEach(function (e) {
123
- define(t, e, function (t) {
124
- return this._invoke(e, t);
125
- });
126
- });
127
- }
128
- function AsyncIterator(t, e) {
129
- function invoke(r, o, i, a) {
130
- var c = tryCatch(t[r], t, o);
131
- if ("throw" !== c.type) {
132
- var u = c.arg,
133
- h = u.value;
134
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
135
- invoke("next", t, i, a);
136
- }, function (t) {
137
- invoke("throw", t, i, a);
138
- }) : e.resolve(h).then(function (t) {
139
- u.value = t, i(u);
140
- }, function (t) {
141
- return invoke("throw", t, i, a);
142
- });
143
- }
144
- a(c.arg);
145
- }
146
- var r;
147
- o(this, "_invoke", {
148
- value: function (t, n) {
149
- function callInvokeWithMethodAndArg() {
150
- return new e(function (e, r) {
151
- invoke(t, n, e, r);
152
- });
153
- }
154
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
155
- }
156
- });
157
- }
158
- function makeInvokeMethod(e, r, n) {
159
- var o = h;
160
- return function (i, a) {
161
- if (o === f) throw Error("Generator is already running");
162
- if (o === s) {
163
- if ("throw" === i) throw a;
164
- return {
165
- value: t,
166
- done: !0
167
- };
168
- }
169
- for (n.method = i, n.arg = a;;) {
170
- var c = n.delegate;
171
- if (c) {
172
- var u = maybeInvokeDelegate(c, n);
173
- if (u) {
174
- if (u === y) continue;
175
- return u;
176
- }
177
- }
178
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
179
- if (o === h) throw o = s, n.arg;
180
- n.dispatchException(n.arg);
181
- } else "return" === n.method && n.abrupt("return", n.arg);
182
- o = f;
183
- var p = tryCatch(e, r, n);
184
- if ("normal" === p.type) {
185
- if (o = n.done ? s : l, p.arg === y) continue;
186
- return {
187
- value: p.arg,
188
- done: n.done
189
- };
190
- }
191
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
192
- }
193
- };
194
- }
195
- function maybeInvokeDelegate(e, r) {
196
- var n = r.method,
197
- o = e.iterator[n];
198
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
199
- var i = tryCatch(o, e.iterator, r.arg);
200
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
201
- var a = i.arg;
202
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
203
- }
204
- function pushTryEntry(t) {
205
- var e = {
206
- tryLoc: t[0]
207
- };
208
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
209
- }
210
- function resetTryEntry(t) {
211
- var e = t.completion || {};
212
- e.type = "normal", delete e.arg, t.completion = e;
213
- }
214
- function Context(t) {
215
- this.tryEntries = [{
216
- tryLoc: "root"
217
- }], t.forEach(pushTryEntry, this), this.reset(!0);
218
- }
219
- function values(e) {
220
- if (e || "" === e) {
221
- var r = e[a];
222
- if (r) return r.call(e);
223
- if ("function" == typeof e.next) return e;
224
- if (!isNaN(e.length)) {
225
- var o = -1,
226
- i = function next() {
227
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
228
- return next.value = t, next.done = !0, next;
229
- };
230
- return i.next = i;
231
- }
232
- }
233
- throw new TypeError(typeof e + " is not iterable");
234
- }
235
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
236
- value: GeneratorFunctionPrototype,
237
- configurable: !0
238
- }), o(GeneratorFunctionPrototype, "constructor", {
239
- value: GeneratorFunction,
240
- configurable: !0
241
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
242
- var e = "function" == typeof t && t.constructor;
243
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
244
- }, e.mark = function (t) {
245
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
246
- }, e.awrap = function (t) {
247
- return {
248
- __await: t
249
- };
250
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
251
- return this;
252
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
253
- void 0 === i && (i = Promise);
254
- var a = new AsyncIterator(wrap(t, r, n, o), i);
255
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
256
- return t.done ? t.value : a.next();
257
- });
258
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
259
- return this;
260
- }), define(g, "toString", function () {
261
- return "[object Generator]";
262
- }), e.keys = function (t) {
263
- var e = Object(t),
264
- r = [];
265
- for (var n in e) r.push(n);
266
- return r.reverse(), function next() {
267
- for (; r.length;) {
268
- var t = r.pop();
269
- if (t in e) return next.value = t, next.done = !1, next;
270
- }
271
- return next.done = !0, next;
272
- };
273
- }, e.values = values, Context.prototype = {
274
- constructor: Context,
275
- reset: function (e) {
276
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
277
- },
278
- stop: function () {
279
- this.done = !0;
280
- var t = this.tryEntries[0].completion;
281
- if ("throw" === t.type) throw t.arg;
282
- return this.rval;
283
- },
284
- dispatchException: function (e) {
285
- if (this.done) throw e;
286
- var r = this;
287
- function handle(n, o) {
288
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
289
- }
290
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
291
- var i = this.tryEntries[o],
292
- a = i.completion;
293
- if ("root" === i.tryLoc) return handle("end");
294
- if (i.tryLoc <= this.prev) {
295
- var c = n.call(i, "catchLoc"),
296
- u = n.call(i, "finallyLoc");
297
- if (c && u) {
298
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
299
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
300
- } else if (c) {
301
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
302
- } else {
303
- if (!u) throw Error("try statement without catch or finally");
304
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
305
- }
306
- }
307
- }
308
- },
309
- abrupt: function (t, e) {
310
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
311
- var o = this.tryEntries[r];
312
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
313
- var i = o;
314
- break;
315
- }
316
- }
317
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
318
- var a = i ? i.completion : {};
319
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
320
- },
321
- complete: function (t, e) {
322
- if ("throw" === t.type) throw t.arg;
323
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
324
- },
325
- finish: function (t) {
326
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
327
- var r = this.tryEntries[e];
328
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
329
- }
330
- },
331
- catch: function (t) {
332
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
333
- var r = this.tryEntries[e];
334
- if (r.tryLoc === t) {
335
- var n = r.completion;
336
- if ("throw" === n.type) {
337
- var o = n.arg;
338
- resetTryEntry(r);
339
- }
340
- return o;
341
- }
342
- }
343
- throw Error("illegal catch attempt");
344
- },
345
- delegateYield: function (e, r, n) {
346
- return this.delegate = {
347
- iterator: values(e),
348
- resultName: r,
349
- nextLoc: n
350
- }, "next" === this.method && (this.arg = t), y;
351
- }
352
- }, e;
353
- }
354
53
  function _toPrimitive(t, r) {
355
54
  if ("object" != typeof t || !t) return t;
356
55
  var e = t[Symbol.toPrimitive];
@@ -374,36 +73,6 @@ function _typeof(o) {
374
73
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
375
74
  }, _typeof(o);
376
75
  }
377
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
378
- try {
379
- var info = gen[key](arg);
380
- var value = info.value;
381
- } catch (error) {
382
- reject(error);
383
- return;
384
- }
385
- if (info.done) {
386
- resolve(value);
387
- } else {
388
- Promise.resolve(value).then(_next, _throw);
389
- }
390
- }
391
- function _asyncToGenerator(fn) {
392
- return function () {
393
- var self = this,
394
- args = arguments;
395
- return new Promise(function (resolve, reject) {
396
- var gen = fn.apply(self, args);
397
- function _next(value) {
398
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
399
- }
400
- function _throw(err) {
401
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
402
- }
403
- _next(undefined);
404
- });
405
- };
406
- }
407
76
  function _classCallCheck(instance, Constructor) {
408
77
  if (!(instance instanceof Constructor)) {
409
78
  throw new TypeError("Cannot call a class as a function");
@@ -522,7 +191,6 @@ function _nonIterableRest() {
522
191
  exports.arrayLikeToArray = _arrayLikeToArray;
523
192
  exports.arrayWithHoles = _arrayWithHoles;
524
193
  exports.arrayWithoutHoles = _arrayWithoutHoles;
525
- exports.asyncToGenerator = _asyncToGenerator;
526
194
  exports.classCallCheck = _classCallCheck;
527
195
  exports.createClass = _createClass;
528
196
  exports.defineProperty = _defineProperty;
@@ -534,7 +202,6 @@ exports.nonIterableSpread = _nonIterableSpread;
534
202
  exports.objectSpread2 = _objectSpread2;
535
203
  exports.objectWithoutProperties = _objectWithoutProperties;
536
204
  exports.objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
537
- exports.regeneratorRuntime = _regeneratorRuntime;
538
205
  exports.slicedToArray = _slicedToArray;
539
206
  exports.toArray = _toArray;
540
207
  exports.toConsumableArray = _toConsumableArray;
@@ -1 +1 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -8,7 +8,7 @@
8
8
 
9
9
  .base_1jvcf9a_b1w985rt__78f0baf3[readonly] .base_1jvcf9a_i1j28rg8__78f0baf3{color:var(--plasma-textfield-color-readonly);background-color:var(--plasma-textfield-bg-color-readonly);box-shadow:inset 0 0 0 var(--plasma-textfield-border-width) var(--plasma-textfield-border-color-readonly);}.base_1jvcf9a_b1w985rt__78f0baf3[readonly].base_1jvcf9a_textfieldHasDivider__78f0baf3 .base_1jvcf9a_i1j28rg8__78f0baf3:before{background-color:var(--plasma-textfield-divider-color-readonly);}.base_1jvcf9a_b1w985rt__78f0baf3[readonly] .base_1jvcf9a_i1j28rg8__78f0baf3:hover{background-color:var(--plasma-textfield-bg-color-readonly);}.base_1jvcf9a_b1w985rt__78f0baf3[readonly] .base_1jvcf9a_i1j28rg8__78f0baf3:focus-within .base_1jvcf9a_ibt1ohz__78f0baf3,.base_1jvcf9a_b1w985rt__78f0baf3[readonly] .base_1jvcf9a_ibt1ohz__78f0baf3{color:var(--plasma-textfield__placeholder-color-readonly);}.base_1jvcf9a_b1w985rt__78f0baf3[readonly] .base_1jvcf9a_i13qvwoy__78f0baf3{color:var(--plasma-textfield-color-readonly);cursor:default;min-width:unset;}.base_1jvcf9a_b1w985rt__78f0baf3[readonly] .base_1jvcf9a_t600610__78f0baf3{color:var(--plasma-textfield__title-caption-color-readonly);}.base_1jvcf9a_b1w985rt__78f0baf3[readonly] .base_1jvcf9a_lb3k3v1__78f0baf3{color:var(--plasma-textfield__left-helper-color-readonly);}.base_1jvcf9a_b1w985rt__78f0baf3[readonly].base_1jvcf9a_labelPlacementOuter__78f0baf3 .base_1jvcf9a_l1gjsnfi__78f0baf3{color:var(--plasma-textfield__label-color-readonly);}
10
10
 
11
- .base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementOuter__3b8edf79 .base_gttvto_l1gjsnfi__3b8edf79{position:relative;display:inline-block;color:var(--plasma-textfield__label-color);}.base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementInner__3b8edf79 .base_gttvto_i19ry60d__3b8edf79{padding:var(--plasma-textfield-placement_inner__content-padding);}.base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementInner__3b8edf79 .base_gttvto_smqgwd8__3b8edf79,.base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementInner__3b8edf79 .base_gttvto_s7hnwwb__3b8edf79{padding:var(--plasma-textfield-placement_inner__content-padding);}.base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementInner__3b8edf79 .base_gttvto_i13qvwoy__3b8edf79:focus ~ .base_gttvto_l1gjsnfi__3b8edf79,.base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementInner__3b8edf79 .base_gttvto_i13qvwoy__3b8edf79.base_gttvto_hasValue__3b8edf79 ~ .base_gttvto_l1gjsnfi__3b8edf79{color:var(--plasma-textfield__placeholder-color);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;padding:var(--plasma-textfield-placement_inner__label-padding);font-family:var(--plasma-textfield-placement_inner__label-font-family);font-size:var(--plasma-textfield-placement_inner__label-font-size);font-style:var(--plasma-textfield-placement_inner__label-font-style);font-weight:var(--plasma-textfield-placement_inner__label-font-weight);-webkit-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);line-height:var(--plasma-textfield-placement_inner__label-line-height);}.base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementInner__3b8edf79 .base_gttvto_l1gjsnfi__3b8edf79{color:var(--plasma-textfield__placeholder-color);pointer-events:none;position:absolute;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;height:var(--plasma-textfield-height);padding-top:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);padding-bottom:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);}.base_gttvto_b15d3bnf__3b8edf79.base_gttvto_labelPlacementInner__3b8edf79.base_gttvto_textfieldClear__3b8edf79 .base_gttvto_l1gjsnfi__3b8edf79{color:var(--plasma-textfield__clear-placeholder-color);}
11
+ .base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementOuter__96eb1405 .base_y1lvvc_l1gjsnfi__96eb1405{position:relative;display:inline-block;color:var(--plasma-textfield__label-color);}.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405 .base_y1lvvc_i19ry60d__96eb1405{padding:var(--plasma-textfield-placement_inner__content-padding);}.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405 .base_y1lvvc_smqgwd8__96eb1405,.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405 .base_y1lvvc_s7hnwwb__96eb1405{padding:var(--plasma-textfield-placement_inner__content-padding);}.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405 .base_y1lvvc_i13qvwoy__96eb1405:focus ~ .base_y1lvvc_l1gjsnfi__96eb1405,.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405 .base_y1lvvc_i13qvwoy__96eb1405.base_y1lvvc_hasValue__96eb1405 ~ .base_y1lvvc_l1gjsnfi__96eb1405,.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405 .base_y1lvvc_i13qvwoy__96eb1405.base_y1lvvc_forcePlaceholder__96eb1405 ~ .base_y1lvvc_l1gjsnfi__96eb1405{color:var(--plasma-textfield__placeholder-color);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;padding:var(--plasma-textfield-placement_inner__label-padding);font-family:var(--plasma-textfield-placement_inner__label-font-family);font-size:var(--plasma-textfield-placement_inner__label-font-size);font-style:var(--plasma-textfield-placement_inner__label-font-style);font-weight:var(--plasma-textfield-placement_inner__label-font-weight);-webkit-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);line-height:var(--plasma-textfield-placement_inner__label-line-height);}.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405 .base_y1lvvc_l1gjsnfi__96eb1405{color:var(--plasma-textfield__placeholder-color);pointer-events:none;position:absolute;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;height:var(--plasma-textfield-height);padding-top:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);padding-bottom:calc(calc(var(--plasma-textfield-height) - var(--plasma-textfield__label-line-height)) / 2);}.base_y1lvvc_b15d3bnf__96eb1405.base_y1lvvc_labelPlacementInner__96eb1405.base_y1lvvc_textfieldClear__96eb1405 .base_y1lvvc_l1gjsnfi__96eb1405{color:var(--plasma-textfield__clear-placeholder-color);}
12
12
 
13
13
  .base_l8etux_bbsd6t5__82026c13 .base_l8etux_hq39zt5__82026c13{--plasma-tooltip-background-color:var(--plasma-textfield__tooltip-background-color);--plasma-tooltip-box-shadow:var(--plasma-textfield__tooltip-box-shadow);--plasma-tooltip-color:var(--plasma-textfield__tooltip-color);}
14
14
 
@@ -20,26 +20,26 @@
20
20
  .Tooltip_aay375_s1cz8cv8__390cdb21{--plasma-popover-arrow-mask-width:var(--plasma-tooltip-arrow-mask-width);--plasma-popover-arrow-mask-height:var(--plasma-tooltip-arrow-mask-height);--plasma-popover-arrow-mask-image:var(--plasma-tooltip-arrow-mask-image);--plasma-popover-arrow-background:var(--plasma-tooltip-arrow-background);--plasma-popover-arrow-height:var(--plasma-tooltip-arrow-height);--plasma-popover-arrow-edge-margin:var(--plasma-tooltip-arrow-edge-margin);}.Tooltip_aay375_s1cz8cv8__390cdb21.Tooltip_aay375_tooltipAnimated__390cdb21 .Tooltip_aay375_popoverRoot__390cdb21{-webkit-transition:opacity 200ms ease-in-out,visibility 200ms ease-in-out;transition:opacity 200ms ease-in-out,visibility 200ms ease-in-out;}
21
21
 
22
22
 
23
- .TextField_styles_j7dqpn_i1j28rg8__f79fd7d8{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;}
24
- .TextField_styles_j7dqpn_i13zudoe__f79fd7d8{-webkit-flex:1;-ms-flex:1;flex:1;overflow:scroll;position:relative;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.TextField_styles_j7dqpn_i13zudoe__f79fd7d8::-webkit-scrollbar{display:none;}.TextField_styles_j7dqpn_i13zudoe__f79fd7d8.TextField_styles_j7dqpn_hasChips__f79fd7d8{height:var(--plasma-textfield__chip-height);border-radius:var(--plasma-textfield__chip-border-radius);}
25
- .TextField_styles_j7dqpn_so4bpie__f79fd7d8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-textfield__chip-gap);margin-right:var(--plasma-textfield__chip-gap);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
26
- .TextField_styles_j7dqpn_i13qvwoy__f79fd7d8{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:100%;z-index:1;}.TextField_styles_j7dqpn_i13qvwoy__f79fd7d8::-webkit-input-placeholder{opacity:0;}.TextField_styles_j7dqpn_i13qvwoy__f79fd7d8::-moz-placeholder{opacity:0;}.TextField_styles_j7dqpn_i13qvwoy__f79fd7d8:-ms-input-placeholder{opacity:0;}.TextField_styles_j7dqpn_i13qvwoy__f79fd7d8::placeholder{opacity:0;}
27
- .TextField_styles_j7dqpn_i19ry60d__f79fd7d8{position:relative;-webkit-flex:1;-ms-flex:1;flex:1;min-width:60%;}
28
- .TextField_styles_j7dqpn_ibt1ohz__f79fd7d8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;white-space:nowrap;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font:inherit;-webkit-letter-spacing:inherit;-moz-letter-spacing:inherit;-ms-letter-spacing:inherit;letter-spacing:inherit;line-height:inherit;color:var(--plasma-textfield__placeholder-color);}
29
- .TextField_styles_j7dqpn_olv9av6__f79fd7d8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:var(--olv9av6-0);}
30
- .TextField_styles_j7dqpn_t600610__f79fd7d8{display:inline-block;margin-left:auto;}
31
- .TextField_styles_j7dqpn_suk2zst__f79fd7d8{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
32
- .TextField_styles_j7dqpn_l1gjsnfi__f79fd7d8{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
33
- .TextField_styles_j7dqpn_ssv2kwg__f79fd7d8{margin:var(--plasma-textfield__left-content-margin);color:var(--ssv2kwg-0);line-height:0;}
34
- .TextField_styles_j7dqpn_s190z894__f79fd7d8{line-height:0;margin:var(--plasma-textfield__right-content-margin);color:var(--plasma-textfield-content-right-slot-color,var(--plasma-textfield-content-slot-color));}.TextField_styles_j7dqpn_s190z894__f79fd7d8:hover{color:var(--plasma-textfield-content-right-slot-color-hover,var(--plasma-textfield-content-slot-color-hover));cursor:pointer;}.TextField_styles_j7dqpn_s190z894__f79fd7d8:active{color:var(--plasma-textfield-content-right-slot-color-active,var(--plasma-textfield-content-slot-color-active));}
23
+ .TextField_styles_ppcxpx_i1j28rg8__b8b554b5{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;}
24
+ .TextField_styles_ppcxpx_i13zudoe__b8b554b5{-webkit-flex:1;-ms-flex:1;flex:1;overflow:scroll;position:relative;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.TextField_styles_ppcxpx_i13zudoe__b8b554b5::-webkit-scrollbar{display:none;}.TextField_styles_ppcxpx_i13zudoe__b8b554b5.TextField_styles_ppcxpx_hasChips__b8b554b5{height:var(--plasma-textfield__chip-height);border-radius:var(--plasma-textfield__chip-border-radius);}
25
+ .TextField_styles_ppcxpx_so4bpie__b8b554b5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-textfield__chip-gap);margin-right:var(--plasma-textfield__chip-gap);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
26
+ .TextField_styles_ppcxpx_i13qvwoy__b8b554b5{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:100%;z-index:1;}.TextField_styles_ppcxpx_i13qvwoy__b8b554b5::-webkit-input-placeholder{opacity:0;}.TextField_styles_ppcxpx_i13qvwoy__b8b554b5::-moz-placeholder{opacity:0;}.TextField_styles_ppcxpx_i13qvwoy__b8b554b5:-ms-input-placeholder{opacity:0;}.TextField_styles_ppcxpx_i13qvwoy__b8b554b5::placeholder{opacity:0;}
27
+ .TextField_styles_ppcxpx_i19ry60d__b8b554b5{position:relative;-webkit-flex:1;-ms-flex:1;flex:1;min-width:60%;}
28
+ .TextField_styles_ppcxpx_ibt1ohz__b8b554b5{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;white-space:nowrap;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font:inherit;-webkit-letter-spacing:inherit;-moz-letter-spacing:inherit;-ms-letter-spacing:inherit;letter-spacing:inherit;line-height:inherit;color:var(--plasma-textfield__placeholder-color);padding:var(--ibt1ohz-0);}
29
+ .TextField_styles_ppcxpx_olv9av6__b8b554b5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:var(--olv9av6-0);}
30
+ .TextField_styles_ppcxpx_t600610__b8b554b5{display:inline-block;margin-left:auto;}
31
+ .TextField_styles_ppcxpx_suk2zst__b8b554b5{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
32
+ .TextField_styles_ppcxpx_l1gjsnfi__b8b554b5{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
33
+ .TextField_styles_ppcxpx_ssv2kwg__b8b554b5{margin:var(--plasma-textfield__left-content-margin);color:var(--ssv2kwg-0);line-height:0;}
34
+ .TextField_styles_ppcxpx_s190z894__b8b554b5{line-height:0;margin:var(--plasma-textfield__right-content-margin);color:var(--plasma-textfield-content-right-slot-color,var(--plasma-textfield-content-slot-color));}.TextField_styles_ppcxpx_s190z894__b8b554b5:hover{color:var(--plasma-textfield-content-right-slot-color-hover,var(--plasma-textfield-content-slot-color-hover));cursor:pointer;}.TextField_styles_ppcxpx_s190z894__b8b554b5:active{color:var(--plasma-textfield-content-right-slot-color-active,var(--plasma-textfield-content-slot-color-active));}
35
35
 
36
36
 
37
37
 
38
- .TextField_styles_j7dqpn_s14qvple__f79fd7d8{color:var(--plasma-textfield__optional-color);}
39
- .TextField_styles_j7dqpn_s16itze4__f79fd7d8{display:inline-block;line-height:0;}.TextField_styles_j7dqpn_s16itze4__f79fd7d8.TextField_styles_j7dqpn_labelPlacementInner__f79fd7d8{position:absolute;margin:0;inset:var(--plasma-textfield__hint-inner-label-placement-offset);}
40
- .TextField_styles_j7dqpn_h1skqnhr__f79fd7d8{color:var(--plasma-textfield__hint-icon-color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
38
+ .TextField_styles_ppcxpx_s14qvple__b8b554b5{color:var(--plasma-textfield__optional-color);}
39
+ .TextField_styles_ppcxpx_s16itze4__b8b554b5{display:inline-block;line-height:0;}.TextField_styles_ppcxpx_s16itze4__b8b554b5.TextField_styles_ppcxpx_labelPlacementInner__b8b554b5{position:absolute;margin:0;inset:var(--plasma-textfield__hint-inner-label-placement-offset);}
40
+ .TextField_styles_ppcxpx_h1skqnhr__b8b554b5{color:var(--plasma-textfield__hint-icon-color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
41
41
 
42
- .TextField_styles_j7dqpn_s8yezh4__f79fd7d8{position:absolute;border-radius:50%;background-color:var(--plasma-textfield__indicator-color);}.TextField_styles_j7dqpn_s8yezh4__f79fd7d8.TextField_styles_j7dqpn_labelPlacementOuter__f79fd7d8{width:var(--plasma-textfield__indicator-size-outer);height:var(--plasma-textfield__indicator-size-outer);inset:var(--plasma-textfield__indicator-placement-outer);}.TextField_styles_j7dqpn_s8yezh4__f79fd7d8.TextField_styles_j7dqpn_labelPlacementOuter__f79fd7d8.TextField_styles_j7dqpn_requiredAlignRight__f79fd7d8{inset:var(--plasma-textfield__indicator-placement-outer-right);}.TextField_styles_j7dqpn_s8yezh4__f79fd7d8.TextField_styles_j7dqpn_labelPlacementOuter__f79fd7d8.TextField_styles_j7dqpn_requiredAlignRight__f79fd7d8.TextField_styles_j7dqpn_textfieldHasHint__f79fd7d8{right:calc(-1 * var(--plasma-textfield__indicator-size-outer));}.TextField_styles_j7dqpn_s8yezh4__f79fd7d8.TextField_styles_j7dqpn_labelPlacementInner__f79fd7d8{width:var(--plasma-textfield__indicator-size-inner);height:var(--plasma-textfield__indicator-size-inner);inset:var(--plasma-textfield__indicator-placement-inner);}.TextField_styles_j7dqpn_s8yezh4__f79fd7d8.TextField_styles_j7dqpn_labelPlacementInner__f79fd7d8.TextField_styles_j7dqpn_requiredAlignRight__f79fd7d8{inset:var(--plasma-textfield__indicator-placement-inner-right);}
42
+ .TextField_styles_ppcxpx_s8yezh4__b8b554b5{position:absolute;border-radius:50%;background-color:var(--plasma-textfield__indicator-color);}.TextField_styles_ppcxpx_s8yezh4__b8b554b5.TextField_styles_ppcxpx_labelPlacementOuter__b8b554b5{width:var(--plasma-textfield__indicator-size-outer);height:var(--plasma-textfield__indicator-size-outer);inset:var(--plasma-textfield__indicator-placement-outer);}.TextField_styles_ppcxpx_s8yezh4__b8b554b5.TextField_styles_ppcxpx_labelPlacementOuter__b8b554b5.TextField_styles_ppcxpx_requiredAlignRight__b8b554b5{inset:var(--plasma-textfield__indicator-placement-outer-right);}.TextField_styles_ppcxpx_s8yezh4__b8b554b5.TextField_styles_ppcxpx_labelPlacementOuter__b8b554b5.TextField_styles_ppcxpx_requiredAlignRight__b8b554b5.TextField_styles_ppcxpx_textfieldHasHint__b8b554b5{right:calc(-1 * var(--plasma-textfield__indicator-size-outer));}.TextField_styles_ppcxpx_s8yezh4__b8b554b5.TextField_styles_ppcxpx_labelPlacementInner__b8b554b5{width:var(--plasma-textfield__indicator-size-inner);height:var(--plasma-textfield__indicator-size-inner);inset:var(--plasma-textfield__indicator-placement-inner);}.TextField_styles_ppcxpx_s8yezh4__b8b554b5.TextField_styles_ppcxpx_labelPlacementInner__b8b554b5.TextField_styles_ppcxpx_requiredAlignRight__b8b554b5{inset:var(--plasma-textfield__indicator-placement-inner-right);}
43
43
 
44
44
  .base_1lwlv7t_b13tc97x__334a4e59{color:var(--plasma-chip-color);background-color:var(--plasma-chip-background);}.base_1lwlv7t_b13tc97x__334a4e59:hover{color:var(--plasma-chip-color-hover);background-color:var(--plasma-chip-background-hover);scale:var(--plasma-chip-scale-hover);}.base_1lwlv7t_b13tc97x__334a4e59:active{color:var(--plasma-chip-color-active);background-color:var(--plasma-chip-background-active);scale:var(--plasma-chip-scale-active);}
45
45
 
@@ -14,7 +14,7 @@ var TextField_styles = require('./ui/TextField/TextField.styles.js');
14
14
  var SuggestionItem = require('./ui/SuggestionItem/SuggestionItem.js');
15
15
  var getPopoverPlacement = require('../../utils/getPopoverPlacement.js');
16
16
 
17
- var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
17
+ var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "hasPlaceholder", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
18
18
 
19
19
  /**
20
20
  * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.
@@ -27,6 +27,7 @@ var autocompleteRoot = function autocompleteRoot(Root) {
27
27
  view = _ref.view,
28
28
  size = _ref.size,
29
29
  labelPlacement = _ref.labelPlacement,
30
+ hasPlaceholder = _ref.hasPlaceholder,
30
31
  disabled = _ref.disabled,
31
32
  readOnly = _ref.readOnly,
32
33
  label = _ref.label,
@@ -146,6 +147,11 @@ var autocompleteRoot = function autocompleteRoot(Root) {
146
147
  "aria-activedescendant": "".concat(listId, "/").concat(focused),
147
148
  "aria-describedby": helperTextId,
148
149
  hintText: String(hintText || '')
150
+ }, labelPlacement === 'inner' ? {
151
+ labelPlacement: labelPlacement,
152
+ hasPlaceholder: hasPlaceholder
153
+ } : {
154
+ labelPlacement: labelPlacement
149
155
  }, rest)),
150
156
  preventOverflow: false,
151
157
  ref: targetRef,
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.js","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { useDidMountEffect, useOutsideClick } from '../../hooks';\nimport { RootProps } from '../../engines';\nimport { getPlacements } from '../../utils';\n\nimport { focusedReducer } from './reducers/focusedReducer';\nimport { SuggestionItem, StyledTextField } from './ui';\nimport { StyledPopover, Ul, LeftHelper, base, InfiniteLoaderWrapper } from './Autocomplete.styles';\nimport type { AutocompleteProps, SuggestionItemType } from './Autocomplete.types';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\n\n/**\n * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.\n */\nexport const autocompleteRoot = (Root: RootProps<HTMLInputElement, AutocompleteProps>) =>\n forwardRef<HTMLInputElement, AutocompleteProps>(\n (\n {\n value: outerValue,\n onChange,\n suggestions,\n view,\n size,\n labelPlacement,\n disabled,\n readOnly,\n label,\n leftHelper,\n contentLeft,\n contentRight,\n textBefore,\n textAfter,\n onScroll,\n listMaxHeight,\n listWidth,\n portal,\n filter,\n onSuggestionSelect,\n threshold = 2,\n renderList,\n renderListEnd,\n onSearch,\n\n hintText,\n\n ...rest\n },\n ref,\n ) => {\n const [focused, dispatchFocused] = useReducer(focusedReducer, null);\n const [innerValue, setInnerValue] = useState<string | number>('');\n const [isOpen, setIsOpen] = useState(false);\n\n const listId = safeUseId();\n const value = outerValue ?? innerValue;\n\n const helperTextId = safeUseId();\n\n const targetRef = useOutsideClick<HTMLDivElement>(() => {\n setIsOpen(false);\n });\n\n const handleFocus = () => {\n if (value.toString().length >= threshold) {\n setIsOpen(true);\n }\n };\n\n const handleItemClick = (e: SuggestionItemType) => {\n setInnerValue(e.label);\n\n if (onSuggestionSelect) {\n onSuggestionSelect(e);\n }\n\n setIsOpen(false);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const currentValue = e.target.value;\n\n setInnerValue(currentValue);\n\n if (onChange) {\n onChange(e);\n }\n\n if (currentValue.toString().length >= threshold) {\n setIsOpen(true);\n } else {\n setIsOpen(false);\n }\n };\n\n const defaultFilterCallback = ({ label }: { label: string }) => {\n return label.toLowerCase().includes(value.toString().toLowerCase());\n };\n\n const finalResults = suggestions?.filter(filter || defaultFilterCallback) || [];\n\n const { onKeyDown } = useKeyNavigation({\n isOpen,\n setIsOpen,\n focused,\n dispatchFocused,\n finalResults,\n handleItemClick,\n });\n\n useDidMountEffect(() => {\n dispatchFocused({ type: 'reset' });\n }, [value]);\n\n return (\n <Root view={view} size={size} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <StyledPopover\n opened={isOpen}\n offset={[0, 0]}\n placement={getPlacements('bottom')}\n isFocusTrapped={false}\n usePortal={Boolean(portal)}\n frame={portal}\n target={\n <StyledTextField\n value={value}\n onChange={handleChange}\n onSearch={focused === null ? onSearch : undefined}\n ref={ref}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n contentLeft={contentLeft}\n contentRight={contentRight}\n textBefore={textBefore}\n textAfter={textAfter}\n onFocus={handleFocus}\n onKeyDown={onKeyDown}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={listId}\n aria-expanded={isOpen}\n aria-activedescendant={`${listId}/${focused}`}\n aria-describedby={helperTextId}\n hintText={String(hintText || '')}\n {...rest}\n />\n }\n preventOverflow={false}\n ref={targetRef}\n listWidth={listWidth}\n >\n {(renderList && renderList(finalResults)) ||\n (Boolean(finalResults.length) && (\n <Root\n view={view}\n size={size}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n id={listId}\n role=\"listbox\"\n aria-label={label}\n onScroll={onScroll}\n listMaxHeight={listMaxHeight}\n >\n {finalResults.map((suggestion, index) => (\n <SuggestionItem\n key={index}\n item={suggestion}\n onClick={handleItemClick}\n id={`${listId}/${index}`}\n focused={focused === index}\n />\n ))}\n\n {renderListEnd && (\n <InfiniteLoaderWrapper>{renderListEnd()}</InfiniteLoaderWrapper>\n )}\n </Ul>\n </Root>\n ))}\n </StyledPopover>\n\n {/* TODO: Дублируем хелпер для корректного позиционирования списка подсказок */}\n {leftHelper && (\n <LeftHelper id={helperTextId} disabled={disabled} readOnly={readOnly}>\n {leftHelper}\n </LeftHelper>\n )}\n </Root>\n );\n },\n );\n\nexport const autocompleteConfig = {\n name: 'Autocomplete',\n tag: 'div',\n layout: autocompleteRoot,\n base,\n defaults: {\n view: 'default',\n size: 'l',\n labelPlacement: 'outer',\n },\n variations: {\n view: {\n css: '',\n },\n },\n};\n"],"names":["autocompleteRoot","Root","forwardRef","_ref","ref","outerValue","value","onChange","suggestions","view","size","labelPlacement","disabled","readOnly","label","leftHelper","contentLeft","contentRight","textBefore","textAfter","onScroll","listMaxHeight","listWidth","portal","filter","onSuggestionSelect","_ref$threshold","threshold","renderList","renderListEnd","onSearch","hintText","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","focusedReducer","_useReducer2","_slicedToArray","focused","dispatchFocused","_useState","useState","_useState2","innerValue","setInnerValue","_useState3","_useState4","isOpen","setIsOpen","listId","safeUseId","helperTextId","targetRef","useOutsideClick","handleFocus","toString","length","handleItemClick","e","handleChange","currentValue","target","defaultFilterCallback","_ref2","toLowerCase","includes","finalResults","_useKeyNavigation","useKeyNavigation","onKeyDown","useDidMountEffect","type","React","createElement","StyledPopover","opened","offset","placement","getPlacements","isFocusTrapped","usePortal","Boolean","frame","StyledTextField","_extends","undefined","onFocus","role","concat","String","preventOverflow","Ul","id","map","suggestion","index","SuggestionItem","key","item","onClick","InfiniteLoaderWrapper","LeftHelper","autocompleteConfig","name","tag","layout","base","defaults","variations","css"],"mappings":";;;;;;;;;;;;;;;;;;AAaA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAoD,EAAA;AAAA,EAAA,oBACjFC,gBAAU,CACN,UAAAC,IAAA,EA+BIC,GAAG,EACF;AAAA,IAAA,IA9BUC,UAAU,GAAAF,IAAA,CAAjBG,KAAK;MACLC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,WAAW,GAAAL,IAAA,CAAXK,WAAW;MACXC,IAAI,GAAAN,IAAA,CAAJM,IAAI;MACJC,IAAI,GAAAP,IAAA,CA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AAAA,MAAA,oBAChCvB,KAAA,CAAAC,aAAA,CAACuB,6BAAc,EAAA;AACXC,QAAAA,GAAG,EAAEF,KAAM;AACXG,QAAAA,IAAI,EAAEJ,UAAW;AACjBK,QAAAA,OAAO,EAAE1C,eAAgB;QACzBmC,EAAE,EAAA,EAAA,CAAAJ,MAAA,CAAKvC,MAAM,OAAAuC,MAAA,CAAIO,KAAK,CAAG;QACzBzD,OAAO,EAAEA,OAAO,KAAKyD,KAAAA;AAAM,OAC9B,CAAC,CAAA;KACL,CAAC,EAEDpE,aAAa,iBACV6C,KAAA,CAAAC,aAAA,CAAC2B,yCAAqB,EAAA,IAAA,EAAEzE,aAAa,EAA0B,CAEnE,CACF,CAEH,CAAC,EAGfd,UAAU,iBACP2D,KAAA,CAAAC,aAAA,CAAC4B,8BAAU,EAAA;AAACT,MAAAA,EAAE,EAAEzC,YAAa;AAACzC,MAAAA,QAAQ,EAAEA,QAAS;AAACC,MAAAA,QAAQ,EAAEA,QAAAA;KACvDE,EAAAA,UACO,CAEd,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyF,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE3G,gBAAgB;AACxB4G,EAAAA,IAAI,EAAJA,wBAAI;AACJC,EAAAA,QAAQ,EAAE;AACNpG,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,cAAc,EAAE,OAAA;GACnB;AACDmG,EAAAA,UAAU,EAAE;AACRrG,IAAAA,IAAI,EAAE;AACFsG,MAAAA,GAAG,EAAE,EAAA;AACT,KAAA;AACJ,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"Autocomplete.js","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { useDidMountEffect, useOutsideClick } from '../../hooks';\nimport { RootProps } from '../../engines';\nimport { getPlacements } from '../../utils';\n\nimport { focusedReducer } from './reducers/focusedReducer';\nimport { SuggestionItem, StyledTextField } from './ui';\nimport { StyledPopover, Ul, LeftHelper, base, InfiniteLoaderWrapper } from './Autocomplete.styles';\nimport type { AutocompleteProps, SuggestionItemType } from './Autocomplete.types';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\n\n/**\n * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.\n */\nexport const autocompleteRoot = (Root: RootProps<HTMLInputElement, AutocompleteProps>) =>\n forwardRef<HTMLInputElement, AutocompleteProps>(\n (\n {\n value: outerValue,\n onChange,\n suggestions,\n view,\n size,\n labelPlacement,\n hasPlaceholder,\n disabled,\n readOnly,\n label,\n leftHelper,\n contentLeft,\n contentRight,\n textBefore,\n textAfter,\n onScroll,\n listMaxHeight,\n listWidth,\n portal,\n filter,\n onSuggestionSelect,\n threshold = 2,\n renderList,\n renderListEnd,\n onSearch,\n\n hintText,\n\n ...rest\n },\n ref,\n ) => {\n const [focused, dispatchFocused] = useReducer(focusedReducer, null);\n const [innerValue, setInnerValue] = useState<string | number>('');\n const [isOpen, setIsOpen] = useState(false);\n\n const listId = safeUseId();\n const value = outerValue ?? innerValue;\n\n const helperTextId = safeUseId();\n\n const targetRef = useOutsideClick<HTMLDivElement>(() => {\n setIsOpen(false);\n });\n\n const handleFocus = () => {\n if (value.toString().length >= threshold) {\n setIsOpen(true);\n }\n };\n\n const handleItemClick = (e: SuggestionItemType) => {\n setInnerValue(e.label);\n\n if (onSuggestionSelect) {\n onSuggestionSelect(e);\n }\n\n setIsOpen(false);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const currentValue = e.target.value;\n\n setInnerValue(currentValue);\n\n if (onChange) {\n onChange(e);\n }\n\n if (currentValue.toString().length >= threshold) {\n setIsOpen(true);\n } else {\n setIsOpen(false);\n }\n };\n\n const defaultFilterCallback = ({ label }: { label: string }) => {\n return label.toLowerCase().includes(value.toString().toLowerCase());\n };\n\n const finalResults = suggestions?.filter(filter || defaultFilterCallback) || [];\n\n const { onKeyDown } = useKeyNavigation({\n isOpen,\n setIsOpen,\n focused,\n dispatchFocused,\n finalResults,\n handleItemClick,\n });\n\n useDidMountEffect(() => {\n dispatchFocused({ type: 'reset' });\n }, [value]);\n\n return (\n <Root view={view} size={size} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <StyledPopover\n opened={isOpen}\n offset={[0, 0]}\n placement={getPlacements('bottom')}\n isFocusTrapped={false}\n usePortal={Boolean(portal)}\n frame={portal}\n target={\n <StyledTextField\n value={value}\n onChange={handleChange}\n onSearch={focused === null ? onSearch : undefined}\n ref={ref}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n contentLeft={contentLeft}\n contentRight={contentRight}\n textBefore={textBefore}\n textAfter={textAfter}\n onFocus={handleFocus}\n onKeyDown={onKeyDown}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={listId}\n aria-expanded={isOpen}\n aria-activedescendant={`${listId}/${focused}`}\n aria-describedby={helperTextId}\n hintText={String(hintText || '')}\n {...(labelPlacement === 'inner'\n ? {\n labelPlacement,\n hasPlaceholder,\n }\n : { labelPlacement })}\n {...rest}\n />\n }\n preventOverflow={false}\n ref={targetRef}\n listWidth={listWidth}\n >\n {(renderList && renderList(finalResults)) ||\n (Boolean(finalResults.length) && (\n <Root\n view={view}\n size={size}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n id={listId}\n role=\"listbox\"\n aria-label={label}\n onScroll={onScroll}\n listMaxHeight={listMaxHeight}\n >\n {finalResults.map((suggestion, index) => (\n <SuggestionItem\n key={index}\n item={suggestion}\n onClick={handleItemClick}\n id={`${listId}/${index}`}\n focused={focused === index}\n />\n ))}\n\n {renderListEnd && (\n <InfiniteLoaderWrapper>{renderListEnd()}</InfiniteLoaderWrapper>\n )}\n </Ul>\n </Root>\n ))}\n </StyledPopover>\n\n {/* TODO: Дублируем хелпер для корректного позиционирования списка подсказок */}\n {leftHelper && (\n <LeftHelper id={helperTextId} disabled={disabled} readOnly={readOnly}>\n {leftHelper}\n </LeftHelper>\n )}\n </Root>\n );\n },\n );\n\nexport const autocompleteConfig = {\n name: 'Autocomplete',\n tag: 'div',\n layout: autocompleteRoot,\n base,\n defaults: {\n view: 'default',\n size: 'l',\n labelPlacement: 'outer',\n },\n variations: {\n view: {\n css: '',\n },\n },\n};\n"],"names":["autocompleteRoot","Root","forwardRef","_ref","ref","outerValue","value","onChange","suggestions","view","size","labelPlacement","hasPlaceholder","disabled","readOnly","label","leftHelper","contentLeft","contentRight","textBefore","textAfter","onScroll","listMaxHeight","listWidth","portal","filter","onSuggestionSelect","_ref$threshold","threshold","renderList","renderListEnd","onSearch","hintText","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","focusedReducer","_useReducer2","_slicedToArray","focused","dispatchFocused","_useState","useState","_useState2","innerValue","setInnerValue","_useState3","_useState4","isOpen","setIsOpen","listId","safeUseId","helperTextId","targetRef","useOutsideClick","handleFocus","toString","length","handleItemClick","e","handleChange","currentValue","target","defaultFilterCallback","_ref2","toLowerCase","includes","finalResults","_useKeyNavigation","useKeyNavigation","onKeyDown","useDidMountEffect","type","React","createElement","StyledPopover","opened","offset","placement","getPlacements","isFocusTrapped","usePortal","Boolean","frame","StyledTextField","_extends","undefined","onFocus","role","concat","String","preventOverflow","Ul","id","map","suggestion","index","SuggestionItem","key","item","onClick","InfiniteLoaderWrapper","LeftHelper","autocompleteConfig","name","tag","layout","base","defaults","variations","css"],"mappings":";;;;;;;;;;;;;;;;;;AAaA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAoD,EAAA;AAAA,EAAA,oBACjFC,gBAAU,CACN,UAAAC,IAAA,EAgCIC,GAAG,EACF;AAAA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