@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
@@ -1,123 +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
-
19
- const meta: Meta<typeof TextField> = {
20
- title: 'plasma_b2c/TextField',
21
- component: TextField,
22
- decorators: [WithTheme],
23
- argTypes: {
24
- view: {
25
- options: views,
26
- control: {
27
- type: 'select',
28
- },
29
- },
30
- maxLength: {
31
- control: {
32
- type: 'number',
33
- },
34
- },
35
- enumerationType: {
36
- options: enumerationTypes,
37
- control: {
38
- type: 'select',
39
- },
40
- },
41
- size: {
42
- options: sizes,
43
- control: {
44
- type: 'inline-radio',
45
- },
46
- },
47
- },
48
- };
49
-
50
- export default meta;
51
-
52
- type StoryPropsDefault = Omit<
53
- ComponentProps<typeof TextField>,
54
- | 'helperBlock'
55
- | 'contentLeft'
56
- | 'htmlSize'
57
- | 'contentRight'
58
- | 'type'
59
- | 'name'
60
- | 'onFocus'
61
- | 'onBlur'
62
- | 'onChange'
63
- | 'value'
64
- | 'checked'
65
- | 'maxLength'
66
- | 'minLength'
67
- | 'required'
68
- > & {
69
- 'storybook:contentLeft': boolean;
70
- 'storybook:contentRight': boolean;
71
- };
72
-
73
- const StoryDefault = ({
74
- 'storybook:contentLeft': enableContentLeft,
75
- 'storybook:contentRight': enableContentRight,
76
- view,
77
- ...rest
78
- }: StoryPropsDefault) => {
79
- const [text, setText] = useState('Значение поля');
80
-
81
- return (
82
- <TextField
83
- {...rest}
84
- value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
- view={view}
88
- onChange={(e) => {
89
- setText(e.target.value);
90
- onChange(e.target.value);
91
- }}
92
- onFocus={onFocus}
93
- onBlur={onBlur}
94
- onSearch={onSearch}
95
- />
96
- );
97
- };
98
-
99
- export const Default: StoryObj<StoryPropsDefault> = {
100
- argTypes: {
101
- labelPlacement: {
102
- options: ['outer', 'inner'],
103
- control: {
104
- type: 'inline-radio',
105
- },
106
- },
107
- },
108
- args: {
109
- id: 'example-text-field',
110
- size: 'l',
111
- view: 'default',
112
- label: 'Лейбл',
113
- labelPlacement: 'outer',
114
- placeholder: 'Заполните поле',
115
- leftHelper: 'Подсказка к полю',
116
- enumerationType: 'plain',
117
- disabled: false,
118
- readOnly: false,
119
- 'storybook:contentLeft': true,
120
- 'storybook:contentRight': true,
121
- },
122
- render: (args) => <StoryDefault {...args} />,
123
- };
@@ -1,34 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { textFieldTokens as tokens, textField_labelPlacement_inner as labelPlacement_inner, textField_labelPlacement_outer as labelPlacement_outer } from '../../../../components/TextField';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'l',
7
- labelPlacement: 'outer'
8
- },
9
- variations: {
10
- view: {
11
- "default": /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
12
- positive: /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
13
- warning: /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
14
- negative: /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor)
15
- },
16
- size: {
17
- l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":0.0625rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
18
- m: /*#__PURE__*/css(["", ":3rem;", ":0.875rem 0.875rem 0.875rem 1rem;", ":0.375rem;", ":0.75rem;", ":0.0625rem;", ":-0.125rem 0.375rem -0.125rem -0.125rem;", ":-0.125rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
19
- s: /*#__PURE__*/css(["", ":2.5rem;", ":0.875rem 0.75rem 0.875rem 0.6875rem;", ":0.375rem;", ":0.625rem;", ":0.0625rem;", ":-0.1875rem 0.25rem -0.1875rem -0.125rem;", ":-0.1875rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
20
- xs: /*#__PURE__*/css(["", ":2rem;", ":0.5625rem 0.5rem 0.5625rem 0.625rem;", ":0.375rem;", ":0.5rem;", ":0.0625rem;", ":-0.0625rem 0.25rem -0.0625rem -0.125rem;", ":-0.0625rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight)
21
- },
22
- labelPlacement: {
23
- inner: [labelPlacement_inner, /*#__PURE__*/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);}"], labelPlacement_inner, tokens.placeholderColor, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight)],
24
- outer: [labelPlacement_outer, /*#__PURE__*/css(["&.", "{}"], labelPlacement_outer)]
25
- },
26
- disabled: {
27
- "true": /*#__PURE__*/css(["", ":0.4;"], tokens.disabledOpacity)
28
- },
29
- // TODO заменить --surface-transparent-primary на корректный токен
30
- readOnly: {
31
- "true": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary);"], tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.borderColorReadOnly, tokens.placeholderColorReadOnly, tokens.leftHelperColorReadOnly, tokens.labelColorReadOnly)
32
- }
33
- }
34
- };
@@ -1,5 +0,0 @@
1
- import { component, mergeConfig } from '../../../../engines';
2
- import { textFieldConfig } from '../../../../components/TextField';
3
- import { config } from './TextField.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig, config);
5
- export var TextField = /*#__PURE__*/component(mergedConfig);
@@ -1,123 +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
-
19
- const meta: Meta<typeof TextField> = {
20
- title: 'plasma_web/TextField',
21
- component: TextField,
22
- decorators: [WithTheme],
23
- argTypes: {
24
- view: {
25
- options: views,
26
- control: {
27
- type: 'select',
28
- },
29
- },
30
- maxLength: {
31
- control: {
32
- type: 'number',
33
- },
34
- },
35
- enumerationType: {
36
- options: enumerationTypes,
37
- control: {
38
- type: 'select',
39
- },
40
- },
41
- size: {
42
- options: sizes,
43
- control: {
44
- type: 'inline-radio',
45
- },
46
- },
47
- },
48
- };
49
-
50
- export default meta;
51
-
52
- type StoryPropsDefault = Omit<
53
- ComponentProps<typeof TextField>,
54
- | 'helperBlock'
55
- | 'contentLeft'
56
- | 'htmlSize'
57
- | 'contentRight'
58
- | 'type'
59
- | 'name'
60
- | 'onFocus'
61
- | 'onBlur'
62
- | 'onChange'
63
- | 'value'
64
- | 'checked'
65
- | 'maxLength'
66
- | 'minLength'
67
- | 'required'
68
- > & {
69
- 'storybook:contentLeft': boolean;
70
- 'storybook:contentRight': boolean;
71
- };
72
-
73
- const StoryDefault = ({
74
- 'storybook:contentLeft': enableContentLeft,
75
- 'storybook:contentRight': enableContentRight,
76
- view,
77
- ...rest
78
- }: StoryPropsDefault) => {
79
- const [text, setText] = useState('Значение поля');
80
-
81
- return (
82
- <TextField
83
- {...rest}
84
- value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
- view={view}
88
- onChange={(_, value) => {
89
- setText(value);
90
- onChange(value);
91
- }}
92
- onFocus={onFocus}
93
- onBlur={onBlur}
94
- onSearch={onSearch}
95
- />
96
- );
97
- };
98
-
99
- export const Default: StoryObj<StoryPropsDefault> = {
100
- argTypes: {
101
- labelPlacement: {
102
- options: ['outer', 'inner'],
103
- control: {
104
- type: 'inline-radio',
105
- },
106
- },
107
- },
108
- args: {
109
- id: 'example-text-field',
110
- size: 'l',
111
- view: 'default',
112
- label: 'Лейбл',
113
- labelPlacement: 'outer',
114
- placeholder: 'Заполните поле',
115
- leftHelper: 'Подсказка к полю',
116
- enumerationType: 'plain',
117
- disabled: false,
118
- readOnly: false,
119
- 'storybook:contentLeft': true,
120
- 'storybook:contentRight': true,
121
- },
122
- render: (args) => <StoryDefault {...args} />,
123
- };
@@ -1,37 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { textFieldTokens as tokens, textField_labelPlacement_inner as labelPlacement_inner, textField_labelPlacement_outer as labelPlacement_outer } from '../../../../components/TextField';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'l',
7
- labelPlacement: 'outer'
8
- },
9
- variations: {
10
- view: {
11
- "default": /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
12
- // TODO заменить --surface-transparent-positive на корректный токен
13
- positive: /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
14
- // // TODO заменить --surface-transparent-warning на корректный токен
15
- warning: /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
16
- // // TODO заменить --surface-transparent-negative на корректный токен
17
- negative: /*#__PURE__*/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);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor)
18
- },
19
- size: {
20
- l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
21
- m: /*#__PURE__*/css(["", ":3rem;", ":0.875rem 0.875rem 0.875rem 1rem;", ":0.375rem;", ":0.75rem;", ":-0.125rem 0.375rem -0.125rem -0.125rem;", ":-0.125rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
22
- s: /*#__PURE__*/css(["", ":2.5rem;", ":0.875rem 0.75rem 0.875rem 0.6875rem;", ":0.375rem;", ":0.625rem;", ":-0.1875rem 0.25rem -0.1875rem -0.125rem;", ":-0.1875rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
23
- xs: /*#__PURE__*/css(["", ":2rem;", ":0.5625rem 0.5rem 0.5625rem 0.625rem;", ":0.375rem;", ":0.5rem;", ":-0.0625rem 0.25rem -0.0625rem -0.125rem;", ":-0.0625rem 0 -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);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight)
24
- },
25
- labelPlacement: {
26
- inner: [labelPlacement_inner, /*#__PURE__*/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);}"], labelPlacement_inner, tokens.placeholderColor, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight)],
27
- outer: [labelPlacement_outer, /*#__PURE__*/css(["&.", "{}"], labelPlacement_outer)]
28
- },
29
- disabled: {
30
- "true": /*#__PURE__*/css(["", ":0.4;"], tokens.disabledOpacity)
31
- },
32
- // TODO заменить --surface-transparent-primary на корректный токен
33
- readOnly: {
34
- "true": /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--surface-transparent-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary);"], tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.leftHelperColorReadOnly, tokens.labelColorReadOnly)
35
- }
36
- }
37
- };
@@ -1,5 +0,0 @@
1
- import { component, mergeConfig } from '../../../../engines';
2
- import { textFieldConfig } from '../../../../components/TextField';
3
- import { config } from './TextField.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig, config);
5
- export var TextField = /*#__PURE__*/component(mergedConfig);
@@ -1,123 +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
-
19
- const meta: Meta<typeof TextField> = {
20
- title: 'sds_engineer/TextField',
21
- component: TextField,
22
- decorators: [WithTheme],
23
- argTypes: {
24
- view: {
25
- options: views,
26
- control: {
27
- type: 'select',
28
- },
29
- },
30
- maxLength: {
31
- control: {
32
- type: 'number',
33
- },
34
- },
35
- enumerationType: {
36
- options: enumerationTypes,
37
- control: {
38
- type: 'select',
39
- },
40
- },
41
- size: {
42
- options: sizes,
43
- control: {
44
- type: 'inline-radio',
45
- },
46
- },
47
- },
48
- };
49
-
50
- export default meta;
51
-
52
- type StoryPropsDefault = Omit<
53
- ComponentProps<typeof TextField>,
54
- | 'helperBlock'
55
- | 'contentLeft'
56
- | 'htmlSize'
57
- | 'contentRight'
58
- | 'type'
59
- | 'name'
60
- | 'onFocus'
61
- | 'onBlur'
62
- | 'onChange'
63
- | 'value'
64
- | 'checked'
65
- | 'maxLength'
66
- | 'minLength'
67
- | 'required'
68
- > & {
69
- 'storybook:contentLeft': boolean;
70
- 'storybook:contentRight': boolean;
71
- };
72
-
73
- const StoryDefault = ({
74
- 'storybook:contentLeft': enableContentLeft,
75
- 'storybook:contentRight': enableContentRight,
76
- view,
77
- ...rest
78
- }: StoryPropsDefault) => {
79
- const [text, setText] = useState('Значение поля');
80
-
81
- return (
82
- <TextField
83
- {...rest}
84
- value={text}
85
- contentLeft={enableContentLeft ? <IconPlaceholder /> : undefined}
86
- contentRight={enableContentRight ? <IconPlaceholder /> : undefined}
87
- view={view}
88
- onChange={(_, value) => {
89
- setText(value);
90
- onChange(value);
91
- }}
92
- onFocus={onFocus}
93
- onBlur={onBlur}
94
- onSearch={onSearch}
95
- />
96
- );
97
- };
98
-
99
- export const Default: StoryObj<StoryPropsDefault> = {
100
- argTypes: {
101
- labelPlacement: {
102
- options: ['outer', 'inner'],
103
- control: {
104
- type: 'inline-radio',
105
- },
106
- },
107
- },
108
- args: {
109
- id: 'example-text-field',
110
- size: 'l',
111
- view: 'default',
112
- label: 'Лейбл',
113
- labelPlacement: 'outer',
114
- placeholder: 'Заполните поле',
115
- leftHelper: 'Подсказка к полю',
116
- enumerationType: 'plain',
117
- disabled: false,
118
- readOnly: false,
119
- 'storybook:contentLeft': true,
120
- 'storybook:contentRight': true,
121
- },
122
- render: (args) => <StoryDefault {...args} />,
123
- };
@@ -1,2 +0,0 @@
1
- export { useKeyNavigation } from './useKeyNavigation';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { ChangeEvent, KeyboardEvent } from 'react';
2
- import type { UseKeyNavigationProps } from './useKeyNavigation.types';
3
- export declare const Keys: {
4
- Enter: string;
5
- Tab: string;
6
- Escape: string;
7
- ArrowLeft: string;
8
- ArrowRight: string;
9
- Backspace: string;
10
- };
11
- export declare const useKeyNavigation: ({ controlledRefs: { chipsRefs, contentRef, inputRef }, disabled, readOnly, chips, enumerationType, updateChips, onChange, onSearch, }: UseKeyNavigationProps) => {
12
- readonly handleInputKeydown: (event: ChangeEvent<HTMLInputElement> & KeyboardEvent<HTMLInputElement>) => void;
13
- readonly handleChipKeyDown: (event: KeyboardEvent<HTMLButtonElement>, chipId: string) => void;
14
- readonly onChipClear: (clearId: string) => void;
15
- readonly handleContentKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
16
- };
17
- //# sourceMappingURL=useKeyNavigation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useKeyNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/useKeyNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,eAAO,MAAM,IAAI;;;;;;;CAOhB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0IAS1B,qBAAqB;yCAGe,YAAY,gBAAgB,CAAC,GAAG,cAAc,gBAAgB,CAAC;wCA8ChE,cAAc,iBAAiB,CAAC,UAAU,MAAM;oCAXpD,MAAM;2CAqBC,cAAc,cAAc,CAAC;CAkDrE,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { MutableRefObject, KeyboardEvent, ChangeEvent } from 'react';
2
- import type { ChipValues, EnumerationType, TextFieldPrimitiveValue } from '../TextField.types';
3
- export interface ControlledRefs {
4
- chipsRefs: MutableRefObject<Array<HTMLButtonElement>>;
5
- inputRef?: MutableRefObject<HTMLInputElement | null>;
6
- contentRef?: MutableRefObject<HTMLDivElement | null>;
7
- }
8
- export interface UseKeyNavigationProps {
9
- controlledRefs: ControlledRefs;
10
- disabled: boolean;
11
- readOnly: boolean;
12
- chips: Array<ChipValues>;
13
- enumerationType: EnumerationType;
14
- updateChips: (newChips: Array<ChipValues>, newValues: Array<TextFieldPrimitiveValue>) => void;
15
- onSearch?: (value: string, event?: KeyboardEvent<HTMLInputElement>) => void;
16
- onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
17
- }
18
- //# sourceMappingURL=useKeyNavigation.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useKeyNavigation.types.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/useKeyNavigation.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE1E,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE/F,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,qBAAqB;IAClC,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACzB,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;IAC9F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC7D"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { TextFieldChipProps } from './TextFieldChip.types';
3
- /**
4
- * Чип, отображающий выбранный элемент
5
- */
6
- export declare const TextFieldChip: React.ForwardRefExoticComponent<TextFieldChipProps & React.RefAttributes<HTMLButtonElement>>;
7
- //# sourceMappingURL=TextFieldChip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextFieldChip.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/ui/TextFieldChip/TextFieldChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,aAAa,8FAqBzB,CAAC"}
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledChip: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
3
- text?: string | undefined;
4
- contentLeft?: import("react").ReactNode;
5
- contentRight?: import("react").ReactNode;
6
- contentClearButton?: import("react").ReactNode;
7
- disabled?: boolean | undefined;
8
- readOnly?: boolean | undefined;
9
- size?: ("m" | "s" | "xs" | "l") | undefined;
10
- view?: ("secondary" | "default" | "positive") | undefined;
11
- onClear?: (() => void) | undefined;
12
- } & {
13
- children?: import("react").ReactNode;
14
- } & import("react").RefAttributes<HTMLButtonElement>>;
15
- //# sourceMappingURL=TextFieldChip.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextFieldChip.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/ui/TextFieldChip/TextFieldChip.styles.ts"],"names":[],"mappings":";AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;qDA2CtB,CAAC"}
@@ -1,37 +0,0 @@
1
- /// <reference types="react" />
2
- import type { TextFieldPrimitiveValue } from '../../TextField.types';
3
- export interface TextFieldChipProps {
4
- /**
5
- * ID для чипа.
6
- */
7
- chipId: string;
8
- /**
9
- * Отображаемый текст.
10
- */
11
- text: TextFieldPrimitiveValue;
12
- /**
13
- * Выбранное значение.
14
- */
15
- value: TextFieldPrimitiveValue;
16
- /**
17
- * Компонент неактивен
18
- */
19
- disabled?: boolean;
20
- /**
21
- * Элемент формы не может изменяться пользователем
22
- */
23
- readOnly?: boolean;
24
- /**
25
- * Обработчик удаления выбранного значения.
26
- */
27
- onClear: (id: string) => void;
28
- /**
29
- * Обработчик клика на выбранное значение.
30
- */
31
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
32
- /**
33
- * Обработчик нажатия клавиши.
34
- */
35
- onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>, chipId: string) => void;
36
- }
37
- //# sourceMappingURL=TextFieldChip.types.d.ts.map