@salutejs/plasma-new-hope 0.70.0-canary.1160.8541256541.0 → 0.70.0-canary.1161.8546427267.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (421) hide show
  1. package/cjs/components/Combobox/Combobox.css +4 -4
  2. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  3. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  4. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  5. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  6. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  7. package/cjs/components/Dropdown/Dropdown.css +4 -4
  8. package/cjs/components/Dropdown/Dropdown.js +0 -1
  9. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  10. package/cjs/components/Pagination/Pagination.css +4 -4
  11. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  12. package/cjs/components/Popover/Popover.css +4 -4
  13. package/cjs/components/Popover/Popover.js +7 -18
  14. package/cjs/components/Popover/Popover.js.map +1 -1
  15. package/cjs/components/Popover/Popover.styles.js +1 -1
  16. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  17. package/cjs/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  18. package/cjs/components/Select/Select.css +4 -4
  19. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  20. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
  21. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  22. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
  23. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  24. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  25. package/cjs/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
  26. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  27. package/cjs/components/{TextField/variations/_read-only → Select/ui/SelectDivider/variations/_view}/base.js +2 -2
  28. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  29. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  30. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
  31. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  32. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
  33. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  34. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  35. package/cjs/components/{TextField → Select/ui/SelectFooter}/variations/_size/base.js +2 -2
  36. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  37. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  38. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
  39. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  40. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  41. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  42. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
  43. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  44. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
  45. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  46. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  47. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
  48. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  49. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  50. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
  51. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  52. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  53. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  54. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
  55. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  56. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
  57. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  58. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  59. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
  60. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  61. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  62. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
  63. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  64. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  65. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  66. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  67. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  68. package/cjs/components/TextField/TextField.js +29 -155
  69. package/cjs/components/TextField/TextField.js.map +1 -1
  70. package/cjs/components/TextField/TextField.styles.js +11 -27
  71. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  72. package/cjs/components/TextField/TextField.styles_2qw1n8.css +5 -0
  73. package/cjs/components/TextField/TextField.tokens.js +20 -68
  74. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  75. package/cjs/components/TextField/TextField_1lzb2r1.css +1 -0
  76. package/cjs/components/TextField/{variations/_disabled → _disabled}/base.js +2 -2
  77. package/cjs/components/TextField/_disabled/base.js.map +1 -0
  78. package/cjs/components/TextField/_disabled/base_so3w81.css +1 -0
  79. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
  80. package/cjs/components/TextField/_label-placement/base.js.map +1 -0
  81. package/cjs/components/TextField/_label-placement/base_x642ct.css +1 -0
  82. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/inner.js +2 -2
  83. package/cjs/components/TextField/_label-placement/inner.js.map +1 -0
  84. package/cjs/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
  85. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +2 -2
  86. package/cjs/components/TextField/_label-placement/outer.js.map +1 -0
  87. package/cjs/components/TextField/_label-placement/outer_19ekaek.css +1 -0
  88. package/cjs/components/TextField/_size/base.js +9 -0
  89. package/cjs/components/TextField/_size/base.js.map +1 -0
  90. package/cjs/components/TextField/_size/base_b5smyu.css +1 -0
  91. package/cjs/components/TextField/_view/base.js +9 -0
  92. package/cjs/components/TextField/_view/base.js.map +1 -0
  93. package/cjs/components/TextField/_view/base_5bqzed.css +1 -0
  94. package/cjs/index.css +37 -44
  95. package/cjs/index.js +41 -6
  96. package/cjs/index.js.map +1 -1
  97. package/cjs/utils/index.js +13 -1
  98. package/cjs/utils/index.js.map +1 -1
  99. package/cjs/utils/react.js +12 -2
  100. package/cjs/utils/react.js.map +1 -1
  101. package/es/components/Combobox/Combobox.css +4 -4
  102. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  103. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  104. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  105. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  106. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  107. package/es/components/Dropdown/Dropdown.css +4 -4
  108. package/es/components/Dropdown/Dropdown.js +0 -1
  109. package/es/components/Dropdown/Dropdown.js.map +1 -1
  110. package/es/components/Pagination/Pagination.css +4 -4
  111. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  112. package/es/components/Popover/Popover.css +4 -4
  113. package/es/components/Popover/Popover.js +7 -18
  114. package/es/components/Popover/Popover.js.map +1 -1
  115. package/es/components/Popover/Popover.styles.js +1 -1
  116. package/es/components/Popover/Popover.styles.js.map +1 -1
  117. package/es/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  118. package/es/components/Select/Select.css +4 -4
  119. package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  120. package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
  121. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  122. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
  123. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  124. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  125. package/es/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
  126. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  127. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  128. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
  129. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  130. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  131. package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  132. package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
  133. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  134. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
  135. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  136. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  137. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
  138. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  139. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  140. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
  141. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  142. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  143. package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  144. package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
  145. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  146. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
  147. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  148. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  149. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
  150. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  151. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  152. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
  153. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  154. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  155. package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  156. package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
  157. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  158. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
  159. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  160. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  161. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
  162. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  163. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  164. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
  165. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  166. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  167. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  168. package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  169. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  170. package/es/components/TextField/TextField.js +33 -158
  171. package/es/components/TextField/TextField.js.map +1 -1
  172. package/es/components/TextField/TextField.styles.js +12 -25
  173. package/es/components/TextField/TextField.styles.js.map +1 -1
  174. package/es/components/TextField/TextField.styles_2qw1n8.css +5 -0
  175. package/es/components/TextField/TextField.tokens.js +21 -68
  176. package/es/components/TextField/TextField.tokens.js.map +1 -1
  177. package/es/components/TextField/TextField_1lzb2r1.css +1 -0
  178. package/es/components/TextField/_disabled/base.js +5 -0
  179. package/es/components/TextField/_disabled/base.js.map +1 -0
  180. package/es/components/TextField/_disabled/base_so3w81.css +1 -0
  181. package/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
  182. package/es/components/TextField/_label-placement/base.js.map +1 -0
  183. package/es/components/TextField/_label-placement/base_x642ct.css +1 -0
  184. package/es/components/TextField/_label-placement/inner.js +5 -0
  185. package/es/components/TextField/_label-placement/inner.js.map +1 -0
  186. package/es/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
  187. package/es/components/TextField/_label-placement/outer.js +5 -0
  188. package/es/components/TextField/_label-placement/outer.js.map +1 -0
  189. package/es/components/TextField/_label-placement/outer_19ekaek.css +1 -0
  190. package/es/components/TextField/_size/base.js +5 -0
  191. package/es/components/TextField/_size/base.js.map +1 -0
  192. package/es/components/TextField/_size/base_b5smyu.css +1 -0
  193. package/es/components/TextField/_view/base.js +5 -0
  194. package/es/components/TextField/_view/base.js.map +1 -0
  195. package/es/components/TextField/_view/base_5bqzed.css +1 -0
  196. package/es/index.css +37 -44
  197. package/es/index.js +15 -2
  198. package/es/index.js.map +1 -1
  199. package/es/utils/index.js +11 -2
  200. package/es/utils/index.js.map +1 -1
  201. package/es/utils/react.js +9 -2
  202. package/es/utils/react.js.map +1 -1
  203. package/package.json +2 -2
  204. package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
  205. package/styled-components/cjs/components/Popover/Popover.js +7 -18
  206. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  207. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  208. package/styled-components/cjs/components/TextField/TextField.js +32 -162
  209. package/styled-components/cjs/components/TextField/TextField.styles.js +10 -18
  210. package/styled-components/cjs/components/TextField/TextField.tokens.js +21 -68
  211. package/styled-components/cjs/components/TextField/_disabled/base.js +9 -0
  212. package/styled-components/cjs/components/TextField/_label-placement/inner.js +10 -0
  213. package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +3 -3
  214. package/styled-components/cjs/components/TextField/_size/base.js +10 -0
  215. package/styled-components/cjs/components/TextField/_view/base.js +10 -0
  216. package/styled-components/cjs/components/TextField/index.js +2 -2
  217. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  218. package/styled-components/cjs/index.js +22 -0
  219. package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
  220. package/styled-components/es/components/Popover/Popover.js +7 -18
  221. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  222. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  223. package/styled-components/es/components/TextField/TextField.js +36 -166
  224. package/styled-components/es/components/TextField/TextField.styles.js +9 -17
  225. package/styled-components/es/components/TextField/TextField.tokens.js +20 -67
  226. package/styled-components/es/components/TextField/_disabled/base.js +3 -0
  227. package/styled-components/es/components/TextField/_label-placement/inner.js +4 -0
  228. package/styled-components/es/components/TextField/_label-placement/outer.js +4 -0
  229. package/styled-components/es/components/TextField/_size/base.js +4 -0
  230. package/styled-components/es/components/TextField/_view/base.js +4 -0
  231. package/styled-components/es/components/TextField/index.js +2 -2
  232. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  233. package/styled-components/es/index.js +2 -0
  234. package/types/components/Combobox/Combobox.styles.d.ts +2 -8
  235. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  236. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  237. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
  238. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  239. package/types/components/Popover/Popover.d.ts +2 -2
  240. package/types/components/Popover/Popover.d.ts.map +1 -1
  241. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  242. package/types/components/Popover/Popover.types.d.ts +12 -19
  243. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  244. package/types/components/Select/Select.styles.d.ts +2 -8
  245. package/types/components/Select/Select.styles.d.ts.map +1 -1
  246. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  247. package/types/components/TextField/TextField.d.ts +3 -8
  248. package/types/components/TextField/TextField.d.ts.map +1 -1
  249. package/types/components/TextField/TextField.styles.d.ts +3 -6
  250. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  251. package/types/components/TextField/TextField.tokens.d.ts +8 -57
  252. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  253. package/types/components/TextField/TextField.types.d.ts +2 -29
  254. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  255. package/types/components/TextField/_disabled/base.d.ts.map +1 -0
  256. package/types/components/TextField/_label-placement/base.d.ts.map +1 -0
  257. package/types/components/TextField/_label-placement/index.d.ts.map +1 -0
  258. package/types/components/TextField/_label-placement/inner.d.ts.map +1 -0
  259. package/types/components/TextField/_label-placement/outer.d.ts.map +1 -0
  260. package/types/components/TextField/_size/base.d.ts.map +1 -0
  261. package/types/components/TextField/_view/base.d.ts.map +1 -0
  262. package/types/components/TextField/index.d.ts +2 -3
  263. package/types/components/TextField/index.d.ts.map +1 -1
  264. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
  265. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  266. package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
  267. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  268. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
  269. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  270. package/types/index.d.ts +2 -0
  271. package/types/index.d.ts.map +1 -1
  272. package/cjs/components/TextField/TextField.styles_1b1mddp.css +0 -8
  273. package/cjs/components/TextField/TextField_wctd2m.css +0 -1
  274. package/cjs/components/TextField/hooks/useKeyNavigation.js +0 -133
  275. package/cjs/components/TextField/hooks/useKeyNavigation.js.map +0 -1
  276. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
  277. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -38
  278. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
  279. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -26
  280. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
  281. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1rauupp.css +0 -1
  282. package/cjs/components/TextField/variations/_disabled/base.js.map +0 -1
  283. package/cjs/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  284. package/cjs/components/TextField/variations/_label-placement/base.js.map +0 -1
  285. package/cjs/components/TextField/variations/_label-placement/inner.js.map +0 -1
  286. package/cjs/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
  287. package/cjs/components/TextField/variations/_label-placement/outer.js.map +0 -1
  288. package/cjs/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
  289. package/cjs/components/TextField/variations/_read-only/base.js.map +0 -1
  290. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  291. package/cjs/components/TextField/variations/_size/base.js.map +0 -1
  292. package/cjs/components/TextField/variations/_size/base_1khzr9t.css +0 -1
  293. package/cjs/components/TextField/variations/_view/base.js.map +0 -1
  294. package/cjs/components/TextField/variations/_view/base_1qd77x6.css +0 -1
  295. package/es/components/TextField/TextField.styles_1b1mddp.css +0 -8
  296. package/es/components/TextField/TextField_wctd2m.css +0 -1
  297. package/es/components/TextField/hooks/useKeyNavigation.js +0 -128
  298. package/es/components/TextField/hooks/useKeyNavigation.js.map +0 -1
  299. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
  300. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -34
  301. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
  302. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -22
  303. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
  304. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1rauupp.css +0 -1
  305. package/es/components/TextField/variations/_disabled/base.js +0 -5
  306. package/es/components/TextField/variations/_disabled/base.js.map +0 -1
  307. package/es/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  308. package/es/components/TextField/variations/_label-placement/base.js.map +0 -1
  309. package/es/components/TextField/variations/_label-placement/inner.js +0 -5
  310. package/es/components/TextField/variations/_label-placement/inner.js.map +0 -1
  311. package/es/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
  312. package/es/components/TextField/variations/_label-placement/outer.js +0 -5
  313. package/es/components/TextField/variations/_label-placement/outer.js.map +0 -1
  314. package/es/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
  315. package/es/components/TextField/variations/_read-only/base.js +0 -5
  316. package/es/components/TextField/variations/_read-only/base.js.map +0 -1
  317. package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  318. package/es/components/TextField/variations/_size/base.js +0 -5
  319. package/es/components/TextField/variations/_size/base.js.map +0 -1
  320. package/es/components/TextField/variations/_size/base_1khzr9t.css +0 -1
  321. package/es/components/TextField/variations/_view/base.js.map +0 -1
  322. package/es/components/TextField/variations/_view/base_1qd77x6.css +0 -1
  323. package/styled-components/cjs/components/TextField/hooks/index.js +0 -12
  324. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.js +0 -139
  325. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.types.js +0 -5
  326. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -39
  327. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -25
  328. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -5
  329. package/styled-components/cjs/components/TextField/ui/index.js +0 -12
  330. package/styled-components/cjs/components/TextField/variations/_disabled/base.js +0 -10
  331. package/styled-components/cjs/components/TextField/variations/_label-placement/inner.js +0 -10
  332. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +0 -10
  333. package/styled-components/cjs/components/TextField/variations/_read-only/tokens.json +0 -1
  334. package/styled-components/cjs/components/TextField/variations/_size/base.js +0 -10
  335. package/styled-components/cjs/components/TextField/variations/_view/base.js +0 -10
  336. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +0 -43
  337. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.js +0 -11
  338. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -123
  339. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +0 -40
  340. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.js +0 -11
  341. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -123
  342. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.config.js +0 -43
  343. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.js +0 -11
  344. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -123
  345. package/styled-components/es/components/TextField/hooks/index.js +0 -1
  346. package/styled-components/es/components/TextField/hooks/useKeyNavigation.js +0 -133
  347. package/styled-components/es/components/TextField/hooks/useKeyNavigation.types.js +0 -1
  348. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -30
  349. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -19
  350. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -1
  351. package/styled-components/es/components/TextField/ui/index.js +0 -1
  352. package/styled-components/es/components/TextField/variations/_disabled/base.js +0 -4
  353. package/styled-components/es/components/TextField/variations/_label-placement/inner.js +0 -4
  354. package/styled-components/es/components/TextField/variations/_label-placement/outer.js +0 -4
  355. package/styled-components/es/components/TextField/variations/_read-only/base.js +0 -4
  356. package/styled-components/es/components/TextField/variations/_read-only/tokens.json +0 -1
  357. package/styled-components/es/components/TextField/variations/_size/base.js +0 -4
  358. package/styled-components/es/components/TextField/variations/_view/base.js +0 -4
  359. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +0 -37
  360. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.js +0 -5
  361. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -123
  362. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +0 -34
  363. package/styled-components/es/examples/plasma_web/components/TextField/TextField.js +0 -5
  364. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -123
  365. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.config.js +0 -37
  366. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.js +0 -5
  367. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -123
  368. package/types/components/TextField/hooks/index.d.ts +0 -2
  369. package/types/components/TextField/hooks/index.d.ts.map +0 -1
  370. package/types/components/TextField/hooks/useKeyNavigation.d.ts +0 -17
  371. package/types/components/TextField/hooks/useKeyNavigation.d.ts.map +0 -1
  372. package/types/components/TextField/hooks/useKeyNavigation.types.d.ts +0 -18
  373. package/types/components/TextField/hooks/useKeyNavigation.types.d.ts.map +0 -1
  374. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +0 -7
  375. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +0 -1
  376. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -15
  377. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +0 -1
  378. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +0 -37
  379. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +0 -1
  380. package/types/components/TextField/ui/index.d.ts +0 -2
  381. package/types/components/TextField/ui/index.d.ts.map +0 -1
  382. package/types/components/TextField/variations/_disabled/base.d.ts.map +0 -1
  383. package/types/components/TextField/variations/_label-placement/base.d.ts.map +0 -1
  384. package/types/components/TextField/variations/_label-placement/index.d.ts.map +0 -1
  385. package/types/components/TextField/variations/_label-placement/inner.d.ts.map +0 -1
  386. package/types/components/TextField/variations/_label-placement/outer.d.ts.map +0 -1
  387. package/types/components/TextField/variations/_read-only/base.d.ts.map +0 -1
  388. package/types/components/TextField/variations/_size/base.d.ts.map +0 -1
  389. package/types/components/TextField/variations/_view/base.d.ts +0 -2
  390. package/types/components/TextField/variations/_view/base.d.ts.map +0 -1
  391. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +0 -32
  392. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +0 -1
  393. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -26
  394. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +0 -1
  395. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +0 -32
  396. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +0 -1
  397. package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -26
  398. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +0 -1
  399. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts +0 -32
  400. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts.map +0 -1
  401. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +0 -26
  402. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +0 -1
  403. /package/cjs/components/{TextField/variations/_label-placement → Select/ui/SelectDivider/variations/_size}/base_x642ct.css +0 -0
  404. /package/{es/components/TextField/variations/_label-placement → cjs/components/Select/ui/SelectDivider/variations/_view}/base_x642ct.css +0 -0
  405. /package/styled-components/cjs/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
  406. /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
  407. /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
  408. /package/styled-components/cjs/components/TextField/{variations/_size → _size}/tokens.json +0 -0
  409. /package/styled-components/cjs/components/TextField/{variations/_view → _view}/tokens.json +0 -0
  410. /package/styled-components/es/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
  411. /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
  412. /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
  413. /package/styled-components/es/components/TextField/{variations/_size → _size}/tokens.json +0 -0
  414. /package/styled-components/es/components/TextField/{variations/_view → _view}/tokens.json +0 -0
  415. /package/types/components/TextField/{variations/_disabled → _disabled}/base.d.ts +0 -0
  416. /package/types/components/TextField/{variations/_label-placement → _label-placement}/base.d.ts +0 -0
  417. /package/types/components/TextField/{variations/_label-placement → _label-placement}/index.d.ts +0 -0
  418. /package/types/components/TextField/{variations/_label-placement → _label-placement}/inner.d.ts +0 -0
  419. /package/types/components/TextField/{variations/_label-placement → _label-placement}/outer.d.ts +0 -0
  420. /package/types/components/TextField/{variations/_read-only → _size}/base.d.ts +0 -0
  421. /package/types/components/TextField/{variations/_size → _view}/base.d.ts +0 -0
@@ -1,7 +1,7 @@
1
-
2
- .Popover_styles_1rk9t6z_s12xwbyh__96f55a53{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
- .Popover_styles_1rk9t6z_s1pd4d8a__96f55a53{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1rk9t6z_s1pd4d8a__96f55a53::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
- .Popover_styles_1rk9t6z_s16xlixz__96f55a53{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
1
+ .Popover_styles_1ggb66y_s1g1xbt5__6eaffcc0{display:inline-block;}
2
+ .Popover_styles_1ggb66y_s12xwbyh__6eaffcc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
+ .Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
+ .Popover_styles_1ggb66y_s16xlixz__6eaffcc0{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
5
5
 
6
6
  .Dropdown_styles_1daxhqh_sn7uamp__488e0a19 .Dropdown_styles_1daxhqh_popoverTarget__488e0a19{display:block;}
7
7
  .Dropdown_styles_1daxhqh_sjr7fmv__488e0a19{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--plasma-dropdown-width);height:var(--plasma-dropdown-height);padding:var(--plasma-dropdown-padding-top) var(--plasma-dropdown-padding-right) var(--plasma-dropdown-padding-bottom) var(--plasma-dropdown-padding-left);}
@@ -104,7 +104,8 @@ var SelectTarget = /*#__PURE__*/forwardRef(function (_ref, ref) {
104
104
  "aria-label": label,
105
105
  className: cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
106
106
  onWheel: onWheel,
107
- onKeyDown: onKeyDown
107
+ onKeyDown: onKeyDown,
108
+ stretching: "filled"
108
109
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(StyledText, {
109
110
  className: selectTargeText
110
111
  }, textContent) : /*#__PURE__*/React.createElement(StyledChipsWrapper, {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectTarget.js","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef } from 'react';\n\nimport { classes } from '../../Select.tokens';\nimport { cx } from '../../../../utils';\nimport { SelectChip } from '../SelectChip/SelectChip';\nimport type { SelectPrimitiveValue } from '../../Select.types';\nimport { Keys } from '../../hooks/useKeyNavigation';\n\nimport {\n StyledArrow,\n StyledChips,\n StyledChipsWrapper,\n StyledLabel,\n StyledSelectTarget,\n StyledText,\n} from './SelectTarget.styles';\nimport type { SelectTargetProps } from './SelectTarget.types';\n\nconst {\n hasNoFocus,\n hasChips,\n innerLabelUp,\n arrowInverse,\n selectTarget,\n selectTargetArrow,\n selectTargeText,\n selectTargetLabel,\n} = classes;\n\n/**\n * Элемент для выпадающего списка\n */\nexport const SelectTarget = forwardRef<HTMLButtonElement, SelectTargetProps>(\n (\n {\n values,\n target = 'textField-like',\n label,\n opened,\n readOnly,\n disabled,\n enumerationType,\n size,\n id,\n chipsRefs,\n onChange,\n onKeyDown,\n ...rest\n },\n ref,\n ) => {\n const hasText = Boolean(values?.some(([value]) => value));\n\n const hasLabel = label && size !== 'xs' && target === 'textField-like';\n const textContent = values?.map(([, text]) => text).join(', ');\n const contentRef = useRef<HTMLDivElement>(null);\n\n const withArrowInverse = opened ? arrowInverse : undefined;\n const withInnerLabelUp = hasLabel && hasText ? innerLabelUp : undefined;\n const withHasChips =\n hasText && enumerationType === 'chip' && target === 'textField-like' ? hasChips : undefined;\n\n const withNoFocus = target === 'textField-like' ? hasNoFocus : undefined;\n\n const isLabelVisible = !hasText || (hasLabel && enumerationType === 'comma');\n\n const onChipClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation();\n }, []);\n\n const onChipClear = useCallback(\n (value: SelectPrimitiveValue, text: SelectPrimitiveValue, index: number) => {\n const newValue = values\n ?.filter(([itemValue, itemText]) => !(itemValue === value && itemText === text))\n .map(([itemValue]) => itemValue);\n\n chipsRefs?.current.splice(index, 1);\n onChange?.(newValue);\n },\n [values, onChange],\n );\n\n const onChipKeyDown = useCallback(\n (\n value: SelectPrimitiveValue,\n text: SelectPrimitiveValue,\n index: number,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => {\n const { code, shiftKey } = event;\n\n if (code === Keys.Tab || (code === Keys.Tab && shiftKey)) {\n event.preventDefault();\n }\n\n if (code === Keys.Backspace) {\n onChipClear(value, text, index);\n }\n },\n [onChipClear],\n );\n\n const onWheel = useCallback((event: React.WheelEvent<HTMLButtonElement>) => {\n const { deltaY } = event;\n\n if (contentRef.current) {\n contentRef.current.scrollLeft += Math.round(deltaY);\n }\n }, []);\n\n const getRef = useCallback((element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs && chipsRefs.current) {\n chipsRefs.current[index] = element;\n }\n }, []);\n\n // INFO: Нужно очищать на каждый ререндер компонента для актуализации состояния рефов\n if (chipsRefs) {\n chipsRefs.current = [];\n }\n\n return (\n <StyledSelectTarget\n {...rest}\n ref={ref}\n opened={opened}\n target={target}\n readOnly={readOnly}\n disabled={disabled}\n title={textContent}\n aria-label={label}\n className={cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget)}\n onWheel={onWheel}\n onKeyDown={onKeyDown}\n >\n {hasText &&\n (enumerationType === 'comma' || target === 'button-like' ? (\n <StyledText className={selectTargeText}>{textContent}</StyledText>\n ) : (\n <StyledChipsWrapper ref={contentRef}>\n <StyledChips>\n {values?.map(([value, text], index) => (\n <SelectChip\n index={index}\n ref={(element) => getRef(element, index)}\n key={`${value}_${text}`}\n disabled={disabled}\n readOnly={readOnly}\n value={value}\n text={text}\n onClear={(v, t) => onChipClear(v, t, index)}\n onClick={onChipClick}\n onKeyDown={onChipKeyDown}\n />\n ))}\n </StyledChips>\n </StyledChipsWrapper>\n ))}\n {isLabelVisible && (\n <StyledLabel className={selectTargetLabel} htmlFor={id}>\n {label}\n </StyledLabel>\n )}\n <StyledArrow size=\"s\" color=\"inherit\" className={cx(selectTargetArrow, withArrowInverse)} />\n </StyledSelectTarget>\n );\n },\n);\n"],"names":["hasNoFocus","classes","hasChips","innerLabelUp","arrowInverse","selectTarget","selectTargetArrow","selectTargeText","selectTargetLabel","SelectTarget","forwardRef","_ref","ref","values","_ref$target","target","label","opened","readOnly","disabled","enumerationType","size","id","chipsRefs","onChange","onKeyDown","rest","_objectWithoutProperties","_excluded","hasText","Boolean","some","_ref2","_ref3","_slicedToArray","value","hasLabel","textContent","map","_ref4","_ref5","text","join","contentRef","useRef","withArrowInverse","undefined","withInnerLabelUp","withHasChips","withNoFocus","isLabelVisible","onChipClick","useCallback","event","stopPropagation","onChipClear","index","newValue","filter","_ref6","_ref7","itemValue","itemText","_ref8","_ref9","current","splice","onChipKeyDown","code","shiftKey","Keys","Tab","preventDefault","Backspace","onWheel","deltaY","scrollLeft","Math","round","getRef","element","React","createElement","StyledSelectTarget","_extends","title","className","cx","StyledText","StyledChipsWrapper","StyledChips","_ref10","_ref11","SelectChip","key","concat","onClear","v","t","onClick","StyledLabel","htmlFor","StyledArrow","color"],"mappings":";;;;;;;;;AAkBA,IACIA,UAAU,GAQVC,OAAO,CARPD,UAAU;EACVE,QAAQ,GAORD,OAAO,CAPPC,QAAQ;EACRC,YAAY,GAMZF,OAAO,CANPE,YAAY;EACZC,YAAY,GAKZH,OAAO,CALPG,YAAY;EACZC,YAAY,GAIZJ,OAAO,CAJPI,YAAY;EACZC,iBAAiB,GAGjBL,OAAO,CAHPK,iBAAiB;EACjBC,eAAe,GAEfN,OAAO,CAFPM,eAAe;EACfC,iBAAiB,GACjBP,OAAO,CADPO,iBAAiB,CAAA;;AAGrB;AACA;AACA;AACO,IAAMC,YAAY,gBAAGC,UAAU,CAClC,UAAAC,IAAA,EAgBIC,GAAG,EACF;AAAA,EAAA,IAfGC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAAC,WAAA,GAAAH,IAAA,CACNI,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,gBAAgB,GAAAA,WAAA;IACzBE,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,MAAM,GAAAN,IAAA,CAANM,MAAM;IACNC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IACRC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,eAAe,GAAAT,IAAA,CAAfS,eAAe;IACfC,IAAI,GAAAV,IAAA,CAAJU,IAAI;IACJC,EAAE,GAAAX,IAAA,CAAFW,EAAE;IACFC,SAAS,GAAAZ,IAAA,CAATY,SAAS;IACTC,QAAQ,GAAAb,IAAA,CAARa,QAAQ;IACRC,SAAS,GAAAd,IAAA,CA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"SelectTarget.js","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef } from 'react';\n\nimport { classes } from '../../Select.tokens';\nimport { cx } from '../../../../utils';\nimport { SelectChip } from '../SelectChip/SelectChip';\nimport type { SelectPrimitiveValue } from '../../Select.types';\nimport { Keys } from '../../hooks/useKeyNavigation';\n\nimport {\n StyledArrow,\n StyledChips,\n StyledChipsWrapper,\n StyledLabel,\n StyledSelectTarget,\n StyledText,\n} from './SelectTarget.styles';\nimport type { SelectTargetProps } from './SelectTarget.types';\n\nconst {\n hasNoFocus,\n hasChips,\n innerLabelUp,\n arrowInverse,\n selectTarget,\n selectTargetArrow,\n selectTargeText,\n selectTargetLabel,\n} = classes;\n\n/**\n * Элемент для выпадающего списка\n */\nexport const SelectTarget = forwardRef<HTMLButtonElement, SelectTargetProps>(\n (\n {\n values,\n target = 'textField-like',\n label,\n opened,\n readOnly,\n disabled,\n enumerationType,\n size,\n id,\n chipsRefs,\n onChange,\n onKeyDown,\n ...rest\n },\n ref,\n ) => {\n const hasText = Boolean(values?.some(([value]) => value));\n\n const hasLabel = label && size !== 'xs' && target === 'textField-like';\n const textContent = values?.map(([, text]) => text).join(', ');\n const contentRef = useRef<HTMLDivElement>(null);\n\n const withArrowInverse = opened ? arrowInverse : undefined;\n const withInnerLabelUp = hasLabel && hasText ? innerLabelUp : undefined;\n const withHasChips =\n hasText && enumerationType === 'chip' && target === 'textField-like' ? hasChips : undefined;\n\n const withNoFocus = target === 'textField-like' ? hasNoFocus : undefined;\n\n const isLabelVisible = !hasText || (hasLabel && enumerationType === 'comma');\n\n const onChipClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation();\n }, []);\n\n const onChipClear = useCallback(\n (value: SelectPrimitiveValue, text: SelectPrimitiveValue, index: number) => {\n const newValue = values\n ?.filter(([itemValue, itemText]) => !(itemValue === value && itemText === text))\n .map(([itemValue]) => itemValue);\n\n chipsRefs?.current.splice(index, 1);\n onChange?.(newValue);\n },\n [values, onChange],\n );\n\n const onChipKeyDown = useCallback(\n (\n value: SelectPrimitiveValue,\n text: SelectPrimitiveValue,\n index: number,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => {\n const { code, shiftKey } = event;\n\n if (code === Keys.Tab || (code === Keys.Tab && shiftKey)) {\n event.preventDefault();\n }\n\n if (code === Keys.Backspace) {\n onChipClear(value, text, index);\n }\n },\n [onChipClear],\n );\n\n const onWheel = useCallback((event: React.WheelEvent<HTMLButtonElement>) => {\n const { deltaY } = event;\n\n if (contentRef.current) {\n contentRef.current.scrollLeft += Math.round(deltaY);\n }\n }, []);\n\n const getRef = useCallback((element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs && chipsRefs.current) {\n chipsRefs.current[index] = element;\n }\n }, []);\n\n // INFO: Нужно очищать на каждый ререндер компонента для актуализации состояния рефов\n if (chipsRefs) {\n chipsRefs.current = [];\n }\n\n return (\n <StyledSelectTarget\n {...rest}\n ref={ref}\n opened={opened}\n target={target}\n readOnly={readOnly}\n disabled={disabled}\n title={textContent}\n aria-label={label}\n className={cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget)}\n onWheel={onWheel}\n onKeyDown={onKeyDown}\n stretching=\"filled\"\n >\n {hasText &&\n (enumerationType === 'comma' || target === 'button-like' ? (\n <StyledText className={selectTargeText}>{textContent}</StyledText>\n ) : (\n <StyledChipsWrapper ref={contentRef}>\n <StyledChips>\n {values?.map(([value, text], index) => (\n <SelectChip\n index={index}\n ref={(element) => getRef(element, index)}\n key={`${value}_${text}`}\n disabled={disabled}\n readOnly={readOnly}\n value={value}\n text={text}\n onClear={(v, t) => onChipClear(v, t, index)}\n onClick={onChipClick}\n onKeyDown={onChipKeyDown}\n />\n ))}\n </StyledChips>\n </StyledChipsWrapper>\n ))}\n {isLabelVisible && (\n <StyledLabel className={selectTargetLabel} htmlFor={id}>\n {label}\n </StyledLabel>\n )}\n <StyledArrow size=\"s\" color=\"inherit\" className={cx(selectTargetArrow, withArrowInverse)} />\n </StyledSelectTarget>\n );\n },\n);\n"],"names":["hasNoFocus","classes","hasChips","innerLabelUp","arrowInverse","selectTarget","selectTargetArrow","selectTargeText","selectTargetLabel","SelectTarget","forwardRef","_ref","ref","values","_ref$target","target","label","opened","readOnly","disabled","enumerationType","size","id","chipsRefs","onChange","onKeyDown","rest","_objectWithoutProperties","_excluded","hasText","Boolean","some","_ref2","_ref3","_slicedToArray","value","hasLabel","textContent","map","_ref4","_ref5","text","join","contentRef","useRef","withArrowInverse","undefined","withInnerLabelUp","withHasChips","withNoFocus","isLabelVisible","onChipClick","useCallback","event","stopPropagation","onChipClear","index","newValue","filter","_ref6","_ref7","itemValue","itemText","_ref8","_ref9","current","splice","onChipKeyDown","code","shiftKey","Keys","Tab","preventDefault","Backspace","onWheel","deltaY","scrollLeft","Math","round","getRef","element","React","createElement","StyledSelectTarget","_extends","title","className","cx","stretching","StyledText","StyledChipsWrapper","StyledChips","_ref10","_ref11","SelectChip","key","concat","onClear","v","t","onClick","StyledLabel","htmlFor","StyledArrow","color"],"mappings":";;;;;;;;;AAkBA,IACIA,UAAU,GAQVC,OAAO,CARPD,UAAU;EACVE,QAAQ,GAORD,OAAO,CAPPC,QAAQ;EACRC,YAAY,GAMZF,OAAO,CANPE,YAAY;EACZC,YAAY,GAKZH,OAAO,CALPG,YAAY;EACZC,YAAY,GAIZJ,OAAO,CAJPI,YAAY;EACZC,iBAAiB,GAGjBL,OAAO,CAHPK,iBAAiB;EACjBC,eAAe,GAEfN,OAAO,CAFPM,eAAe;EACfC,iBAAiB,GACjBP,OAAO,CADPO,iBAAiB,CAAA;;AAGrB;AACA;AACA;AACO,IAAMC,YAAY,gBAAGC,UAAU,CAClC,UAAAC,IAAA,EAgBIC,GAAG,EACF;AAAA,EAAA,IAfGC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAAC,WAAA,GAAAH,IAAA,CACNI,MAAM;AAANA,IAAAA,MAAM,GAAAD,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Ac,KAC5B,CAAC,CAAA;GACL,CACQ,CACG,CACvB,CAAC,EACLjB,cAAc,iBACX+B,KAAA,CAAAC,aAAA,CAACmB,WAAW,EAAA;AAACf,IAAAA,SAAS,EAAE9E,iBAAkB;AAAC8F,IAAAA,OAAO,EAAEhF,EAAAA;AAAG,GAAA,EAClDN,KACQ,CAChB,eACDiE,KAAA,CAAAC,aAAA,CAACqB,WAAW,EAAA;AAAClF,IAAAA,IAAI,EAAC,GAAG;AAACmF,IAAAA,KAAK,EAAC,SAAS;AAAClB,IAAAA,SAAS,EAAEC,EAAE,CAACjF,iBAAiB,EAAEuC,gBAAgB,CAAA;AAAE,GAAE,CAC3E,CAAC,CAAA;AAE7B,CACJ;;;;"}
@@ -1,191 +1,71 @@
1
- import './TextField_wctd2m.css';
2
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
3
- import React, { forwardRef, useRef, useState, useEffect } from 'react';
1
+ import './TextField_1lzb2r1.css';
2
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
3
+ import React, { forwardRef } from 'react';
4
4
  import { safeUseId } from '@salutejs/plasma-core';
5
- import { cx } from '../../utils/index.js';
6
- import { base as base$2 } from './variations/_size/base.js';
7
- import { base as base$1 } from './variations/_view/base.js';
8
- import { base as base$3 } from './variations/_disabled/base.js';
9
- import { base as base$4 } from './variations/_read-only/base.js';
10
- import { base as base$5 } from './variations/_label-placement/base.js';
11
- import { Label, InputWrapper, StyledContentLeft, InputLabelWrapper, StyledChips, Input, StyledContentRight, LeftHelper } from './TextField.styles.js';
12
- import { classes } from './TextField.tokens.js';
13
- import { TextFieldChip } from './ui/TextFieldChip/TextFieldChip.js';
14
- import { useKeyNavigation } from './hooks/useKeyNavigation.js';
5
+ import { base as base$2 } from './_size/base.js';
6
+ import { base as base$1 } from './_view/base.js';
7
+ import { base as base$3 } from './_disabled/base.js';
8
+ import { base as base$4 } from './_label-placement/base.js';
9
+ import { Label, InputWrapper, InputLabelWrapper, Input, LeftHelper } from './TextField.styles.js';
15
10
 
16
- var _excluded = ["id", "contentLeft", "contentRight", "label", "labelPlacement", "placeholder", "leftHelper", "enumerationType", "view", "size", "readOnly", "disabled", "values", "onChange", "onChangeChips", "onSearch"];
11
+ var _excluded = ["contentLeft", "contentRight", "children", "label", "labelPlacement", "placeholder", "leftHelper", "view", "size", "disabled", "onChange", "onSearch"];
17
12
  var base = "bpunezx";
18
13
  var textFieldRoot = function textFieldRoot(Root) {
19
14
  return /*#__PURE__*/forwardRef(function (props, ref) {
20
- var id = props.id,
21
- contentLeft = props.contentLeft,
15
+ var contentLeft = props.contentLeft,
22
16
  contentRight = props.contentRight,
23
17
  label = props.label,
24
18
  labelPlacement = props.labelPlacement,
25
19
  placeholder = props.placeholder,
26
20
  leftHelper = props.leftHelper,
27
- _props$enumerationTyp = props.enumerationType,
28
- enumerationType = _props$enumerationTyp === void 0 ? 'plain' : _props$enumerationTyp,
29
21
  view = props.view,
30
22
  size = props.size,
31
- _props$readOnly = props.readOnly,
32
- readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
33
- _props$disabled = props.disabled,
34
- disabled = _props$disabled === void 0 ? false : _props$disabled,
35
- values = props.values,
23
+ disabled = props.disabled,
36
24
  onChange = props.onChange,
37
- onChangeChips = props.onChangeChips,
38
25
  onSearch = props.onSearch,
39
26
  rest = _objectWithoutProperties(props, _excluded);
40
- var contentRef = useRef(null);
41
- var inputRef = useRef(null);
42
- var chipsRefs = useRef([]);
43
- var controlledRefs = {
44
- contentRef: contentRef,
45
- inputRef: inputRef,
46
- chipsRefs: chipsRefs
47
- };
48
- var _useState = useState([]),
49
- _useState2 = _slicedToArray(_useState, 2),
50
- chips = _useState2[0],
51
- setChips = _useState2[1];
52
- var uniqId = safeUseId();
53
- var innerId = id || uniqId;
54
- var labelId = safeUseId();
55
- var helperTextId = safeUseId();
56
- var isChipEnumeration = enumerationType === 'chip';
57
- var hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';
58
- var labelInside = size !== 'xs' && labelPlacement === 'inner';
59
- var innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;
60
- var innerPlaceholderValue = hideLabel ? label : placeholder;
61
- var innerLabelValue = hideLabel ? undefined : label;
62
- var isChipsVisible = isChipEnumeration && (chips === null || chips === void 0 ? void 0 : chips.length);
63
- var withHasChips = isChipsVisible ? classes.hasChips : undefined;
64
- var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;
65
- var wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;
66
27
  var handleChange = function handleChange(event) {
67
- if (disabled || readOnly) {
68
- return;
69
- }
70
28
  var _event$target = event.target,
71
29
  maxLength = _event$target.maxLength,
72
30
  value = _event$target.value;
73
- if (maxLength !== -1 && value.length > maxLength) {
74
- return;
75
- }
76
- onChange === null || onChange === void 0 ? void 0 : onChange(event);
77
- };
78
- var updateChips = function updateChips(newChips, newValues) {
79
- setChips(newChips);
80
- onChangeChips === null || onChangeChips === void 0 ? void 0 : onChangeChips(newValues);
81
- };
82
- var _useKeyNavigation = useKeyNavigation({
83
- controlledRefs: controlledRefs,
84
- disabled: disabled,
85
- readOnly: readOnly,
86
- chips: chips,
87
- enumerationType: enumerationType,
88
- updateChips: updateChips,
89
- onSearch: onSearch,
90
- onChange: onChange
91
- }),
92
- handleInputKeydown = _useKeyNavigation.handleInputKeydown,
93
- handleChipKeyDown = _useKeyNavigation.handleChipKeyDown,
94
- onChipClear = _useKeyNavigation.onChipClear,
95
- handleContentKeyDown = _useKeyNavigation.handleContentKeyDown;
96
- var onChipClick = function onChipClick(event) {
97
- return event.stopPropagation();
98
- };
99
- var handleInputFocus = function handleInputFocus() {
100
- if (readOnly || disabled || !(inputRef !== null && inputRef !== void 0 && inputRef.current)) {
31
+ if (!onChange || maxLength !== -1 && value.length > maxLength) {
101
32
  return;
102
33
  }
103
- inputRef.current.scrollIntoView({
104
- behavior: 'smooth',
105
- block: 'center',
106
- inline: 'center'
107
- });
108
- inputRef.current.focus({
109
- preventScroll: true
110
- });
34
+ onChange(event);
111
35
  };
112
- var getRef = function getRef(element, index) {
113
- if (element && chipsRefs !== null && chipsRefs !== void 0 && chipsRefs.current) {
114
- chipsRefs.current[index] = element;
36
+ var handleKeyUp = function handleKeyUp(event) {
37
+ if (event.key === 'Enter' && onSearch) {
38
+ onSearch(event.target.value, event);
115
39
  }
116
40
  };
117
- useEffect(function () {
118
- if (!isChipEnumeration && !(values !== null && values !== void 0 && values.length)) {
119
- return;
120
- }
121
- var newChips = (values === null || values === void 0 ? void 0 : values.map(function (value, index) {
122
- return {
123
- id: "".concat(index, "_").concat(value),
124
- text: value
125
- };
126
- })) || [];
127
- setChips(newChips);
128
- }, [isChipEnumeration, values]);
41
+ var labelInside = labelPlacement === 'inner';
42
+ var lableId = safeUseId();
43
+ var helperTextId = safeUseId();
129
44
  return /*#__PURE__*/React.createElement(Root, {
130
- ref: ref,
131
45
  view: view,
132
46
  size: size,
133
47
  disabled: disabled,
134
- readOnly: !disabled && readOnly,
135
- labelPlacement: innerLabelPlacementValue,
136
- onClick: handleInputFocus
137
- }, labelInside || innerLabelValue && /*#__PURE__*/React.createElement(Label, {
138
- id: labelId,
139
- htmlFor: id
140
- }, innerLabelValue), /*#__PURE__*/React.createElement(InputWrapper, {
141
- className: cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
142
- }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(InputLabelWrapper, {
143
- tabIndex: -1,
144
- ref: contentRef,
145
- onKeyDown: handleContentKeyDown,
146
- className: withHasChips
147
- }, isChipEnumeration && Boolean(chips === null || chips === void 0 ? void 0 : chips.length) && /*#__PURE__*/React.createElement(StyledChips, null, chips === null || chips === void 0 ? void 0 : chips.map(function (_ref, index) {
148
- var chipId = _ref.id,
149
- text = _ref.text;
150
- return /*#__PURE__*/React.createElement(TextFieldChip, {
151
- ref: function ref(element) {
152
- return getRef(element, index);
153
- },
154
- chipId: chipId,
155
- key: "".concat(chipId, "_").concat(index),
156
- disabled: disabled,
157
- readOnly: readOnly,
158
- value: text,
159
- text: text,
160
- onKeyDown: function onKeyDown(event) {
161
- return handleChipKeyDown(event, chipId);
162
- },
163
- onClear: function onClear() {
164
- return onChipClear(chipId);
165
- },
166
- onClick: onChipClick
167
- });
168
- })), /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
169
- ref: inputRef,
170
- id: innerId,
171
- "aria-labelledby": labelId,
48
+ labelPlacement: labelPlacement
49
+ }, labelInside || label && /*#__PURE__*/React.createElement(Label, {
50
+ id: lableId
51
+ }, label), /*#__PURE__*/React.createElement(InputWrapper, null, contentLeft, /*#__PURE__*/React.createElement(InputLabelWrapper, null, /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
52
+ ref: ref,
53
+ "aria-labelledby": lableId,
172
54
  "aria-describedby": helperTextId,
173
- placeholder: innerPlaceholderValue,
55
+ placeholder: placeholder,
174
56
  disabled: disabled,
175
- readOnly: !disabled && readOnly,
176
57
  onChange: handleChange,
177
- onKeyDown: handleInputKeydown
58
+ onKeyUp: handleKeyUp
178
59
  })), labelInside && /*#__PURE__*/React.createElement(Label, {
179
- id: labelId,
180
- htmlFor: innerId
181
- }, innerLabelValue)), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
60
+ id: lableId
61
+ }, label)), contentRight), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
182
62
  id: helperTextId
183
63
  }, leftHelper));
184
64
  });
185
65
  };
186
66
  var textFieldConfig = {
187
67
  name: 'TextField',
188
- tag: 'div',
68
+ tag: 'label',
189
69
  layout: textFieldRoot,
190
70
  base: base,
191
71
  variations: {
@@ -199,19 +79,14 @@ var textFieldConfig = {
199
79
  css: base$3,
200
80
  attrs: true
201
81
  },
202
- readOnly: {
203
- css: base$4,
204
- attrs: true
205
- },
206
82
  labelPlacement: {
207
- css: base$5
83
+ css: base$4
208
84
  }
209
85
  },
210
86
  defaults: {
211
- size: 'm',
212
- view: 'default'
87
+ size: 'm'
213
88
  }
214
89
  };
215
90
 
216
- export { base, textFieldConfig, textFieldRoot };
91
+ export { textFieldConfig, textFieldRoot };
217
92
  //# sourceMappingURL=TextField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport type { ChangeEventHandler } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\nimport { css } from '@linaria/core';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { ChipValues, TextFieldPrimitiveValue, TextFieldProps } from './TextField.types';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as readOnlyCSS } from './variations/_read-only/base';\nimport { base as labelPlacementCSS } from './variations/_label-placement/base';\nimport {\n Input,\n LeftHelper,\n Label,\n InputWrapper,\n InputLabelWrapper,\n StyledContentLeft,\n StyledContentRight,\n StyledChips,\n} from './TextField.styles';\nimport { classes } from './TextField.tokens';\nimport { TextFieldChip } from './ui';\nimport { useKeyNavigation } from './hooks/useKeyNavigation';\n\nexport const base = css`\n /* NOTE: Webkit не применяет opacity к inline тегам */\n display: block;\n overflow: hidden;\n`;\n\nexport const textFieldRoot = (Root: RootProps<HTMLDivElement, TextFieldProps>) =>\n forwardRef<HTMLDivElement, TextFieldProps>((props, ref) => {\n const {\n id,\n\n // layout\n contentLeft,\n contentRight,\n label,\n labelPlacement,\n placeholder,\n leftHelper,\n enumerationType = 'plain',\n\n // variations\n view,\n size,\n readOnly = false,\n disabled = false,\n\n // controlled\n values,\n\n // events\n onChange,\n onChangeChips,\n onSearch,\n\n ...rest\n } = props;\n\n const contentRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const chipsRefs = useRef<Array<HTMLButtonElement>>([]);\n\n const controlledRefs = { contentRef, inputRef, chipsRefs };\n\n const [chips, setChips] = useState<Array<ChipValues>>([]);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const labelId = safeUseId();\n const helperTextId = safeUseId();\n\n const isChipEnumeration = enumerationType === 'chip';\n const hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';\n const labelInside = size !== 'xs' && labelPlacement === 'inner';\n const innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;\n const innerPlaceholderValue = hideLabel ? label : placeholder;\n const innerLabelValue = hideLabel ? undefined : label;\n\n const isChipsVisible = isChipEnumeration && chips?.length;\n const withHasChips = isChipsVisible ? classes.hasChips : undefined;\n const wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;\n const wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = (event) => {\n if (disabled || readOnly) {\n return;\n }\n\n const { maxLength, value } = event.target;\n\n if (maxLength !== -1 && value.length > maxLength) {\n return;\n }\n\n onChange?.(event);\n };\n\n const updateChips = (newChips: Array<ChipValues>, newValues: Array<TextFieldPrimitiveValue>) => {\n setChips(newChips);\n onChangeChips?.(newValues);\n };\n\n const { handleInputKeydown, handleChipKeyDown, onChipClear, handleContentKeyDown } = useKeyNavigation({\n controlledRefs,\n disabled,\n readOnly,\n chips,\n enumerationType,\n updateChips,\n onSearch,\n onChange,\n });\n\n const onChipClick = (event: React.MouseEvent<HTMLButtonElement>) => event.stopPropagation();\n\n const handleInputFocus = () => {\n if (readOnly || disabled || !inputRef?.current) {\n return;\n }\n\n inputRef.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n inputRef.current.focus({ preventScroll: true });\n };\n\n const getRef = (element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs?.current) {\n chipsRefs.current[index] = element;\n }\n };\n\n useEffect(() => {\n if (!isChipEnumeration && !values?.length) {\n return;\n }\n\n const newChips =\n values?.map((value, index) => ({\n id: `${index}_${value}`,\n text: value,\n })) || [];\n\n setChips(newChips);\n }, [isChipEnumeration, values]);\n\n return (\n <Root\n ref={ref}\n view={view}\n size={size}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n labelPlacement={innerLabelPlacementValue}\n onClick={handleInputFocus}\n >\n {labelInside ||\n (innerLabelValue && (\n <Label id={labelId} htmlFor={id}>\n {innerLabelValue}\n </Label>\n ))}\n <InputWrapper className={cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)}>\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <InputLabelWrapper\n tabIndex={-1}\n ref={contentRef}\n onKeyDown={handleContentKeyDown}\n className={withHasChips}\n >\n {isChipEnumeration && Boolean(chips?.length) && (\n <StyledChips>\n {chips?.map(({ id: chipId, text }, index) => {\n return (\n <TextFieldChip\n ref={(element) => getRef(element, index)}\n chipId={chipId}\n key={`${chipId}_${index}`}\n disabled={disabled}\n readOnly={readOnly}\n value={text}\n text={text}\n onKeyDown={(event) => handleChipKeyDown(event, chipId)}\n onClear={() => onChipClear(chipId)}\n onClick={onChipClick}\n />\n );\n })}\n </StyledChips>\n )}\n <Input\n {...rest}\n ref={inputRef}\n id={innerId}\n aria-labelledby={labelId}\n aria-describedby={helperTextId}\n placeholder={innerPlaceholderValue}\n disabled={disabled}\n readOnly={!disabled && readOnly}\n onChange={handleChange}\n onKeyDown={handleInputKeydown}\n />\n {labelInside && (\n <Label id={labelId} htmlFor={innerId}>\n {innerLabelValue}\n </Label>\n )}\n </InputLabelWrapper>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </InputWrapper>\n {leftHelper && <LeftHelper id={helperTextId}>{leftHelper}</LeftHelper>}\n </Root>\n );\n });\n\nexport const textFieldConfig = {\n name: 'TextField',\n tag: 'div',\n layout: textFieldRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n css: readOnlyCSS,\n attrs: true,\n },\n labelPlacement: {\n css: labelPlacementCSS,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["base","textFieldRoot","Root","forwardRef","props","ref","id","contentLeft","contentRight","label","labelPlacement","placeholder","leftHelper","_props$enumerationTyp","enumerationType","view","size","_props$readOnly","readOnly","_props$disabled","disabled","values","onChange","onChangeChips","onSearch","rest","_excluded","contentRef","useRef","inputRef","chipsRefs","controlledRefs","_useState","useState","_useState2","_slicedToArray","chips","setChips","uniqId","safeUseId","innerId","labelId","helperTextId","isChipEnumeration","hideLabel","labelInside","innerLabelPlacementValue","innerPlaceholderValue","innerLabelValue","undefined","isChipsVisible","length","withHasChips","classes","hasChips","wrapperWithoutLeftContent","hasEmptyContentLeft","wrapperWithoutRightContent","hasEmptyContentRight","handleChange","event","_event$target","target","maxLength","value","updateChips","newChips","newValues","_useKeyNavigation","useKeyNavigation","handleInputKeydown","handleChipKeyDown","onChipClear","handleContentKeyDown","onChipClick","stopPropagation","handleInputFocus","current","scrollIntoView","behavior","block","inline","focus","preventScroll","getRef","element","index","useEffect","map","concat","text","React","createElement","onClick","Label","htmlFor","InputWrapper","className","cx","StyledContentLeft","InputLabelWrapper","tabIndex","onKeyDown","Boolean","StyledChips","_ref","chipId","TextFieldChip","key","onClear","Input","_extends","StyledContentRight","LeftHelper","textFieldConfig","name","tag","layout","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","readOnlyCSS","labelPlacementCSS","defaults"],"mappings":";;;;;;;;;;;;;;;AA4BO,IAAMA,IAAI,GAIhB,UAAA;IAEYC,aAAa,GAAGA,SAAhBA,aAAaA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACzEC,UA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AAG;AAC3BC,EAAAA,IAAI,EAAE,WAAW;AACjBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEpH,aAAa;AACrBD,EAAAA,IAAI,EAAJA,IAAI;AACJsH,EAAAA,UAAU,EAAE;AACRvG,IAAAA,IAAI,EAAE;AACFwG,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDxG,IAAAA,IAAI,EAAE;AACFuG,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDrG,IAAAA,QAAQ,EAAE;AACNmG,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDzG,IAAAA,QAAQ,EAAE;AACNqG,MAAAA,GAAG,EAAEK,MAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;KACV;AACDjH,IAAAA,cAAc,EAAE;AACZ6G,MAAAA,GAAG,EAAEM,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN9G,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"TextField.js","sources":["../../../src/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { ChangeEventHandler, KeyboardEventHandler, LabelHTMLAttributes } from 'react';\nimport { css } from '@linaria/core';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\n\nimport type { TextFieldProps } from './TextField.types';\nimport { base as size } from './_size/base';\nimport { base as view } from './_view/base';\nimport { base as disabled } from './_disabled/base';\nimport { base as labelPlacement } from './_label-placement/base';\nimport { Input, LeftHelper, Label, InputWrapper, InputLabelWrapper } from './TextField.styles';\n\nconst base = css`\n /* NOTE: Webkit не применяет opacity к inline тегам */\n display: block;\n`;\n\nexport const textFieldRoot = (\n Root: RootProps<HTMLInputElement, TextFieldProps & LabelHTMLAttributes<HTMLLabelElement>>,\n) =>\n forwardRef<HTMLInputElement, TextFieldProps>((props, ref) => {\n const {\n // layout\n contentLeft,\n contentRight,\n children,\n label,\n labelPlacement,\n placeholder,\n leftHelper,\n\n // variations\n view,\n size,\n disabled,\n\n // events\n onChange,\n onSearch,\n\n ...rest\n } = props;\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = (event) => {\n const { maxLength, value } = event.target;\n\n if (!onChange || (maxLength !== -1 && value.length > maxLength)) {\n return;\n }\n\n onChange(event);\n };\n\n const handleKeyUp: KeyboardEventHandler<HTMLInputElement> = (event) => {\n if (event.key === 'Enter' && onSearch) {\n onSearch((event.target as HTMLInputElement).value, event);\n }\n };\n\n const labelInside = labelPlacement === 'inner';\n const lableId = safeUseId();\n const helperTextId = safeUseId();\n\n return (\n <Root view={view} size={size} disabled={disabled} labelPlacement={labelPlacement}>\n {labelInside || (label && <Label id={lableId}>{label}</Label>)}\n <InputWrapper>\n {contentLeft}\n <InputLabelWrapper>\n <Input\n {...rest}\n ref={ref}\n aria-labelledby={lableId}\n aria-describedby={helperTextId}\n placeholder={placeholder}\n disabled={disabled}\n onChange={handleChange}\n onKeyUp={handleKeyUp}\n />\n {labelInside && <Label id={lableId}>{label}</Label>}\n </InputLabelWrapper>\n {contentRight}\n </InputWrapper>\n {leftHelper && <LeftHelper id={helperTextId}>{leftHelper}</LeftHelper>}\n </Root>\n );\n });\n\nexport const textFieldConfig = {\n name: 'TextField',\n tag: 'label',\n layout: textFieldRoot,\n base,\n variations: {\n view: {\n css: view,\n },\n size: {\n css: size,\n },\n disabled: {\n css: disabled,\n attrs: true,\n },\n labelPlacement: {\n css: labelPlacement,\n },\n },\n defaults: {\n size: 'm',\n },\n};\n"],"names":["base","textFieldRoot","Root","forwardRef","props","ref","contentLeft","contentRight","label","labelPlacement","placeholder","leftHelper","view","size","disabled","onChange","onSearch","rest","_excluded","handleChange","event","_event$target","target","maxLength","value","length","handleKeyUp","key","labelInside","lableId","safeUseId","helperTextId","React","createElement","Label","id","InputWrapper","InputLabelWrapper","Input","_extends","on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A,CAACC,KAAK,EAAA;AAACC,MAAAA,EAAE,EAAEN,OAAAA;AAAQ,KAAA,EAAErB,KAAa,CACnC,CAAA,EAClBD,YACS,CAAA,EACbI,UAAU,iBAAIqB,KAAA,CAAAC,aAAA,CAACQ,UAAU,EAAA;AAACN,MAAAA,EAAE,EAAEJ,YAAAA;KAAepB,EAAAA,UAAuB,CACnE,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAM+B,eAAe,GAAG;AAC3BC,EAAAA,IAAI,EAAE,WAAW;AACjBC,EAAAA,GAAG,EAAE,OAAO;AACZC,EAAAA,MAAM,EAAE5C,aAAa;AACrBD,EAAAA,IAAI,EAAJA,IAAI;AACJ8C,EAAAA,UAAU,EAAE;AACRlC,IAAAA,IAAI,EAAE;AACFmC,MAAAA,GAAG,EAAEnC,MAAAA;KACR;AACDC,IAAAA,IAAI,EAAE;AACFkC,MAAAA,GAAG,EAAElC,MAAAA;KACR;AACDC,IAAAA,QAAQ,EAAE;AACNiC,MAAAA,GAAG,EAAEjC,MAAQ;AACbkC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDvC,IAAAA,cAAc,EAAE;AACZsC,MAAAA,GAAG,EAAEtC,MAAAA;AACT,KAAA;GACH;AACDwC,EAAAA,QAAQ,EAAE;AACNpC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,8 +1,8 @@
1
- import './TextField.styles_1b1mddp.css';
1
+ import './TextField.styles_2qw1n8.css';
2
2
  import { styled } from '@linaria/react';
3
3
 
4
- var InputWrapper = /*#__PURE__*/styled('div')({
5
- name: "InputWrapper",
4
+ var Input = /*#__PURE__*/styled('input')({
5
+ name: "Input",
6
6
  "class": "iq39zt5",
7
7
  propsAsIs: false
8
8
  });
@@ -11,36 +11,23 @@ var InputLabelWrapper = /*#__PURE__*/styled('div')({
11
11
  "class": "i1j28rg8",
12
12
  propsAsIs: false
13
13
  });
14
- var StyledChips = /*#__PURE__*/styled('div')({
15
- name: "StyledChips",
16
- "class": "s13zudoe",
17
- propsAsIs: false
18
- });
19
- var Input = /*#__PURE__*/styled('input')({
20
- name: "Input",
21
- "class": "io4bpie",
14
+
15
+ // NOTE: border-width is used in size border-color is used in view
16
+ var InputWrapper = /*#__PURE__*/styled('div')({
17
+ name: "InputWrapper",
18
+ "class": "i13zudoe",
22
19
  propsAsIs: false
23
20
  });
24
- var Label = /*#__PURE__*/styled('label')({
21
+ var Label = /*#__PURE__*/styled('div')({
25
22
  name: "Label",
26
- "class": "l13qvwoy",
27
- propsAsIs: false
28
- });
29
- var StyledContentLeft = /*#__PURE__*/styled('div')({
30
- name: "StyledContentLeft",
31
- "class": "s19ry60d",
32
- propsAsIs: false
33
- });
34
- var StyledContentRight = /*#__PURE__*/styled('div')({
35
- name: "StyledContentRight",
36
- "class": "sbt1ohz",
23
+ "class": "lo4bpie",
37
24
  propsAsIs: false
38
25
  });
39
26
  var LeftHelper = /*#__PURE__*/styled('div')({
40
27
  name: "LeftHelper",
41
- "class": "llv9av6",
28
+ "class": "l13qvwoy",
42
29
  propsAsIs: false
43
30
  });
44
31
 
45
- export { Input, InputLabelWrapper, InputWrapper, Label, LeftHelper, StyledChips, StyledContentLeft, StyledContentRight };
32
+ export { Input, InputLabelWrapper, InputWrapper, Label, LeftHelper };
46
33
  //# sourceMappingURL=TextField.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.styles.js","sources":["../../../src/components/TextField/TextField.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from './TextField.tokens';\n\nexport const InputWrapper = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n`;\n\nexport const InputLabelWrapper = styled.div`\n flex: 1;\n overflow: scroll;\n position: relative;\n width: 100%;\n display: inline-flex;\n align-items: center;\n\n ::-webkit-scrollbar {\n display: none;\n }\n\n scrollbar-width: none;\n\n overscroll-behavior: contain;\n\n &.${String(classes.hasChips)} {\n height: var(${tokens.chipHeight});\n border-radius: var(${tokens.chipBorderRadius});\n }\n`;\n\nexport const StyledChips = styled.div`\n display: flex;\n gap: var(${tokens.chipGap});\n margin-right: var(${tokens.chipGap});\n user-select: none;\n`;\n\nexport const Input = styled.input`\n box-sizing: border-box;\n appearance: none;\n border: 0;\n padding: 0;\n background-color: transparent;\n outline: none;\n flex: 1;\n min-width: 60%;\n`;\n\nexport const Label = styled.label``;\n\nexport const StyledContentLeft = styled.div`\n margin: var(${tokens.leftContentMargin});\n`;\n\nexport const StyledContentRight = styled.div`\n margin: var(${tokens.rightContentMargin});\n`;\n\nexport const LeftHelper = styled.div``;\n"],"names":["InputWrapper","styled","name","class","propsAsIs","InputLabelWrapper","StyledChips","Input","Label","StyledContentLeft","StyledContentRight","LeftHelper"],"mappings":";;AAIO,IAAMA,YAAY,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKjC,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAoBtC,EAAA;AAEM,IAAME,WAAW,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKhC,EAAA;AAEM,IAAMG,KAAK,gBAAGN,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAS1B,EAAA;AAEM,IAAMI,KAAK,gBAAGP,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAQ,EAAA;AAE5B,IAAMK,iBAAiB,gBAAGR,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEtC,EAAA;AAEM,IAAMM,kBAAkB,gBAAGT,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEvC,EAAA;AAEM,IAAMO,UAAU,gBAAGV,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;"}
1
+ {"version":3,"file":"TextField.styles.js","sources":["../../../src/components/TextField/TextField.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nexport const Input = styled.input`\n box-sizing: border-box;\n appearance: none;\n border: 0;\n padding: 0;\n background-color: transparent;\n outline: none;\n`;\n\nexport const InputLabelWrapper = styled.div`\n ${Input} {\n width: 100%;\n }\n`;\n\n// NOTE: border-width is used in size border-color is used in view\nexport const InputWrapper = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n\n box-shadow: inset 0 0 0 var(--plasma_private-textfield-border-width) var(--plasma_private-textfield-border-color);\n\n ${InputLabelWrapper} {\n flex-grow: 1;\n }\n`;\n\nexport const Label = styled.div``;\n\nexport const LeftHelper = styled.div``;\n"],"names":["Input","styled","name","class","propsAsIs","InputLabelWrapper","InputWrapper","Label","LeftHelper"],"mappings":";;AAEO,IAAMA,KAAK,gBAAGC,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAO1B,EAAA;AAEM,IAAMC,iBAAiB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAItC,EAAA;;AAED;AACO,IAAME,YAAY,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAUjC,EAAA;AAEM,IAAMG,KAAK,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM,EAAA;AAE1B,IAAMI,UAAU,gBAAGP,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;"}
@@ -0,0 +1,5 @@
1
+ .iq39zt5{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;}
2
+ .i1j28rg8 .iq39zt5{width:100%;}
3
+ .i13zudoe{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-shadow:inset 0 0 0 var(--plasma_private-textfield-border-width) var(--plasma_private-textfield-border-color);}.i13zudoe .i1j28rg8{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
4
+
5
+