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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (421) hide show
  1. package/cjs/components/Combobox/Combobox.css +4 -4
  2. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  3. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  4. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  5. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  6. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  7. package/cjs/components/Dropdown/Dropdown.css +4 -4
  8. package/cjs/components/Dropdown/Dropdown.js +0 -1
  9. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  10. package/cjs/components/Pagination/Pagination.css +4 -4
  11. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  12. package/cjs/components/Popover/Popover.css +4 -4
  13. package/cjs/components/Popover/Popover.js +7 -18
  14. package/cjs/components/Popover/Popover.js.map +1 -1
  15. package/cjs/components/Popover/Popover.styles.js +1 -1
  16. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  17. package/cjs/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  18. package/cjs/components/Select/Select.css +4 -4
  19. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  20. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
  21. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  22. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
  23. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  24. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  25. package/cjs/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
  26. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  27. package/cjs/components/{TextField/variations/_read-only → Select/ui/SelectDivider/variations/_view}/base.js +2 -2
  28. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  29. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  30. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
  31. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  32. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
  33. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  34. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  35. package/cjs/components/{TextField → Select/ui/SelectFooter}/variations/_size/base.js +2 -2
  36. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  37. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  38. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
  39. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  40. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  41. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  42. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
  43. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  44. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
  45. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  46. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  47. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
  48. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  49. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  50. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
  51. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  52. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  53. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  54. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
  55. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  56. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
  57. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  58. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  59. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
  60. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  61. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  62. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
  63. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  64. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  65. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  66. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  67. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  68. package/cjs/components/TextField/TextField.js +29 -155
  69. package/cjs/components/TextField/TextField.js.map +1 -1
  70. package/cjs/components/TextField/TextField.styles.js +11 -27
  71. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  72. package/cjs/components/TextField/TextField.styles_2qw1n8.css +5 -0
  73. package/cjs/components/TextField/TextField.tokens.js +20 -68
  74. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  75. package/cjs/components/TextField/TextField_1lzb2r1.css +1 -0
  76. package/cjs/components/TextField/{variations/_disabled → _disabled}/base.js +2 -2
  77. package/cjs/components/TextField/_disabled/base.js.map +1 -0
  78. package/cjs/components/TextField/_disabled/base_so3w81.css +1 -0
  79. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
  80. package/cjs/components/TextField/_label-placement/base.js.map +1 -0
  81. package/cjs/components/TextField/_label-placement/base_x642ct.css +1 -0
  82. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/inner.js +2 -2
  83. package/cjs/components/TextField/_label-placement/inner.js.map +1 -0
  84. package/cjs/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
  85. package/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +2 -2
  86. package/cjs/components/TextField/_label-placement/outer.js.map +1 -0
  87. package/cjs/components/TextField/_label-placement/outer_19ekaek.css +1 -0
  88. package/cjs/components/TextField/_size/base.js +9 -0
  89. package/cjs/components/TextField/_size/base.js.map +1 -0
  90. package/cjs/components/TextField/_size/base_b5smyu.css +1 -0
  91. package/cjs/components/TextField/_view/base.js +9 -0
  92. package/cjs/components/TextField/_view/base.js.map +1 -0
  93. package/cjs/components/TextField/_view/base_5bqzed.css +1 -0
  94. package/cjs/index.css +37 -44
  95. package/cjs/index.js +41 -6
  96. package/cjs/index.js.map +1 -1
  97. package/cjs/utils/index.js +13 -1
  98. package/cjs/utils/index.js.map +1 -1
  99. package/cjs/utils/react.js +12 -2
  100. package/cjs/utils/react.js.map +1 -1
  101. package/es/components/Combobox/Combobox.css +4 -4
  102. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  103. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  104. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  105. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  106. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  107. package/es/components/Dropdown/Dropdown.css +4 -4
  108. package/es/components/Dropdown/Dropdown.js +0 -1
  109. package/es/components/Dropdown/Dropdown.js.map +1 -1
  110. package/es/components/Pagination/Pagination.css +4 -4
  111. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  112. package/es/components/Popover/Popover.css +4 -4
  113. package/es/components/Popover/Popover.js +7 -18
  114. package/es/components/Popover/Popover.js.map +1 -1
  115. package/es/components/Popover/Popover.styles.js +1 -1
  116. package/es/components/Popover/Popover.styles.js.map +1 -1
  117. package/es/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  118. package/es/components/Select/Select.css +4 -4
  119. package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  120. package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
  121. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  122. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
  123. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  124. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  125. package/es/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
  126. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  127. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  128. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
  129. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  130. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  131. package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  132. package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
  133. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  134. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
  135. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  136. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  137. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
  138. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  139. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  140. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
  141. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  142. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  143. package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  144. package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
  145. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  146. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
  147. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  148. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  149. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
  150. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  151. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  152. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
  153. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  154. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  155. package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  156. package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
  157. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  158. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
  159. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  160. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  161. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
  162. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  163. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  164. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
  165. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  166. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  167. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  168. package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  169. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  170. package/es/components/TextField/TextField.js +33 -158
  171. package/es/components/TextField/TextField.js.map +1 -1
  172. package/es/components/TextField/TextField.styles.js +12 -25
  173. package/es/components/TextField/TextField.styles.js.map +1 -1
  174. package/es/components/TextField/TextField.styles_2qw1n8.css +5 -0
  175. package/es/components/TextField/TextField.tokens.js +21 -68
  176. package/es/components/TextField/TextField.tokens.js.map +1 -1
  177. package/es/components/TextField/TextField_1lzb2r1.css +1 -0
  178. package/es/components/TextField/_disabled/base.js +5 -0
  179. package/es/components/TextField/_disabled/base.js.map +1 -0
  180. package/es/components/TextField/_disabled/base_so3w81.css +1 -0
  181. package/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
  182. package/es/components/TextField/_label-placement/base.js.map +1 -0
  183. package/es/components/TextField/_label-placement/base_x642ct.css +1 -0
  184. package/es/components/TextField/_label-placement/inner.js +5 -0
  185. package/es/components/TextField/_label-placement/inner.js.map +1 -0
  186. package/es/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
  187. package/es/components/TextField/_label-placement/outer.js +5 -0
  188. package/es/components/TextField/_label-placement/outer.js.map +1 -0
  189. package/es/components/TextField/_label-placement/outer_19ekaek.css +1 -0
  190. package/es/components/TextField/_size/base.js +5 -0
  191. package/es/components/TextField/_size/base.js.map +1 -0
  192. package/es/components/TextField/_size/base_b5smyu.css +1 -0
  193. package/es/components/TextField/_view/base.js +5 -0
  194. package/es/components/TextField/_view/base.js.map +1 -0
  195. package/es/components/TextField/_view/base_5bqzed.css +1 -0
  196. package/es/index.css +37 -44
  197. package/es/index.js +15 -2
  198. package/es/index.js.map +1 -1
  199. package/es/utils/index.js +11 -2
  200. package/es/utils/index.js.map +1 -1
  201. package/es/utils/react.js +9 -2
  202. package/es/utils/react.js.map +1 -1
  203. package/package.json +2 -2
  204. package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
  205. package/styled-components/cjs/components/Popover/Popover.js +7 -18
  206. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  207. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  208. package/styled-components/cjs/components/TextField/TextField.js +32 -162
  209. package/styled-components/cjs/components/TextField/TextField.styles.js +10 -18
  210. package/styled-components/cjs/components/TextField/TextField.tokens.js +21 -68
  211. package/styled-components/cjs/components/TextField/_disabled/base.js +9 -0
  212. package/styled-components/cjs/components/TextField/_label-placement/inner.js +10 -0
  213. package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +3 -3
  214. package/styled-components/cjs/components/TextField/_size/base.js +10 -0
  215. package/styled-components/cjs/components/TextField/_view/base.js +10 -0
  216. package/styled-components/cjs/components/TextField/index.js +2 -2
  217. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  218. package/styled-components/cjs/index.js +22 -0
  219. package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
  220. package/styled-components/es/components/Popover/Popover.js +7 -18
  221. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  222. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  223. package/styled-components/es/components/TextField/TextField.js +36 -166
  224. package/styled-components/es/components/TextField/TextField.styles.js +9 -17
  225. package/styled-components/es/components/TextField/TextField.tokens.js +20 -67
  226. package/styled-components/es/components/TextField/_disabled/base.js +3 -0
  227. package/styled-components/es/components/TextField/_label-placement/inner.js +4 -0
  228. package/styled-components/es/components/TextField/_label-placement/outer.js +4 -0
  229. package/styled-components/es/components/TextField/_size/base.js +4 -0
  230. package/styled-components/es/components/TextField/_view/base.js +4 -0
  231. package/styled-components/es/components/TextField/index.js +2 -2
  232. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  233. package/styled-components/es/index.js +2 -0
  234. package/types/components/Combobox/Combobox.styles.d.ts +2 -8
  235. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  236. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  237. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
  238. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  239. package/types/components/Popover/Popover.d.ts +2 -2
  240. package/types/components/Popover/Popover.d.ts.map +1 -1
  241. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  242. package/types/components/Popover/Popover.types.d.ts +12 -19
  243. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  244. package/types/components/Select/Select.styles.d.ts +2 -8
  245. package/types/components/Select/Select.styles.d.ts.map +1 -1
  246. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  247. package/types/components/TextField/TextField.d.ts +3 -8
  248. package/types/components/TextField/TextField.d.ts.map +1 -1
  249. package/types/components/TextField/TextField.styles.d.ts +3 -6
  250. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  251. package/types/components/TextField/TextField.tokens.d.ts +8 -57
  252. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  253. package/types/components/TextField/TextField.types.d.ts +2 -29
  254. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  255. package/types/components/TextField/_disabled/base.d.ts.map +1 -0
  256. package/types/components/TextField/_label-placement/base.d.ts.map +1 -0
  257. package/types/components/TextField/_label-placement/index.d.ts.map +1 -0
  258. package/types/components/TextField/_label-placement/inner.d.ts.map +1 -0
  259. package/types/components/TextField/_label-placement/outer.d.ts.map +1 -0
  260. package/types/components/TextField/_size/base.d.ts.map +1 -0
  261. package/types/components/TextField/_view/base.d.ts.map +1 -0
  262. package/types/components/TextField/index.d.ts +2 -3
  263. package/types/components/TextField/index.d.ts.map +1 -1
  264. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
  265. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  266. package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
  267. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  268. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
  269. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  270. package/types/index.d.ts +2 -0
  271. package/types/index.d.ts.map +1 -1
  272. package/cjs/components/TextField/TextField.styles_1b1mddp.css +0 -8
  273. package/cjs/components/TextField/TextField_wctd2m.css +0 -1
  274. package/cjs/components/TextField/hooks/useKeyNavigation.js +0 -133
  275. package/cjs/components/TextField/hooks/useKeyNavigation.js.map +0 -1
  276. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
  277. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -38
  278. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
  279. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -26
  280. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
  281. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1rauupp.css +0 -1
  282. package/cjs/components/TextField/variations/_disabled/base.js.map +0 -1
  283. package/cjs/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  284. package/cjs/components/TextField/variations/_label-placement/base.js.map +0 -1
  285. package/cjs/components/TextField/variations/_label-placement/inner.js.map +0 -1
  286. package/cjs/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
  287. package/cjs/components/TextField/variations/_label-placement/outer.js.map +0 -1
  288. package/cjs/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
  289. package/cjs/components/TextField/variations/_read-only/base.js.map +0 -1
  290. package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  291. package/cjs/components/TextField/variations/_size/base.js.map +0 -1
  292. package/cjs/components/TextField/variations/_size/base_1khzr9t.css +0 -1
  293. package/cjs/components/TextField/variations/_view/base.js.map +0 -1
  294. package/cjs/components/TextField/variations/_view/base_1qd77x6.css +0 -1
  295. package/es/components/TextField/TextField.styles_1b1mddp.css +0 -8
  296. package/es/components/TextField/TextField_wctd2m.css +0 -1
  297. package/es/components/TextField/hooks/useKeyNavigation.js +0 -128
  298. package/es/components/TextField/hooks/useKeyNavigation.js.map +0 -1
  299. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
  300. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -34
  301. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
  302. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -22
  303. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
  304. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1rauupp.css +0 -1
  305. package/es/components/TextField/variations/_disabled/base.js +0 -5
  306. package/es/components/TextField/variations/_disabled/base.js.map +0 -1
  307. package/es/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  308. package/es/components/TextField/variations/_label-placement/base.js.map +0 -1
  309. package/es/components/TextField/variations/_label-placement/inner.js +0 -5
  310. package/es/components/TextField/variations/_label-placement/inner.js.map +0 -1
  311. package/es/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
  312. package/es/components/TextField/variations/_label-placement/outer.js +0 -5
  313. package/es/components/TextField/variations/_label-placement/outer.js.map +0 -1
  314. package/es/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
  315. package/es/components/TextField/variations/_read-only/base.js +0 -5
  316. package/es/components/TextField/variations/_read-only/base.js.map +0 -1
  317. package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
  318. package/es/components/TextField/variations/_size/base.js +0 -5
  319. package/es/components/TextField/variations/_size/base.js.map +0 -1
  320. package/es/components/TextField/variations/_size/base_1khzr9t.css +0 -1
  321. package/es/components/TextField/variations/_view/base.js.map +0 -1
  322. package/es/components/TextField/variations/_view/base_1qd77x6.css +0 -1
  323. package/styled-components/cjs/components/TextField/hooks/index.js +0 -12
  324. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.js +0 -139
  325. package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.types.js +0 -5
  326. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -39
  327. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -25
  328. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -5
  329. package/styled-components/cjs/components/TextField/ui/index.js +0 -12
  330. package/styled-components/cjs/components/TextField/variations/_disabled/base.js +0 -10
  331. package/styled-components/cjs/components/TextField/variations/_label-placement/inner.js +0 -10
  332. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +0 -10
  333. package/styled-components/cjs/components/TextField/variations/_read-only/tokens.json +0 -1
  334. package/styled-components/cjs/components/TextField/variations/_size/base.js +0 -10
  335. package/styled-components/cjs/components/TextField/variations/_view/base.js +0 -10
  336. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +0 -43
  337. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.js +0 -11
  338. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -123
  339. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +0 -40
  340. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.js +0 -11
  341. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -123
  342. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.config.js +0 -43
  343. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.js +0 -11
  344. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -123
  345. package/styled-components/es/components/TextField/hooks/index.js +0 -1
  346. package/styled-components/es/components/TextField/hooks/useKeyNavigation.js +0 -133
  347. package/styled-components/es/components/TextField/hooks/useKeyNavigation.types.js +0 -1
  348. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -30
  349. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -19
  350. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -1
  351. package/styled-components/es/components/TextField/ui/index.js +0 -1
  352. package/styled-components/es/components/TextField/variations/_disabled/base.js +0 -4
  353. package/styled-components/es/components/TextField/variations/_label-placement/inner.js +0 -4
  354. package/styled-components/es/components/TextField/variations/_label-placement/outer.js +0 -4
  355. package/styled-components/es/components/TextField/variations/_read-only/base.js +0 -4
  356. package/styled-components/es/components/TextField/variations/_read-only/tokens.json +0 -1
  357. package/styled-components/es/components/TextField/variations/_size/base.js +0 -4
  358. package/styled-components/es/components/TextField/variations/_view/base.js +0 -4
  359. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +0 -37
  360. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.js +0 -5
  361. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -123
  362. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +0 -34
  363. package/styled-components/es/examples/plasma_web/components/TextField/TextField.js +0 -5
  364. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -123
  365. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.config.js +0 -37
  366. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.js +0 -5
  367. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -123
  368. package/types/components/TextField/hooks/index.d.ts +0 -2
  369. package/types/components/TextField/hooks/index.d.ts.map +0 -1
  370. package/types/components/TextField/hooks/useKeyNavigation.d.ts +0 -17
  371. package/types/components/TextField/hooks/useKeyNavigation.d.ts.map +0 -1
  372. package/types/components/TextField/hooks/useKeyNavigation.types.d.ts +0 -18
  373. package/types/components/TextField/hooks/useKeyNavigation.types.d.ts.map +0 -1
  374. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +0 -7
  375. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +0 -1
  376. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -15
  377. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +0 -1
  378. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +0 -37
  379. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +0 -1
  380. package/types/components/TextField/ui/index.d.ts +0 -2
  381. package/types/components/TextField/ui/index.d.ts.map +0 -1
  382. package/types/components/TextField/variations/_disabled/base.d.ts.map +0 -1
  383. package/types/components/TextField/variations/_label-placement/base.d.ts.map +0 -1
  384. package/types/components/TextField/variations/_label-placement/index.d.ts.map +0 -1
  385. package/types/components/TextField/variations/_label-placement/inner.d.ts.map +0 -1
  386. package/types/components/TextField/variations/_label-placement/outer.d.ts.map +0 -1
  387. package/types/components/TextField/variations/_read-only/base.d.ts.map +0 -1
  388. package/types/components/TextField/variations/_size/base.d.ts.map +0 -1
  389. package/types/components/TextField/variations/_view/base.d.ts +0 -2
  390. package/types/components/TextField/variations/_view/base.d.ts.map +0 -1
  391. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +0 -32
  392. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +0 -1
  393. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -26
  394. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +0 -1
  395. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +0 -32
  396. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +0 -1
  397. package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -26
  398. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +0 -1
  399. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts +0 -32
  400. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts.map +0 -1
  401. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +0 -26
  402. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +0 -1
  403. /package/cjs/components/{TextField/variations/_label-placement → Select/ui/SelectDivider/variations/_size}/base_x642ct.css +0 -0
  404. /package/{es/components/TextField/variations/_label-placement → cjs/components/Select/ui/SelectDivider/variations/_view}/base_x642ct.css +0 -0
  405. /package/styled-components/cjs/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
  406. /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
  407. /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
  408. /package/styled-components/cjs/components/TextField/{variations/_size → _size}/tokens.json +0 -0
  409. /package/styled-components/cjs/components/TextField/{variations/_view → _view}/tokens.json +0 -0
  410. /package/styled-components/es/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
  411. /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
  412. /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
  413. /package/styled-components/es/components/TextField/{variations/_size → _size}/tokens.json +0 -0
  414. /package/styled-components/es/components/TextField/{variations/_view → _view}/tokens.json +0 -0
  415. /package/types/components/TextField/{variations/_disabled → _disabled}/base.d.ts +0 -0
  416. /package/types/components/TextField/{variations/_label-placement → _label-placement}/base.d.ts +0 -0
  417. /package/types/components/TextField/{variations/_label-placement → _label-placement}/index.d.ts +0 -0
  418. /package/types/components/TextField/{variations/_label-placement → _label-placement}/inner.d.ts +0 -0
  419. /package/types/components/TextField/{variations/_label-placement → _label-placement}/outer.d.ts +0 -0
  420. /package/types/components/TextField/{variations/_read-only → _size}/base.d.ts +0 -0
  421. /package/types/components/TextField/{variations/_size → _view}/base.d.ts +0 -0
package/es/index.js CHANGED
@@ -13,6 +13,7 @@ export { useUniqId } from './hooks/useUniqId.js';
13
13
  export { usePreviousValue } from './hooks/usePreviousValue.js';
14
14
  export { useForceUpdate } from './hooks/useForceUpdate.js';
15
15
  export { useDidMountEffect } from './hooks/useDidMountEffect.js';
16
+ export { composableStyle, cx } from './utils/index.js';
16
17
  export { buttonConfig, buttonRoot } from './components/Button/Button.js';
17
18
  export { classes as buttonClasses, tokens as buttonTokens } from './components/Button/Button.tokens.js';
18
19
  export { buttonGroupConfig, buttonGroupRoot } from './components/ButtonGroup/ButtonGroup.js';
@@ -35,8 +36,8 @@ export { popoverConfig, popoverRoot } from './components/Popover/Popover.js';
35
36
  export { classes as popoverClasses, tokens as popoverTokens } from './components/Popover/Popover.tokens.js';
36
37
  export { textAreaConfig, textAreaRoot } from './components/TextArea/TextArea.js';
37
38
  export { tokens as textAreaTokens } from './components/TextArea/TextArea.tokens.js';
38
- export { labelPlacement_inner as textField_labelPlacement_inner } from './components/TextField/variations/_label-placement/inner.js';
39
- export { labelPlacement_outer as textField_labelPlacement_outer } from './components/TextField/variations/_label-placement/outer.js';
39
+ export { labelPlacement_inner as textField_labelPlacement_inner } from './components/TextField/_label-placement/inner.js';
40
+ export { labelPlacement_outer as textField_labelPlacement_outer } from './components/TextField/_label-placement/outer.js';
40
41
  export { textFieldConfig, textFieldRoot } from './components/TextField/TextField.js';
41
42
  export { tokens as textFieldTokens } from './components/TextField/TextField.tokens.js';
42
43
  export { labelPosition_After as Switch_LabelPosition_After } from './components/Switch/_label-position/after.js';
@@ -142,10 +143,22 @@ export { Col } from './components/Grid/ui/Col/Col.js';
142
143
  export { getBaseGridView } from './components/Grid/utils/index.js';
143
144
  export { progressConfig, progressRoot } from './components/Progress/Progress.js';
144
145
  export { tokens as progressTokens } from './components/Progress/Progress.tokens.js';
146
+ export { selectConfig, selectRoot } from './components/Select/Select.js';
147
+ export { classes as selectClasses, tokens as selectTokens } from './components/Select/Select.tokens.js';
148
+ export { selectDividerConfig, selectDividerRoot } from './components/Select/ui/SelectDivider/SelectDivider.js';
149
+ export { selectFooterConfig, selectFooterRoot } from './components/Select/ui/SelectFooter/SelectFooter.js';
150
+ export { selectGroupConfig, selectGroupRoot } from './components/Select/ui/SelectGroup/SelectGroup.js';
151
+ export { selectHeaderConfig, selectHeaderRoot } from './components/Select/ui/SelectHeader/SelectHeader.js';
152
+ export { selectItemConfig, selectItemRoot } from './components/Select/ui/SelectItem/SelectItem.js';
153
+ export { SelectTarget } from './components/Select/ui/SelectTarget/SelectTarget.js';
145
154
  export { dividerConfig, dividerRoot } from './components/Divider/Divider.js';
146
155
  export { classes as dividerClasses, tokens as dividerTokens } from './components/Divider/Divider.tokens.js';
147
156
  export { toolbarConfig, toolbarRoot } from './components/Toolbar/Toolbar.js';
148
157
  export { tokens as toolbarTokens } from './components/Toolbar/Toolbar.tokens.js';
149
158
  export { toolbarDividerConfig, toolbarDividerRoot } from './components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js';
150
159
  export { component, mergeConfig } from './engines/common.js';
160
+ export { extractTextFrom } from './utils/extractTextFrom.js';
161
+ export { getSizeValueFromProp } from './utils/getSizeValueFromProp.js';
162
+ export { IS_REACT_18, safeUseId } from './utils/react.js';
163
+ export { isNumber } from './utils/isNumber.js';
151
164
  //# sourceMappingURL=index.js.map
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/es/utils/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- import './react.js';
2
+ export { IS_REACT_18, safeUseId } from './react.js';
3
3
 
4
4
  var cx = function cx() {
5
5
  for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -9,6 +9,15 @@ var cx = function cx() {
9
9
  return classItem;
10
10
  }).join(' ');
11
11
  };
12
+ var composableStyle = function composableStyle(s) {
13
+ var res = '';
14
+ for (var i = 0; i < Math.max(s.length, arguments.length <= 1 ? 0 : arguments.length - 1); ++i) {
15
+ var _s$i, _ref;
16
+ res += (_s$i = s[i]) !== null && _s$i !== void 0 ? _s$i : '';
17
+ res += (_ref = i + 1 < 1 || arguments.length <= i + 1 ? undefined : arguments[i + 1]) !== null && _ref !== void 0 ? _ref : '';
18
+ }
19
+ return res;
20
+ };
12
21
 
13
- export { cx };
22
+ export { composableStyle, cx };
14
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\n\nexport const cx = (...classes: (string | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join"],"mappings":";;;AAOaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAA6BF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\n\nexport const cx = (...classes: (string | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":";;;AAOaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAA6BF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAE/FC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;"}
package/es/utils/react.js CHANGED
@@ -1,5 +1,12 @@
1
- import 'react';
1
+ import React from 'react';
2
2
  import ReactDOM from 'react-dom';
3
+ import { useUniqId } from '../hooks/useUniqId.js';
3
4
 
4
- ReactDOM.version.split('.')[0] === '18';
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ var _ref = React,
7
+ useId = _ref.useId;
8
+ var IS_REACT_18 = ReactDOM.version.split('.')[0] === '18';
9
+ var safeUseId = !IS_REACT_18 ? useUniqId : useId;
10
+
11
+ export { IS_REACT_18, safeUseId };
5
12
  //# sourceMappingURL=react.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react.js","sources":["../../src/utils/react.ts"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\n\n// NOTE: для next.js важно, чтобы путь до хука был полный, т.к. есть проблемы с ре-экспортом\nimport { useUniqId } from '../hooks/useUniqId';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst { useId } = React as any;\n\nexport const IS_REACT_18 = ReactDOM.version.split('.')[0] === '18';\n\nexport const safeUseId: () => string = !IS_REACT_18 ? useUniqId : useId;\n"],"names":["ReactDOM","version","split"],"mappings":";;;AAS2BA,QAAQ,CAACC,OAAO,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK"}
1
+ {"version":3,"file":"react.js","sources":["../../src/utils/react.ts"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\n\n// NOTE: для next.js важно, чтобы путь до хука был полный, т.к. есть проблемы с ре-экспортом\nimport { useUniqId } from '../hooks/useUniqId';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst { useId } = React as any;\n\nexport const IS_REACT_18 = ReactDOM.version.split('.')[0] === '18';\n\nexport const safeUseId: () => string = !IS_REACT_18 ? useUniqId : useId;\n"],"names":["_ref","React","useId","IS_REACT_18","ReactDOM","version","split","safeUseId","useUniqId"],"mappings":";;;;AAMA;AACA,IAAAA,IAAA,GAAkBC,KAAK;EAAfC,KAAK,GAAAF,IAAA,CAALE,KAAK,CAAA;IAEAC,WAAW,GAAGC,QAAQ,CAACC,OAAO,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,KAAI;AAE3D,IAAMC,SAAuB,GAAG,CAACJ,WAAW,GAAGK,SAAS,GAAGN;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.70.0-canary.1160.8541256541.0",
3
+ "version": "0.70.0-canary.1161.8546427267.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -102,5 +102,5 @@
102
102
  "react-popper": "2.3.0",
103
103
  "storeon": "3.1.5"
104
104
  },
105
- "gitHead": "a7e2c0ff7afbd1e55280d97c0e5a49cf9ca92959"
105
+ "gitHead": "f58910ddc0e886adc386cf43fb6dcb6c218b52aa"
106
106
  }
@@ -71,7 +71,6 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
71
71
  placement: (0, _utils.getPlacements)(placement),
72
72
  trigger: trigger,
73
73
  closeOnOverlayClick: closeOnOverlayClick,
74
- closeOnBeyondTargetHover: false,
75
74
  closeOnEsc: closeOnEsc,
76
75
  isFocusTrapped: isFocusTrapped,
77
76
  frame: frame
@@ -66,14 +66,6 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
66
66
  view = props.view,
67
67
  onToggle = props.onToggle,
68
68
  rest = _objectWithoutProperties(props, _excluded);
69
- var closeOnOverlayClick = true;
70
- var closeOnBeyondTargetHover = true;
71
- if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
72
- closeOnOverlayClick = false;
73
- }
74
- if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
75
- closeOnBeyondTargetHover = false;
76
- }
77
69
  var rootRef = (0, _react.useRef)(null);
78
70
  var popoverRef = (0, _react.useRef)(null);
79
71
  var handleRef = (0, _plasmaCore.useForkRef)(rootRef, outerRootRef);
@@ -129,7 +121,7 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
129
121
  }
130
122
  }, [closeOnEsc, isOpen, onToggle]);
131
123
  var onDocumentClick = (0, _react.useCallback)(function (event) {
132
- if (isOpen && closeOnOverlayClick && onToggle) {
124
+ if (isOpen && props.closeOnOverlayClick && onToggle) {
133
125
  var _rootRef$current;
134
126
  var targetIsRoot = event.target === rootRef.current;
135
127
  var rootHasTarget = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.contains(event.target);
@@ -137,7 +129,7 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
137
129
  onToggle(false, event);
138
130
  }
139
131
  }
140
- }, [closeOnOverlayClick, isOpen, onToggle]);
132
+ }, [props.closeOnOverlayClick, isOpen, onToggle]);
141
133
  var onClick = (0, _react.useCallback)(function (event) {
142
134
  if (trigger === 'click') {
143
135
  var _popoverRef$current;
@@ -173,7 +165,7 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
173
165
  return function () {
174
166
  return document.removeEventListener('click', onDocumentClick);
175
167
  };
176
- }, [closeOnOverlayClick, isOpen, onToggle]);
168
+ }, [isOpen, onToggle]);
177
169
  (0, _react.useEffect)(function () {
178
170
  window.addEventListener('keydown', onEscape);
179
171
  return function () {
@@ -220,22 +212,19 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
220
212
  Promise.resolve().then(forceUpdate);
221
213
  }, [isOpen, children, forceUpdate]);
222
214
  return /*#__PURE__*/_react["default"].createElement(_Popover.StyledWrapper, {
223
- className: _Popover2.classes.wrapper
215
+ className: _Popover2.classes.wrapper,
216
+ onMouseEnter: onMouseEnter,
217
+ onMouseLeave: onMouseLeave
224
218
  }, /*#__PURE__*/_react["default"].createElement(_Popover.StyledRoot, {
225
219
  ref: handleRef,
226
220
  onClick: onClick,
227
- onMouseEnter: onMouseEnter,
228
- onMouseLeave: onMouseLeave,
229
221
  onFocus: onFocus,
230
222
  onBlur: onBlur,
231
223
  className: (0, _utils.cx)(className, _Popover2.classes.target)
232
224
  }, target), children && portalRef.current && /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement(Root, _extends({
233
225
  view: view,
234
226
  className: className
235
- }, rest, {
236
- onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
237
- onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
238
- }), /*#__PURE__*/_react["default"].createElement(_Popover.StyledPopover, _extends({}, attributes.popper, {
227
+ }, rest), /*#__PURE__*/_react["default"].createElement(_Popover.StyledPopover, _extends({}, attributes.popper, {
239
228
  className: _Popover2.classes.root,
240
229
  ref: popoverForkRef,
241
230
  style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
@@ -10,7 +10,7 @@ var _Popover = /*#__PURE__*/require("./Popover.tokens");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  var StyledWrapper = exports.StyledWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
12
12
  componentId: "plasma-new-hope__sc-tnpyex-0"
13
- })([""]);
13
+ })(["display:inline-block;"]);
14
14
  var StyledRoot = exports.StyledRoot = /*#__PURE__*/_styledComponents["default"].div.withConfig({
15
15
  componentId: "plasma-new-hope__sc-tnpyex-1"
16
16
  })(["display:inline-flex;box-sizing:border-box;position:relative;"]);
@@ -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
24
  return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
36
- var id = props.id,
37
- contentLeft = props.contentLeft,
25
+ var contentLeft = props.contentLeft,
38
26
  contentRight = props.contentRight,
27
+ children = props.children,
39
28
  label = props.label,
40
29
  labelPlacement = props.labelPlacement,
41
30
  placeholder = props.placeholder,
42
31
  leftHelper = props.leftHelper,
43
- _props$enumerationTyp = props.enumerationType,
44
- enumerationType = _props$enumerationTyp === void 0 ? 'plain' : _props$enumerationTyp,
45
32
  view = props.view,
46
33
  size = props.size,
47
- _props$readOnly = props.readOnly,
48
- readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
49
- _props$disabled = props.disabled,
50
- disabled = _props$disabled === void 0 ? false : _props$disabled,
51
- values = props.values,
34
+ disabled = props.disabled,
52
35
  onChange = props.onChange,
53
- onChangeChips = props.onChangeChips,
54
36
  onSearch = props.onSearch,
55
37
  rest = _objectWithoutProperties(props, _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;
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 (_ref, index) {
164
- var chipId = _ref.id,
165
- text = _ref.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
  })([""]);