@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
@@ -0,0 +1 @@
1
+ .mzf21dv{--plasma-dropdown-group-background:var(--plasma-select-group-background);--plasma-dropdown-group-width:var(--plasma-select-group-width);--plasma-dropdown-group-height:var(--plasma-select-group-height);--plasma-dropdown-group-padding-top:var(--plasma-select-group-padding-top);--plasma-dropdown-group-padding-right:var(--plasma-select-group-padding-right);--plasma-dropdown-group-padding-bottom:var(--plasma-select-group-padding-bottom);--plasma-dropdown-group-padding-left:var(--plasma-select-group-padding-left);--plasma-dropdown-group-margin-top:var(--plasma-select-group-margin-top);--plasma-dropdown-group-margin-right:var(--plasma-select-group-margin-right);--plasma-dropdown-group-margin-bottom:var(--plasma-select-group-margin-bottom);--plasma-dropdown-group-margin-left:var(--plasma-select-group-margin-left);--plasma-dropdown-group-label-font-family:var(--plasma-select-group-label-font-family);--plasma-dropdown-group-label-font-size:var(--plasma-select-group-label-font-size);--plasma-dropdown-group-label-font-style:var(--plasma-select-group-label-font-style);--plasma-dropdown-group-label-font-weight:var(--plasma-select-group-label-font-weight);--plasma-dropdown-group-label-letter-spacing:var(--plasma-select-group-label-letter-spacing);--plasma-dropdown-group-label-line-height:var(--plasma-select-group-label-line-height);--plasma-dropdown-group-label-color:var(--plasma-select-group-label-color);--plasma-dropdown-group-label-padding-top:var(--plasma-select-group-label-padding-top);--plasma-dropdown-group-label-padding-right:var(--plasma-select-group-label-padding-right);--plasma-dropdown-group-label-padding-bottom:var(--plasma-select-group-label-padding-bottom);--plasma-dropdown-group-label-padding-left:var(--plasma-select-group-label-padding-left);--plasma-dropdown-group-label-margin-top:var(--plasma-select-group-label-margin-top);--plasma-dropdown-group-label-margin-right:var(--plasma-select-group-label-margin-right);--plasma-dropdown-group-label-margin-bottom:var(--plasma-select-group-label-margin-bottom);--plasma-dropdown-group-label-margin-left:var(--plasma-select-group-label-margin-left);}
@@ -0,0 +1,5 @@
1
+ import './base_x642ct.css';
2
+ var base = "b1mnhvxp";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../../src/components/Select/ui/SelectGroup/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -0,0 +1,5 @@
1
+ import './base_x642ct.css';
2
+ var base = "bmmo90y";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../../src/components/Select/ui/SelectGroup/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -0,0 +1,23 @@
1
+ .Popover_styles_1ggb66y_s1g1xbt5__6eaffcc0{display:inline-block;}
2
+ .Popover_styles_1ggb66y_s12xwbyh__6eaffcc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
+ .Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
+ .Popover_styles_1ggb66y_s16xlixz__6eaffcc0{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
5
+
6
+ .Dropdown_styles_1daxhqh_sn7uamp__488e0a19 .Dropdown_styles_1daxhqh_popoverTarget__488e0a19{display:block;}
7
+ .Dropdown_styles_1daxhqh_sjr7fmv__488e0a19{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--plasma-dropdown-width);height:var(--plasma-dropdown-height);padding:var(--plasma-dropdown-padding-top) var(--plasma-dropdown-padding-right) var(--plasma-dropdown-padding-bottom) var(--plasma-dropdown-padding-left);}
8
+
9
+ .DropdownDivider_styles_v3xor1_s1brpi5d__3a791565{background:var(--plasma-dropdown-divider-color);width:var(--plasma-dropdown-divider-width);height:var(--plasma-dropdown-divider-height);margin:var(--plasma-dropdown-divider-margin-top) var(--plasma-dropdown-divider-margin-right) var(--plasma-dropdown-divider-margin-bottom) var(--plasma-dropdown-divider-margin-left);}
10
+
11
+ .DropdownFooter_styles_1j4sg1p_stiw0r3__41ff7287{background:var(--plasma-dropdown-footer-background);font-family:var(--plasma-dropdown-footer-font-family);font-size:var(--plasma-dropdown-footer-font-size);font-style:var(--plasma-dropdown-footer-font-style);font-weight:var(--plasma-dropdown-footer-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-footer-line-height);-moz-letter-spacing:var(--plasma-dropdown-footer-line-height);-ms-letter-spacing:var(--plasma-dropdown-footer-line-height);letter-spacing:var(--plasma-dropdown-footer-line-height);line-height:var(--plasma-dropdown-footer-font-weight);width:var(--plasma-dropdown-footer-width);height:var(--plasma-dropdown-footer-height);padding:var(--plasma-dropdown-footer-padding-top) var(--plasma-dropdown-footer-padding-right) var(--plasma-dropdown-footer-padding-bottom) var(--plasma-dropdown-footer-padding-left);margin:var(--plasma-dropdown-footer-margin-top) var(--plasma-dropdown-footer-margin-right) var(--plasma-dropdown-footer-margin-bottom) var(--plasma-dropdown-footer-margin-left);}
12
+
13
+ .DropdownGroup_styles_1o990eo_scop7qk__fca8c58e{background:var(--plasma-dropdown-group-background);width:var(--plasma-dropdown-group-width);height:var(--plasma-dropdown-group-height);padding:var(--plasma-dropdown-group-padding-top) var(--plasma-dropdown-group-padding-right) var(--plasma-dropdown-group-padding-bottom) var(--plasma-dropdown-group-padding-left);margin:var(--plasma-dropdown-group-margin-top) var(--plasma-dropdown-group-margin-right) var(--plasma-dropdown-group-margin-bottom) var(--plasma-dropdown-group-margin-left);}
14
+ .DropdownGroup_styles_1o990eo_s1oaw95y__fca8c58e{font-family:var(--plasma-dropdown-group-label-font-family);font-size:var(--plasma-dropdown-group-label-font-size);font-style:var(--plasma-dropdown-group-label-font-style);font-weight:var(--plasma-dropdown-group-label-font-weight);-webkit-letter-spacing:var(--plasma-dropdown-group-label-letter-spacing);-moz-letter-spacing:var(--plasma-dropdown-group-label-letter-spacing);-ms-letter-spacing:var(--plasma-dropdown-group-label-letter-spacing);letter-spacing:var(--plasma-dropdown-group-label-letter-spacing);line-height:var(--plasma-dropdown-group-label-line-height);color:var(--plasma-dropdown-group-label-color);padding:var(--plasma-dropdown-group-label-padding-top) var(--plasma-dropdown-group-label-padding-right) var(--plasma-dropdown-group-label-padding-bottom) var(--plasma-dropdown-group-label-padding-left);margin:var(--plasma-dropdown-group-label-margin-top) var(--plasma-dropdown-group-label-margin-right) var(--plasma-dropdown-group-label-margin-bottom) var(--plasma-dropdown-group-label-margin-left);}
15
+
16
+ .DropdownHeader_styles_196gwgm_s133b1g2__3510806e{background:var(--plasma-dropdown-header-background);font-family:var(--plasma-dropdown-header-font-family);font-size:var(--plasma-dropdown-header-font-size);font-style:var(--plasma-dropdown-header-font-style);font-weight:var(--plasma-dropdown-header-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-header-line-height);-moz-letter-spacing:var(--plasma-dropdown-header-line-height);-ms-letter-spacing:var(--plasma-dropdown-header-line-height);letter-spacing:var(--plasma-dropdown-header-line-height);line-height:var(--plasma-dropdown-header-font-weight);width:var(--plasma-dropdown-header-width);height:var(--plasma-dropdown-header-height);padding:var(--plasma-dropdown-header-padding-top) var(--plasma-dropdown-header-padding-right) var(--plasma-dropdown-header-padding-bottom) var(--plasma-dropdown-header-padding-left);margin:var(--plasma-dropdown-header-margin-top) var(--plasma-dropdown-header-margin-right) var(--plasma-dropdown-header-margin-bottom) var(--plasma-dropdown-header-margin-left);}
17
+
18
+ .DropdownItem_styles_1juhjtq_s1gkzlls__cab27d09{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
19
+ .DropdownItem_styles_1juhjtq_sz6s14y__cab27d09{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
20
+ .DropdownItem_styles_1juhjtq_s1m97l2m__cab27d09{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
21
+ .DropdownItem_styles_1juhjtq_boib72h__cab27d09{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:100%;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09:focus{outline:none;}.DropdownItem_styles_1juhjtq_boib72h__cab27d09::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_focusVisible__cab27d09:focus::before,.DropdownItem_styles_1juhjtq_boib72h__cab27d09[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09:hover:not(.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsSelected__cab27d09{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsSelected__cab27d09:hover:not(.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
22
+
23
+ .SelectHeader_styles_24gqog_m1tqc9mt__2df5b6b6{--plasma-dropdown-header-background:var(--plasma-select-header-background);--plasma-dropdown-header-width:var(--plasma-select-header-width);--plasma-dropdown-header-height:var(--plasma-select-header-height);--plasma-dropdown-header-padding-top:var(--plasma-select-header-padding-top);--plasma-dropdown-header-padding-right:var(--plasma-select-header-padding-right);--plasma-dropdown-header-padding-bottom:var(--plasma-select-header-padding-bottom);--plasma-dropdown-header-padding-left:var(--plasma-select-header-padding-left);--plasma-dropdown-header-margin-top:var(--plasma-select-header-margin-top);--plasma-dropdown-header-margin-right:var(--plasma-select-header-margin-right);--plasma-dropdown-header-margin-bottom:var(--plasma-select-header-margin-bottom);--plasma-dropdown-header-margin-left:var(--plasma-select-header-margin-left);--plasma-dropdown-header-font-family:var(--plasma-select-header-font-family);--plasma-dropdown-header-font-size:var(--plasma-select-header-font-size);--plasma-dropdown-header-font-style:var(--plasma-select-header-font-style);--plasma-dropdown-header-letter-spacing:var(--plasma-select-header-letter-spacing);--plasma-dropdown-header-line-height:var(--plasma-select-header-line-height);--plasma-dropdown-header-font-weight:var(--plasma-select-header-font-weight);}
@@ -0,0 +1,35 @@
1
+ import 'react';
2
+ import '@salutejs/plasma-core';
3
+ import '@linaria/react';
4
+ import '@linaria/core';
5
+ import 'focus-visible';
6
+ import 'react-dom';
7
+ import 'react-popper';
8
+ import '../../../../utils/react.js';
9
+ import { dropdownHeaderRoot } from '../../../Dropdown/ui/DropdownHeader/DropdownHeader.js';
10
+ import { base as base$1 } from './variations/_view/base.js';
11
+ import { base as base$2 } from './variations/_size/base.js';
12
+ import { base } from './SelectHeader.styles.js';
13
+
14
+ var selectHeaderRoot = dropdownHeaderRoot;
15
+ var selectHeaderConfig = {
16
+ name: 'SelectHeader',
17
+ tag: 'div',
18
+ layout: selectHeaderRoot,
19
+ base: base,
20
+ variations: {
21
+ view: {
22
+ css: base$1
23
+ },
24
+ size: {
25
+ css: base$2
26
+ }
27
+ },
28
+ defaults: {
29
+ view: 'primary',
30
+ size: 'm'
31
+ }
32
+ };
33
+
34
+ export { selectHeaderConfig, selectHeaderRoot };
35
+ //# sourceMappingURL=SelectHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectHeader.js","sources":["../../../../../src/components/Select/ui/SelectHeader/SelectHeader.tsx"],"sourcesContent":["import { dropdownHeaderRoot } from '../../../Dropdown';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base } from './SelectHeader.styles';\n\nexport const selectHeaderRoot = dropdownHeaderRoot;\n\nexport const selectHeaderConfig = {\n name: 'SelectHeader',\n tag: 'div',\n layout: selectHeaderRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["selectHeaderRoot","dropdownHeaderRoot","selectHeaderConfig","name","tag","layout","base","variations","view","css","viewCSS","size","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;AAMO,IAAMA,gBAAgB,GAAGC,mBAAkB;AAE3C,IAAMC,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEL,gBAAgB;AACxBM,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRC,IAAAA,IAAI,EAAE;AACFC,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDC,IAAAA,IAAI,EAAE;AACFF,MAAAA,GAAG,EAAEG,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNL,IAAAA,IAAI,EAAE,SAAS;AACfG,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -0,0 +1,7 @@
1
+ import './SelectHeader.styles_24gqog.css';
2
+ // NOTE: Необходимое переопределение токенов из компонента DropdownItem т.к. используются его части
3
+ var mappingOverride = "m1tqc9mt";
4
+ var base = mappingOverride;
5
+
6
+ export { base, mappingOverride };
7
+ //# sourceMappingURL=SelectHeader.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectHeader.styles.js","sources":["../../../../../src/components/Select/ui/SelectHeader/SelectHeader.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Select.tokens';\nimport { dropdownTokens } from '../../../Dropdown';\n\n// NOTE: Необходимое переопределение токенов из компонента DropdownItem т.к. используются его части\nexport const mappingOverride = css`\n ${dropdownTokens.headerBackground}: var(${tokens.headerBackground});\n ${dropdownTokens.headerWidth}: var(${tokens.headerWidth});\n ${dropdownTokens.headerHeight}: var(${tokens.headerHeight});\n ${dropdownTokens.headerPaddingTop}: var(${tokens.headerPaddingTop});\n ${dropdownTokens.headerPaddingRight}: var(${tokens.headerPaddingRight});\n ${dropdownTokens.headerPaddingBottom}: var(${tokens.headerPaddingBottom});\n ${dropdownTokens.headerPaddingLeft}: var(${tokens.headerPaddingLeft});\n ${dropdownTokens.headerMarginTop}: var(${tokens.headerMarginTop});\n ${dropdownTokens.headerMarginRight}: var(${tokens.headerMarginRight});\n ${dropdownTokens.headerMarginBottom}: var(${tokens.headerMarginBottom});\n ${dropdownTokens.headerMarginLeft}: var(${tokens.headerMarginLeft});\n ${dropdownTokens.headerFontFamily}: var(${tokens.headerFontFamily});\n ${dropdownTokens.headerFontSize}: var(${tokens.headerFontSize});\n ${dropdownTokens.headerFontStyle}: var(${tokens.headerFontStyle});\n ${dropdownTokens.headerFontWeightBold}: var(${tokens.headerFontWeightBold});\n ${dropdownTokens.headerFontLetterSpacing}: var(${tokens.headerFontLetterSpacing});\n ${dropdownTokens.headerFontLineHeight}: var(${tokens.headerFontLineHeight});\n`;\n\nexport const base = mappingOverride;\n"],"names":["mappingOverride","base"],"mappings":"AAKA;AACO,IAAMA,eAAe,GAkB3B,WAAA;AAEM,IAAMC,IAAI,GAAGD;;;;"}
@@ -0,0 +1 @@
1
+ .m1tqc9mt{--plasma-dropdown-header-background:var(--plasma-select-header-background);--plasma-dropdown-header-width:var(--plasma-select-header-width);--plasma-dropdown-header-height:var(--plasma-select-header-height);--plasma-dropdown-header-padding-top:var(--plasma-select-header-padding-top);--plasma-dropdown-header-padding-right:var(--plasma-select-header-padding-right);--plasma-dropdown-header-padding-bottom:var(--plasma-select-header-padding-bottom);--plasma-dropdown-header-padding-left:var(--plasma-select-header-padding-left);--plasma-dropdown-header-margin-top:var(--plasma-select-header-margin-top);--plasma-dropdown-header-margin-right:var(--plasma-select-header-margin-right);--plasma-dropdown-header-margin-bottom:var(--plasma-select-header-margin-bottom);--plasma-dropdown-header-margin-left:var(--plasma-select-header-margin-left);--plasma-dropdown-header-font-family:var(--plasma-select-header-font-family);--plasma-dropdown-header-font-size:var(--plasma-select-header-font-size);--plasma-dropdown-header-font-style:var(--plasma-select-header-font-style);--plasma-dropdown-header-letter-spacing:var(--plasma-select-header-letter-spacing);--plasma-dropdown-header-line-height:var(--plasma-select-header-line-height);--plasma-dropdown-header-font-weight:var(--plasma-select-header-font-weight);}
@@ -0,0 +1,5 @@
1
+ import './base_x642ct.css';
2
+ var base = "bps2mps";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../../src/components/Select/ui/SelectHeader/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -0,0 +1,5 @@
1
+ import './base_x642ct.css';
2
+ var base = "b1wdqy2x";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../../src/components/Select/ui/SelectHeader/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,7 +1,7 @@
1
-
2
- .Popover_styles_1rk9t6z_s12xwbyh__96f55a53{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
- .Popover_styles_1rk9t6z_s1pd4d8a__96f55a53{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1rk9t6z_s1pd4d8a__96f55a53::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
- .Popover_styles_1rk9t6z_s16xlixz__96f55a53{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
1
+ .Popover_styles_1ggb66y_s1g1xbt5__6eaffcc0{display:inline-block;}
2
+ .Popover_styles_1ggb66y_s12xwbyh__6eaffcc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
+ .Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
+ .Popover_styles_1ggb66y_s16xlixz__6eaffcc0{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
5
5
 
6
6
  .Dropdown_styles_1daxhqh_sn7uamp__488e0a19 .Dropdown_styles_1daxhqh_popoverTarget__488e0a19{display:block;}
7
7
  .Dropdown_styles_1daxhqh_sjr7fmv__488e0a19{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--plasma-dropdown-width);height:var(--plasma-dropdown-height);padding:var(--plasma-dropdown-padding-top) var(--plasma-dropdown-padding-right) var(--plasma-dropdown-padding-bottom) var(--plasma-dropdown-padding-left);}
@@ -104,7 +104,8 @@ var SelectTarget = /*#__PURE__*/forwardRef(function (_ref, ref) {
104
104
  "aria-label": label,
105
105
  className: cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
106
106
  onWheel: onWheel,
107
- onKeyDown: onKeyDown
107
+ onKeyDown: onKeyDown,
108
+ stretching: "filled"
108
109
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(StyledText, {
109
110
  className: selectTargeText
110
111
  }, textContent) : /*#__PURE__*/React.createElement(StyledChipsWrapper, {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectTarget.js","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef } from 'react';\n\nimport { classes } from '../../Select.tokens';\nimport { cx } from '../../../../utils';\nimport { SelectChip } from '../SelectChip/SelectChip';\nimport type { SelectPrimitiveValue } from '../../Select.types';\nimport { Keys } from '../../hooks/useKeyNavigation';\n\nimport {\n StyledArrow,\n StyledChips,\n StyledChipsWrapper,\n StyledLabel,\n StyledSelectTarget,\n StyledText,\n} from './SelectTarget.styles';\nimport type { SelectTargetProps } from './SelectTarget.types';\n\nconst {\n hasNoFocus,\n hasChips,\n innerLabelUp,\n arrowInverse,\n selectTarget,\n selectTargetArrow,\n selectTargeText,\n selectTargetLabel,\n} = classes;\n\n/**\n * Элемент для выпадающего списка\n */\nexport const SelectTarget = forwardRef<HTMLButtonElement, SelectTargetProps>(\n (\n {\n values,\n target = 'textField-like',\n label,\n opened,\n readOnly,\n disabled,\n enumerationType,\n size,\n id,\n chipsRefs,\n onChange,\n onKeyDown,\n ...rest\n },\n ref,\n ) => {\n const hasText = Boolean(values?.some(([value]) => value));\n\n const hasLabel = label && size !== 'xs' && target === 'textField-like';\n const textContent = values?.map(([, text]) => text).join(', ');\n const contentRef = useRef<HTMLDivElement>(null);\n\n const withArrowInverse = opened ? arrowInverse : undefined;\n const withInnerLabelUp = hasLabel && hasText ? innerLabelUp : undefined;\n const withHasChips =\n hasText && enumerationType === 'chip' && target === 'textField-like' ? hasChips : undefined;\n\n const withNoFocus = target === 'textField-like' ? hasNoFocus : undefined;\n\n const isLabelVisible = !hasText || (hasLabel && enumerationType === 'comma');\n\n const onChipClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation();\n }, []);\n\n const onChipClear = useCallback(\n (value: SelectPrimitiveValue, text: SelectPrimitiveValue, index: number) => {\n const newValue = values\n ?.filter(([itemValue, itemText]) => !(itemValue === value && itemText === text))\n .map(([itemValue]) => itemValue);\n\n chipsRefs?.current.splice(index, 1);\n onChange?.(newValue);\n },\n [values, onChange],\n );\n\n const onChipKeyDown = useCallback(\n (\n value: SelectPrimitiveValue,\n text: SelectPrimitiveValue,\n index: number,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => {\n const { code, shiftKey } = event;\n\n if (code === Keys.Tab || (code === Keys.Tab && shiftKey)) {\n event.preventDefault();\n }\n\n if (code === Keys.Backspace) {\n onChipClear(value, text, index);\n }\n },\n [onChipClear],\n );\n\n const onWheel = useCallback((event: React.WheelEvent<HTMLButtonElement>) => {\n const { deltaY } = event;\n\n if (contentRef.current) {\n contentRef.current.scrollLeft += Math.round(deltaY);\n }\n }, []);\n\n const getRef = useCallback((element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs && chipsRefs.current) {\n chipsRefs.current[index] = element;\n }\n }, []);\n\n // INFO: Нужно очищать на каждый ререндер компонента для актуализации состояния рефов\n if (chipsRefs) {\n chipsRefs.current = [];\n }\n\n return (\n <StyledSelectTarget\n {...rest}\n ref={ref}\n opened={opened}\n target={target}\n readOnly={readOnly}\n disabled={disabled}\n title={textContent}\n aria-label={label}\n className={cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget)}\n onWheel={onWheel}\n onKeyDown={onKeyDown}\n >\n {hasText &&\n (enumerationType === 'comma' || target === 'button-like' ? (\n <StyledText className={selectTargeText}>{textContent}</StyledText>\n ) : (\n <StyledChipsWrapper ref={contentRef}>\n <StyledChips>\n {values?.map(([value, text], index) => (\n <SelectChip\n index={index}\n ref={(element) => getRef(element, index)}\n key={`${value}_${text}`}\n disabled={disabled}\n readOnly={readOnly}\n value={value}\n text={text}\n onClear={(v, t) => onChipClear(v, t, index)}\n onClick={onChipClick}\n onKeyDown={onChipKeyDown}\n />\n ))}\n </StyledChips>\n </StyledChipsWrapper>\n ))}\n {isLabelVisible && (\n <StyledLabel className={selectTargetLabel} htmlFor={id}>\n {label}\n </StyledLabel>\n )}\n <StyledArrow size=\"s\" color=\"inherit\" className={cx(selectTargetArrow, withArrowInverse)} />\n </StyledSelectTarget>\n );\n },\n);\n"],"names":["hasNoFocus","classes","hasChips","innerLabelUp","arrowInverse","selectTarget","selectTargetArrow","selectTargeText","selectTargetLabel","SelectTarget","forwardRef","_ref","ref","values","_ref$target","target","label","opened","readOnly","disabled","enumerationType","size","id","chipsRefs","onChange","onKeyDown","rest","_objectWithoutProperties","_excluded","hasText","Boolean","some","_ref2","_ref3","_slicedToArray","value","hasLabel","textContent","map","_ref4","_ref5","text","join","contentRef","useRef","withArrowInverse","undefined","withInnerLabelUp","withHasChips","withNoFocus","isLabelVisible","onChipClick","useCallback","event","stopPropagation","onChipClear","index","newValue","filter","_ref6","_ref7","itemValue","itemText","_ref8","_ref9","current","splice","onChipKeyDown","code","shiftKey","Keys","Tab","preventDefault","Backspace","onWheel","deltaY","scrollLeft","Math","round","getRef","element","React","createElement","StyledSelectTarget","_extends","title","className","cx","StyledText","StyledChipsWrapper","StyledChips","_ref10","_ref11","SelectChip","key","concat","onClear","v","t","onClick","StyledLabel","htmlFor","StyledArrow","color"],"mappings":";;;;;;;;;AAkBA,IACIA,UAAU,GAQVC,OAAO,CARPD,UAAU;EACVE,QAAQ,GAORD,OAAO,CAPPC,QAAQ;EACRC,YAAY,GAMZF,OAAO,CANPE,YAAY;EACZC,YAAY,GAKZH,OAAO,CALPG,YAAY;EACZC,YAAY,GAIZJ,OAAO,CAJPI,YAAY;EACZC,iBAAiB,GAGjBL,OAAO,CAHPK,iBAAiB;EACjBC,e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AAEA,IAAK;AACXuD,MAAAA,OAAO,EAAE,SAAAA,OAACC,CAAAA,CAAC,EAAEC,CAAC,EAAA;AAAA,QAAA,OAAK3C,WAAW,CAAC0C,CAAC,EAAEC,CAAC,EAAE1C,KAAK,CAAC,CAAA;OAAC;AAC5C2C,MAAAA,OAAO,EAAEhD,WAAY;AACrB1B,MAAAA,SAAS,EAAE0C,aAAAA;AAAc,KAC5B,CAAC,CAAA;GACL,CACQ,CACG,CACvB,CAAC,EACLjB,cAAc,iBACX+B,KAAA,CAAAC,aAAA,CAACkB,WAAW,EAAA;AAACd,IAAAA,SAAS,EAAE9E,iBAAkB;AAAC6F,IAAAA,OAAO,EAAE/E,EAAAA;AAAG,GAAA,EAClDN,KACQ,CAChB,eACDiE,KAAA,CAAAC,aAAA,CAACoB,WAAW,EAAA;AAACjF,IAAAA,IAAI,EAAC,GAAG;AAACkF,IAAAA,KAAK,EAAC,SAAS;AAACjB,IAAAA,SAAS,EAAEC,EAAE,CAACjF,iBAAiB,EAAEuC,gBAAgB,CAAA;AAAE,GAAE,CAC3E,CAAC,CAAA;AAE7B,CACJ;;;;"}
1
+ {"version":3,"file":"SelectTarget.js","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef } from 'react';\n\nimport { classes } from '../../Select.tokens';\nimport { cx } from '../../../../utils';\nimport { SelectChip } from '../SelectChip/SelectChip';\nimport type { SelectPrimitiveValue } from '../../Select.types';\nimport { Keys } from '../../hooks/useKeyNavigation';\n\nimport {\n StyledArrow,\n StyledChips,\n StyledChipsWrapper,\n StyledLabel,\n StyledSelectTarget,\n StyledText,\n} from './SelectTarget.styles';\nimport type { SelectTargetProps } from './SelectTarget.types';\n\nconst {\n hasNoFocus,\n hasChips,\n innerLabelUp,\n arrowInverse,\n selectTarget,\n selectTargetArrow,\n selectTargeText,\n selectTargetLabel,\n} = classes;\n\n/**\n * Элемент для выпадающего списка\n */\nexport const SelectTarget = forwardRef<HTMLButtonElement, SelectTargetProps>(\n (\n {\n values,\n target = 'textField-like',\n label,\n opened,\n readOnly,\n disabled,\n enumerationType,\n size,\n id,\n chipsRefs,\n onChange,\n onKeyDown,\n ...rest\n },\n ref,\n ) => {\n const hasText = Boolean(values?.some(([value]) => value));\n\n const hasLabel = label && size !== 'xs' && target === 'textField-like';\n const textContent = values?.map(([, text]) => text).join(', ');\n const contentRef = useRef<HTMLDivElement>(null);\n\n const withArrowInverse = opened ? arrowInverse : undefined;\n const withInnerLabelUp = hasLabel && hasText ? innerLabelUp : undefined;\n const withHasChips =\n hasText && enumerationType === 'chip' && target === 'textField-like' ? hasChips : undefined;\n\n const withNoFocus = target === 'textField-like' ? hasNoFocus : undefined;\n\n const isLabelVisible = !hasText || (hasLabel && enumerationType === 'comma');\n\n const onChipClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation();\n }, []);\n\n const onChipClear = useCallback(\n (value: SelectPrimitiveValue, text: SelectPrimitiveValue, index: number) => {\n const newValue = values\n ?.filter(([itemValue, itemText]) => !(itemValue === value && itemText === text))\n .map(([itemValue]) => itemValue);\n\n chipsRefs?.current.splice(index, 1);\n onChange?.(newValue);\n },\n [values, onChange],\n );\n\n const onChipKeyDown = useCallback(\n (\n value: SelectPrimitiveValue,\n text: SelectPrimitiveValue,\n index: number,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => {\n const { code, shiftKey } = event;\n\n if (code === Keys.Tab || (code === Keys.Tab && shiftKey)) {\n event.preventDefault();\n }\n\n if (code === Keys.Backspace) {\n onChipClear(value, text, index);\n }\n },\n [onChipClear],\n );\n\n const onWheel = useCallback((event: React.WheelEvent<HTMLButtonElement>) => {\n const { deltaY } = event;\n\n if (contentRef.current) {\n contentRef.current.scrollLeft += Math.round(deltaY);\n }\n }, []);\n\n const getRef = useCallback((element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs && chipsRefs.current) {\n chipsRefs.current[index] = element;\n }\n }, []);\n\n // INFO: Нужно очищать на каждый ререндер компонента для актуализации состояния рефов\n if (chipsRefs) {\n chipsRefs.current = [];\n }\n\n return (\n <StyledSelectTarget\n {...rest}\n ref={ref}\n opened={opened}\n target={target}\n readOnly={readOnly}\n disabled={disabled}\n title={textContent}\n aria-label={label}\n className={cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget)}\n onWheel={onWheel}\n onKeyDown={onKeyDown}\n stretching=\"filled\"\n >\n {hasText &&\n (enumerationType === 'comma' || target === 'button-like' ? (\n <StyledText className={selectTargeText}>{textContent}</StyledText>\n ) : (\n <StyledChipsWrapper ref={contentRef}>\n <StyledChips>\n {values?.map(([value, text], index) => (\n <SelectChip\n index={index}\n ref={(element) => getRef(element, index)}\n key={`${value}_${text}`}\n disabled={disabled}\n readOnly={readOnly}\n value={value}\n text={text}\n onClear={(v, t) => onChipClear(v, t, index)}\n onClick={onChipClick}\n onKeyDown={onChipKeyDown}\n />\n ))}\n </StyledChips>\n </StyledChipsWrapper>\n ))}\n {isLabelVisible && (\n <StyledLabel className={selectTargetLabel} htmlFor={id}>\n {label}\n </StyledLabel>\n )}\n <StyledArrow size=\"s\" color=\"inherit\" className={cx(selectTargetArrow, withArrowInverse)} />\n </StyledSelectTarget>\n );\n },\n);\n"],"names":["hasNoFocus","classes","hasChips","innerLabelUp","arrowInverse","selectTarget","selectTargetArrow","selectTargeText","selectTargetLabel","SelectTarget","forwardRef","_ref","ref","values","_ref$target","target","label","opened","readOnly","disabled","enumerationType","size","id","chipsRefs","onChange","onKeyDown","rest","_objectWithoutProperties","_excluded","hasText","Boolean","some","_ref2","_ref3","_slicedToArray","value","hasLabel","textContent","map","_ref4","_ref5","text","join","contentRef","useRef","withArrowInverse","undefined","withInnerLabelUp","withHasChips","withNoFocus","isLabelVisible","onChipClick","useCallback","event","stopPropagation","onChipClear","index","newValue","filter","_ref6","_ref7","itemValue","itemText","_ref8","_ref9","current","splice","onChipKeyDown","code","shiftKey","Keys","Tab","preventDefault","Backspace","onWheel","deltaY","scrollLeft","Math","round","getRef","element","React","createElement","StyledSelectTarget","_extends","title","className","cx","stretching","StyledText","StyledChipsWrapper","StyledChips","_ref10","_ref11","SelectChip","key","concat","onClear","v","t","onClick","StyledLabel","htmlFor","StyledArrow","color"],"mappings":";;;;;;;;;AAkBA,IACIA,UAAU,GAQVC,OAAO,CARPD,UAAU;EACVE,QAAQ,GAORD,OAAO,CAPPC,QAAQ;EACRC,YAAY,GAMZF,OAAO,CANPE,YAAY;EACZC,YAAY,GAKZH,OAAO,CALPG,YAAY;EACZC,YAAY,GAIZJ,OAAO,CAJPI,YAAY;EACZC,iBAAiB,GAGjBL,OAAO,CAHPK,iBAAiB;EACjBC,eAAe,GAEfN,OAAO,CAFPM,eAAe;EACfC,iBAAiB,GACjBP,OAAO,CADPO,iBAAiB,CAAA;;AAGrB;AACA;AACA;AACO,IAAMC,YAAY,gBAAGC,UAAU,CAClC,UAAAC,IAAA,EAgBIC,GAAG,EACF;AAAA,EAAA,IAfGC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAAC,WAAA,GAAAH,IAAA,CACNI,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,gBAAgB,GAAAA,WAAA;IACzBE,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,MAAM,GAAAN,IAAA,CAANM,MAAM;IACNC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IACRC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,eAAe,GAAAT,IAAA,CAAfS,eAAe;IACfC,IAAI,GAAAV,IAAA,CAAJU,IAAI;IACJC,EAAE,GAAAX,IAAA,CAAFW,EAAE;IACFC,SAAS,GAAAZ,IAAA,CAATY,SAAS;IACTC,QAAQ,GAAAb,IAAA,CAARa,QAAQ;IACRC,SAAS,GAAAd,IAAA,CAATc,SAAS;AACNC,IAAAA,IAAI,GAAAC,wBAAA,CAAAhB,IAAA,EAAAiB,SAAA,CAAA,CAAA;AAIX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perties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
3
- import React, { forwardRef, useRef, useState, useEffect } from 'react';
1
+ import './TextField_1lzb2r1.css';
2
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
3
+ import React, { forwardRef } from 'react';
4
4
  import { safeUseId } from '@salutejs/plasma-core';
5
- import { cx } from '../../utils/index.js';
6
- import { base as base$2 } from './variations/_size/base.js';
7
- import { base as base$1 } from './variations/_view/base.js';
8
- import { base as base$3 } from './variations/_disabled/base.js';
9
- import { base as base$4 } from './variations/_read-only/base.js';
10
- import { base as base$5 } from './variations/_label-placement/base.js';
11
- import { Label, InputWrapper, StyledContentLeft, InputLabelWrapper, StyledChips, Input, StyledContentRight, LeftHelper } from './TextField.styles.js';
12
- import { classes } from './TextField.tokens.js';
13
- import { TextFieldChip } from './ui/TextFieldChip/TextFieldChip.js';
14
- import { useKeyNavigation } from './hooks/useKeyNavigation.js';
5
+ import { base as base$2 } from './_size/base.js';
6
+ import { base as base$1 } from './_view/base.js';
7
+ import { base as base$3 } from './_disabled/base.js';
8
+ import { base as base$4 } from './_label-placement/base.js';
9
+ import { Label, InputWrapper, InputLabelWrapper, Input, LeftHelper } from './TextField.styles.js';
15
10
 
16
- var _excluded = ["id", "contentLeft", "contentRight", "label", "labelPlacement", "placeholder", "leftHelper", "enumerationType", "view", "size", "readOnly", "disabled", "values", "onChange", "onChangeChips", "onSearch"];
11
+ var _excluded = ["contentLeft", "contentRight", "children", "label", "labelPlacement", "placeholder", "leftHelper", "view", "size", "disabled", "onChange", "onSearch"];
17
12
  var base = "bpunezx";
18
13
  var textFieldRoot = function textFieldRoot(Root) {
19
- return /*#__PURE__*/forwardRef(function (_ref, ref) {
20
- var id = _ref.id,
21
- contentLeft = _ref.contentLeft,
22
- contentRight = _ref.contentRight,
23
- label = _ref.label,
24
- labelPlacement = _ref.labelPlacement,
25
- placeholder = _ref.placeholder,
26
- leftHelper = _ref.leftHelper,
27
- _ref$enumerationType = _ref.enumerationType,
28
- enumerationType = _ref$enumerationType === void 0 ? 'plain' : _ref$enumerationType,
29
- view = _ref.view,
30
- size = _ref.size,
31
- _ref$readOnly = _ref.readOnly,
32
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
33
- _ref$disabled = _ref.disabled,
34
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
35
- values = _ref.values,
36
- onChange = _ref.onChange,
37
- onChangeChips = _ref.onChangeChips,
38
- onSearch = _ref.onSearch,
39
- rest = _objectWithoutProperties(_ref, _excluded);
40
- var contentRef = useRef(null);
41
- var inputRef = useRef(null);
42
- var chipsRefs = useRef([]);
43
- var controlledRefs = {
44
- contentRef: contentRef,
45
- inputRef: inputRef,
46
- chipsRefs: chipsRefs
47
- };
48
- var _useState = useState([]),
49
- _useState2 = _slicedToArray(_useState, 2),
50
- chips = _useState2[0],
51
- setChips = _useState2[1];
52
- var uniqId = safeUseId();
53
- var innerId = id || uniqId;
54
- var labelId = safeUseId();
55
- var helperTextId = safeUseId();
56
- var isChipEnumeration = enumerationType === 'chip';
57
- var hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';
58
- var labelInside = size !== 'xs' && labelPlacement === 'inner';
59
- var innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;
60
- var innerPlaceholderValue = hideLabel ? label : placeholder;
61
- var innerLabelValue = hideLabel ? undefined : label;
62
- var isChipsVisible = isChipEnumeration && (chips === null || chips === void 0 ? void 0 : chips.length);
63
- var withHasChips = isChipsVisible ? classes.hasChips : undefined;
64
- var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;
65
- var wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;
14
+ return /*#__PURE__*/forwardRef(function (props, ref) {
15
+ var contentLeft = props.contentLeft,
16
+ contentRight = props.contentRight,
17
+ label = props.label,
18
+ labelPlacement = props.labelPlacement,
19
+ placeholder = props.placeholder,
20
+ leftHelper = props.leftHelper,
21
+ view = props.view,
22
+ size = props.size,
23
+ disabled = props.disabled,
24
+ onChange = props.onChange,
25
+ onSearch = props.onSearch,
26
+ rest = _objectWithoutProperties(props, _excluded);
66
27
  var handleChange = function handleChange(event) {
67
- if (disabled || readOnly) {
68
- return;
69
- }
70
28
  var _event$target = event.target,
71
29
  maxLength = _event$target.maxLength,
72
30
  value = _event$target.value;
73
- if (maxLength !== -1 && value.length > maxLength) {
74
- return;
75
- }
76
- onChange === null || onChange === void 0 ? void 0 : onChange(event);
77
- };
78
- var updateChips = function updateChips(newChips, newValues) {
79
- setChips(newChips);
80
- onChangeChips === null || onChangeChips === void 0 ? void 0 : onChangeChips(newValues);
81
- };
82
- var _useKeyNavigation = useKeyNavigation({
83
- controlledRefs: controlledRefs,
84
- disabled: disabled,
85
- readOnly: readOnly,
86
- chips: chips,
87
- enumerationType: enumerationType,
88
- updateChips: updateChips,
89
- onSearch: onSearch,
90
- onChange: onChange
91
- }),
92
- handleInputKeydown = _useKeyNavigation.handleInputKeydown,
93
- handleChipKeyDown = _useKeyNavigation.handleChipKeyDown,
94
- onChipClear = _useKeyNavigation.onChipClear,
95
- handleContentKeyDown = _useKeyNavigation.handleContentKeyDown;
96
- var onChipClick = function onChipClick(event) {
97
- return event.stopPropagation();
98
- };
99
- var handleInputFocus = function handleInputFocus() {
100
- if (readOnly || disabled || !(inputRef !== null && inputRef !== void 0 && inputRef.current)) {
31
+ if (!onChange || maxLength !== -1 && value.length > maxLength) {
101
32
  return;
102
33
  }
103
- inputRef.current.scrollIntoView({
104
- behavior: 'smooth',
105
- block: 'center',
106
- inline: 'center'
107
- });
108
- inputRef.current.focus({
109
- preventScroll: true
110
- });
34
+ onChange(event);
111
35
  };
112
- var getRef = function getRef(element, index) {
113
- if (element && chipsRefs !== null && chipsRefs !== void 0 && chipsRefs.current) {
114
- chipsRefs.current[index] = element;
36
+ var handleKeyUp = function handleKeyUp(event) {
37
+ if (event.key === 'Enter' && onSearch) {
38
+ onSearch(event.target.value, event);
115
39
  }
116
40
  };
117
- useEffect(function () {
118
- if (!isChipEnumeration && !(values !== null && values !== void 0 && values.length)) {
119
- return;
120
- }
121
- var newChips = (values === null || values === void 0 ? void 0 : values.map(function (value, index) {
122
- return {
123
- id: "".concat(index, "_").concat(value),
124
- text: value
125
- };
126
- })) || [];
127
- setChips(newChips);
128
- }, [isChipEnumeration, values]);
41
+ var labelInside = labelPlacement === 'inner';
42
+ var lableId = safeUseId();
43
+ var helperTextId = safeUseId();
129
44
  return /*#__PURE__*/React.createElement(Root, {
130
- ref: ref,
131
45
  view: view,
132
46
  size: size,
133
47
  disabled: disabled,
134
- readOnly: !disabled && readOnly,
135
- labelPlacement: innerLabelPlacementValue,
136
- onClick: handleInputFocus
137
- }, labelInside || innerLabelValue && /*#__PURE__*/React.createElement(Label, {
138
- id: labelId,
139
- htmlFor: id
140
- }, innerLabelValue), /*#__PURE__*/React.createElement(InputWrapper, {
141
- className: cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
142
- }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(InputLabelWrapper, {
143
- tabIndex: -1,
144
- ref: contentRef,
145
- onKeyDown: handleContentKeyDown,
146
- className: withHasChips
147
- }, isChipEnumeration && Boolean(chips === null || chips === void 0 ? void 0 : chips.length) && /*#__PURE__*/React.createElement(StyledChips, null, chips === null || chips === void 0 ? void 0 : chips.map(function (_ref2, index) {
148
- var chipId = _ref2.id,
149
- text = _ref2.text;
150
- return /*#__PURE__*/React.createElement(TextFieldChip, {
151
- ref: function ref(element) {
152
- return getRef(element, index);
153
- },
154
- chipId: chipId,
155
- key: "".concat(chipId, "_").concat(index),
156
- disabled: disabled,
157
- readOnly: readOnly,
158
- value: text,
159
- text: text,
160
- onKeyDown: function onKeyDown(event) {
161
- return handleChipKeyDown(event, chipId);
162
- },
163
- onClear: function onClear() {
164
- return onChipClear(chipId);
165
- },
166
- onClick: onChipClick
167
- });
168
- })), /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
169
- ref: inputRef,
170
- id: innerId,
171
- "aria-labelledby": labelId,
48
+ labelPlacement: labelPlacement
49
+ }, labelInside || label && /*#__PURE__*/React.createElement(Label, {
50
+ id: lableId
51
+ }, label), /*#__PURE__*/React.createElement(InputWrapper, null, contentLeft, /*#__PURE__*/React.createElement(InputLabelWrapper, null, /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
52
+ ref: ref,
53
+ "aria-labelledby": lableId,
172
54
  "aria-describedby": helperTextId,
173
- placeholder: innerPlaceholderValue,
55
+ placeholder: placeholder,
174
56
  disabled: disabled,
175
- readOnly: !disabled && readOnly,
176
57
  onChange: handleChange,
177
- onKeyDown: handleInputKeydown
58
+ onKeyUp: handleKeyUp
178
59
  })), labelInside && /*#__PURE__*/React.createElement(Label, {
179
- id: labelId,
180
- htmlFor: innerId
181
- }, innerLabelValue)), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
60
+ id: lableId
61
+ }, label)), contentRight), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
182
62
  id: helperTextId
183
63
  }, leftHelper));
184
64
  });
185
65
  };
186
66
  var textFieldConfig = {
187
67
  name: 'TextField',
188
- tag: 'div',
68
+ tag: 'label',
189
69
  layout: textFieldRoot,
190
70
  base: base,
191
71
  variations: {
@@ -199,19 +79,14 @@ var textFieldConfig = {
199
79
  css: base$3,
200
80
  attrs: true
201
81
  },
202
- readOnly: {
203
- css: base$4,
204
- attrs: true
205
- },
206
82
  labelPlacement: {
207
- css: base$5
83
+ css: base$4
208
84
  }
209
85
  },
210
86
  defaults: {
211
- size: 'm',
212
- view: 'default'
87
+ size: 'm'
213
88
  }
214
89
  };
215
90
 
216
- export { base, textFieldConfig, textFieldRoot };
91
+ export { textFieldConfig, textFieldRoot };
217
92
  //# sourceMappingURL=TextField.js.map