@salutejs/plasma-new-hope 0.174.0-canary.1511.11518967304.0 → 0.174.1-canary.1512.11549467998.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (391) hide show
  1. package/cjs/components/Drawer/Drawer.js +2 -1
  2. package/cjs/components/Drawer/Drawer.js.map +1 -1
  3. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  4. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -1
  5. package/cjs/components/Popover/Popover.js +2 -1
  6. package/cjs/components/Popover/Popover.js.map +1 -1
  7. package/cjs/components/ViewContainer/ViewContainer.js +38 -0
  8. package/cjs/components/ViewContainer/ViewContainer.js.map +1 -0
  9. package/cjs/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  10. package/cjs/components/{NumberInput/variations → ViewContainer}/_view/base.js +2 -2
  11. package/cjs/components/ViewContainer/_view/base.js.map +1 -0
  12. package/cjs/index.css +1 -24
  13. package/cjs/index.js +3 -6
  14. package/cjs/index.js.map +1 -1
  15. package/emotion/cjs/components/Drawer/Drawer.js +4 -3
  16. package/emotion/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  17. package/emotion/cjs/components/Popover/Popover.js +2 -1
  18. package/emotion/cjs/components/ViewContainer/ViewContainer.js +49 -0
  19. package/emotion/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  20. package/emotion/cjs/components/ViewContainer/_view/base.js +8 -0
  21. package/emotion/cjs/components/ViewContainer/_view/tokens.json +1 -0
  22. package/emotion/cjs/components/ViewContainer/index.js +18 -0
  23. package/emotion/cjs/examples/_helpers.js +3 -14
  24. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  25. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  26. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  27. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  28. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  29. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  30. package/emotion/cjs/index.js +4 -4
  31. package/emotion/es/components/Drawer/Drawer.js +2 -1
  32. package/emotion/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  33. package/emotion/es/components/Popover/Popover.js +2 -1
  34. package/emotion/es/components/ViewContainer/ViewContainer.js +40 -0
  35. package/emotion/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  36. package/emotion/es/components/ViewContainer/_view/base.js +2 -0
  37. package/emotion/es/components/ViewContainer/_view/tokens.json +1 -0
  38. package/emotion/es/components/ViewContainer/index.js +1 -0
  39. package/emotion/es/examples/_helpers.js +3 -14
  40. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  41. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  42. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  43. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  44. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  45. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  46. package/emotion/es/index.js +1 -1
  47. package/es/components/Drawer/Drawer.js +2 -1
  48. package/es/components/Drawer/Drawer.js.map +1 -1
  49. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  50. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -1
  51. package/es/components/Popover/Popover.js +2 -1
  52. package/es/components/Popover/Popover.js.map +1 -1
  53. package/es/components/ViewContainer/ViewContainer.js +33 -0
  54. package/es/components/ViewContainer/ViewContainer.js.map +1 -0
  55. package/es/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  56. package/es/components/{NumberInput/variations/_segmentation → ViewContainer/_view}/base.js +2 -2
  57. package/es/components/ViewContainer/_view/base.js.map +1 -0
  58. package/es/index.css +1 -24
  59. package/es/index.js +1 -2
  60. package/es/index.js.map +1 -1
  61. package/package.json +3 -2
  62. package/styled-components/cjs/components/Drawer/Drawer.js +4 -3
  63. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  64. package/styled-components/cjs/components/Popover/Popover.js +2 -1
  65. package/styled-components/cjs/components/ViewContainer/ViewContainer.js +40 -0
  66. package/styled-components/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  67. package/styled-components/cjs/components/{NumberInput/NumberInput.styles.js → ViewContainer/_view/base.js} +1 -1
  68. package/styled-components/cjs/components/ViewContainer/_view/tokens.json +1 -0
  69. package/styled-components/cjs/components/ViewContainer/index.js +18 -0
  70. package/styled-components/cjs/examples/_helpers.js +3 -14
  71. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  72. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  73. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  74. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  75. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  76. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  77. package/styled-components/cjs/index.js +4 -4
  78. package/styled-components/es/components/Drawer/Drawer.js +2 -1
  79. package/styled-components/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +2 -1
  80. package/styled-components/es/components/Popover/Popover.js +2 -1
  81. package/styled-components/es/components/ViewContainer/ViewContainer.js +31 -0
  82. package/styled-components/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  83. package/styled-components/es/components/ViewContainer/_view/base.js +2 -0
  84. package/styled-components/es/components/ViewContainer/_view/tokens.json +1 -0
  85. package/styled-components/es/components/ViewContainer/index.js +1 -0
  86. package/styled-components/es/examples/_helpers.js +3 -14
  87. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  88. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  89. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  90. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  91. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  92. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  93. package/styled-components/es/index.js +1 -1
  94. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  95. package/types/components/Dropdown/ui/DropdownOld/DropdownOld.d.ts.map +1 -1
  96. package/types/components/Popover/Popover.d.ts.map +1 -1
  97. package/types/components/ViewContainer/ViewContainer.d.ts +26 -0
  98. package/types/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  99. package/types/components/ViewContainer/_view/base.d.ts.map +1 -0
  100. package/types/components/ViewContainer/index.d.ts +2 -0
  101. package/types/components/ViewContainer/index.d.ts.map +1 -0
  102. package/types/examples/_helpers.d.ts.map +1 -1
  103. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  104. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  105. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts +8 -0
  106. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  107. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  108. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  109. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts +8 -0
  110. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  111. package/types/index.d.ts +1 -1
  112. package/types/index.d.ts.map +1 -1
  113. package/cjs/components/NumberInput/NumberInput.css +0 -54
  114. package/cjs/components/NumberInput/NumberInput.js +0 -188
  115. package/cjs/components/NumberInput/NumberInput.js.map +0 -1
  116. package/cjs/components/NumberInput/NumberInput.styles.js +0 -9
  117. package/cjs/components/NumberInput/NumberInput.styles.js.map +0 -1
  118. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  119. package/cjs/components/NumberInput/NumberInput.tokens.js +0 -90
  120. package/cjs/components/NumberInput/NumberInput.tokens.js.map +0 -1
  121. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -19
  122. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  123. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -22
  124. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  125. package/cjs/components/NumberInput/ui/Input/Input.css +0 -15
  126. package/cjs/components/NumberInput/ui/Input/Input.js +0 -190
  127. package/cjs/components/NumberInput/ui/Input/Input.js.map +0 -1
  128. package/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -96
  129. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  130. package/cjs/components/NumberInput/ui/Input/Input.styles_jszc0c.css +0 -8
  131. package/cjs/components/NumberInput/utils/index.js +0 -8
  132. package/cjs/components/NumberInput/utils/index.js.map +0 -1
  133. package/cjs/components/NumberInput/variations/_background-type/base.js +0 -9
  134. package/cjs/components/NumberInput/variations/_background-type/base.js.map +0 -1
  135. package/cjs/components/NumberInput/variations/_background-type/base_1jmdljr.css +0 -1
  136. package/cjs/components/NumberInput/variations/_clear/base.js +0 -9
  137. package/cjs/components/NumberInput/variations/_clear/base.js.map +0 -1
  138. package/cjs/components/NumberInput/variations/_clear/base_3l8dqb.css +0 -1
  139. package/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  140. package/cjs/components/NumberInput/variations/_disabled/base.js.map +0 -1
  141. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  142. package/cjs/components/NumberInput/variations/_segmentation/base.js +0 -9
  143. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  144. package/cjs/components/NumberInput/variations/_segmentation/base_nl8ve.css +0 -1
  145. package/cjs/components/NumberInput/variations/_shape/base.js +0 -9
  146. package/cjs/components/NumberInput/variations/_shape/base.js.map +0 -1
  147. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  148. package/cjs/components/NumberInput/variations/_size/base.js +0 -9
  149. package/cjs/components/NumberInput/variations/_size/base.js.map +0 -1
  150. package/cjs/components/NumberInput/variations/_size/base_1pju5qf.css +0 -1
  151. package/cjs/components/NumberInput/variations/_view/base.js.map +0 -1
  152. package/cjs/components/NumberInput/variations/_view/base_cghr9q.css +0 -1
  153. package/emotion/cjs/components/NumberInput/NumberInput.js +0 -198
  154. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +0 -17
  155. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +0 -87
  156. package/emotion/cjs/components/NumberInput/NumberInput.types.js +0 -5
  157. package/emotion/cjs/components/NumberInput/index.js +0 -31
  158. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  159. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -16
  160. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  161. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -198
  162. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -82
  163. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  164. package/emotion/cjs/components/NumberInput/ui/index.js +0 -19
  165. package/emotion/cjs/components/NumberInput/utils/index.js +0 -7
  166. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  167. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  168. package/emotion/cjs/components/NumberInput/variations/_clear/base.js +0 -12
  169. package/emotion/cjs/components/NumberInput/variations/_clear/tokens.json +0 -5
  170. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  171. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  172. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  173. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  174. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  175. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  176. package/emotion/cjs/components/NumberInput/variations/_size/base.js +0 -13
  177. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  178. package/emotion/cjs/components/NumberInput/variations/_view/base.js +0 -13
  179. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  180. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -48
  181. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  182. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  183. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -48
  184. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  185. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  186. package/emotion/cjs/examples/themes/declaration.d.ts +0 -4
  187. package/emotion/cjs/examples/themes/index.js +0 -15
  188. package/emotion/cjs/examples/themes/plasma_b2c.module.css +0 -984
  189. package/emotion/cjs/examples/themes/plasma_web.module.css +0 -984
  190. package/emotion/es/components/NumberInput/NumberInput.js +0 -190
  191. package/emotion/es/components/NumberInput/NumberInput.styles.js +0 -11
  192. package/emotion/es/components/NumberInput/NumberInput.tokens.js +0 -81
  193. package/emotion/es/components/NumberInput/NumberInput.types.js +0 -1
  194. package/emotion/es/components/NumberInput/index.js +0 -2
  195. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  196. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -9
  197. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  198. package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -189
  199. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +0 -75
  200. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  201. package/emotion/es/components/NumberInput/ui/index.js +0 -2
  202. package/emotion/es/components/NumberInput/utils/index.js +0 -1
  203. package/emotion/es/components/NumberInput/variations/_background-type/base.js +0 -4
  204. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  205. package/emotion/es/components/NumberInput/variations/_clear/base.js +0 -6
  206. package/emotion/es/components/NumberInput/variations/_clear/tokens.json +0 -5
  207. package/emotion/es/components/NumberInput/variations/_disabled/base.js +0 -3
  208. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  209. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  210. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  211. package/emotion/es/components/NumberInput/variations/_shape/base.js +0 -5
  212. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  213. package/emotion/es/components/NumberInput/variations/_size/base.js +0 -7
  214. package/emotion/es/components/NumberInput/variations/_size/tokens.json +0 -22
  215. package/emotion/es/components/NumberInput/variations/_view/base.js +0 -7
  216. package/emotion/es/components/NumberInput/variations/_view/tokens.json +0 -14
  217. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -42
  218. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  219. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  220. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -42
  221. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  222. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  223. package/emotion/es/examples/themes/declaration.d.ts +0 -4
  224. package/emotion/es/examples/themes/index.js +0 -7
  225. package/emotion/es/examples/themes/plasma_b2c.module.css +0 -984
  226. package/emotion/es/examples/themes/plasma_web.module.css +0 -984
  227. package/es/components/NumberInput/NumberInput.css +0 -54
  228. package/es/components/NumberInput/NumberInput.js +0 -183
  229. package/es/components/NumberInput/NumberInput.js.map +0 -1
  230. package/es/components/NumberInput/NumberInput.styles.js +0 -5
  231. package/es/components/NumberInput/NumberInput.styles.js.map +0 -1
  232. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
  233. package/es/components/NumberInput/NumberInput.tokens.js +0 -84
  234. package/es/components/NumberInput/NumberInput.tokens.js.map +0 -1
  235. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -15
  236. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
  237. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -18
  238. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
  239. package/es/components/NumberInput/ui/Input/Input.css +0 -15
  240. package/es/components/NumberInput/ui/Input/Input.js +0 -186
  241. package/es/components/NumberInput/ui/Input/Input.js.map +0 -1
  242. package/es/components/NumberInput/ui/Input/Input.styles.js +0 -85
  243. package/es/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
  244. package/es/components/NumberInput/ui/Input/Input.styles_jszc0c.css +0 -8
  245. package/es/components/NumberInput/utils/index.js +0 -4
  246. package/es/components/NumberInput/utils/index.js.map +0 -1
  247. package/es/components/NumberInput/variations/_background-type/base.js +0 -5
  248. package/es/components/NumberInput/variations/_background-type/base.js.map +0 -1
  249. package/es/components/NumberInput/variations/_background-type/base_1jmdljr.css +0 -1
  250. package/es/components/NumberInput/variations/_clear/base.js +0 -5
  251. package/es/components/NumberInput/variations/_clear/base.js.map +0 -1
  252. package/es/components/NumberInput/variations/_clear/base_3l8dqb.css +0 -1
  253. package/es/components/NumberInput/variations/_disabled/base.js +0 -5
  254. package/es/components/NumberInput/variations/_disabled/base.js.map +0 -1
  255. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
  256. package/es/components/NumberInput/variations/_segmentation/base.js.map +0 -1
  257. package/es/components/NumberInput/variations/_segmentation/base_nl8ve.css +0 -1
  258. package/es/components/NumberInput/variations/_shape/base.js +0 -5
  259. package/es/components/NumberInput/variations/_shape/base.js.map +0 -1
  260. package/es/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
  261. package/es/components/NumberInput/variations/_size/base.js +0 -5
  262. package/es/components/NumberInput/variations/_size/base.js.map +0 -1
  263. package/es/components/NumberInput/variations/_size/base_1pju5qf.css +0 -1
  264. package/es/components/NumberInput/variations/_view/base.js +0 -5
  265. package/es/components/NumberInput/variations/_view/base.js.map +0 -1
  266. package/es/components/NumberInput/variations/_view/base_cghr9q.css +0 -1
  267. package/styled-components/cjs/components/NumberInput/NumberInput.js +0 -198
  268. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +0 -87
  269. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +0 -5
  270. package/styled-components/cjs/components/NumberInput/index.js +0 -31
  271. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
  272. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -15
  273. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
  274. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -198
  275. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -49
  276. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
  277. package/styled-components/cjs/components/NumberInput/ui/index.js +0 -19
  278. package/styled-components/cjs/components/NumberInput/utils/index.js +0 -7
  279. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
  280. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
  281. package/styled-components/cjs/components/NumberInput/variations/_clear/base.js +0 -12
  282. package/styled-components/cjs/components/NumberInput/variations/_clear/tokens.json +0 -5
  283. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
  284. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
  285. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
  286. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  287. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +0 -11
  288. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
  289. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +0 -13
  290. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
  291. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +0 -13
  292. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
  293. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -48
  294. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
  295. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  296. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -48
  297. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
  298. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  299. package/styled-components/cjs/examples/themes/declaration.d.ts +0 -4
  300. package/styled-components/cjs/examples/themes/index.js +0 -15
  301. package/styled-components/cjs/examples/themes/plasma_b2c.module.css +0 -984
  302. package/styled-components/cjs/examples/themes/plasma_web.module.css +0 -984
  303. package/styled-components/es/components/NumberInput/NumberInput.js +0 -190
  304. package/styled-components/es/components/NumberInput/NumberInput.styles.js +0 -2
  305. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +0 -81
  306. package/styled-components/es/components/NumberInput/NumberInput.types.js +0 -1
  307. package/styled-components/es/components/NumberInput/index.js +0 -2
  308. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
  309. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -8
  310. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
  311. package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -189
  312. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +0 -42
  313. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +0 -1
  314. package/styled-components/es/components/NumberInput/ui/index.js +0 -2
  315. package/styled-components/es/components/NumberInput/utils/index.js +0 -1
  316. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +0 -4
  317. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
  318. package/styled-components/es/components/NumberInput/variations/_clear/base.js +0 -6
  319. package/styled-components/es/components/NumberInput/variations/_clear/tokens.json +0 -5
  320. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +0 -3
  321. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
  322. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +0 -6
  323. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
  324. package/styled-components/es/components/NumberInput/variations/_shape/base.js +0 -5
  325. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +0 -1
  326. package/styled-components/es/components/NumberInput/variations/_size/base.js +0 -7
  327. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +0 -22
  328. package/styled-components/es/components/NumberInput/variations/_view/base.js +0 -7
  329. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +0 -14
  330. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -42
  331. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
  332. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -109
  333. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -42
  334. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
  335. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -109
  336. package/styled-components/es/examples/themes/declaration.d.ts +0 -4
  337. package/styled-components/es/examples/themes/index.js +0 -7
  338. package/styled-components/es/examples/themes/plasma_b2c.module.css +0 -984
  339. package/styled-components/es/examples/themes/plasma_web.module.css +0 -984
  340. package/types/components/NumberInput/NumberInput.d.ts +0 -42
  341. package/types/components/NumberInput/NumberInput.d.ts.map +0 -1
  342. package/types/components/NumberInput/NumberInput.styles.d.ts +0 -2
  343. package/types/components/NumberInput/NumberInput.styles.d.ts.map +0 -1
  344. package/types/components/NumberInput/NumberInput.tokens.d.ts +0 -76
  345. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +0 -1
  346. package/types/components/NumberInput/NumberInput.types.d.ts +0 -112
  347. package/types/components/NumberInput/NumberInput.types.d.ts.map +0 -1
  348. package/types/components/NumberInput/index.d.ts +0 -3
  349. package/types/components/NumberInput/index.d.ts.map +0 -1
  350. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +0 -4
  351. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +0 -1
  352. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +0 -45
  353. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +0 -1
  354. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +0 -7
  355. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +0 -1
  356. package/types/components/NumberInput/ui/Input/Input.d.ts +0 -16
  357. package/types/components/NumberInput/ui/Input/Input.d.ts.map +0 -1
  358. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +0 -30
  359. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +0 -1
  360. package/types/components/NumberInput/ui/Input/Input.types.d.ts +0 -16
  361. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +0 -1
  362. package/types/components/NumberInput/ui/index.d.ts +0 -3
  363. package/types/components/NumberInput/ui/index.d.ts.map +0 -1
  364. package/types/components/NumberInput/utils/index.d.ts +0 -2
  365. package/types/components/NumberInput/utils/index.d.ts.map +0 -1
  366. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +0 -1
  367. package/types/components/NumberInput/variations/_clear/base.d.ts +0 -2
  368. package/types/components/NumberInput/variations/_clear/base.d.ts.map +0 -1
  369. package/types/components/NumberInput/variations/_disabled/base.d.ts +0 -2
  370. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +0 -1
  371. package/types/components/NumberInput/variations/_segmentation/base.d.ts +0 -2
  372. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +0 -1
  373. package/types/components/NumberInput/variations/_shape/base.d.ts +0 -2
  374. package/types/components/NumberInput/variations/_shape/base.d.ts.map +0 -1
  375. package/types/components/NumberInput/variations/_size/base.d.ts +0 -2
  376. package/types/components/NumberInput/variations/_size/base.d.ts.map +0 -1
  377. package/types/components/NumberInput/variations/_view/base.d.ts +0 -2
  378. package/types/components/NumberInput/variations/_view/base.d.ts.map +0 -1
  379. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +0 -41
  380. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  381. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +0 -84
  382. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +0 -1
  383. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +0 -41
  384. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +0 -1
  385. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +0 -84
  386. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +0 -1
  387. package/types/examples/themes/index.d.ts +0 -6
  388. package/types/examples/themes/index.d.ts.map +0 -1
  389. /package/cjs/components/{NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css → ViewContainer/_view/base_x642ct.css} +0 -0
  390. /package/es/components/{NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css → ViewContainer/_view/base_x642ct.css} +0 -0
  391. /package/types/components/{NumberInput/variations/_background-type → ViewContainer/_view}/base.d.ts +0 -0
@@ -0,0 +1,65 @@
1
+ import React, { ComponentProps } from 'react';
2
+ import type { StoryObj, Meta } from '@storybook/react';
3
+
4
+ import { Button } from '../Button/Button';
5
+ import { TextField } from '../TextField/TextField';
6
+ import { Checkbox } from '../Checkbox/Checkbox';
7
+
8
+ import { ViewContainer } from './ViewContainer';
9
+
10
+ type StoryViewProps = ComponentProps<typeof ViewContainer>;
11
+
12
+ const meta: Meta<StoryViewProps> = {
13
+ title: 'plasma_b2c/ViewContainer',
14
+ };
15
+
16
+ export default meta;
17
+
18
+ type Story = StoryObj<StoryViewProps>;
19
+
20
+ const ViewExample = ({ view }: StoryViewProps) => {
21
+ const style = view
22
+ ? {
23
+ background: view === 'onDark' ? '#1a1a1a' : '#ededed',
24
+ color: view === 'onDark' ? 'white' : 'black',
25
+ }
26
+ : undefined;
27
+
28
+ return (
29
+ <>
30
+ <h4>view: {view ?? 'default'}</h4>
31
+ <div>
32
+ <ViewContainer
33
+ view={view}
34
+ style={{
35
+ ...style,
36
+ padding: '1rem',
37
+ borderRadius: '1rem',
38
+ display: 'flex',
39
+ flexDirection: 'column',
40
+ gap: '1rem',
41
+ }}
42
+ >
43
+ <h3 style={{ margin: 0 }}>Inside ViewContainer</h3>
44
+ <Button text="default Button" />
45
+ <Checkbox checked label="Label" />
46
+ <TextField value="Example Value" label="Label" labelPlacement="inner" />
47
+ </ViewContainer>
48
+ </div>
49
+ </>
50
+ );
51
+ };
52
+
53
+ export const Default: Story = {
54
+ render: () => {
55
+ return (
56
+ <>
57
+ <ViewExample />
58
+ <br />
59
+ <ViewExample view="onDark" />
60
+ <br />
61
+ <ViewExample view="onLight" />
62
+ </>
63
+ );
64
+ },
65
+ };
@@ -0,0 +1,10 @@
1
+ import { css } from '@emotion/react';
2
+ import { viewContainer } from '@salutejs/plasma-themes/tokens/plasma_b2c';
3
+ export var config = {
4
+ variations: {
5
+ view: {
6
+ onDark: /*#__PURE__*/css(viewContainer.dark, ";;label:plasma-new-hope__onDark;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9WaWV3Q29udGFpbmVyL1ZpZXdDb250YWluZXIuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU11QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfd2ViL2NvbXBvbmVudHMvVmlld0NvbnRhaW5lci9WaWV3Q29udGFpbmVyLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IHZpZXdDb250YWluZXIgfSBmcm9tICdAc2FsdXRlanMvcGxhc21hLXRoZW1lcy90b2tlbnMvcGxhc21hX2IyYyc7XG5cbmV4cG9ydCBjb25zdCBjb25maWcgPSB7XG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBvbkRhcms6IGNzc2BcbiAgICAgICAgICAgICAgICAke3ZpZXdDb250YWluZXIuZGFya31cbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBvbkxpZ2h0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt2aWV3Q29udGFpbmVyLmxpZ2h0fVxuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
7
+ onLight: /*#__PURE__*/css(viewContainer.light, ";;label:plasma-new-hope__onLight;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9WaWV3Q29udGFpbmVyL1ZpZXdDb250YWluZXIuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVN3QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfd2ViL2NvbXBvbmVudHMvVmlld0NvbnRhaW5lci9WaWV3Q29udGFpbmVyLmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IHZpZXdDb250YWluZXIgfSBmcm9tICdAc2FsdXRlanMvcGxhc21hLXRoZW1lcy90b2tlbnMvcGxhc21hX2IyYyc7XG5cbmV4cG9ydCBjb25zdCBjb25maWcgPSB7XG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBvbkRhcms6IGNzc2BcbiAgICAgICAgICAgICAgICAke3ZpZXdDb250YWluZXIuZGFya31cbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBvbkxpZ2h0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt2aWV3Q29udGFpbmVyLmxpZ2h0fVxuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */"))
8
+ }
9
+ }
10
+ };
@@ -0,0 +1,5 @@
1
+ import { viewContainerConfig } from '../../../../components/ViewContainer';
2
+ import { component, mergeConfig } from '../../../../engines';
3
+ import { config } from './ViewContainer.config';
4
+ var mergedConfig = /*#__PURE__*/mergeConfig(viewContainerConfig, config);
5
+ export var ViewContainer = /*#__PURE__*/component(mergedConfig);
@@ -0,0 +1,65 @@
1
+ import React, { ComponentProps } from 'react';
2
+ import type { StoryObj, Meta } from '@storybook/react';
3
+
4
+ import { Button } from '../Button/Button';
5
+ import { TextField } from '../TextField/TextField';
6
+ import { Checkbox } from '../Checkbox/Checkbox';
7
+
8
+ import { ViewContainer } from './ViewContainer';
9
+
10
+ type StoryViewProps = ComponentProps<typeof ViewContainer>;
11
+
12
+ const meta: Meta<StoryViewProps> = {
13
+ title: 'plasma_web/ViewContainer',
14
+ };
15
+
16
+ export default meta;
17
+
18
+ type Story = StoryObj<StoryViewProps>;
19
+
20
+ const ViewExample = ({ view }: StoryViewProps) => {
21
+ const style = view
22
+ ? {
23
+ background: view === 'onDark' ? '#1a1a1a' : '#ededed',
24
+ color: view === 'onDark' ? 'white' : 'black',
25
+ }
26
+ : undefined;
27
+
28
+ return (
29
+ <>
30
+ <h4>view: {view ?? 'default'}</h4>
31
+ <div>
32
+ <ViewContainer
33
+ view={view}
34
+ style={{
35
+ ...style,
36
+ padding: '1rem',
37
+ borderRadius: '1rem',
38
+ display: 'flex',
39
+ flexDirection: 'column',
40
+ gap: '1rem',
41
+ }}
42
+ >
43
+ <h3 style={{ margin: 0 }}>Inside ViewContainer</h3>
44
+ <Button text="default Button" />
45
+ <Checkbox checked label="Label" />
46
+ <TextField value="Example Value" label="Label" labelPlacement="inner" />
47
+ </ViewContainer>
48
+ </div>
49
+ </>
50
+ );
51
+ };
52
+
53
+ export const Default: Story = {
54
+ render: () => {
55
+ return (
56
+ <>
57
+ <ViewExample />
58
+ <br />
59
+ <ViewExample view="onDark" />
60
+ <br />
61
+ <ViewExample view="onLight" />
62
+ </>
63
+ );
64
+ },
65
+ };
@@ -61,4 +61,4 @@ export * from './components/EmptyState';
61
61
  export * from './components/Editable';
62
62
  export * from './components/Mask';
63
63
  export * from './components/Attach';
64
- export * from './components/NumberInput';
64
+ export * from './components/ViewContainer';
@@ -1,6 +1,6 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React, { forwardRef, useMemo } from 'react';
3
- import { useFocusTrap, useForkRef, safeUseId } from '@salutejs/plasma-core';
3
+ import { useForkRef, safeUseId } from '@salutejs/plasma-core';
4
4
  import { DEFAULT_Z_INDEX } from '../Popup/utils/index.js';
5
5
  import { cx } from '../../utils/index.js';
6
6
  import { classes, tokens } from './Drawer.tokens.js';
@@ -9,6 +9,7 @@ import { base as base$1 } from './variations/_size/base.js';
9
9
  import { base as base$2 } from './variations/_borderRadius/base.js';
10
10
  import { StyledPopup } from './Drawer.styles.js';
11
11
  import { getIdLastDrawer } from './DrawerContext.js';
12
+ import { useFocusTrap } from '../../hooks/useFocusTrap.js';
12
13
  import { usePopupContext } from '../Popup/PopupContext.js';
13
14
  import { useDrawer } from './hooks/useDrawer.js';
14
15
  import { Overlay } from '../Overlay/Overlay.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { useFocusTrap, useForkRef, safeUseId } from '@salutejs/plasma-core';\n\nimport { component, mergeConfig } from '../../engines';\nimport type { RootProps } from '../../engines';\nimport { usePopupContext } from '../Popup';\nimport { Overlay } from '../Overlay';\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\nimport { panelConfig } from '../Panel';\nimport { cx, getSizeValueFromProp } from '../../utils';\n\nimport { classes, tokens } from './Drawer.tokens';\nimport type { DrawerProps } from './Drawer.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport { StyledPopup } from './Drawer.styles';\nimport { getIdLastDrawer } from './DrawerContext';\nimport { useDrawer } from './hooks';\n\n// issue #823\nconst mergedPanelConfig = mergeConfig(panelConfig);\nconst Panel = component(mergedPanelConfig);\n\nexport const drawerRoot = (Root: RootProps<HTMLDivElement, DrawerProps>) =>\n forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n id,\n zIndex,\n popupInfo,\n withBlur,\n children,\n view,\n size,\n width,\n height,\n isOpen,\n opened,\n initialFocusRef,\n focusAfterRef,\n className,\n onClose,\n onOverlayClick,\n onEscKeyDown,\n offset,\n frame,\n borderRadius = 'none',\n placement = 'right',\n closeOnEsc = true,\n closeOnOverlayClick = true,\n asModal = true,\n ...rest\n },\n outerRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef);\n const popupController = usePopupContext();\n\n const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRef);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const overlayBackgroundToken = withBlur\n ? `var(${tokens.drawerOverlayWithBlurColor})`\n : `var(${tokens.drawerOverlayColor})`;\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n const placementClass = placement ? classes[`${placement}Placement` as keyof typeof classes] : undefined;\n\n const { drawerInfo } = useDrawer({\n id: innerId,\n isOpen: innerIsOpen,\n closeOnEsc,\n onEscKeyDown,\n onClose,\n popupInfo,\n disableScroll: asModal,\n });\n const transparent = useMemo(() => getIdLastDrawer(popupController.items) !== innerId, [\n innerId,\n popupController.items,\n ]);\n\n const onDrawerOverlayKeyDown = (event: React.MouseEvent<HTMLDivElement>) => {\n if (onOverlayClick) {\n onOverlayClick(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n return (\n <StyledPopup\n id={innerId}\n ref={asModal ? innerRef : outerRef}\n className={cx(placementClass)}\n opened={innerIsOpen}\n zIndex={zIndex}\n placement={placement}\n popupInfo={drawerInfo}\n frame={frame}\n width={innerWidth}\n height={innerHeight}\n offset={offset}\n withAnimation\n overlay={\n asModal && (\n <Root view={view}>\n <Overlay\n className={classes.overlay}\n zIndex={zIndex || DEFAULT_Z_INDEX}\n backgroundColorProperty={overlayBackgroundToken}\n withBlur={withBlur}\n transparent={transparent}\n isClickable={closeOnOverlayClick}\n onOverlayClick={onDrawerOverlayKeyDown}\n />\n </Root>\n )\n }\n {...rest}\n >\n <Root\n view={view}\n size={size}\n style={{ width: innerWidth, height: innerHeight }}\n borderRadius={borderRadius}\n >\n <Panel width={innerWidth} height={innerHeight} className={className}>\n {children}\n </Panel>\n </Root>\n </StyledPopup>\n );\n },\n );\n\nexport const drawerConfig = {\n name: 'Drawer',\n tag: 'div',\n layout: drawerRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["mergedPanelConfig","mergeConfig","panelConfig","Panel","component","drawerRoot","Root","forwardRef","_ref","outerRef","id","zIndex","popupInfo","withBlur","children","view","size","width","height","isOpen","opened","initialFocusRef","focusAfterRef","className","onClose","onOverlayClick","onEscKeyDown","offset","frame","_ref$borderRadius","borderRadius","_ref$placement","placement","_ref$closeOnEsc","closeOnEsc","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$asModal","asModal","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","trapRef","useFocusTrap","popupController","usePopupContext","innerRef","useForkRef","uniqId","safeUseId","innerId","overlayBackgroundToken","concat","tokens","drawerOverlayWithBlurColor","drawerOverlayColor","innerWidth","getSizeValueFromProp","innerHeight","placementClass","classes","undefined","_useDrawer","useDrawer","disableScroll","drawerInfo","transparent","useMemo","getIdLastDrawer","items","onDrawerOverlayKeyDown","event","React","createElement","StyledPopup","_extends","ref","cx","withAnimation","overlay","Overlay","DEFAULT_Z_INDEX","backgroundColorProperty","isClickable","style","drawerConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadiusCSS","defaults"],"mappings":";;;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MyE,YAAY,GAAG;AACxBC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAErF,UAAU;AAClBsF,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR7E,IAAAA,IAAI,EAAE;AACF8E,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD9E,IAAAA,IAAI,EAAE;AACF6E,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDjE,IAAAA,YAAY,EAAE;AACV+D,MAAAA,GAAG,EAAEG,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNlF,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTc,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Drawer.js","sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { useForkRef, safeUseId } from '@salutejs/plasma-core';\n\nimport { component, mergeConfig } from '../../engines';\nimport type { RootProps } from '../../engines';\nimport { usePopupContext } from '../Popup';\nimport { Overlay } from '../Overlay';\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\nimport { panelConfig } from '../Panel';\nimport { cx, getSizeValueFromProp } from '../../utils';\nimport { useFocusTrap } from '../../hooks';\n\nimport { classes, tokens } from './Drawer.tokens';\nimport type { DrawerProps } from './Drawer.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport { StyledPopup } from './Drawer.styles';\nimport { getIdLastDrawer } from './DrawerContext';\nimport { useDrawer } from './hooks';\n\n// issue #823\nconst mergedPanelConfig = mergeConfig(panelConfig);\nconst Panel = component(mergedPanelConfig);\n\nexport const drawerRoot = (Root: RootProps<HTMLDivElement, DrawerProps>) =>\n forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n id,\n zIndex,\n popupInfo,\n withBlur,\n children,\n view,\n size,\n width,\n height,\n isOpen,\n opened,\n initialFocusRef,\n focusAfterRef,\n className,\n onClose,\n onOverlayClick,\n onEscKeyDown,\n offset,\n frame,\n borderRadius = 'none',\n placement = 'right',\n closeOnEsc = true,\n closeOnOverlayClick = true,\n asModal = true,\n ...rest\n },\n outerRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef);\n const popupController = usePopupContext();\n\n const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRef);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const overlayBackgroundToken = withBlur\n ? `var(${tokens.drawerOverlayWithBlurColor})`\n : `var(${tokens.drawerOverlayColor})`;\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n const placementClass = placement ? classes[`${placement}Placement` as keyof typeof classes] : undefined;\n\n const { drawerInfo } = useDrawer({\n id: innerId,\n isOpen: innerIsOpen,\n closeOnEsc,\n onEscKeyDown,\n onClose,\n popupInfo,\n disableScroll: asModal,\n });\n const transparent = useMemo(() => getIdLastDrawer(popupController.items) !== innerId, [\n innerId,\n popupController.items,\n ]);\n\n const onDrawerOverlayKeyDown = (event: React.MouseEvent<HTMLDivElement>) => {\n if (onOverlayClick) {\n onOverlayClick(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n return (\n <StyledPopup\n id={innerId}\n ref={asModal ? innerRef : outerRef}\n className={cx(placementClass)}\n opened={innerIsOpen}\n zIndex={zIndex}\n placement={placement}\n popupInfo={drawerInfo}\n frame={frame}\n width={innerWidth}\n height={innerHeight}\n offset={offset}\n withAnimation\n overlay={\n asModal && (\n <Root view={view}>\n <Overlay\n className={classes.overlay}\n zIndex={zIndex || DEFAULT_Z_INDEX}\n backgroundColorProperty={overlayBackgroundToken}\n withBlur={withBlur}\n transparent={transparent}\n isClickable={closeOnOverlayClick}\n onOverlayClick={onDrawerOverlayKeyDown}\n />\n </Root>\n )\n }\n {...rest}\n >\n <Root\n view={view}\n size={size}\n style={{ width: innerWidth, height: innerHeight }}\n borderRadius={borderRadius}\n >\n <Panel width={innerWidth} height={innerHeight} className={className}>\n {children}\n </Panel>\n </Root>\n </StyledPopup>\n );\n },\n );\n\nexport const drawerConfig = {\n name: 'Drawer',\n tag: 'div',\n layout: drawerRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["mergedPanelConfig","mergeConfig","panelConfig","Panel","component","drawerRoot","Root","forwardRef","_ref","outerRef","id","zIndex","popupInfo","withBlur","children","view","size","width","height","isOpen","opened","initialFocusRef","focusAfterRef","className","onClose","onOverlayClick","onEscKeyDown","offset","frame","_ref$borderRadius","borderRadius","_ref$placement","placement","_ref$closeOnEsc","closeOnEsc","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$asModal","asModal","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","trapRef","useFocusTrap","popupController","usePopupContext","innerRef","useForkRef","uniqId","safeUseId","innerId","overlayBackgroundToken","concat","tokens","drawerOverlayWithBlurColor","drawerOverlayColor","innerWidth","getSizeValueFromProp","innerHeight","placementClass","classes","undefined","_useDrawer","useDrawer","disableScroll","drawerInfo","transparent","useMemo","getIdLastDrawer","items","onDrawerOverlayKeyDown","event","React","createElement","StyledPopup","_extends","ref","cx","withAnimation","overlay","Overlay","DEFAULT_Z_INDEX","backgroundColorProperty","isClickable","style","drawerConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadiusCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA;AACA,IAAMA,iBAAiB,gBAAGC,WAAW,CAACC,WAAW,CAAC,CAAA;AAClD,IAAMC,KA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AAErF,UAAU;AAClBsF,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR7E,IAAAA,IAAI,EAAE;AACF8E,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD9E,IAAAA,IAAI,EAAE;AACF6E,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDjE,IAAAA,YAAY,EAAE;AACV+D,MAAAA,GAAG,EAAEG,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNlF,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTc,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;"}
@@ -1,10 +1,11 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React, { forwardRef, useRef } from 'react';
3
- import { useUniqId, useForkRef, useFocusTrap } from '@salutejs/plasma-core';
3
+ import { useUniqId, useForkRef } from '@salutejs/plasma-core';
4
4
  import { base } from './variations/_view/base.js';
5
5
  import { base as base$1 } from './variations/_size/base.js';
6
6
  import { StyledPopover, StyledDropdown } from './Dropdown.styles.js';
7
7
  import { getPlacements } from './utils/index.js';
8
+ import { useFocusTrap } from '../../../../hooks/useFocusTrap.js';
8
9
 
9
10
  var _excluded = ["id", "target", "children", "hasArrow", "role", "view", "size", "frame", "onToggle", "isFocusTrapped", "isOpen", "opened", "placement", "trigger", "offset", "preventOverflow", "closeOnOverlayClick", "closeOnEsc"];
10
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownOld.js","sources":["../../../../../src/components/Dropdown/ui/DropdownOld/DropdownOld.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport { useFocusTrap, useForkRef, useUniqId } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../engines';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { StyledDropdown, StyledPopover } from './Dropdown.styles';\nimport { getPlacements } from './utils';\nimport type { DropdownProps } from './Dropdown.types';\n\n/**\n * Выпадающий список без внешнего контроля видимости.\n */\nexport const dropdownOldRoot = (Root: RootProps<HTMLDivElement, DropdownProps>) =>\n forwardRef<HTMLDivElement, DropdownProps>(\n (\n {\n id,\n target,\n children,\n hasArrow,\n role,\n view,\n size,\n frame,\n onToggle,\n isFocusTrapped = true,\n isOpen = false,\n opened = false,\n placement = 'auto',\n trigger = 'click',\n offset = [0, 6],\n preventOverflow = false,\n closeOnOverlayClick = false,\n closeOnEsc = false,\n ...rest\n },\n outerRootRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const uniqId = useUniqId();\n const innerId = id || uniqId;\n\n const rootRef = useRef<HTMLDivElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement | null>(null);\n const handleRef = useForkRef<HTMLDivElement>(rootRef, outerRootRef);\n\n const trapRef = useFocusTrap(innerIsOpen && isFocusTrapped);\n\n const dropdownForkRef = useForkRef<HTMLDivElement>(dropdownRef, trapRef);\n\n return (\n <StyledPopover\n role={role}\n opened={innerIsOpen}\n usePortal={false}\n onToggle={(is, event) => onToggle?.(is, event)}\n id={innerId}\n ref={dropdownForkRef}\n target={target}\n offset={offset}\n preventOverflow={preventOverflow}\n hasArrow={hasArrow}\n placement={getPlacements(placement)}\n trigger={trigger}\n closeOnOverlayClick={closeOnOverlayClick}\n closeOnEsc={closeOnEsc}\n isFocusTrapped={isFocusTrapped}\n frame={frame}\n >\n <Root ref={handleRef} view={view} size={size} {...rest}>\n <StyledDropdown>{children}</StyledDropdown>\n </Root>\n </StyledPopover>\n );\n },\n );\n\nexport const dropdownOldConfig = {\n name: 'Dropdown',\n tag: 'div',\n layout: dropdownOldRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["dropdownOldRoot","Root","forwardRef","_ref","outerRootRef","id","target","children","hasArrow","role","view","size","frame","onToggle","_ref$isFocusTrapped","isFocusTrapped","_ref$isOpen","isOpen","_ref$opened","opened","_ref$placement","placement","_ref$trigger","trigger","_ref$offset","offset","_ref$preventOverflow","preventOverflow","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$closeOnEsc","closeOnEsc","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","uniqId","useUniqId","innerId","rootRef","useRef","dropdownRef","handleRef","useForkRef","trapRef","useFocusTrap","dropdownForkRef","React","createElement","StyledPopover","usePortal","is","event","ref","getPlacements","_extends","StyledDropdown","dropdownOldConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;AAWA;AACA;AACA;IACaA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBAC1EC,UAAU,CACN,UAAAC,IAAA,EAsBIC,YAAY,EACX;AAAA,IAAA,IArBGC,EAAE,GAAAF,IAAA,CAAFE,EAAE;MACFC,MAAM,GAAAH,IAAA,CAANG,MAAM;MACNC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,IAAI,GAAAN,IAAA,CAAJM,IAAI;MACJC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MACJC,KAAK,GAAAT,IAAA,CAALS,KAAK;MACLC,SAAQ,GAAAV,IAAA,CAARU,QAAQ;MAAAC,mBAAA,GAAAX,IAAA,CACRY,cAAc;AAAdA,MAAAA,cAAc,GAAAD,mBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,mBAAA;MAAAE,WAAA,GAAAb,IAAA,CACrBc,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;MAAAE,WAAA,GAAAf,IAAA,CACdgB,MAAM;AAANA,MAAA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AC,aAAA,CAACQ,cAAc,EAAElD,IAAAA,EAAAA,QAAyB,CACxC,CACK,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMmD,iBAAiB,GAAG;AAC7BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE7D,eAAe;AACvB8D,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRrD,IAAAA,IAAI,EAAE;AACFsD,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACDtD,IAAAA,IAAI,EAAE;AACFqD,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNzD,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"DropdownOld.js","sources":["../../../../../src/components/Dropdown/ui/DropdownOld/DropdownOld.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport { useForkRef, useUniqId } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../engines';\nimport { useFocusTrap } from '../../../../hooks';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { StyledDropdown, StyledPopover } from './Dropdown.styles';\nimport { getPlacements } from './utils';\nimport type { DropdownProps } from './Dropdown.types';\n\n/**\n * Выпадающий список без внешнего контроля видимости.\n */\nexport const dropdownOldRoot = (Root: RootProps<HTMLDivElement, DropdownProps>) =>\n forwardRef<HTMLDivElement, DropdownProps>(\n (\n {\n id,\n target,\n children,\n hasArrow,\n role,\n view,\n size,\n frame,\n onToggle,\n isFocusTrapped = true,\n isOpen = false,\n opened = false,\n placement = 'auto',\n trigger = 'click',\n offset = [0, 6],\n preventOverflow = false,\n closeOnOverlayClick = false,\n closeOnEsc = false,\n ...rest\n },\n outerRootRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const uniqId = useUniqId();\n const innerId = id || uniqId;\n\n const rootRef = useRef<HTMLDivElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement | null>(null);\n const handleRef = useForkRef<HTMLDivElement>(rootRef, outerRootRef);\n\n const trapRef = useFocusTrap(innerIsOpen && isFocusTrapped);\n\n const dropdownForkRef = useForkRef<HTMLDivElement>(dropdownRef, trapRef);\n\n return (\n <StyledPopover\n role={role}\n opened={innerIsOpen}\n usePortal={false}\n onToggle={(is, event) => onToggle?.(is, event)}\n id={innerId}\n ref={dropdownForkRef}\n target={target}\n offset={offset}\n preventOverflow={preventOverflow}\n hasArrow={hasArrow}\n placement={getPlacements(placement)}\n trigger={trigger}\n closeOnOverlayClick={closeOnOverlayClick}\n closeOnEsc={closeOnEsc}\n isFocusTrapped={isFocusTrapped}\n frame={frame}\n >\n <Root ref={handleRef} view={view} size={size} {...rest}>\n <StyledDropdown>{children}</StyledDropdown>\n </Root>\n </StyledPopover>\n );\n },\n );\n\nexport const dropdownOldConfig = {\n name: 'Dropdown',\n tag: 'div',\n layout: dropdownOldRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["dropdownOldRoot","Root","forwardRef","_ref","outerRootRef","id","target","children","hasArrow","role","view","size","frame","onToggle","_ref$isFocusTrapped","isFocusTrapped","_ref$isOpen","isOpen","_ref$opened","opened","_ref$placement","placement","_ref$trigger","trigger","_ref$offset","offset","_ref$preventOverflow","preventOverflow","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$closeOnEsc","closeOnEsc","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","uniqId","useUniqId","innerId","rootRef","useRef","dropdownRef","handleRef","useForkRef","trapRef","useFocusTrap","dropdownForkRef","React","createElement","StyledPopover","usePortal","is","event","ref","getPlacements","_extends","StyledDropdown","dropdownOldConfig","name","tag","layout","base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AA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNzD,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,11 +1,12 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
2
  import React, { forwardRef, useRef, useState, useCallback, useEffect } from 'react';
3
3
  import { usePopper } from 'react-popper';
4
- import { useForkRef, useFocusTrap } from '@salutejs/plasma-core';
4
+ import { useForkRef } from '@salutejs/plasma-core';
5
5
  import { cx } from '../../utils/index.js';
6
6
  import { base } from './variations/_view/base.js';
7
7
  import { StyledWrapper, StyledRoot, StyledPopover, StyledArrow } from './Popover.styles.js';
8
8
  import { classes } from './Popover.tokens.js';
9
+ import { useFocusTrap } from '../../hooks/useFocusTrap.js';
9
10
  import { Portal } from '../Portal/Portal.js';
10
11
 
11
12
  var _excluded = ["target", "children", "isOpen", "opened", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["import React, { useRef, useCallback, useEffect, useState, forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\nimport { usePopper } from 'react-popper';\nimport { useFocusTrap, useForkRef } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines/types';\nimport { cx } from '../../utils';\nimport { Portal } from '../Portal';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport type { PopoverPlacement, PopoverProps } from './Popover.types';\nimport { StyledArrow, StyledPopover, StyledRoot, StyledWrapper } from './Popover.styles';\nimport { classes } from './Popover.tokens';\n\nexport const ESCAPE_KEYCODE = 27;\nexport const POPOVER_PORTAL_ID = 'plasma-popover-root';\n\n/**\n * Всплывающее окно с возможностью позиционирования\n * и вызова по клику либо ховеру.\n */\nexport const popoverRoot = (Root: RootProps<HTMLDivElement, PopoverProps>) =>\n forwardRef<HTMLDivElement, PopoverProps>(\n (\n {\n target,\n children,\n isOpen,\n opened,\n trigger = 'click',\n hasArrow,\n frame = 'document',\n className,\n placement = 'auto',\n offset = [0, 0],\n zIndex,\n isFocusTrapped = true,\n closeOnEsc = true,\n preventOverflow = true,\n usePortal = false,\n view,\n onToggle,\n closeOnOverlayClick,\n ...rest\n },\n outerRootRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const rootRef = useRef<HTMLDivElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const handleRef = useForkRef<HTMLDivElement>(rootRef, outerRootRef);\n const portalRef = useRef<HTMLElement | null>(null);\n\n const trapRef = useFocusTrap(innerIsOpen && isFocusTrapped);\n\n const popoverForkRef = useForkRef<HTMLDivElement>(popoverRef, trapRef);\n\n const [arrowElement, setArrowElement] = useState<HTMLSpanElement | null>(null);\n\n const [, forceRender] = useState(false);\n\n const isAutoArray = Array.isArray(placement);\n const isAuto = isAutoArray || (placement as PopoverPlacement).startsWith('auto');\n\n const initialStyles = {\n visibility: innerIsOpen ? 'visible' : 'hidden',\n opacity: innerIsOpen ? 1 : 0,\n } as CSSProperties;\n\n const { styles, attributes, forceUpdate } = usePopper(rootRef.current, popoverRef.current, {\n // TODO: #1121\n // eslint-disable-next-line no-nested-ternary\n placement: isAutoArray\n ? placement[0]?.endsWith('start')\n ? 'auto-start'\n : 'auto'\n : (placement as PopoverPlacement),\n modifiers: [\n {\n name: 'preventOverflow',\n options: {\n mainAxis: preventOverflow,\n },\n },\n { name: 'offset', options: { offset: [offset[0], offset[1]] } },\n {\n name: 'flip',\n enabled: isAuto,\n options: {\n allowedAutoPlacements: isAutoArray ? (placement as PopoverPlacement[]) : [],\n },\n },\n {\n name: 'arrow',\n options: {\n element: arrowElement,\n },\n },\n ],\n });\n\n const onEscape = useCallback(\n (event: KeyboardEvent) => {\n if (innerIsOpen && closeOnEsc && event.keyCode === ESCAPE_KEYCODE) {\n onToggle?.(false, event);\n }\n },\n [closeOnEsc, innerIsOpen, onToggle],\n );\n\n const onDocumentClick = useCallback(\n (event: MouseEvent) => {\n if (innerIsOpen && closeOnOverlayClick && onToggle) {\n const targetIsRoot = event.target === rootRef.current;\n const rootHasTarget = rootRef.current?.contains(event.target as Element);\n const popoverRootHasTarget = popoverRef.current?.contains(event.target as Element);\n\n if (!targetIsRoot && !rootHasTarget && !popoverRootHasTarget) {\n onToggle(false, event);\n }\n }\n },\n [closeOnOverlayClick, innerIsOpen, onToggle],\n );\n\n const onClick = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'click') {\n const targetIsPopover = event.target === popoverRef.current;\n const rootHasTarget = popoverRef.current?.contains(event.target as Element);\n\n if (!targetIsPopover && !rootHasTarget) {\n onToggle?.(!innerIsOpen, event);\n }\n }\n },\n [trigger, innerIsOpen, onToggle],\n );\n\n const onMouseEnter = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onMouseLeave = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onBlur = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n useEffect(() => {\n document.addEventListener('click', onDocumentClick);\n return () => document.removeEventListener('click', onDocumentClick);\n }, [innerIsOpen, onToggle]);\n\n useEffect(() => {\n window.addEventListener('keydown', onEscape);\n return () => window.removeEventListener('keydown', onEscape);\n }, [closeOnEsc, innerIsOpen, onToggle]);\n\n useEffect(() => {\n let portal = document.getElementById(POPOVER_PORTAL_ID);\n\n if (typeof frame !== 'string' && frame && frame.current) {\n portal = frame.current;\n }\n\n if (!usePortal) {\n portal = rootRef.current;\n }\n\n if (!portal) {\n portal = document.createElement('div');\n portal.setAttribute('id', POPOVER_PORTAL_ID);\n\n if (typeof frame === 'string' && frame !== 'document') {\n document.getElementById(frame)?.appendChild(portal);\n } else {\n document.body.appendChild(portal);\n }\n }\n\n portalRef.current = portal;\n\n /**\n * Изменение стейта нужно для того, чтобы Popup\n * отобразился после записи DOM элемента в portalRef.current\n */\n forceRender(true);\n }, []);\n\n useEffect(() => {\n if (!innerIsOpen || !forceUpdate) {\n return;\n }\n\n /*\n * INFO: Метод forceUpdate содержит в себе flushSync и приводит\n * к повторному рендеру компонента, который уже находится в процессе рендера.\n * Данный хак, нужен для того, чтобы это поведение избежать и перенаправить\n * вызов метода в очередь микрозадач.\n */\n Promise.resolve().then(forceUpdate);\n }, [innerIsOpen, children, forceUpdate]);\n\n return (\n <StyledWrapper className={classes.wrapper} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n <StyledRoot\n ref={handleRef}\n onClick={onClick}\n onFocus={onFocus}\n onBlur={onBlur}\n className={cx(className, classes.target)}\n >\n {target}\n </StyledRoot>\n {children && portalRef.current && (\n <Portal container={portalRef.current}>\n <Root view={view} className={className} {...rest}>\n <StyledPopover\n {...attributes.popper}\n className={classes.root}\n ref={popoverForkRef}\n style={{\n ...styles.popper,\n ...{ display: innerIsOpen ? 'block' : 'none' },\n ...initialStyles,\n }}\n zIndex={zIndex}\n >\n {hasArrow && (\n <StyledArrow\n className={classes.arrow}\n ref={setArrowElement}\n style={styles.arrow}\n {...attributes.arrow}\n />\n )}\n {children}\n </StyledPopover>\n </Root>\n </Portal>\n )}\n </StyledWrapper>\n );\n },\n );\n\nexport const popoverConfig = {\n name: 'Popover',\n tag: 'div',\n layout: popoverRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["ESCAPE_KEYCODE","POPOVER_PORTAL_ID","popoverRoot","Root","forwardRef","_ref","outerRootRef","_placement$","target","children","isOpen","opened","_ref$trigger","trigger","hasArrow","_ref$frame","frame","className","_ref$placement","placement","_ref$offset","offset","zIndex","_ref$isFocusTrapped","isFocusTrapped","_ref$closeOnEsc","closeOnEsc","_ref$preventOverflow","preventOverflow","_ref$usePortal","usePortal","view","onToggle","closeOnOverlayClick","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","rootRef","useRef","popoverRef","handleRef","useForkRef","portalRef","trapRef","useFocusTrap","popoverForkRef","_useState","useState","_useState2","_slicedToArray","arrowElement","setArrowElement","_useState3","_useState4","forceRender","isAutoArray","Array","isArray","isAuto","startsWith","initialStyles","visibility","opacity","_usePopper","usePopper","current","endsWith","modifiers","name","options","mainAxis","enabled","allowedAutoPlacements","element","styles","attributes","forceUpdate","onEscape","useCallback","event","keyCode","onDocumentClick","_rootRef$current","_popoverRef$current","targetIsRoot","rootHasTarget","contains","popoverRootHasTarget","onClick","_popoverRef$current2","targetIsPopover","onMouseEnter","onMouseLeave","onFocus","onBlur","useEffect","document","addEventListener","removeEventListener","window","portal","getElementById","createElement","setAttribute","_document$getElementB","appendChild","body","Promise","resolve","then","React","StyledWrapper","classes","wrapper","StyledRoot","ref","cx","Portal","container","_extends","StyledPopover","popper","root","style","_objectSpread","display","StyledArrow","arrow","popoverConfig","tag","layout","base","variations","css","viewCSS","defaults"],"mappings":";;;;;;;;;;;AAcO,IAAMA,cAAc,GAAG,GAAE;AACzB,IAAMC,iBAAiB,GAAG,sBAAqB;;AAEtD;AACA;AACA;AACA;IACaC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAA6C,EAAA;AAAA,EAAA,oBACrEC,UAAU,CACN,UAAAC,IAAA,EAsBIC,YAAY,EACX;AAAA,IAAA,IAAAC,WAAA,CAAA;AAAA,IAAA,IArBGC,MAAM,GAAA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AAEI,QAAAA,OAAO,EAAE1F,WAAW,GAAG,OAAO,GAAG,MAAA;OAAQ,CAAA,EAC3CyB,aAAa,CAClB;AACFxC,MAAAA,MAAM,EAAEA,MAAAA;KAEPR,CAAAA,EAAAA,QAAQ,iBACLkG,KAAA,CAAAR,aAAA,CAACwB,WAAW,EAAAP,QAAA,CAAA;MACRxG,SAAS,EAAEiG,OAAO,CAACe,KAAM;AACzBZ,MAAAA,GAAG,EAAEhE,eAAgB;MACrBwE,KAAK,EAAEjD,MAAM,CAACqD,KAAAA;KACVpD,EAAAA,UAAU,CAACoD,KAAK,CACvB,CACJ,EACAxH,QACU,CACb,CACF,CAED,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyH,aAAa,GAAG;AACzB5D,EAAAA,IAAI,EAAE,SAAS;AACf6D,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAElI,WAAW;AACnBmI,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRvG,IAAAA,IAAI,EAAE;AACFwG,MAAAA,GAAG,EAAEC,IAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN1G,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Popover.js","sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["import React, { useRef, useCallback, useEffect, useState, forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\nimport { usePopper } from 'react-popper';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines/types';\nimport { useFocusTrap } from '../../hooks';\nimport { cx } from '../../utils';\nimport { Portal } from '../Portal';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport type { PopoverPlacement, PopoverProps } from './Popover.types';\nimport { StyledArrow, StyledPopover, StyledRoot, StyledWrapper } from './Popover.styles';\nimport { classes } from './Popover.tokens';\n\nexport const ESCAPE_KEYCODE = 27;\nexport const POPOVER_PORTAL_ID = 'plasma-popover-root';\n\n/**\n * Всплывающее окно с возможностью позиционирования\n * и вызова по клику либо ховеру.\n */\nexport const popoverRoot = (Root: RootProps<HTMLDivElement, PopoverProps>) =>\n forwardRef<HTMLDivElement, PopoverProps>(\n (\n {\n target,\n children,\n isOpen,\n opened,\n trigger = 'click',\n hasArrow,\n frame = 'document',\n className,\n placement = 'auto',\n offset = [0, 0],\n zIndex,\n isFocusTrapped = true,\n closeOnEsc = true,\n preventOverflow = true,\n usePortal = false,\n view,\n onToggle,\n closeOnOverlayClick,\n ...rest\n },\n outerRootRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const rootRef = useRef<HTMLDivElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const handleRef = useForkRef<HTMLDivElement>(rootRef, outerRootRef);\n const portalRef = useRef<HTMLElement | null>(null);\n\n const trapRef = useFocusTrap(innerIsOpen && isFocusTrapped);\n\n const popoverForkRef = useForkRef<HTMLDivElement>(popoverRef, trapRef);\n\n const [arrowElement, setArrowElement] = useState<HTMLSpanElement | null>(null);\n\n const [, forceRender] = useState(false);\n\n const isAutoArray = Array.isArray(placement);\n const isAuto = isAutoArray || (placement as PopoverPlacement).startsWith('auto');\n\n const initialStyles = {\n visibility: innerIsOpen ? 'visible' : 'hidden',\n opacity: innerIsOpen ? 1 : 0,\n } as CSSProperties;\n\n const { styles, attributes, forceUpdate } = usePopper(rootRef.current, popoverRef.current, {\n // TODO: #1121\n // eslint-disable-next-line no-nested-ternary\n placement: isAutoArray\n ? placement[0]?.endsWith('start')\n ? 'auto-start'\n : 'auto'\n : (placement as PopoverPlacement),\n modifiers: [\n {\n name: 'preventOverflow',\n options: {\n mainAxis: preventOverflow,\n },\n },\n { name: 'offset', options: { offset: [offset[0], offset[1]] } },\n {\n name: 'flip',\n enabled: isAuto,\n options: {\n allowedAutoPlacements: isAutoArray ? (placement as PopoverPlacement[]) : [],\n },\n },\n {\n name: 'arrow',\n options: {\n element: arrowElement,\n },\n },\n ],\n });\n\n const onEscape = useCallback(\n (event: KeyboardEvent) => {\n if (innerIsOpen && closeOnEsc && event.keyCode === ESCAPE_KEYCODE) {\n onToggle?.(false, event);\n }\n },\n [closeOnEsc, innerIsOpen, onToggle],\n );\n\n const onDocumentClick = useCallback(\n (event: MouseEvent) => {\n if (innerIsOpen && closeOnOverlayClick && onToggle) {\n const targetIsRoot = event.target === rootRef.current;\n const rootHasTarget = rootRef.current?.contains(event.target as Element);\n const popoverRootHasTarget = popoverRef.current?.contains(event.target as Element);\n\n if (!targetIsRoot && !rootHasTarget && !popoverRootHasTarget) {\n onToggle(false, event);\n }\n }\n },\n [closeOnOverlayClick, innerIsOpen, onToggle],\n );\n\n const onClick = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'click') {\n const targetIsPopover = event.target === popoverRef.current;\n const rootHasTarget = popoverRef.current?.contains(event.target as Element);\n\n if (!targetIsPopover && !rootHasTarget) {\n onToggle?.(!innerIsOpen, event);\n }\n }\n },\n [trigger, innerIsOpen, onToggle],\n );\n\n const onMouseEnter = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onMouseLeave = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onBlur = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n useEffect(() => {\n document.addEventListener('click', onDocumentClick);\n return () => document.removeEventListener('click', onDocumentClick);\n }, [innerIsOpen, onToggle]);\n\n useEffect(() => {\n window.addEventListener('keydown', onEscape);\n return () => window.removeEventListener('keydown', onEscape);\n }, [closeOnEsc, innerIsOpen, onToggle]);\n\n useEffect(() => {\n let portal = document.getElementById(POPOVER_PORTAL_ID);\n\n if (typeof frame !== 'string' && frame && frame.current) {\n portal = frame.current;\n }\n\n if (!usePortal) {\n portal = rootRef.current;\n }\n\n if (!portal) {\n portal = document.createElement('div');\n portal.setAttribute('id', POPOVER_PORTAL_ID);\n\n if (typeof frame === 'string' && frame !== 'document') {\n document.getElementById(frame)?.appendChild(portal);\n } else {\n document.body.appendChild(portal);\n }\n }\n\n portalRef.current = portal;\n\n /**\n * Изменение стейта нужно для того, чтобы Popup\n * отобразился после записи DOM элемента в portalRef.current\n */\n forceRender(true);\n }, []);\n\n useEffect(() => {\n if (!innerIsOpen || !forceUpdate) {\n return;\n }\n\n /*\n * INFO: Метод forceUpdate содержит в себе flushSync и приводит\n * к повторному рендеру компонента, который уже находится в процессе рендера.\n * Данный хак, нужен для того, чтобы это поведение избежать и перенаправить\n * вызов метода в очередь микрозадач.\n */\n Promise.resolve().then(forceUpdate);\n }, [innerIsOpen, children, forceUpdate]);\n\n return (\n <StyledWrapper className={classes.wrapper} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n <StyledRoot\n ref={handleRef}\n onClick={onClick}\n onFocus={onFocus}\n onBlur={onBlur}\n className={cx(className, classes.target)}\n >\n {target}\n </StyledRoot>\n {children && portalRef.current && (\n <Portal container={portalRef.current}>\n <Root view={view} className={className} {...rest}>\n <StyledPopover\n {...attributes.popper}\n className={classes.root}\n ref={popoverForkRef}\n style={{\n ...styles.popper,\n ...{ display: innerIsOpen ? 'block' : 'none' },\n ...initialStyles,\n }}\n zIndex={zIndex}\n >\n {hasArrow && (\n <StyledArrow\n className={classes.arrow}\n ref={setArrowElement}\n style={styles.arrow}\n {...attributes.arrow}\n />\n )}\n {children}\n </StyledPopover>\n </Root>\n </Portal>\n )}\n </StyledWrapper>\n );\n },\n );\n\nexport const popoverConfig = {\n name: 'Popover',\n tag: 'div',\n layout: popoverRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["ESCAPE_KEYCODE","POPOVER_PORTAL_ID","popoverRoot","Root","forwardRef","_ref","outerRootRef","_placement$","target","children","isOpen","opened","_ref$trigger","trigger","hasArrow","_ref$frame","frame","className","_ref$placement","placement","_ref$offset","offset","zIndex","_ref$isFocusTrapped","isFocusTrapped","_ref$closeOnEsc","closeOnEsc","_ref$preventOverflow","preventOverflow","_ref$usePortal","usePortal","view","onToggle","closeOnOverlayClick","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","rootRef","useRef","popoverRef","handleRef","useForkRef","portalRef","trapRef","useFocusTrap","popoverForkRef","_useState","useState","_useState2","_slicedToArray","arrowElement","setArrowElement","_useState3","_useState4","forceRender","isAutoArray","Array","isArray","isAuto","startsWith","initialStyles","visibility","opacity","_usePopper","usePopper","current","endsWith","modifiers","name","options","mainAxis","enabled","allowedAutoPlacements","element","styles","attributes","forceUpdate","onEscape","useCallback","event","keyCode","onDocumentClick","_rootRef$current","_popoverRef$current","targetIsRoot","rootHasTarget","contains","popoverRootHasTarget","onClick","_popoverRef$current2","targetIsPopover","onMouseEnter","onMouseLeave","onFocus","onBlur","useEffect","document","addEventListener","removeEventListener","window","portal","getElementById","createElement","setAttribute","_document$getElementB","appendChild","body","Promise","resolve","then","React","StyledWrapper","classes","wrapper","StyledRoot","ref","cx","Portal","container","_extends","StyledPopover","popper","root","style","_objectSpread","display","StyledArrow","arrow","popoverConfig","tag","layout","base","variations","css","viewCSS","defaults"],"mappings":";;;;;;;;;;;;AAeO,IAAMA,cAAc,GAAG,GAAE;AACzB,IAAMC,iBAAiB,GAAG,sBAAqB;;AAEtD;AACA;AACA;AACA;IACaC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAA6C,EAAA;AAAA,EAAA,oBACrEC,UAAU,CACN,UAAAC,IAAA,EAsBIC,YAAY,EACX;AAAA,IAAA,IAAAC,WAAA,CAAA;AAAA,IAAA,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MAAM,CACb,EAAA;AAAEI,QAAAA,OAAO,EAAE1F,WAAW,GAAG,OAAO,GAAG,MAAA;OAAQ,CAAA,EAC3CyB,aAAa,CAClB;AACFxC,MAAAA,MAAM,EAAEA,MAAAA;KAEPR,CAAAA,EAAAA,QAAQ,iBACLkG,KAAA,CAAAR,aAAA,CAACwB,WAAW,EAAAP,QAAA,CAAA;MACRxG,SAAS,EAAEiG,OAAO,CAACe,KAAM;AACzBZ,MAAAA,GAAG,EAAEhE,eAAgB;MACrBwE,KAAK,EAAEjD,MAAM,CAACqD,KAAAA;KACVpD,EAAAA,UAAU,CAACoD,KAAK,CACvB,CACJ,EACAxH,QACU,CACb,CACF,CAED,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyH,aAAa,GAAG;AACzB5D,EAAAA,IAAI,EAAE,SAAS;AACf6D,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAElI,WAAW;AACnBmI,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRvG,IAAAA,IAAI,EAAE;AACFwG,MAAAA,GAAG,EAAEC,IAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN1G,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
@@ -0,0 +1,33 @@
1
+ import './ViewContainer_yiqfcb.css';
2
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
3
+ import React, { forwardRef } from 'react';
4
+ import { base as base$1 } from './_view/base.js';
5
+
6
+ var _excluded = ["children"];
7
+ var base = "bemjbnt";
8
+ var viewContainerRoot = function viewContainerRoot(Root) {
9
+ return /*#__PURE__*/forwardRef(function (props, ref) {
10
+ var children = props.children,
11
+ rest = _objectWithoutProperties(props, _excluded);
12
+ return /*#__PURE__*/React.createElement(Root, _extends({
13
+ ref: ref
14
+ }, rest), children);
15
+ });
16
+ };
17
+ var viewContainerConfig = {
18
+ name: 'ViewContainer',
19
+ tag: 'div',
20
+ layout: viewContainerRoot,
21
+ base: base,
22
+ variations: {
23
+ view: {
24
+ css: base$1
25
+ }
26
+ },
27
+ defaults: {
28
+ view: undefined
29
+ }
30
+ };
31
+
32
+ export { viewContainerConfig, viewContainerRoot };
33
+ //# sourceMappingURL=ViewContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContainer.js","sources":["../../../src/components/ViewContainer/ViewContainer.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { css } from '@linaria/core';\n\nimport type { RootProps } from '../../engines/types';\n\nimport { base as viewCSS } from './_view/base';\n\nconst base = css`\n position: relative;\n`;\n\nexport type ViewContainerCustomProps = {\n /**\n * Вид компонента\n */\n view?: string;\n};\n\ntype ViewContainerProps = React.HTMLAttributes<HTMLDivElement> & ViewContainerCustomProps;\n\nexport const viewContainerRoot = (Root: RootProps<HTMLAnchorElement, ViewContainerProps>) =>\n forwardRef<HTMLAnchorElement, ViewContainerProps>((props, ref) => {\n const { children, ...rest } = props;\n\n return (\n <Root ref={ref} {...rest}>\n {children}\n </Root>\n );\n });\n\nexport const viewContainerConfig = {\n name: 'ViewContainer',\n tag: 'div',\n layout: viewContainerRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: undefined,\n },\n};\n"],"names":["base","viewContainerRoot","Root","forwardRef","props","ref","children","rest","_excluded","React","createElement","_extends","viewContainerConfig","name","tag","layout","variations","view","css","viewCSS","defaults","undefined"],"mappings":";;;;;AAOA,IAAMA,IAAI,GAET,SAAA,CAAA;IAWYC,iBAAiB,GAAGA,SAApBA,iBAAiBA,CAAIC,IAAsD,EAAA;AAAA,EAAA,oBACpFC,UAAU,CAAwC,UAACC,KAAK,EAAEC,GAAG,EAAK;AAC9D,IAAA,IAAQC,QAAQ,GAAcF,KAAK,CAA3BE,QAAQ;AAAKC,MAAAA,IAAAA,GAAAA,wBAAAA,CAASH,KAAK,EAAAI,SAAA,CAAA,CAAA;AAEnC,IAAA,oBACIC,KAAA,CAAAC,aAAA,CAACR,IAAI,EAAAS,QAAA,CAAA;AAACN,MAAAA,GAAG,EAAEA,GAAAA;KAASE,EAAAA,IAAI,CACnBD,EAAAA,QACC,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMM,mBAAmB,GAAG;AAC/BC,EAAAA,IAAI,EAAE,eAAe;AACrBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEd,iBAAiB;AACzBD,EAAAA,IAAI,EAAJA,IAAI;AACJgB,EAAAA,UAAU,EAAE;AACRC,IAAAA,IAAI,EAAE;AACFC,MAAAA,GAAG,EAAEC,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNH,IAAAA,IAAI,EAAEI,SAAAA;AACV,GAAA;AACJ;;;;"}
@@ -0,0 +1 @@
1
+ .bemjbnt{position:relative;}
@@ -1,5 +1,5 @@
1
- import './base_nl8ve.css';
2
- var base = "bpps6rw";
1
+ import './base_x642ct.css';
2
+ var base = "bhhdltp";
3
3
 
4
4
  export { base };
5
5
  //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../src/components/ViewContainer/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
package/es/index.css CHANGED
@@ -805,27 +805,4 @@
805
805
  .IconButton_styles_1q2jfs2_s15ptif0__7aea03a6{--plasma-icon-button-color:var(--plasma-attach-icon-button-color);--plasma-icon-button-background-color:var(--plasma-attach-icon-button-background-color);--plasma-icon-button-loading-background-color:var(--plasma-attach-icon-button-loading-background-color);--plasma-icon-button-color-hover:var(--plasma-attach-icon-button-color-hover);--plasma-icon-button-background-color-hover:var(--plasma-attach-icon-button-background-color-hover);--plasma-icon-button-color-active:var(--plasma-attach-icon-button-color-active);--plasma-icon-button-background-color-active:var(--plasma-attach-icon-button-background-color-active);--plasma-icon-button-scale-hover:var(--plasma-attach-icon-button-scale-hover);---plasma-icon-button-scale-active:var(---plasma-attach-icon-button-scale-active);--plasma-icon-button-height:var(--plasma-attach-icon-button-height);--plasma-icon-button-width:var(--plasma-attach-icon-button-width);--plasma-icon-button-padding:var(--plasma-attach-icon-button-padding);--plasma-icon-button-radius:var(--plasma-attach-icon-button-radius);--plasma-icon-button-radius-circle:var(--plasma-attach-icon-button-radius-circle);--plasma-icon-button-font-family:var(--plasma-attach-icon-button-font-family);--plasma-icon-button-font-size:var(--plasma-attach-icon-button-font-size);--plasma-icon-button-font-style:var(--plasma-attach-icon-button-font-style);--plasma-icon-button-font-weight:var(--plasma-attach-icon-button-font-weight);--plasma-icon-button-letter-spacing:var(--plasma-attach-icon-button-letter-spacing);--plasma-icon-button-line-height:var(--plasma-attach-icon-button-line-height);--plasma-icon-button-disabled-opacity:var(--plasma-attach-icon-button-disabled-opacity);--plasma-icon-button-focus-color:var(--plasma-attach-icon-button-focus-color);--plasma-icon-button-spinner-color:var(--plasma-attach-icon-button-spinner-color);--plasma-icon-button-spinner-size:var(--plasma-attach-icon-button-spinner-size);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}
806
806
  .IconButton_styles_1q2jfs2_shuaj1a__7aea03a6{--plasma-icon-button-color:var(--plasma-attach-icon-button-cancel-color);--plasma-icon-button-background-color:var(--plasma-attach-icon-button-cancel-background-color);--plasma-icon-button-loading-background-color:var(--plasma-attach-icon-button-cancel-loading-background-color);--plasma-icon-button-color-hover:var(--plasma-attach-icon-button-cancel-color-hover);--plasma-icon-button-background-color-hover:var(--plasma-attach-icon-button-cancel-background-color-hover);--plasma-icon-button-color-active:var(--plasma-attach-icon-button-cancel-color-active);--plasma-icon-button-background-color-active:var(--plasma-attach-icon-button-cancel-background-color-active);--plasma-icon-button-scale-hover:var(--plasma-attach-icon-button-cancel-scale-hover);---plasma-icon-button-scale-active:var(---plasma-attach-icon-button-cancel-scale-active);--plasma-icon-button-height:var(--plasma-attach-icon-button-cancel-height);--plasma-icon-button-width:var(--plasma-attach-icon-button-cancel-width);--plasma-icon-button-padding:var(--plasma-attach-icon-button-cancel-padding);--plasma-icon-button-radius:var(--plasma-attach-icon-button-cancel-radius);--plasma-icon-button-radius-circle:var(--plasma-attach-icon-button-cancel-radius-circle);--plasma-icon-button-font-family:var(--plasma-attach-icon-button-cancel-font-family);--plasma-icon-button-font-size:var(--plasma-attach-icon-button-cancel-font-size);--plasma-icon-button-font-style:var(--plasma-attach-icon-button-cancel-font-style);--plasma-icon-button-font-weight:var(--plasma-attach-icon-button-cancel-font-weight);--plasma-icon-button-letter-spacing:var(--plasma-attach-icon-button-cancel-letter-spacing);--plasma-icon-button-line-height:var(--plasma-attach-icon-button-cancel-line-height);--plasma-icon-button-disabled-opacity:var(--plasma-attach-icon-button-cancel-disabled-opacity);--plasma-icon-button-focus-color:var(--plasma-attach-icon-button-cancel-focus-color);--plasma-icon-button-spinner-color:var(--plasma-attach-icon-button-cancel-spinner-color);--plasma-icon-button-spinner-size:var(--plasma-attach-icon-button-cancel-spinner-size);}
807
807
 
808
- .Input_styles_jszc0c_i1s8bsh6__6eb57599{overflow-x:auto;overflow-y:hidden;-webkit-flex:1;-ms-flex:1;flex:1;cursor:var(--i1s8bsh6-0);-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.Input_styles_jszc0c_i1s8bsh6__6eb57599::-webkit-scrollbar{display:none;}
809
- .Input_styles_jszc0c_t6wb9c__6eb57599{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 auto;box-sizing:border-box;}
810
-
811
-
812
-
813
- .Input_styles_jszc0c_d1n4jo6t__6eb57599{position:relative;}
814
- .Input_styles_jszc0c_i1tgbhg7__6eb57599{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:var(--i1tgbhg7-0);box-sizing:border-box;cursor:var(--i1tgbhg7-1);pointer-events:var(--i1tgbhg7-2);-webkit-transition:width 0.1s;transition:width 0.1s;}.Input_styles_jszc0c_i1tgbhg7__6eb57599.Input_styles_jszc0c_i1tgbhg7__6eb57599.Input_styles_jszc0c_errorAnimation__6eb57599{color:var(--plasma-number-input_error-color);-webkit-animation:Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599 0.5s forwards;animation:Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599 0.5s forwards;}@-webkit-keyframes Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599{0%{opacity:1;}12.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}25%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}37.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}50%{opacity:1;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}62.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}75%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}87.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}100%{opacity:0;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}}@keyframes Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599{0%{opacity:1;}12.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}25%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}37.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}50%{opacity:1;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}62.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}75%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}87.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}100%{opacity:0;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}}
815
- .Input_styles_jszc0c_i1il5xze__6eb57599{position:absolute;z-index:-999;visibility:hidden;top:0;left:0;opacity:0;height:0;white-space:pre;}
816
-
817
- .NumberInput_styles_jeawjl_bwds6g__9a871afb{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
818
-
819
- .base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9{--plasma-icon-button-color:var(--plasma-number-input_icon-button_color);--plasma-icon-button-background-color:var(--plasma-number-input_icon-button_background-color);--plasma-icon-button-color-hover:var(--plasma-number-input_icon-button_color-hover);--plasma-icon-button-background-color-hover:var(--plasma-number-input_icon-button_background-color-hover);--plasma-icon-button-color-active:var(--plasma-number-input_icon-button_color-active);--plasma-icon-button-background-color-active:var(--plasma-number-input_icon-button_background-color-active);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonDecrementDisabled__10de7ad9,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonIncrementDisabled__10de7ad9{opacity:var(--plasma-number-input_action-button_disabled-opacity);cursor:not-allowed;}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonDecrementDisabled__10de7ad9:hover,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonIncrementDisabled__10de7ad9:hover,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonDecrementDisabled__10de7ad9:active,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonIncrementDisabled__10de7ad9:active{scale:none;color:var(--plasma-number-input_icon-button_color);background-color:var(--plasma-number-input_icon-button_background-color);}.base_cghr9q_bhi37xj__10de7ad9.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_i1s8bsh6__10de7ad9:focus-within{background-color:var(--plasma-number-input_background-color-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-focus);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_s1ft73sv__10de7ad9{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_i1tgbhg7__10de7ad9{color:var(--plasma-number-input_color);caret-color:var(--plasma-number-input_caret_color);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_az36kha__10de7ad9{color:var(--plasma-number-input_additional-text_color);}
820
-
821
- .base_1pju5qf_b13wjeky__eb7ed667{width:var(--plasma_private-number-input_width);min-width:var(--plasma-number-input_min-width);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_sj0ab1b__eb7ed667{--plasma-icon-button-height:var(--plasma-number-input_icon-button_height);--plasma-icon-button-width:var(--plasma-number-input_icon-button_width);--plasma-icon-button-padding:var(--plasma-number-input_icon-button_padding);--plasma-icon-button-font-family:var(--plasma-number-input_icon-button_font-family);--plasma-icon-button-font-size:var(--plasma-number-input_icon-button_font-size);--plasma-icon-button-font-style:var(--plasma-number-input_icon-button_font-style);--plasma-icon-button-font-weight:var(--plasma-number-input_icon-button_font-weight);--plasma-icon-button-letter-spacing:var(--plasma-number-input_icon-button_letter-spacing);--plasma-icon-button-line-height:var(--plasma-number-input_icon-button_line-height);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_i1s8bsh6__eb7ed667{margin:var(--plasma-number-input_input-wrapper_margin);border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_t6wb9c__eb7ed667{height:var(--plasma-number-input_text-wrapper_height);padding:var(--plasma-number-input_text-wrapper_padding);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_d1n4jo6t__eb7ed667,.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_i1tgbhg7__eb7ed667,.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_az36kha__eb7ed667{font-family:var(--plasma-number-input_font-family);font-size:var(--plasma-number-input_font-size);font-style:var(--plasma-number-input_font-style);font-weight:var(--plasma-number-input_font-weight);-webkit-letter-spacing:var(--plasma-number-input_letter-spacing);-moz-letter-spacing:var(--plasma-number-input_letter-spacing);-ms-letter-spacing:var(--plasma-number-input_letter-spacing);letter-spacing:var(--plasma-number-input_letter-spacing);line-height:var(--plasma-number-input_line-height);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_az36kha__eb7ed667.base_1pju5qf_textBefore__eb7ed667{margin-right:var(--plasma-number-input_text-before_margin-right);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_az36kha__eb7ed667.base_1pju5qf_textAfter__eb7ed667{margin-left:var(--plasma-number-input_text-after_margin-left);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_s1ft73sv__eb7ed667{--plasma-spinner-size:var(--plasma-number-input_loader-spinner_size);}
822
-
823
- .base_k05biw_b1l31q8y__7da7a6d0 .base_k05biw_sj0ab1b__7da7a6d0{--plasma-icon-button-radius:var(--plasma-number-input_icon-button_radius);}
824
-
825
- .base_1jmdljr_b15uqx38__1838da29 .base_1jmdljr_i1s8bsh6__1838da29{background-color:var(--plasma-number-input_background-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color);}.base_1jmdljr_b15uqx38__1838da29 .base_1jmdljr_i1s8bsh6__1838da29:hover{background-color:var(--plasma-number-input_background-color-hover);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-hover);}
826
-
827
- .base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_segmentedView__1f8a3627,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_actionButtonDecrement__1f8a3627{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius) var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_actionButtonIncrement__1f8a3627{border-radius:var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627{background:transparent;}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627:hover{background-color:var(--plasma-number-input_icon-button_background-color-hover);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627:active{background-color:var(--plasma-number-input_icon-button_background-color-active);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:hover,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:hover,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:active,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:active{background-color:transparent;}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627{opacity:1;}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627 svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627 svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:hover svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:hover svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:active svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627{background:var(--plasma-number-input_background-color-solid);border-radius:var(--plasma-number-input_icon-button_radius);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1s8bsh6__1f8a3627{position:relative;color:var(--plasma-number-input_color-solid);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1s8bsh6__1f8a3627:focus-within{background-color:var(--plasma-number-input_background-color-solid-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-solid-focus);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_s1ft73sv__1f8a3627{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1tgbhg7__1f8a3627{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1tgbhg7__1f8a3627:not(.base_nl8ve_errorAnimation__1f8a3627){color:var(--plasma-number-input_color-solid);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_az36kha__1f8a3627{color:var(--plasma-number-input_additional-text_color-solid);}
828
-
829
- .base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0{background:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0{--plasma-icon-button-color:var(--plasma-number-input_icon-button_color-clear);--plasma-icon-button-background-color:transparent;--plasma-icon-button-color-hover:var(--plasma-number-input_icon-button_color-clear);--plasma-icon-button-background-color-hover:transparent;--plasma-icon-button-color-active:var(--plasma-number-input_icon-button_color-clear);--plasma-icon-button-background-color-active:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0:hover,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0:active{color:var(--plasma-number-input_icon-button_color-clear);background-color:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonDecrementDisabled__50c564e0:hover,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonIncrementDisabled__50c564e0:hover,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonDecrementDisabled__50c564e0:active,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonIncrementDisabled__50c564e0:active{color:var(--plasma-number-input_icon-button_color-clear);background-color:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1s8bsh6__50c564e0{background-color:transparent;box-shadow:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1s8bsh6__50c564e0:focus-within{background-color:var(--plasma-number-input_background-color-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-focus);}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1tgbhg7__50c564e0{caret-color:var(--plasma-number-input_caret_color);}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1tgbhg7__50c564e0:not(.base_3l8dqb_errorAnimation__50c564e0){color:var(--plasma-number-input_color-clear);}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_az36kha__50c564e0{color:var(--plasma-number-input_additional-text_color-clear);}
830
-
831
- .base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_numberInputDisabled__e93ebd2b{pointer-events:none;opacity:var(--plasma-number-input_disabled-opacity);cursor:not-allowed;}
808
+ .ViewContainer_yiqfcb_bemjbnt__5b2a6776{position:relative;}
package/es/index.js CHANGED
@@ -202,6 +202,5 @@ export { tokens as editableTokens } from './components/Editable/Editable.tokens.
202
202
  export { composeMask } from './components/Mask/Mask.js';
203
203
  export { attachConfig, attachRoot } from './components/Attach/Attach.js';
204
204
  export { tokens as attachTokens } from './components/Attach/Attach.tokens.js';
205
- export { numberInputConfig, numberInputRoot } from './components/NumberInput/NumberInput.js';
206
- export { classes as numberInputClasses, tokens as numberInputTokens } from './components/NumberInput/NumberInput.tokens.js';
205
+ export { viewContainerConfig, viewContainerRoot } from './components/ViewContainer/ViewContainer.js';
207
206
  //# sourceMappingURL=index.js.map
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.174.0-canary.1511.11518967304.0",
3
+ "version": "0.174.1-canary.1512.11549467998.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -81,6 +81,7 @@
81
81
  "@rollup/plugin-commonjs": "^25.0.4",
82
82
  "@rollup/plugin-node-resolve": "^15.1.0",
83
83
  "@salutejs/plasma-sb-utils": "0.181.0-dev.0",
84
+ "@salutejs/plasma-themes": "0.22.0-dev.0",
84
85
  "@storybook/addon-docs": "^7.6.17",
85
86
  "@storybook/addon-essentials": "^7.6.17",
86
87
  "@storybook/addons": "^7.6.17",
@@ -127,5 +128,5 @@
127
128
  "sideEffects": [
128
129
  "*.css"
129
130
  ],
130
- "gitHead": "9c42bdfbb737c4718b3d4283ace2063945cf6773"
131
+ "gitHead": "431fc4103184d231a0fe853eacd5061ea45edd9a"
131
132
  }