@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
@@ -1,133 +0,0 @@
1
- import React, { ComponentProps, useState } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
- import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
5
-
6
- import { WithTheme } from '../../../_helpers';
7
-
8
- import { TextField } from './TextField';
9
-
10
- const onChange = action('onChange');
11
- const onFocus = action('onFocus');
12
- const onBlur = action('onBlur');
13
- const onSearch = action('onSearch');
14
-
15
- const sizes = ['l', 'm', 's', 'xs'];
16
- const views = ['default', 'positive', 'warning', 'negative'];
17
- const enumerationTypes = ['plain', 'chip'];
18
- const labelPlacements = ['outer', 'inner'];
19
-
20
- const meta: Meta<typeof TextField> = {
21
- title: 'plasma_b2c/TextField',
22
- component: TextField,
23
- decorators: [WithTheme],
24
- argTypes: {
25
- view: {
26
- options: views,
27
- control: {
28
- type: 'select',
29
- },
30
- },
31
- maxLength: {
32
- control: {
33
- type: 'number',
34
- },
35
- },
36
- labelPlacement: {
37
- options: labelPlacements,
38
- control: {
39
- type: 'inline-radio',
40
- },
41
- },
42
- enumerationType: {
43
- options: enumerationTypes,
44
- control: {
45
- type: 'select',
46
- },
47
- },
48
- size: {
49
- options: sizes,
50
- control: {
51
- type: 'inline-radio',
52
- },
53
- },
54
- },
55
- };
56
-
57
- export default meta;
58
-
59
- type StoryPropsDefault = Omit<
60
- ComponentProps<typeof TextField>,
61
- | 'helperBlock'
62
- | 'contentLeft'
63
- | 'htmlSize'
64
- | 'contentRight'
65
- | 'type'
66
- | 'name'
67
- | 'onFocus'
68
- | 'onBlur'
69
- | 'onChange'
70
- | 'value'
71
- | 'checked'
72
- | 'maxLength'
73
- | 'minLength'
74
- | 'required'
75
- > & {
76
- 'storybook:contentLeft': boolean;
77
- 'storybook:contentRight': boolean;
78
- };
79
-
80
- const StoryDemo = ({
81
- 'storybook:contentLeft': enableContentLeft,
82
- 'storybook:contentRight': enableContentRight,
83
- view,
84
- ...rest
85
- }: StoryPropsDefault) => {
86
- const [text, setText] = useState('Значение поля');
87
-
88
- const iconSize = rest.size === 'xs' ? 'xs' : 's';
89
-
90
- return (
91
- <TextField
92
- {...rest}
93
- value={text}
94
- contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
95
- contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
96
- view={view}
97
- onChange={(e) => {
98
- setText(e.target.value);
99
- onChange(e.target.value);
100
- }}
101
- onFocus={onFocus}
102
- onBlur={onBlur}
103
- onSearch={onSearch}
104
- />
105
- );
106
- };
107
-
108
- export const Default: StoryObj<StoryPropsDefault> = {
109
- args: {
110
- id: 'example-text-field',
111
- size: 'l',
112
- view: 'default',
113
- label: 'Лейбл',
114
- labelPlacement: 'outer',
115
- placeholder: 'Заполните поле',
116
- leftHelper: 'Подсказка к полю',
117
- enumerationType: 'plain',
118
- disabled: false,
119
- readOnly: false,
120
- 'storybook:contentLeft': true,
121
- 'storybook:contentRight': true,
122
- },
123
- render: (args) => <StoryDemo {...args} />,
124
- };
125
-
126
- export const Chips: StoryObj<StoryPropsDefault> = {
127
- args: {
128
- ...Default.args,
129
- enumerationType: 'chip',
130
- values: ['1 value', '2 value', '3 value', '4 value'],
131
- },
132
- render: (args) => <StoryDemo {...args} />,
133
- };
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.config = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _TextField = /*#__PURE__*/require("../../../../components/TextField");
9
- var config = exports.config = {
10
- defaults: {
11
- view: 'default',
12
- size: 'l',
13
- labelPlacement: 'outer'
14
- },
15
- variations: {
16
- view: {
17
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-transparent-tertiary);", ":var(--plasma-colors-secondary);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.borderColor, _TextField.textFieldTokens.borderColorHover, _TextField.textFieldTokens.borderColorFocus, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor),
18
- positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--surface-positive);", ":var(--surface-positive);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.borderColor, _TextField.textFieldTokens.borderColorHover, _TextField.textFieldTokens.borderColorFocus, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor),
19
- warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--surface-warning);", ":var(--surface-warning);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.borderColor, _TextField.textFieldTokens.borderColorHover, _TextField.textFieldTokens.borderColorFocus, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor),
20
- negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--surface-negative);", ":var(--surface-negative);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.borderColor, _TextField.textFieldTokens.borderColorHover, _TextField.textFieldTokens.borderColorFocus, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor)
21
- },
22
- size: {
23
- l: /*#__PURE__*/(0, _styledComponents.css)(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":0.0625rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.borderWidth, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight),
24
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":3rem;", ":0.875rem 1rem 0.875rem 1rem;", ":0.375rem;", ":0.75rem;", ":0.0625rem;", ":-0.125rem 0.375rem -0.125rem -0.125rem;", ":-0.125rem -0.125rem -0.125rem 0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.625rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem 0 0.125rem 0;", ":1.375rem 0 0.375rem 0;", ":0.25rem;", ":0.375rem;", ":auto;", ":2.25rem;", ":0.625rem;", ":0.875rem;", ":0.5rem;", ":0rem;", ":1.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.borderWidth, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight),
25
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.5rem;", ":0.6875rem 0.875rem 0.6875rem 0.875rem;", ":0.375rem;", ":0.625rem;", ":0.0625rem;", ":-0.1875rem 0.25rem -0.1875rem -0.125rem;", ":-0.1875rem -0.125rem -0.1875rem 0.75rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.5rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.25rem;", ":auto;", ":1.75rem;", ":0.5rem;", ":0.75rem;", ":0.375rem;", ":0rem;", ":1rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.borderWidth, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight),
26
- xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":0.5625rem 0.625rem 0.5625rem 0.625rem;", ":0.375rem;", ":0.5rem;", ":0.0625rem;", ":-0.0625rem 0.25rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.125rem;", ":auto;", ":1.25rem;", ":0.375rem;", ":0.625rem;", ":0.25rem;", ":0rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.borderWidth, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight)
27
- },
28
- labelPlacement: {
29
- inner: [_TextField.textField_labelPlacement_inner, /*#__PURE__*/(0, _styledComponents.css)(["&.", "{", ":var(--plasma-input-label-color,var(--plasma-input-placeholder-color,var(--plasma-colors-secondary)));", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);}"], _TextField.textField_labelPlacement_inner, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelInnerFontFamily, _TextField.textFieldTokens.labelInnerFontSize, _TextField.textFieldTokens.labelInnerFontStyle, _TextField.textFieldTokens.labelInnerFontWeight, _TextField.textFieldTokens.labelInnerLetterSpacing, _TextField.textFieldTokens.labelInnerLineHeight)],
30
- outer: [_TextField.textField_labelPlacement_outer, /*#__PURE__*/(0, _styledComponents.css)(["&.", "{}"], _TextField.textField_labelPlacement_outer)]
31
- },
32
- disabled: {
33
- "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _TextField.textFieldTokens.disabledOpacity)
34
- },
35
- // TODO заменить --surface-transparent-primary на корректный токен
36
- readOnly: {
37
- "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary);"], _TextField.textFieldTokens.colorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _TextField.textFieldTokens.borderColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _TextField.textFieldTokens.leftHelperColorReadOnly, _TextField.textFieldTokens.labelColorReadOnly)
38
- }
39
- }
40
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TextField = void 0;
7
- var _engines = /*#__PURE__*/require("../../../../engines");
8
- var _TextField = /*#__PURE__*/require("../../../../components/TextField");
9
- var _TextField2 = /*#__PURE__*/require("./TextField.config");
10
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_TextField.textFieldConfig, _TextField2.config);
11
- var TextField = exports.TextField = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -1,133 +0,0 @@
1
- import React, { ComponentProps, useState } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
- import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
5
-
6
- import { WithTheme } from '../../../_helpers';
7
-
8
- import { TextField } from './TextField';
9
-
10
- const onChange = action('onChange');
11
- const onFocus = action('onFocus');
12
- const onBlur = action('onBlur');
13
- const onSearch = action('onSearch');
14
-
15
- const sizes = ['l', 'm', 's', 'xs'];
16
- const views = ['default', 'positive', 'warning', 'negative'];
17
- const enumerationTypes = ['plain', 'chip'];
18
- const labelPlacements = ['outer', 'inner'];
19
-
20
- const meta: Meta<typeof TextField> = {
21
- title: 'plasma_web/TextField',
22
- component: TextField,
23
- decorators: [WithTheme],
24
- argTypes: {
25
- view: {
26
- options: views,
27
- control: {
28
- type: 'select',
29
- },
30
- },
31
- maxLength: {
32
- control: {
33
- type: 'number',
34
- },
35
- },
36
- labelPlacement: {
37
- options: labelPlacements,
38
- control: {
39
- type: 'inline-radio',
40
- },
41
- },
42
- enumerationType: {
43
- options: enumerationTypes,
44
- control: {
45
- type: 'select',
46
- },
47
- },
48
- size: {
49
- options: sizes,
50
- control: {
51
- type: 'inline-radio',
52
- },
53
- },
54
- },
55
- };
56
-
57
- export default meta;
58
-
59
- type StoryPropsDefault = Omit<
60
- ComponentProps<typeof TextField>,
61
- | 'helperBlock'
62
- | 'contentLeft'
63
- | 'htmlSize'
64
- | 'contentRight'
65
- | 'type'
66
- | 'name'
67
- | 'onFocus'
68
- | 'onBlur'
69
- | 'onChange'
70
- | 'value'
71
- | 'checked'
72
- | 'maxLength'
73
- | 'minLength'
74
- | 'required'
75
- > & {
76
- 'storybook:contentLeft': boolean;
77
- 'storybook:contentRight': boolean;
78
- };
79
-
80
- const StoryDemo = ({
81
- 'storybook:contentLeft': enableContentLeft,
82
- 'storybook:contentRight': enableContentRight,
83
- view,
84
- ...rest
85
- }: StoryPropsDefault) => {
86
- const [text, setText] = useState('Значение поля');
87
-
88
- const iconSize = rest.size === 'xs' ? 'xs' : 's';
89
-
90
- return (
91
- <TextField
92
- {...rest}
93
- value={text}
94
- contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
95
- contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
96
- view={view}
97
- onChange={(e) => {
98
- setText(e.target.value);
99
- onChange(e.target.value);
100
- }}
101
- onFocus={onFocus}
102
- onBlur={onBlur}
103
- onSearch={onSearch}
104
- />
105
- );
106
- };
107
-
108
- export const Default: StoryObj<StoryPropsDefault> = {
109
- args: {
110
- id: 'example-text-field',
111
- size: 'l',
112
- view: 'default',
113
- label: 'Лейбл',
114
- labelPlacement: 'outer',
115
- placeholder: 'Заполните поле',
116
- leftHelper: 'Подсказка к полю',
117
- enumerationType: 'plain',
118
- disabled: false,
119
- readOnly: false,
120
- 'storybook:contentLeft': true,
121
- 'storybook:contentRight': true,
122
- },
123
- render: (args) => <StoryDemo {...args} />,
124
- };
125
-
126
- export const Chips: StoryObj<StoryPropsDefault> = {
127
- args: {
128
- ...Default.args,
129
- enumerationType: 'chip',
130
- values: ['1 value', '2 value', '3 value', '4 value'],
131
- },
132
- render: (args) => <StoryDemo {...args} />,
133
- };
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.config = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _TextField = /*#__PURE__*/require("../../../../components/TextField");
9
- var config = exports.config = {
10
- defaults: {
11
- view: 'default',
12
- size: 'l',
13
- labelPlacement: 'outer'
14
- },
15
- variations: {
16
- view: {
17
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.backgroundColorFocus, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.colorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor),
18
- // TODO заменить --surface-transparent-positive на корректный токен
19
- positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-colors-primary);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.backgroundColorFocus, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.colorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor),
20
- // // TODO заменить --surface-transparent-warning на корректный токен
21
- warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-colors-primary);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.backgroundColorFocus, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.colorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor),
22
- // // TODO заменить --surface-transparent-negative на корректный токен
23
- negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-colors-primary);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], _TextField.textFieldTokens.color, _TextField.textFieldTokens.backgroundColor, _TextField.textFieldTokens.backgroundColorFocus, _TextField.textFieldTokens.caretColor, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelColor, _TextField.textFieldTokens.leftHelperColor, _TextField.textFieldTokens.colorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _TextField.textFieldTokens.chipCloseIconColor, _TextField.textFieldTokens.chipColor, _TextField.textFieldTokens.chipBackground, _TextField.textFieldTokens.chipColorHover, _TextField.textFieldTokens.chipBackgroundHover, _TextField.textFieldTokens.chipColorActive, _TextField.textFieldTokens.chipBackgroundActive, _TextField.textFieldTokens.chipBackgroundReadOnly, _TextField.textFieldTokens.chipColorReadOnly, _TextField.textFieldTokens.chipBackgroundReadOnlyHover, _TextField.textFieldTokens.chipColorReadOnlyHover, _TextField.textFieldTokens.chipOpacityReadonly, _TextField.textFieldTokens.focusColor)
24
- },
25
- size: {
26
- l: /*#__PURE__*/(0, _styledComponents.css)(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight),
27
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":3rem;", ":0.875rem 1rem 0.875rem 1rem;", ":0.375rem;", ":0.75rem;", ":-0.125rem 0.375rem -0.125rem -0.125rem;", ":-0.125rem -0.125rem -0.125rem 0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.625rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem 0 0.125rem 0;", ":1.375rem 0 0.375rem 0;", ":0.25rem;", ":0.375rem;", ":auto;", ":2.25rem;", ":0.625rem;", ":0.875rem;", ":0.5rem;", ":0rem;", ":1.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight),
28
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":2.5rem;", ":0.6875rem 0.875rem 0.6875rem 0.875rem;", ":0.375rem;", ":0.625rem;", ":-0.1875rem 0.25rem -0.1875rem -0.125rem;", ":-0.1875rem -0.125rem -0.1875rem 0.75rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.5rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.25rem;", ":auto;", ":1.75rem;", ":0.5rem;", ":0.75rem;", ":0.375rem;", ":0rem;", ":1rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight),
29
- xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":2rem;", ":0.5625rem 0.625rem 0.5625rem 0.625rem;", ":0.375rem;", ":0.5rem;", ":-0.0625rem 0.25rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.125rem;", ":auto;", ":1.25rem;", ":0.375rem;", ":0.625rem;", ":0.25rem;", ":0rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _TextField.textFieldTokens.height, _TextField.textFieldTokens.padding, _TextField.textFieldTokens.paddingWithChips, _TextField.textFieldTokens.borderRadius, _TextField.textFieldTokens.leftContentMargin, _TextField.textFieldTokens.rightContentMargin, _TextField.textFieldTokens.fontFamily, _TextField.textFieldTokens.fontSize, _TextField.textFieldTokens.fontStyle, _TextField.textFieldTokens.fontWeight, _TextField.textFieldTokens.letterSpacing, _TextField.textFieldTokens.lineHeight, _TextField.textFieldTokens.labelOffset, _TextField.textFieldTokens.labelFontFamily, _TextField.textFieldTokens.labelFontSize, _TextField.textFieldTokens.labelFontStyle, _TextField.textFieldTokens.labelFontWeight, _TextField.textFieldTokens.labelLetterSpacing, _TextField.textFieldTokens.labelLineHeight, _TextField.textFieldTokens.leftHelperOffset, _TextField.textFieldTokens.leftHelperFontFamily, _TextField.textFieldTokens.leftHelperFontSize, _TextField.textFieldTokens.leftHelperFontStyle, _TextField.textFieldTokens.leftHelperFontWeight, _TextField.textFieldTokens.leftHelperLetterSpacing, _TextField.textFieldTokens.leftHelperLineHeight, _TextField.textFieldTokens.labelInnerPadding, _TextField.textFieldTokens.contentLabelInnerPadding, _TextField.textFieldTokens.chipGap, _TextField.textFieldTokens.chipBorderRadius, _TextField.textFieldTokens.chipWidth, _TextField.textFieldTokens.chipHeight, _TextField.textFieldTokens.chipPaddingRight, _TextField.textFieldTokens.chipPaddingLeft, _TextField.textFieldTokens.chipClearContentMarginLeft, _TextField.textFieldTokens.chipClearContentMarginRight, _TextField.textFieldTokens.chipCloseIconSize, _TextField.textFieldTokens.chipFontFamily, _TextField.textFieldTokens.chipFontSize, _TextField.textFieldTokens.chipFontStyle, _TextField.textFieldTokens.chipFontWeight, _TextField.textFieldTokens.chipLetterSpacing, _TextField.textFieldTokens.chipLineHeight)
30
- },
31
- labelPlacement: {
32
- inner: [_TextField.textField_labelPlacement_inner, /*#__PURE__*/(0, _styledComponents.css)(["&.", "{", ":var(--plasma-input-label-color,var(--plasma-input-placeholder-color,var(--plasma-colors-secondary)));", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);}"], _TextField.textField_labelPlacement_inner, _TextField.textFieldTokens.placeholderColor, _TextField.textFieldTokens.labelInnerFontFamily, _TextField.textFieldTokens.labelInnerFontSize, _TextField.textFieldTokens.labelInnerFontStyle, _TextField.textFieldTokens.labelInnerFontWeight, _TextField.textFieldTokens.labelInnerLetterSpacing, _TextField.textFieldTokens.labelInnerLineHeight)],
33
- outer: [_TextField.textField_labelPlacement_outer, /*#__PURE__*/(0, _styledComponents.css)(["&.", "{}"], _TextField.textField_labelPlacement_outer)]
34
- },
35
- disabled: {
36
- "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.4;"], _TextField.textFieldTokens.disabledOpacity)
37
- },
38
- // TODO заменить --surface-transparent-primary на корректный токен
39
- readOnly: {
40
- "true": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-secondary);", ":var(--surface-transparent-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary);"], _TextField.textFieldTokens.colorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _TextField.textFieldTokens.leftHelperColorReadOnly, _TextField.textFieldTokens.labelColorReadOnly)
41
- }
42
- }
43
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TextField = void 0;
7
- var _engines = /*#__PURE__*/require("../../../../engines");
8
- var _TextField = /*#__PURE__*/require("../../../../components/TextField");
9
- var _TextField2 = /*#__PURE__*/require("./TextField.config");
10
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_TextField.textFieldConfig, _TextField2.config);
11
- var TextField = exports.TextField = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -1,133 +0,0 @@
1
- import React, { ComponentProps, useState } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
- import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
5
-
6
- import { WithTheme } from '../../../_helpers';
7
-
8
- import { TextField } from './TextField';
9
-
10
- const onChange = action('onChange');
11
- const onFocus = action('onFocus');
12
- const onBlur = action('onBlur');
13
- const onSearch = action('onSearch');
14
-
15
- const sizes = ['l', 'm', 's', 'xs'];
16
- const views = ['default', 'positive', 'warning', 'negative'];
17
- const enumerationTypes = ['plain', 'chip'];
18
- const labelPlacements = ['outer', 'inner'];
19
-
20
- const meta: Meta<typeof TextField> = {
21
- title: 'sds_engineer/TextField',
22
- component: TextField,
23
- decorators: [WithTheme],
24
- argTypes: {
25
- view: {
26
- options: views,
27
- control: {
28
- type: 'select',
29
- },
30
- },
31
- maxLength: {
32
- control: {
33
- type: 'number',
34
- },
35
- },
36
- labelPlacement: {
37
- options: labelPlacements,
38
- control: {
39
- type: 'inline-radio',
40
- },
41
- },
42
- enumerationType: {
43
- options: enumerationTypes,
44
- control: {
45
- type: 'select',
46
- },
47
- },
48
- size: {
49
- options: sizes,
50
- control: {
51
- type: 'inline-radio',
52
- },
53
- },
54
- },
55
- };
56
-
57
- export default meta;
58
-
59
- type StoryPropsDefault = Omit<
60
- ComponentProps<typeof TextField>,
61
- | 'helperBlock'
62
- | 'contentLeft'
63
- | 'htmlSize'
64
- | 'contentRight'
65
- | 'type'
66
- | 'name'
67
- | 'onFocus'
68
- | 'onBlur'
69
- | 'onChange'
70
- | 'value'
71
- | 'checked'
72
- | 'maxLength'
73
- | 'minLength'
74
- | 'required'
75
- > & {
76
- 'storybook:contentLeft': boolean;
77
- 'storybook:contentRight': boolean;
78
- };
79
-
80
- const StoryDemo = ({
81
- 'storybook:contentLeft': enableContentLeft,
82
- 'storybook:contentRight': enableContentRight,
83
- view,
84
- ...rest
85
- }: StoryPropsDefault) => {
86
- const [text, setText] = useState('Значение поля');
87
-
88
- const iconSize = rest.size === 'xs' ? 'xs' : 's';
89
-
90
- return (
91
- <TextField
92
- {...rest}
93
- value={text}
94
- contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
95
- contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
96
- view={view}
97
- onChange={(e) => {
98
- setText(e.target.value);
99
- onChange(e.target.value);
100
- }}
101
- onFocus={onFocus}
102
- onBlur={onBlur}
103
- onSearch={onSearch}
104
- />
105
- );
106
- };
107
-
108
- export const Default: StoryObj<StoryPropsDefault> = {
109
- args: {
110
- id: 'example-text-field',
111
- size: 'l',
112
- view: 'default',
113
- label: 'Лейбл',
114
- labelPlacement: 'outer',
115
- placeholder: 'Заполните поле',
116
- leftHelper: 'Подсказка к полю',
117
- enumerationType: 'plain',
118
- disabled: false,
119
- readOnly: false,
120
- 'storybook:contentLeft': true,
121
- 'storybook:contentRight': true,
122
- },
123
- render: (args) => <StoryDemo {...args} />,
124
- };
125
-
126
- export const Chips: StoryObj<StoryPropsDefault> = {
127
- args: {
128
- ...Default.args,
129
- enumerationType: 'chip',
130
- values: ['1 value', '2 value', '3 value', '4 value'],
131
- },
132
- render: (args) => <StoryDemo {...args} />,
133
- };
@@ -1 +0,0 @@
1
- export { useKeyNavigation } from './useKeyNavigation';