@salutejs/plasma-new-hope 0.157.0-canary.1451.11120831030.0 → 0.157.0-canary.1459.11144116576.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +33 -18
  2. package/cjs/components/Autocomplete/Autocomplete.js +6 -2
  3. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/Combobox.css +37 -17
  5. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +37 -17
  6. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +37 -17
  7. package/cjs/components/DatePicker/RangeDate/RangeDate.css +34 -19
  8. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +32 -17
  9. package/cjs/components/DatePicker/SingleDate/SingleDate.css +34 -19
  10. package/cjs/components/Range/Range.css +38 -18
  11. package/cjs/components/Slider/Slider.css +38 -18
  12. package/cjs/components/Slider/components/Double/Double.css +38 -18
  13. package/cjs/components/TextArea/TextArea.js +137 -35
  14. package/cjs/components/TextArea/TextArea.js.map +1 -1
  15. package/cjs/components/TextArea/TextArea.styles.js +116 -63
  16. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  17. package/cjs/components/TextArea/TextArea.styles_1phhc4q.css +17 -0
  18. package/cjs/components/TextArea/TextArea.tokens.js +36 -15
  19. package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
  20. package/cjs/components/TextArea/variations/{_clear → _hint-size}/base.js +2 -2
  21. package/cjs/components/TextArea/variations/_hint-size/base.js.map +1 -0
  22. package/cjs/components/TextArea/variations/_hint-size/base_1pzfoj7.css +1 -0
  23. package/cjs/components/TextArea/variations/_hint-view/base.js +9 -0
  24. package/cjs/components/TextArea/variations/_hint-view/base.js.map +1 -0
  25. package/cjs/components/TextArea/variations/_hint-view/base_111a0qe.css +1 -0
  26. package/cjs/components/TextArea/variations/_view/base.js +1 -1
  27. package/cjs/components/TextArea/variations/_view/base.js.map +1 -1
  28. package/cjs/components/TextArea/variations/_view/base_1ri7c88.css +1 -0
  29. package/cjs/components/TextField/TextField.js +114 -7
  30. package/cjs/components/TextField/TextField.js.map +1 -1
  31. package/cjs/components/TextField/TextField.styles.js +74 -20
  32. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  33. package/cjs/components/TextField/TextField.styles_1i9z45f.css +21 -0
  34. package/cjs/components/TextField/TextField.tokens.js +35 -0
  35. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  36. package/cjs/components/TextField/variations/_disabled/base.js +1 -1
  37. package/cjs/components/TextField/variations/_disabled/base_frtgf7.css +1 -0
  38. package/cjs/components/TextField/variations/_hint-size/base.js +9 -0
  39. package/cjs/components/TextField/variations/_hint-size/base.js.map +1 -0
  40. package/cjs/components/TextField/variations/_hint-size/base_1f8fx0a.css +1 -0
  41. package/cjs/components/TextField/variations/_hint-view/base.js +9 -0
  42. package/cjs/components/TextField/variations/_hint-view/base.js.map +1 -0
  43. package/cjs/components/TextField/variations/_hint-view/base_l8etux.css +1 -0
  44. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  45. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  46. package/cjs/components/TextField/variations/_label-placement/base_oh623n.css +1 -0
  47. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  48. package/cjs/components/TextField/variations/_read-only/base.js.map +1 -1
  49. package/cjs/components/TextField/variations/_read-only/base_dwfq44.css +1 -0
  50. package/cjs/components/TextField/variations/_size/base.js +1 -1
  51. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  52. package/cjs/components/TextField/variations/_size/base_n9k1fc.css +1 -0
  53. package/cjs/components/TextField/variations/_view/base.js +1 -1
  54. package/cjs/components/TextField/variations/_view/base.js.map +1 -1
  55. package/cjs/components/TextField/variations/_view/base_tmr4o7.css +1 -0
  56. package/cjs/components/TextFieldGroup/TextFieldGroup.css +1 -1
  57. package/cjs/components/TextFieldGroup/variations/_shape/base.js +1 -1
  58. package/cjs/components/TextFieldGroup/variations/_shape/base_52bndd.css +1 -0
  59. package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +23 -0
  60. package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js.map +1 -0
  61. package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +23 -0
  62. package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js.map +1 -0
  63. package/cjs/index.css +51 -33
  64. package/emotion/cjs/components/Autocomplete/Autocomplete.js +6 -2
  65. package/emotion/cjs/components/TextArea/TextArea.js +139 -39
  66. package/emotion/cjs/components/TextArea/TextArea.styles.js +81 -41
  67. package/emotion/cjs/components/TextArea/TextArea.template-doc.mdx +6 -30
  68. package/emotion/cjs/components/TextArea/TextArea.tokens.js +36 -15
  69. package/emotion/cjs/components/TextArea/mixins/applyDynamicLabel.js +1 -1
  70. package/emotion/cjs/components/TextArea/variations/_hint-size/base.js +11 -0
  71. package/emotion/cjs/components/TextArea/variations/_hint-size/tokens.json +21 -0
  72. package/emotion/cjs/components/TextArea/variations/_hint-view/base.js +11 -0
  73. package/emotion/cjs/components/TextArea/variations/_hint-view/tokens.json +5 -0
  74. package/emotion/cjs/components/TextArea/variations/_view/base.js +3 -2
  75. package/emotion/cjs/components/TextField/TextField.js +116 -10
  76. package/emotion/cjs/components/TextField/TextField.styles.js +81 -34
  77. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +7 -1
  78. package/emotion/cjs/components/TextField/TextField.tokens.js +35 -0
  79. package/emotion/cjs/components/TextField/variations/_hint-size/base.js +11 -0
  80. package/emotion/cjs/components/TextField/variations/_hint-size/tokens.json +21 -0
  81. package/emotion/cjs/components/TextField/variations/_hint-view/base.js +11 -0
  82. package/emotion/cjs/components/TextField/variations/_hint-view/tokens.json +5 -0
  83. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  84. package/emotion/cjs/components/TextField/variations/_read-only/base.js +1 -1
  85. package/emotion/cjs/components/TextField/variations/_size/base.js +1 -1
  86. package/emotion/cjs/components/TextField/variations/_view/base.js +1 -1
  87. package/emotion/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +22 -0
  88. package/emotion/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +22 -0
  89. package/emotion/cjs/components/_Icon/index.js +8 -1
  90. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +17 -11
  91. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +77 -15
  92. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +21 -12
  93. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +70 -1
  94. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +17 -11
  95. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +77 -15
  96. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +21 -12
  97. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +79 -10
  98. package/emotion/es/components/Autocomplete/Autocomplete.js +6 -2
  99. package/emotion/es/components/TextArea/TextArea.js +139 -39
  100. package/emotion/es/components/TextArea/TextArea.styles.js +80 -40
  101. package/emotion/es/components/TextArea/TextArea.template-doc.mdx +6 -30
  102. package/emotion/es/components/TextArea/TextArea.tokens.js +36 -15
  103. package/emotion/es/components/TextArea/mixins/applyDynamicLabel.js +1 -1
  104. package/emotion/es/components/TextArea/variations/_hint-size/base.js +5 -0
  105. package/emotion/es/components/TextArea/variations/_hint-size/tokens.json +21 -0
  106. package/emotion/es/components/TextArea/variations/_hint-view/base.js +5 -0
  107. package/emotion/es/components/TextArea/variations/_hint-view/tokens.json +5 -0
  108. package/emotion/es/components/TextArea/variations/_view/base.js +3 -2
  109. package/emotion/es/components/TextField/TextField.js +115 -9
  110. package/emotion/es/components/TextField/TextField.styles.js +80 -33
  111. package/emotion/es/components/TextField/TextField.template-doc.mdx +7 -1
  112. package/emotion/es/components/TextField/TextField.tokens.js +35 -0
  113. package/emotion/es/components/TextField/variations/_hint-size/base.js +5 -0
  114. package/emotion/es/components/TextField/variations/_hint-size/tokens.json +21 -0
  115. package/emotion/es/components/TextField/variations/_hint-view/base.js +5 -0
  116. package/emotion/es/components/TextField/variations/_hint-view/tokens.json +5 -0
  117. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  118. package/emotion/es/components/TextField/variations/_read-only/base.js +2 -2
  119. package/emotion/es/components/TextField/variations/_size/base.js +2 -2
  120. package/emotion/es/components/TextField/variations/_view/base.js +2 -2
  121. package/emotion/es/components/_Icon/Icon.assets/InfoCircleOutline.js +15 -0
  122. package/emotion/es/components/_Icon/Icons/IconInfoCircleOutline.js +15 -0
  123. package/emotion/es/components/_Icon/index.js +2 -1
  124. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +17 -11
  125. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +77 -15
  126. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +21 -12
  127. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +70 -1
  128. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.config.js +17 -11
  129. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +77 -15
  130. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +21 -12
  131. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +79 -10
  132. package/es/components/Autocomplete/Autocomplete.css +33 -18
  133. package/es/components/Autocomplete/Autocomplete.js +6 -2
  134. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  135. package/es/components/Combobox/ComboboxNew/Combobox.css +37 -17
  136. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +37 -17
  137. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +37 -17
  138. package/es/components/DatePicker/RangeDate/RangeDate.css +34 -19
  139. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +32 -17
  140. package/es/components/DatePicker/SingleDate/SingleDate.css +34 -19
  141. package/es/components/Range/Range.css +38 -18
  142. package/es/components/Slider/Slider.css +38 -18
  143. package/es/components/Slider/components/Double/Double.css +38 -18
  144. package/es/components/TextArea/TextArea.js +141 -39
  145. package/es/components/TextArea/TextArea.js.map +1 -1
  146. package/es/components/TextArea/TextArea.styles.js +111 -64
  147. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  148. package/es/components/TextArea/TextArea.styles_1phhc4q.css +17 -0
  149. package/es/components/TextArea/TextArea.tokens.js +36 -15
  150. package/es/components/TextArea/TextArea.tokens.js.map +1 -1
  151. package/es/components/TextArea/variations/{_clear → _hint-size}/base.js +2 -2
  152. package/es/components/TextArea/variations/_hint-size/base.js.map +1 -0
  153. package/es/components/TextArea/variations/_hint-size/base_1pzfoj7.css +1 -0
  154. package/es/components/TextArea/variations/_hint-view/base.js +5 -0
  155. package/es/components/TextArea/variations/_hint-view/base.js.map +1 -0
  156. package/es/components/TextArea/variations/_hint-view/base_111a0qe.css +1 -0
  157. package/es/components/TextArea/variations/_view/base.js +1 -1
  158. package/es/components/TextArea/variations/_view/base.js.map +1 -1
  159. package/es/components/TextArea/variations/_view/base_1ri7c88.css +1 -0
  160. package/es/components/TextField/TextField.js +115 -8
  161. package/es/components/TextField/TextField.js.map +1 -1
  162. package/es/components/TextField/TextField.styles.js +69 -21
  163. package/es/components/TextField/TextField.styles.js.map +1 -1
  164. package/es/components/TextField/TextField.styles_1i9z45f.css +21 -0
  165. package/es/components/TextField/TextField.tokens.js +35 -0
  166. package/es/components/TextField/TextField.tokens.js.map +1 -1
  167. package/es/components/TextField/variations/_disabled/base.js +1 -1
  168. package/es/components/TextField/variations/_disabled/base_frtgf7.css +1 -0
  169. package/es/components/TextField/variations/_hint-size/base.js +5 -0
  170. package/es/components/TextField/variations/_hint-size/base.js.map +1 -0
  171. package/es/components/TextField/variations/_hint-size/base_1f8fx0a.css +1 -0
  172. package/es/components/TextField/variations/_hint-view/base.js +5 -0
  173. package/es/components/TextField/variations/_hint-view/base.js.map +1 -0
  174. package/es/components/TextField/variations/_hint-view/base_l8etux.css +1 -0
  175. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  176. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  177. package/es/components/TextField/variations/_label-placement/base_oh623n.css +1 -0
  178. package/es/components/TextField/variations/_read-only/base.js +1 -1
  179. package/es/components/TextField/variations/_read-only/base.js.map +1 -1
  180. package/es/components/TextField/variations/_read-only/base_dwfq44.css +1 -0
  181. package/es/components/TextField/variations/_size/base.js +1 -1
  182. package/es/components/TextField/variations/_size/base.js.map +1 -1
  183. package/es/components/TextField/variations/_size/base_n9k1fc.css +1 -0
  184. package/es/components/TextField/variations/_view/base.js +1 -1
  185. package/es/components/TextField/variations/_view/base.js.map +1 -1
  186. package/es/components/TextField/variations/_view/base_tmr4o7.css +1 -0
  187. package/es/components/TextFieldGroup/TextFieldGroup.css +1 -1
  188. package/es/components/TextFieldGroup/variations/_shape/base.js +1 -1
  189. package/es/components/TextFieldGroup/variations/_shape/base_52bndd.css +1 -0
  190. package/es/components/_Icon/Icon.assets/InfoCircleOutline.js +19 -0
  191. package/es/components/_Icon/Icon.assets/InfoCircleOutline.js.map +1 -0
  192. package/es/components/_Icon/Icons/IconInfoCircleOutline.js +19 -0
  193. package/es/components/_Icon/Icons/IconInfoCircleOutline.js.map +1 -0
  194. package/es/index.css +51 -33
  195. package/package.json +2 -2
  196. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +6 -2
  197. package/styled-components/cjs/components/TextArea/TextArea.js +138 -38
  198. package/styled-components/cjs/components/TextArea/TextArea.styles.js +64 -39
  199. package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +6 -30
  200. package/styled-components/cjs/components/TextArea/TextArea.tokens.js +36 -15
  201. package/styled-components/cjs/components/TextArea/mixins/applyDynamicLabel.js +1 -1
  202. package/styled-components/cjs/components/TextArea/variations/_hint-size/base.js +11 -0
  203. package/styled-components/cjs/components/TextArea/variations/_hint-size/tokens.json +21 -0
  204. package/styled-components/cjs/components/TextArea/variations/_hint-view/base.js +11 -0
  205. package/styled-components/cjs/components/TextArea/variations/_hint-view/tokens.json +5 -0
  206. package/styled-components/cjs/components/TextArea/variations/_view/base.js +3 -2
  207. package/styled-components/cjs/components/TextField/TextField.js +115 -9
  208. package/styled-components/cjs/components/TextField/TextField.styles.js +42 -17
  209. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +7 -1
  210. package/styled-components/cjs/components/TextField/TextField.tokens.js +35 -0
  211. package/styled-components/cjs/components/TextField/variations/_hint-size/base.js +11 -0
  212. package/styled-components/cjs/components/TextField/variations/_hint-size/tokens.json +21 -0
  213. package/styled-components/cjs/components/TextField/variations/_hint-view/base.js +11 -0
  214. package/styled-components/cjs/components/TextField/variations/_hint-view/tokens.json +5 -0
  215. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  216. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +1 -1
  217. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  218. package/styled-components/cjs/components/TextField/variations/_view/base.js +1 -1
  219. package/styled-components/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +22 -0
  220. package/styled-components/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +22 -0
  221. package/styled-components/cjs/components/_Icon/index.js +8 -1
  222. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +17 -11
  223. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +77 -15
  224. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +18 -9
  225. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +70 -1
  226. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +17 -11
  227. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +77 -15
  228. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +18 -9
  229. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +79 -10
  230. package/styled-components/es/components/Autocomplete/Autocomplete.js +6 -2
  231. package/styled-components/es/components/TextArea/TextArea.js +138 -38
  232. package/styled-components/es/components/TextArea/TextArea.styles.js +63 -38
  233. package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +6 -30
  234. package/styled-components/es/components/TextArea/TextArea.tokens.js +36 -15
  235. package/styled-components/es/components/TextArea/mixins/applyDynamicLabel.js +1 -1
  236. package/styled-components/es/components/TextArea/variations/_hint-size/base.js +5 -0
  237. package/styled-components/es/components/TextArea/variations/_hint-size/tokens.json +21 -0
  238. package/styled-components/es/components/TextArea/variations/_hint-view/base.js +5 -0
  239. package/styled-components/es/components/TextArea/variations/_hint-view/tokens.json +5 -0
  240. package/styled-components/es/components/TextArea/variations/_view/base.js +3 -2
  241. package/styled-components/es/components/TextField/TextField.js +114 -8
  242. package/styled-components/es/components/TextField/TextField.styles.js +41 -16
  243. package/styled-components/es/components/TextField/TextField.template-doc.mdx +7 -1
  244. package/styled-components/es/components/TextField/TextField.tokens.js +35 -0
  245. package/styled-components/es/components/TextField/variations/_hint-size/base.js +5 -0
  246. package/styled-components/es/components/TextField/variations/_hint-size/tokens.json +21 -0
  247. package/styled-components/es/components/TextField/variations/_hint-view/base.js +5 -0
  248. package/styled-components/es/components/TextField/variations/_hint-view/tokens.json +5 -0
  249. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  250. package/styled-components/es/components/TextField/variations/_read-only/base.js +2 -2
  251. package/styled-components/es/components/TextField/variations/_size/base.js +2 -2
  252. package/styled-components/es/components/TextField/variations/_view/base.js +2 -2
  253. package/styled-components/es/components/_Icon/Icon.assets/InfoCircleOutline.js +15 -0
  254. package/styled-components/es/components/_Icon/Icons/IconInfoCircleOutline.js +15 -0
  255. package/styled-components/es/components/_Icon/index.js +2 -1
  256. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +17 -11
  257. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +77 -15
  258. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +18 -9
  259. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +70 -1
  260. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +17 -11
  261. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +77 -15
  262. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +18 -9
  263. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +79 -10
  264. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  265. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +208 -0
  266. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  267. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +208 -0
  268. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  269. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +208 -0
  270. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  271. package/types/components/Range/Range.styles.d.ts +208 -0
  272. package/types/components/Range/Range.styles.d.ts.map +1 -1
  273. package/types/components/Slider/components/Double/Double.styles.d.ts +208 -0
  274. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  275. package/types/components/TextArea/TextArea.d.ts +9 -7
  276. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  277. package/types/components/TextArea/TextArea.styles.d.ts +8 -0
  278. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  279. package/types/components/TextArea/TextArea.tokens.d.ts +35 -14
  280. package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
  281. package/types/components/TextArea/TextArea.types.d.ts +90 -18
  282. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  283. package/types/components/TextArea/mixins/applyDynamicLabel.d.ts.map +1 -1
  284. package/types/components/TextArea/variations/_hint-size/base.d.ts.map +1 -0
  285. package/types/components/TextArea/variations/_hint-view/base.d.ts +2 -0
  286. package/types/components/TextArea/variations/_hint-view/base.d.ts.map +1 -0
  287. package/types/components/TextArea/variations/_view/base.d.ts.map +1 -1
  288. package/types/components/TextField/TextField.d.ts +9 -3
  289. package/types/components/TextField/TextField.d.ts.map +1 -1
  290. package/types/components/TextField/TextField.styles.d.ts +8 -0
  291. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  292. package/types/components/TextField/TextField.tokens.d.ts +35 -0
  293. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  294. package/types/components/TextField/TextField.types.d.ts +82 -2
  295. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  296. package/types/components/TextField/variations/_hint-size/base.d.ts +2 -0
  297. package/types/components/TextField/variations/_hint-size/base.d.ts.map +1 -0
  298. package/types/components/TextField/variations/_hint-view/base.d.ts +2 -0
  299. package/types/components/TextField/variations/_hint-view/base.d.ts.map +1 -0
  300. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
  301. package/types/components/TextField/variations/_read-only/base.d.ts.map +1 -1
  302. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  303. package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
  304. package/types/components/_Icon/Icon.assets/InfoCircleOutline.d.ts +4 -0
  305. package/types/components/_Icon/Icon.assets/InfoCircleOutline.d.ts.map +1 -0
  306. package/types/components/_Icon/Icons/IconInfoCircleOutline.d.ts +4 -0
  307. package/types/components/_Icon/Icons/IconInfoCircleOutline.d.ts.map +1 -0
  308. package/types/components/_Icon/index.d.ts +1 -0
  309. package/types/components/_Icon/index.d.ts.map +1 -1
  310. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +372 -0
  311. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  312. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +8 -2
  313. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
  314. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +292 -22
  315. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  316. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +9 -0
  317. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  318. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +217 -0
  319. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  320. package/types/examples/plasma_web/components/Mask/Mask.d.ts +372 -0
  321. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  322. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +8 -2
  323. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
  324. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +292 -22
  325. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  326. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +9 -0
  327. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
  328. package/types/examples/plasma_web/components/TextField/TextField.d.ts +217 -0
  329. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  330. package/cjs/components/TextArea/TextArea.styles_1kzzs11.css +0 -11
  331. package/cjs/components/TextArea/variations/_clear/base.js.map +0 -1
  332. package/cjs/components/TextArea/variations/_clear/base_ba0nv7.css +0 -1
  333. package/cjs/components/TextArea/variations/_view/base_d83rii.css +0 -1
  334. package/cjs/components/TextField/TextField.styles_uponva.css +0 -15
  335. package/cjs/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  336. package/cjs/components/TextField/variations/_label-placement/base_6k17xp.css +0 -1
  337. package/cjs/components/TextField/variations/_read-only/base_8onybn.css +0 -1
  338. package/cjs/components/TextField/variations/_size/base_1h8l0kj.css +0 -1
  339. package/cjs/components/TextField/variations/_view/base_1ph5cr0.css +0 -1
  340. package/cjs/components/TextFieldGroup/variations/_shape/base_1e0je21.css +0 -1
  341. package/emotion/cjs/components/TextArea/variations/_clear/base.js +0 -10
  342. package/emotion/es/components/TextArea/variations/_clear/base.js +0 -4
  343. package/es/components/TextArea/TextArea.styles_1kzzs11.css +0 -11
  344. package/es/components/TextArea/variations/_clear/base.js.map +0 -1
  345. package/es/components/TextArea/variations/_clear/base_ba0nv7.css +0 -1
  346. package/es/components/TextArea/variations/_view/base_d83rii.css +0 -1
  347. package/es/components/TextField/TextField.styles_uponva.css +0 -15
  348. package/es/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
  349. package/es/components/TextField/variations/_label-placement/base_6k17xp.css +0 -1
  350. package/es/components/TextField/variations/_read-only/base_8onybn.css +0 -1
  351. package/es/components/TextField/variations/_size/base_1h8l0kj.css +0 -1
  352. package/es/components/TextField/variations/_view/base_1ph5cr0.css +0 -1
  353. package/es/components/TextFieldGroup/variations/_shape/base_1e0je21.css +0 -1
  354. package/styled-components/cjs/components/TextArea/variations/_clear/base.js +0 -10
  355. package/styled-components/es/components/TextArea/variations/_clear/base.js +0 -4
  356. package/types/components/TextArea/variations/_clear/base.d.ts.map +0 -1
  357. /package/types/components/TextArea/variations/{_clear → _hint-size}/base.d.ts +0 -0
@@ -7,15 +7,21 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
7
7
  var React = require('react');
8
8
  var plasmaCore = require('@salutejs/plasma-core');
9
9
  var index = require('../../utils/index.js');
10
+ require('@linaria/react');
11
+ var IconInfoCircleOutline = require('../_Icon/Icons/IconInfoCircleOutline.js');
12
+ var useOutsideClick = require('../../hooks/useOutsideClick.js');
10
13
  var useAutoResize = require('./hooks/useAutoResize.js');
11
14
  var TextArea_styles = require('./TextArea.styles.js');
12
15
  var TextArea_tokens = require('./TextArea.tokens.js');
13
16
  var base$2 = require('./variations/_view/base.js');
14
17
  var base$1 = require('./variations/_size/base.js');
15
- var base$3 = require('./variations/_clear/base.js');
16
- var base$4 = require('./variations/_disabled/base.js');
18
+ var base$3 = require('./variations/_disabled/base.js');
19
+ var base$4 = require('./variations/_hint-view/base.js');
20
+ var base$5 = require('./variations/_hint-size/base.js');
21
+ var react = require('../../utils/react.js');
17
22
 
18
- var _excluded = ["helperText", "status", "resize", "rightHelper", "leftHelper", "contentRight", "autoResize", "minAuto", "maxAuto", "label", "labelPlacement", "placeholder", "defaultValue", "height", "width", "value", "disabled", "required", "requiredPlacement", "optional", "clear", "hasDivider", "size", "view", "id", "style", "className", "readOnly", "rows", "cols", "onChange"];
23
+ var _IconInfoCircleOutlin, _IconInfoCircleOutlin2;
24
+ var _excluded = ["helperText", "status", "resize", "rightHelper", "leftHelper", "contentRight", "autoResize", "minAuto", "maxAuto", "label", "labelPlacement", "titleCaption", "placeholder", "defaultValue", "height", "width", "value", "disabled", "required", "requiredPlacement", "optional", "size", "view", "id", "style", "className", "readOnly", "rows", "cols", "hasHint", "hintTrigger", "hintText", "hintView", "hintSize", "hintTarget", "hintPlacement", "hintHasArrow", "hintOffset", "hintMinWidth", "hintMaxWidth", "hintContentLeft", "onChange"];
19
25
  var innerPlaceholderUp = TextArea_tokens.classes.innerPlaceholderUp,
20
26
  focusedOuterPlaceholderColor = TextArea_tokens.classes.focusedOuterPlaceholderColor,
21
27
  hidePlaceHolder = TextArea_tokens.classes.hidePlaceHolder,
@@ -40,6 +46,7 @@ var getDynamicLabelClasses = function getDynamicLabelClasses(props, focused) {
40
46
  var readOnly = props.readOnly,
41
47
  label = props.label,
42
48
  labelPlacement = props.labelPlacement,
49
+ autoResize = props.autoResize,
43
50
  rows = props.rows,
44
51
  value = props.value,
45
52
  size = props.size;
@@ -48,10 +55,10 @@ var getDynamicLabelClasses = function getDynamicLabelClasses(props, focused) {
48
55
  var withFocusedOuterUpPlaceholder = !readOnly && focused && (!label || labelPlacement === 'outer') ? focusedOuterPlaceholderColor : undefined;
49
56
 
50
57
  // Добавить класс отвечающий за поднятие и уменьшение плейсхолдера
51
- var withInnerPlaceholderUp = labelPlacement === 'inner' && label && !rows && size !== 'xs' && (!readOnly && (value || focused) || readOnly && value) ? innerPlaceholderUp : undefined;
58
+ var withInnerPlaceholderUp = labelPlacement === 'inner' && label && !autoResize && !rows && size !== 'xs' && (!readOnly && (value || focused) || readOnly && value) ? innerPlaceholderUp : undefined;
52
59
 
53
60
  // Добавить класс отвечающий за скрытие плейсхолдера
54
- var withHidePlaceholder = value && !label || labelPlacement === 'inner' && (focused && !readOnly || value) && label && rows || labelPlacement === 'outer' && value || labelPlacement === 'inner' && size === 'xs' && value ? hidePlaceHolder : undefined;
61
+ var withHidePlaceholder = value && !label || labelPlacement === 'inner' && (focused && !readOnly || value) && label && (rows || autoResize) || labelPlacement === 'outer' && value || labelPlacement === 'inner' && size === 'xs' && value ? hidePlaceHolder : undefined;
55
62
  return [withFocusedOuterUpPlaceholder, withInnerPlaceholderUp, withHidePlaceholder];
56
63
  };
57
64
  var textAreaRoot = function textAreaRoot(Root) {
@@ -70,6 +77,7 @@ var textAreaRoot = function textAreaRoot(Root) {
70
77
  label = props.label,
71
78
  _props$labelPlacement = props.labelPlacement,
72
79
  labelPlacement = _props$labelPlacement === void 0 ? 'inner' : _props$labelPlacement,
80
+ titleCaption = props.titleCaption,
73
81
  placeholder = props.placeholder,
74
82
  defaultValue = props.defaultValue,
75
83
  height = props.height,
@@ -82,8 +90,6 @@ var textAreaRoot = function textAreaRoot(Root) {
82
90
  requiredPlacement = _props$requiredPlacem === void 0 ? 'right' : _props$requiredPlacem,
83
91
  _props$optional = props.optional,
84
92
  optional = _props$optional === void 0 ? false : _props$optional,
85
- clear = props.clear,
86
- hasDivider = props.hasDivider,
87
93
  size = props.size,
88
94
  view = props.view,
89
95
  id = props.id,
@@ -92,21 +98,47 @@ var textAreaRoot = function textAreaRoot(Root) {
92
98
  readOnly = props.readOnly,
93
99
  rows = props.rows,
94
100
  cols = props.cols,
101
+ hasHint = props.hasHint,
102
+ _props$hintTrigger = props.hintTrigger,
103
+ hintTrigger = _props$hintTrigger === void 0 ? 'hover' : _props$hintTrigger,
104
+ hintText = props.hintText,
105
+ _props$hintView = props.hintView,
106
+ hintView = _props$hintView === void 0 ? 'default' : _props$hintView,
107
+ _props$hintSize = props.hintSize,
108
+ hintSize = _props$hintSize === void 0 ? 'm' : _props$hintSize,
109
+ hintTarget = props.hintTarget,
110
+ _props$hintPlacement = props.hintPlacement,
111
+ hintPlacement = _props$hintPlacement === void 0 ? 'auto' : _props$hintPlacement,
112
+ hintHasArrow = props.hintHasArrow,
113
+ hintOffset = props.hintOffset,
114
+ hintMinWidth = props.hintMinWidth,
115
+ hintMaxWidth = props.hintMaxWidth,
116
+ hintContentLeft = props.hintContentLeft,
95
117
  onChange = props.onChange,
96
118
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
97
- var _useState = React.useState(width ? "".concat(width, "rem") : '100%'),
119
+ var _useState = React.useState(false),
98
120
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
99
- helperWidth = _useState2[0],
100
- setHelperWidth = _useState2[1];
101
- var _useState3 = React.useState(false),
121
+ showHint = _useState2[0],
122
+ setShowHint = _useState2[1];
123
+ var _useState3 = React.useState(width ? "".concat(width, "rem") : '100%'),
102
124
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
103
- focused = _useState4[0],
104
- setFocused = _useState4[1];
105
- var _useState5 = React.useState(),
125
+ helperWidth = _useState4[0],
126
+ setHelperWidth = _useState4[1];
127
+ var _useState5 = React.useState(false),
106
128
  _useState6 = _rollupPluginBabelHelpers.slicedToArray(_useState5, 2),
107
- uncontrolledValue = _useState6[0],
108
- setUncontrolledValue = _useState6[1];
129
+ focused = _useState6[0],
130
+ setFocused = _useState6[1];
131
+ var _useState7 = React.useState(),
132
+ _useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
133
+ uncontrolledValue = _useState8[0],
134
+ setUncontrolledValue = _useState8[1];
135
+ var hintId = react.safeUseId();
109
136
  var outerRef = innerRef && 'current' in innerRef ? innerRef : /*#__PURE__*/React.createRef();
137
+ var hintRef = useOutsideClick.useOutsideClick(function () {
138
+ setShowHint(false);
139
+ });
140
+ var hintInnerRef = React.useRef(null);
141
+ var hintForkRef = plasmaCore.useForkRef(hintRef, hintInnerRef);
110
142
  var innerOptional = required ? false : optional;
111
143
  var hasHelper = Boolean(leftHelper || rightHelper || helperText);
112
144
  var hasOuterLabel = Boolean(label && labelPlacement === 'outer');
@@ -116,9 +148,24 @@ var textAreaRoot = function textAreaRoot(Root) {
116
148
  var textareaHelperId = id ? "".concat(id, "-helper") : undefined;
117
149
  var applyCustomWidth = resize !== 'horizontal' && resize !== 'both' && !cols;
118
150
  var placeholderLabel = hasInnerLabel ? label : placeholder;
119
- var clearClass = clear ? TextArea_tokens.classes.clear : undefined;
120
- var hasDividerClass = hasDivider ? TextArea_tokens.classes.hasDivider : undefined;
121
151
  var requiredPlacementClass = requiredPlacement === 'right' ? 'align-right ' : undefined;
152
+ var handleShowHint = function handleShowHint() {
153
+ return setShowHint(true);
154
+ };
155
+ var handleHideHint = function handleHideHint() {
156
+ return setShowHint(false);
157
+ };
158
+ var handleClickHint = function handleClickHint(event) {
159
+ if (hasHint && hintTrigger === 'click') {
160
+ var _hintInnerRef$current;
161
+ event.stopPropagation();
162
+ var targetIsPopover = event.target === hintInnerRef.current;
163
+ var rootHasTarget = (_hintInnerRef$current = hintInnerRef.current) === null || _hintInnerRef$current === void 0 ? void 0 : _hintInnerRef$current.contains(event.target);
164
+ if (!targetIsPopover && !rootHasTarget) {
165
+ setShowHint(true);
166
+ }
167
+ }
168
+ };
122
169
  plasmaCore.useResizeObserver(outerRef, function (currentElement) {
123
170
  var inlineWidth = currentElement.style.width;
124
171
  if (inlineWidth || cols) {
@@ -127,7 +174,7 @@ var textAreaRoot = function textAreaRoot(Root) {
127
174
  setHelperWidth("".concat(elementWidth / useAutoResize.ROOT_FONT_SIZE, "rem"));
128
175
  }
129
176
  });
130
- useAutoResize.useAutoResize(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto);
177
+ useAutoResize.useAutoResize(autoResize, outerRef, value, minAuto, maxAuto);
131
178
  var onFocusHandler = React.useCallback(function () {
132
179
  setFocused(true);
133
180
  }, []);
@@ -141,35 +188,88 @@ var textAreaRoot = function textAreaRoot(Root) {
141
188
  }
142
189
  onChange === null || onChange === void 0 || onChange(event);
143
190
  }, [value, onChange]);
144
- var dynamicLabelClasses = getDynamicLabelClasses({
191
+ var dynamicLabelClasses = getDynamicLabelClasses(_rollupPluginBabelHelpers.objectSpread2({
145
192
  size: size,
146
193
  readOnly: readOnly,
147
194
  label: label,
148
195
  labelPlacement: labelPlacement,
149
- value: value || uncontrolledValue || defaultValue,
196
+ value: value || uncontrolledValue || defaultValue
197
+ }, rows ? {
150
198
  rows: rows
151
- }, focused);
199
+ } : {
200
+ autoResize: autoResize
201
+ }), focused);
152
202
  var optionalTextNode = innerOptional ? /*#__PURE__*/React.createElement(TextArea_styles.StyledOptionalText, null, Boolean(hasPlaceholderOptional ? placeholderLabel : label) && '\xa0', optionalText) : null;
153
- return /*#__PURE__*/React.createElement(Root, {
203
+ return /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
154
204
  view: overriddenView,
155
205
  size: size,
156
206
  disabled: disabled,
157
207
  readOnly: readOnly,
158
- clear: clear,
159
208
  style: _rollupPluginBabelHelpers.objectSpread2({
160
209
  width: helperWidth
161
210
  }, style),
162
- className: index.cx(clearClass, hasDividerClass, className)
163
- }, hasOuterLabel && /*#__PURE__*/React.createElement(TextArea_styles.StyledLabel, null, required && /*#__PURE__*/React.createElement(TextArea_styles.StyledIndicator, {
211
+ className: className
212
+ }, hasHint && {
213
+ hintView: hintView || 'default',
214
+ hintSize: hintSize || 'm'
215
+ }), (hasOuterLabel || titleCaption) && /*#__PURE__*/React.createElement(TextArea_styles.OuterLabelWrapper, {
216
+ isInnnerLabel: labelPlacement === 'inner'
217
+ }, hasOuterLabel && /*#__PURE__*/React.createElement(TextArea_styles.StyledIndicatorWrapper, null, /*#__PURE__*/React.createElement(TextArea_styles.StyledLabel, null, label), hasHint && /*#__PURE__*/React.createElement(TextArea_styles.StyledHintWrapper, null, /*#__PURE__*/React.createElement(TextArea_styles.Hint, {
218
+ text: String(hintText),
219
+ opened: showHint,
220
+ target: hintTarget || /*#__PURE__*/React.createElement(TextArea_styles.HintTargetWrapper, _rollupPluginBabelHelpers.extends({
221
+ id: hintId
222
+ }, hintTrigger === 'hover' ? {
223
+ onMouseEnter: handleShowHint,
224
+ onMouseLeave: handleHideHint
225
+ } : {
226
+ onClick: handleClickHint
227
+ }), _IconInfoCircleOutlin || (_IconInfoCircleOutlin = /*#__PURE__*/React.createElement(IconInfoCircleOutline.IconInfoCircleOutline, {
228
+ size: "xs",
229
+ color: "inherit"
230
+ }))),
231
+ placement: hintPlacement,
232
+ hasArrow: hintHasArrow,
233
+ offset: hintOffset,
234
+ minWidth: hintMinWidth,
235
+ maxWidth: hintMaxWidth,
236
+ contentLeft: hintContentLeft,
237
+ frame: hintId,
238
+ ref: hintForkRef
239
+ })), required && /*#__PURE__*/React.createElement(TextArea_styles.StyledIndicator, {
164
240
  className: index.cx(TextArea_tokens.classes.outerLabelPlacement, requiredPlacementClass)
165
- }), label, optionalTextNode), /*#__PURE__*/React.createElement(TextArea_styles.StyledContainer, {
241
+ }), optionalTextNode), titleCaption && /*#__PURE__*/React.createElement(TextArea_styles.TitleCaption, null, titleCaption)), /*#__PURE__*/React.createElement(TextArea_styles.StyledContainer, {
166
242
  className: index.cx.apply(void 0, [styledContainer].concat(_rollupPluginBabelHelpers.toConsumableArray(dynamicLabelClasses))),
167
243
  width: helperWidth,
168
244
  onFocus: onFocusHandler,
169
245
  onBlur: onBlurHandler
170
- }, required && !hasOuterLabel && /*#__PURE__*/React.createElement(TextArea_styles.StyledIndicator, {
246
+ }, !hasOuterLabel && /*#__PURE__*/React.createElement(React.Fragment, null, required && /*#__PURE__*/React.createElement(TextArea_styles.StyledIndicator, {
171
247
  className: index.cx(TextArea_tokens.classes.innerLabelPlacement, requiredPlacementClass)
172
- }), contentRight && /*#__PURE__*/React.createElement(TextArea_styles.StyledContent, null, contentRight), /*#__PURE__*/React.createElement(TextArea_styles.StyledTextAreaWrapper, {
248
+ }), hasHint && /*#__PURE__*/React.createElement(TextArea_styles.StyledHintWrapper, {
249
+ className: TextArea_tokens.classes.innerLabelPlacement
250
+ }, /*#__PURE__*/React.createElement(TextArea_styles.Hint, {
251
+ text: String(hintText),
252
+ opened: showHint,
253
+ target: hintTarget || /*#__PURE__*/React.createElement(TextArea_styles.HintTargetWrapper, _rollupPluginBabelHelpers.extends({
254
+ id: hintId
255
+ }, hintTrigger === 'hover' ? {
256
+ onMouseEnter: handleShowHint,
257
+ onMouseLeave: handleHideHint
258
+ } : {
259
+ onClick: handleClickHint
260
+ }), _IconInfoCircleOutlin2 || (_IconInfoCircleOutlin2 = /*#__PURE__*/React.createElement(IconInfoCircleOutline.IconInfoCircleOutline, {
261
+ size: "xs",
262
+ color: "inherit"
263
+ }))),
264
+ placement: hintPlacement,
265
+ hasArrow: hintHasArrow,
266
+ offset: hintOffset,
267
+ minWidth: hintMinWidth,
268
+ maxWidth: hintMaxWidth,
269
+ contentLeft: hintContentLeft,
270
+ frame: hintId,
271
+ ref: hintForkRef
272
+ }))), contentRight && /*#__PURE__*/React.createElement(TextArea_styles.StyledContent, null, contentRight), /*#__PURE__*/React.createElement(TextArea_styles.StyledTextAreaWrapper, {
173
273
  className: styledTextAreaWrapper,
174
274
  hasHelper: hasHelper
175
275
  }, /*#__PURE__*/React.createElement(TextArea_styles.StyledTextArea, _rollupPluginBabelHelpers.extends({
@@ -180,7 +280,7 @@ var textAreaRoot = function textAreaRoot(Root) {
180
280
  applyCustomWidth: applyCustomWidth,
181
281
  ref: outerRef,
182
282
  disabled: disabled,
183
- height: autoResize || Boolean(clear) ? minAuto : height,
283
+ height: autoResize ? minAuto : height,
184
284
  width: width,
185
285
  placeholder: placeholderLabel,
186
286
  "aria-describedby": textareaHelperId,
@@ -213,16 +313,18 @@ var textAreaConfig = {
213
313
  view: {
214
314
  css: base$2.base
215
315
  },
216
- clear: {
217
- css: base$3.base,
218
- attrs: true
219
- },
220
316
  disabled: {
221
- css: base$4.base,
317
+ css: base$3.base,
222
318
  attrs: true
223
319
  },
224
320
  readOnly: {
225
321
  attrs: true
322
+ },
323
+ hintView: {
324
+ css: base$4.base
325
+ },
326
+ hintSize: {
327
+ css: base$5.base
226
328
  }
227
329
  },
228
330
  defaults: {
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","sources":["../../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import React, { forwardRef, useState, createRef, useCallback } from 'react';\nimport { css } from '@linaria/core';\nimport { useResizeObserver } from '@salutejs/plasma-core';\n\nimport { cx } from '../../utils';\nimport type { RootProps } from '../../engines/types';\n\nimport { applyDynamicLabel } from './mixins';\nimport { useAutoResize, ROOT_FONT_SIZE } from './hooks';\nimport {\n StyledContent,\n StyledHelpers,\n StyledLeftHelper,\n StyledRightHelper,\n StyledLabel,\n StyledPlaceholder,\n StyledTextArea,\n StyledTextAreaWrapper,\n StyledContainer,\n StyledIndicator,\n StyledOptionalText,\n} from './TextArea.styles';\nimport { classes } from './TextArea.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as clearCSS } from './variations/_clear/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport type { TextAreaProps } from './TextArea.types';\n\nconst {\n innerPlaceholderUp,\n focusedOuterPlaceholderColor,\n hidePlaceHolder,\n styledContainer,\n styledTextArea,\n styledTextAreaWrapper,\n styledPlaceholder,\n styledHelpers,\n} = classes;\n\nconst optionalText = 'optional';\n\nconst base = css`\n ${applyDynamicLabel};\n\n position: relative;\n box-sizing: border-box;\n`;\n\n// TODO: Удалить после отказа от старых библиотек plasma-web / plasma-b2c\nconst fallbackStatusMap = {\n '': 'primary',\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\n\n// TODO: Перенести этот метод в файл applyDynamicLabel.ts\nexport const getDynamicLabelClasses = (props: TextAreaProps, focused: boolean) => {\n const { readOnly, label, labelPlacement, rows, value, size } = props;\n\n // Добавить класс отвечающий за изменение цвета плейсхолдера при фокусе\n const withFocusedOuterUpPlaceholder =\n !readOnly && focused && (!label || labelPlacement === 'outer') ? focusedOuterPlaceholderColor : undefined;\n\n // Добавить класс отвечающий за поднятие и уменьшение плейсхолдера\n const withInnerPlaceholderUp =\n labelPlacement === 'inner' &&\n label &&\n !rows &&\n size !== 'xs' &&\n ((!readOnly && (value || focused)) || (readOnly && value))\n ? innerPlaceholderUp\n : undefined;\n\n // Добавить класс отвечающий за скрытие плейсхолдера\n const withHidePlaceholder =\n (value && !label) ||\n (labelPlacement === 'inner' && ((focused && !readOnly) || value) && label && rows) ||\n (labelPlacement === 'outer' && value) ||\n (labelPlacement === 'inner' && size === 'xs' && value)\n ? hidePlaceHolder\n : undefined;\n\n return [withFocusedOuterUpPlaceholder, withInnerPlaceholderUp, withHidePlaceholder];\n};\n\nexport const textAreaRoot = (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) =>\n forwardRef<HTMLTextAreaElement, TextAreaProps>((props, innerRef) => {\n const {\n helperText,\n status,\n resize,\n rightHelper,\n leftHelper,\n contentRight,\n autoResize = false,\n minAuto = 0,\n maxAuto,\n label,\n labelPlacement = 'inner',\n placeholder,\n defaultValue,\n height,\n width,\n value,\n disabled,\n required = false,\n requiredPlacement = 'right',\n optional = false,\n clear,\n hasDivider,\n size,\n view,\n id,\n style,\n className,\n readOnly,\n rows,\n cols,\n onChange,\n ...rest\n } = props;\n\n const [helperWidth, setHelperWidth] = useState<string>(width ? `${width}rem` : '100%');\n const [focused, setFocused] = useState(false);\n const [uncontrolledValue, setUncontrolledValue] = useState<string | undefined>();\n\n const outerRef = innerRef && 'current' in innerRef ? innerRef : createRef<HTMLTextAreaElement>();\n\n const innerOptional = required ? false : optional;\n const hasHelper = Boolean(leftHelper || rightHelper || helperText);\n const hasOuterLabel = Boolean(label && labelPlacement === 'outer');\n const hasInnerLabel = Boolean(label && labelPlacement === 'inner' && size !== 'xs');\n const hasPlaceholderOptional = innerOptional && !hasOuterLabel;\n\n const overriddenView = status !== undefined ? fallbackStatusMap[status] : view;\n const textareaHelperId = id ? `${id}-helper` : undefined;\n const applyCustomWidth = resize !== 'horizontal' && resize !== 'both' && !cols;\n const placeholderLabel = hasInnerLabel ? label : placeholder;\n\n const clearClass = clear ? classes.clear : undefined;\n const hasDividerClass = hasDivider ? classes.hasDivider : undefined;\n const requiredPlacementClass = requiredPlacement === 'right' ? 'align-right ' : undefined;\n\n useResizeObserver(outerRef, (currentElement) => {\n const { width: inlineWidth } = currentElement.style;\n\n if (inlineWidth || cols) {\n const { width: elementWidth } = currentElement.getBoundingClientRect();\n setHelperWidth(`${elementWidth / ROOT_FONT_SIZE}rem`);\n }\n });\n\n useAutoResize(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto);\n\n const onFocusHandler = useCallback(() => {\n setFocused(true);\n }, []);\n\n const onBlurHandler = useCallback(() => {\n setFocused(false);\n }, []);\n\n const onChangeHandler = useCallback(\n (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n // INFO: Для крайне редких кейсов, когда value снаружи не контролируется\n if (value === undefined) {\n setUncontrolledValue(event?.target.value);\n }\n\n onChange?.(event);\n },\n [value, onChange],\n );\n\n const dynamicLabelClasses = getDynamicLabelClasses(\n {\n size,\n readOnly,\n label,\n labelPlacement,\n value: value || uncontrolledValue || defaultValue,\n rows,\n },\n focused,\n );\n\n const optionalTextNode = innerOptional ? (\n <StyledOptionalText>\n {Boolean(hasPlaceholderOptional ? placeholderLabel : label) && '\\xa0'}\n {optionalText}\n </StyledOptionalText>\n ) : null;\n\n return (\n <Root\n view={overriddenView}\n size={size}\n disabled={disabled}\n readOnly={readOnly}\n clear={clear}\n style={{ width: helperWidth, ...style }}\n className={cx(clearClass, hasDividerClass, className)}\n >\n {hasOuterLabel && (\n <StyledLabel>\n {required && (\n <StyledIndicator className={cx(classes.outerLabelPlacement, requiredPlacementClass)} />\n )}\n {label}\n {optionalTextNode}\n </StyledLabel>\n )}\n <StyledContainer\n className={cx(styledContainer, ...dynamicLabelClasses)}\n width={helperWidth}\n onFocus={onFocusHandler}\n onBlur={onBlurHandler}\n >\n {required && !hasOuterLabel && (\n <StyledIndicator className={cx(classes.innerLabelPlacement, requiredPlacementClass)} />\n )}\n {contentRight && <StyledContent>{contentRight}</StyledContent>}\n <StyledTextAreaWrapper className={styledTextAreaWrapper} hasHelper={hasHelper}>\n <StyledTextArea\n className={styledTextArea}\n id={id}\n hasContentRight={Boolean(contentRight)}\n hasHelper={hasHelper}\n applyCustomWidth={applyCustomWidth}\n ref={outerRef}\n disabled={disabled}\n height={autoResize || Boolean(clear) ? minAuto : height}\n width={width}\n placeholder={placeholderLabel}\n aria-describedby={textareaHelperId}\n value={value}\n readOnly={readOnly}\n rows={rows}\n cols={cols}\n resize={resize}\n defaultValue={defaultValue}\n onChange={onChangeHandler}\n {...rest}\n />\n </StyledTextAreaWrapper>\n {hasHelper && (\n <StyledHelpers className={styledHelpers} id={textareaHelperId}>\n {(leftHelper || helperText) && (\n <StyledLeftHelper>{leftHelper || helperText}</StyledLeftHelper>\n )}\n {rightHelper && <StyledRightHelper>{rightHelper}</StyledRightHelper>}\n </StyledHelpers>\n )}\n {placeholderLabel && (\n <StyledPlaceholder\n hasContentRight={Boolean(contentRight)}\n className={styledPlaceholder}\n htmlFor={id}\n >\n {placeholderLabel}\n {!hasOuterLabel && optionalTextNode}\n </StyledPlaceholder>\n )}\n </StyledContainer>\n </Root>\n );\n });\n\nexport const textAreaConfig = {\n name: 'TextArea',\n tag: 'div',\n layout: textAreaRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n clear: {\n css: clearCSS,\n attrs: true,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n attrs: true,\n },\n },\n defaults: {\n size: 'm',\n view: 'primary',\n },\n};\n"],"names":["innerPlaceholderUp","classes","focusedOuterPlaceholderColor","hidePlaceHolder","styledContainer","styledTextArea","styledTextAreaWrapper","styledPlaceholder","styledHelpers","optionalText","base","fallbackStatusMap","success","warning","error","getDynamicLabelClasses","props","focused","readOnly","label","labelPlacement","rows","value","size","withFocusedOuterUpPlaceholder","undefined","withInnerPlaceholderUp","withHidePlaceholder","textAreaRoot","Root","forwardRef","innerRef","helperText","status","resize","rightHelper","leftHelper","contentRight","_props$autoResize","autoResize","_props$minAuto","minAuto","maxAuto","_props$labelPlacement","placeholder","defaultValue","height","width","disabled","_props$required","required","_props$requiredPlacem","requiredPlacement","_props$optional","optional","clear","hasDivider","view","id","style","className","cols","onChange","rest","_excluded","_useState","useState","concat","_useState2","_slicedToArray","helperWidth","setHelperWidth","_useState3","_useState4","setFocused","_useState5","_useState6","uncontrolledValue","setUncontrolledValue","outerRef","createRef","innerOptional","hasHelper","Boolean","hasOuterLabel","hasInnerLabel","hasPlaceholderOptional","overriddenView","textareaHelperId","applyCustomWidth","placeholderLabel","clearClass","hasDividerClass","requiredPlacementClass","useResizeObserver","currentElement","inlineWidth","_currentElement$getBo","getBoundingClientRect","elementWidth","ROOT_FONT_SIZE","useAutoResize","onFocusHandler","useCallback","onBlurHandler","onChangeHandler","event","target","dynamicLabelClasses","optionalTextNode","React","createElement","StyledOptionalText","_objectSpread","cx","StyledLabel","StyledIndicator","outerLabelPlacement","StyledContainer","apply","_toConsumableArray","onFocus","onBlur","innerLabelPlacement","StyledContent","StyledTextAreaWrapper","StyledTextArea","_extends","hasContentRight","ref","StyledHelpers","StyledLeftHelper","StyledRightHelper","StyledPlaceholder","htmlFor","textAreaConfig","name","tag","layout","variations","css","sizeCSS","viewCSS","clearCSS","attrs","disabledCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;AA6BA,IACIA,kBAAkB,GAQlBC,uBAAO,CARPD,kBAAkB;EAClBE,4BAA4B,GAO5BD,uBAAO,CAPPC,4BA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jE,EACAG,WAAW,iBAAI2E,KAAA,CAAAC,aAAA,CAACqB,iCAAiB,QAAEjG,WAA+B,CACxD,CAClB,EACAuD,gBAAgB,iBACboB,KAAA,CAAAC,aAAA,CAACsB,iCAAiB,EAAA;AACdL,MAAAA,eAAe,EAAE7C,OAAO,CAAC9C,YAAY,CAAE;AACvCuB,MAAAA,SAAS,EAAErD,iBAAkB;AAC7B+H,MAAAA,OAAO,EAAE5E,EAAAA;KAERgC,EAAAA,gBAAgB,EAChB,CAACN,aAAa,IAAIyB,gBACJ,CAEV,CACf,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAM0B,cAAc,GAAG;AAC1BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE9G,YAAY;AACpBlB,EAAAA,IAAI,EAAJA,IAAI;AACJiI,EAAAA,UAAU,EAAE;AACRpH,IAAAA,IAAI,EAAE;AACFqH,MAAAA,GAAG,EAAEC,WAAAA;KACR;AACDpF,IAAAA,IAAI,EAAE;AACFmF,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDvF,IAAAA,KAAK,EAAE;AACHqF,MAAAA,GAAG,EAAEG,WAAQ;AACbC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDhG,IAAAA,QAAQ,EAAE;AACN4F,MAAAA,GAAG,EAAEK,WAAW;AAChBD,MAAAA,KAAK,EAAE,IAAA;KACV;AACD9H,IAAAA,QAAQ,EAAE;AACN8H,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDE,EAAAA,QAAQ,EAAE;AACN3H,IAAAA,IAAI,EAAE,GAAG;AACTkC,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;;"}
1
+ {"version":3,"file":"TextArea.js","sources":["../../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import React, { forwardRef, useState, createRef, useCallback, useRef, MouseEventHandler } from 'react';\nimport { css } from '@linaria/core';\nimport { useForkRef, useResizeObserver } from '@salutejs/plasma-core';\n\nimport { cx, safeUseId } from '../../utils';\nimport type { RootProps } from '../../engines/types';\nimport { IconInfoCircleOutline } from '../_Icon';\nimport { useOutsideClick } from '../../hooks';\n\nimport { applyDynamicLabel } from './mixins';\nimport { useAutoResize, ROOT_FONT_SIZE } from './hooks';\nimport {\n StyledContent,\n StyledHelpers,\n StyledLeftHelper,\n StyledRightHelper,\n StyledLabel,\n StyledPlaceholder,\n StyledTextArea,\n StyledTextAreaWrapper,\n StyledContainer,\n StyledIndicator,\n StyledOptionalText,\n OuterLabelWrapper,\n StyledIndicatorWrapper,\n StyledHintWrapper,\n HintTargetWrapper,\n TitleCaption,\n Hint,\n} from './TextArea.styles';\nimport { classes } from './TextArea.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as hintViewCSS } from './variations/_hint-view/base';\nimport { base as hintSizeCSS } from './variations/_hint-size/base';\nimport type { TextAreaProps, TextAreaRootProps } from './TextArea.types';\n\nconst {\n innerPlaceholderUp,\n focusedOuterPlaceholderColor,\n hidePlaceHolder,\n styledContainer,\n styledTextArea,\n styledTextAreaWrapper,\n styledPlaceholder,\n styledHelpers,\n} = classes;\n\nconst optionalText = 'optional';\n\nconst base = css`\n ${applyDynamicLabel};\n\n position: relative;\n box-sizing: border-box;\n`;\n\n// TODO: Удалить после отказа от старых библиотек plasma-web / plasma-b2c\nconst fallbackStatusMap = {\n '': 'primary',\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\n\n// TODO: Перенести этот метод в файл applyDynamicLabel.ts\nexport const getDynamicLabelClasses = (props: TextAreaProps, focused: boolean) => {\n const { readOnly, label, labelPlacement, autoResize, rows, value, size } = props;\n\n // Добавить класс отвечающий за изменение цвета плейсхолдера при фокусе\n const withFocusedOuterUpPlaceholder =\n !readOnly && focused && (!label || labelPlacement === 'outer') ? focusedOuterPlaceholderColor : undefined;\n\n // Добавить класс отвечающий за поднятие и уменьшение плейсхолдера\n const withInnerPlaceholderUp =\n labelPlacement === 'inner' &&\n label &&\n !autoResize &&\n !rows &&\n size !== 'xs' &&\n ((!readOnly && (value || focused)) || (readOnly && value))\n ? innerPlaceholderUp\n : undefined;\n\n // Добавить класс отвечающий за скрытие плейсхолдера\n const withHidePlaceholder =\n (value && !label) ||\n (labelPlacement === 'inner' && ((focused && !readOnly) || value) && label && (rows || autoResize)) ||\n (labelPlacement === 'outer' && value) ||\n (labelPlacement === 'inner' && size === 'xs' && value)\n ? hidePlaceHolder\n : undefined;\n\n return [withFocusedOuterUpPlaceholder, withInnerPlaceholderUp, withHidePlaceholder];\n};\n\nexport const textAreaRoot = (Root: RootProps<HTMLTextAreaElement, TextAreaRootProps>) =>\n forwardRef<HTMLTextAreaElement, TextAreaProps>((props, innerRef) => {\n const {\n helperText,\n status,\n resize,\n rightHelper,\n leftHelper,\n contentRight,\n autoResize = false,\n minAuto = 0,\n maxAuto,\n label,\n labelPlacement = 'inner',\n titleCaption,\n placeholder,\n defaultValue,\n height,\n width,\n value,\n disabled,\n required = false,\n requiredPlacement = 'right',\n optional = false,\n size,\n view,\n id,\n style,\n className,\n readOnly,\n rows,\n cols,\n hasHint,\n hintTrigger = 'hover',\n hintText,\n hintView = 'default',\n hintSize = 'm',\n hintTarget,\n hintPlacement = 'auto',\n hintHasArrow,\n hintOffset,\n hintMinWidth,\n hintMaxWidth,\n hintContentLeft,\n onChange,\n ...rest\n } = props;\n\n const [showHint, setShowHint] = useState(false);\n const [helperWidth, setHelperWidth] = useState<string>(width ? `${width}rem` : '100%');\n const [focused, setFocused] = useState(false);\n const [uncontrolledValue, setUncontrolledValue] = useState<string | undefined>();\n\n const hintId = safeUseId();\n\n const outerRef = innerRef && 'current' in innerRef ? innerRef : createRef<HTMLTextAreaElement>();\n\n const hintRef = useOutsideClick<HTMLDivElement>(() => {\n setShowHint(false);\n });\n const hintInnerRef = useRef<HTMLDivElement>(null);\n const hintForkRef = useForkRef(hintRef, hintInnerRef);\n\n const innerOptional = required ? false : optional;\n const hasHelper = Boolean(leftHelper || rightHelper || helperText);\n const hasOuterLabel = Boolean(label && labelPlacement === 'outer');\n const hasInnerLabel = Boolean(label && labelPlacement === 'inner' && size !== 'xs');\n const hasPlaceholderOptional = innerOptional && !hasOuterLabel;\n\n const overriddenView = status !== undefined ? fallbackStatusMap[status] : view;\n const textareaHelperId = id ? `${id}-helper` : undefined;\n const applyCustomWidth = resize !== 'horizontal' && resize !== 'both' && !cols;\n const placeholderLabel = hasInnerLabel ? label : placeholder;\n\n const requiredPlacementClass = requiredPlacement === 'right' ? 'align-right ' : undefined;\n\n const handleShowHint = () => setShowHint(true);\n const handleHideHint = () => setShowHint(false);\n const handleClickHint: MouseEventHandler = (event) => {\n if (hasHint && hintTrigger === 'click') {\n event.stopPropagation();\n const targetIsPopover = event.target === hintInnerRef.current;\n const rootHasTarget = hintInnerRef.current?.contains(event.target as Element);\n\n if (!targetIsPopover && !rootHasTarget) {\n setShowHint(true);\n }\n }\n };\n\n useResizeObserver(outerRef, (currentElement) => {\n const { width: inlineWidth } = currentElement.style;\n\n if (inlineWidth || cols) {\n const { width: elementWidth } = currentElement.getBoundingClientRect();\n setHelperWidth(`${elementWidth / ROOT_FONT_SIZE}rem`);\n }\n });\n\n useAutoResize(autoResize, outerRef, value, minAuto, maxAuto);\n\n const onFocusHandler = useCallback(() => {\n setFocused(true);\n }, []);\n\n const onBlurHandler = useCallback(() => {\n setFocused(false);\n }, []);\n\n const onChangeHandler = useCallback(\n (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n // INFO: Для крайне редких кейсов, когда value снаружи не контролируется\n if (value === undefined) {\n setUncontrolledValue(event?.target.value);\n }\n\n onChange?.(event);\n },\n [value, onChange],\n );\n\n const dynamicLabelClasses = getDynamicLabelClasses(\n {\n size,\n readOnly,\n label,\n labelPlacement,\n value: value || uncontrolledValue || defaultValue,\n ...(rows ? { rows } : { autoResize }),\n },\n focused,\n );\n\n const optionalTextNode = innerOptional ? (\n <StyledOptionalText>\n {Boolean(hasPlaceholderOptional ? placeholderLabel : label) && '\\xa0'}\n {optionalText}\n </StyledOptionalText>\n ) : null;\n\n return (\n <Root\n view={overriddenView}\n size={size}\n disabled={disabled}\n readOnly={readOnly}\n style={{ width: helperWidth, ...style }}\n className={className}\n {...(hasHint && {\n hintView: hintView || 'default',\n hintSize: hintSize || 'm',\n })}\n >\n {(hasOuterLabel || titleCaption) && (\n <OuterLabelWrapper isInnnerLabel={labelPlacement === 'inner'}>\n {hasOuterLabel && (\n <StyledIndicatorWrapper>\n <StyledLabel>{label}</StyledLabel>\n\n {hasHint && (\n <StyledHintWrapper>\n <Hint\n text={String(hintText)}\n opened={showHint}\n target={\n hintTarget || (\n <HintTargetWrapper\n id={hintId}\n {...(hintTrigger === 'hover'\n ? {\n onMouseEnter: handleShowHint,\n onMouseLeave: handleHideHint,\n }\n : { onClick: handleClickHint })}\n >\n <IconInfoCircleOutline size=\"xs\" color=\"inherit\" />\n </HintTargetWrapper>\n )\n }\n placement={hintPlacement}\n hasArrow={hintHasArrow}\n offset={hintOffset}\n minWidth={hintMinWidth}\n maxWidth={hintMaxWidth}\n contentLeft={hintContentLeft}\n frame={hintId}\n ref={hintForkRef}\n />\n </StyledHintWrapper>\n )}\n {required && (\n <StyledIndicator\n className={cx(classes.outerLabelPlacement, requiredPlacementClass)}\n />\n )}\n {optionalTextNode}\n </StyledIndicatorWrapper>\n )}\n {titleCaption && <TitleCaption>{titleCaption}</TitleCaption>}\n </OuterLabelWrapper>\n )}\n <StyledContainer\n className={cx(styledContainer, ...dynamicLabelClasses)}\n width={helperWidth}\n onFocus={onFocusHandler}\n onBlur={onBlurHandler}\n >\n {!hasOuterLabel && (\n <>\n {required && (\n <StyledIndicator className={cx(classes.innerLabelPlacement, requiredPlacementClass)} />\n )}\n {hasHint && (\n <StyledHintWrapper className={classes.innerLabelPlacement}>\n <Hint\n text={String(hintText)}\n opened={showHint}\n target={\n hintTarget || (\n <HintTargetWrapper\n id={hintId}\n {...(hintTrigger === 'hover'\n ? {\n onMouseEnter: handleShowHint,\n onMouseLeave: handleHideHint,\n }\n : { onClick: handleClickHint })}\n >\n <IconInfoCircleOutline size=\"xs\" color=\"inherit\" />\n </HintTargetWrapper>\n )\n }\n placement={hintPlacement}\n hasArrow={hintHasArrow}\n offset={hintOffset}\n minWidth={hintMinWidth}\n maxWidth={hintMaxWidth}\n contentLeft={hintContentLeft}\n frame={hintId}\n ref={hintForkRef}\n />\n </StyledHintWrapper>\n )}\n </>\n )}\n {contentRight && <StyledContent>{contentRight}</StyledContent>}\n <StyledTextAreaWrapper className={styledTextAreaWrapper} hasHelper={hasHelper}>\n <StyledTextArea\n className={styledTextArea}\n id={id}\n hasContentRight={Boolean(contentRight)}\n hasHelper={hasHelper}\n applyCustomWidth={applyCustomWidth}\n ref={outerRef}\n disabled={disabled}\n height={autoResize ? minAuto : height}\n width={width}\n placeholder={placeholderLabel}\n aria-describedby={textareaHelperId}\n value={value}\n readOnly={readOnly}\n rows={rows}\n cols={cols}\n resize={resize}\n defaultValue={defaultValue}\n onChange={onChangeHandler}\n {...rest}\n />\n </StyledTextAreaWrapper>\n {hasHelper && (\n <StyledHelpers className={styledHelpers} id={textareaHelperId}>\n {(leftHelper || helperText) && (\n <StyledLeftHelper>{leftHelper || helperText}</StyledLeftHelper>\n )}\n {rightHelper && <StyledRightHelper>{rightHelper}</StyledRightHelper>}\n </StyledHelpers>\n )}\n {placeholderLabel && (\n <StyledPlaceholder\n hasContentRight={Boolean(contentRight)}\n className={styledPlaceholder}\n htmlFor={id}\n >\n {placeholderLabel}\n {!hasOuterLabel && optionalTextNode}\n </StyledPlaceholder>\n )}\n </StyledContainer>\n </Root>\n );\n });\n\nexport const textAreaConfig = {\n name: 'TextArea',\n tag: 'div',\n layout: textAreaRoot,\n base,\n variations: {\n size: {\n css: sizeCSS,\n },\n view: {\n css: viewCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n readOnly: {\n attrs: true,\n },\n hintView: {\n css: hintViewCSS,\n },\n hintSize: {\n css: hintSizeCSS,\n },\n },\n defaults: {\n size: 'm',\n view: 'primary',\n },\n};\n"],"names":["innerPlaceholderUp","classes","focusedOuterPlaceholderColor","hidePlaceHolder","styledContainer","styledTextArea","styledTextAreaWrapper","styledPlaceholder","styledHelpers","optionalText","base","fallbackStatusMap","success","warning","error","getDynamicLabelClasses","props","focused","readOnly","label","labelPlacement","autoResize","rows","value","size","withFocusedOuterUpPlaceholder","undefined","withInnerPlaceholderUp","withHidePlaceholder","textAreaRoot","Root","forwardRef","innerRef","helperText","status","resize","rightHelper","leftHelper","contentRight","_props$autoResize","_props$minAuto","minAuto","maxAuto","_props$labelPlacement","titleCaption","placeholder","defaultValue","height","width","disabled","_props$required","required","_props$requiredPlacem","requiredPlacement","_props$optional","optional","view","id","style","className","cols","hasHint","_props$hintTrigger","hintTrigger","hintText","_props$hintView","hintView","_props$hintSize","hintSize","hintTarget","_props$hintPlacement","hintPlacement","hintHasArrow","hintOffset","hintMinWidth","hintMaxWidth","hintContentLeft","onChange","rest","_excluded","_useState","useState","_useState2","_slicedToArray","showHint","setShowHint","_useState3","concat","_useState4","helperWidth","setHelperWidth","_useState5","_useState6","setFocused","_useState7","_useState8","uncontrolledValue","setUncontrolledValue","hintId","safeUseId","outerRef","createRef","hintRef","useOutsideClick","hintInnerRef","useRef","hintForkRef","useForkRef","innerOptional","hasHelper","Boolean","hasOuterLabel","hasInnerLabel","hasPlaceholderOptional","overriddenView","textareaHelperId","applyCustomWidth","placeholderLabel","requiredPlacementClass","handleShowHint","handleHideHint","handleClickHint","event","_hintInnerRef$current","stopPropagation","targetIsPopover","target","current","rootHasTarget","contains","useResizeObserver","currentElement","inlineWidth","_currentElement$getBo","getBoundingClientRect","elementWidth","ROOT_FONT_SIZE","useAutoResize","onFocusHandler","useCallback","onBlurHandler","onChangeHandler","dynamicLabelClasses","_objectSpread","optionalTextNode","React","createElement","StyledOptionalText","_extends","OuterLabelWrapper","isInnnerLabel","StyledIndicatorWrapper","StyledLabel","StyledHintWrapper","Hint","text","String","opened","HintTargetWrapper","onMouseEnter","onMouseLeave","onClick","_IconInfoCircleOutlin","IconInfoCircleOutline","color","placement","hasArrow","offset","minWidth","maxWidth","contentLeft","frame","ref","StyledIndicator","cx","outerLabelPlacement","TitleCaption","StyledContainer","apply","_toConsumableArray","onFocus","onBlur","Fragment","innerLabelPlacement","_IconInfoCircleOutlin2","StyledContent","StyledTextAreaWrapper","StyledTextArea","hasContentRight","StyledHelpers","StyledLeftHelper","StyledRightHelper","StyledPlaceholder","htmlFor","textAreaConfig","name","tag","layout","variations","css","sizeCSS","viewCSS","disabledCSS","attrs","hintViewCSS","hintSizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsCA,IACIA,kBAAkB,GAQlBC,uBAAO,CARPD,kBAAkB;EAClBE,4BAA4B,GAO5BD,uBAAO,CAPPC,4BAA4B;EAC5BC,eAAe,GAMfF,uBAAO,CANPE,eAAe;EACfC,eAAe,GAKfH,uBAAO,CALPG,eAAe;EACfC,cAAc,GAIdJ,uBAAO,CAJPI,cAAc;EACdC,qBAAqB,GAGrBL,uBAAO,CAHPK,qBAAqB;EACrBC,iBAAiB,GAEjBN,uBAAO,CAFPM,iBAAiB;EACjBC,aAAAA,GACAP,uBAAO,CADPO,aAAAA,CAAAA;AAGJ,IAAMC,YAAY,GAAG,UAAU,CAAA;AAE/B,IAAMC,IAAI,GAKT,SAAA,CAAA;;AAED;AACA,IAAMC,iBAAiB,GAAG;AACtB,EAAA,EAAE,EAAE,SAAS;AACbC,EAAAA,OAAO,EAAE,UAAU;AACnBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,KAAK,EAAE,UAAA;AACX,CAAC,CAAA;;AAED;AACO,IAAMC,sBAAsB,GAAGA,SAAzBA,sBAAsBA,CAAIC,KAAoB,EAAEC,OAAgB,EAAK;AAC9E,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