@salutejs/plasma-new-hope 0.167.0-canary.1459.11348453591.0 → 0.167.0-canary.1475.11350736392.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (466) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +19 -34
  2. package/cjs/components/Autocomplete/Autocomplete.js +2 -6
  3. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/Combobox.css +18 -38
  5. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -38
  6. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -38
  7. package/cjs/components/DatePicker/RangeDate/RangeDate.css +19 -34
  8. package/cjs/components/DatePicker/RangeDate/RangeDate.js +77 -15
  9. package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  10. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -33
  11. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  12. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  13. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  14. package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -1
  15. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1d0sbzw.css +1 -0
  16. package/cjs/components/DatePicker/SingleDate/SingleDate.css +20 -35
  17. package/cjs/components/DatePicker/SingleDate/SingleDate.js +33 -8
  18. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  19. package/cjs/components/DatePicker/hooks/useDatePicker.js +20 -48
  20. package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -1
  21. package/cjs/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  22. package/cjs/components/DatePicker/hooks/useKeyboardNavigation.js.map +1 -1
  23. package/cjs/components/DatePicker/utils/dateHelper.js +31 -0
  24. package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -1
  25. package/cjs/components/Range/Range.css +19 -39
  26. package/cjs/components/Slider/Slider.css +19 -39
  27. package/cjs/components/Slider/Slider.js +0 -2
  28. package/cjs/components/Slider/Slider.js.map +1 -1
  29. package/cjs/components/Slider/components/Double/Double.css +19 -39
  30. package/cjs/components/TextArea/TextArea.js +30 -110
  31. package/cjs/components/TextArea/TextArea.js.map +1 -1
  32. package/cjs/components/TextArea/TextArea.styles.js +63 -160
  33. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  34. package/cjs/components/TextArea/TextArea.styles_es0miz.css +11 -0
  35. package/cjs/components/TextArea/TextArea.tokens.js +4 -43
  36. package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
  37. package/cjs/components/TextArea/hooks/useAutoResize.js +4 -2
  38. package/cjs/components/TextArea/hooks/useAutoResize.js.map +1 -1
  39. package/cjs/components/TextArea/variations/_clear/base.js +1 -1
  40. package/cjs/components/TextArea/variations/_clear/base.js.map +1 -1
  41. package/cjs/components/TextArea/variations/_clear/base_vidplj.css +1 -0
  42. package/cjs/components/TextArea/variations/_view/base.js +1 -1
  43. package/cjs/components/TextArea/variations/_view/base.js.map +1 -1
  44. package/cjs/components/TextArea/variations/_view/base_td55th.css +1 -0
  45. package/cjs/components/TextField/TextField.js +9 -98
  46. package/cjs/components/TextField/TextField.js.map +1 -1
  47. package/cjs/components/TextField/TextField.styles.js +23 -76
  48. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  49. package/cjs/components/TextField/TextField.styles_1d2ryq.css +15 -0
  50. package/cjs/components/TextField/TextField.tokens.js +1 -40
  51. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  52. package/cjs/components/TextField/variations/_clear/base.js +1 -1
  53. package/cjs/components/TextField/variations/_clear/base.js.map +1 -1
  54. package/cjs/components/TextField/variations/_clear/base_rit6gc.css +1 -0
  55. package/cjs/components/TextField/variations/_disabled/base.js +1 -1
  56. package/cjs/components/TextField/variations/_disabled/{base_4d3opa.css → base_2tv0nz.css} +1 -1
  57. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  58. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  59. package/cjs/components/TextField/variations/_label-placement/base_1ghihns.css +1 -0
  60. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  61. package/cjs/components/TextField/variations/_read-only/base.js.map +1 -1
  62. package/cjs/components/TextField/variations/_read-only/base_1n7tghz.css +1 -0
  63. package/cjs/components/TextField/variations/_size/base.js +1 -1
  64. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  65. package/cjs/components/TextField/variations/_size/base_1h8l0kj.css +1 -0
  66. package/cjs/components/TextField/variations/_view/base.js +1 -1
  67. package/cjs/components/TextField/variations/_view/base.js.map +1 -1
  68. package/cjs/components/TextField/variations/_view/base_1noe46b.css +1 -0
  69. package/cjs/components/TextFieldGroup/TextFieldGroup.css +1 -1
  70. package/cjs/components/TextFieldGroup/variations/_shape/base.js +1 -1
  71. package/cjs/components/TextFieldGroup/variations/_shape/base_1e0je21.css +1 -0
  72. package/cjs/index.css +35 -55
  73. package/emotion/cjs/components/Autocomplete/Autocomplete.js +2 -6
  74. package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +77 -15
  75. package/emotion/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  76. package/emotion/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  77. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +33 -8
  78. package/emotion/cjs/components/DatePicker/hooks/useDatePicker.js +20 -48
  79. package/emotion/cjs/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  80. package/emotion/cjs/components/DatePicker/utils/dateHelper.js +31 -1
  81. package/emotion/cjs/components/TextArea/TextArea.js +35 -113
  82. package/emotion/cjs/components/TextArea/TextArea.styles.js +41 -99
  83. package/emotion/cjs/components/TextArea/TextArea.template-doc.mdx +1 -6
  84. package/emotion/cjs/components/TextArea/TextArea.tokens.js +4 -43
  85. package/emotion/cjs/components/TextArea/hooks/useAutoResize.js +4 -2
  86. package/emotion/cjs/components/TextArea/variations/_clear/base.js +1 -1
  87. package/emotion/cjs/components/TextArea/variations/_view/base.js +1 -2
  88. package/emotion/cjs/components/TextField/TextField.js +12 -100
  89. package/emotion/cjs/components/TextField/TextField.styles.js +37 -84
  90. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +1 -7
  91. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -40
  92. package/emotion/cjs/components/TextField/variations/_clear/base.js +1 -1
  93. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  94. package/emotion/cjs/components/TextField/variations/_read-only/base.js +1 -1
  95. package/emotion/cjs/components/TextField/variations/_size/base.js +1 -1
  96. package/emotion/cjs/components/TextField/variations/_view/base.js +1 -1
  97. package/emotion/cjs/components/_Icon/index.js +1 -8
  98. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +10 -19
  99. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +0 -70
  100. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +13 -22
  101. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -71
  102. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +10 -19
  103. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +0 -70
  104. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +13 -22
  105. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -80
  106. package/emotion/es/components/Autocomplete/Autocomplete.js +2 -6
  107. package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +79 -17
  108. package/emotion/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  109. package/emotion/es/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  110. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +34 -9
  111. package/emotion/es/components/DatePicker/hooks/useDatePicker.js +21 -49
  112. package/emotion/es/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  113. package/emotion/es/components/DatePicker/utils/dateHelper.js +30 -0
  114. package/emotion/es/components/TextArea/TextArea.js +36 -114
  115. package/emotion/es/components/TextArea/TextArea.styles.js +40 -98
  116. package/emotion/es/components/TextArea/TextArea.template-doc.mdx +1 -6
  117. package/emotion/es/components/TextArea/TextArea.tokens.js +4 -43
  118. package/emotion/es/components/TextArea/hooks/useAutoResize.js +4 -2
  119. package/emotion/es/components/TextArea/variations/_clear/base.js +2 -2
  120. package/emotion/es/components/TextArea/variations/_view/base.js +1 -2
  121. package/emotion/es/components/TextField/TextField.js +12 -100
  122. package/emotion/es/components/TextField/TextField.styles.js +36 -83
  123. package/emotion/es/components/TextField/TextField.template-doc.mdx +1 -7
  124. package/emotion/es/components/TextField/TextField.tokens.js +1 -40
  125. package/emotion/es/components/TextField/variations/_clear/base.js +2 -2
  126. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  127. package/emotion/es/components/TextField/variations/_read-only/base.js +2 -2
  128. package/emotion/es/components/TextField/variations/_size/base.js +2 -2
  129. package/emotion/es/components/TextField/variations/_view/base.js +2 -2
  130. package/emotion/es/components/_Icon/index.js +1 -2
  131. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +10 -19
  132. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +0 -70
  133. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +13 -22
  134. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -71
  135. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.config.js +10 -19
  136. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +0 -70
  137. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +13 -22
  138. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -80
  139. package/es/components/Autocomplete/Autocomplete.css +19 -34
  140. package/es/components/Autocomplete/Autocomplete.js +2 -6
  141. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  142. package/es/components/Combobox/ComboboxNew/Combobox.css +18 -38
  143. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -38
  144. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -38
  145. package/es/components/DatePicker/RangeDate/RangeDate.css +19 -34
  146. package/es/components/DatePicker/RangeDate/RangeDate.js +79 -17
  147. package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
  148. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -33
  149. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  150. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  151. package/es/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  152. package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -1
  153. package/es/components/DatePicker/RangeDate/variations/_size/base_1d0sbzw.css +1 -0
  154. package/es/components/DatePicker/SingleDate/SingleDate.css +20 -35
  155. package/es/components/DatePicker/SingleDate/SingleDate.js +34 -9
  156. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  157. package/es/components/DatePicker/hooks/useDatePicker.js +21 -49
  158. package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -1
  159. package/es/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  160. package/es/components/DatePicker/hooks/useKeyboardNavigation.js.map +1 -1
  161. package/es/components/DatePicker/utils/dateHelper.js +31 -1
  162. package/es/components/DatePicker/utils/dateHelper.js.map +1 -1
  163. package/es/components/Range/Range.css +19 -39
  164. package/es/components/Slider/Slider.css +19 -39
  165. package/es/components/Slider/Slider.js +0 -2
  166. package/es/components/Slider/Slider.js.map +1 -1
  167. package/es/components/Slider/components/Double/Double.css +19 -39
  168. package/es/components/TextArea/TextArea.js +34 -114
  169. package/es/components/TextArea/TextArea.js.map +1 -1
  170. package/es/components/TextArea/TextArea.styles.js +64 -155
  171. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  172. package/es/components/TextArea/TextArea.styles_es0miz.css +11 -0
  173. package/es/components/TextArea/TextArea.tokens.js +4 -43
  174. package/es/components/TextArea/TextArea.tokens.js.map +1 -1
  175. package/es/components/TextArea/hooks/useAutoResize.js +4 -2
  176. package/es/components/TextArea/hooks/useAutoResize.js.map +1 -1
  177. package/es/components/TextArea/variations/_clear/base.js +1 -1
  178. package/es/components/TextArea/variations/_clear/base.js.map +1 -1
  179. package/es/components/TextArea/variations/_clear/base_vidplj.css +1 -0
  180. package/es/components/TextArea/variations/_view/base.js +1 -1
  181. package/es/components/TextArea/variations/_view/base.js.map +1 -1
  182. package/es/components/TextArea/variations/_view/base_td55th.css +1 -0
  183. package/es/components/TextField/TextField.js +11 -100
  184. package/es/components/TextField/TextField.js.map +1 -1
  185. package/es/components/TextField/TextField.styles.js +24 -71
  186. package/es/components/TextField/TextField.styles.js.map +1 -1
  187. package/es/components/TextField/TextField.styles_1d2ryq.css +15 -0
  188. package/es/components/TextField/TextField.tokens.js +1 -40
  189. package/es/components/TextField/TextField.tokens.js.map +1 -1
  190. package/es/components/TextField/variations/_clear/base.js +1 -1
  191. package/es/components/TextField/variations/_clear/base.js.map +1 -1
  192. package/es/components/TextField/variations/_clear/base_rit6gc.css +1 -0
  193. package/es/components/TextField/variations/_disabled/base.js +1 -1
  194. package/es/components/TextField/variations/_disabled/{base_4d3opa.css → base_2tv0nz.css} +1 -1
  195. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  196. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  197. package/es/components/TextField/variations/_label-placement/base_1ghihns.css +1 -0
  198. package/es/components/TextField/variations/_read-only/base.js +1 -1
  199. package/es/components/TextField/variations/_read-only/base.js.map +1 -1
  200. package/es/components/TextField/variations/_read-only/base_1n7tghz.css +1 -0
  201. package/es/components/TextField/variations/_size/base.js +1 -1
  202. package/es/components/TextField/variations/_size/base.js.map +1 -1
  203. package/es/components/TextField/variations/_size/base_1h8l0kj.css +1 -0
  204. package/es/components/TextField/variations/_view/base.js +1 -1
  205. package/es/components/TextField/variations/_view/base.js.map +1 -1
  206. package/es/components/TextField/variations/_view/base_1noe46b.css +1 -0
  207. package/es/components/TextFieldGroup/TextFieldGroup.css +1 -1
  208. package/es/components/TextFieldGroup/variations/_shape/base.js +1 -1
  209. package/es/components/TextFieldGroup/variations/_shape/base_1e0je21.css +1 -0
  210. package/es/index.css +35 -55
  211. package/package.json +2 -2
  212. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +2 -6
  213. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +77 -15
  214. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  215. package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  216. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +33 -8
  217. package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +20 -48
  218. package/styled-components/cjs/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  219. package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +31 -1
  220. package/styled-components/cjs/components/TextArea/TextArea.js +34 -112
  221. package/styled-components/cjs/components/TextArea/TextArea.styles.js +42 -85
  222. package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +1 -6
  223. package/styled-components/cjs/components/TextArea/TextArea.tokens.js +4 -43
  224. package/styled-components/cjs/components/TextArea/hooks/useAutoResize.js +4 -2
  225. package/styled-components/cjs/components/TextArea/variations/_clear/base.js +1 -1
  226. package/styled-components/cjs/components/TextArea/variations/_view/base.js +1 -2
  227. package/styled-components/cjs/components/TextField/TextField.js +11 -99
  228. package/styled-components/cjs/components/TextField/TextField.styles.js +21 -46
  229. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +1 -7
  230. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -40
  231. package/styled-components/cjs/components/TextField/variations/_clear/base.js +1 -1
  232. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  233. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +1 -1
  234. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  235. package/styled-components/cjs/components/TextField/variations/_view/base.js +1 -1
  236. package/styled-components/cjs/components/_Icon/index.js +1 -8
  237. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +9 -18
  238. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +0 -70
  239. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +9 -18
  240. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -71
  241. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +9 -18
  242. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +0 -70
  243. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +9 -18
  244. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -80
  245. package/styled-components/es/components/Autocomplete/Autocomplete.js +2 -6
  246. package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +79 -17
  247. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +14 -7
  248. package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +1 -1
  249. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +34 -9
  250. package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +21 -49
  251. package/styled-components/es/components/DatePicker/hooks/useKeyboardNavigation.js +11 -1
  252. package/styled-components/es/components/DatePicker/utils/dateHelper.js +30 -0
  253. package/styled-components/es/components/TextArea/TextArea.js +35 -113
  254. package/styled-components/es/components/TextArea/TextArea.styles.js +41 -84
  255. package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +1 -6
  256. package/styled-components/es/components/TextArea/TextArea.tokens.js +4 -43
  257. package/styled-components/es/components/TextArea/hooks/useAutoResize.js +4 -2
  258. package/styled-components/es/components/TextArea/variations/_clear/base.js +2 -2
  259. package/styled-components/es/components/TextArea/variations/_view/base.js +1 -2
  260. package/styled-components/es/components/TextField/TextField.js +11 -99
  261. package/styled-components/es/components/TextField/TextField.styles.js +20 -45
  262. package/styled-components/es/components/TextField/TextField.template-doc.mdx +1 -7
  263. package/styled-components/es/components/TextField/TextField.tokens.js +1 -40
  264. package/styled-components/es/components/TextField/variations/_clear/base.js +2 -2
  265. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  266. package/styled-components/es/components/TextField/variations/_read-only/base.js +2 -2
  267. package/styled-components/es/components/TextField/variations/_size/base.js +2 -2
  268. package/styled-components/es/components/TextField/variations/_view/base.js +2 -2
  269. package/styled-components/es/components/_Icon/index.js +1 -2
  270. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +9 -18
  271. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +0 -70
  272. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +9 -18
  273. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -71
  274. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +9 -18
  275. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +0 -70
  276. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +9 -18
  277. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -80
  278. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  279. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +0 -424
  280. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  281. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +0 -424
  282. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  283. package/types/components/DatePicker/DatePickerBase.types.d.ts +8 -6
  284. package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -1
  285. package/types/components/DatePicker/RangeDate/RangeDate.d.ts +10 -10
  286. package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
  287. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +16 -6
  288. package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +1 -1
  289. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +1 -1
  290. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -1
  291. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +2 -1
  292. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -1
  293. package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -1
  294. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  295. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  296. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +0 -424
  297. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  298. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +14 -4
  299. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  300. package/types/components/DatePicker/hooks/useDatePicker.d.ts +2 -3
  301. package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -1
  302. package/types/components/DatePicker/hooks/useKeyboardNavigation.d.ts +3 -1
  303. package/types/components/DatePicker/hooks/useKeyboardNavigation.d.ts.map +1 -1
  304. package/types/components/DatePicker/utils/dateHelper.d.ts +10 -0
  305. package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -1
  306. package/types/components/Popover/Popover.types.d.ts +1 -1
  307. package/types/components/Range/Range.styles.d.ts +0 -424
  308. package/types/components/Range/Range.styles.d.ts.map +1 -1
  309. package/types/components/Slider/components/Double/Double.styles.d.ts +0 -424
  310. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  311. package/types/components/TextArea/TextArea.d.ts +3 -9
  312. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  313. package/types/components/TextArea/TextArea.styles.d.ts +1 -11
  314. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  315. package/types/components/TextArea/TextArea.tokens.d.ts +0 -39
  316. package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
  317. package/types/components/TextArea/TextArea.types.d.ts +3 -83
  318. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  319. package/types/components/TextArea/hooks/useAutoResize.d.ts.map +1 -1
  320. package/types/components/TextArea/variations/_clear/base.d.ts.map +1 -1
  321. package/types/components/TextArea/variations/_view/base.d.ts.map +1 -1
  322. package/types/components/TextField/TextField.d.ts +3 -9
  323. package/types/components/TextField/TextField.d.ts.map +1 -1
  324. package/types/components/TextField/TextField.styles.d.ts +0 -8
  325. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  326. package/types/components/TextField/TextField.tokens.d.ts +0 -39
  327. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  328. package/types/components/TextField/TextField.types.d.ts +2 -78
  329. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  330. package/types/components/TextField/variations/_clear/base.d.ts.map +1 -1
  331. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
  332. package/types/components/TextField/variations/_read-only/base.d.ts.map +1 -1
  333. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  334. package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
  335. package/types/components/_Icon/index.d.ts +0 -1
  336. package/types/components/_Icon/index.d.ts.map +1 -1
  337. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +6 -6
  338. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  339. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +12 -788
  340. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  341. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +0 -9
  342. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
  343. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +0 -473
  344. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  345. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +0 -9
  346. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  347. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -433
  348. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  349. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +6 -6
  350. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  351. package/types/examples/plasma_web/components/Mask/Mask.d.ts +12 -788
  352. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  353. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +0 -9
  354. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
  355. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +0 -473
  356. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  357. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +0 -9
  358. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
  359. package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -433
  360. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  361. package/cjs/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  362. package/cjs/components/TextArea/TextArea.styles_mcxlmk.css +0 -17
  363. package/cjs/components/TextArea/variations/_clear/base_1ezvvtt.css +0 -1
  364. package/cjs/components/TextArea/variations/_hint-size/base.js +0 -9
  365. package/cjs/components/TextArea/variations/_hint-size/base.js.map +0 -1
  366. package/cjs/components/TextArea/variations/_hint-size/base_1ipgv90.css +0 -1
  367. package/cjs/components/TextArea/variations/_hint-view/base.js +0 -9
  368. package/cjs/components/TextArea/variations/_hint-view/base.js.map +0 -1
  369. package/cjs/components/TextArea/variations/_hint-view/base_111a0qe.css +0 -1
  370. package/cjs/components/TextArea/variations/_view/base_1xgrm3x.css +0 -1
  371. package/cjs/components/TextField/TextField.styles_17xt45g.css +0 -21
  372. package/cjs/components/TextField/variations/_clear/base_1pkwm4m.css +0 -1
  373. package/cjs/components/TextField/variations/_hint-size/base.js +0 -9
  374. package/cjs/components/TextField/variations/_hint-size/base.js.map +0 -1
  375. package/cjs/components/TextField/variations/_hint-size/base_1x99605.css +0 -1
  376. package/cjs/components/TextField/variations/_hint-view/base.js +0 -9
  377. package/cjs/components/TextField/variations/_hint-view/base.js.map +0 -1
  378. package/cjs/components/TextField/variations/_hint-view/base_l8etux.css +0 -1
  379. package/cjs/components/TextField/variations/_label-placement/base_3domm.css +0 -1
  380. package/cjs/components/TextField/variations/_read-only/base_17ypmu7.css +0 -1
  381. package/cjs/components/TextField/variations/_size/base_1xdmaqh.css +0 -1
  382. package/cjs/components/TextField/variations/_view/base_qhyte8.css +0 -1
  383. package/cjs/components/TextFieldGroup/variations/_shape/base_52bndd.css +0 -1
  384. package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +0 -23
  385. package/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js.map +0 -1
  386. package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +0 -23
  387. package/cjs/components/_Icon/Icons/IconInfoCircleOutline.js.map +0 -1
  388. package/emotion/cjs/components/TextArea/variations/_hint-size/base.js +0 -11
  389. package/emotion/cjs/components/TextArea/variations/_hint-size/tokens.json +0 -21
  390. package/emotion/cjs/components/TextArea/variations/_hint-view/base.js +0 -11
  391. package/emotion/cjs/components/TextArea/variations/_hint-view/tokens.json +0 -5
  392. package/emotion/cjs/components/TextField/variations/_hint-size/base.js +0 -11
  393. package/emotion/cjs/components/TextField/variations/_hint-size/tokens.json +0 -21
  394. package/emotion/cjs/components/TextField/variations/_hint-view/base.js +0 -11
  395. package/emotion/cjs/components/TextField/variations/_hint-view/tokens.json +0 -5
  396. package/emotion/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +0 -22
  397. package/emotion/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +0 -22
  398. package/emotion/es/components/TextArea/variations/_hint-size/base.js +0 -5
  399. package/emotion/es/components/TextArea/variations/_hint-size/tokens.json +0 -21
  400. package/emotion/es/components/TextArea/variations/_hint-view/base.js +0 -5
  401. package/emotion/es/components/TextArea/variations/_hint-view/tokens.json +0 -5
  402. package/emotion/es/components/TextField/variations/_hint-size/base.js +0 -5
  403. package/emotion/es/components/TextField/variations/_hint-size/tokens.json +0 -21
  404. package/emotion/es/components/TextField/variations/_hint-view/base.js +0 -5
  405. package/emotion/es/components/TextField/variations/_hint-view/tokens.json +0 -5
  406. package/emotion/es/components/_Icon/Icon.assets/InfoCircleOutline.js +0 -15
  407. package/emotion/es/components/_Icon/Icons/IconInfoCircleOutline.js +0 -15
  408. package/es/components/DatePicker/RangeDate/variations/_size/base_1911nyw.css +0 -1
  409. package/es/components/TextArea/TextArea.styles_mcxlmk.css +0 -17
  410. package/es/components/TextArea/variations/_clear/base_1ezvvtt.css +0 -1
  411. package/es/components/TextArea/variations/_hint-size/base.js +0 -5
  412. package/es/components/TextArea/variations/_hint-size/base.js.map +0 -1
  413. package/es/components/TextArea/variations/_hint-size/base_1ipgv90.css +0 -1
  414. package/es/components/TextArea/variations/_hint-view/base.js +0 -5
  415. package/es/components/TextArea/variations/_hint-view/base.js.map +0 -1
  416. package/es/components/TextArea/variations/_hint-view/base_111a0qe.css +0 -1
  417. package/es/components/TextArea/variations/_view/base_1xgrm3x.css +0 -1
  418. package/es/components/TextField/TextField.styles_17xt45g.css +0 -21
  419. package/es/components/TextField/variations/_clear/base_1pkwm4m.css +0 -1
  420. package/es/components/TextField/variations/_hint-size/base.js +0 -5
  421. package/es/components/TextField/variations/_hint-size/base.js.map +0 -1
  422. package/es/components/TextField/variations/_hint-size/base_1x99605.css +0 -1
  423. package/es/components/TextField/variations/_hint-view/base.js +0 -5
  424. package/es/components/TextField/variations/_hint-view/base.js.map +0 -1
  425. package/es/components/TextField/variations/_hint-view/base_l8etux.css +0 -1
  426. package/es/components/TextField/variations/_label-placement/base_3domm.css +0 -1
  427. package/es/components/TextField/variations/_read-only/base_17ypmu7.css +0 -1
  428. package/es/components/TextField/variations/_size/base_1xdmaqh.css +0 -1
  429. package/es/components/TextField/variations/_view/base_qhyte8.css +0 -1
  430. package/es/components/TextFieldGroup/variations/_shape/base_52bndd.css +0 -1
  431. package/es/components/_Icon/Icon.assets/InfoCircleOutline.js +0 -19
  432. package/es/components/_Icon/Icon.assets/InfoCircleOutline.js.map +0 -1
  433. package/es/components/_Icon/Icons/IconInfoCircleOutline.js +0 -19
  434. package/es/components/_Icon/Icons/IconInfoCircleOutline.js.map +0 -1
  435. package/styled-components/cjs/components/TextArea/variations/_hint-size/base.js +0 -11
  436. package/styled-components/cjs/components/TextArea/variations/_hint-size/tokens.json +0 -21
  437. package/styled-components/cjs/components/TextArea/variations/_hint-view/base.js +0 -11
  438. package/styled-components/cjs/components/TextArea/variations/_hint-view/tokens.json +0 -5
  439. package/styled-components/cjs/components/TextField/variations/_hint-size/base.js +0 -11
  440. package/styled-components/cjs/components/TextField/variations/_hint-size/tokens.json +0 -21
  441. package/styled-components/cjs/components/TextField/variations/_hint-view/base.js +0 -11
  442. package/styled-components/cjs/components/TextField/variations/_hint-view/tokens.json +0 -5
  443. package/styled-components/cjs/components/_Icon/Icon.assets/InfoCircleOutline.js +0 -22
  444. package/styled-components/cjs/components/_Icon/Icons/IconInfoCircleOutline.js +0 -22
  445. package/styled-components/es/components/TextArea/variations/_hint-size/base.js +0 -5
  446. package/styled-components/es/components/TextArea/variations/_hint-size/tokens.json +0 -21
  447. package/styled-components/es/components/TextArea/variations/_hint-view/base.js +0 -5
  448. package/styled-components/es/components/TextArea/variations/_hint-view/tokens.json +0 -5
  449. package/styled-components/es/components/TextField/variations/_hint-size/base.js +0 -5
  450. package/styled-components/es/components/TextField/variations/_hint-size/tokens.json +0 -21
  451. package/styled-components/es/components/TextField/variations/_hint-view/base.js +0 -5
  452. package/styled-components/es/components/TextField/variations/_hint-view/tokens.json +0 -5
  453. package/styled-components/es/components/_Icon/Icon.assets/InfoCircleOutline.js +0 -15
  454. package/styled-components/es/components/_Icon/Icons/IconInfoCircleOutline.js +0 -15
  455. package/types/components/TextArea/variations/_hint-size/base.d.ts +0 -2
  456. package/types/components/TextArea/variations/_hint-size/base.d.ts.map +0 -1
  457. package/types/components/TextArea/variations/_hint-view/base.d.ts +0 -2
  458. package/types/components/TextArea/variations/_hint-view/base.d.ts.map +0 -1
  459. package/types/components/TextField/variations/_hint-size/base.d.ts +0 -2
  460. package/types/components/TextField/variations/_hint-size/base.d.ts.map +0 -1
  461. package/types/components/TextField/variations/_hint-view/base.d.ts +0 -2
  462. package/types/components/TextField/variations/_hint-view/base.d.ts.map +0 -1
  463. package/types/components/_Icon/Icon.assets/InfoCircleOutline.d.ts +0 -4
  464. package/types/components/_Icon/Icon.assets/InfoCircleOutline.d.ts.map +0 -1
  465. package/types/components/_Icon/Icons/IconInfoCircleOutline.d.ts +0 -4
  466. package/types/components/_Icon/Icons/IconInfoCircleOutline.d.ts.map +0 -1
@@ -1,11 +1,9 @@
1
1
  import { classes } from '../DatePicker.tokens';
2
- import { formatCalendarValue, formatInputValue, getDateFromFormat, getMaskedDateOnInput } from '../utils/dateHelper';
3
- import { customDayjs } from '../../../utils/datejs';
2
+ import { formatCalendarValue, formatInputValue, getDateFromFormat, getMaskedDateOnInput, validateDateWithFullMonth } from '../utils/dateHelper';
4
3
  export var useDatePicker = function useDatePicker(_ref) {
5
4
  var currentValue = _ref.currentValue,
6
5
  setInputValue = _ref.setInputValue,
7
6
  setCalendarValue = _ref.setCalendarValue,
8
- setIsInnerOpen = _ref.setIsInnerOpen,
9
7
  dateFormatDelimiter = _ref.dateFormatDelimiter,
10
8
  format = _ref.format,
11
9
  _ref$lang = _ref.lang,
@@ -15,24 +13,12 @@ export var useDatePicker = function useDatePicker(_ref) {
15
13
  maskWithFormat = _ref.maskWithFormat,
16
14
  valueError = _ref.valueError,
17
15
  valueSuccess = _ref.valueSuccess,
18
- inputRef = _ref.inputRef,
19
16
  name = _ref.name,
20
- onToggle = _ref.onToggle,
21
17
  onChangeValue = _ref.onChangeValue,
22
18
  onCommitDate = _ref.onCommitDate,
23
19
  onChange = _ref.onChange;
24
20
  var datePickerErrorClass = valueError ? classes.datePickerError : undefined;
25
21
  var datePickerSuccessClass = valueSuccess ? classes.datePickerSuccess : undefined;
26
- var handleToggle = function handleToggle(opened, event) {
27
- if (disabled || readOnly) {
28
- return;
29
- }
30
- var isCalendarOpen = event.target === (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) ? true : opened;
31
- if (onToggle) {
32
- return onToggle(isCalendarOpen, event);
33
- }
34
- setIsInnerOpen(isCalendarOpen);
35
- };
36
22
  var handleChangeValue = function handleChangeValue(event) {
37
23
  if (disabled || readOnly) {
38
24
  return;
@@ -55,24 +41,14 @@ export var useDatePicker = function useDatePicker(_ref) {
55
41
  });
56
42
  return;
57
43
  }
58
-
59
- /**
60
- * NOTE: если в формате даты есть месяц в полном названии или сокращенном,
61
- * нужно дополнительно проводить валидацию на полноту введенной даты.
62
- * Иначе dayjs циклически будет пытаться отформатировать некорректную дату.
63
- */
64
- var hasMonthFullName = /M{3,4}/g.test(format);
65
- var isValidMonth;
66
- var isLengthEqual;
67
- if (hasMonthFullName) {
68
- customDayjs.locale(lang);
69
- var firstIndexOfMonth = format.indexOf('M');
70
- var lastIndexOfMonth = newValue.indexOf(dateFormatDelimiter(), firstIndexOfMonth);
71
- var fullMonthName = !lastIndexOfMonth ? newValue.slice(firstIndexOfMonth) : newValue.slice(firstIndexOfMonth, lastIndexOfMonth);
72
- var monthFormatting = format.replace(/[^M]/g, '');
73
- isValidMonth = customDayjs("01 ".concat(fullMonthName, " 1970"), "DD ".concat(monthFormatting, " YYYY"), true).isValid();
74
- isLengthEqual = format.length - monthFormatting.length === newValue.length - fullMonthName.length;
75
- }
44
+ var _validateDateWithFull = validateDateWithFullMonth({
45
+ currentValue: newValue,
46
+ format: format,
47
+ lang: lang
48
+ }),
49
+ hasMonthFullName = _validateDateWithFull.hasMonthFullName,
50
+ isValidMonth = _validateDateWithFull.isValidMonth,
51
+ isLengthEqual = _validateDateWithFull.isLengthEqual;
76
52
  if (!hasMonthFullName && (newValue === null || newValue === void 0 ? void 0 : newValue.length) === (format === null || format === void 0 ? void 0 : format.length) || isValidMonth && isLengthEqual) {
77
53
  setCalendarValue(formatCalendarValue(newValue, format, lang));
78
54
  }
@@ -102,20 +78,18 @@ export var useDatePicker = function useDatePicker(_ref) {
102
78
  return onCommitDate === null || onCommitDate === void 0 ? void 0 : onCommitDate('', false, true);
103
79
  }
104
80
  if (isCalendarValue) {
105
- setCalendarValue(formatCalendarValue(date, format, lang));
106
- setInputValue(formatInputValue({
81
+ var _formattedInputValue = formatInputValue({
107
82
  value: date,
108
83
  format: format,
109
84
  lang: lang
110
- }));
85
+ });
86
+ setCalendarValue(formatCalendarValue(date, format, lang));
87
+ setInputValue(_formattedInputValue);
111
88
  onCommitDate === null || onCommitDate === void 0 || onCommitDate(date, false, true, dateInfo);
89
+ onChangeValue === null || onChangeValue === void 0 || onChangeValue(null, _formattedInputValue);
112
90
  onChange === null || onChange === void 0 || onChange({
113
91
  target: {
114
- value: formatInputValue({
115
- value: date,
116
- format: format,
117
- lang: lang
118
- }),
92
+ value: _formattedInputValue,
119
93
  name: name
120
94
  }
121
95
  });
@@ -126,19 +100,18 @@ export var useDatePicker = function useDatePicker(_ref) {
126
100
  newDate = _getDateFromFormat.value,
127
101
  isError = _getDateFromFormat.isError,
128
102
  isSuccess = _getDateFromFormat.isSuccess;
129
- setCalendarValue(formatCalendarValue(newDate, format, lang));
130
- setInputValue(formatInputValue({
103
+ var formattedInputValue = formatInputValue({
131
104
  value: newDate,
132
105
  format: format,
133
106
  lang: lang
134
- }));
107
+ });
108
+ setCalendarValue(formatCalendarValue(newDate, format, lang));
109
+ setInputValue(formattedInputValue);
135
110
  onCommitDate === null || onCommitDate === void 0 || onCommitDate(newDate, isError, isSuccess);
111
+ onChangeValue === null || onChangeValue === void 0 || onChangeValue(null, formattedInputValue);
136
112
  onChange === null || onChange === void 0 || onChange({
137
113
  target: {
138
- value: formatInputValue({
139
- value: date,
140
- format: format
141
- }),
114
+ value: formattedInputValue,
142
115
  name: name
143
116
  }
144
117
  });
@@ -146,7 +119,6 @@ export var useDatePicker = function useDatePicker(_ref) {
146
119
  return {
147
120
  datePickerErrorClass: datePickerErrorClass,
148
121
  datePickerSuccessClass: datePickerSuccessClass,
149
- handleToggle: handleToggle,
150
122
  handleChangeValue: handleChangeValue,
151
123
  handleCommitDate: handleCommitDate
152
124
  };
@@ -1,8 +1,10 @@
1
1
  export var keys = {
2
- Space: 'Space'
2
+ Space: 'Space',
3
+ Escape: 'Escape'
3
4
  };
4
5
  export var useKeyNavigation = function useKeyNavigation(_ref) {
5
6
  var isCalendarOpen = _ref.isCalendarOpen,
7
+ closeOnEsc = _ref.closeOnEsc,
6
8
  onToggle = _ref.onToggle;
7
9
  var onKeyDown = function onKeyDown(event) {
8
10
  switch (event.code) {
@@ -14,6 +16,14 @@ export var useKeyNavigation = function useKeyNavigation(_ref) {
14
16
  }
15
17
  break;
16
18
  }
19
+ case keys.Escape:
20
+ {
21
+ if (isCalendarOpen && closeOnEsc) {
22
+ event.preventDefault();
23
+ onToggle(false, event);
24
+ }
25
+ break;
26
+ }
17
27
  default:
18
28
  {
19
29
  break;
@@ -78,4 +78,34 @@ export var getMaskedDateOnInput = function getMaskedDateOnInput(value, format, d
78
78
  return value + delimiter;
79
79
  }
80
80
  return value;
81
+ };
82
+ export var validateDateWithFullMonth = function validateDateWithFullMonth(_ref2) {
83
+ var currentValue = _ref2.currentValue,
84
+ format = _ref2.format,
85
+ lang = _ref2.lang;
86
+ /**
87
+ * NOTE: если в формате даты есть месяц в полном названии или сокращенном,
88
+ * нужно дополнительно проводить валидацию на полноту введенной даты.
89
+ * Иначе dayjs циклически будет пытаться отформатировать некорректную дату.
90
+ */
91
+ var hasMonthFullName = /M{3,4}/g.test(format);
92
+ if (!hasMonthFullName) {
93
+ return {
94
+ hasMonthFullName: hasMonthFullName,
95
+ isValidMonth: false,
96
+ isLengthEqual: false
97
+ };
98
+ }
99
+ customDayjs.locale(lang);
100
+ var firstIndexOfMonth = format.indexOf('M');
101
+ var lastIndexOfMonth = currentValue.indexOf(getDateFormatDelimiter(format), firstIndexOfMonth);
102
+ var fullMonthName = !lastIndexOfMonth ? currentValue.slice(firstIndexOfMonth) : currentValue.slice(firstIndexOfMonth, lastIndexOfMonth);
103
+ var monthFormatting = format.replace(/[^M]/g, '');
104
+ var isValidMonth = customDayjs("01 ".concat(fullMonthName, " 1970"), "DD ".concat(monthFormatting, " YYYY"), true).isValid();
105
+ var isLengthEqual = format.length - monthFormatting.length === currentValue.length - fullMonthName.length;
106
+ return {
107
+ hasMonthFullName: hasMonthFullName,
108
+ isValidMonth: isValidMonth,
109
+ isLengthEqual: isLengthEqual
110
+ };
81
111
  };
@@ -1,6 +1,6 @@
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 _IconInfoCircleOutlin;
3
- 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", "hasHint", "hintTrigger", "hintText", "hintView", "hintSize", "hintTargetIcon", "hintPlacement", "hintHasArrow", "hintOffset", "hintWidth", "hintContentLeft", "onChange"];
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"];
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."); }
6
6
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -10,7 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
11
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
12
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- 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); }
14
13
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
14
  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."); }
16
15
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -19,22 +18,18 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
19
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
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; }
21
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; }
22
- import React, { forwardRef, useState, createRef, useCallback, useRef, useMemo } from 'react';
21
+ import React, { forwardRef, useState, createRef, useCallback } from 'react';
23
22
  import { css } from '@emotion/react';
24
- import { useForkRef, useResizeObserver } from '@salutejs/plasma-core';
25
- import { cx, mergeRefs, safeUseId } from '../../utils';
26
- import { IconInfoCircleOutline } from '../_Icon';
27
- import { useOutsideClick } from '../../hooks';
23
+ import { useResizeObserver } from '@salutejs/plasma-core';
24
+ import { cx, mergeRefs } from '../../utils';
28
25
  import { applyDynamicLabel } from './mixins';
29
26
  import { useAutoResize, ROOT_FONT_SIZE } from './hooks';
30
- import { StyledContent, StyledHelpers, StyledLeftHelper, StyledRightHelper, StyledLabel, StyledPlaceholder, StyledTextArea, StyledTextAreaWrapper, StyledContainer, StyledIndicator, StyledOptionalText, OuterLabelWrapper, StyledIndicatorWrapper, StyledHintWrapper, HintTargetWrapper, TitleCaption, Hint } from './TextArea.styles';
27
+ import { StyledContent, StyledHelpers, StyledLeftHelper, StyledRightHelper, StyledLabel, StyledPlaceholder, StyledTextArea, StyledTextAreaWrapper, StyledContainer, StyledIndicator, StyledOptionalText } from './TextArea.styles';
31
28
  import { classes } from './TextArea.tokens';
32
29
  import { base as viewCSS } from './variations/_view/base';
33
30
  import { base as sizeCSS } from './variations/_size/base';
34
31
  import { base as clearCSS } from './variations/_clear/base';
35
32
  import { base as disabledCSS } from './variations/_disabled/base';
36
- import { base as hintViewCSS } from './variations/_hint-view/base';
37
- import { base as hintSizeCSS } from './variations/_hint-size/base';
38
33
  var innerPlaceholderUp = classes.innerPlaceholderUp,
39
34
  focusedOuterPlaceholderColor = classes.focusedOuterPlaceholderColor,
40
35
  hidePlaceHolder = classes.hidePlaceHolder,
@@ -44,7 +39,7 @@ var innerPlaceholderUp = classes.innerPlaceholderUp,
44
39
  styledPlaceholder = classes.styledPlaceholder,
45
40
  styledHelpers = classes.styledHelpers;
46
41
  var optionalText = 'optional';
47
- 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEFyZWEv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FxuICAgICAgICAgICAgbWF4QXV0byxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgbGFiZWxQbGFjZW1lbnQgPSAnaW5uZXInLFxuICAgICAgICAgICAgdGl0bGVDYXB0aW9uLFxuICAgICAgICAgICAgcGxhY2Vob2xkZXIsXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICBoZWlnaHQsXG4gICAgICAgICAgICB3aWR0aCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICByZXF1aXJlZCA9IGZhbHNlLFxuICAgICAgICAgICAgcmVxdWlyZWRQbGFjZW1lbnQgPSAncmlnaHQnLFxuICAgICAgICAgICAgb3B0aW9uYWwgPSBmYWxzZSxcbiAgICAgICAgICAgIGNsZWFyLFxuICAgICAgICAgICAgaGFzRGl2aWRlcixcbiAgICAgICAgICAgIHNpemUsXG4gICAgICAgICAgICB2aWV3LFxuICAgICAgICAgICAgaWQsXG4gICAgICAgICAgICBzdHlsZSxcbiAgICAgICAgICAgIGNsYXNzTmFtZSxcbiAgICAgICAgICAgIHJlYWRPbmx5LFxuICAgICAgICAgICAgcm93cyxcbiAgICAgICAgICAgIGNvbHMsXG4gICAgICAgICAgICBoYXNIaW50LFxuICAgICAgICAgICAgaGludFRyaWdnZXIgPSAnaG92ZXInLFxuICAgICAgICAgICAgaGludFRleHQsXG4gICAgICAgICAgICBoaW50VmlldyA9ICdkZWZhdWx0JyxcbiAgICAgICAgICAgIGhpbnRTaXplID0gJ20nLFxuICAgICAgICAgICAgaGludFRhcmdldEljb24sXG4gICAgICAgICAgICBoaW50UGxhY2VtZW50ID0gJ2F1dG8nLFxuICAgICAgICAgICAgaGludEhhc0Fycm93LFxuICAgICAgICAgICAgaGludE9mZnNldCA9IFswLCAwXSxcbiAgICAgICAgICAgIGhpbnRXaWR0aCxcbiAgICAgICAgICAgIGhpbnRDb250ZW50TGVmdCxcbiAgICAgIC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YXNzID0gaGFzRGl2aWRlciA/IGNsYXNzZXMuaGFzRGl2aWRlciA6IHVuZGVmaW5lZDtcbiAgICAgICAgY29uc3QgcmVxdWlyZWRQbGFjZW1lbnRDbGFzcyA9IHJlcXVpcmVkUGxhY2VtZW50ID09PSAncmlnaHQnID8gJ2FsaWduLXJpZ2h0ICcgOiB1bmRlZmluZWQ7XG5cbiAgICAgICAgY29uc3QgaGFuZGxlSGludFNob3cgPSAoKSA9PiBzZXRJc0hpbnRWaXNpYmxlKHRydWUpO1xuICAgICAgICBjb25zdCBoYW5kbGVIaW50SGlkZSA9ICgpID0+IHNldElzSGludFZpc2libGUoZmFsc2UpO1xuICAgICAgICBjb25zdCBoYW5kbGVIaW50Q2xpY2s6IE1vdXNlRXZlbnRIYW5kbGVyID0gKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICBpZiAoaGFzSGludCAmJiBoaW50VHJpZ2dlciA9PT0gJ2NsaWNrJykge1xuICAgICAgICAgICAgICAgIGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHRhcmdldElzUG9wb3ZlciA9IGV2ZW50LnRhcmdldCA9PT0gaGludElubmVyUmVmLmN1cnJlbnQ7XG4gICAgICAgICAgICAgICAgY29uc3Qgcm9vdEhhc1RhcmdldCA9IGhpbnRJbm5lclJlZi5jdXJyZW50Py5jb250YWlucyhldmVudC50YXJnZXQgYXMgRWxlbWVudCk7XG5cbiAgICAgICAgICAgICAgICBpZiAoIXRhcmdldElzUG9wb3ZlciAmJiAhcm9vdEhhc1RhcmdldCkge1xuICAgICAgICAgICAgICAgICAgICBzZXRJc0hpbnRWaXNpYmxlKHRydWUpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfTtcblxuICAgICAgICB1c2VSZXNpemVPYnNlcnZlcihvdXRlclJlZiwgKGN1cnJlbnRFbGVtZW50KSA9PiB7XG4gICAgICAgICAgICBjb25zdCB7IHdpZ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gICAgICAgICBpZiAodmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICBzZXRVbmNvbnRyb2xsZWRWYWx1ZShldmVudD8udGFyZ2V0LnZhbHVlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgb25DaGFuZ2U/LihldmVudCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW3ZhbHVlLCBvbkNoYW5nZV0sXG4gICAgICAgICk7XG5cbiAgICAgICAgY29uc3QgZHluYW1pY0xhYmVsQ2xhc3NlcyA9IGdldER5bmFtaWNMYWJlbENsYXNzZXMoXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgc2l6ZSxcbiAgICAgICAgICAgICAgICByZWFkT25seSxcbiAgICAgICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgICAgICBsYWJlbFBsYWNlbWVudCxcbiAgICAgICAgICAgICAgICB2YWx1ZTogdmFsdWUgfHwgdW5jb250cm9sbGVkVmFsdWUgfHwgZGVmYXVsdFZhbHVlLFxuICAgICAgICAgICAgICAgIHJvd3MsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZm9jdXNlZCxcbiAgICAgICAgKTtcblxuICAgICAgICBjb25zdCBvcHRpb25hbFRleHROb2RlID0gaW5uZXJPcHRpb25hbCA/IChcbiAgICAgICAgICAgIDxTdHlsZWRPcHRpb25hbFRleHQgaW5oZXJpdEZvbnQ9eyFoYXNPdXRlckxhYmVsfT5cbiAgICAgICAgICAgICAgICB7Qm9vbGVhbihoYXNQbGFjZWhvbGRlck9wdGlvbmFsID8gcGxhY2Vob2xkZXJMYWJlbCA6IGxhYmVsKSAmJiAnXFx4YTAnfVxuICAgICAgICAgICAgICAgIHtvcHRpb25hbFRleHR9XG4gICAgICAgICAgICA8L1N0eWxlZE9wdGlvbmFsVGV4dD5cbiAgICAgICAgKSA6IG51bGw7XG5cbiAgICAgICAgY29uc3QgSGludENvbXBvbmVudCA9IHVzZU1lbW8oXG4gICAgICAgICAgICAoKSA9PiAoXG4gICAgICAgICAgICAgICAgPEhpbnRcbiAgICAgICAgICAgICAgICAgICAgcmVmPXtoaW50Rm9ya1JlZn1cbiAgICAgICAgICAgICAgICAgICAgdGV4dD17U3RyaW5nKGhpbnRUZXh0KX1cbiAgICAgICAgICAgICAgICAgICAgb3BlbmVkPXtpc0hpbnRWaXNpYmxlfVxuICAgICAgICAgICAgICAgICAgICB0YXJnZXQ9e1xuICAgICAgICAgICAgICAgICAgICAgICAgPEhpbnRUYXJnZXRXcmFwcGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9e2hpbnRJZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7Li4uKGhpbnRUcmlnZ2VyID09PSAnaG92ZXInXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbk1vdXNlRW50ZXI6IGhhbmRsZUhpbnRTaG93LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbk1vdXNlTGVhdmU6IGhhbmRsZUhpbnRIaWRlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiB7IG9uQ2xpY2s6IGhhbmRsZUhpbnRDbGljayB9KX1cbiAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7aGludFRhcmdldEljb24gfHwgPEljb25JbmZvQ2lyY2xlT3V0bGluZSBzaXplPVwieHNcIiBjb2xvcj1cImluaGVyaXRcIiAvPn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvSGludFRhcmdldFdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcGxhY2VtZW50PXtoaW50UGxhY2VtZW50fVxuICAgICAgICAgICAgICAgICAgICBoYXNBcnJvdz17aGludEhhc0Fycm93fVxuICAgICAgICAgICAgICAgICAgICBvZmZzZXQ9e2hpbnRPZmZzZXR9XG4gICAgICAgICAgICAgICAgICAgIG1pbldpZHRoPXtoaW50V2lkdGh9XG4gICAgICAgICAgICAgICAgICAgIG1heFdpZHRoPXtoaW50V2lkdGh9XG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnRMZWZ0PXtoaW50Q29udGVudExlZnR9XG4gICAgICAgICAgICAgICAgICAgIGZyYW1lPXtoaW50SWR9XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICksXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgaGludFRleHQsXG4gICAgICAgICAgICAgICAgaXNIaW50VmlzaWJsZSxcbiAgICAgICAgICAgICAgICBoaW50SWQsXG4gICAgICAgICAgICAgICAgaGludFRyaWdnZXIsXG4gICAgICAgICAgICAgICAgaGFuZGxlSGludFNob3csXG4gICAgICAgICAgICAgICAgaGFuZGxlSGludEhpZGUsXG4gICAgICAgICAgICAgICAgaGFuZGxlSGludENsaWNrLFxuICAgICAgICAgICAgICAgIGhpbnRUYXJnZXRJY29uLFxuICAgICAgICAgICAgICAgIGhpbnRQbGFjZW1lbnQsXG4gICAgICAgICAgICAgICAgaGludEhhc0Fycm93LFxuICAgICAgICAgICAgICAgIGhpbnRPZmZzZXQsXG4gICAgICAgICAgICAgICAgaGludFdpZHRoLFxuICAgICAgICAgICAgICAgIGhpbnRDb250ZW50TGVmdCxcbiAgICAgICAgICAgIF0sXG4gICAgICAgICk7XG5cbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgIDxSb290XG4gICAgICAgICAgICAgICAgdmlldz17b3ZlcnJpZGRlblZpZXd9XG4gICAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICAgIGNsZWFyPXtjbGVhcn1cbiAgICAgICAgICAgICAgICBzdHlsZT17eyB3aWR0aDogaGVscGVyV2lkdGgsIC4uLnN0eWxlIH19XG4gICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjeChjbGVhckNsYXNzLCBoYXNEaXZpZGVyQ2xhc3MsIGhhc0hpbnRDbGFzcywgY2xhc3NOYW1lKX1cbiAgICAgICAgICAgICAgICB7Li4uKGhhc0hpbnQgJiYge1xuICAgICAgICAgICAgICAgICAgICBoaW50VmlldzogaGludFZpZXcgfHwgJ2RlZmF1bHQnLFxuICAgICAgICAgICAgICAgICAgICBoaW50U2l6ZTogaGludFNpemUgfHwgJ20nLFxuICAgICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHsoaGFzT3V0ZXJMYWJlbCB8fCB0aXRsZUNhcHRpb24pICYmIChcbiAgICAgICAgICAgICAgICAgICAgPE91dGVyTGFiZWxXcmFwcGVyIGlzSW5ubmVyTGFiZWw9e2xhYmVsUGxhY2VtZW50ID09PSAnaW5uZXInfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIHtoYXNPdXRlckxhYmVsICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSW5kaWNhdG9yV3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExhYmVsPntsYWJlbH08L1N0eWxlZExhYmVsPlxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtoYXNIaW50ICYmIDxTdHlsZWRIaW50V3JhcHBlcj57SGludENvbXBvbmVudH08L1N0eWxlZEhpbnRXcmFwcGVyPn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3JlcXVpcmVkICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRJbmRpY2F0b3JcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc2VzLm91dGVyTGFiZWxQbGFjZW1lbnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlcXVpcmVkUGxhY2VtZW50Q2xhc3MsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0hpbnRDbGFzcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge29wdGlvbmFsVGV4dE5vZGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRJbmRpY2F0b3JXcmFwcGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgICAgIHt0aXRsZUNhcHRpb24gJiYgPFRpdGxlQ2FwdGlvbj57dGl0bGVDYXB0aW9ufTwvVGl0bGVDYXB0aW9uPn1cbiAgICAgICAgICAgICAgICAgICAgPC9PdXRlckxhYmVsV3JhcHBlcj5cbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIDxTdHlsZWRDb250YWluZXJcbiAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjeChzdHlsZWRDb250YWluZXIsIC4uLmR5bmFtaWNMYWJlbENsYXNzZXMpfVxuICAgICAgICAgICAgICAgICAgICB3aWR0aD17aGVscGVyV2lkdGh9XG4gICAgICAgICAgICAgICAgICAgIG9uRm9jdXM9e29uRm9jdXNIYW5kbGVyfVxuICAgICAgICAgICAgICAgICAgICBvbkJsdXI9e29uQmx1ckhhbmRsZXJ9XG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICB7IWhhc091dGVyTGFiZWwgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSW5kaWNhdG9yIGNsYXNzTmFtZT17Y3goY2xhc3Nlcy5pbm5lckxhYmVsUGxhY2VtZW50LCByZXF1aXJlZFBsYWNlbWVudENsYXNzKX0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtoYXNIaW50ICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhpbnRXcmFwcGVyIGNsYXNzTmFtZT17Y2xhc3Nlcy5pbm5lckxhYmVsUGxhY2VtZW50fT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtIaW50Q29tcG9uZW50fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZEhpbnRXcmFwcGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICA8Lz5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAge2NvbnRlbnRSaWdodCAmJiA8U3R5bGVkQ29udGVudD57Y29udGVudFJpZ2h0fTwvU3R5bGVkQ29udGVudD59XG4gICAgICAgICAgICAgICAgICAgIDxTdHlsZWRUZXh0QXJlYVdyYXBwZXIgY2xhc3NOYW1lPXtzdHlsZWRUZXh0QXJlYVdyYXBwZXJ9IGhhc0hlbHBlcj17aGFzSGVscGVyfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRUZXh0QXJlYVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y3goc3R5bGVkVGV4dEFyZWEsIGhhc1JpZ2h0Q29udGVudENsYXNzKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZD17aWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzQ29udGVudFJpZ2h0PXtCb29sZWFuKGNvbnRlbnRSaWdodCl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzSGVscGVyPXtoYXNIZWxwZXJ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXBwbHlDdXN0b21XaWR0aD17YXBwbHlDdXN0b21XaWR0aH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWY9e21lcmdlUmVmcyhvdXRlclJlZiwgaW5uZXJSZWYpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ9e2F1dG9SZXNpemUgfHwgQm9vbGVhbihjbGVhcikgPyBtaW5BdXRvIDogaGVpZ2h0fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoPXt3aWR0aH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJMYWJlbH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcmlhLWRlc2NyaWJlZGJ5PXt0ZXh0YXJlYUhlbHBlcklkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlPXt2YWx1ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93cz17cm93c31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xzPXtjb2xzfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc2l6ZT17cmVzaXplfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHRWYWx1ZT17ZGVmYXVsdFZhbHVlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlPXtvbkNoYW5nZUhhbmRsZXJ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgey4uLnJlc3R9XG4gICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZFRleHRBcmVhV3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAge2hhc0hlbHBlciAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSGVscGVycyBjbGFzc05hbWU9e3N0eWxlZEhlbHBlcnN9IGlkPXt0ZXh0YXJlYUhlbHBlcklkfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7KGxlZnRIZWxwZXIgfHwgaGVscGVyVGV4dCkgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkTGVmdEhlbHBlcj57bGVmdEhlbHBlciB8fCBoZWxwZXJUZXh0fTwvU3R5bGVkTGVmdEhlbHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtyaWdodEhlbHBlciAmJiA8U3R5bGVkUmlnaHRIZWxwZXI+e3JpZ2h0SGVscGVyfTwvU3R5bGVkUmlnaHRIZWxwZXI+fVxuICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRIZWxwZXJzPlxuICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICB7cGxhY2Vob2xkZXJMYWJlbCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkUGxhY2Vob2xkZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNDb250ZW50UmlnaHQ9e0Jvb2xlYW4oY29udGVudFJpZ2h0KX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e3N0eWxlZFBsYWNlaG9sZGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGh0bWxGb3I9e2lkfVxuICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtwbGFjZWhvbGRlckxhYmVsfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHshaGFzT3V0ZXJMYWJlbCAmJiBvcHRpb25hbFRleHROb2RlfVxuICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRQbGFjZWhvbGRlcj5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8L1N0eWxlZENvbnRhaW5lcj5cbiAgICAgICAgICAgIDwvUm9vdD5cbiAgICAgICAgKTtcbiAgICB9KTtcblxuZXhwb3J0IGNvbnN0IHRleHRBcmVhQ29uZmlnID0ge1xuICAgIG5hbWU6ICdUZXh0QXJlYScsXG4gICAgdGFnOiAnZGl2JyxcbiAgICBsYXlvdXQ6IHRleHRBcmVhUm9vdCxcbiAgICBiYXNlLFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgY3NzOiBzaXplQ1NTLFxuICAgICAgICB9LFxuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBjc3M6IHZpZXdDU1MsXG4gICAgICAgIH0sXG4gICAgICAgIGNsZWFyOiB7XG4gICAgICAgICAgICBjc3M6IGNsZWFyQ1NTLFxuICAgICAgICAgICAgYXR0cnM6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICBjc3M6IGRpc2FibGVkQ1NTLFxuICAgICAgICAgICAgYXR0cnM6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIHJlYWRPbmx5OiB7XG4gICAgICAgICAgICBhdHRyczogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgaGludFZpZXc6IHtcbiAgICAgICAgICAgIGNzczogaGludFZpZXdDU1MsXG4gICAgICAgIH0sXG4gICAgICAgIGhpbnRTaXplOiB7XG4gICAgICAgICAgICBjc3M6IGhpbnRTaXplQ1NTLFxuICAgICAgICB9LFxuICAgIH0sXG4gICAgZGVmYXVsdHM6IHtcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgICAgICB2aWV3OiAncHJpbWFyeScsXG4gICAgfSxcbn07XG4iXX0= */"));
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVGV4dEFyZWEvVGV4dEFyZWEudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBDZ0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UZXh0QXJlYS9UZXh0QXJlYS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgZm9yd2FyZFJlZiwgdXNlU3RhdGUsIGNyZWF0ZVJlZiwgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VSZXNpemVPYnNlcnZlciB9IGZyb20gJ0BzYWx1dGVqcy9wbGFzbWEtY29yZSc7XG5cbmltcG9ydCB7IGN4LCBtZXJnZVJlZnMgfSBmcm9tICcuLi8uLi91dGlscyc7XG5pbXBvcnQgdHlwZSB7IFJvb3RQcm9wcyB9IGZyb20gJy4uLy4uL2VuZ2luZXMvdHlwZXMnO1xuXG5pbXBvcnQgeyBhcHBseUR5bmFtaWNMYWJlbCB9IGZyb20gJy4vbWl4aW5zJztcbmltcG9ydCB7IHVzZUF1dG9SZXNpemUsIFJPT1RfRk9OVF9TSVpFIH0gZnJvbSAnLi9ob29rcyc7XG5pbXBvcnQge1xuICAgIFN0eWxlZENvb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PT09ICdvdXRlcicgJiYgdmFsdWUpIHx8XG4gICAgICAgIChsYWJlbFBsYWNlbWVudCA9PT0gJ2lubmVyJyAmJiBzaXplID09PSAneHMnICYmIHZhbHVlKVxuICAgICAgICAgICAgPyBoaWRlUGxhY2VIb2xkZXJcbiAgICAgICAgICAgIDogdW5kZWZpbmVkO1xuXG4gICAgcmV0dXJuIFt3aXRoRm9jdXNlZE91dGVyVXBQbGFjZWhvbGRlciwgd2l0aElubmVyUGxhY2Vob2xkZXJVcCwgd2l0aEhpZGVQbGFjZWhvbGRlcl07XG59O1xuXG5leHBvcnQgY29uc3QgdGV4dEFyZWFSb290ID0gKFJvb3Q6IFJvb3RQcm9wczxIVE1MVGV4dEFyZWFFbGVtZW50LCBUZXh0QXJlYVByb3BzPikgPT5cbiAgICBmb3J3YXJkUmVmPEhUTUxUZXh0QXJlYUVsZW1lbnQsIFRleHRBcmVhUHJvcHM+KChwcm9wcywgaW5uZXJSZWYpID0+IHtcbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgaGVscGVyVGV4dCxcbiAgICAgICAgICAgIHN0YXR1cyxcbiAgICAgICAgICAgIHJlc2l6ZSxcbiAgICAgICAgICAgIHJpZ2h0SGVscGVyLFxuICAgICAgICAgICAgbGVmdEhlbHBlcixcbiAgICAgICAgICAgIGNvbnRlbnRSaWdodCxcbiAgICAgICAgICAgIGF1dG9SZXNpemUgPSBmYWxzZSxcbiAgICAgICAgICAgIG1pbkF1dG8gPSAwLFxuICAgICAgICAgICAgbWF4QXV0byxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgbGFiZWxQbGFjZW1lbnQgPSAnaW5uZXInLFxuICAgICAgICAgICAgcGxhY2Vob2xkZXIsXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICBoZWlnaHQsXG4gICAgICAgICAgICB3aWR0aCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICA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U0LvRjyDQutGA0LDQudC90LUg0YDQtdC00LrQuNGFINC60LXQudGB0L7Qsiwg0LrQvtCz0LTQsCB2YWx1ZSDRgdC90LDRgNGD0LbQuCDQvdC1INC60L7QvdGC0YDQvtC70LjRgNGD0LXRgtGB0Y9cbiAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICBzZXRVbmNvbnRyb2xsZWRWYWx1ZShldmVudD8udGFyZ2V0LnZhbHVlKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBvbkNoYW5nZT8uKGV2ZW50KTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbdmFsdWUsIG9uQ2hhbmdlXSxcbiAgICAgICAgKTtcblxuICAgICAgICBjb25zdCBoYW5kbGVUZXh0QXJlYUZvY3VzID0gKCkgPT4ge1xuICAgICAgICAgICAgaWYgKHJlYWRPbmx5IHx8IGRpc2FibGVkIHx8ICFvdXRlclJlZj8uY3VycmVudCkge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgb3V0ZXJSZWYuY3VycmVudC5zY3JvbGxUbyh7XG4gICAgICAgICAgICAgICAgdG9wOiAwLFxuICAgICAgICAgICAgICAgIGxlZnQ6IG91dGVyUmVmLmN1cnJlbnQub2Zmc2V0TGVmdCxcbiAgICAgICAgICAgICAgICBiZWhhdmlvcjogJ3Ntb290aCcsXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgb3V0ZXJSZWYuY3VycmVudC5mb2N1cygpO1xuICAgICAgICB9O1xuXG4gICAgICAgIGNvbnN0IGR5bmFtaWNMYWJlbENsYXNzZXMgPSBnZXREeW5hbWljTGFiZWxDbGFzc2VzKFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHNpemUsXG4gICAgICAgICAgICAgICAgcmVhZE9ubHksXG4gICAgICAgICAgICAgICAgbGFiZWwsXG4gICAgICAgICAgICAgICAgbGFiZWxQbGFjZW1lbnQsXG4gICAgICAgICAgICAgICAgdmFsdWU6IHZhbHVlIHx8IHVuY29udHJvbGxlZFZhbHVlIHx8IGRlZmF1bHRWYWx1ZSxcbiAgICAgICAgICAgICAgICByb3dzLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZvY3VzZWQsXG4gICAgICAgICk7XG5cbiAgICAgICAgY29uc3Qgb3B0aW9uYWxUZXh0Tm9kZSA9IGlubmVyT3B0aW9uYWwgPyAoXG4gICAgICAgICAgICA8U3R5bGVkT3B0aW9uYWxUZXh0PlxuICAgICAgICAgICAgICAgIHtCb29sZWFuKGhhc1BsYWNlaG9sZGVyT3B0aW9uYWwgPyBwbGFjZWhvbGRlckxhYmVsIDogbGFiZWwpICYmICdcXHhhMCd9XG4gICAgICAgICAgICAgICAge29wdGlvbmFsVGV4dH1cbiAgICAgICAgICAgIDwvU3R5bGVkT3B0aW9uYWxUZXh0PlxuICAgICAgICApIDogbnVsbDtcblxuICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPFJvb3RcbiAgICAgICAgICAgICAgICB2aWV3PXtvdmVycmlkZGVuVmlld31cbiAgICAgICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICAgICAgY2xlYXI9e2NsZWFyfVxuICAgICAgICAgICAgICAgIHN0eWxlPXt7IHdpZHRoOiBoZWxwZXJXaWR0aCwgLi4uc3R5bGUgfX1cbiAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KGNsZWFyQ2xhc3MsIGhhc0RpdmlkZXJDbGFzcywgY2xhc3NOYW1lKX1cbiAgICAgICAgICAgICAgICBvbkNsaWNrPXtoYW5kbGVUZXh0QXJlYUZvY3VzfVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtoYXNPdXRlckxhYmVsICYmIChcbiAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExhYmVsPlxuICAgICAgICAgICAgICAgICAgICAgICAge3JlcXVpcmVkICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkSW5kaWNhdG9yIGNsYXNzTmFtZT17Y3goY2xhc3Nlcy5vdXRlckxhYmVsUGxhY2VtZW50LCByZXF1aXJlZFBsYWNlbWVudENsYXNzKX0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICB7bGFiZWx9XG4gICAgICAgICAgICAgICAgICAgICAgICB7b3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRMYWJlbD5cbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIDxTdHlsZWRDb250YWluZXJcbiAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjeChzdHlsZWRDb250YWluZXIsIC4uLmR5bmFtaWNMYWJlbENsYXNzZXMpfVxuICAgICAgICAgICAgICAgICAgICB3aWR0aD17aGVscGVyV2lkdGh9XG4gICAgICAgICAgICAgICAgICAgIG9uRm9jdXM9e29uRm9jdXNIYW5kbGVyfVxuICAgICAgICAgICAgICAgICAgICBvbkJsdXI9e29uQmx1ckhhbmRsZXJ9XG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQgJiYgIWhhc091dGVyTGFiZWwgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEluZGljYXRvciBjbGFzc05hbWU9e2N4KGNsYXNzZXMuaW5uZXJMYWJlbFBsYWNlbWVudCwgcmVxdWlyZWRQbGFjZW1lbnRDbGFzcyl9IC8+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgIHtjb250ZW50UmlnaHQgJiYgPFN0eWxlZENvbnRlbnQ+e2NvbnRlbnRSaWdodH08L1N0eWxlZENvbnRlbnQ+fVxuICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFXcmFwcGVyIGNsYXNzTmFtZT17c3R5bGVkVGV4dEFyZWFXcmFwcGVyfSBoYXNIZWxwZXI9e2hhc0hlbHBlcn0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8U3R5bGVkVGV4dEFyZWFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHN0eWxlZFRleHRBcmVhLCBoYXNSaWdodENvbnRlbnRDbGFzcyl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9e2lkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0NvbnRlbnRSaWdodD17Qm9vbGVhbihjb250ZW50UmlnaHQpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0hlbHBlcj17aGFzSGVscGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFwcGx5Q3VzdG9tV2lkdGg9e2FwcGx5Q3VzdG9tV2lkdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXttZXJnZVJlZnMob3V0ZXJSZWYsIGlubmVyUmVmKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0PXthdXRvUmVzaXplIHx8IEJvb2xlYW4oY2xlYXIpID8gbWluQXV0byA6IGhlaWdodH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aD17d2lkdGh9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyTGFiZWx9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXJpYS1kZXNjcmliZWRieT17dGV4dGFyZWFIZWxwZXJJZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZT17dmFsdWV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVhZE9ubHk9e3JlYWRPbmx5fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvd3M9e3Jvd3N9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29scz17Y29sc31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNpemU9e3Jlc2l6ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0VmFsdWU9e2RlZmF1bHRWYWx1ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZT17b25DaGFuZ2VIYW5kbGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRUZXh0QXJlYVdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgIHtoYXNIZWxwZXIgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZEhlbHBlcnMgY2xhc3NOYW1lPXtzdHlsZWRIZWxwZXJzfSBpZD17dGV4dGFyZWFIZWxwZXJJZH0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeyhsZWZ0SGVscGVyIHx8IGhlbHBlclRleHQpICYmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZExlZnRIZWxwZXI+e2xlZnRIZWxwZXIgfHwgaGVscGVyVGV4dH08L1N0eWxlZExlZnRIZWxwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cmlnaHRIZWxwZXIgJiYgPFN0eWxlZFJpZ2h0SGVscGVyPntyaWdodEhlbHBlcn08L1N0eWxlZFJpZ2h0SGVscGVyPn1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkSGVscGVycz5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAge3BsYWNlaG9sZGVyTGFiZWwgJiYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgPFN0eWxlZFBsYWNlaG9sZGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGFzQ29udGVudFJpZ2h0PXtCb29sZWFuKGNvbnRlbnRSaWdodCl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPXtzdHlsZWRQbGFjZWhvbGRlcn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBodG1sRm9yPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7cGxhY2Vob2xkZXJMYWJlbH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IWhhc091dGVyTGFiZWwgJiYgb3B0aW9uYWxUZXh0Tm9kZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkUGxhY2Vob2xkZXI+XG4gICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgPC9TdHlsZWRDb250YWluZXI+XG4gICAgICAgICAgICA8L1Jvb3Q+XG4gICAgICAgICk7XG4gICAgfSk7XG5cbmV4cG9ydCBjb25zdCB0ZXh0QXJlYUNvbmZpZyA9IHtcbiAgICBuYW1lOiAnVGV4dEFyZWEnLFxuICAgIHRhZzogJ2RpdicsXG4gICAgbGF5b3V0OiB0ZXh0QXJlYVJvb3QsXG4gICAgYmFzZSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIGNzczogc2l6ZUNTUyxcbiAgICAgICAgfSxcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgY3NzOiB2aWV3Q1NTLFxuICAgICAgICB9LFxuICAgICAgICBjbGVhcjoge1xuICAgICAgICAgICAgY3NzOiBjbGVhckNTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgY3NzOiBkaXNhYmxlZENTUyxcbiAgICAgICAgICAgIGF0dHJzOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICByZWFkT25seToge1xuICAgICAgICAgICAgYXR0cnM6IHRydWUsXG4gICAgICAgIH0sXG4gICAgfSxcbiAgICBkZWZhdWx0czoge1xuICAgICAgICBzaXplOiAnbScsXG4gICAgICAgIHZpZXc6ICdwcmltYXJ5JyxcbiAgICB9LFxufTtcbiJdfQ== */"));
48
43
 
49
44
  // TODO: Удалить после отказа от старых библиотек plasma-web / plasma-b2c
50
45
  var fallbackStatusMap = {
@@ -89,7 +84,6 @@ export var textAreaRoot = function textAreaRoot(Root) {
89
84
  label = props.label,
90
85
  _props$labelPlacement = props.labelPlacement,
91
86
  labelPlacement = _props$labelPlacement === void 0 ? 'inner' : _props$labelPlacement,
92
- titleCaption = props.titleCaption,
93
87
  placeholder = props.placeholder,
94
88
  defaultValue = props.defaultValue,
95
89
  height = props.height,
@@ -112,47 +106,21 @@ export var textAreaRoot = function textAreaRoot(Root) {
112
106
  readOnly = props.readOnly,
113
107
  rows = props.rows,
114
108
  cols = props.cols,
115
- hasHint = props.hasHint,
116
- _props$hintTrigger = props.hintTrigger,
117
- hintTrigger = _props$hintTrigger === void 0 ? 'hover' : _props$hintTrigger,
118
- hintText = props.hintText,
119
- _props$hintView = props.hintView,
120
- hintView = _props$hintView === void 0 ? 'default' : _props$hintView,
121
- _props$hintSize = props.hintSize,
122
- hintSize = _props$hintSize === void 0 ? 'm' : _props$hintSize,
123
- hintTargetIcon = props.hintTargetIcon,
124
- _props$hintPlacement = props.hintPlacement,
125
- hintPlacement = _props$hintPlacement === void 0 ? 'auto' : _props$hintPlacement,
126
- hintHasArrow = props.hintHasArrow,
127
- _props$hintOffset = props.hintOffset,
128
- hintOffset = _props$hintOffset === void 0 ? [0, 0] : _props$hintOffset,
129
- hintWidth = props.hintWidth,
130
- hintContentLeft = props.hintContentLeft,
131
109
  onChange = props.onChange,
132
110
  rest = _objectWithoutProperties(props, _excluded);
133
- var _useState = useState(false),
111
+ var _useState = useState(width ? "".concat(width, "rem") : '100%'),
134
112
  _useState2 = _slicedToArray(_useState, 2),
135
- isHintVisible = _useState2[0],
136
- setIsHintVisible = _useState2[1];
137
- var _useState3 = useState(width ? "".concat(width, "rem") : '100%'),
113
+ helperWidth = _useState2[0],
114
+ setHelperWidth = _useState2[1];
115
+ var _useState3 = useState(false),
138
116
  _useState4 = _slicedToArray(_useState3, 2),
139
- helperWidth = _useState4[0],
140
- setHelperWidth = _useState4[1];
141
- var _useState5 = useState(false),
117
+ focused = _useState4[0],
118
+ setFocused = _useState4[1];
119
+ var _useState5 = useState(),
142
120
  _useState6 = _slicedToArray(_useState5, 2),
143
- focused = _useState6[0],
144
- setFocused = _useState6[1];
145
- var _useState7 = useState(),
146
- _useState8 = _slicedToArray(_useState7, 2),
147
- uncontrolledValue = _useState8[0],
148
- setUncontrolledValue = _useState8[1];
121
+ uncontrolledValue = _useState6[0],
122
+ setUncontrolledValue = _useState6[1];
149
123
  var outerRef = /*#__PURE__*/createRef();
150
- var hintId = safeUseId();
151
- var hintRef = useOutsideClick(function () {
152
- setIsHintVisible(false);
153
- });
154
- var hintInnerRef = useRef(null);
155
- var hintForkRef = useForkRef(hintRef, hintInnerRef);
156
124
  var innerOptional = required ? false : optional;
157
125
  var hasHelper = Boolean(leftHelper || rightHelper || helperText);
158
126
  var hasOuterLabel = Boolean(label && labelPlacement === 'outer');
@@ -163,27 +131,9 @@ export var textAreaRoot = function textAreaRoot(Root) {
163
131
  var applyCustomWidth = resize !== 'horizontal' && resize !== 'both' && !cols;
164
132
  var placeholderLabel = hasInnerLabel ? label : placeholder;
165
133
  var clearClass = clear ? classes.clear : undefined;
166
- var hasHintClass = hasHint ? classes.hasHint : undefined;
167
134
  var hasRightContentClass = contentRight ? classes.hasRightContent : undefined;
168
135
  var hasDividerClass = hasDivider ? classes.hasDivider : undefined;
169
136
  var requiredPlacementClass = requiredPlacement === 'right' ? 'align-right ' : undefined;
170
- var handleHintShow = function handleHintShow() {
171
- return setIsHintVisible(true);
172
- };
173
- var handleHintHide = function handleHintHide() {
174
- return setIsHintVisible(false);
175
- };
176
- var handleHintClick = function handleHintClick(event) {
177
- if (hasHint && hintTrigger === 'click') {
178
- var _hintInnerRef$current;
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
- }
186
- };
187
137
  useResizeObserver(outerRef, function (currentElement) {
188
138
  var inlineWidth = currentElement.style.width;
189
139
  if (inlineWidth || cols) {
@@ -206,6 +156,17 @@ export var textAreaRoot = function textAreaRoot(Root) {
206
156
  }
207
157
  onChange === null || onChange === void 0 || onChange(event);
208
158
  }, [value, onChange]);
159
+ var handleTextAreaFocus = function handleTextAreaFocus() {
160
+ if (readOnly || disabled || !(outerRef !== null && outerRef !== void 0 && outerRef.current)) {
161
+ return;
162
+ }
163
+ outerRef.current.scrollTo({
164
+ top: 0,
165
+ left: outerRef.current.offsetLeft,
166
+ behavior: 'smooth'
167
+ });
168
+ outerRef.current.focus();
169
+ };
209
170
  var dynamicLabelClasses = getDynamicLabelClasses({
210
171
  size: size,
211
172
  readOnly: readOnly,
@@ -214,35 +175,8 @@ export var textAreaRoot = function textAreaRoot(Root) {
214
175
  value: value || uncontrolledValue || defaultValue,
215
176
  rows: rows
216
177
  }, focused);
217
- var optionalTextNode = innerOptional ? /*#__PURE__*/React.createElement(StyledOptionalText, {
218
- inheritFont: !hasOuterLabel
219
- }, Boolean(hasPlaceholderOptional ? placeholderLabel : label) && '\xa0', optionalText) : null;
220
- var HintComponent = useMemo(function () {
221
- return /*#__PURE__*/React.createElement(Hint, {
222
- ref: hintForkRef,
223
- text: String(hintText),
224
- opened: isHintVisible,
225
- target: /*#__PURE__*/React.createElement(HintTargetWrapper, _extends({
226
- id: hintId
227
- }, hintTrigger === 'hover' ? {
228
- onMouseEnter: handleHintShow,
229
- onMouseLeave: handleHintHide
230
- } : {
231
- onClick: handleHintClick
232
- }), hintTargetIcon || _IconInfoCircleOutlin || (_IconInfoCircleOutlin = /*#__PURE__*/React.createElement(IconInfoCircleOutline, {
233
- size: "xs",
234
- color: "inherit"
235
- }))),
236
- placement: hintPlacement,
237
- hasArrow: hintHasArrow,
238
- offset: hintOffset,
239
- minWidth: hintWidth,
240
- maxWidth: hintWidth,
241
- contentLeft: hintContentLeft,
242
- frame: hintId
243
- });
244
- }, [hintText, isHintVisible, hintId, hintTrigger, handleHintShow, handleHintHide, handleHintClick, hintTargetIcon, hintPlacement, hintHasArrow, hintOffset, hintWidth, hintContentLeft]);
245
- return /*#__PURE__*/React.createElement(Root, _extends({
178
+ var optionalTextNode = innerOptional ? /*#__PURE__*/React.createElement(StyledOptionalText, null, Boolean(hasPlaceholderOptional ? placeholderLabel : label) && '\xa0', optionalText) : null;
179
+ return /*#__PURE__*/React.createElement(Root, {
246
180
  view: overriddenView,
247
181
  size: size,
248
182
  disabled: disabled,
@@ -251,24 +185,18 @@ export var textAreaRoot = function textAreaRoot(Root) {
251
185
  style: _objectSpread({
252
186
  width: helperWidth
253
187
  }, style),
254
- className: cx(clearClass, hasDividerClass, hasHintClass, className)
255
- }, hasHint && {
256
- hintView: hintView || 'default',
257
- hintSize: hintSize || 'm'
258
- }), (hasOuterLabel || titleCaption) && /*#__PURE__*/React.createElement(OuterLabelWrapper, {
259
- isInnnerLabel: labelPlacement === 'inner'
260
- }, hasOuterLabel && /*#__PURE__*/React.createElement(StyledIndicatorWrapper, null, /*#__PURE__*/React.createElement(StyledLabel, null, label), hasHint && /*#__PURE__*/React.createElement(StyledHintWrapper, null, HintComponent), 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, {
188
+ className: cx(clearClass, hasDividerClass, className),
189
+ 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, {
263
193
  className: cx.apply(void 0, [styledContainer].concat(_toConsumableArray(dynamicLabelClasses))),
264
194
  width: helperWidth,
265
195
  onFocus: onFocusHandler,
266
196
  onBlur: onBlurHandler
267
- }, !hasOuterLabel && /*#__PURE__*/React.createElement(React.Fragment, null, required && /*#__PURE__*/React.createElement(StyledIndicator, {
197
+ }, required && !hasOuterLabel && /*#__PURE__*/React.createElement(StyledIndicator, {
268
198
  className: cx(classes.innerLabelPlacement, requiredPlacementClass)
269
- }), hasHint && /*#__PURE__*/React.createElement(StyledHintWrapper, {
270
- className: classes.innerLabelPlacement
271
- }, HintComponent)), contentRight && /*#__PURE__*/React.createElement(StyledContent, null, contentRight), /*#__PURE__*/React.createElement(StyledTextAreaWrapper, {
199
+ }), contentRight && /*#__PURE__*/React.createElement(StyledContent, null, contentRight), /*#__PURE__*/React.createElement(StyledTextAreaWrapper, {
272
200
  className: styledTextAreaWrapper,
273
201
  hasHelper: hasHelper
274
202
  }, /*#__PURE__*/React.createElement(StyledTextArea, _extends({
@@ -322,12 +250,6 @@ export var textAreaConfig = {
322
250
  },
323
251
  readOnly: {
324
252
  attrs: true
325
- },
326
- hintView: {
327
- css: hintViewCSS
328
- },
329
- hintSize: {
330
- css: hintSizeCSS
331
253
  }
332
254
  },
333
255
  defaults: {