@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
@@ -3,46 +3,35 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tokens = exports.classes = void 0;
7
- var classes = exports.classes = {
8
- hasChips: 'has-chips',
9
- hasEmptyContentLeft: 'has-empty-content-left',
10
- hasEmptyContentRight: 'has-empty-content-right'
11
- };
6
+ exports.tokens = void 0;
12
7
  var tokens = exports.tokens = {
13
8
  color: '--plasma-textfield-color',
14
9
  backgroundColor: '--plasma-textfield-bg-color',
15
10
  backgroundColorHover: '--plasma-textfield-bg-color-hover',
16
11
  backgroundColorFocus: '--plasma-textfield-bg-color-focus',
17
- borderColor: '--plasma-textfield-border-color',
18
- borderColorHover: '--plasma-textfield-border-color-hover',
19
- borderColorFocus: '--plasma-textfield-border-color-focus',
20
- /** Цвета для read-only состояния */
21
- colorReadOnly: '--plasma-textfield-color-readonly',
22
- backgroundColorReadOnly: '--plasma-textfield-bg-color-readonly',
23
- borderColorReadOnly: '--plasma-textfield-border-color-readonly',
24
- placeholderColorReadOnly: '--plasma-textfield__placeholder-color-readonly',
25
12
  /** Цвет каретки */
26
13
  caretColor: '--plasma-textfield__caret-color',
27
14
  placeholderColor: '--plasma-textfield__placeholder-color',
15
+ borderColor: '--plasma-textfield-border-color',
16
+ borderColorHover: '--plasma-textfield-border-color-hover',
17
+ borderColorFocus: '--plasma-textfield-border-color-focus',
28
18
  height: '--plasma-textfield-height',
29
19
  borderWidth: '--plasmas-textfield-border-width',
30
20
  borderRadius: '--plasma-textfield-border-radius',
31
- /** Отступ от границы ТextField */
21
+ /** отступ от границы ТextField */
32
22
  padding: '--plasma-textfield-padding',
33
- paddingWithChips: '--plasma-textfield-padding-with-chips',
34
- /* Токены для инпута */
35
- leftContentMargin: '--plasma-textfield__left-content-margin',
36
- rightContentMargin: '--plasma-textfield__right-content-margin',
23
+ paddingWithContent: '--plasma-textfield-padding-with-content',
24
+ /* Отступ между Иконками и текстом Инпута */
25
+ /* Отступ при отсутствии Иконок сохраняется */
26
+ contentOffset: '--plasma-textfield__content-offset',
37
27
  fontFamily: '--plasma-textfield-font-family',
38
28
  fontStyle: '--plasma-textfield-font-style',
39
29
  fontSize: '--plasma-textfield-font-size',
40
30
  fontWeight: '--plasma-textfield-font-weight',
41
31
  letterSpacing: '--plasma-textfield-letter-spacing',
42
32
  lineHeight: '--plasma-textfield-line-height',
43
- /** Токены лейбла */
33
+ /** Цвет подписи */
44
34
  labelColor: '--plasma-textfield__label-color',
45
- labelColorReadOnly: '--plasma-textfield__label-color-readonly',
46
35
  labelOffset: '--plasma-textfield__label-offset',
47
36
  labelFontFamily: '--plasma-textfield__label-font-family',
48
37
  labelFontStyle: '--plasma-textfield__label-font-style',
@@ -57,52 +46,16 @@ var tokens = exports.tokens = {
57
46
  labelInnerFontWeight: '--plasma-textfield-placement_inner__label-font-weight',
58
47
  labelInnerLetterSpacing: '--plasma-textfield-placement_inner__label-letter-spacing',
59
48
  labelInnerLineHeight: '--plasma-textfield-placement_inner__label-line-height',
60
- labelInnerPadding: '--plasma-textfield-placement_inner__label-padding',
61
- contentLabelInnerPadding: '--plasma-textfield-placement_inner__content-padding',
62
- leftHelperColor: '--plasma-textfield__left-helper-color',
63
- leftHelperColorReadOnly: '--plasma-textfield__left-helper-color-readonly',
64
- leftHelperOffset: '--plasma-textfield__left-helper-offset',
65
- leftHelperFontFamily: '--plasma-textfield__left-helper-font-family',
66
- leftHelperFontStyle: '--plasma-textfield__left-helper-font-style',
67
- leftHelperFontSize: '--plasma-textfield__left-helper-font-size',
68
- leftHelperFontWeight: '--plasma-textfield__left-helper-font-weight',
69
- leftHelperLetterSpacing: '--plasma-textfield__left-helper-letter-spacing',
70
- leftHelperLineHeight: '--plasma-textfield__left-helper-line-height',
49
+ leftHelperColor: '--plasma-textfield__leftHelper-color',
50
+ leftHelperOffset: '--plasma-textfield__leftHelper-offset',
51
+ leftHelperFontFamily: '--plasma-textfield__leftHelper-font-family',
52
+ leftHelperFontStyle: '--plasma-textfield__leftHelper-font-style',
53
+ leftHelperFontSize: '--plasma-textfield__leftHelper-font-size',
54
+ leftHelperFontWeight: '--plasma-textfield__leftHelper-font-weight',
55
+ leftHelperLetterSpacing: '--plasma-textfield__leftHelper-letter-spacing',
56
+ leftHelperLineHeight: '--plasma-textfield__leftHelper-line-height',
57
+ /* Дополнительный цвет который можно использовать в <Icon color="inheit" /> */
58
+ contentColor: '--plasma-textfield__content-color',
71
59
  /** Прозрачность для всего компонента в состоянии disabled */
72
- disabledOpacity: '--plasma-textfield-disabled-opacity',
73
- /** Токены чипа */
74
- chipHeight: '--plasma-textfield__chip-height',
75
- chipBorderRadius: '--plasma-textfield__chip-border-radius',
76
- chipGap: '--plasma-textfield__chip-gap',
77
- chipBackground: '--plasma-textfield__chip-background',
78
- chipColor: '--plasma-textfield__chip-color',
79
- chipBackgroundHover: '--plasma-textfield__chip-background-hover',
80
- chipColorHover: '--plasma-textfield__chip-color-hover',
81
- chipScaleHover: '--plasma-textfield__chip-scale-hover',
82
- chipBackgroundReadOnly: '--plasma-textfield__chip-background-readonly',
83
- chipColorReadOnly: '--plasma-textfield__chip-color-readonly',
84
- chipBackgroundReadOnlyHover: '--plasma-textfield__chip-background-readonly-hover',
85
- chipColorReadOnlyHover: '--plasma-textfield__chip-color-readonly-hover',
86
- chipBackgroundActive: '--plasma-textfield__chip-background-active',
87
- chipColorActive: '--plasma-textfield__chip-color-active',
88
- chipScaleActive: '--plasma-textfield__chip-scale-active',
89
- chipFocusColor: '--plasma-textfield__chip-focus-color',
90
- chipCloseIconColor: '--plasma-textfield__chip-close-icon-color',
91
- chipOutlineSize: '--plasma-textfield__chip-outline-size',
92
- chipWidth: '--plasma-textfield__chip-width',
93
- chipPaddingTop: '--plasma-textfield__chip-padding-top',
94
- chipPaddingRight: '--plasma-textfield__chip-padding-right',
95
- chipPaddingBottom: '--plasma-textfield__chip-padding-bottom',
96
- chipPaddingLeft: '--plasma-textfield__chip-padding-left',
97
- chipCloseIconSize: '--plasma-textfield__chip-close-icon-size',
98
- chipFontFamily: '--plasma-textfield__chip-font-family',
99
- chipFontSize: '--plasma-textfield__chip-font-size',
100
- chipFontStyle: '--plasma-textfield__chip-font-style',
101
- chipFontWeight: '--plasma-textfield__chip-font-weight',
102
- chipLetterSpacing: '--plasma-textfield__chip-letter-spacing',
103
- chipLineHeight: '--plasma-textfield__chip-line-height',
104
- chipClearContentMarginLeft: '--plasma-textfield__chip-clear-content-margin-left',
105
- chipClearContentMarginRight: '--plasma-textfield__chip-clear-content-margin-right',
106
- chipOpacityReadonly: '--plasma-textfield__chip-opacity-readonly',
107
- focusColor: '--plasma-textfield-focus-color'
60
+ disabledOpacity: '--plasma-textfield-disabled-opacity'
108
61
  };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _TextField = /*#__PURE__*/require("../TextField.tokens");
9
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&[disabled]{opacity:var(", ");cursor:not-allowed;input{cursor:not-allowed;}}"], _TextField.tokens.disabledOpacity);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.labelPlacement_inner = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _TextField = /*#__PURE__*/require("../TextField.styles");
9
+ var _TextField2 = /*#__PURE__*/require("../TextField.tokens");
10
+ var labelPlacement_inner = exports.labelPlacement_inner = /*#__PURE__*/(0, _styledComponents.css)(["", "{padding-top:calc(var(", ") + var(", "));padding-bottom:var(", ");}", ":focus ~ ", ",", ":not(:placeholder-shown) ~ ", "{height:auto;padding-top:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", ":not(:focus)::placeholder{color:transparent;}", ":focus::placeholder{color:transparent;}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;transition:all 0.1s ease-in-out 0s;height:var(", ");padding-top:calc(var(", ") / 4);padding-bottom:calc(var(", ") / 4);}"], _TextField.Input, _TextField2.tokens.labelOffset, _TextField2.tokens.labelInnerLineHeight, _TextField2.tokens.labelOffset, _TextField.Input, _TextField.Label, _TextField.Input, _TextField.Label, _TextField2.tokens.labelOffset, _TextField2.tokens.labelInnerFontFamily, _TextField2.tokens.labelInnerFontSize, _TextField2.tokens.labelInnerFontStyle, _TextField2.tokens.labelInnerFontWeight, _TextField2.tokens.labelInnerLetterSpacing, _TextField2.tokens.labelInnerLineHeight, _TextField.Input, _TextField.Input, _TextField.Label, _TextField2.tokens.placeholderColor, _TextField2.tokens.height, _TextField2.tokens.height, _TextField2.tokens.height);
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.labelPlacement_outer = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _TextField = /*#__PURE__*/require("../../TextField.styles");
9
- var _TextField2 = /*#__PURE__*/require("../../TextField.tokens");
10
- var labelPlacement_outer = exports.labelPlacement_outer = /*#__PURE__*/(0, _styledComponents.css)(["", "{display:block;margin-bottom:var(", ");color:var(", ");}"], _TextField.Label, _TextField2.tokens.labelOffset, _TextField2.tokens.labelColor);
8
+ var _TextField = /*#__PURE__*/require("../TextField.styles");
9
+ var _TextField2 = /*#__PURE__*/require("../TextField.tokens");
10
+ var labelPlacement_outer = exports.labelPlacement_outer = /*#__PURE__*/(0, _styledComponents.css)(["", "{display:block;margin-bottom:var(", ");}"], _TextField.Label, _TextField2.tokens.labelOffset);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _TextField = /*#__PURE__*/require("../TextField.tokens");
9
+ var _TextField2 = /*#__PURE__*/require("../TextField.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["--plasma_private-textfield-br:var(", ",calc(var(", ") / 4));--plasma_private-textfield-padding:var(", ",calc(var(", ") * 1.618 / 4));--plasma_private-textfield-border-width:var(", ");", "{height:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{border-radius:var(--plasma_private-textfield-br);gap:var(", ");}", " > ", ":first-child{margin-left:var(--plasma_private-textfield-padding);}", " >:not(", "):first-child{margin-left:var(", ",var(--plasma_private-textfield-padding));}", " > ", ":last-child{margin-right:var(--plasma_private-textfield-padding);}", " >:not(", "):last-child{margin-right:var(", ",var(--plasma_private-textfield-padding));}", "{font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin-top:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}"], _TextField.tokens.borderRadius, _TextField.tokens.height, _TextField.tokens.padding, _TextField.tokens.height, _TextField.tokens.borderWidth, _TextField2.Input, _TextField.tokens.height, _TextField.tokens.fontFamily, _TextField.tokens.fontSize, _TextField.tokens.fontStyle, _TextField.tokens.fontWeight, _TextField.tokens.letterSpacing, _TextField.tokens.lineHeight, _TextField2.InputWrapper, _TextField.tokens.contentOffset, _TextField2.InputWrapper, _TextField2.InputLabelWrapper, _TextField2.InputWrapper, _TextField2.InputLabelWrapper, _TextField.tokens.paddingWithContent, _TextField2.InputWrapper, _TextField2.InputLabelWrapper, _TextField2.InputWrapper, _TextField2.InputLabelWrapper, _TextField.tokens.paddingWithContent, _TextField2.Label, _TextField.tokens.labelFontFamily, _TextField.tokens.labelFontSize, _TextField.tokens.labelFontStyle, _TextField.tokens.labelFontWeight, _TextField.tokens.labelLetterSpacing, _TextField.tokens.labelLineHeight, _TextField2.LeftHelper, _TextField.tokens.leftHelperOffset, _TextField.tokens.leftHelperFontFamily, _TextField.tokens.leftHelperFontSize, _TextField.tokens.leftHelperFontStyle, _TextField.tokens.leftHelperFontWeight, _TextField.tokens.leftHelperLetterSpacing, _TextField.tokens.leftHelperLineHeight);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("styled-components");
8
+ var _TextField = /*#__PURE__*/require("../TextField.tokens");
9
+ var _TextField2 = /*#__PURE__*/require("../TextField.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", "{color:var(", ",var(", "));background-color:var(", ");caret-color:var(", ");--plasma_private-textfield-border-color:var(", ");transition:box-shadow 0.1s ease-in,background-color 0.1s ease-in,color 0.1s ease-in;}", ":hover{--plasma_private-textfield-border-color:var(", ");background-color:var(", ",var(", "));}", ":focus-within{--plasma_private-textfield-border-color:var(", ");background-color:var(", ",var(", "));}", "::placeholder{color:var(", ");}", "{color:var(", ");}", "{color:var(", ");}"], _TextField2.InputWrapper, _TextField.tokens.contentColor, _TextField.tokens.color, _TextField.tokens.backgroundColor, _TextField.tokens.caretColor, _TextField.tokens.borderColor, _TextField2.InputWrapper, _TextField.tokens.borderColorHover, _TextField.tokens.backgroundColorHover, _TextField.tokens.backgroundColor, _TextField2.InputWrapper, _TextField.tokens.borderColorFocus, _TextField.tokens.backgroundColorFocus, _TextField.tokens.backgroundColor, _TextField2.Input, _TextField.tokens.placeholderColor, _TextField2.Input, _TextField.tokens.color, _TextField2.LeftHelper, _TextField.tokens.leftHelperColor);
@@ -33,7 +33,7 @@ Object.defineProperty(exports, "textField_labelPlacement_outer", {
33
33
  return _outer.labelPlacement_outer;
34
34
  }
35
35
  });
36
- var _inner = /*#__PURE__*/require("./variations/_label-placement/inner");
37
- var _outer = /*#__PURE__*/require("./variations/_label-placement/outer");
36
+ var _inner = /*#__PURE__*/require("./_label-placement/inner");
37
+ var _outer = /*#__PURE__*/require("./_label-placement/outer");
38
38
  var _TextField = /*#__PURE__*/require("./TextField");
39
39
  var _TextField2 = /*#__PURE__*/require("./TextField.tokens");
@@ -33,12 +33,6 @@ const meta: Meta<typeof Popover> = {
33
33
  },
34
34
  table: { defaultValue: { summary: true } },
35
35
  },
36
- closeOnBeyondTargetHover: {
37
- control: {
38
- type: 'boolean',
39
- },
40
- table: { defaultValue: { summary: true } },
41
- },
42
36
  closeOnEsc: {
43
37
  control: {
44
38
  type: 'boolean',
@@ -68,7 +62,6 @@ const meta: Meta<typeof Popover> = {
68
62
  placement: 'bottom',
69
63
  trigger: 'click',
70
64
  closeOnOverlayClick: true,
71
- closeOnBeyondTargetHover: true,
72
65
  closeOnEsc: true,
73
66
  isFocusTrapped: true,
74
67
  skidding: 0,
@@ -36,6 +36,17 @@ Object.keys(_hooks).forEach(function (key) {
36
36
  }
37
37
  });
38
38
  });
39
+ var _utils = /*#__PURE__*/require("./utils");
40
+ Object.keys(_utils).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _utils[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _utils[key];
47
+ }
48
+ });
49
+ });
39
50
  var _Button = /*#__PURE__*/require("./components/Button");
40
51
  Object.keys(_Button).forEach(function (key) {
41
52
  if (key === "default" || key === "__esModule") return;
@@ -454,6 +465,17 @@ Object.keys(_Progress).forEach(function (key) {
454
465
  }
455
466
  });
456
467
  });
468
+ var _Select = /*#__PURE__*/require("./components/Select");
469
+ Object.keys(_Select).forEach(function (key) {
470
+ if (key === "default" || key === "__esModule") return;
471
+ if (key in exports && exports[key] === _Select[key]) return;
472
+ Object.defineProperty(exports, key, {
473
+ enumerable: true,
474
+ get: function get() {
475
+ return _Select[key];
476
+ }
477
+ });
478
+ });
457
479
  var _Divider = /*#__PURE__*/require("./components/Divider");
458
480
  Object.keys(_Divider).forEach(function (key) {
459
481
  if (key === "default" || key === "__esModule") return;
@@ -62,7 +62,6 @@ export var dropdownRoot = function dropdownRoot(Root) {
62
62
  placement: getPlacements(placement),
63
63
  trigger: trigger,
64
64
  closeOnOverlayClick: closeOnOverlayClick,
65
- closeOnBeyondTargetHover: false,
66
65
  closeOnEsc: closeOnEsc,
67
66
  isFocusTrapped: isFocusTrapped,
68
67
  frame: frame
@@ -57,14 +57,6 @@ export var popoverRoot = function popoverRoot(Root) {
57
57
  view = props.view,
58
58
  onToggle = props.onToggle,
59
59
  rest = _objectWithoutProperties(props, _excluded);
60
- var closeOnOverlayClick = true;
61
- var closeOnBeyondTargetHover = true;
62
- if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
63
- closeOnOverlayClick = false;
64
- }
65
- if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
66
- closeOnBeyondTargetHover = false;
67
- }
68
60
  var rootRef = useRef(null);
69
61
  var popoverRef = useRef(null);
70
62
  var handleRef = useForkRef(rootRef, outerRootRef);
@@ -120,7 +112,7 @@ export var popoverRoot = function popoverRoot(Root) {
120
112
  }
121
113
  }, [closeOnEsc, isOpen, onToggle]);
122
114
  var onDocumentClick = useCallback(function (event) {
123
- if (isOpen && closeOnOverlayClick && onToggle) {
115
+ if (isOpen && props.closeOnOverlayClick && onToggle) {
124
116
  var _rootRef$current;
125
117
  var targetIsRoot = event.target === rootRef.current;
126
118
  var rootHasTarget = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.contains(event.target);
@@ -128,7 +120,7 @@ export var popoverRoot = function popoverRoot(Root) {
128
120
  onToggle(false, event);
129
121
  }
130
122
  }
131
- }, [closeOnOverlayClick, isOpen, onToggle]);
123
+ }, [props.closeOnOverlayClick, isOpen, onToggle]);
132
124
  var onClick = useCallback(function (event) {
133
125
  if (trigger === 'click') {
134
126
  var _popoverRef$current;
@@ -164,7 +156,7 @@ export var popoverRoot = function popoverRoot(Root) {
164
156
  return function () {
165
157
  return document.removeEventListener('click', onDocumentClick);
166
158
  };
167
- }, [closeOnOverlayClick, isOpen, onToggle]);
159
+ }, [isOpen, onToggle]);
168
160
  useEffect(function () {
169
161
  window.addEventListener('keydown', onEscape);
170
162
  return function () {
@@ -211,22 +203,19 @@ export var popoverRoot = function popoverRoot(Root) {
211
203
  Promise.resolve().then(forceUpdate);
212
204
  }, [isOpen, children, forceUpdate]);
213
205
  return /*#__PURE__*/React.createElement(StyledWrapper, {
214
- className: classes.wrapper
206
+ className: classes.wrapper,
207
+ onMouseEnter: onMouseEnter,
208
+ onMouseLeave: onMouseLeave
215
209
  }, /*#__PURE__*/React.createElement(StyledRoot, {
216
210
  ref: handleRef,
217
211
  onClick: onClick,
218
- onMouseEnter: onMouseEnter,
219
- onMouseLeave: onMouseLeave,
220
212
  onFocus: onFocus,
221
213
  onBlur: onBlur,
222
214
  className: cx(className, classes.target)
223
215
  }, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _extends({
224
216
  view: view,
225
217
  className: className
226
- }, rest, {
227
- onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
228
- onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
229
- }), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
218
+ }, rest), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
230
219
  className: classes.root,
231
220
  ref: popoverForkRef,
232
221
  style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
@@ -3,7 +3,7 @@ import { DEFAULT_Z_INDEX } from '../Popup/utils';
3
3
  import { classes, tokens } from './Popover.tokens';
4
4
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
5
5
  componentId: "plasma-new-hope__sc-tnpyex-0"
6
- })([""]);
6
+ })(["display:inline-block;"]);
7
7
  export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
8
8
  componentId: "plasma-new-hope__sc-tnpyex-1"
9
9
  })(["display:inline-flex;box-sizing:border-box;position:relative;"]);
@@ -111,7 +111,8 @@ export var SelectTarget = /*#__PURE__*/forwardRef(function (_ref, ref) {
111
111
  "aria-label": label,
112
112
  className: cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
113
113
  onWheel: onWheel,
114
- onKeyDown: onKeyDown
114
+ onKeyDown: onKeyDown,
115
+ stretching: "filled"
115
116
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(StyledText, {
116
117
  className: selectTargeText
117
118
  }, textContent) : /*#__PURE__*/React.createElement(StyledChipsWrapper, {
@@ -1,221 +1,91 @@
1
- var _excluded = ["id", "contentLeft", "contentRight", "label", "labelPlacement", "placeholder", "leftHelper", "enumerationType", "view", "size", "readOnly", "disabled", "values", "onChange", "onChangeChips", "onSearch"];
1
+ var _excluded = ["contentLeft", "contentRight", "children", "label", "labelPlacement", "placeholder", "leftHelper", "view", "size", "disabled", "onChange", "onSearch"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { forwardRef, useEffect, useRef, useState } from 'react';
12
- import { safeUseId } from '@salutejs/plasma-core';
5
+ import React, { forwardRef } from 'react';
13
6
  import { css } from 'styled-components';
14
- import { cx } from '../../utils';
15
- import { base as sizeCSS } from './variations/_size/base';
16
- import { base as viewCSS } from './variations/_view/base';
17
- import { base as disabledCSS } from './variations/_disabled/base';
18
- import { base as readOnlyCSS } from './variations/_read-only/base';
19
- import { base as labelPlacementCSS } from './variations/_label-placement/base';
20
- import { Input, LeftHelper, Label, InputWrapper, InputLabelWrapper, StyledContentLeft, StyledContentRight, StyledChips } from './TextField.styles';
21
- import { classes } from './TextField.tokens';
22
- import { TextFieldChip } from './ui';
23
- import { useKeyNavigation } from './hooks/useKeyNavigation';
24
- export var base = /*#__PURE__*/css(["display:block;overflow:hidden;"]);
7
+ import { safeUseId } from '@salutejs/plasma-core';
8
+ import { base as size } from './_size/base';
9
+ import { base as view } from './_view/base';
10
+ import { base as disabled } from './_disabled/base';
11
+ import { base as labelPlacement } from './_label-placement/base';
12
+ import { Input, LeftHelper, Label, InputWrapper, InputLabelWrapper } from './TextField.styles';
13
+ var base = /*#__PURE__*/css(["display:block;"]);
25
14
  export var textFieldRoot = function textFieldRoot(Root) {
26
15
  return /*#__PURE__*/forwardRef(function (props, ref) {
27
- var id = props.id,
28
- contentLeft = props.contentLeft,
16
+ var contentLeft = props.contentLeft,
29
17
  contentRight = props.contentRight,
18
+ children = props.children,
30
19
  label = props.label,
31
20
  labelPlacement = props.labelPlacement,
32
21
  placeholder = props.placeholder,
33
22
  leftHelper = props.leftHelper,
34
- _props$enumerationTyp = props.enumerationType,
35
- enumerationType = _props$enumerationTyp === void 0 ? 'plain' : _props$enumerationTyp,
36
23
  view = props.view,
37
24
  size = props.size,
38
- _props$readOnly = props.readOnly,
39
- readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
40
- _props$disabled = props.disabled,
41
- disabled = _props$disabled === void 0 ? false : _props$disabled,
42
- values = props.values,
25
+ disabled = props.disabled,
43
26
  onChange = props.onChange,
44
- onChangeChips = props.onChangeChips,
45
27
  onSearch = props.onSearch,
46
28
  rest = _objectWithoutProperties(props, _excluded);
47
- var contentRef = useRef(null);
48
- var inputRef = useRef(null);
49
- var chipsRefs = useRef([]);
50
- var controlledRefs = {
51
- contentRef: contentRef,
52
- inputRef: inputRef,
53
- chipsRefs: chipsRefs
54
- };
55
- var _useState = useState([]),
56
- _useState2 = _slicedToArray(_useState, 2),
57
- chips = _useState2[0],
58
- setChips = _useState2[1];
59
- var uniqId = safeUseId();
60
- var innerId = id || uniqId;
61
- var labelId = safeUseId();
62
- var helperTextId = safeUseId();
63
- var isChipEnumeration = enumerationType === 'chip';
64
- var hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';
65
- var labelInside = size !== 'xs' && labelPlacement === 'inner';
66
- var innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;
67
- var innerPlaceholderValue = hideLabel ? label : placeholder;
68
- var innerLabelValue = hideLabel ? undefined : label;
69
- var isChipsVisible = isChipEnumeration && (chips === null || chips === void 0 ? void 0 : chips.length);
70
- var withHasChips = isChipsVisible ? classes.hasChips : undefined;
71
- var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;
72
- var wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;
73
29
  var handleChange = function handleChange(event) {
74
- if (disabled || readOnly) {
75
- return;
76
- }
77
30
  var _event$target = event.target,
78
31
  maxLength = _event$target.maxLength,
79
32
  value = _event$target.value;
80
- if (maxLength !== -1 && value.length > maxLength) {
81
- return;
82
- }
83
- onChange === null || onChange === void 0 ? void 0 : onChange(event);
84
- };
85
- var updateChips = function updateChips(newChips, newValues) {
86
- setChips(newChips);
87
- onChangeChips === null || onChangeChips === void 0 ? void 0 : onChangeChips(newValues);
88
- };
89
- var _useKeyNavigation = useKeyNavigation({
90
- controlledRefs: controlledRefs,
91
- disabled: disabled,
92
- readOnly: readOnly,
93
- chips: chips,
94
- enumerationType: enumerationType,
95
- updateChips: updateChips,
96
- onSearch: onSearch,
97
- onChange: onChange
98
- }),
99
- handleInputKeydown = _useKeyNavigation.handleInputKeydown,
100
- handleChipKeyDown = _useKeyNavigation.handleChipKeyDown,
101
- onChipClear = _useKeyNavigation.onChipClear,
102
- handleContentKeyDown = _useKeyNavigation.handleContentKeyDown;
103
- var onChipClick = function onChipClick(event) {
104
- return event.stopPropagation();
105
- };
106
- var handleInputFocus = function handleInputFocus() {
107
- if (readOnly || disabled || !(inputRef !== null && inputRef !== void 0 && inputRef.current)) {
33
+ if (!onChange || maxLength !== -1 && value.length > maxLength) {
108
34
  return;
109
35
  }
110
- inputRef.current.scrollIntoView({
111
- behavior: 'smooth',
112
- block: 'center',
113
- inline: 'center'
114
- });
115
- inputRef.current.focus({
116
- preventScroll: true
117
- });
36
+ onChange(event);
118
37
  };
119
- var getRef = function getRef(element, index) {
120
- if (element && chipsRefs !== null && chipsRefs !== void 0 && chipsRefs.current) {
121
- chipsRefs.current[index] = element;
38
+ var handleKeyUp = function handleKeyUp(event) {
39
+ if (event.key === 'Enter' && onSearch) {
40
+ onSearch(event.target.value, event);
122
41
  }
123
42
  };
124
- useEffect(function () {
125
- if (!isChipEnumeration && !(values !== null && values !== void 0 && values.length)) {
126
- return;
127
- }
128
- var newChips = (values === null || values === void 0 ? void 0 : values.map(function (value, index) {
129
- return {
130
- id: "".concat(index, "_").concat(value),
131
- text: value
132
- };
133
- })) || [];
134
- setChips(newChips);
135
- }, [isChipEnumeration, values]);
43
+ var labelInside = labelPlacement === 'inner';
44
+ var lableId = safeUseId();
45
+ var helperTextId = safeUseId();
136
46
  return /*#__PURE__*/React.createElement(Root, {
137
- ref: ref,
138
47
  view: view,
139
48
  size: size,
140
49
  disabled: disabled,
141
- readOnly: !disabled && readOnly,
142
- labelPlacement: innerLabelPlacementValue,
143
- onClick: handleInputFocus
144
- }, labelInside || innerLabelValue && /*#__PURE__*/React.createElement(Label, {
145
- id: labelId,
146
- htmlFor: id
147
- }, innerLabelValue), /*#__PURE__*/React.createElement(InputWrapper, {
148
- className: cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
149
- }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(InputLabelWrapper, {
150
- tabIndex: -1,
151
- ref: contentRef,
152
- onKeyDown: handleContentKeyDown,
153
- className: withHasChips
154
- }, 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) {
155
- var chipId = _ref.id,
156
- text = _ref.text;
157
- return /*#__PURE__*/React.createElement(TextFieldChip, {
158
- ref: function ref(element) {
159
- return getRef(element, index);
160
- },
161
- chipId: chipId,
162
- key: "".concat(chipId, "_").concat(index),
163
- disabled: disabled,
164
- readOnly: readOnly,
165
- value: text,
166
- text: text,
167
- onKeyDown: function onKeyDown(event) {
168
- return handleChipKeyDown(event, chipId);
169
- },
170
- onClear: function onClear() {
171
- return onChipClear(chipId);
172
- },
173
- onClick: onChipClick
174
- });
175
- })), /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
176
- ref: inputRef,
177
- id: innerId,
178
- "aria-labelledby": labelId,
50
+ labelPlacement: labelPlacement
51
+ }, labelInside || label && /*#__PURE__*/React.createElement(Label, {
52
+ id: lableId
53
+ }, label), /*#__PURE__*/React.createElement(InputWrapper, null, contentLeft, /*#__PURE__*/React.createElement(InputLabelWrapper, null, /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
54
+ ref: ref,
55
+ "aria-labelledby": lableId,
179
56
  "aria-describedby": helperTextId,
180
- placeholder: innerPlaceholderValue,
57
+ placeholder: placeholder,
181
58
  disabled: disabled,
182
- readOnly: !disabled && readOnly,
183
59
  onChange: handleChange,
184
- onKeyDown: handleInputKeydown
60
+ onKeyUp: handleKeyUp
185
61
  })), labelInside && /*#__PURE__*/React.createElement(Label, {
186
- id: labelId,
187
- htmlFor: innerId
188
- }, innerLabelValue)), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
62
+ id: lableId
63
+ }, label)), contentRight), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
189
64
  id: helperTextId
190
65
  }, leftHelper));
191
66
  });
192
67
  };
193
68
  export var textFieldConfig = {
194
69
  name: 'TextField',
195
- tag: 'div',
70
+ tag: 'label',
196
71
  layout: textFieldRoot,
197
72
  base: base,
198
73
  variations: {
199
74
  view: {
200
- css: viewCSS
75
+ css: view
201
76
  },
202
77
  size: {
203
- css: sizeCSS
78
+ css: size
204
79
  },
205
80
  disabled: {
206
- css: disabledCSS,
207
- attrs: true
208
- },
209
- readOnly: {
210
- css: readOnlyCSS,
81
+ css: disabled,
211
82
  attrs: true
212
83
  },
213
84
  labelPlacement: {
214
- css: labelPlacementCSS
85
+ css: labelPlacement
215
86
  }
216
87
  },
217
88
  defaults: {
218
- size: 'm',
219
- view: 'default'
89
+ size: 'm'
220
90
  }
221
91
  };