@salutejs/plasma-new-hope 0.170.0-canary.1490.11387458591.0 → 0.171.0-canary.1459.11400476651.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (617) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +35 -19
  2. package/cjs/components/Autocomplete/Autocomplete.js +4 -2
  3. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/Combobox.css +39 -18
  5. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +39 -18
  6. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +39 -18
  7. package/cjs/components/DatePicker/RangeDate/RangeDate.css +34 -18
  8. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +34 -18
  9. package/cjs/components/DatePicker/SingleDate/SingleDate.css +36 -20
  10. package/cjs/components/Range/Range.css +40 -19
  11. package/cjs/components/Slider/Slider.css +40 -19
  12. package/cjs/components/Slider/Slider.js +2 -0
  13. package/cjs/components/Slider/Slider.js.map +1 -1
  14. package/cjs/components/Slider/components/Double/Double.css +40 -19
  15. package/cjs/components/TextArea/TextArea.js +111 -19
  16. package/cjs/components/TextArea/TextArea.js.map +1 -1
  17. package/cjs/components/TextArea/TextArea.styles.js +166 -63
  18. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  19. package/cjs/components/TextArea/TextArea.styles_1ke2ihc.css +18 -0
  20. package/cjs/components/TextArea/TextArea.tokens.js +45 -5
  21. package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
  22. package/cjs/components/TextArea/hooks/useAutoResize.js +2 -4
  23. package/cjs/components/TextArea/hooks/useAutoResize.js.map +1 -1
  24. package/cjs/components/TextArea/ui/Hint/Hint.css +30 -0
  25. package/cjs/components/TextArea/ui/Hint/Hint.js +53 -0
  26. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -0
  27. package/cjs/components/TextArea/variations/_clear/base.js +1 -1
  28. package/cjs/components/TextArea/variations/_clear/base.js.map +1 -1
  29. package/cjs/components/TextArea/variations/_clear/base_iz2qkw.css +1 -0
  30. package/cjs/components/TextArea/variations/_hint-size/base.js +9 -0
  31. package/cjs/components/TextArea/variations/_hint-size/base.js.map +1 -0
  32. package/cjs/components/TextArea/variations/_hint-size/base_1ipgv90.css +1 -0
  33. package/cjs/components/TextArea/variations/_hint-view/base.js +9 -0
  34. package/cjs/components/TextArea/variations/_hint-view/base.js.map +1 -0
  35. package/cjs/components/TextArea/variations/_hint-view/base_111a0qe.css +1 -0
  36. package/cjs/components/TextArea/variations/_view/base.js +1 -1
  37. package/cjs/components/TextArea/variations/_view/base.js.map +1 -1
  38. package/cjs/components/TextArea/variations/_view/base_1xgrm3x.css +1 -0
  39. package/cjs/components/TextField/TextField.js +100 -10
  40. package/cjs/components/TextField/TextField.js.map +1 -1
  41. package/cjs/components/TextField/TextField.styles.js +82 -23
  42. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  43. package/cjs/components/TextField/TextField.styles_grgg7q.css +22 -0
  44. package/cjs/components/TextField/TextField.tokens.js +42 -2
  45. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  46. package/cjs/components/TextField/ui/Hint/Hint.css +34 -0
  47. package/cjs/components/TextField/ui/Hint/Hint.js +53 -0
  48. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -0
  49. package/cjs/components/TextField/variations/_clear/base.js +1 -1
  50. package/cjs/components/TextField/variations/_clear/base.js.map +1 -1
  51. package/cjs/components/TextField/variations/_clear/base_1i91sjp.css +1 -0
  52. package/cjs/components/TextField/variations/_disabled/base.js +1 -1
  53. package/cjs/components/TextField/variations/_disabled/{base_2tv0nz.css → base_4d3opa.css} +1 -1
  54. package/cjs/components/TextField/variations/_hint-size/base.js +9 -0
  55. package/cjs/components/TextField/variations/_hint-size/base.js.map +1 -0
  56. package/cjs/components/TextField/variations/_hint-size/base_1x99605.css +1 -0
  57. package/cjs/components/{ViewContainer/_view → TextField/variations/_hint-view}/base.js +2 -2
  58. package/cjs/components/TextField/variations/_hint-view/base.js.map +1 -0
  59. package/cjs/components/TextField/variations/_hint-view/base_l8etux.css +1 -0
  60. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  61. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  62. package/cjs/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  63. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  64. package/cjs/components/TextField/variations/_read-only/base.js.map +1 -1
  65. package/cjs/components/TextField/variations/_read-only/base_17ypmu7.css +1 -0
  66. package/cjs/components/TextField/variations/_size/base.js +1 -1
  67. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  68. package/cjs/components/TextField/variations/_size/base_1xdmaqh.css +1 -0
  69. package/cjs/components/TextField/variations/_view/base.js +1 -1
  70. package/cjs/components/TextField/variations/_view/base.js.map +1 -1
  71. package/cjs/components/TextField/variations/_view/base_qhyte8.css +1 -0
  72. package/cjs/components/TextFieldGroup/TextFieldGroup.css +1 -1
  73. package/cjs/components/TextFieldGroup/variations/_shape/base.js +1 -1
  74. package/cjs/components/TextFieldGroup/variations/_shape/base_52bndd.css +1 -0
  75. package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +23 -0
  76. package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js.map +1 -0
  77. package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +23 -0
  78. package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js.map +1 -0
  79. package/cjs/index.css +56 -36
  80. package/cjs/index.js +0 -3
  81. package/cjs/index.js.map +1 -1
  82. package/emotion/cjs/components/Autocomplete/Autocomplete.js +4 -2
  83. package/emotion/cjs/components/TextArea/TextArea.js +115 -23
  84. package/emotion/cjs/components/TextArea/TextArea.styles.js +103 -41
  85. package/emotion/cjs/components/TextArea/TextArea.template-doc.mdx +6 -1
  86. package/emotion/cjs/components/TextArea/TextArea.tokens.js +45 -5
  87. package/emotion/cjs/components/TextArea/hooks/useAutoResize.js +2 -4
  88. package/emotion/cjs/components/TextArea/ui/Hint/Hint.js +53 -0
  89. package/emotion/cjs/components/TextArea/ui/Hint/Hint.types.js +5 -0
  90. package/emotion/cjs/components/TextArea/variations/_clear/base.js +1 -1
  91. package/emotion/cjs/components/TextArea/variations/_hint-size/base.js +11 -0
  92. package/emotion/cjs/components/TextArea/variations/_hint-size/tokens.json +21 -0
  93. package/emotion/cjs/components/TextArea/variations/_hint-view/base.js +11 -0
  94. package/emotion/cjs/components/TextArea/variations/_hint-view/tokens.json +5 -0
  95. package/emotion/cjs/components/TextArea/variations/_view/base.js +2 -1
  96. package/emotion/cjs/components/TextField/TextField.js +103 -13
  97. package/emotion/cjs/components/TextField/TextField.styles.js +88 -37
  98. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +6 -1
  99. package/emotion/cjs/components/TextField/TextField.tokens.js +42 -2
  100. package/emotion/cjs/components/TextField/ui/Hint/Hint.js +53 -0
  101. package/emotion/cjs/components/TextField/ui/Hint/Hint.types.js +5 -0
  102. package/emotion/cjs/components/TextField/variations/_clear/base.js +1 -1
  103. package/emotion/cjs/components/TextField/variations/_hint-size/base.js +11 -0
  104. package/emotion/cjs/components/TextField/variations/_hint-size/tokens.json +21 -0
  105. package/emotion/cjs/components/TextField/variations/_hint-view/base.js +11 -0
  106. package/emotion/cjs/components/TextField/variations/_hint-view/tokens.json +5 -0
  107. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  108. package/emotion/cjs/components/TextField/variations/_read-only/base.js +1 -1
  109. package/emotion/cjs/components/TextField/variations/_size/base.js +1 -1
  110. package/emotion/cjs/components/TextField/variations/_view/base.js +1 -1
  111. package/emotion/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +22 -0
  112. package/emotion/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +22 -0
  113. package/emotion/cjs/components/_Icon/index.js +8 -1
  114. package/emotion/cjs/examples/_helpers.js +14 -3
  115. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  116. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  117. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +5 -5
  118. package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +6 -1
  119. package/emotion/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  120. package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +22 -24
  121. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -15
  122. package/emotion/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  123. package/emotion/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +3 -3
  124. package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +11 -11
  125. package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
  126. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +19 -10
  127. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +72 -0
  128. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +22 -13
  129. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +73 -1
  130. package/emotion/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +5 -11
  131. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  132. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  133. package/emotion/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +5 -5
  134. package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  135. package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +6 -1
  136. package/emotion/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  137. package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +22 -24
  138. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -15
  139. package/emotion/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  140. package/emotion/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +3 -3
  141. package/emotion/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +11 -11
  142. package/emotion/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
  143. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +19 -10
  144. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +72 -0
  145. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +22 -13
  146. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +82 -10
  147. package/emotion/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +5 -11
  148. package/emotion/cjs/examples/themes/declaration.d.ts +4 -0
  149. package/emotion/cjs/examples/themes/index.js +15 -0
  150. package/emotion/cjs/examples/themes/plasma_b2c.module.css +984 -0
  151. package/emotion/cjs/examples/themes/plasma_web.module.css +984 -0
  152. package/emotion/cjs/index.js +0 -11
  153. package/emotion/es/components/Autocomplete/Autocomplete.js +4 -2
  154. package/emotion/es/components/TextArea/TextArea.js +115 -23
  155. package/emotion/es/components/TextArea/TextArea.styles.js +102 -40
  156. package/emotion/es/components/TextArea/TextArea.template-doc.mdx +6 -1
  157. package/emotion/es/components/TextArea/TextArea.tokens.js +45 -5
  158. package/emotion/es/components/TextArea/hooks/useAutoResize.js +2 -4
  159. package/emotion/es/components/TextArea/ui/Hint/Hint.js +44 -0
  160. package/emotion/es/components/TextArea/ui/Hint/Hint.types.js +1 -0
  161. package/emotion/es/components/TextArea/variations/_clear/base.js +2 -2
  162. package/emotion/es/components/TextArea/variations/_hint-size/base.js +5 -0
  163. package/emotion/es/components/TextArea/variations/_hint-size/tokens.json +21 -0
  164. package/emotion/es/components/TextArea/variations/_hint-view/base.js +5 -0
  165. package/emotion/es/components/TextArea/variations/_hint-view/tokens.json +5 -0
  166. package/emotion/es/components/TextArea/variations/_view/base.js +2 -1
  167. package/emotion/es/components/TextField/TextField.js +102 -12
  168. package/emotion/es/components/TextField/TextField.styles.js +87 -36
  169. package/emotion/es/components/TextField/TextField.template-doc.mdx +6 -1
  170. package/emotion/es/components/TextField/TextField.tokens.js +42 -2
  171. package/emotion/es/components/TextField/ui/Hint/Hint.js +44 -0
  172. package/emotion/es/components/TextField/ui/Hint/Hint.types.js +1 -0
  173. package/emotion/es/components/TextField/variations/_clear/base.js +2 -2
  174. package/emotion/es/components/TextField/variations/_hint-size/base.js +5 -0
  175. package/emotion/es/components/TextField/variations/_hint-size/tokens.json +21 -0
  176. package/emotion/es/components/TextField/variations/_hint-view/base.js +5 -0
  177. package/emotion/es/components/TextField/variations/_hint-view/tokens.json +5 -0
  178. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  179. package/emotion/es/components/TextField/variations/_read-only/base.js +2 -2
  180. package/emotion/es/components/TextField/variations/_size/base.js +2 -2
  181. package/emotion/es/components/TextField/variations/_view/base.js +2 -2
  182. package/emotion/es/components/_Icon/Icon.assets/InfoCircleOutline.js +15 -0
  183. package/emotion/es/components/_Icon/Icons/IconInfoCircleOutline.js +15 -0
  184. package/emotion/es/components/_Icon/index.js +2 -1
  185. package/emotion/es/examples/_helpers.js +14 -3
  186. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +12 -12
  187. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  188. package/emotion/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +5 -5
  189. package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +6 -1
  190. package/emotion/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  191. package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +22 -24
  192. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -15
  193. package/emotion/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  194. package/emotion/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +3 -3
  195. package/emotion/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +11 -11
  196. package/emotion/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
  197. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +19 -10
  198. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +72 -0
  199. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +22 -13
  200. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +73 -1
  201. package/emotion/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +5 -11
  202. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +12 -12
  203. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  204. package/emotion/es/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +5 -5
  205. package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +7 -7
  206. package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +6 -1
  207. package/emotion/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  208. package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +22 -24
  209. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -15
  210. package/emotion/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  211. package/emotion/es/examples/plasma_web/components/Popup/Popup.stories.tsx +3 -3
  212. package/emotion/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +11 -11
  213. package/emotion/es/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
  214. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.config.js +19 -10
  215. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +72 -0
  216. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +22 -13
  217. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +82 -10
  218. package/emotion/es/examples/plasma_web/components/Toast/Toast.stories.tsx +5 -11
  219. package/emotion/es/examples/themes/declaration.d.ts +4 -0
  220. package/emotion/es/examples/themes/index.js +7 -0
  221. package/emotion/es/examples/themes/plasma_b2c.module.css +984 -0
  222. package/emotion/es/examples/themes/plasma_web.module.css +984 -0
  223. package/emotion/es/index.js +1 -2
  224. package/es/components/Autocomplete/Autocomplete.css +35 -19
  225. package/es/components/Autocomplete/Autocomplete.js +4 -2
  226. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  227. package/es/components/Combobox/ComboboxNew/Combobox.css +39 -18
  228. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +39 -18
  229. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +39 -18
  230. package/es/components/DatePicker/RangeDate/RangeDate.css +34 -18
  231. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +34 -18
  232. package/es/components/DatePicker/SingleDate/SingleDate.css +36 -20
  233. package/es/components/Range/Range.css +40 -19
  234. package/es/components/Slider/Slider.css +40 -19
  235. package/es/components/Slider/Slider.js +2 -0
  236. package/es/components/Slider/Slider.js.map +1 -1
  237. package/es/components/Slider/components/Double/Double.css +40 -19
  238. package/es/components/TextArea/TextArea.js +115 -23
  239. package/es/components/TextArea/TextArea.js.map +1 -1
  240. package/es/components/TextArea/TextArea.styles.js +160 -64
  241. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  242. package/es/components/TextArea/TextArea.styles_1ke2ihc.css +18 -0
  243. package/es/components/TextArea/TextArea.tokens.js +45 -5
  244. package/es/components/TextArea/TextArea.tokens.js.map +1 -1
  245. package/es/components/TextArea/hooks/useAutoResize.js +2 -4
  246. package/es/components/TextArea/hooks/useAutoResize.js.map +1 -1
  247. package/es/components/TextArea/ui/Hint/Hint.css +30 -0
  248. package/es/components/TextArea/ui/Hint/Hint.js +49 -0
  249. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -0
  250. package/es/components/TextArea/variations/_clear/base.js +1 -1
  251. package/es/components/TextArea/variations/_clear/base.js.map +1 -1
  252. package/es/components/TextArea/variations/_clear/base_iz2qkw.css +1 -0
  253. package/es/components/TextArea/variations/_hint-size/base.js +5 -0
  254. package/es/components/TextArea/variations/_hint-size/base.js.map +1 -0
  255. package/es/components/TextArea/variations/_hint-size/base_1ipgv90.css +1 -0
  256. package/es/components/TextArea/variations/_hint-view/base.js +5 -0
  257. package/es/components/TextArea/variations/_hint-view/base.js.map +1 -0
  258. package/es/components/TextArea/variations/_hint-view/base_111a0qe.css +1 -0
  259. package/es/components/TextArea/variations/_view/base.js +1 -1
  260. package/es/components/TextArea/variations/_view/base.js.map +1 -1
  261. package/es/components/TextArea/variations/_view/base_1xgrm3x.css +1 -0
  262. package/es/components/TextField/TextField.js +101 -11
  263. package/es/components/TextField/TextField.js.map +1 -1
  264. package/es/components/TextField/TextField.styles.js +76 -24
  265. package/es/components/TextField/TextField.styles.js.map +1 -1
  266. package/es/components/TextField/TextField.styles_grgg7q.css +22 -0
  267. package/es/components/TextField/TextField.tokens.js +42 -2
  268. package/es/components/TextField/TextField.tokens.js.map +1 -1
  269. package/es/components/TextField/ui/Hint/Hint.css +34 -0
  270. package/es/components/TextField/ui/Hint/Hint.js +49 -0
  271. package/es/components/TextField/ui/Hint/Hint.js.map +1 -0
  272. package/es/components/TextField/variations/_clear/base.js +1 -1
  273. package/es/components/TextField/variations/_clear/base.js.map +1 -1
  274. package/es/components/TextField/variations/_clear/base_1i91sjp.css +1 -0
  275. package/es/components/TextField/variations/_disabled/base.js +1 -1
  276. package/es/components/TextField/variations/_disabled/{base_2tv0nz.css → base_4d3opa.css} +1 -1
  277. package/es/components/TextField/variations/_hint-size/base.js +5 -0
  278. package/es/components/TextField/variations/_hint-size/base.js.map +1 -0
  279. package/es/components/TextField/variations/_hint-size/base_1x99605.css +1 -0
  280. package/es/components/{ViewContainer/_view → TextField/variations/_hint-view}/base.js +2 -2
  281. package/es/components/TextField/variations/_hint-view/base.js.map +1 -0
  282. package/es/components/TextField/variations/_hint-view/base_l8etux.css +1 -0
  283. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  284. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  285. package/es/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  286. package/es/components/TextField/variations/_read-only/base.js +1 -1
  287. package/es/components/TextField/variations/_read-only/base.js.map +1 -1
  288. package/es/components/TextField/variations/_read-only/base_17ypmu7.css +1 -0
  289. package/es/components/TextField/variations/_size/base.js +1 -1
  290. package/es/components/TextField/variations/_size/base.js.map +1 -1
  291. package/es/components/TextField/variations/_size/base_1xdmaqh.css +1 -0
  292. package/es/components/TextField/variations/_view/base.js +1 -1
  293. package/es/components/TextField/variations/_view/base.js.map +1 -1
  294. package/es/components/TextField/variations/_view/base_qhyte8.css +1 -0
  295. package/es/components/TextFieldGroup/TextFieldGroup.css +1 -1
  296. package/es/components/TextFieldGroup/variations/_shape/base.js +1 -1
  297. package/es/components/TextFieldGroup/variations/_shape/base_52bndd.css +1 -0
  298. package/es/components/_Icon/Icon.assets/InfoCircleOutline.js +19 -0
  299. package/es/components/_Icon/Icon.assets/InfoCircleOutline.js.map +1 -0
  300. package/es/components/_Icon/Icons/IconInfoCircleOutline.js +19 -0
  301. package/es/components/_Icon/Icons/IconInfoCircleOutline.js.map +1 -0
  302. package/es/index.css +56 -36
  303. package/es/index.js +0 -1
  304. package/es/index.js.map +1 -1
  305. package/package.json +2 -3
  306. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +4 -2
  307. package/styled-components/cjs/components/TextArea/TextArea.js +114 -22
  308. package/styled-components/cjs/components/TextArea/TextArea.styles.js +88 -42
  309. package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +6 -1
  310. package/styled-components/cjs/components/TextArea/TextArea.tokens.js +45 -5
  311. package/styled-components/cjs/components/TextArea/hooks/useAutoResize.js +2 -4
  312. package/styled-components/cjs/components/TextArea/ui/Hint/Hint.js +53 -0
  313. package/styled-components/cjs/components/TextArea/ui/Hint/Hint.types.js +5 -0
  314. package/styled-components/cjs/components/TextArea/variations/_clear/base.js +1 -1
  315. package/styled-components/cjs/components/TextArea/variations/_hint-size/base.js +11 -0
  316. package/styled-components/cjs/components/TextArea/variations/_hint-size/tokens.json +21 -0
  317. package/styled-components/cjs/components/TextArea/variations/_hint-view/base.js +11 -0
  318. package/styled-components/cjs/components/TextArea/variations/_hint-view/tokens.json +5 -0
  319. package/styled-components/cjs/components/TextArea/variations/_view/base.js +2 -1
  320. package/styled-components/cjs/components/TextField/TextField.js +102 -12
  321. package/styled-components/cjs/components/TextField/TextField.styles.js +49 -21
  322. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +6 -1
  323. package/styled-components/cjs/components/TextField/TextField.tokens.js +42 -2
  324. package/styled-components/cjs/components/TextField/ui/Hint/Hint.js +53 -0
  325. package/styled-components/cjs/components/TextField/ui/Hint/Hint.types.js +5 -0
  326. package/styled-components/cjs/components/TextField/variations/_clear/base.js +1 -1
  327. package/styled-components/cjs/components/TextField/variations/_hint-size/base.js +11 -0
  328. package/styled-components/cjs/components/TextField/variations/_hint-size/tokens.json +21 -0
  329. package/styled-components/cjs/components/TextField/variations/_hint-view/base.js +11 -0
  330. package/styled-components/cjs/components/TextField/variations/_hint-view/tokens.json +5 -0
  331. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  332. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +1 -1
  333. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  334. package/styled-components/cjs/components/TextField/variations/_view/base.js +1 -1
  335. package/styled-components/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +22 -0
  336. package/styled-components/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +22 -0
  337. package/styled-components/cjs/components/_Icon/index.js +8 -1
  338. package/styled-components/cjs/examples/_helpers.js +14 -3
  339. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +5 -5
  340. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  341. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +1 -1
  342. package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +6 -1
  343. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  344. package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +22 -24
  345. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -15
  346. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  347. package/styled-components/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +3 -3
  348. package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +2 -2
  349. package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +3 -3
  350. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +18 -9
  351. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +72 -0
  352. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +19 -10
  353. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +73 -1
  354. package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +5 -11
  355. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +5 -5
  356. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  357. package/styled-components/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +1 -1
  358. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +1 -1
  359. package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +6 -1
  360. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  361. package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +22 -24
  362. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -15
  363. package/styled-components/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  364. package/styled-components/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +3 -3
  365. package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +2 -2
  366. package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +3 -3
  367. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +18 -9
  368. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +72 -0
  369. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +19 -10
  370. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +82 -10
  371. package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +5 -11
  372. package/styled-components/cjs/examples/themes/declaration.d.ts +4 -0
  373. package/styled-components/cjs/examples/themes/index.js +15 -0
  374. package/styled-components/cjs/examples/themes/plasma_b2c.module.css +984 -0
  375. package/styled-components/cjs/examples/themes/plasma_web.module.css +984 -0
  376. package/styled-components/cjs/index.js +0 -11
  377. package/styled-components/es/components/Autocomplete/Autocomplete.js +4 -2
  378. package/styled-components/es/components/TextArea/TextArea.js +114 -22
  379. package/styled-components/es/components/TextArea/TextArea.styles.js +87 -41
  380. package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +6 -1
  381. package/styled-components/es/components/TextArea/TextArea.tokens.js +45 -5
  382. package/styled-components/es/components/TextArea/hooks/useAutoResize.js +2 -4
  383. package/styled-components/es/components/TextArea/ui/Hint/Hint.js +44 -0
  384. package/styled-components/es/components/TextArea/ui/Hint/Hint.types.js +1 -0
  385. package/styled-components/es/components/TextArea/variations/_clear/base.js +2 -2
  386. package/styled-components/es/components/TextArea/variations/_hint-size/base.js +5 -0
  387. package/styled-components/es/components/TextArea/variations/_hint-size/tokens.json +21 -0
  388. package/styled-components/es/components/TextArea/variations/_hint-view/base.js +5 -0
  389. package/styled-components/es/components/TextArea/variations/_hint-view/tokens.json +5 -0
  390. package/styled-components/es/components/TextArea/variations/_view/base.js +2 -1
  391. package/styled-components/es/components/TextField/TextField.js +101 -11
  392. package/styled-components/es/components/TextField/TextField.styles.js +48 -20
  393. package/styled-components/es/components/TextField/TextField.template-doc.mdx +6 -1
  394. package/styled-components/es/components/TextField/TextField.tokens.js +42 -2
  395. package/styled-components/es/components/TextField/ui/Hint/Hint.js +44 -0
  396. package/styled-components/es/components/TextField/ui/Hint/Hint.types.js +1 -0
  397. package/styled-components/es/components/TextField/variations/_clear/base.js +2 -2
  398. package/styled-components/es/components/TextField/variations/_hint-size/base.js +5 -0
  399. package/styled-components/es/components/TextField/variations/_hint-size/tokens.json +21 -0
  400. package/styled-components/es/components/TextField/variations/_hint-view/base.js +5 -0
  401. package/styled-components/es/components/TextField/variations/_hint-view/tokens.json +5 -0
  402. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  403. package/styled-components/es/components/TextField/variations/_read-only/base.js +2 -2
  404. package/styled-components/es/components/TextField/variations/_size/base.js +2 -2
  405. package/styled-components/es/components/TextField/variations/_view/base.js +2 -2
  406. package/styled-components/es/components/_Icon/Icon.assets/InfoCircleOutline.js +15 -0
  407. package/styled-components/es/components/_Icon/Icons/IconInfoCircleOutline.js +15 -0
  408. package/styled-components/es/components/_Icon/index.js +2 -1
  409. package/styled-components/es/examples/_helpers.js +14 -3
  410. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.config.js +5 -5
  411. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  412. package/styled-components/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +1 -1
  413. package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +6 -1
  414. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  415. package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +22 -24
  416. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -15
  417. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  418. package/styled-components/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +3 -3
  419. package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +2 -2
  420. package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +3 -3
  421. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +18 -9
  422. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +72 -0
  423. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +19 -10
  424. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +73 -1
  425. package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +5 -11
  426. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.config.js +5 -5
  427. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  428. package/styled-components/es/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +1 -1
  429. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +1 -1
  430. package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +6 -1
  431. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  432. package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +22 -24
  433. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -15
  434. package/styled-components/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  435. package/styled-components/es/examples/plasma_web/components/Popup/Popup.stories.tsx +3 -3
  436. package/styled-components/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +2 -2
  437. package/styled-components/es/examples/plasma_web/components/Segment/SegmentItem.config.js +3 -3
  438. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +18 -9
  439. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +72 -0
  440. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +19 -10
  441. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +82 -10
  442. package/styled-components/es/examples/plasma_web/components/Toast/Toast.stories.tsx +5 -11
  443. package/styled-components/es/examples/themes/declaration.d.ts +4 -0
  444. package/styled-components/es/examples/themes/index.js +7 -0
  445. package/styled-components/es/examples/themes/plasma_b2c.module.css +984 -0
  446. package/styled-components/es/examples/themes/plasma_web.module.css +984 -0
  447. package/styled-components/es/index.js +1 -2
  448. package/types/components/Accordion/Accordion.types.d.ts +1 -1
  449. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  450. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +408 -0
  451. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  452. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +408 -0
  453. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  454. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +408 -0
  455. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  456. package/types/components/Range/Range.styles.d.ts +408 -0
  457. package/types/components/Range/Range.styles.d.ts.map +1 -1
  458. package/types/components/Slider/components/Double/Double.styles.d.ts +408 -0
  459. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  460. package/types/components/TextArea/TextArea.d.ts +9 -3
  461. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  462. package/types/components/TextArea/TextArea.styles.d.ts +12 -1
  463. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  464. package/types/components/TextArea/TextArea.tokens.d.ts +40 -0
  465. package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
  466. package/types/components/TextArea/TextArea.types.d.ts +78 -3
  467. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  468. package/types/components/TextArea/hooks/useAutoResize.d.ts.map +1 -1
  469. package/types/components/TextArea/ui/Hint/Hint.d.ts +4 -0
  470. package/types/components/TextArea/ui/Hint/Hint.d.ts.map +1 -0
  471. package/types/components/TextArea/ui/Hint/Hint.types.d.ts +17 -0
  472. package/types/components/TextArea/ui/Hint/Hint.types.d.ts.map +1 -0
  473. package/types/components/TextArea/variations/_clear/base.d.ts.map +1 -1
  474. package/types/components/TextArea/variations/_hint-size/base.d.ts.map +1 -0
  475. package/types/components/TextArea/variations/_hint-view/base.d.ts +2 -0
  476. package/types/components/TextArea/variations/_hint-view/base.d.ts.map +1 -0
  477. package/types/components/TextArea/variations/_view/base.d.ts.map +1 -1
  478. package/types/components/TextField/TextField.d.ts +9 -3
  479. package/types/components/TextField/TextField.d.ts.map +1 -1
  480. package/types/components/TextField/TextField.styles.d.ts +9 -0
  481. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  482. package/types/components/TextField/TextField.tokens.d.ts +40 -0
  483. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  484. package/types/components/TextField/TextField.types.d.ts +73 -2
  485. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  486. package/types/components/TextField/ui/Hint/Hint.d.ts +4 -0
  487. package/types/components/TextField/ui/Hint/Hint.d.ts.map +1 -0
  488. package/types/components/TextField/ui/Hint/Hint.types.d.ts +17 -0
  489. package/types/components/TextField/ui/Hint/Hint.types.d.ts.map +1 -0
  490. package/types/components/TextField/variations/_clear/base.d.ts.map +1 -1
  491. package/types/components/TextField/variations/_hint-size/base.d.ts +2 -0
  492. package/types/components/TextField/variations/_hint-size/base.d.ts.map +1 -0
  493. package/types/components/TextField/variations/_hint-view/base.d.ts +2 -0
  494. package/types/components/TextField/variations/_hint-view/base.d.ts.map +1 -0
  495. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
  496. package/types/components/TextField/variations/_read-only/base.d.ts.map +1 -1
  497. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  498. package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
  499. package/types/components/_Icon/Icon.assets/InfoCircleOutline.d.ts +4 -0
  500. package/types/components/_Icon/Icon.assets/InfoCircleOutline.d.ts.map +1 -0
  501. package/types/components/_Icon/Icons/IconInfoCircleOutline.d.ts +4 -0
  502. package/types/components/_Icon/Icons/IconInfoCircleOutline.d.ts.map +1 -0
  503. package/types/components/_Icon/index.d.ts +1 -0
  504. package/types/components/_Icon/index.d.ts.map +1 -1
  505. package/types/examples/_helpers.d.ts.map +1 -1
  506. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +772 -12
  507. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  508. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +9 -0
  509. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
  510. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +457 -0
  511. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  512. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +9 -0
  513. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  514. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +417 -0
  515. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  516. package/types/examples/plasma_web/components/Mask/Mask.d.ts +772 -12
  517. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  518. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +9 -0
  519. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
  520. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +457 -0
  521. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  522. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +9 -0
  523. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
  524. package/types/examples/plasma_web/components/TextField/TextField.d.ts +417 -0
  525. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  526. package/types/examples/themes/index.d.ts +6 -0
  527. package/types/examples/themes/index.d.ts.map +1 -0
  528. package/types/index.d.ts +0 -1
  529. package/types/index.d.ts.map +1 -1
  530. package/cjs/components/TextArea/TextArea.styles_es0miz.css +0 -11
  531. package/cjs/components/TextArea/variations/_clear/base_vidplj.css +0 -1
  532. package/cjs/components/TextArea/variations/_view/base_td55th.css +0 -1
  533. package/cjs/components/TextField/TextField.styles_1d2ryq.css +0 -15
  534. package/cjs/components/TextField/variations/_clear/base_rit6gc.css +0 -1
  535. package/cjs/components/TextField/variations/_label-placement/base_1ghihns.css +0 -1
  536. package/cjs/components/TextField/variations/_read-only/base_1n7tghz.css +0 -1
  537. package/cjs/components/TextField/variations/_size/base_1h8l0kj.css +0 -1
  538. package/cjs/components/TextField/variations/_view/base_1noe46b.css +0 -1
  539. package/cjs/components/TextFieldGroup/variations/_shape/base_1e0je21.css +0 -1
  540. package/cjs/components/ViewContainer/ViewContainer.js +0 -38
  541. package/cjs/components/ViewContainer/ViewContainer.js.map +0 -1
  542. package/cjs/components/ViewContainer/ViewContainer_yiqfcb.css +0 -1
  543. package/cjs/components/ViewContainer/_view/base.js.map +0 -1
  544. package/cjs/components/ViewContainer/_view/base_x642ct.css +0 -1
  545. package/emotion/cjs/components/ViewContainer/ViewContainer.js +0 -49
  546. package/emotion/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +0 -82
  547. package/emotion/cjs/components/ViewContainer/_view/base.js +0 -8
  548. package/emotion/cjs/components/ViewContainer/_view/tokens.json +0 -1
  549. package/emotion/cjs/components/ViewContainer/index.js +0 -18
  550. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +0 -16
  551. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +0 -11
  552. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  553. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +0 -16
  554. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +0 -11
  555. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  556. package/emotion/es/components/ViewContainer/ViewContainer.js +0 -40
  557. package/emotion/es/components/ViewContainer/ViewContainer.template-doc.mdx +0 -82
  558. package/emotion/es/components/ViewContainer/_view/base.js +0 -2
  559. package/emotion/es/components/ViewContainer/_view/tokens.json +0 -1
  560. package/emotion/es/components/ViewContainer/index.js +0 -1
  561. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +0 -10
  562. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +0 -5
  563. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  564. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +0 -10
  565. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +0 -5
  566. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  567. package/es/components/TextArea/TextArea.styles_es0miz.css +0 -11
  568. package/es/components/TextArea/variations/_clear/base_vidplj.css +0 -1
  569. package/es/components/TextArea/variations/_view/base_td55th.css +0 -1
  570. package/es/components/TextField/TextField.styles_1d2ryq.css +0 -15
  571. package/es/components/TextField/variations/_clear/base_rit6gc.css +0 -1
  572. package/es/components/TextField/variations/_label-placement/base_1ghihns.css +0 -1
  573. package/es/components/TextField/variations/_read-only/base_1n7tghz.css +0 -1
  574. package/es/components/TextField/variations/_size/base_1h8l0kj.css +0 -1
  575. package/es/components/TextField/variations/_view/base_1noe46b.css +0 -1
  576. package/es/components/TextFieldGroup/variations/_shape/base_1e0je21.css +0 -1
  577. package/es/components/ViewContainer/ViewContainer.js +0 -33
  578. package/es/components/ViewContainer/ViewContainer.js.map +0 -1
  579. package/es/components/ViewContainer/ViewContainer_yiqfcb.css +0 -1
  580. package/es/components/ViewContainer/_view/base.js.map +0 -1
  581. package/es/components/ViewContainer/_view/base_x642ct.css +0 -1
  582. package/styled-components/cjs/components/ViewContainer/ViewContainer.js +0 -40
  583. package/styled-components/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +0 -82
  584. package/styled-components/cjs/components/ViewContainer/_view/base.js +0 -8
  585. package/styled-components/cjs/components/ViewContainer/_view/tokens.json +0 -1
  586. package/styled-components/cjs/components/ViewContainer/index.js +0 -18
  587. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +0 -16
  588. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +0 -11
  589. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  590. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +0 -16
  591. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +0 -11
  592. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  593. package/styled-components/es/components/ViewContainer/ViewContainer.js +0 -31
  594. package/styled-components/es/components/ViewContainer/ViewContainer.template-doc.mdx +0 -82
  595. package/styled-components/es/components/ViewContainer/_view/base.js +0 -2
  596. package/styled-components/es/components/ViewContainer/_view/tokens.json +0 -1
  597. package/styled-components/es/components/ViewContainer/index.js +0 -1
  598. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +0 -10
  599. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +0 -5
  600. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  601. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +0 -10
  602. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +0 -5
  603. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +0 -65
  604. package/types/components/ViewContainer/ViewContainer.d.ts +0 -26
  605. package/types/components/ViewContainer/ViewContainer.d.ts.map +0 -1
  606. package/types/components/ViewContainer/_view/base.d.ts.map +0 -1
  607. package/types/components/ViewContainer/index.d.ts +0 -2
  608. package/types/components/ViewContainer/index.d.ts.map +0 -1
  609. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts +0 -9
  610. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts.map +0 -1
  611. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts +0 -8
  612. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts.map +0 -1
  613. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts +0 -9
  614. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts.map +0 -1
  615. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts +0 -8
  616. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts.map +0 -1
  617. /package/types/components/{ViewContainer/_view → TextArea/variations/_hint-size}/base.d.ts +0 -0
@@ -673,15 +673,4 @@ Object.keys(_Attach).forEach(function (key) {
673
673
  return _Attach[key];
674
674
  }
675
675
  });
676
- });
677
- var _ViewContainer = /*#__PURE__*/require("./components/ViewContainer");
678
- Object.keys(_ViewContainer).forEach(function (key) {
679
- if (key === "default" || key === "__esModule") return;
680
- if (key in exports && exports[key] === _ViewContainer[key]) return;
681
- Object.defineProperty(exports, key, {
682
- enumerable: true,
683
- get: function get() {
684
- return _ViewContainer[key];
685
- }
686
- });
687
676
  });
@@ -1,4 +1,4 @@
1
- var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch"];
1
+ var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -47,6 +47,7 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
47
47
  renderList = _ref.renderList,
48
48
  renderListEnd = _ref.renderListEnd,
49
49
  onSearch = _ref.onSearch,
50
+ hintText = _ref.hintText,
50
51
  rest = _objectWithoutProperties(_ref, _excluded);
51
52
  var _useReducer = useReducer(focusedReducer, null),
52
53
  _useReducer2 = _slicedToArray(_useReducer, 2),
@@ -144,7 +145,8 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
144
145
  "aria-controls": listId,
145
146
  "aria-expanded": isOpen,
146
147
  "aria-activedescendant": "".concat(listId, "/").concat(focused),
147
- "aria-describedby": helperTextId
148
+ "aria-describedby": helperTextId,
149
+ hintText: String(hintText || '')
148
150
  }, rest)),
149
151
  preventOverflow: false,
150
152
  ref: targetRef,
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- 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"];
2
+ var _excluded = ["helperText", "status", "resize", "rightHelper", "leftHelper", "contentRight", "autoResize", "minAuto", "maxAuto", "label", "labelPlacement", "titleCaption", "placeholder", "defaultValue", "height", "width", "value", "disabled", "required", "requiredPlacement", "optional", "clear", "hasDivider", "size", "view", "id", "style", "className", "readOnly", "rows", "cols", "hintTrigger", "hintText", "hintView", "hintSize", "hintTargetIcon", "hintPlacement", "hintHasArrow", "hintOffset", "hintWidth", "hintContentLeft", "onChange"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
5
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -18,18 +18,22 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
18
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21
- import React, { forwardRef, useState, createRef, useCallback } from 'react';
21
+ import React, { forwardRef, useState, createRef, useCallback, useRef } from 'react';
22
22
  import { css } from '@emotion/react';
23
- import { useResizeObserver } from '@salutejs/plasma-core';
23
+ import { useForkRef, useResizeObserver } from '@salutejs/plasma-core';
24
24
  import { cx, mergeRefs } from '../../utils';
25
+ import { useOutsideClick } from '../../hooks';
25
26
  import { applyDynamicLabel } from './mixins';
26
27
  import { useAutoResize, ROOT_FONT_SIZE } from './hooks';
27
- import { StyledContent, StyledHelpers, StyledLeftHelper, StyledRightHelper, StyledLabel, StyledPlaceholder, StyledTextArea, StyledTextAreaWrapper, StyledContainer, StyledIndicator, StyledOptionalText } from './TextArea.styles';
28
+ import { StyledContent, StyledHelpers, StyledLeftHelper, StyledRightHelper, StyledLabel, StyledPlaceholder, StyledTextArea, StyledTextAreaWrapper, StyledContainer, StyledIndicator, StyledOptionalText, OuterLabelWrapper, StyledIndicatorWrapper, StyledHintWrapper, TitleCaption } from './TextArea.styles';
28
29
  import { classes } from './TextArea.tokens';
29
30
  import { base as viewCSS } from './variations/_view/base';
30
31
  import { base as sizeCSS } from './variations/_size/base';
31
32
  import { base as clearCSS } from './variations/_clear/base';
32
33
  import { base as disabledCSS } from './variations/_disabled/base';
34
+ import { base as hintViewCSS } from './variations/_hint-view/base';
35
+ import { base as hintSizeCSS } from './variations/_hint-size/base';
36
+ import { HintComponent } from './ui/Hint/Hint';
33
37
  var innerPlaceholderUp = classes.innerPlaceholderUp,
34
38
  focusedOuterPlaceholderColor = classes.focusedOuterPlaceholderColor,
35
39
  hidePlaceHolder = classes.hidePlaceHolder,
@@ -39,7 +43,7 @@ var innerPlaceholderUp = classes.innerPlaceholderUp,
39
43
  styledPlaceholder = classes.styledPlaceholder,
40
44
  styledHelpers = classes.styledHelpers;
41
45
  var optionalText = 'optional';
42
- var base = /*#__PURE__*/css(applyDynamicLabel, ";position:relative;box-sizing:border-box;;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEFyZWEvVGV4dEFyZWEudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBDZ0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UZXh0QXJlYS9UZXh0QXJlYS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlU3RhdGUsIGNyZWF0ZVJlZiwgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VSZXNpemVPYnNlcnZlciB9IGZyb20gJ0BzYWx1dGVqcy9wbGFzbWEtY29yZSc7XG5cbmltcG9ydCB7IGN4LCBtZXJnZVJlZnMgfSBmcm9tICcuLi8uLi91dGlscyc7XG5pbXBvcnQgdHlwZSB7IFJvb3RQcm9wcyB9IGZyb20gJy4uLy4uL2VuZ2luZXMvdHlwZXMnO1xuXG5pbXBvcnQgeyBhcHBseUR5bmFtaWNMYWJlbCB9IGZyb20gJy4vbWl4aW5zJztcbmltcG9ydCB7IHVzZUF1dG9SZXNpemUsIFJPT1RfRk9OVF9TSVpFIH0gZnJvbSAnLi9ob29rcyc7XG5pbXBvcnQge1xuICAgIFN0eWxlZENvbnRlbnQsXG4gICAgU3R5bGVkSGVscGVycyxcbiAgICBTdHlsZWRMZWZ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YWNlbWVudCA9PT0gJ2lubmVyJyAmJiBzaXplID09PSAneHMnICYmIHZhbHVlKVxuICAgICAgICAgICAgPyBoaWRlUGxhY2VIb2xkZXJcbiAgICAgICAgICAgIDogdW5kZWZpbmVkO1xuXG4gICAgcmV0dXJuIFt3aXRoRm9jdXNlZE91dGVyVXBQbGFjZWhvbGRlciwgd2l0aElubmVyUGxhY2Vob2xkZXJVcCwgd2l0aEhpZGVQbGFjZWhvbGRlcl07XG59O1xuXG5leHBvcnQgY29uc3QgdGV4dEFyZWFSb290ID0gKFJvb3Q6IFJvb3RQcm9wczxIVE1MVGV4dEFyZWFFbGVtZW50LCBUZXh0QXJlYVByb3BzPikgPT5cbiAgICBmb3J3YXJkUmVmPEhUTUxUZXh0QXJlYUVsZW1lbnQsIFRleHRBcmVhUHJvcHM+KChwcm9wcywgaW5uZXJSZWYpID0+IHtcbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgaGVscGVyVGV4dCxcbiAgICAgICAgICAgIHN0YXR1cyxcbiAgICAgICAgICAgIHJlc2l6ZSxcbiAgICAgICAgICAgIHJpZ2h0SGVscGVyLFxuICAgICAgICAgICAgbGVmdEhlbHBlcixcbiAgICAgICAgICAgIGNvbnRlbnRSaWdodCxcbiAgICAgICAgICAgIGF1dG9SZXNpemUgPSBmYWxzZSxcbiAgICAgICAgICAgIG1pbkF1dG8gPSAwLFxuICAgICAgICAgICAgbWF4QXV0byxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgbGFiZWxQbGFjZW1lbnQgPSAnaW5uZXInLFxuICAgICAgICAgICAgcGxhY2Vob2xkZXIsXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICBoZWlnaHQsXG4gICAgICAgICAgICB3aWR0aCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICByZXF1aXJlZCA9IGZhbHNlLFxuICAgICAgICAgICAgcmVxdW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siwg0LrQvtCz0LTQsCB2YWx1ZSDRgdC90LDRgNGD0LbQuCDQvdC1INC60L7QvdGC0YDQvtC70LjRgNGD0LXRgtGB0Y9cbiAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICBzZXRVbmNvbnRyb2xsZWRWYWx1ZShldmVudD8udGFyZ2V0LnZhbHVlKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBvbkNoYW5nZT8uKGV2ZW50KTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbdmFsdWUsIG9uQ2hhbmdlXSxcbiAgICAgICAgKTtcblxuICAgICAgICBjb25zdCBoYW5kbGVUZXh0QXJlYUZvY3VzID0gKCkgPT4ge1xuICAgICAgICAgICAgaWYgKHJlYWRPbmx5IHx8IGRpc2FibGVkIHx8ICFvdXRlclJlZj8uY3VycmVudCkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgb3V0ZXJSZWYuY3VycmVudC5zY3JvbGxUbyh7XG4gICAgICAgICAgICAgICAgdG9wOiAwLFxuICAgICAgICAgICAgICAgIGxlZnQ6IG91dGVyUmVmLmN1cnJlbnQub2Zmc2V0TGVmdCxcbiAgICAgICAgICAgICAgICBiZWhhdmlvcjogJ3Ntb290aCcsXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgb3V0ZXJSZWYuY3VycmVudC5mb2N1cygpO1xuICAgICAgICB9O1xuXG4gICAgICAgIGNvbnN0IGR5bmFtaWNMYWJlbENsYXNzZXMgPSBnZXREeW5hbWljTGFiZWxDbGFzc2VzKFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHNpemUsXG4gICAgICAgICAgICAgICAgcmVhZE9ubHksXG4gICAgICAgICAgICAgICAgbGFiZWwsXG4gICAgICAgICAgICAgICAgbGFiZWxQbGFjZW1lbnQsXG4gICAgICAgICAgICAgICAgdmFsdWU6IHZhbHVlIHx8IHVuY29udHJvbGxlZFZhbHVlIHx8IGRlZmF1bHRWYWx1ZSxcbiAgICAgICAgICAgICAgICByb3dzLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZvY3VzZWQsXG4gICAgICAgICk7XG5cbiAgICAgICAgY29uc3Qgb3B0aW9uYWxUZXh0Tm9kZSA9IGlubmVyT3B0aW9uYWwgPyAoXG4gICAgICAgICAgICA8U3R5bGVkT3B0aW9uYWxUZXh0PlxuICAgICAgICAgICAgICAgIHtCb29sZWFuKGhhc1BsYWNlaG9sZGVyT3B0aW9uYWwgPyBwbGFjZWhvbGRlckxhYmVsIDogbGFiZWwpICYmICdcXHhhMCd9XG4gICAgICAgICAgICAgICAge29wdGlvbmFsVGV4dH1cbiAgICAgICAgICAgIDwvU3R5bGVkT3B0aW9uYWxUZXh0PlxuICAgICAgICApIDogbnVsbDtcblxuICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPFJvb3RcbiAgICAgICAgICAgICAgICB2aWV3PXtvdmVycmlkZGVuVmlld31cbiAgICAgICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICAgICAgY2xlYXI9e2NsZWFyfVxuICAgICAgICAgICAgICAgIHN0eWxlPXt7IHdpZHRoOiBoZWxwZXJXaWR0aCwgLi4uc3R5bGUgfX1cbiAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KGNsZWFyQ2xhc3MsIGhhc0RpdmlkZXJDbGFzcywgY2xhc3NOYW1lKX1cbiAgICAgICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVUZXh0QXJlYUZvY3VzfVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtoYXNPdXRlckxhYmVsICYmIChcbiAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExhYmVsPlxuICAgICAgICAgICAgICAgICAgICAgICAge3JlcXVpcmVkICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSW5kaWNhdG9yIGNsYXNzTmFtZT17Y3goY2xhc3Nlcy5vdXRlckxhYmVsUGxhY2VtZW50LCByZXF1aXJlZFBsYWNlbWVudENsYXNzKX0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICB7bGFiZWx9XG4gICAgICAgICAgICAgICAgICAgICAgICB7b3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRMYWJlbD5cbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIDxTdHlsZWRDb250YWluZXJcbiAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjeChzdHlsZWRDb250YWluZXIsIC4uLmR5bmFtaWNMYWJlbENsYXNzZXMpfVxuICAgICAgICAgICAgICAgICAgICB3aWR0aD17aGVscGVyV2lkdGh9XG4gICAgICAgICAgICAgICAgICAgIG9uRm9jdXM9e29uRm9jdXNIYW5kbGVyfVxuICAgICAgICAgICAgICAgICAgICBvbkJsdXI9e29uQmx1ckhhbmRsZXJ9XG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgIWhhc091dGVyTGFiZWwgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEluZGljYXRvciBjbGFzc05hbWU9e2N4KGNsYXNzZXMuaW5uZXJMYWJlbFBsYWNlbWVudCwgcmVxdWlyZWRQbGFjZW1lbnRDbGFzcyl9IC8+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgIHtjb250ZW50UmlnaHQgJiYgPFN0eWxlZENvbnRlbnQ+e2NvbnRlbnRSaWdodH08L1N0eWxlZENvbnRlbnQ+fVxuICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFXcmFwcGVyIGNsYXNzTmFtZT17c3R5bGVkVGV4dEFyZWFXcmFwcGVyfSBoYXNIZWxwZXI9e2hhc0hlbHBlcn0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHN0eWxlZFRleHRBcmVhLCBoYXNSaWdodENvbnRlbnRDbGFzcyl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9e2lkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0NvbnRlbnRSaWdodD17Qm9vbGVhbihjb250ZW50UmlnaHQpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0hlbHBlcj17aGFzSGVscGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFwcGx5Q3VzdG9tV2lkdGg9e2FwcGx5Q3VzdG9tV2lkdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXttZXJnZVJlZnMob3V0ZXJSZWYsIGlubmVyUmVmKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0PXthdXRvUmVzaXplIHx8IEJvb2xlYW4oY2xlYXIpID8gbWluQXV0byA6IGhlaWdodH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aD17d2lkdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyTGFiZWx9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXJpYS1kZXNjcmliZWRieT17dGV4dGFyZWFIZWxwZXJJZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvd3M9e3Jvd3N9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29scz17Y29sc31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNpemU9e3Jlc2l6ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0VmFsdWU9e2RlZmF1bHRWYWx1ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZT17b25DaGFuZ2VIYW5kbGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRUZXh0QXJlYVdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgIHtoYXNIZWxwZXIgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhlbHBlcnMgY2xhc3NOYW1lPXtzdHlsZWRIZWxwZXJzfSBpZD17dGV4dGFyZWFIZWxwZXJJZH0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeyhsZWZ0SGVscGVyIHx8IGhlbHBlclRleHQpICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExlZnRIZWxwZXI+e2xlZnRIZWxwZXIgfHwgaGVscGVyVGV4dH08L1N0eWxlZExlZnRIZWxwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmlnaHRIZWxwZXIgJiYgPFN0eWxlZFJpZ2h0SGVscGVyPntyaWdodEhlbHBlcn08L1N0eWxlZFJpZ2h0SGVscGVyPn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkSGVscGVycz5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAge3BsYWNlaG9sZGVyTGFiZWwgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZFBsYWNlaG9sZGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzQ29udGVudFJpZ2h0PXtCb29sZWFuKGNvbnRlbnRSaWdodCl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtzdHlsZWRQbGFjZWhvbGRlcn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBodG1sRm9yPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cGxhY2Vob2xkZXJMYWJlbH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IWhhc091dGVyTGFiZWwgJiYgb3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkUGxhY2Vob2xkZXI+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgPC9TdHlsZWRDb250YWluZXI+XG4gICAgICAgICAgICA8L1Jvb3Q+XG4gICAgICAgICk7XG4gICAgfSk7XG5cbmV4cG9ydCBjb25zdCB0ZXh0QXJlYUNvbmZpZyA9IHtcbiAgICBuYW1lOiAnVGV4dEFyZWEnLFxuICAgIHRhZzogJ2RpdicsXG4gICAgbGF5b3V0OiB0ZXh0QXJlYVJvb3QsXG4gICAgYmFzZSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIGNzczogc2l6ZUNTUyxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgY3NzOiB2aWV3Q1NTLFxuICAgICAgICB9LFxuICAgICAgICBjbGVhcjoge1xuICAgICAgICAgICAgY3NzOiBjbGVhckNTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgY3NzOiBkaXNhYmxlZENTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICByZWFkT25seToge1xuICAgICAgICAgICAgYXR0cnM6IHRydWUsXG4gICAgICAgIH0sXG4gICAgfSxcbiAgICBkZWZhdWx0czoge1xuICAgICAgICBzaXplOiAnbScsXG4gICAgICAgIHZpZXc6ICdwcmltYXJ5JyxcbiAgICB9LFxufTtcbiJdfQ== */"));
46
+ var base = /*#__PURE__*/css(applyDynamicLabel, ";position:relative;box-sizing:border-box;;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEFyZWEvVGV4dEFyZWEudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtEZ0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UZXh0QXJlYS9UZXh0QXJlYS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlU3RhdGUsIGNyZWF0ZVJlZiwgdXNlQ2FsbGJhY2ssIHVzZVJlZiwgTW91c2VFdmVudEhhbmRsZXIgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VGb3JrUmVmLCB1c2VSZXNpemVPYnNlcnZlciB9IGZyb20gJ0BzYWx1dGVqcy9wbGFzbWEtY29yZSc7XG5cbmltcG9ydCB7IGN4LCBtZXJnZVJlZnMgfSBmcm9tICcuLi8uLi91dGlscyc7XG5pbXBvcnQgdHlwZSB7IFJvb3RQcm9wcyB9IGZyb20gJy4uLy4uL2VuZ2luZXMvdHlwZXMnO1xuaW1wb3J0I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SAoUm9vdDogUm9vdFByb3BzPEhUTUxUZXh0QXJlYUVsZW1lbnQsIFRleHRBcmVhUm9vdFByb3BzPikgPT5cbiAgICBmb3J3YXJkUmVmPEhUTUxUZXh0QXJlYUVsZW1lbnQsIFRleHRBcmVhUHJvcHM+KChwcm9wcywgaW5uZXJSZWYpID0+IHtcbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgaGVscGVyVGV4dCxcbiAgICAgICAgICAgIHN0YXR1cyxcbiAgICAgICAgICAgIHJlc2l6ZSxcbiAgICAgICAgICAgIHJpZ2h0SGVscGVyLFxuICAgICAgICAgICAgbGVmdEhlbHBlcixcbiAgICAgICAgICAgIGNvbnRlbnRSaWdodCxcbiAgICAgICAgICAgIGF1dG9SZXNpemUgPSBmYWxzZSxcbiAgICAgICAgICAgIG1pbkF1dG8gPSAwLFxuICAgICAgICAgICAgbWF4QXV0byxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgbGFiZWxQbGFjZW1lbnQgPSAnaW5uZXInLFxuICAgICAgICAgICAgdGl0bGVDYXB0aW9uLFxuICAgICAgICAgICAgcGxhY2Vob2xkZXIsXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICBoZWlnaHQsXG4gICAgICAgICAgICB3aWR0aCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICByZXF1aXJlZCA9IGZhbHNlLFxuICAgICAgICAgICAgcmVxdWlyZWRQbGFjZW1lbnQgPSAncmlnaHQnLFxuICAgICAgICAgICAgb3B0aW9uYWwgPSBmYWxzZSxcbiAgICAgICAgICAgIGNsZWFyLFxuICAgICAgICAgICAgaGFzRGl2aWRlcixcbiAgICAgICAgICAgIHNpemUsXG4gICAgICAgICAgICB2aWV3LFxuICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICBzdHlsZSxcbiAgICAgICAgICAgIGNsYXNzTmFtZSxcbiAgICAgICAgICAgIHJlYWRPbmx5LFxuICAgICAgICAgICAgcm93cyxcbiAgICAgICAgICAgIGNvbHMsXG4gICAgICAgICAgICBoaW50VHJpZ2dlciA9ICdob3ZlcicsXG4gICAgICAgICAgICBoaW50VGV4dCxcbiAgICAgICAgICAgIGhpbnRWaWV3ID0gJ2RlZmF1bHQnLFxuICAgICAgICAgICAgaGludFNpemUgPSAnbScsXG4gICAgICAgICAgICBoaW50VGFyZ2V0SWNvbixcbiAgICAgICAgICAgIGhpbnRQbGFjZW1lbnQgPSAnYXV0bycsXG4gICAgICAgICAgICBoaW50SGFzQXJyb3csXG4gICAgICAgICAgICBoaW50T2Zmc2V0ID0gSElOVF9ERUZBVUxUX09GRlNFVCxcbiAgICAgICAgICAgIGhpbnRXaWR0aCxcbiAgICAgICAgICAgIGhpbnRDb250ZW50TGVmdCxcbiAgICAgICAgICAgIG9uQ2hhbmdlLFxuICAgICAgICAgICAgLi4ucmVzdFxuICAgICAgICB9ID0gcHJvcHM7XG5cbiAgICAgICAgY29uc3QgW2lzSGludFZpc2libGUsIHNldElzSGludFZpc2libGVdID0gdXNlU3RhdGUoZmFsc2UpO1xuICAgICAgICBjb25zdCBbaGVscGVyV2lkdGgsIHNldEhlbHBlcldpZHRoXSA9IHVzZVN0YXRlPHN0cmluZz4od2lkdGggPyBgJHt3aWR0aH1yZW1gIDogJzEwMCUnKTtcbiAgICAgICAgY29uc3QgW2ZvY3VzZWQsIHNldEZvY3VzZWRdID0gdXNlU3RhdGUoZmFsc2UpO1xuICAgICAgICBjb25zdCBbdW5jb250cm9sbGVkVmFsdWUsIHNldFVuY29udHJvbGxlZFZhbHVlXSA9IHVzZVN0YXRlPHN0cmluZyB8IHVuZGVmaW5lZD4oKTtcblxuICAgICAgICBjb25zdCBvdXRlclJlZiA9IGNyZWF0ZVJlZjxIVE1MVGV4dEFyZWFFbGVtZW50PigpO1xuXG4gICAgICAgIGNvbnN0IGhpbnRSZWYgPSB1c2VPdXRzaWRlQ2xpY2s8SFRNT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GV2ZW50LnRhcmdldCA9PT0gaGludElubmVyUmVmLmN1cnJlbnQ7XG4gICAgICAgICAgICBjb25zdCByb290SGFzVGFyZ2V0ID0gaGludElubmVyUmVmLmN1cnJlbnQ/LmNvbnRhaW5zKGV2ZW50LnRhcmdldCBhcyBFbGVtZW50KTtcblxuICAgICAgICAgICAgaWYgKCF0YXJnZXRJc1BvcG92ZXIgJiYgIXJvb3RIYXNUYXJnZXQpIHtcbiAgICAgICAgICAgICAgICBzZXRJc0hpbnRWaXNpYmxlKHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuXG4gICAgICAgIHVzZVJlc2l6ZU9ic2VydmVyKG91dGVyUmVmLCAoY3VycmVudEVsZW1lbnQpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IHsgd2lkdGg6IGlubGluZVdpZHRoIH0gPSBjdXJyZW50RWxlbWVudC5zdHlsZTtcblxuICAgICAgICAgICAgaWYgKGlubGluZVdpZHRoIHx8IGNvbHMpIHtcbiAgICAgICAgICAgICAgICBjb25zdCB7IHdpZHRoOiBlbGVtZW50V2lkdGggfSA9IGN1cnJlbnRFbGVtZW50LmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpO1xuICAgICAgICAgICAgICAgIHNldEhlbHBlcldpZHRoKGAke2VsZW1lbnRXaWR0aCAvIFJPT1RfRk9OVF9TSVpFfXJlbWApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICB1c2VBdXRvUmVzaXplKGF1dG9SZXNpemUgfHwgQm9vbGVhbihjbGVhciksIG91dGVyUmVmLCB2YWx1ZSwgbWluQXV0bywgbWF4QXV0byk7XG5cbiAgICAgICAgY29uc3Qgb25Gb2N1c0hhbmRsZXIgPSB1c2VDYWxsYmFjaygoKSA9PiB7XG4gICAgICAgICAgICBzZXRGb2N1c2VkKHRydWUpO1xuICAgICAgICB9LCBbXSk7XG5cbiAgICAgICAgY29uc3Qgb25CbHVySGFuZGxlciA9IHVzZUNhbGxiYWNrKCgpID0+IHtcbiAgICAgICAgICAgIHNldEZvY3VzZWQoZmFsc2UpO1xuICAgICAgICB9LCBbXSk7XG5cbiAgICAgICAgY29uc3Qgb25DaGFuZ2VIYW5kbGVyID0gdXNlQ2FsbGJhY2soXG4gICAgICAgICAgICAoZXZlbnQ6IFJlYWN0LkNoYW5nZUV2ZW50PEhUTUxUZXh0QXJlYUVsZW1lbnQ+KSA9PiB7XG4gICAgICAgICAgICAgICAgLy8gSU5GTzog0JTQu9GPINC60YDQsNC50L3QtSDRgNC10LTQutC40YUg0LrQtdC50YHQvtCyLCDQutC+0LPQtNCwIHZhbHVlINGB0L3QsNGA0YPQttC4INC90LUg0LrQvtC90YLRgNC+0LvQuNGA0YPQtdGC0YHRj1xuICAgICAgICAgICAgICAgIGlmICh2YWx1ZSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldFVuY29udHJvbGxlZFZhbHVlKGV2ZW50Py50YXJnZXQudmFsdWUpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIG9uQ2hhbmdlPy4oZXZlbnQpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFt2YWx1ZSwgb25DaGFuZ2VdLFxuICAgICAgICApO1xuXG4gICAgICAgIGNvbnN0IGhhbmRsZVRleHRBcmVhRm9jdXMgPSAoKSA9PiB7XG4gICAgICAgICAgICBpZiAocmVhZE9ubHkgfHwgZGlzYWJsZWQgfHwgIW91dGVyUmVmPy5jdXJyZW50KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBvdXRlclJlZi5jdXJyZW50LnNjcm9sbFRvKHtcbiAgICAgICAgICAgICAgICB0b3A6IDAsXG4gICAgICAgICAgICAgICAgbGVmdDogb3V0ZXJSZWYuY3VycmVudC5vZmZzZXRMZWZ0LFxuICAgICAgICAgICAgICAgIGJlaGF2aW9yOiAnc21vb3RoJyxcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICBvdXRlclJlZi5jdXJyZW50LmZvY3VzKCk7XG4gICAgICAgIH07XG5cbiAgICAgICAgY29uc3QgZHluYW1pY0xhYmVsQ2xhc3NlcyA9IGdldER5bmFtaWNMYWJlbENsYXNzZXMoXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgc2l6ZSxcbiAgICAgICAgICAgICAgICByZWFkT25seSxcbiAgICAgICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgICAgICBsYWJlbFBsYWNlbWVudCxcbiAgICAgICAgICAgICAgICB2YWx1ZTogdmFsdWUgfHwgdW5jb250cm9sbGVkVmFsdWUgfHwgZGVmYXVsdFZhbHVlLFxuICAgICAgICAgICAgICAgIHJvd3MsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZm9jdXNlZCxcbiAgICAgICAgKTtcblxuICAgICAgICBjb25zdCBvcHRpb25hbFRleHROb2RlID0gaW5uZXJPcHRpb25hbCA/IChcbiAgICAgICAgICAgIDxTdHlsZWRPcHRpb25hbFRleHQgaW5oZXJpdEZvbnQ9eyFoYXNPdXRlckxhYmVsfT5cbiAgICAgICAgICAgICAgICB7Qm9vbGVhbihoYXNQbGFjZWhvbGRlck9wdGlvbmFsID8gcGxhY2Vob2xkZXJMYWJlbCA6IGxhYmVsKSAmJiAnXFx4YTAnfVxuICAgICAgICAgICAgICAgIHtvcHRpb25hbFRleHR9XG4gICAgICAgICAgICA8L1N0eWxlZE9wdGlvbmFsVGV4dD5cbiAgICAgICAgKSA6IG51bGw7XG5cbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgIDxSb290XG4gICAgICAgICAgICAgICAgdmlldz17b3ZlcnJpZGRlblZpZXd9XG4gICAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICAgIGNsZWFyPXtjbGVhcn1cbiAgICAgICAgICAgICAgICBzdHlsZT17eyB3aWR0aDogaGVscGVyV2lkdGgsIC4uLnN0eWxlIH19XG4gICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjeChjbGVhckNsYXNzLCBoYXNEaXZpZGVyQ2xhc3MsIGhhc0hpbnRDbGFzcywgY2xhc3NOYW1lKX1cbiAgICAgICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVUZXh0QXJlYUZvY3VzfVxuICAgICAgICAgICAgICAgIHsuLi4oaGludFRleHQgJiYge1xuICAgICAgICAgICAgICAgICAgICBoaW50VmlldzogaGludFZpZXcgfHwgJ2RlZmF1bHQnLFxuICAgICAgICAgICAgICAgICAgICBoaW50U2l6ZTogaGludFNpemUgfHwgJ20nLFxuICAgICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHsoaGFzT3V0ZXJMYWJlbCB8fCB0aXRsZUNhcHRpb24pICYmIChcbiAgICAgICAgICAgICAgICAgICAgPE91dGVyTGFiZWxXcmFwcGVyIGlzSW5ubmVyTGFiZWw9e2xhYmVsUGxhY2VtZW50ID09PSAnaW5uZXInfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIHtoYXNPdXRlckxhYmVsICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSW5kaWNhdG9yV3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExhYmVsPntsYWJlbH08L1N0eWxlZExhYmVsPlxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtoaW50VGV4dCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSGludFdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPEhpbnRDb21wb25lbnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtoaW50Rm9ya1JlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRleHQ9e2hpbnRUZXh0fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50VHJpZ2dlcj17aGludFRyaWdnZXJ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzSGludFZpc2libGU9e2lzSGludFZpc2libGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRUYXJnZXRJY29uPXtoaW50VGFyZ2V0SWNvbn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFBsYWNlbWVudD17aGludFBsYWNlbWVudH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludEhhc0Fycm93PXtoaW50SGFzQXJyb3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRPZmZzZXQ9e2hpbnRPZmZzZXR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRXaWR0aD17aGludFdpZHRofVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50Q29udGVudExlZnQ9e2hpbnRDb250ZW50TGVmdH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFuZGxlSGludFNob3c9e2hhbmRsZUhpbnRTaG93fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYW5kbGVIaW50SGlkZT17aGFuZGxlSGludEhpZGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZUhpbnRDbGljaz17aGFuZGxlSGludENsaWNrfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZEhpbnRXcmFwcGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEluZGljYXRvclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y3goXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzZXMub3V0ZXJMYWJlbFBsYWNlbWVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVxdWlyZWRQbGFjZW1lbnRDbGFzcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzSGludENsYXNzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7b3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZEluZGljYXRvcldyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAge3RpdGxlQ2FwdGlvbiAmJiA8VGl0bGVDYXB0aW9uPnt0aXRsZUNhcHRpb259PC9UaXRsZUNhcHRpb24+fVxuICAgICAgICAgICAgICAgICAgICA8L091dGVyTGFiZWxXcmFwcGVyPlxuICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgPFN0eWxlZENvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHN0eWxlZENvbnRhaW5lciwgLi4uZHluYW1pY0xhYmVsQ2xhc3Nlcyl9XG4gICAgICAgICAgICAgICAgICAgIHdpZHRoPXtoZWxwZXJXaWR0aH1cbiAgICAgICAgICAgICAgICAgICAgb25Gb2N1cz17b25Gb2N1c0hhbmRsZXJ9XG4gICAgICAgICAgICAgICAgICAgIG9uQmx1cj17b25CbHVySGFuZGxlcn1cbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHshaGFzT3V0ZXJMYWJlbCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtyZXF1aXJlZCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRJbmRpY2F0b3IgY2xhc3NOYW1lPXtjeChjbGFzc2VzLmlubmVyTGFiZWxQbGFjZW1lbnQsIHJlcXVpcmVkUGxhY2VtZW50Q2xhc3MpfSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge2hpbnRUZXh0ICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhpbnRXcmFwcGVyIGNsYXNzTmFtZT17Y2xhc3Nlcy5pbm5lckxhYmVsUGxhY2VtZW50fT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxIaW50Q29tcG9uZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtoaW50Rm9ya1JlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50VGV4dD17aGludFRleHR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRyaWdnZXI9e2hpbnRUcmlnZ2VyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzSGludFZpc2libGU9e2lzSGludFZpc2libGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludFRhcmdldEljb249e2hpbnRUYXJnZXRJY29ufVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpbnRQbGFjZW1lbnQ9e2hpbnRQbGFjZW1lbnR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludEhhc0Fycm93PXtoaW50SGFzQXJyb3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGludE9mZnNldD17aGludE9mZnNldH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50V2lkdGg9e2hpbnRXaWR0aH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoaW50Q29udGVudExlZnQ9e2hpbnRDb250ZW50TGVmdH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYW5kbGVIaW50U2hvdz17aGFuZGxlSGludFNob3d9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFuZGxlSGludEhpZGU9e2hhbmRsZUhpbnRIaWRlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZUhpbnRDbGljaz17aGFuZGxlSGludENsaWNrfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRIaW50V3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgPC8+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgIHtjb250ZW50UmlnaHQgJiYgPFN0eWxlZENvbnRlbnQ+e2NvbnRlbnRSaWdodH08L1N0eWxlZENvbnRlbnQ+fVxuICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFXcmFwcGVyIGNsYXNzTmFtZT17c3R5bGVkVGV4dEFyZWFXcmFwcGVyfSBoYXNIZWxwZXI9e2hhc0hlbHBlcn0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHN0eWxlZFRleHRBcmVhLCBoYXNSaWdodENvbnRlbnRDbGFzcyl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9e2lkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0NvbnRlbnRSaWdodD17Qm9vbGVhbihjb250ZW50UmlnaHQpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0hlbHBlcj17aGFzSGVscGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFwcGx5Q3VzdG9tV2lkdGg9e2FwcGx5Q3VzdG9tV2lkdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXttZXJnZVJlZnMob3V0ZXJSZWYsIGlubmVyUmVmKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0PXthdXRvUmVzaXplIHx8IEJvb2xlYW4oY2xlYXIpID8gbWluQXV0byA6IGhlaWdodH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aD17d2lkdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyTGFiZWx9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXJpYS1kZXNjcmliZWRieT17dGV4dGFyZWFIZWxwZXJJZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvd3M9e3Jvd3N9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29scz17Y29sc31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNpemU9e3Jlc2l6ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0VmFsdWU9e2RlZmF1bHRWYWx1ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZT17b25DaGFuZ2VIYW5kbGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRUZXh0QXJlYVdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgIHtoYXNIZWxwZXIgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhlbHBlcnMgY2xhc3NOYW1lPXtzdHlsZWRIZWxwZXJzfSBpZD17dGV4dGFyZWFIZWxwZXJJZH0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeyhsZWZ0SGVscGVyIHx8IGhlbHBlclRleHQpICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExlZnRIZWxwZXI+e2xlZnRIZWxwZXIgfHwgaGVscGVyVGV4dH08L1N0eWxlZExlZnRIZWxwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmlnaHRIZWxwZXIgJiYgPFN0eWxlZFJpZ2h0SGVscGVyPntyaWdodEhlbHBlcn08L1N0eWxlZFJpZ2h0SGVscGVyPn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkSGVscGVycz5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAge3BsYWNlaG9sZGVyTGFiZWwgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZFBsYWNlaG9sZGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzQ29udGVudFJpZ2h0PXtCb29sZWFuKGNvbnRlbnRSaWdodCl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtzdHlsZWRQbGFjZWhvbGRlcn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBodG1sRm9yPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cGxhY2Vob2xkZXJMYWJlbH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IWhhc091dGVyTGFiZWwgJiYgb3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkUGxhY2Vob2xkZXI+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgPC9TdHlsZWRDb250YWluZXI+XG4gICAgICAgICAgICA8L1Jvb3Q+XG4gICAgICAgICk7XG4gICAgfSk7XG5cbmV4cG9ydCBjb25zdCB0ZXh0QXJlYUNvbmZpZyA9IHtcbiAgICBuYW1lOiAnVGV4dEFyZWEnLFxuICAgIHRhZzogJ2RpdicsXG4gICAgbGF5b3V0OiB0ZXh0QXJlYVJvb3QsXG4gICAgYmFzZSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIGNzczogc2l6ZUNTUyxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgY3NzOiB2aWV3Q1NTLFxuICAgICAgICB9LFxuICAgICAgICBjbGVhcjoge1xuICAgICAgICAgICAgY3NzOiBjbGVhckNTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgY3NzOiBkaXNhYmxlZENTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICByZWFkT25seToge1xuICAgICAgICAgICAgYXR0cnM6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIGhpbnRWaWV3OiB7XG4gICAgICAgICAgICBjc3M6IGhpbnRWaWV3Q1NTLFxuICAgICAgICB9LFxuICAgICAgICBoaW50U2l6ZToge1xuICAgICAgICAgICAgY3NzOiBoaW50U2l6ZUNTUyxcbiAgICAgICAgfSxcbiAgICB9LFxuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHNpemU6ICdtJyxcbiAgICAgICAgdmlldzogJ3ByaW1hcnknLFxuICAgIH0sXG59O1xuIl19 */"));
43
47
 
44
48
  // TODO: Удалить после отказа от старых библиотек plasma-web / plasma-b2c
45
49
  var fallbackStatusMap = {
@@ -48,6 +52,7 @@ var fallbackStatusMap = {
48
52
  warning: 'warning',
49
53
  error: 'negative'
50
54
  };
55
+ var HINT_DEFAULT_OFFSET = [0, 0];
51
56
 
52
57
  // TODO: Перенести этот метод в файл applyDynamicLabel.ts
53
58
  export var getDynamicLabelClasses = function getDynamicLabelClasses(props, focused) {
@@ -84,6 +89,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
84
89
  label = props.label,
85
90
  _props$labelPlacement = props.labelPlacement,
86
91
  labelPlacement = _props$labelPlacement === void 0 ? 'inner' : _props$labelPlacement,
92
+ titleCaption = props.titleCaption,
87
93
  placeholder = props.placeholder,
88
94
  defaultValue = props.defaultValue,
89
95
  height = props.height,
@@ -106,21 +112,45 @@ export var textAreaRoot = function textAreaRoot(Root) {
106
112
  readOnly = props.readOnly,
107
113
  rows = props.rows,
108
114
  cols = props.cols,
115
+ _props$hintTrigger = props.hintTrigger,
116
+ hintTrigger = _props$hintTrigger === void 0 ? 'hover' : _props$hintTrigger,
117
+ hintText = props.hintText,
118
+ _props$hintView = props.hintView,
119
+ hintView = _props$hintView === void 0 ? 'default' : _props$hintView,
120
+ _props$hintSize = props.hintSize,
121
+ hintSize = _props$hintSize === void 0 ? 'm' : _props$hintSize,
122
+ hintTargetIcon = props.hintTargetIcon,
123
+ _props$hintPlacement = props.hintPlacement,
124
+ hintPlacement = _props$hintPlacement === void 0 ? 'auto' : _props$hintPlacement,
125
+ hintHasArrow = props.hintHasArrow,
126
+ _props$hintOffset = props.hintOffset,
127
+ hintOffset = _props$hintOffset === void 0 ? HINT_DEFAULT_OFFSET : _props$hintOffset,
128
+ hintWidth = props.hintWidth,
129
+ hintContentLeft = props.hintContentLeft,
109
130
  onChange = props.onChange,
110
131
  rest = _objectWithoutProperties(props, _excluded);
111
- var _useState = useState(width ? "".concat(width, "rem") : '100%'),
132
+ var _useState = useState(false),
112
133
  _useState2 = _slicedToArray(_useState, 2),
113
- helperWidth = _useState2[0],
114
- setHelperWidth = _useState2[1];
115
- var _useState3 = useState(false),
134
+ isHintVisible = _useState2[0],
135
+ setIsHintVisible = _useState2[1];
136
+ var _useState3 = useState(width ? "".concat(width, "rem") : '100%'),
116
137
  _useState4 = _slicedToArray(_useState3, 2),
117
- focused = _useState4[0],
118
- setFocused = _useState4[1];
119
- var _useState5 = useState(),
138
+ helperWidth = _useState4[0],
139
+ setHelperWidth = _useState4[1];
140
+ var _useState5 = useState(false),
120
141
  _useState6 = _slicedToArray(_useState5, 2),
121
- uncontrolledValue = _useState6[0],
122
- setUncontrolledValue = _useState6[1];
142
+ focused = _useState6[0],
143
+ setFocused = _useState6[1];
144
+ var _useState7 = useState(),
145
+ _useState8 = _slicedToArray(_useState7, 2),
146
+ uncontrolledValue = _useState8[0],
147
+ setUncontrolledValue = _useState8[1];
123
148
  var outerRef = /*#__PURE__*/createRef();
149
+ var hintRef = useOutsideClick(function () {
150
+ setIsHintVisible(false);
151
+ });
152
+ var hintInnerRef = useRef(null);
153
+ var hintForkRef = useForkRef(hintRef, hintInnerRef);
124
154
  var innerOptional = required ? false : optional;
125
155
  var hasHelper = Boolean(leftHelper || rightHelper || helperText);
126
156
  var hasOuterLabel = Boolean(label && labelPlacement === 'outer');
@@ -131,9 +161,28 @@ export var textAreaRoot = function textAreaRoot(Root) {
131
161
  var applyCustomWidth = resize !== 'horizontal' && resize !== 'both' && !cols;
132
162
  var placeholderLabel = hasInnerLabel ? label : placeholder;
133
163
  var clearClass = clear ? classes.clear : undefined;
164
+ var hasHintClass = hintText ? classes.hasHint : undefined;
134
165
  var hasRightContentClass = contentRight ? classes.hasRightContent : undefined;
135
166
  var hasDividerClass = hasDivider ? classes.hasDivider : undefined;
136
- var requiredPlacementClass = requiredPlacement === 'right' ? 'align-right ' : undefined;
167
+ var requiredPlacementClass = requiredPlacement === 'right' ? classes.requiredAlignRight : undefined;
168
+ var handleHintShow = function handleHintShow() {
169
+ return setIsHintVisible(true);
170
+ };
171
+ var handleHintHide = function handleHintHide() {
172
+ return setIsHintVisible(false);
173
+ };
174
+ var handleHintClick = function handleHintClick(event) {
175
+ var _hintInnerRef$current;
176
+ if (!hintText || hintTrigger !== 'click') {
177
+ return;
178
+ }
179
+ event.stopPropagation();
180
+ var targetIsPopover = event.target === hintInnerRef.current;
181
+ var rootHasTarget = (_hintInnerRef$current = hintInnerRef.current) === null || _hintInnerRef$current === void 0 ? void 0 : _hintInnerRef$current.contains(event.target);
182
+ if (!targetIsPopover && !rootHasTarget) {
183
+ setIsHintVisible(true);
184
+ }
185
+ };
137
186
  useResizeObserver(outerRef, function (currentElement) {
138
187
  var inlineWidth = currentElement.style.width;
139
188
  if (inlineWidth || cols) {
@@ -175,8 +224,10 @@ export var textAreaRoot = function textAreaRoot(Root) {
175
224
  value: value || uncontrolledValue || defaultValue,
176
225
  rows: rows
177
226
  }, focused);
178
- var optionalTextNode = innerOptional ? /*#__PURE__*/React.createElement(StyledOptionalText, null, Boolean(hasPlaceholderOptional ? placeholderLabel : label) && '\xa0', optionalText) : null;
179
- return /*#__PURE__*/React.createElement(Root, {
227
+ var optionalTextNode = innerOptional ? /*#__PURE__*/React.createElement(StyledOptionalText, {
228
+ inheritFont: !hasOuterLabel
229
+ }, Boolean(hasPlaceholderOptional ? placeholderLabel : label) && '\xa0', optionalText) : null;
230
+ return /*#__PURE__*/React.createElement(Root, _extends({
180
231
  view: overriddenView,
181
232
  size: size,
182
233
  disabled: disabled,
@@ -185,18 +236,53 @@ export var textAreaRoot = function textAreaRoot(Root) {
185
236
  style: _objectSpread({
186
237
  width: helperWidth
187
238
  }, style),
188
- className: cx(clearClass, hasDividerClass, className),
239
+ className: cx(clearClass, hasDividerClass, hasHintClass, className),
189
240
  onClick: handleTextAreaFocus
190
- }, hasOuterLabel && /*#__PURE__*/React.createElement(StyledLabel, null, required && /*#__PURE__*/React.createElement(StyledIndicator, {
191
- className: cx(classes.outerLabelPlacement, requiredPlacementClass)
192
- }), label, optionalTextNode), /*#__PURE__*/React.createElement(StyledContainer, {
241
+ }, hintText && {
242
+ hintView: hintView || 'default',
243
+ hintSize: hintSize || 'm'
244
+ }), (hasOuterLabel || titleCaption) && /*#__PURE__*/React.createElement(OuterLabelWrapper, {
245
+ isInnnerLabel: labelPlacement === 'inner'
246
+ }, hasOuterLabel && /*#__PURE__*/React.createElement(StyledIndicatorWrapper, null, /*#__PURE__*/React.createElement(StyledLabel, null, label), hintText && /*#__PURE__*/React.createElement(StyledHintWrapper, null, /*#__PURE__*/React.createElement(HintComponent, {
247
+ ref: hintForkRef,
248
+ hintText: hintText,
249
+ hintTrigger: hintTrigger,
250
+ isHintVisible: isHintVisible,
251
+ hintTargetIcon: hintTargetIcon,
252
+ hintPlacement: hintPlacement,
253
+ hintHasArrow: hintHasArrow,
254
+ hintOffset: hintOffset,
255
+ hintWidth: hintWidth,
256
+ hintContentLeft: hintContentLeft,
257
+ handleHintShow: handleHintShow,
258
+ handleHintHide: handleHintHide,
259
+ handleHintClick: handleHintClick
260
+ })), required && /*#__PURE__*/React.createElement(StyledIndicator, {
261
+ className: cx(classes.outerLabelPlacement, requiredPlacementClass, hasHintClass)
262
+ }), optionalTextNode), titleCaption && /*#__PURE__*/React.createElement(TitleCaption, null, titleCaption)), /*#__PURE__*/React.createElement(StyledContainer, {
193
263
  className: cx.apply(void 0, [styledContainer].concat(_toConsumableArray(dynamicLabelClasses))),
194
264
  width: helperWidth,
195
265
  onFocus: onFocusHandler,
196
266
  onBlur: onBlurHandler
197
- }, required && !hasOuterLabel && /*#__PURE__*/React.createElement(StyledIndicator, {
267
+ }, !hasOuterLabel && /*#__PURE__*/React.createElement(React.Fragment, null, required && /*#__PURE__*/React.createElement(StyledIndicator, {
198
268
  className: cx(classes.innerLabelPlacement, requiredPlacementClass)
199
- }), contentRight && /*#__PURE__*/React.createElement(StyledContent, null, contentRight), /*#__PURE__*/React.createElement(StyledTextAreaWrapper, {
269
+ }), hintText && /*#__PURE__*/React.createElement(StyledHintWrapper, {
270
+ className: classes.innerLabelPlacement
271
+ }, /*#__PURE__*/React.createElement(HintComponent, {
272
+ ref: hintForkRef,
273
+ hintText: hintText,
274
+ hintTrigger: hintTrigger,
275
+ isHintVisible: isHintVisible,
276
+ hintTargetIcon: hintTargetIcon,
277
+ hintPlacement: hintPlacement,
278
+ hintHasArrow: hintHasArrow,
279
+ hintOffset: hintOffset,
280
+ hintWidth: hintWidth,
281
+ hintContentLeft: hintContentLeft,
282
+ handleHintShow: handleHintShow,
283
+ handleHintHide: handleHintHide,
284
+ handleHintClick: handleHintClick
285
+ }))), contentRight && /*#__PURE__*/React.createElement(StyledContent, null, contentRight), /*#__PURE__*/React.createElement(StyledTextAreaWrapper, {
200
286
  className: styledTextAreaWrapper,
201
287
  hasHelper: hasHelper
202
288
  }, /*#__PURE__*/React.createElement(StyledTextArea, _extends({
@@ -250,6 +336,12 @@ export var textAreaConfig = {
250
336
  },
251
337
  readOnly: {
252
338
  attrs: true
339
+ },
340
+ hintView: {
341
+ css: hintViewCSS
342
+ },
343
+ hintSize: {
344
+ css: hintSizeCSS
253
345
  }
254
346
  },
255
347
  defaults: {