@salutejs/plasma-new-hope 0.72.0-canary.1160.8612911363.0 → 0.72.0-canary.1161.8613087402.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (427) hide show
  1. package/cjs/components/Combobox/Combobox.css +10 -10
  2. package/cjs/components/Combobox/Combobox.styles.js +5 -5
  3. package/cjs/components/Combobox/Combobox.styles.js.map +1 -1
  4. package/cjs/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
  5. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  6. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  7. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  8. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  9. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  10. package/cjs/components/Dropdown/Dropdown.css +4 -4
  11. package/cjs/components/Dropdown/Dropdown.js +0 -1
  12. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  13. package/cjs/components/Pagination/Pagination.css +4 -4
  14. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  15. package/cjs/components/Popover/Popover.css +4 -4
  16. package/cjs/components/Popover/Popover.js +33 -43
  17. package/cjs/components/Popover/Popover.js.map +1 -1
  18. package/cjs/components/Popover/Popover.styles.js +1 -1
  19. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  20. package/{es/components/Popover/Popover.styles_1rk9t6z.css → cjs/components/Popover/Popover.styles_1ggb66y.css} +1 -1
  21. package/cjs/components/Select/Select.css +4 -4
  22. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  23. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
  24. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  25. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
  26. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  27. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  28. package/cjs/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
  29. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  30. package/cjs/components/{TextField/variations/_read-only → Select/ui/SelectDivider/variations/_view}/base.js +2 -2
  31. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  32. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  33. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
  34. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  35. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
  36. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  37. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  38. package/cjs/components/{TextField → Select/ui/SelectFooter}/variations/_size/base.js +2 -2
  39. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  40. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  41. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
  42. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  43. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  44. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  45. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
  46. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  47. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
  48. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  49. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  50. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
  51. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  52. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  53. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
  54. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  55. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  56. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  57. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
  58. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  59. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
  60. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  61. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  62. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
  63. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  64. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  65. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
  66. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  67. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  68. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  69. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  70. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  71. package/cjs/components/TextField/TextField.js +40 -166
  72. package/cjs/components/TextField/TextField.js.map +1 -1
  73. package/cjs/components/TextField/TextField.styles.js +11 -27
  74. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  75. package/cjs/components/TextField/TextField.styles_2qw1n8.css +5 -0
  76. package/cjs/components/TextField/TextField.tokens.js +20 -68
  77. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  78. package/cjs/components/TextField/TextField_1lzb2r1.css +1 -0
  79. package/cjs/components/TextField/{variations/_disabled → _disabled}/base.js +2 -2
  80. package/cjs/components/TextField/_disabled/base.js.map +1 -0
  81. package/cjs/components/TextField/_disabled/base_so3w81.css +1 -0
  82. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
  83. package/cjs/components/TextField/_label-placement/base.js.map +1 -0
  84. package/cjs/components/TextField/_label-placement/base_x642ct.css +1 -0
  85. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/inner.js +2 -2
  86. package/cjs/components/TextField/_label-placement/inner.js.map +1 -0
  87. package/cjs/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
  88. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +2 -2
  89. package/cjs/components/TextField/_label-placement/outer.js.map +1 -0
  90. package/cjs/components/TextField/_label-placement/outer_19ekaek.css +1 -0
  91. package/cjs/components/TextField/_size/base.js +9 -0
  92. package/cjs/components/TextField/_size/base.js.map +1 -0
  93. package/cjs/components/TextField/_size/base_b5smyu.css +1 -0
  94. package/cjs/components/TextField/_view/base.js +9 -0
  95. package/cjs/components/TextField/_view/base.js.map +1 -0
  96. package/cjs/components/TextField/_view/base_5bqzed.css +1 -0
  97. package/cjs/index.css +42 -49
  98. package/cjs/index.js +41 -6
  99. package/cjs/index.js.map +1 -1
  100. package/cjs/utils/index.js +13 -1
  101. package/cjs/utils/index.js.map +1 -1
  102. package/cjs/utils/react.js +12 -2
  103. package/cjs/utils/react.js.map +1 -1
  104. package/es/components/Combobox/Combobox.css +10 -10
  105. package/es/components/Combobox/Combobox.styles.js +5 -5
  106. package/es/components/Combobox/Combobox.styles.js.map +1 -1
  107. package/es/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
  108. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  109. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  110. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  111. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  112. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  113. package/es/components/Dropdown/Dropdown.css +4 -4
  114. package/es/components/Dropdown/Dropdown.js +0 -1
  115. package/es/components/Dropdown/Dropdown.js.map +1 -1
  116. package/es/components/Pagination/Pagination.css +4 -4
  117. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  118. package/es/components/Popover/Popover.css +4 -4
  119. package/es/components/Popover/Popover.js +33 -43
  120. package/es/components/Popover/Popover.js.map +1 -1
  121. package/es/components/Popover/Popover.styles.js +1 -1
  122. package/es/components/Popover/Popover.styles.js.map +1 -1
  123. package/{cjs/components/Popover/Popover.styles_1rk9t6z.css → es/components/Popover/Popover.styles_1ggb66y.css} +1 -1
  124. package/es/components/Select/Select.css +4 -4
  125. package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  126. package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
  127. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  128. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
  129. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  130. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  131. package/es/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
  132. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  133. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  134. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
  135. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  136. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  137. package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  138. package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
  139. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  140. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
  141. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  142. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  143. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
  144. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  145. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  146. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
  147. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  148. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  149. package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  150. package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
  151. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  152. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
  153. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  154. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  155. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
  156. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  157. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  158. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
  159. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  160. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  161. package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  162. package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
  163. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  164. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
  165. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  166. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  167. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
  168. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  169. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  170. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
  171. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  172. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  173. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  174. package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  175. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  176. package/es/components/TextField/TextField.js +44 -169
  177. package/es/components/TextField/TextField.js.map +1 -1
  178. package/es/components/TextField/TextField.styles.js +12 -25
  179. package/es/components/TextField/TextField.styles.js.map +1 -1
  180. package/es/components/TextField/TextField.styles_2qw1n8.css +5 -0
  181. package/es/components/TextField/TextField.tokens.js +21 -68
  182. package/es/components/TextField/TextField.tokens.js.map +1 -1
  183. package/es/components/TextField/TextField_1lzb2r1.css +1 -0
  184. package/es/components/TextField/_disabled/base.js +5 -0
  185. package/es/components/TextField/_disabled/base.js.map +1 -0
  186. package/es/components/TextField/_disabled/base_so3w81.css +1 -0
  187. package/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
  188. package/es/components/TextField/_label-placement/base.js.map +1 -0
  189. package/es/components/TextField/_label-placement/base_x642ct.css +1 -0
  190. package/es/components/TextField/_label-placement/inner.js +5 -0
  191. package/es/components/TextField/_label-placement/inner.js.map +1 -0
  192. package/es/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
  193. package/es/components/TextField/_label-placement/outer.js +5 -0
  194. package/es/components/TextField/_label-placement/outer.js.map +1 -0
  195. package/es/components/TextField/_label-placement/outer_19ekaek.css +1 -0
  196. package/es/components/TextField/_size/base.js +5 -0
  197. package/es/components/TextField/_size/base.js.map +1 -0
  198. package/es/components/TextField/_size/base_b5smyu.css +1 -0
  199. package/es/components/TextField/_view/base.js +5 -0
  200. package/es/components/TextField/_view/base.js.map +1 -0
  201. package/es/components/TextField/_view/base_5bqzed.css +1 -0
  202. package/es/index.css +42 -49
  203. package/es/index.js +15 -2
  204. package/es/index.js.map +1 -1
  205. package/es/utils/index.js +11 -2
  206. package/es/utils/index.js.map +1 -1
  207. package/es/utils/react.js +9 -2
  208. package/es/utils/react.js.map +1 -1
  209. package/package.json +2 -2
  210. package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
  211. package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
  212. package/styled-components/cjs/components/Popover/Popover.js +33 -43
  213. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  214. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  215. package/styled-components/cjs/components/TextField/TextField.js +43 -173
  216. package/styled-components/cjs/components/TextField/TextField.styles.js +10 -18
  217. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +0 -24
  218. package/styled-components/cjs/components/TextField/TextField.tokens.js +21 -68
  219. package/styled-components/cjs/components/TextField/_disabled/base.js +9 -0
  220. package/styled-components/cjs/components/TextField/_label-placement/inner.js +10 -0
  221. package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +3 -3
  222. package/styled-components/cjs/components/TextField/_size/base.js +10 -0
  223. package/styled-components/cjs/components/TextField/_view/base.js +10 -0
  224. package/styled-components/cjs/components/TextField/index.js +2 -2
  225. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  226. package/styled-components/cjs/index.js +22 -0
  227. package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
  228. package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
  229. package/styled-components/es/components/Popover/Popover.js +33 -43
  230. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  231. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  232. package/styled-components/es/components/TextField/TextField.js +47 -177
  233. package/styled-components/es/components/TextField/TextField.styles.js +9 -17
  234. package/styled-components/es/components/TextField/TextField.template-doc.mdx +0 -24
  235. package/styled-components/es/components/TextField/TextField.tokens.js +20 -67
  236. package/styled-components/es/components/TextField/_disabled/base.js +3 -0
  237. package/styled-components/es/components/TextField/_label-placement/inner.js +4 -0
  238. package/styled-components/es/components/TextField/_label-placement/outer.js +4 -0
  239. package/styled-components/es/components/TextField/_size/base.js +4 -0
  240. package/styled-components/es/components/TextField/_view/base.js +4 -0
  241. package/styled-components/es/components/TextField/index.js +2 -2
  242. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  243. package/styled-components/es/index.js +2 -0
  244. package/types/components/Combobox/Combobox.styles.d.ts +2 -8
  245. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  246. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  247. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
  248. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  249. package/types/components/Popover/Popover.d.ts +2 -2
  250. package/types/components/Popover/Popover.d.ts.map +1 -1
  251. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  252. package/types/components/Popover/Popover.types.d.ts +12 -19
  253. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  254. package/types/components/Select/Select.styles.d.ts +2 -8
  255. package/types/components/Select/Select.styles.d.ts.map +1 -1
  256. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  257. package/types/components/TextField/TextField.d.ts +3 -8
  258. package/types/components/TextField/TextField.d.ts.map +1 -1
  259. package/types/components/TextField/TextField.styles.d.ts +3 -6
  260. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  261. package/types/components/TextField/TextField.tokens.d.ts +8 -57
  262. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  263. package/types/components/TextField/TextField.types.d.ts +3 -45
  264. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  265. package/types/components/TextField/_disabled/base.d.ts.map +1 -0
  266. package/types/components/TextField/_label-placement/base.d.ts.map +1 -0
  267. package/types/components/TextField/_label-placement/index.d.ts.map +1 -0
  268. package/types/components/TextField/_label-placement/inner.d.ts.map +1 -0
  269. package/types/components/TextField/_label-placement/outer.d.ts.map +1 -0
  270. package/types/components/TextField/_size/base.d.ts.map +1 -0
  271. package/types/components/TextField/_view/base.d.ts.map +1 -0
  272. package/types/components/TextField/index.d.ts +2 -3
  273. package/types/components/TextField/index.d.ts.map +1 -1
  274. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
  275. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  276. package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
  277. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  278. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
  279. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  280. package/types/index.d.ts +2 -0
  281. package/types/index.d.ts.map +1 -1
  282. package/cjs/components/TextField/TextField.styles_1b1mddp.css +0 -8
  283. package/cjs/components/TextField/TextField_wctd2m.css +0 -1
  284. package/cjs/components/TextField/hooks/useKeyNavigation.js +0 -131
  285. package/cjs/components/TextField/hooks/useKeyNavigation.js.map +0 -1
  286. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
  287. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -38
  288. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
  289. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -26
  290. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
  291. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css +0 -1
  292. package/cjs/components/TextField/variations/_disabled/base.js.map +0 -1
  293. package/cjs/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  294. package/cjs/components/TextField/variations/_label-placement/base.js.map +0 -1
  295. package/cjs/components/TextField/variations/_label-placement/inner.js.map +0 -1
  296. package/cjs/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
  297. package/cjs/components/TextField/variations/_label-placement/outer.js.map +0 -1
  298. package/cjs/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
  299. package/cjs/components/TextField/variations/_read-only/base.js.map +0 -1
  300. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  301. package/cjs/components/TextField/variations/_size/base.js.map +0 -1
  302. package/cjs/components/TextField/variations/_size/base_1khzr9t.css +0 -1
  303. package/cjs/components/TextField/variations/_view/base.js.map +0 -1
  304. package/cjs/components/TextField/variations/_view/base_1qd77x6.css +0 -1
  305. package/es/components/TextField/TextField.styles_1b1mddp.css +0 -8
  306. package/es/components/TextField/TextField_wctd2m.css +0 -1
  307. package/es/components/TextField/hooks/useKeyNavigation.js +0 -126
  308. package/es/components/TextField/hooks/useKeyNavigation.js.map +0 -1
  309. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
  310. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -34
  311. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
  312. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -22
  313. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
  314. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css +0 -1
  315. package/es/components/TextField/variations/_disabled/base.js +0 -5
  316. package/es/components/TextField/variations/_disabled/base.js.map +0 -1
  317. package/es/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  318. package/es/components/TextField/variations/_label-placement/base.js.map +0 -1
  319. package/es/components/TextField/variations/_label-placement/inner.js +0 -5
  320. package/es/components/TextField/variations/_label-placement/inner.js.map +0 -1
  321. package/es/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
  322. package/es/components/TextField/variations/_label-placement/outer.js +0 -5
  323. package/es/components/TextField/variations/_label-placement/outer.js.map +0 -1
  324. package/es/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
  325. package/es/components/TextField/variations/_read-only/base.js +0 -5
  326. package/es/components/TextField/variations/_read-only/base.js.map +0 -1
  327. package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  328. package/es/components/TextField/variations/_size/base.js +0 -5
  329. package/es/components/TextField/variations/_size/base.js.map +0 -1
  330. package/es/components/TextField/variations/_size/base_1khzr9t.css +0 -1
  331. package/es/components/TextField/variations/_view/base.js.map +0 -1
  332. package/es/components/TextField/variations/_view/base_1qd77x6.css +0 -1
  333. package/styled-components/cjs/components/TextField/hooks/index.js +0 -12
  334. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.js +0 -137
  335. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -39
  336. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -25
  337. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -5
  338. package/styled-components/cjs/components/TextField/ui/index.js +0 -12
  339. package/styled-components/cjs/components/TextField/variations/_disabled/base.js +0 -10
  340. package/styled-components/cjs/components/TextField/variations/_label-placement/inner.js +0 -10
  341. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +0 -10
  342. package/styled-components/cjs/components/TextField/variations/_read-only/tokens.json +0 -1
  343. package/styled-components/cjs/components/TextField/variations/_size/base.js +0 -10
  344. package/styled-components/cjs/components/TextField/variations/_view/base.js +0 -10
  345. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +0 -43
  346. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.js +0 -11
  347. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -133
  348. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +0 -40
  349. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.js +0 -11
  350. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -133
  351. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.config.js +0 -43
  352. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.js +0 -11
  353. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -133
  354. package/styled-components/es/components/TextField/hooks/index.js +0 -1
  355. package/styled-components/es/components/TextField/hooks/useKeyNavigation.js +0 -131
  356. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -30
  357. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -19
  358. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -1
  359. package/styled-components/es/components/TextField/ui/index.js +0 -1
  360. package/styled-components/es/components/TextField/variations/_disabled/base.js +0 -4
  361. package/styled-components/es/components/TextField/variations/_label-placement/inner.js +0 -4
  362. package/styled-components/es/components/TextField/variations/_label-placement/outer.js +0 -4
  363. package/styled-components/es/components/TextField/variations/_read-only/base.js +0 -4
  364. package/styled-components/es/components/TextField/variations/_read-only/tokens.json +0 -1
  365. package/styled-components/es/components/TextField/variations/_size/base.js +0 -4
  366. package/styled-components/es/components/TextField/variations/_view/base.js +0 -4
  367. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +0 -37
  368. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.js +0 -5
  369. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -133
  370. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +0 -34
  371. package/styled-components/es/examples/plasma_web/components/TextField/TextField.js +0 -5
  372. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -133
  373. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.config.js +0 -37
  374. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.js +0 -5
  375. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -133
  376. package/types/components/TextField/hooks/index.d.ts +0 -2
  377. package/types/components/TextField/hooks/index.d.ts.map +0 -1
  378. package/types/components/TextField/hooks/useKeyNavigation.d.ts +0 -17
  379. package/types/components/TextField/hooks/useKeyNavigation.d.ts.map +0 -1
  380. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +0 -7
  381. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +0 -1
  382. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -3
  383. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +0 -1
  384. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +0 -37
  385. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +0 -1
  386. package/types/components/TextField/ui/index.d.ts +0 -2
  387. package/types/components/TextField/ui/index.d.ts.map +0 -1
  388. package/types/components/TextField/variations/_disabled/base.d.ts.map +0 -1
  389. package/types/components/TextField/variations/_label-placement/base.d.ts.map +0 -1
  390. package/types/components/TextField/variations/_label-placement/index.d.ts.map +0 -1
  391. package/types/components/TextField/variations/_label-placement/inner.d.ts.map +0 -1
  392. package/types/components/TextField/variations/_label-placement/outer.d.ts.map +0 -1
  393. package/types/components/TextField/variations/_read-only/base.d.ts.map +0 -1
  394. package/types/components/TextField/variations/_size/base.d.ts.map +0 -1
  395. package/types/components/TextField/variations/_view/base.d.ts +0 -2
  396. package/types/components/TextField/variations/_view/base.d.ts.map +0 -1
  397. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +0 -32
  398. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +0 -1
  399. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -26
  400. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +0 -1
  401. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +0 -32
  402. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +0 -1
  403. package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -26
  404. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +0 -1
  405. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts +0 -32
  406. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts.map +0 -1
  407. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +0 -26
  408. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +0 -1
  409. /package/cjs/components/{TextField/variations/_label-placement → Select/ui/SelectDivider/variations/_size}/base_x642ct.css +0 -0
  410. /package/{es/components/TextField/variations/_label-placement → cjs/components/Select/ui/SelectDivider/variations/_view}/base_x642ct.css +0 -0
  411. /package/styled-components/cjs/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
  412. /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
  413. /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
  414. /package/styled-components/cjs/components/TextField/{variations/_size → _size}/tokens.json +0 -0
  415. /package/styled-components/cjs/components/TextField/{variations/_view → _view}/tokens.json +0 -0
  416. /package/styled-components/es/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
  417. /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
  418. /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
  419. /package/styled-components/es/components/TextField/{variations/_size → _size}/tokens.json +0 -0
  420. /package/styled-components/es/components/TextField/{variations/_view → _view}/tokens.json +0 -0
  421. /package/types/components/TextField/{variations/_disabled → _disabled}/base.d.ts +0 -0
  422. /package/types/components/TextField/{variations/_label-placement → _label-placement}/base.d.ts +0 -0
  423. /package/types/components/TextField/{variations/_label-placement → _label-placement}/index.d.ts +0 -0
  424. /package/types/components/TextField/{variations/_label-placement → _label-placement}/inner.d.ts +0 -0
  425. /package/types/components/TextField/{variations/_label-placement → _label-placement}/outer.d.ts +0 -0
  426. /package/types/components/TextField/{variations/_read-only → _size}/base.d.ts +0 -0
  427. /package/types/components/TextField/{variations/_size → _view}/base.d.ts +0 -0
@@ -120,7 +120,8 @@ var SelectTarget = exports.SelectTarget = /*#__PURE__*/(0, _react.forwardRef)(fu
120
120
  "aria-label": label,
121
121
  className: (0, _utils.cx)(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
122
122
  onWheel: onWheel,
123
- onKeyDown: onKeyDown
123
+ onKeyDown: onKeyDown,
124
+ stretching: "filled"
124
125
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/_react["default"].createElement(_SelectTarget.StyledText, {
125
126
  className: selectTargeText
126
127
  }, textContent) : /*#__PURE__*/_react["default"].createElement(_SelectTarget.StyledChipsWrapper, {
@@ -4,204 +4,79 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.textFieldRoot = exports.textFieldConfig = exports.base = void 0;
7
+ exports.textFieldRoot = exports.textFieldConfig = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
10
9
  var _styledComponents = /*#__PURE__*/require("styled-components");
11
- var _utils = /*#__PURE__*/require("../../utils");
12
- var _base = /*#__PURE__*/require("./variations/_size/base");
13
- var _base2 = /*#__PURE__*/require("./variations/_view/base");
14
- var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
15
- var _base4 = /*#__PURE__*/require("./variations/_read-only/base");
16
- var _base5 = /*#__PURE__*/require("./variations/_label-placement/base");
10
+ var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
11
+ var _base = /*#__PURE__*/require("./_size/base");
12
+ var _base2 = /*#__PURE__*/require("./_view/base");
13
+ var _base3 = /*#__PURE__*/require("./_disabled/base");
14
+ var _base4 = /*#__PURE__*/require("./_label-placement/base");
17
15
  var _TextField = /*#__PURE__*/require("./TextField.styles");
18
- var _TextField2 = /*#__PURE__*/require("./TextField.tokens");
19
- var _ui = /*#__PURE__*/require("./ui");
20
- var _useKeyNavigation2 = /*#__PURE__*/require("./hooks/useKeyNavigation");
21
- var _excluded = ["id", "contentLeft", "contentRight", "label", "labelPlacement", "placeholder", "leftHelper", "enumerationType", "view", "size", "readOnly", "disabled", "values", "onChange", "onChangeChips", "onSearch"];
16
+ var _excluded = ["contentLeft", "contentRight", "children", "label", "labelPlacement", "placeholder", "leftHelper", "view", "size", "disabled", "onChange", "onSearch"];
22
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
24
19
  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); }
25
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
26
- 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."); }
27
- 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); }
28
- 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; }
29
- 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; } }
30
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
20
  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; }
32
21
  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; }
33
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["display:block;overflow:hidden;"]);
22
+ var base = /*#__PURE__*/(0, _styledComponents.css)(["display:block;"]);
34
23
  var textFieldRoot = exports.textFieldRoot = function textFieldRoot(Root) {
35
- return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
36
- var id = _ref.id,
37
- contentLeft = _ref.contentLeft,
38
- contentRight = _ref.contentRight,
39
- label = _ref.label,
40
- labelPlacement = _ref.labelPlacement,
41
- placeholder = _ref.placeholder,
42
- leftHelper = _ref.leftHelper,
43
- _ref$enumerationType = _ref.enumerationType,
44
- enumerationType = _ref$enumerationType === void 0 ? 'plain' : _ref$enumerationType,
45
- view = _ref.view,
46
- size = _ref.size,
47
- _ref$readOnly = _ref.readOnly,
48
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
49
- _ref$disabled = _ref.disabled,
50
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
51
- values = _ref.values,
52
- onChange = _ref.onChange,
53
- onChangeChips = _ref.onChangeChips,
54
- onSearch = _ref.onSearch,
55
- rest = _objectWithoutProperties(_ref, _excluded);
56
- var contentRef = (0, _react.useRef)(null);
57
- var inputRef = (0, _react.useRef)(null);
58
- var chipsRefs = (0, _react.useRef)([]);
59
- var controlledRefs = {
60
- contentRef: contentRef,
61
- inputRef: inputRef,
62
- chipsRefs: chipsRefs
63
- };
64
- var _useState = (0, _react.useState)([]),
65
- _useState2 = _slicedToArray(_useState, 2),
66
- chips = _useState2[0],
67
- setChips = _useState2[1];
68
- var uniqId = (0, _plasmaCore.safeUseId)();
69
- var innerId = id || uniqId;
70
- var labelId = (0, _plasmaCore.safeUseId)();
71
- var helperTextId = (0, _plasmaCore.safeUseId)();
72
- var isChipEnumeration = enumerationType === 'chip';
73
- var hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';
74
- var labelInside = size !== 'xs' && labelPlacement === 'inner';
75
- var innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;
76
- var innerPlaceholderValue = hideLabel ? label : placeholder;
77
- var innerLabelValue = hideLabel ? undefined : label;
78
- var isChipsVisible = isChipEnumeration && (chips === null || chips === void 0 ? void 0 : chips.length);
79
- var withHasChips = isChipsVisible ? _TextField2.classes.hasChips : undefined;
80
- var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? _TextField2.classes.hasEmptyContentLeft : undefined;
81
- var wrapperWithoutRightContent = !contentRight && isChipsVisible ? _TextField2.classes.hasEmptyContentRight : undefined;
24
+ return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
25
+ var contentLeft = props.contentLeft,
26
+ contentRight = props.contentRight,
27
+ children = props.children,
28
+ label = props.label,
29
+ labelPlacement = props.labelPlacement,
30
+ placeholder = props.placeholder,
31
+ leftHelper = props.leftHelper,
32
+ view = props.view,
33
+ size = props.size,
34
+ disabled = props.disabled,
35
+ onChange = props.onChange,
36
+ onSearch = props.onSearch,
37
+ rest = _objectWithoutProperties(props, _excluded);
82
38
  var handleChange = function handleChange(event) {
83
- if (disabled || readOnly) {
84
- return;
85
- }
86
39
  var _event$target = event.target,
87
40
  maxLength = _event$target.maxLength,
88
41
  value = _event$target.value;
89
- if (maxLength !== -1 && value.length > maxLength) {
90
- return;
91
- }
92
- onChange === null || onChange === void 0 ? void 0 : onChange(event);
93
- };
94
- var updateChips = function updateChips(newChips, newValues) {
95
- setChips(newChips);
96
- onChangeChips === null || onChangeChips === void 0 ? void 0 : onChangeChips(newValues);
97
- };
98
- var _useKeyNavigation = (0, _useKeyNavigation2.useKeyNavigation)({
99
- controlledRefs: controlledRefs,
100
- disabled: disabled,
101
- readOnly: readOnly,
102
- chips: chips,
103
- enumerationType: enumerationType,
104
- updateChips: updateChips,
105
- onSearch: onSearch,
106
- onChange: onChange
107
- }),
108
- handleInputKeydown = _useKeyNavigation.handleInputKeydown,
109
- handleChipKeyDown = _useKeyNavigation.handleChipKeyDown,
110
- onChipClear = _useKeyNavigation.onChipClear,
111
- handleContentKeyDown = _useKeyNavigation.handleContentKeyDown;
112
- var onChipClick = function onChipClick(event) {
113
- return event.stopPropagation();
114
- };
115
- var handleInputFocus = function handleInputFocus() {
116
- if (readOnly || disabled || !(inputRef !== null && inputRef !== void 0 && inputRef.current)) {
42
+ if (!onChange || maxLength !== -1 && value.length > maxLength) {
117
43
  return;
118
44
  }
119
- inputRef.current.scrollIntoView({
120
- behavior: 'smooth',
121
- block: 'center',
122
- inline: 'center'
123
- });
124
- inputRef.current.focus({
125
- preventScroll: true
126
- });
45
+ onChange(event);
127
46
  };
128
- var getRef = function getRef(element, index) {
129
- if (element && chipsRefs !== null && chipsRefs !== void 0 && chipsRefs.current) {
130
- chipsRefs.current[index] = element;
47
+ var handleKeyUp = function handleKeyUp(event) {
48
+ if (event.key === 'Enter' && onSearch) {
49
+ onSearch(event.target.value, event);
131
50
  }
132
51
  };
133
- (0, _react.useEffect)(function () {
134
- if (!isChipEnumeration && !(values !== null && values !== void 0 && values.length)) {
135
- return;
136
- }
137
- var newChips = (values === null || values === void 0 ? void 0 : values.map(function (value, index) {
138
- return {
139
- id: "".concat(index, "_").concat(value),
140
- text: value
141
- };
142
- })) || [];
143
- setChips(newChips);
144
- }, [isChipEnumeration, values]);
52
+ var labelInside = labelPlacement === 'inner';
53
+ var lableId = (0, _plasmaCore.safeUseId)();
54
+ var helperTextId = (0, _plasmaCore.safeUseId)();
145
55
  return /*#__PURE__*/_react["default"].createElement(Root, {
146
- ref: ref,
147
56
  view: view,
148
57
  size: size,
149
58
  disabled: disabled,
150
- readOnly: !disabled && readOnly,
151
- labelPlacement: innerLabelPlacementValue,
152
- onClick: handleInputFocus
153
- }, labelInside || innerLabelValue && /*#__PURE__*/_react["default"].createElement(_TextField.Label, {
154
- id: labelId,
155
- htmlFor: id
156
- }, innerLabelValue), /*#__PURE__*/_react["default"].createElement(_TextField.InputWrapper, {
157
- className: (0, _utils.cx)(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
158
- }, contentLeft && /*#__PURE__*/_react["default"].createElement(_TextField.StyledContentLeft, null, contentLeft), /*#__PURE__*/_react["default"].createElement(_TextField.InputLabelWrapper, {
159
- tabIndex: -1,
160
- ref: contentRef,
161
- onKeyDown: handleContentKeyDown,
162
- className: withHasChips
163
- }, isChipEnumeration && Boolean(chips === null || chips === void 0 ? void 0 : chips.length) && /*#__PURE__*/_react["default"].createElement(_TextField.StyledChips, null, chips === null || chips === void 0 ? void 0 : chips.map(function (_ref2, index) {
164
- var chipId = _ref2.id,
165
- text = _ref2.text;
166
- return /*#__PURE__*/_react["default"].createElement(_ui.TextFieldChip, {
167
- ref: function ref(element) {
168
- return getRef(element, index);
169
- },
170
- chipId: chipId,
171
- key: "".concat(chipId, "_").concat(index),
172
- disabled: disabled,
173
- readOnly: readOnly,
174
- value: text,
175
- text: text,
176
- onKeyDown: function onKeyDown(event) {
177
- return handleChipKeyDown(event, chipId);
178
- },
179
- onClear: function onClear() {
180
- return onChipClear(chipId);
181
- },
182
- onClick: onChipClick
183
- });
184
- })), /*#__PURE__*/_react["default"].createElement(_TextField.Input, _extends({}, rest, {
185
- ref: inputRef,
186
- id: innerId,
187
- "aria-labelledby": labelId,
59
+ labelPlacement: labelPlacement
60
+ }, labelInside || label && /*#__PURE__*/_react["default"].createElement(_TextField.Label, {
61
+ id: lableId
62
+ }, label), /*#__PURE__*/_react["default"].createElement(_TextField.InputWrapper, null, contentLeft, /*#__PURE__*/_react["default"].createElement(_TextField.InputLabelWrapper, null, /*#__PURE__*/_react["default"].createElement(_TextField.Input, _extends({}, rest, {
63
+ ref: ref,
64
+ "aria-labelledby": lableId,
188
65
  "aria-describedby": helperTextId,
189
- placeholder: innerPlaceholderValue,
66
+ placeholder: placeholder,
190
67
  disabled: disabled,
191
- readOnly: !disabled && readOnly,
192
68
  onChange: handleChange,
193
- onKeyDown: handleInputKeydown
69
+ onKeyUp: handleKeyUp
194
70
  })), labelInside && /*#__PURE__*/_react["default"].createElement(_TextField.Label, {
195
- id: labelId,
196
- htmlFor: innerId
197
- }, innerLabelValue)), contentRight && /*#__PURE__*/_react["default"].createElement(_TextField.StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/_react["default"].createElement(_TextField.LeftHelper, {
71
+ id: lableId
72
+ }, label)), contentRight), leftHelper && /*#__PURE__*/_react["default"].createElement(_TextField.LeftHelper, {
198
73
  id: helperTextId
199
74
  }, leftHelper));
200
75
  });
201
76
  };
202
77
  var textFieldConfig = exports.textFieldConfig = {
203
78
  name: 'TextField',
204
- tag: 'div',
79
+ tag: 'label',
205
80
  layout: textFieldRoot,
206
81
  base: base,
207
82
  variations: {
@@ -215,16 +90,11 @@ var textFieldConfig = exports.textFieldConfig = {
215
90
  css: _base3.base,
216
91
  attrs: true
217
92
  },
218
- readOnly: {
219
- css: _base4.base,
220
- attrs: true
221
- },
222
93
  labelPlacement: {
223
- css: _base5.base
94
+ css: _base4.base
224
95
  }
225
96
  },
226
97
  defaults: {
227
- size: 'm',
228
- view: 'default'
98
+ size: 'm'
229
99
  }
230
100
  };
@@ -3,31 +3,23 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.StyledContentRight = exports.StyledContentLeft = exports.StyledChips = exports.LeftHelper = exports.Label = exports.InputWrapper = exports.InputLabelWrapper = exports.Input = void 0;
6
+ exports.LeftHelper = exports.Label = exports.InputWrapper = exports.InputLabelWrapper = exports.Input = void 0;
7
7
  var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
8
- var _TextField = /*#__PURE__*/require("./TextField.tokens");
9
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- var InputWrapper = exports.InputWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
9
+ var Input = exports.Input = /*#__PURE__*/_styledComponents["default"].input.withConfig({
11
10
  componentId: "plasma-new-hope__sc-g4vxbb-0"
12
- })(["position:relative;display:flex;align-items:center;box-sizing:border-box;"]);
11
+ })(["box-sizing:border-box;appearance:none;border:0;padding:0;background-color:transparent;outline:none;"]);
13
12
  var InputLabelWrapper = exports.InputLabelWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
14
13
  componentId: "plasma-new-hope__sc-g4vxbb-1"
15
- })(["flex:1;overflow:scroll;position:relative;width:100%;display:inline-flex;align-items:center;::-webkit-scrollbar{display:none;}scrollbar-width:none;overscroll-behavior:contain;&.", "{height:var(", ");border-radius:var(", ");}"], /*#__PURE__*/String(_TextField.classes.hasChips), _TextField.tokens.chipHeight, _TextField.tokens.chipBorderRadius);
16
- var StyledChips = exports.StyledChips = /*#__PURE__*/_styledComponents["default"].div.withConfig({
14
+ })(["", "{width:100%;}"], Input);
15
+
16
+ // NOTE: border-width is used in size border-color is used in view
17
+ var InputWrapper = exports.InputWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
17
18
  componentId: "plasma-new-hope__sc-g4vxbb-2"
18
- })(["display:flex;gap:var(", ");margin-right:var(", ");user-select:none;"], _TextField.tokens.chipGap, _TextField.tokens.chipGap);
19
- var Input = exports.Input = /*#__PURE__*/_styledComponents["default"].input.withConfig({
19
+ })(["position:relative;display:flex;align-items:center;box-shadow:inset 0 0 0 var(--plasma_private-textfield-border-width) var(--plasma_private-textfield-border-color);", "{flex-grow:1;}"], InputLabelWrapper);
20
+ var Label = exports.Label = /*#__PURE__*/_styledComponents["default"].div.withConfig({
20
21
  componentId: "plasma-new-hope__sc-g4vxbb-3"
21
- })(["box-sizing:border-box;appearance:none;border:0;padding:0;background-color:transparent;outline:none;flex:1;min-width:60%;"]);
22
- var Label = exports.Label = /*#__PURE__*/_styledComponents["default"].label.withConfig({
23
- componentId: "plasma-new-hope__sc-g4vxbb-4"
24
22
  })([""]);
25
- var StyledContentLeft = exports.StyledContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
26
- componentId: "plasma-new-hope__sc-g4vxbb-5"
27
- })(["margin:var(", ");"], _TextField.tokens.leftContentMargin);
28
- var StyledContentRight = exports.StyledContentRight = /*#__PURE__*/_styledComponents["default"].div.withConfig({
29
- componentId: "plasma-new-hope__sc-g4vxbb-6"
30
- })(["margin:var(", ");"], _TextField.tokens.rightContentMargin);
31
23
  var LeftHelper = exports.LeftHelper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
32
- componentId: "plasma-new-hope__sc-g4vxbb-7"
24
+ componentId: "plasma-new-hope__sc-g4vxbb-4"
33
25
  })([""]);
@@ -110,27 +110,3 @@ export function App() {
110
110
  );
111
111
  }
112
112
  ```
113
-
114
- ### Режим ввода
115
- С помощью свойства `enumarationType` можно вводить элементы как теги.
116
- По нажатию Enter, после ввода нужного текста, он преобразуется в Chip:
117
-
118
- ```tsx live
119
- import React from 'react';
120
- import { TextField } from '@salutejs/{{ package }};
121
-
122
- export function App() {
123
- return (
124
- <div>
125
- <TextField
126
- placeholder="Введите значение"
127
- defaultValue="Значение"
128
- size="l"
129
- enumerationType="chip"
130
- helperText="Подсказка снизу"
131
- values={["Значение 1"]}
132
- />
133
- </div>
134
- );
135
- }
136
- ```
@@ -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;
@@ -4,7 +4,7 @@ import { popoverClasses, popoverConfig } from '../Popover';
4
4
  import { tokens } from './Combobox.tokens';
5
5
  export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
6
6
  componentId: "plasma-new-hope__sc-gt7m6a-0"
7
- })(["width:100%;position:relative;"]);
7
+ })(["width:100%;position:relative;& .", "{display:block;}"], popoverClasses.wrapper);
8
8
  export var StyledCombobox = /*#__PURE__*/styled.div.withConfig({
9
9
  componentId: "plasma-new-hope__sc-gt7m6a-1"
10
10
  })(["box-sizing:border-box;background:var(", ");box-shadow:var(", ");border-radius:var(", ");width:var(", ");height:var(", ");padding:var(", ") var(", ") var(", ") var(", ");"], tokens.background, tokens.boxShadow, tokens.borderRadius, tokens.width, tokens.height, tokens.paddingTop, tokens.paddingRight, tokens.paddingBottom, tokens.paddingLeft);
@@ -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