@salutejs/plasma-new-hope 0.195.0-canary.1534.11912348892.0 → 0.195.0-canary.1546.11913646617.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -333
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  3. package/cjs/components/Badge/Badge.css +4 -4
  4. package/cjs/components/Badge/Badge.js +17 -7
  5. package/cjs/components/Badge/Badge.js.map +1 -1
  6. package/cjs/components/Badge/Badge.tokens.js +10 -5
  7. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  8. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  9. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  10. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  11. package/cjs/components/Badge/variations/_size/base.js +1 -1
  12. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  13. package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  14. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  15. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  16. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  17. package/cjs/components/Badge/variations/_view/base.js +1 -1
  18. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  19. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  20. package/cjs/index.css +4 -18
  21. package/cjs/index.js +0 -6
  22. package/cjs/index.js.map +1 -1
  23. package/emotion/cjs/components/Badge/Badge.js +17 -7
  24. package/emotion/cjs/components/Badge/Badge.template-doc.mdx +40 -16
  25. package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
  26. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  27. package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
  28. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  29. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  30. package/emotion/cjs/components/_Icon/index.js +1 -8
  31. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  32. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  33. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  34. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  35. package/emotion/cjs/index.js +0 -11
  36. package/emotion/es/components/Badge/Badge.js +18 -8
  37. package/emotion/es/components/Badge/Badge.template-doc.mdx +40 -16
  38. package/emotion/es/components/Badge/Badge.tokens.js +9 -5
  39. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  40. package/emotion/es/components/Badge/variations/_size/base.js +3 -2
  41. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  42. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  43. package/emotion/es/components/_Icon/index.js +1 -2
  44. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  45. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  46. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  47. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  48. package/emotion/es/index.js +1 -2
  49. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -332
  50. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  51. package/es/components/Badge/Badge.css +4 -4
  52. package/es/components/Badge/Badge.js +20 -10
  53. package/es/components/Badge/Badge.js.map +1 -1
  54. package/es/components/Badge/Badge.tokens.js +10 -6
  55. package/es/components/Badge/Badge.tokens.js.map +1 -1
  56. package/es/components/Badge/variations/_clear/base.js +1 -1
  57. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  58. package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  59. package/es/components/Badge/variations/_size/base.js +1 -1
  60. package/es/components/Badge/variations/_size/base.js.map +1 -1
  61. package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  62. package/es/components/Badge/variations/_transparent/base.js +1 -1
  63. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  64. package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  65. package/es/components/Badge/variations/_view/base.js +1 -1
  66. package/es/components/Badge/variations/_view/base.js.map +1 -1
  67. package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  68. package/es/index.css +4 -18
  69. package/es/index.js +0 -2
  70. package/es/index.js.map +1 -1
  71. package/package.json +2 -2
  72. package/styled-components/cjs/components/Badge/Badge.js +17 -7
  73. package/styled-components/cjs/components/Badge/Badge.template-doc.mdx +40 -16
  74. package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
  75. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  76. package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
  77. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  78. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  79. package/styled-components/cjs/components/_Icon/index.js +1 -8
  80. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  81. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  82. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  83. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  84. package/styled-components/cjs/index.js +0 -11
  85. package/styled-components/es/components/Badge/Badge.js +18 -8
  86. package/styled-components/es/components/Badge/Badge.template-doc.mdx +40 -16
  87. package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
  88. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  89. package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
  90. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  91. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  92. package/styled-components/es/components/_Icon/index.js +1 -2
  93. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  94. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  95. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  96. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  97. package/styled-components/es/index.js +1 -2
  98. package/types/components/Badge/Badge.d.ts.map +1 -1
  99. package/types/components/Badge/Badge.tokens.d.ts +8 -4
  100. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  101. package/types/components/Badge/Badge.types.d.ts +18 -5
  102. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  103. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  104. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  105. package/types/components/_Icon/index.d.ts +0 -1
  106. package/types/components/_Icon/index.d.ts.map +1 -1
  107. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  108. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +61 -4
  109. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  110. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  111. package/types/examples/plasma_web/components/Badge/Badge.d.ts +61 -4
  112. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  113. package/types/index.d.ts +0 -1
  114. package/types/index.d.ts.map +1 -1
  115. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  116. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  117. package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
  118. package/cjs/components/Dropzone/Dropzone.css +0 -15
  119. package/cjs/components/Dropzone/Dropzone.js +0 -252
  120. package/cjs/components/Dropzone/Dropzone.js.map +0 -1
  121. package/cjs/components/Dropzone/Dropzone.styles.js +0 -47
  122. package/cjs/components/Dropzone/Dropzone.styles.js.map +0 -1
  123. package/cjs/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  124. package/cjs/components/Dropzone/Dropzone.tokens.js +0 -47
  125. package/cjs/components/Dropzone/Dropzone.tokens.js.map +0 -1
  126. package/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  127. package/cjs/components/Dropzone/variations/_disabled/base.js.map +0 -1
  128. package/cjs/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  129. package/cjs/components/Dropzone/variations/_size/base.js +0 -9
  130. package/cjs/components/Dropzone/variations/_size/base.js.map +0 -1
  131. package/cjs/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  132. package/cjs/components/Dropzone/variations/_view/base.js +0 -9
  133. package/cjs/components/Dropzone/variations/_view/base.js.map +0 -1
  134. package/cjs/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  135. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -24
  136. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  137. package/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -23
  138. package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  139. package/emotion/cjs/components/Dropzone/Dropzone.js +0 -271
  140. package/emotion/cjs/components/Dropzone/Dropzone.styles.js +0 -67
  141. package/emotion/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  142. package/emotion/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  143. package/emotion/cjs/components/Dropzone/Dropzone.types.js +0 -5
  144. package/emotion/cjs/components/Dropzone/index.js +0 -31
  145. package/emotion/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  146. package/emotion/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  147. package/emotion/cjs/components/Dropzone/variations/_size/base.js +0 -10
  148. package/emotion/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  149. package/emotion/cjs/components/Dropzone/variations/_view/base.js +0 -10
  150. package/emotion/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  151. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  152. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  153. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  154. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  155. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  156. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  157. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  158. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  159. package/emotion/es/components/Dropzone/Dropzone.js +0 -263
  160. package/emotion/es/components/Dropzone/Dropzone.styles.js +0 -60
  161. package/emotion/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  162. package/emotion/es/components/Dropzone/Dropzone.tokens.js +0 -38
  163. package/emotion/es/components/Dropzone/Dropzone.types.js +0 -1
  164. package/emotion/es/components/Dropzone/index.js +0 -2
  165. package/emotion/es/components/Dropzone/variations/_disabled/base.js +0 -3
  166. package/emotion/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  167. package/emotion/es/components/Dropzone/variations/_size/base.js +0 -4
  168. package/emotion/es/components/Dropzone/variations/_size/tokens.json +0 -19
  169. package/emotion/es/components/Dropzone/variations/_view/base.js +0 -4
  170. package/emotion/es/components/Dropzone/variations/_view/tokens.json +0 -9
  171. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  172. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  173. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  174. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  175. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  176. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  177. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  178. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  179. package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  180. package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  181. package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
  182. package/es/components/Dropzone/Dropzone.css +0 -15
  183. package/es/components/Dropzone/Dropzone.js +0 -247
  184. package/es/components/Dropzone/Dropzone.js.map +0 -1
  185. package/es/components/Dropzone/Dropzone.styles.js +0 -37
  186. package/es/components/Dropzone/Dropzone.styles.js.map +0 -1
  187. package/es/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  188. package/es/components/Dropzone/Dropzone.tokens.js +0 -41
  189. package/es/components/Dropzone/Dropzone.tokens.js.map +0 -1
  190. package/es/components/Dropzone/variations/_disabled/base.js +0 -5
  191. package/es/components/Dropzone/variations/_disabled/base.js.map +0 -1
  192. package/es/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  193. package/es/components/Dropzone/variations/_size/base.js +0 -5
  194. package/es/components/Dropzone/variations/_size/base.js.map +0 -1
  195. package/es/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  196. package/es/components/Dropzone/variations/_view/base.js +0 -5
  197. package/es/components/Dropzone/variations/_view/base.js.map +0 -1
  198. package/es/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  199. package/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -20
  200. package/es/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  201. package/es/components/_Icon/Icons/IconArrowBarDown.js +0 -19
  202. package/es/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  203. package/styled-components/cjs/components/Dropzone/Dropzone.js +0 -271
  204. package/styled-components/cjs/components/Dropzone/Dropzone.styles.js +0 -29
  205. package/styled-components/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  206. package/styled-components/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  207. package/styled-components/cjs/components/Dropzone/Dropzone.types.js +0 -5
  208. package/styled-components/cjs/components/Dropzone/index.js +0 -31
  209. package/styled-components/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  210. package/styled-components/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  211. package/styled-components/cjs/components/Dropzone/variations/_size/base.js +0 -10
  212. package/styled-components/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  213. package/styled-components/cjs/components/Dropzone/variations/_view/base.js +0 -10
  214. package/styled-components/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  215. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  216. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  217. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  218. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  219. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  220. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  221. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  222. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  223. package/styled-components/es/components/Dropzone/Dropzone.js +0 -263
  224. package/styled-components/es/components/Dropzone/Dropzone.styles.js +0 -21
  225. package/styled-components/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  226. package/styled-components/es/components/Dropzone/Dropzone.tokens.js +0 -38
  227. package/styled-components/es/components/Dropzone/Dropzone.types.js +0 -1
  228. package/styled-components/es/components/Dropzone/index.js +0 -2
  229. package/styled-components/es/components/Dropzone/variations/_disabled/base.js +0 -3
  230. package/styled-components/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  231. package/styled-components/es/components/Dropzone/variations/_size/base.js +0 -4
  232. package/styled-components/es/components/Dropzone/variations/_size/tokens.json +0 -19
  233. package/styled-components/es/components/Dropzone/variations/_view/base.js +0 -4
  234. package/styled-components/es/components/Dropzone/variations/_view/tokens.json +0 -9
  235. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  236. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  237. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  238. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  239. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  240. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  241. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  242. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  243. package/types/components/Dropzone/Dropzone.d.ts +0 -59
  244. package/types/components/Dropzone/Dropzone.d.ts.map +0 -1
  245. package/types/components/Dropzone/Dropzone.styles.d.ts +0 -9
  246. package/types/components/Dropzone/Dropzone.styles.d.ts.map +0 -1
  247. package/types/components/Dropzone/Dropzone.tokens.d.ts +0 -39
  248. package/types/components/Dropzone/Dropzone.tokens.d.ts.map +0 -1
  249. package/types/components/Dropzone/Dropzone.types.d.ts +0 -77
  250. package/types/components/Dropzone/Dropzone.types.d.ts.map +0 -1
  251. package/types/components/Dropzone/index.d.ts +0 -3
  252. package/types/components/Dropzone/index.d.ts.map +0 -1
  253. package/types/components/Dropzone/variations/_disabled/base.d.ts +0 -2
  254. package/types/components/Dropzone/variations/_disabled/base.d.ts.map +0 -1
  255. package/types/components/Dropzone/variations/_size/base.d.ts +0 -2
  256. package/types/components/Dropzone/variations/_size/base.d.ts.map +0 -1
  257. package/types/components/Dropzone/variations/_view/base.d.ts +0 -2
  258. package/types/components/Dropzone/variations/_view/base.d.ts.map +0 -1
  259. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +0 -4
  260. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +0 -1
  261. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +0 -4
  262. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +0 -1
  263. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts +0 -18
  264. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  265. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +0 -29
  266. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +0 -1
  267. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts +0 -18
  268. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  269. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts +0 -29
  270. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts.map +0 -1
@@ -1,19 +0,0 @@
1
- import { css } from '@emotion/react';
2
- import { dropzoneTokens } from '../../../../components/Dropzone';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'm'
7
- },
8
- variations: {
9
- view: {
10
- "default": /*#__PURE__*/css(dropzoneTokens.background, ":var(--surface-solid-card);", dropzoneTokens.backgroundHover, ":var(--surface-solid-card-hover);", dropzoneTokens.overlayColorActive, ":var(--overlay-soft);", dropzoneTokens.border, ":0.063rem dashed var(--outline-secondary);", dropzoneTokens.borderColorHover, ":var(--outline-secondary-hover);", dropzoneTokens.borderColorActive, ":var(--outline-accent);", dropzoneTokens.titleColor, ":var(--text-primary);", dropzoneTokens.descriptionColor, ":var(--text-secondary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2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2tlbnMuYm9yZGVyQ29sb3JIb3Zlcn06IHZhcigtLW91dGxpbmUtc2Vjb25kYXJ5LWhvdmVyKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9yQWN0aXZlfTogdmFyKC0tb3V0bGluZS1hY2NlbnQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVDb2xvcn06IHZhcigtLXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMucGFkZGluZ306IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlclJhZGl1c306IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5jb250ZW50R2FwfTogMC43NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcH06IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwQ29sdW1ufTogMC41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFN0eWxl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GlvbkxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGluZS1oZWlnaHQpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZGlzYWJsZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
11
- },
12
- size: {
13
- m: /*#__PURE__*/css(dropzoneTokens.padding, ":1.5rem;", dropzoneTokens.borderRadius, ":1.25rem;", dropzoneTokens.contentGap, ":0.75rem;", dropzoneTokens.titleWrapperGap, ":0.375rem;", dropzoneTokens.titleWrapperGapColumn, ":0.5rem;", dropzoneTokens.titleFontFamily, ":var(--plasma-typo-h4-font-family);", dropzoneTokens.titleFontSize, ":var(--plasma-typo-h4-font-size);", dropzoneTokens.titleFontStyle, ":var(--plasma-typo-h4-font-style);", dropzoneTokens.titleFontWeight, ":var(--plasma-typo-h4-bold-font-weight);", dropzoneTokens.titleLetterSpacing, ":var(--plasma-typo-h4-letter-spacing);", dropzoneTokens.titleLineHeight, ":var(--plasma-typo-h4-line-height);", dropzoneTokens.descriptionFontFamily, ":var(--plasma-typo-body-s-font-family);", dropzoneTokens.descriptionFontSize, ":var(--plasma-typo-body-s-font-size);", dropzoneTokens.descriptionFontStyle, ":var(--plasma-typo-body-s-font-style);", dropzoneTokens.descriptionFontWeight, ":var(--plasma-typo-body-s-font-weight);", dropzoneTokens.descriptionLetterSpacing, ":var(--plasma-typo-body-s-letter-spacing);", dropzoneTokens.descriptionLineHeight, ":var(--plasma-typo-body-s-line-height);;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL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ICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9ySG92ZXJ9OiB2YXIoLS1vdXRsaW5lLXNlY29uZGFyeS1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJDb2xvckFjdGl2ZX06IHZhcigtLW91dGxpbmUtYWNjZW50KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlQ29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Db2xvcn06IHZhcigtLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnBhZGRpbmd9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJSYWRpdXN9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuY29udGVudEdhcH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZVdyYXBwZXJHYXB9OiAwLjM3NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcENvbHVtbn06IDAuNXJlbTtcblxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8taDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1saW5lLWhlaWdodCk7XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kaXNhYmxlZE9wYWNpdHl9OiAwLjQ7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
14
- },
15
- disabled: {
16
- "true": /*#__PURE__*/css(dropzoneTokens.disabledOpacity, ":0.4;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENxQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBkcm9wem9uZVRva2VucyB9IGZyb20gJy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvRHJvcHpvbmUnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgIH0sXG4gICAg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RpdXN9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuY29udGVudEdhcH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZVdyYXBwZXJHYXB9OiAwLjM3NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcENvbHVtbn06IDAuNXJlbTtcblxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8taDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1saW5lLWhlaWdodCk7XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kaXNhYmxlZE9wYWNpdHl9OiAwLjQ7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
17
- }
18
- }
19
- };
@@ -1,5 +0,0 @@
1
- import { dropzoneConfig } from '../../../../components/Dropzone';
2
- import { component, mergeConfig } from '../../../../engines';
3
- import { config } from './Dropzone.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(dropzoneConfig, config);
5
- export var Dropzone = /*#__PURE__*/component(mergedConfig);
@@ -1,57 +0,0 @@
1
- import React, { ComponentProps } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
- import { disableProps } from '@salutejs/plasma-sb-utils';
5
-
6
- import { WithTheme } from '../../../_helpers';
7
-
8
- import { Dropzone } from './Dropzone';
9
-
10
- const onDragEnter = action('onDragEnter');
11
- const onDragLeave = action('onDragLeave');
12
- const onDrop = action('onDrop');
13
- const onChange = action('onChange');
14
- const onChoseFiles = action('onChoseFiles');
15
-
16
- const iconPlacements = ['top', 'left'];
17
-
18
- const meta: Meta<typeof Dropzone> = {
19
- title: 'plasma_b2c/Dropzone',
20
- component: Dropzone,
21
- decorators: [WithTheme],
22
- argTypes: {
23
- iconPlacement: {
24
- options: iconPlacements,
25
- control: {
26
- type: 'inline-radio',
27
- },
28
- defaultValue: 'top',
29
- },
30
- ...disableProps(['view', 'size']),
31
- },
32
- };
33
-
34
- export default meta;
35
-
36
- type StoryPropsDefault = ComponentProps<typeof Dropzone>;
37
-
38
- export const Default: StoryObj<StoryPropsDefault> = {
39
- args: {
40
- iconPlacement: 'top',
41
- width: 400,
42
- height: 280,
43
- disabled: false,
44
- title: 'Click to upload',
45
- description: 'or drag and drop files here',
46
- },
47
- render: (args) => (
48
- <Dropzone
49
- {...args}
50
- onDragEnter={onDragEnter}
51
- onDragLeave={onDragLeave}
52
- onDrop={onDrop}
53
- onChange={onChange}
54
- onChoseFiles={onChoseFiles}
55
- />
56
- ),
57
- };
@@ -1,19 +0,0 @@
1
- import { css } from '@emotion/react';
2
- import { dropzoneTokens } from '../../../../components/Dropzone';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'm'
7
- },
8
- variations: {
9
- view: {
10
- "default": /*#__PURE__*/css(dropzoneTokens.background, ":var(--surface-solid-card);", dropzoneTokens.backgroundHover, ":var(--surface-solid-card-hover);", dropzoneTokens.overlayColorActive, ":var(--overlay-soft);", dropzoneTokens.border, ":0.063rem dashed var(--outline-secondary);", dropzoneTokens.borderColorHover, ":var(--outline-secondary-hover);", dropzoneTokens.borderColorActive, ":var(--outline-accent);", dropzoneTokens.titleColor, ":var(--text-primary);", dropzoneTokens.descriptionColor, ":var(--text-secondary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV3dCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGRyb3B6b25lVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ecm9wem9uZSc7XG5cbmV4cG9ydCBjb25zdCBjb25maWcgPSB7XG4gICAgZGVmYXVsdHM6IHtcbiAgICAgICAgdmlldzogJ2RlZmF1bHQnLFxuICAgICAgICBzaXplOiAnbScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHZpZXc6IHtcbiAgICAgICAgICAgIGRlZmF1bHQ6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJhY2tncm91bmR9OiB2YXIoLS1zdXJmYWNlLXNvbGlkLWNhcmQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuYmFja2dyb3VuZEhvdmVyfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkLWhvdmVyKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLm92ZXJsYXlDb2xvckFjdGl2ZX06IHZhcigtLW92ZXJsYXktc29mdCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJ9OiAwLjA2M3JlbSBkYXNoZWQgdmFyKC0tb3V0bGluZS1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuYm9yZGVyQ29sb3JIb3Zlcn06IHZhcigtLW91dGxpbmUtc2Vjb25kYXJ5LWhvdmVyKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9yQWN0aXZlfTogdmFyKC0tb3V0bGluZS1hY2NlbnQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVDb2xvcn06IHZhcigtLXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMucGFkZGluZ306IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlclJhZGl1c306IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5jb250ZW50R2FwfTogMC43NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcH06IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwQ29sdW1ufTogMC41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1oN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gICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uTGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGluZS1oZWlnaHQpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZGlzYWJsZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
11
- },
12
- size: {
13
- m: /*#__PURE__*/css(dropzoneTokens.padding, ":1.5rem;", dropzoneTokens.borderRadius, ":1.25rem;", dropzoneTokens.contentGap, ":0.75rem;", dropzoneTokens.titleWrapperGap, ":0.375rem;", dropzoneTokens.titleWrapperGapColumn, ":0.5rem;", dropzoneTokens.titleFontFamily, ":var(--plasma-typo-h4-font-family);", dropzoneTokens.titleFontSize, ":var(--plasma-typo-h4-font-size);", dropzoneTokens.titleFontStyle, ":var(--plasma-typo-h4-font-style);", dropzoneTokens.titleFontWeight, ":var(--plasma-typo-h4-bold-font-weight);", dropzoneTokens.titleLetterSpacing, ":var(--plasma-typo-h4-letter-spacing);", dropzoneTokens.titleLineHeight, ":var(--plasma-typo-h4-line-height);", dropzoneTokens.descriptionFontFamily, ":var(--plasma-typo-body-s-font-family);", dropzoneTokens.descriptionFontSize, ":var(--plasma-typo-body-s-font-size);", dropzoneTokens.descriptionFontStyle, ":var(--plasma-typo-body-s-font-style);", dropzoneTokens.descriptionFontWeight, ":var(--plasma-typo-body-s-font-weight);", dropzoneTokens.descriptionLetterSpacing, ":var(--plasma-typo-body-s-letter-spacing);", dropzoneTokens.descriptionLineHeight, ":var(--plasma-typo-body-s-line-height);;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfd2ViL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBkcm9wem9uZVRva2VucyB9IGZyb20gJy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvRHJvcHpvbmUnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBkZWZhdWx0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJhY2tncm91bmRIb3Zlcn06IHZhcigtLXN1cmZhY2Utc29saWQtY2FyZC1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5vdmVybGF5Q29sb3JBY3RpdmV9OiB2YXIoLS1vdmVybGF5LXNvZnQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuYm9yZGVyfTogMC4wNjNyZW0gZGFzaGVkIHZhcigtLW91dGxpbmUtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9ySG92ZXJ9OiB2YXIoLS1vdXRsaW5lLXNlY29uZGFyeS1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJDb2xvckFjdGl2ZX06IHZhcigtLW91dGxpbmUtYWNjZW50KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlQ29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Db2xvcn06IHZhcigtLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnBhZGRpbmd9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJSYWRpdXN9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuY29udGVudEdhcH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZVdyYXBwZXJHYXB9OiAwLjM3NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcENvbHVtbn06IDAuNXJlbTtcblxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8taDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1saW5lLWhlaWdodCk7XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kaXNhYmxlZE9wYWNpdHl9OiAwLjQ7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
14
- },
15
- disabled: {
16
- "true": /*#__PURE__*/css(dropzoneTokens.disabledOpacity, ":0.4;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENxQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfd2ViL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBkcm9wem9uZVRva2VucyB9IGZyb20gJ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XG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnBhZGRpbmd9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJSYWRpdXN9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuY29udGVudEdhcH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZVdyYXBwZXJHYXB9OiAwLjM3NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcENvbHVtbn06IDAuNXJlbTtcblxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8taDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1saW5lLWhlaWdodCk7XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kaXNhYmxlZE9wYWNpdHl9OiAwLjQ7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
17
- }
18
- }
19
- };
@@ -1,5 +0,0 @@
1
- import { dropzoneConfig } from '../../../../components/Dropzone';
2
- import { component, mergeConfig } from '../../../../engines';
3
- import { config } from './Dropzone.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(dropzoneConfig, config);
5
- export var Dropzone = /*#__PURE__*/component(mergedConfig);
@@ -1,57 +0,0 @@
1
- import React, { ComponentProps } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
- import { disableProps } from '@salutejs/plasma-sb-utils';
5
-
6
- import { WithTheme } from '../../../_helpers';
7
-
8
- import { Dropzone } from './Dropzone';
9
-
10
- const onDragEnter = action('onDragEnter');
11
- const onDragLeave = action('onDragLeave');
12
- const onDrop = action('onDrop');
13
- const onChange = action('onChange');
14
- const onChoseFiles = action('onChoseFiles');
15
-
16
- const iconPlacements = ['top', 'left'];
17
-
18
- const meta: Meta<typeof Dropzone> = {
19
- title: 'plasma_web/Dropzone',
20
- component: Dropzone,
21
- decorators: [WithTheme],
22
- argTypes: {
23
- iconPlacement: {
24
- options: iconPlacements,
25
- control: {
26
- type: 'inline-radio',
27
- },
28
- defaultValue: 'top',
29
- },
30
- ...disableProps(['view', 'size']),
31
- },
32
- };
33
-
34
- export default meta;
35
-
36
- type StoryPropsDefault = ComponentProps<typeof Dropzone>;
37
-
38
- export const Default: StoryObj<StoryPropsDefault> = {
39
- args: {
40
- iconPlacement: 'top',
41
- width: 400,
42
- height: 280,
43
- disabled: false,
44
- title: 'Click to upload',
45
- description: 'or drag and drop files here',
46
- },
47
- render: (args) => (
48
- <Dropzone
49
- {...args}
50
- onDragEnter={onDragEnter}
51
- onDragLeave={onDragLeave}
52
- onDrop={onDrop}
53
- onChange={onChange}
54
- onChoseFiles={onChoseFiles}
55
- />
56
- ),
57
- };
@@ -1 +0,0 @@
1
- .b1e1wuvi.badge-clear{color:var(--plasma-badge-color-clear);background-color:transparent;padding:0;}
@@ -1 +0,0 @@
1
- .binquhc.badge-transparent{color:var(--plasma-badge-color-transparent);background-color:var(--plasma-badge-background-transparent);}
@@ -1 +0,0 @@
1
- .b5zny0e{color:var(--plasma-badge-color);background-color:var(--plasma-badge-background);}
@@ -1,15 +0,0 @@
1
- .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
2
-
3
- .base_1pdzq6t_byh8zio__d97f375f{background:var(--plasma-dropzone-background);border:var(--plasma-dropzone-border-color);}.base_1pdzq6t_byh8zio__d97f375f:not(.base_1pdzq6t_dropzoneActive__d97f375f):hover,.base_1pdzq6t_byh8zio__d97f375f:not(.base_1pdzq6t_dropzoneActive__d97f375f):focus-within{background:var(--plasma-dropzone-background-hover);border-color:var(--plasma-dropzone-border-color-hover);outline:none;}.base_1pdzq6t_byh8zio__d97f375f.base_1pdzq6t_dropzoneActive__d97f375f{border-color:var(--plasma-dropzone-border-color-active);}.base_1pdzq6t_byh8zio__d97f375f.base_1pdzq6t_dropzoneActive__d97f375f .base_1pdzq6t_dqiwesh__d97f375f{background:var(--plasma-dropzone-overlay-color-active);}.base_1pdzq6t_byh8zio__d97f375f .base_1pdzq6t_twnyozc__d97f375f{color:var(--plasma-dropzone-title-color);}.base_1pdzq6t_byh8zio__d97f375f .base_1pdzq6t_d1nsxook__d97f375f{color:var(--plasma-dropzone-description-color);}
4
-
5
- .base_1bt22g1_b1q81cck__c0e52b1e{padding:var(--plasma-dropzone-padding);border-radius:var(--plasma-dropzone-border-radius);height:var(--plasma_private-dropzone-height);width:var(--plasma_private-dropzone-width);}.base_1bt22g1_b1q81cck__c0e52b1e.base_1bt22g1_dropzoneStretch__c0e52b1e{width:100%;}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_dqiwesh__c0e52b1e{border-radius:var(--plasma-dropzone-border-radius);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_c1afz1o5__c0e52b1e{gap:var(--plasma-dropzone-content-gap);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_twnyozc__c0e52b1e{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;gap:var(--plasma-dropzone-title-wrapper-gap);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_twnyozc__c0e52b1e.base_1bt22g1_dropzoneVerticalContentPlacing__c0e52b1e{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-dropzone-title-wrapper-column-gap);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_tahwclk__c0e52b1e{font-family:var(--plasma-dropzone-title-font-family);font-size:var(--plasma-dropzone-title-font-size);font-style:var(--plasma-dropzone-title-font-style);font-weight:var(--plasma-dropzone-title-font-weight);-webkit-letter-spacing:var(--plasma-dropzone-title-letter-spacing);-moz-letter-spacing:var(--plasma-dropzone-title-letter-spacing);-ms-letter-spacing:var(--plasma-dropzone-title-letter-spacing);letter-spacing:var(--plasma-dropzone-title-letter-spacing);line-height:var(--plasma-dropzone-title-line-height);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_d1nsxook__c0e52b1e{font-family:var(--plasma-dropzone-description-font-family);font-size:var(--plasma-dropzone-description-font-size);font-style:var(--plasma-dropzone-description-font-style);font-weight:var(--plasma-dropzone-description-font-weight);-webkit-letter-spacing:var(--plasma-dropzone-description-letter-spacing);-moz-letter-spacing:var(--plasma-dropzone-description-letter-spacing);-ms-letter-spacing:var(--plasma-dropzone-description-letter-spacing);letter-spacing:var(--plasma-dropzone-description-letter-spacing);line-height:var(--plasma-dropzone-description-line-height);}
6
-
7
- .base_3qwygi_b1t0rfqa__f5b3e7aa.base_3qwygi_dropzoneDisabled__f5b3e7aa{opacity:var(--plasma-dropzone-disabled-opacity);cursor:not-allowed;}
8
-
9
- .Dropzone_styles_1fo7dbq_bfglrd7__65c68d0a{position:relative;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;cursor:pointer;}
10
- .Dropzone_styles_1fo7dbq_dqiwesh__65c68d0a{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;}
11
- .Dropzone_styles_1fo7dbq_c1afz1o5__65c68d0a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
12
-
13
-
14
-
15
- .Dropzone_styles_1fo7dbq_hzipmyu__65c68d0a{display:none;}
@@ -1,247 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, extends as _extends, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime, toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef, useState, useRef } from 'react';
3
- import { useForkRef } from '@salutejs/plasma-core';
4
- import { cx } from '../../utils/index.js';
5
- import { base as base$1 } from './variations/_view/base.js';
6
- import { base as base$2 } from './variations/_size/base.js';
7
- import { base as base$3 } from './variations/_disabled/base.js';
8
- import { DropzoneHandlerOverlay, Content, TitleWrapper, Title, Description, HiddenInput, base } from './Dropzone.styles.js';
9
- import { classes, privateTokens } from './Dropzone.tokens.js';
10
- import { IconArrowBarDown } from '../_Icon/Icons/IconArrowBarDown.js';
11
- import { getSizeValueFromProp } from '../../utils/getSizeValueFromProp.js';
12
-
13
- var _IconArrowBarDown;
14
- var _excluded = ["className", "style", "accept", "multiple", "title", "description", "icon", "iconPlacement", "size", "view", "disabled", "stretch", "width", "height", "onDragEnter", "onDragLeave", "onDragOver", "onDrop", "validator", "onClick", "onChange", "onChoseFiles"];
15
- var dropzoneRoot = function dropzoneRoot(Root) {
16
- return /*#__PURE__*/forwardRef(function (_ref, outerRef) {
17
- var className = _ref.className,
18
- style = _ref.style,
19
- accept = _ref.accept,
20
- multiple = _ref.multiple,
21
- title = _ref.title,
22
- description = _ref.description,
23
- icon = _ref.icon,
24
- iconPlacement = _ref.iconPlacement,
25
- size = _ref.size,
26
- view = _ref.view,
27
- disabled = _ref.disabled,
28
- stretch = _ref.stretch,
29
- width = _ref.width,
30
- height = _ref.height,
31
- onDragEnter = _ref.onDragEnter,
32
- onDragLeave = _ref.onDragLeave,
33
- onDragOver = _ref.onDragOver,
34
- onDrop = _ref.onDrop,
35
- validator = _ref.validator,
36
- onClick = _ref.onClick,
37
- onChange = _ref.onChange,
38
- onChoseFiles = _ref.onChoseFiles,
39
- rest = _objectWithoutProperties(_ref, _excluded);
40
- var _useState = useState(false),
41
- _useState2 = _slicedToArray(_useState, 2),
42
- isDropzoneActive = _useState2[0],
43
- setIsDropzoneActive = _useState2[1];
44
- var inputRef = useRef(null);
45
- var forkInputRef = useForkRef(outerRef, inputRef);
46
- var innerWidth = width ? getSizeValueFromProp(width) : 'fit-content';
47
- var innerHeight = height ? getSizeValueFromProp(height) : 'fit-content';
48
- var processFiles = /*#__PURE__*/function () {
49
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(rawFiles, callback, afterAction) {
50
- var files, res;
51
- return _regeneratorRuntime().wrap(function _callee$(_context) {
52
- while (1) switch (_context.prev = _context.next) {
53
- case 0:
54
- if (rawFiles !== null && rawFiles !== void 0 && rawFiles.length) {
55
- _context.next = 2;
56
- break;
57
- }
58
- return _context.abrupt("return");
59
- case 2:
60
- files = _toConsumableArray(rawFiles);
61
- res = {
62
- acceptedFiles: files
63
- };
64
- if (!validator) {
65
- _context.next = 8;
66
- break;
67
- }
68
- _context.next = 7;
69
- return validator === null || validator === void 0 ? void 0 : validator(files);
70
- case 7:
71
- res = _context.sent;
72
- case 8:
73
- if (!callback) {
74
- _context.next = 11;
75
- break;
76
- }
77
- _context.next = 11;
78
- return callback(res);
79
- case 11:
80
- if (afterAction) {
81
- afterAction();
82
- }
83
- case 12:
84
- case "end":
85
- return _context.stop();
86
- }
87
- }, _callee);
88
- }));
89
- return function processFiles(_x, _x2, _x3) {
90
- return _ref2.apply(this, arguments);
91
- };
92
- }();
93
- var handleDragEnter = function handleDragEnter(event) {
94
- if (disabled) {
95
- return;
96
- }
97
- event.preventDefault();
98
- event.stopPropagation();
99
- if (onDragEnter) {
100
- onDragEnter(event);
101
- }
102
- setIsDropzoneActive(true);
103
- };
104
- var handleDragLeave = function handleDragLeave(event) {
105
- if (disabled) {
106
- return;
107
- }
108
- event.preventDefault();
109
- if (onDragLeave) {
110
- onDragLeave(event);
111
- }
112
- setIsDropzoneActive(false);
113
- };
114
- var handleDragOver = function handleDragOver(event) {
115
- if (disabled) {
116
- return;
117
- }
118
- event.preventDefault();
119
- if (onDragOver) {
120
- onDragOver(event);
121
- }
122
- var rawFiles = event.dataTransfer.files;
123
- if (!isDropzoneActive && rawFiles && rawFiles.length > 0) {
124
- setIsDropzoneActive(true);
125
- }
126
- };
127
- var handleDrop = /*#__PURE__*/function () {
128
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event) {
129
- var rawFiles, afterAction;
130
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
131
- while (1) switch (_context2.prev = _context2.next) {
132
- case 0:
133
- if (!disabled) {
134
- _context2.next = 2;
135
- break;
136
- }
137
- return _context2.abrupt("return");
138
- case 2:
139
- event.preventDefault();
140
- event.persist();
141
- rawFiles = event.dataTransfer.files;
142
- afterAction = function afterAction() {
143
- event.dataTransfer.clearData();
144
- setIsDropzoneActive(false);
145
- };
146
- _context2.next = 8;
147
- return processFiles(rawFiles, onDrop, afterAction);
148
- case 8:
149
- case "end":
150
- return _context2.stop();
151
- }
152
- }, _callee2);
153
- }));
154
- return function handleDrop(_x4) {
155
- return _ref3.apply(this, arguments);
156
- };
157
- }();
158
- var handleClick = function handleClick(event) {
159
- if (!inputRef.current || disabled) {
160
- return;
161
- }
162
- inputRef.current.click();
163
- if (onClick) {
164
- onClick(event);
165
- }
166
- };
167
- var handleChange = /*#__PURE__*/function () {
168
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(event) {
169
- var rawFiles;
170
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
171
- while (1) switch (_context3.prev = _context3.next) {
172
- case 0:
173
- if (!disabled) {
174
- _context3.next = 2;
175
- break;
176
- }
177
- return _context3.abrupt("return");
178
- case 2:
179
- if (onChange) {
180
- onChange(event);
181
- }
182
- rawFiles = event.target.files;
183
- _context3.next = 6;
184
- return processFiles(rawFiles, onChoseFiles);
185
- case 6:
186
- case "end":
187
- return _context3.stop();
188
- }
189
- }, _callee3);
190
- }));
191
- return function handleChange(_x5) {
192
- return _ref4.apply(this, arguments);
193
- };
194
- }();
195
- return /*#__PURE__*/React.createElement(Root, {
196
- className: cx(className, isDropzoneActive && classes.active, stretch && classes.stretch, disabled && classes.disabled),
197
- view: view,
198
- size: size,
199
- disabled: disabled,
200
- tabIndex: 0,
201
- style: _objectSpread2(_objectSpread2({}, style), {}, _defineProperty(_defineProperty({}, privateTokens.width, innerWidth), privateTokens.height, innerHeight))
202
- }, /*#__PURE__*/React.createElement(DropzoneHandlerOverlay, {
203
- onDragEnter: handleDragEnter,
204
- onDragLeave: handleDragLeave,
205
- onDragOver: handleDragOver,
206
- onDrop: handleDrop,
207
- onClick: handleClick
208
- }), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(TitleWrapper, {
209
- className: cx(iconPlacement === 'top' && classes.verticalContentPlacing)
210
- }, icon || _IconArrowBarDown || (_IconArrowBarDown = /*#__PURE__*/React.createElement(IconArrowBarDown, {
211
- color: "inherit",
212
- size: "s"
213
- })), title && /*#__PURE__*/React.createElement(Title, null, title)), description && /*#__PURE__*/React.createElement(Description, null, description)), /*#__PURE__*/React.createElement(HiddenInput, _extends({
214
- ref: forkInputRef,
215
- type: "file",
216
- accept: accept,
217
- multiple: multiple,
218
- tabIndex: -1,
219
- onChange: handleChange
220
- }, rest)));
221
- });
222
- };
223
- var dropzoneConfig = {
224
- name: 'Dropzone',
225
- tag: 'div',
226
- layout: dropzoneRoot,
227
- base: base,
228
- variations: {
229
- view: {
230
- css: base$1
231
- },
232
- size: {
233
- css: base$2
234
- },
235
- disabled: {
236
- css: base$3,
237
- attrs: true
238
- }
239
- },
240
- defaults: {
241
- view: 'default',
242
- size: 'm'
243
- }
244
- };
245
-
246
- export { dropzoneConfig, dropzoneRoot };
247
- //# sourceMappingURL=Dropzone.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dropzone.js","sources":["../../../src/components/Dropzone/Dropzone.tsx"],"sourcesContent":["import React, { forwardRef, useRef, useState } from 'react';\nimport type { ChangeEvent, CSSProperties, DragEvent, MouseEvent } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { cx, getSizeValueFromProp } from '../../utils';\nimport { IconArrowBarDown } from '../../components/_Icon';\nimport type { RootProps } from '../../engines';\n\nimport type { DropzoneProps, DropzoneRootProps, FileArgs, FileProcessHandler } from './Dropzone.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport {\n base,\n Content,\n Description,\n DropzoneHandlerOverlay,\n HiddenInput,\n Title,\n TitleWrapper,\n} from './Dropzone.styles';\nimport { classes, privateTokens } from './Dropzone.tokens';\n\nexport const dropzoneRoot = (Root: RootProps<HTMLDivElement, DropzoneRootProps>) =>\n forwardRef<HTMLInputElement, DropzoneProps>(\n (\n {\n className,\n style,\n accept,\n multiple,\n title,\n description,\n icon,\n iconPlacement,\n size,\n view,\n disabled,\n stretch,\n width,\n height,\n onDragEnter,\n onDragLeave,\n onDragOver,\n onDrop,\n validator,\n onClick,\n onChange,\n onChoseFiles,\n ...rest\n },\n outerRef,\n ) => {\n const [isDropzoneActive, setIsDropzoneActive] = useState(false);\n\n const inputRef = useRef<HTMLInputElement>(null);\n const forkInputRef = useForkRef(outerRef, inputRef);\n\n const innerWidth = width ? getSizeValueFromProp(width) : 'fit-content';\n const innerHeight = height ? getSizeValueFromProp(height) : 'fit-content';\n\n const processFiles = async (\n rawFiles: FileList | null,\n callback?: FileProcessHandler,\n afterAction?: () => void,\n ) => {\n if (!rawFiles?.length) {\n return;\n }\n\n const files = [...rawFiles];\n let res: FileArgs = {\n acceptedFiles: files,\n };\n\n if (validator) {\n res = await validator?.(files);\n }\n\n if (callback) {\n await callback(res);\n }\n\n if (afterAction) {\n afterAction();\n }\n };\n\n const handleDragEnter = (event: DragEvent<HTMLDivElement>) => {\n if (disabled) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n\n if (onDragEnter) {\n onDragEnter(event);\n }\n\n setIsDropzoneActive(true);\n };\n\n const handleDragLeave = (event: DragEvent<HTMLDivElement>) => {\n if (disabled) {\n return;\n }\n\n event.preventDefault();\n\n if (onDragLeave) {\n onDragLeave(event);\n }\n\n setIsDropzoneActive(false);\n };\n\n const handleDragOver = (event: DragEvent<HTMLDivElement>) => {\n if (disabled) {\n return;\n }\n\n event.preventDefault();\n\n if (onDragOver) {\n onDragOver(event);\n }\n\n const { files: rawFiles } = event.dataTransfer;\n\n if (!isDropzoneActive && rawFiles && rawFiles.length > 0) {\n setIsDropzoneActive(true);\n }\n };\n\n const handleDrop = async (event: DragEvent<HTMLDivElement>) => {\n if (disabled) {\n return;\n }\n\n event.preventDefault();\n event.persist();\n\n const { files: rawFiles } = event.dataTransfer;\n const afterAction = () => {\n event.dataTransfer.clearData();\n setIsDropzoneActive(false);\n };\n\n await processFiles(rawFiles, onDrop, afterAction);\n };\n\n const handleClick = (event: MouseEvent<HTMLInputElement>) => {\n if (!inputRef.current || disabled) {\n return;\n }\n\n inputRef.current.click();\n\n if (onClick) {\n onClick(event);\n }\n };\n\n const handleChange = async (event: ChangeEvent<HTMLInputElement>) => {\n if (disabled) {\n return;\n }\n\n if (onChange) {\n onChange(event);\n }\n\n const { files: rawFiles } = event.target;\n\n await processFiles(rawFiles, onChoseFiles);\n };\n\n return (\n <Root\n className={cx(\n className,\n isDropzoneActive && classes.active,\n stretch && classes.stretch,\n disabled && classes.disabled,\n )}\n view={view}\n size={size}\n disabled={disabled}\n tabIndex={0}\n style={\n {\n ...style,\n [privateTokens.width]: innerWidth,\n [privateTokens.height]: innerHeight,\n } as CSSProperties\n }\n >\n <DropzoneHandlerOverlay\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n onClick={handleClick}\n />\n <Content>\n <TitleWrapper className={cx(iconPlacement === 'top' && classes.verticalContentPlacing)}>\n {icon || <IconArrowBarDown color=\"inherit\" size=\"s\" />}\n {title && <Title>{title}</Title>}\n </TitleWrapper>\n {description && <Description>{description}</Description>}\n </Content>\n <HiddenInput\n ref={forkInputRef}\n type=\"file\"\n accept={accept}\n multiple={multiple}\n tabIndex={-1}\n onChange={handleChange}\n {...rest}\n />\n </Root>\n );\n },\n );\n\nexport const dropzoneConfig = {\n name: 'Dropzone',\n tag: 'div',\n layout: dropzoneRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["dropzoneRoot","Root","forwardRef","_ref","outerRef","className","style","accept","multiple","title","description","icon","iconPlacement","size","view","disabled","stretch","width","height","onDragEnter","onDragLeave","onDragOver","onDrop","validator","onClick","onChange","onChoseFiles","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","isDropzoneActive","setIsDropzoneActive","inputRef","useRef","forkInputRef","useForkRef","innerWidth","getSizeValueFromProp","innerHeight","processFiles","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","rawFiles","callback","afterAction","files","res","wrap","_callee$","_context","prev","next","length","abrupt","_toConsumableArray","acceptedFiles","sent","stop","_x","_x2","_x3","apply","arguments","handleDragEnter","event","preventDefault","stopPropagation","handleDragLeave","handleDragOver","dataTransfer","handleDrop","_ref3","_callee2","_callee2$","_context2","persist","clearData","_x4","handleClick","current","click","handleChange","_ref4","_callee3","_callee3$","_context3","target","_x5","React","createElement","cx","classes","active","tabIndex","_objectSpread","_defineProperty","privateTokens","DropzoneHandlerOverlay","Content","TitleWrapper","verticalContentPlacing","_IconArrowBarDown","IconArrowBarDown","color","Title","Description","HiddenInput","_extends","ref","type","dropzoneConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;;;IAuBaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAAkD,EAAA;AAAA,EAAA,oBAC3EC,UAAU,CACN,UAAAC,IAAA,EA0BIC,QAAQ,EACP;AAAA,IAAA,IAzBGC,SAAS,GAAAF,IAAA,CAATE,SAAS;MACTC,KAAK,GAAAH,IAAA,CAALG,KAAK;MACLC,MAAM,GAAAJ,IAAA,CAANI,MAAM;MACNC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,KAAK,GAAAN,IAAA,CAALM,KAAK;MACLC,WAAW,GAAAP,IAAA,CAAXO,WAAW;MACXC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MACJC,aAAa,GAAAT,IAAA,CAAbS,aAAa;MACbC,IAAI,GAAAV,IAAA,CAAJU,IAAI;MACJC,IAAI,GAAAX,IAAA,CAAJW,IAAI;MACJC,QAAQ,GAAAZ,IAAA,CAARY,QAAQ;MACRC,OAAO,GAAAb,IAAA,CAAPa,OAAO;MACPC,KAAK,GAAA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G;AAC1BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAExH,YAAY;AACpByH,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACR5G,IAAAA,IAAI,EAAE;AACF6G,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACD/G,IAAAA,IAAI,EAAE;AACF8G,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACD9G,IAAAA,QAAQ,EAAE;AACN4G,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNlH,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,37 +0,0 @@
1
- import './Dropzone.styles_1fo7dbq.css';
2
- import { styled } from '@linaria/react';
3
-
4
- var base = "bfglrd7";
5
- var DropzoneHandlerOverlay = /*#__PURE__*/styled('div')({
6
- name: "DropzoneHandlerOverlay",
7
- "class": "dqiwesh",
8
- propsAsIs: false
9
- });
10
- var Content = /*#__PURE__*/styled('div')({
11
- name: "Content",
12
- "class": "c1afz1o5",
13
- propsAsIs: false
14
- });
15
- var TitleWrapper = /*#__PURE__*/styled('div')({
16
- name: "TitleWrapper",
17
- "class": "twnyozc",
18
- propsAsIs: false
19
- });
20
- var Title = /*#__PURE__*/styled('span')({
21
- name: "Title",
22
- "class": "tahwclk",
23
- propsAsIs: false
24
- });
25
- var Description = /*#__PURE__*/styled('span')({
26
- name: "Description",
27
- "class": "d1nsxook",
28
- propsAsIs: false
29
- });
30
- var HiddenInput = /*#__PURE__*/styled('input')({
31
- name: "HiddenInput",
32
- "class": "hzipmyu",
33
- propsAsIs: false
34
- });
35
-
36
- export { Content, Description, DropzoneHandlerOverlay, HiddenInput, Title, TitleWrapper, base };
37
- //# sourceMappingURL=Dropzone.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dropzone.styles.js","sources":["../../../src/components/Dropzone/Dropzone.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nexport const base = css`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n`;\n\nexport const DropzoneHandlerOverlay = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 2;\n`;\n\nexport const Content = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n user-select: none;\n`;\n\nexport const TitleWrapper = styled.div``;\n\nexport const Title = styled.span``;\n\nexport const Description = styled.span``;\n\nexport const HiddenInput = styled.input`\n display: none;\n`;\n"],"names":["base","DropzoneHandlerOverlay","styled","name","class","propsAsIs","Content","TitleWrapper","Title","Description","HiddenInput"],"mappings":";;AAGO,IAAMA,IAAI,GAMhB,UAAA;AAEM,IAAMC,sBAAsB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,wBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAO3C,EAAA;AAEM,IAAMC,OAAO,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,SAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAM5B,EAAA;AAEM,IAAME,YAAY,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM,EAAA;AAEjC,IAAMG,KAAK,gBAAGN,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAO,EAAA;AAE3B,IAAMI,WAAW,gBAAGP,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAO,EAAA;AAEjC,IAAMK,WAAW,gBAAGR,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEhC;;;;"}
@@ -1,7 +0,0 @@
1
- .bfglrd7{position:relative;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;cursor:pointer;}
2
- .dqiwesh{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;}
3
- .c1afz1o5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
4
-
5
-
6
-
7
- .hzipmyu{display:none;}
@@ -1,41 +0,0 @@
1
- var classes = {
2
- stretch: 'dropzone-stretch',
3
- active: 'dropzone-active',
4
- verticalContentPlacing: 'dropzone-vertical-content-placing',
5
- disabled: 'dropzone-disabled'
6
- };
7
- var privateTokens = {
8
- width: '--plasma_private-dropzone-width',
9
- height: '--plasma_private-dropzone-height'
10
- };
11
- var tokens = {
12
- background: '--plasma-dropzone-background',
13
- backgroundHover: '--plasma-dropzone-background-hover',
14
- overlayColorActive: '--plasma-dropzone-overlay-color-active',
15
- border: '--plasma-dropzone-border-color',
16
- borderColorHover: '--plasma-dropzone-border-color-hover',
17
- borderColorActive: '--plasma-dropzone-border-color-active',
18
- titleColor: '--plasma-dropzone-title-color',
19
- descriptionColor: '--plasma-dropzone-description-color',
20
- padding: '--plasma-dropzone-padding',
21
- borderRadius: '--plasma-dropzone-border-radius',
22
- contentGap: '--plasma-dropzone-content-gap',
23
- titleWrapperGap: '--plasma-dropzone-title-wrapper-gap',
24
- titleWrapperGapColumn: '--plasma-dropzone-title-wrapper-column-gap',
25
- titleFontFamily: '--plasma-dropzone-title-font-family',
26
- titleFontSize: '--plasma-dropzone-title-font-size',
27
- titleFontStyle: '--plasma-dropzone-title-font-style',
28
- titleFontWeight: '--plasma-dropzone-title-font-weight',
29
- titleLetterSpacing: '--plasma-dropzone-title-letter-spacing',
30
- titleLineHeight: '--plasma-dropzone-title-line-height',
31
- descriptionFontFamily: '--plasma-dropzone-description-font-family',
32
- descriptionFontSize: '--plasma-dropzone-description-font-size',
33
- descriptionFontStyle: '--plasma-dropzone-description-font-style',
34
- descriptionFontWeight: '--plasma-dropzone-description-font-weight',
35
- descriptionLetterSpacing: '--plasma-dropzone-description-letter-spacing',
36
- descriptionLineHeight: '--plasma-dropzone-description-line-height',
37
- disabledOpacity: '--plasma-dropzone-disabled-opacity'
38
- };
39
-
40
- export { classes, privateTokens, tokens };
41
- //# sourceMappingURL=Dropzone.tokens.js.map