@salutejs/plasma-new-hope 0.194.1-canary.1569.11908076676.0 → 0.195.0-canary.1534.11911237435.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +333 -0
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  3. package/cjs/components/Dropzone/Dropzone.css +15 -0
  4. package/cjs/components/Dropzone/Dropzone.js +252 -0
  5. package/cjs/components/Dropzone/Dropzone.js.map +1 -0
  6. package/cjs/components/Dropzone/Dropzone.styles.js +47 -0
  7. package/cjs/components/Dropzone/Dropzone.styles.js.map +1 -0
  8. package/cjs/components/Dropzone/Dropzone.styles_1fo7dbq.css +7 -0
  9. package/cjs/components/Dropzone/Dropzone.tokens.js +47 -0
  10. package/cjs/components/Dropzone/Dropzone.tokens.js.map +1 -0
  11. package/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
  12. package/cjs/components/Dropzone/variations/_disabled/base.js.map +1 -0
  13. package/cjs/components/Dropzone/variations/_disabled/base_3qwygi.css +1 -0
  14. package/cjs/components/Dropzone/variations/_size/base.js +9 -0
  15. package/cjs/components/Dropzone/variations/_size/base.js.map +1 -0
  16. package/cjs/components/Dropzone/variations/_size/base_1bt22g1.css +1 -0
  17. package/cjs/components/Dropzone/variations/_view/base.js +9 -0
  18. package/cjs/components/Dropzone/variations/_view/base.js.map +1 -0
  19. package/cjs/components/Dropzone/variations/_view/base_1pdzq6t.css +1 -0
  20. package/cjs/components/Switch/Switch.css +1 -1
  21. package/cjs/components/Switch/Switch.tokens.js +1 -2
  22. package/cjs/components/Switch/Switch.tokens.js.map +1 -1
  23. package/cjs/components/Switch/_toggleSize/base.js +1 -1
  24. package/cjs/components/Switch/_toggleSize/base.js.map +1 -1
  25. package/cjs/components/Switch/_toggleSize/base_1d0b3t4.css +1 -0
  26. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +24 -0
  27. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +1 -0
  28. package/cjs/components/_Icon/Icons/IconArrowBarDown.js +23 -0
  29. package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +1 -0
  30. package/cjs/index.css +15 -1
  31. package/cjs/index.js +6 -0
  32. package/cjs/index.js.map +1 -1
  33. package/emotion/cjs/components/Dropzone/Dropzone.js +271 -0
  34. package/emotion/cjs/components/Dropzone/Dropzone.styles.js +67 -0
  35. package/emotion/cjs/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  36. package/emotion/cjs/components/Dropzone/Dropzone.tokens.js +44 -0
  37. package/emotion/cjs/components/Dropzone/Dropzone.types.js +5 -0
  38. package/emotion/cjs/components/Dropzone/index.js +31 -0
  39. package/emotion/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
  40. package/emotion/cjs/components/Dropzone/variations/_disabled/tokens.json +4 -0
  41. package/emotion/cjs/components/Dropzone/variations/_size/base.js +10 -0
  42. package/emotion/cjs/components/Dropzone/variations/_size/tokens.json +19 -0
  43. package/emotion/cjs/components/Dropzone/variations/_view/base.js +10 -0
  44. package/emotion/cjs/components/Dropzone/variations/_view/tokens.json +9 -0
  45. package/emotion/cjs/components/Switch/Switch.tokens.js +1 -2
  46. package/emotion/cjs/components/Switch/_toggleSize/base.js +1 -1
  47. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  48. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  49. package/emotion/cjs/components/_Icon/index.js +8 -1
  50. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +25 -0
  51. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +11 -0
  52. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  53. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +8 -8
  54. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.outline.config.js +8 -8
  55. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +25 -0
  56. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +11 -0
  57. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  58. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +8 -8
  59. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.outline.config.js +8 -8
  60. package/emotion/cjs/index.js +11 -0
  61. package/emotion/es/components/Dropzone/Dropzone.js +263 -0
  62. package/emotion/es/components/Dropzone/Dropzone.styles.js +60 -0
  63. package/emotion/es/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  64. package/emotion/es/components/Dropzone/Dropzone.tokens.js +38 -0
  65. package/emotion/es/components/Dropzone/Dropzone.types.js +1 -0
  66. package/emotion/es/components/Dropzone/index.js +2 -0
  67. package/emotion/es/components/Dropzone/variations/_disabled/base.js +3 -0
  68. package/emotion/es/components/Dropzone/variations/_disabled/tokens.json +4 -0
  69. package/emotion/es/components/Dropzone/variations/_size/base.js +4 -0
  70. package/emotion/es/components/Dropzone/variations/_size/tokens.json +19 -0
  71. package/emotion/es/components/Dropzone/variations/_view/base.js +4 -0
  72. package/emotion/es/components/Dropzone/variations/_view/tokens.json +9 -0
  73. package/emotion/es/components/Switch/Switch.tokens.js +1 -2
  74. package/emotion/es/components/Switch/_toggleSize/base.js +2 -2
  75. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  76. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  77. package/emotion/es/components/_Icon/index.js +2 -1
  78. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +19 -0
  79. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +5 -0
  80. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  81. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +8 -8
  82. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.outline.config.js +8 -8
  83. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +19 -0
  84. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.js +5 -0
  85. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  86. package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +8 -8
  87. package/emotion/es/examples/plasma_web/components/Switch/Switch.outline.config.js +8 -8
  88. package/emotion/es/index.js +2 -1
  89. package/es/_virtual/_rollupPluginBabelHelpers.js +332 -1
  90. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  91. package/es/components/Dropzone/Dropzone.css +15 -0
  92. package/es/components/Dropzone/Dropzone.js +247 -0
  93. package/es/components/Dropzone/Dropzone.js.map +1 -0
  94. package/es/components/Dropzone/Dropzone.styles.js +37 -0
  95. package/es/components/Dropzone/Dropzone.styles.js.map +1 -0
  96. package/es/components/Dropzone/Dropzone.styles_1fo7dbq.css +7 -0
  97. package/es/components/Dropzone/Dropzone.tokens.js +41 -0
  98. package/es/components/Dropzone/Dropzone.tokens.js.map +1 -0
  99. package/es/components/Dropzone/variations/_disabled/base.js +5 -0
  100. package/es/components/Dropzone/variations/_disabled/base.js.map +1 -0
  101. package/es/components/Dropzone/variations/_disabled/base_3qwygi.css +1 -0
  102. package/es/components/Dropzone/variations/_size/base.js +5 -0
  103. package/es/components/Dropzone/variations/_size/base.js.map +1 -0
  104. package/es/components/Dropzone/variations/_size/base_1bt22g1.css +1 -0
  105. package/es/components/Dropzone/variations/_view/base.js +5 -0
  106. package/es/components/Dropzone/variations/_view/base.js.map +1 -0
  107. package/es/components/Dropzone/variations/_view/base_1pdzq6t.css +1 -0
  108. package/es/components/Switch/Switch.css +1 -1
  109. package/es/components/Switch/Switch.tokens.js +1 -2
  110. package/es/components/Switch/Switch.tokens.js.map +1 -1
  111. package/es/components/Switch/_toggleSize/base.js +1 -1
  112. package/es/components/Switch/_toggleSize/base.js.map +1 -1
  113. package/es/components/Switch/_toggleSize/base_1d0b3t4.css +1 -0
  114. package/es/components/_Icon/Icon.assets/ArrowBarDown.js +20 -0
  115. package/es/components/_Icon/Icon.assets/ArrowBarDown.js.map +1 -0
  116. package/es/components/_Icon/Icons/IconArrowBarDown.js +19 -0
  117. package/es/components/_Icon/Icons/IconArrowBarDown.js.map +1 -0
  118. package/es/index.css +15 -1
  119. package/es/index.js +2 -0
  120. package/es/index.js.map +1 -1
  121. package/package.json +2 -2
  122. package/styled-components/cjs/components/Dropzone/Dropzone.js +271 -0
  123. package/styled-components/cjs/components/Dropzone/Dropzone.styles.js +29 -0
  124. package/styled-components/cjs/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  125. package/styled-components/cjs/components/Dropzone/Dropzone.tokens.js +44 -0
  126. package/styled-components/cjs/components/Dropzone/Dropzone.types.js +5 -0
  127. package/styled-components/cjs/components/Dropzone/index.js +31 -0
  128. package/styled-components/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
  129. package/styled-components/cjs/components/Dropzone/variations/_disabled/tokens.json +4 -0
  130. package/styled-components/cjs/components/Dropzone/variations/_size/base.js +10 -0
  131. package/styled-components/cjs/components/Dropzone/variations/_size/tokens.json +19 -0
  132. package/styled-components/cjs/components/Dropzone/variations/_view/base.js +10 -0
  133. package/styled-components/cjs/components/Dropzone/variations/_view/tokens.json +9 -0
  134. package/styled-components/cjs/components/Switch/Switch.tokens.js +1 -2
  135. package/styled-components/cjs/components/Switch/_toggleSize/base.js +1 -1
  136. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  137. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  138. package/styled-components/cjs/components/_Icon/index.js +8 -1
  139. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +25 -0
  140. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +11 -0
  141. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  142. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +1 -1
  143. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.outline.config.js +1 -1
  144. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +25 -0
  145. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +11 -0
  146. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  147. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +1 -1
  148. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.outline.config.js +1 -1
  149. package/styled-components/cjs/index.js +11 -0
  150. package/styled-components/es/components/Dropzone/Dropzone.js +263 -0
  151. package/styled-components/es/components/Dropzone/Dropzone.styles.js +21 -0
  152. package/styled-components/es/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  153. package/styled-components/es/components/Dropzone/Dropzone.tokens.js +38 -0
  154. package/styled-components/es/components/Dropzone/Dropzone.types.js +1 -0
  155. package/styled-components/es/components/Dropzone/index.js +2 -0
  156. package/styled-components/es/components/Dropzone/variations/_disabled/base.js +3 -0
  157. package/styled-components/es/components/Dropzone/variations/_disabled/tokens.json +4 -0
  158. package/styled-components/es/components/Dropzone/variations/_size/base.js +4 -0
  159. package/styled-components/es/components/Dropzone/variations/_size/tokens.json +19 -0
  160. package/styled-components/es/components/Dropzone/variations/_view/base.js +4 -0
  161. package/styled-components/es/components/Dropzone/variations/_view/tokens.json +9 -0
  162. package/styled-components/es/components/Switch/Switch.tokens.js +1 -2
  163. package/styled-components/es/components/Switch/_toggleSize/base.js +2 -2
  164. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  165. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  166. package/styled-components/es/components/_Icon/index.js +2 -1
  167. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +19 -0
  168. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +5 -0
  169. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  170. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +1 -1
  171. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.outline.config.js +1 -1
  172. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +19 -0
  173. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.js +5 -0
  174. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  175. package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +1 -1
  176. package/styled-components/es/examples/plasma_web/components/Switch/Switch.outline.config.js +1 -1
  177. package/styled-components/es/index.js +2 -1
  178. package/types/components/Dropzone/Dropzone.d.ts +59 -0
  179. package/types/components/Dropzone/Dropzone.d.ts.map +1 -0
  180. package/types/components/Dropzone/Dropzone.styles.d.ts +9 -0
  181. package/types/components/Dropzone/Dropzone.styles.d.ts.map +1 -0
  182. package/types/components/Dropzone/Dropzone.tokens.d.ts +39 -0
  183. package/types/components/Dropzone/Dropzone.tokens.d.ts.map +1 -0
  184. package/types/components/Dropzone/Dropzone.types.d.ts +77 -0
  185. package/types/components/Dropzone/Dropzone.types.d.ts.map +1 -0
  186. package/types/components/Dropzone/index.d.ts +3 -0
  187. package/types/components/Dropzone/index.d.ts.map +1 -0
  188. package/types/components/Dropzone/variations/_disabled/base.d.ts +2 -0
  189. package/types/components/Dropzone/variations/_disabled/base.d.ts.map +1 -0
  190. package/types/components/Dropzone/variations/_size/base.d.ts +2 -0
  191. package/types/components/Dropzone/variations/_size/base.d.ts.map +1 -0
  192. package/types/components/Dropzone/variations/_view/base.d.ts +2 -0
  193. package/types/components/Dropzone/variations/_view/base.d.ts.map +1 -0
  194. package/types/components/Switch/Switch.tokens.d.ts +1 -2
  195. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  196. package/types/components/Switch/_toggleSize/base.d.ts.map +1 -1
  197. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +4 -0
  198. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +1 -0
  199. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +4 -0
  200. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +1 -0
  201. package/types/components/_Icon/index.d.ts +1 -0
  202. package/types/components/_Icon/index.d.ts.map +1 -1
  203. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts +18 -0
  204. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts.map +1 -0
  205. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +29 -0
  206. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +1 -0
  207. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
  208. package/types/examples/plasma_b2c/components/Switch/Switch.outline.config.d.ts.map +1 -1
  209. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts +18 -0
  210. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts.map +1 -0
  211. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts +29 -0
  212. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts.map +1 -0
  213. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
  214. package/types/examples/plasma_web/components/Switch/Switch.outline.config.d.ts.map +1 -1
  215. package/types/index.d.ts +1 -0
  216. package/types/index.d.ts.map +1 -1
  217. package/cjs/components/Switch/_toggleSize/base_o6rjc1.css +0 -1
  218. package/es/components/Switch/_toggleSize/base_o6rjc1.css +0 -1
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.base = void 0;
7
+ var _react = /*#__PURE__*/require("@emotion/react");
8
+ var _Dropzone = /*#__PURE__*/require("../../Dropzone.tokens");
9
+ var _Dropzone2 = /*#__PURE__*/require("../../Dropzone.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("background:var(", _Dropzone.tokens.background, ");border:var(", _Dropzone.tokens.border, ");&:not(.", _Dropzone.classes.active, "):hover,&:not(.", _Dropzone.classes.active, "):focus-within{background:var(", _Dropzone.tokens.backgroundHover, ");border-color:var(", _Dropzone.tokens.borderColorHover, ");outline:none;}&.", _Dropzone.classes.active, "{border-color:var(", _Dropzone.tokens.borderColorActive, ");", _Dropzone2.DropzoneHandlerOverlay, "{background:var(", _Dropzone.tokens.overlayColorActive, ");}}", _Dropzone2.TitleWrapper, "{color:var(", _Dropzone.tokens.titleColor, ");}", _Dropzone2.Description, "{color:var(", _Dropzone.tokens.descriptionColor, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0Ryb3B6b25lL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vRHJvcHpvbmUudG9rZW5zJztcbmltcG9ydCB7IERlc2NyaXB0aW9uLCBEcm9wem9uZUhhbmRsZXJPdmVybGF5LCBUaXRsZVdyYXBwZXIgfSBmcm9tICcuLi8uLi9Ecm9wem9uZS5zdHlsZXMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMuYmFja2dyb3VuZH0pO1xuICAgIGJvcmRlcjogdmFyKCR7dG9rZW5zLmJvcmRlcn0pO1xuXG4gICAgJjpub3QoLiR7Y2xhc3Nlcy5hY3RpdmV9KTpob3ZlcixcbiAgICAmOm5vdCguJHtjbGFzc2VzLmFjdGl2ZX0pOmZvY3VzLXdpdGhpbiB7XG4gICAgICAgIGJhY2tncm91bmQ6IHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kSG92ZXJ9KTtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB2YXIoJHt0b2tlbnMuYm9yZGVyQ29sb3JIb3Zlcn0pO1xuICAgICAgICBvdXRsaW5lOiBub25lO1xuICAgIH1cblxuICAgICYuJHtjbGFzc2VzLmFjdGl2ZX0ge1xuICAgICAgICBib3JkZXItY29sb3I6IHZhcigke3Rva2Vucy5ib3JkZXJDb2xvckFjdGl2ZX0pO1xuXG4gICAgICAgICR7RHJvcHpvbmVIYW5kbGVyT3ZlcmxheX0ge1xuICAgICAgICAgICAgYmFja2dyb3VuZDogdmFyKCR7dG9rZW5zLm92ZXJsYXlDb2xvckFjdGl2ZX0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJHtUaXRsZVdyYXBwZXJ9IHtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy50aXRsZUNvbG9yfSk7XG4gICAgfVxuXG4gICAgJHtEZXNjcmlwdGlvbn0ge1xuICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9KTtcbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1,9 @@
1
+ [
2
+ "--plasma-dropzone-background",
3
+ "--plasma-dropzone-overlay-color-active",
4
+ "--plasma-dropzone-border-color",
5
+ "--plasma-dropzone-border-color-hover",
6
+ "--plasma-dropzone-border-color-active",
7
+ "--plasma-dropzone-title-color",
8
+ "--plasma-dropzone-description-color"
9
+ ]
@@ -29,8 +29,7 @@ var tokens = exports.tokens = {
29
29
  verticalGap: '--plasma-switch-vertical-gap',
30
30
  trackWidth: '--plasma-switch__track-width',
31
31
  trackHeight: '--plasma-switch__track-height',
32
- trackBorderWidthOn: '--plasma-switch__track-checked_true-border-width',
33
- trackBorderWidthOff: '--plasma-switch__track-checked_false-border-width',
32
+ trackBorderWidth: '--plasma-switch__track-border',
34
33
  trackBorderColorOn: '--plasma-switch__track-checked_true-border-color',
35
34
  trackBorderColorOnHover: '--plasma-switch__track-checked_true_hovered_true-border-color',
36
35
  trackBorderColorOff: '--plasma-switch__track-checked_false-border-color',
@@ -7,4 +7,4 @@ exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Switch = /*#__PURE__*/require("../Switch.tokens");
9
9
  var _Switch2 = /*#__PURE__*/require("../Switch.styles");
10
- var base = exports.base = /*#__PURE__*/(0, _react.css)(_Switch2.StyledTrigger, "{box-sizing:border-box;flex:0 0 var(", _Switch.tokens.trackWidth, ");border-style:solid;border-width:var(", _Switch.tokens.trackBorderWidthOff, ");border-radius:var(", _Switch.tokens.trackBorderRadius, ");width:var(", _Switch.tokens.trackWidth, ");height:var(", _Switch.tokens.trackHeight, ");&::after{width:var(", _Switch.tokens.thumbSize, ");height:var(", _Switch.tokens.thumbSize, ");border-radius:var(", _Switch.tokens.thumbBorderRadius, ");margin:auto var(", _Switch.tokens.thumbOffset, ");}}", _Switch2.StyledInput, ":checked~", _Switch2.StyledTrigger, "{border-width:var(", _Switch.tokens.trackBorderWidthOn, ", var(", _Switch.tokens.trackBorderWidthOff, "));}:active:not([disabled]) ", _Switch2.StyledTrigger, "::after{width:calc(var(", _Switch.tokens.thumbSize, ") * var(", _Switch.tokens.thumbPressScale, ", 1));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHM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9rZW5zLnRodW1iQm9yZGVyUmFkaXVzfSk7XG4gICAgICAgICAgICBtYXJnaW46IGF1dG8gdmFyKCR7dG9rZW5zLnRodW1iT2Zmc2V0fSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAke1N0eWxlZElucHV0fTpjaGVja2VkIH4gJHtTdHlsZWRUcmlnZ2VyfSB7XG4gICAgICAgIGJvcmRlci13aWR0aDogdmFyKCR7dG9rZW5zLnRyYWNrQm9yZGVyV2lkdGhPbn0sIHZhcigke3Rva2Vucy50cmFja0JvcmRlcldpZHRoT2ZmfSkpO1xuICAgIH1cblxuICAgIDphY3RpdmU6bm90KFtkaXNhYmxlZF0pICR7U3R5bGVkVHJpZ2dlcn06OmFmdGVyIHtcbiAgICAgICAgd2lkdGg6IGNhbGModmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pICogdmFyKCR7dG9rZW5zLnRodW1iUHJlc3NTY2FsZX0sIDEpKTtcbiAgICB9XG5gO1xuIl19 */"));
10
+ var base = exports.base = /*#__PURE__*/(0, _react.css)(_Switch2.StyledTrigger, "{box-sizing:border-box;flex:0 0 var(", _Switch.tokens.trackWidth, ");border-style:solid;border-width:var(", _Switch.tokens.trackBorderWidth, ");border-radius:var(", _Switch.tokens.trackBorderRadius, ");width:var(", _Switch.tokens.trackWidth, ");height:var(", _Switch.tokens.trackHeight, ");&::after{width:var(", _Switch.tokens.thumbSize, ");height:var(", _Switch.tokens.thumbSize, ");border-radius:var(", _Switch.tokens.thumbBorderRadius, ");margin:auto var(", _Switch.tokens.thumbOffset, ");}}:active:not([disabled]) ", _Switch2.StyledTrigger, "::after{width:calc(var(", _Switch.tokens.thumbSize, ") * var(", _Switch.tokens.thumbPressScale, ", 1));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2N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JkZXJSYWRpdXN9KTtcbiAgICAgICAgICAgIG1hcmdpbjogYXV0byB2YXIoJHt0b2tlbnMudGh1bWJPZmZzZXR9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIDphY3RpdmU6bm90KFtkaXNhYmxlZF0pICR7U3R5bGVkVHJpZ2dlcn06OmFmdGVyIHtcbiAgICAgICAgd2lkdGg6IGNhbGModmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pICogdmFyKCR7dG9rZW5zLnRodW1iUHJlc3NTY2FsZX0sIDEpKTtcbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ArrowBarDown = void 0;
7
+ var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
+ var _path;
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
+ var ArrowBarDown = exports.ArrowBarDown = function ArrowBarDown(props) {
12
+ return /*#__PURE__*/_react["default"].createElement("svg", _extends({
13
+ width: "100%",
14
+ viewBox: "0 0 16 16",
15
+ fill: "none",
16
+ xmlns: "http://www.w3.org/2000/svg"
17
+ }, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
18
+ fillRule: "evenodd",
19
+ clipRule: "evenodd",
20
+ d: "M7.95833 1.875C8.23448 1.875 8.45833 2.09886 8.45833 2.375V10.4043L11.2686 7.54868C11.4623 7.35186 11.7789 7.34933 11.9757 7.54302C12.1725 7.73672 12.1751 8.05329 11.9814 8.25011L8.3147 11.9759C8.21782 12.0744 8.08453 12.1283 7.94645 12.1251C7.80837 12.1218 7.67779 12.0615 7.5857 11.9586L4.25237 8.23278C4.06824 8.02698 4.08582 7.71088 4.29162 7.52676C4.49742 7.34264 4.81351 7.36021 4.99763 7.56601L7.45833 10.3164V2.375C7.45833 2.09886 7.68219 1.875 7.95833 1.875ZM2.5 14.0001C2.5 13.724 2.72386 13.5001 3 13.5001H13C13.2761 13.5001 13.5 13.724 13.5 14.0001C13.5 14.2763 13.2761 14.5001 13 14.5001H3C2.72386 14.5001 2.5 14.2763 2.5 14.0001Z",
21
+ fill: "currentColor"
22
+ })));
23
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.IconArrowBarDown = void 0;
7
+ var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
+ var _ArrowBarDown = /*#__PURE__*/require("../Icon.assets/ArrowBarDown");
9
+ var _IconRoot = /*#__PURE__*/require("../IconRoot");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ var IconArrowBarDown = exports.IconArrowBarDown = function IconArrowBarDown(_ref) {
12
+ var _ref$size = _ref.size,
13
+ size = _ref$size === void 0 ? 'xs' : _ref$size,
14
+ color = _ref.color,
15
+ className = _ref.className;
16
+ return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
17
+ className: className,
18
+ size: size,
19
+ color: color,
20
+ icon: _ArrowBarDown.ArrowBarDown
21
+ });
22
+ };
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "IconArrowBarDown", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _IconArrowBarDown.IconArrowBarDown;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "IconBlankCsvOutline", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -191,4 +197,5 @@ var _IconBlankOutline = /*#__PURE__*/require("./Icons/IconBlankOutline");
191
197
  var _IconBlankPdfOutline = /*#__PURE__*/require("./Icons/IconBlankPdfOutline");
192
198
  var _IconBlankTxtOutline = /*#__PURE__*/require("./Icons/IconBlankTxtOutline");
193
199
  var _IconBlankXlsOutline = /*#__PURE__*/require("./Icons/IconBlankXlsOutline");
194
- var _IconInfoCircleOutline = /*#__PURE__*/require("./Icons/IconInfoCircleOutline");
200
+ var _IconInfoCircleOutline = /*#__PURE__*/require("./Icons/IconInfoCircleOutline");
201
+ var _IconArrowBarDown = /*#__PURE__*/require("./Icons/IconArrowBarDown");
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _react = /*#__PURE__*/require("@emotion/react");
8
+ var _Dropzone = /*#__PURE__*/require("../../../../components/Dropzone");
9
+ var config = exports.config = {
10
+ defaults: {
11
+ view: 'default',
12
+ size: 'm'
13
+ },
14
+ variations: {
15
+ view: {
16
+ "default": /*#__PURE__*/(0, _react.css)(_Dropzone.dropzoneTokens.background, ":var(--surface-solid-card);", _Dropzone.dropzoneTokens.backgroundHover, ":var(--surface-solid-card-hover);", _Dropzone.dropzoneTokens.overlayColorActive, ":var(--overlay-soft);", _Dropzone.dropzoneTokens.border, ":0.063rem dashed var(--outline-secondary);", _Dropzone.dropzoneTokens.borderColorHover, ":var(--outline-secondary-hover);", _Dropzone.dropzoneTokens.borderColorActive, ":var(--outline-accent);", _Dropzone.dropzoneTokens.titleColor, ":var(--text-primary);", _Dropzone.dropzoneTokens.descriptionColor, ":var(--text-secondary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOlt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gICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9yQWN0aXZlfTogdmFyKC0tb3V0bGluZS1hY2NlbnQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVDb2xvcn06IHZhcigtLXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMucGFkZGluZ306IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlclJhZGl1c306IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5jb250ZW50R2FwfTogMC43NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcH06IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwQ29sdW1ufTogMC41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFN0eWxlfTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aX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CxcbiAgICAgICAgfSxcbiAgICAgICAgZGlzYWJsZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
17
+ },
18
+ size: {
19
+ m: /*#__PURE__*/(0, _react.css)(_Dropzone.dropzoneTokens.padding, ":1.5rem;", _Dropzone.dropzoneTokens.borderRadius, ":1.25rem;", _Dropzone.dropzoneTokens.contentGap, ":0.75rem;", _Dropzone.dropzoneTokens.titleWrapperGap, ":0.375rem;", _Dropzone.dropzoneTokens.titleWrapperGapColumn, ":0.5rem;", _Dropzone.dropzoneTokens.titleFontFamily, ":var(--plasma-typo-h4-font-family);", _Dropzone.dropzoneTokens.titleFontSize, ":var(--plasma-typo-h4-font-size);", _Dropzone.dropzoneTokens.titleFontStyle, ":var(--plasma-typo-h4-font-style);", _Dropzone.dropzoneTokens.titleFontWeight, ":var(--plasma-typo-h4-bold-font-weight);", _Dropzone.dropzoneTokens.titleLetterSpacing, ":var(--plasma-typo-h4-letter-spacing);", _Dropzone.dropzoneTokens.titleLineHeight, ":var(--plasma-typo-h4-line-height);", _Dropzone.dropzoneTokens.descriptionFontFamily, ":var(--plasma-typo-body-s-font-family);", _Dropzone.dropzoneTokens.descriptionFontSize, ":var(--plasma-typo-body-s-font-size);", _Dropzone.dropzoneTokens.descriptionFontStyle, ":var(--plasma-typo-body-s-font-style);", _Dropzone.dropzoneTokens.descriptionFontWeight, ":var(--plasma-typo-body-s-font-weight);", _Dropzone.dropzoneTokens.descriptionLetterSpacing, ":var(--plasma-typo-body-s-letter-spacing);", _Dropzone.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,eyJ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kIHZhcigtLW91dGxpbmUtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9ySG92ZXJ9OiB2YXIoLS1vdXRsaW5lLXNlY29uZGFyeS1ob3Zlcik7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJDb2xvckFjdGl2ZX06IHZhcigtLW91dGxpbmUtYWNjZW50KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlQ29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Db2xvcn06IHZhcigtLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnBhZGRpbmd9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJSYWRpdXN9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuY29udGVudEdhcH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZVdyYXBwZXJHYXB9OiAwLjM3NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcENvbHVtbn06IDAuNXJlbTtcblxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8taDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1saW5lLWhlaWdodCk7XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kaXNhYmxlZE9wYWNpdHl9OiAwLjQ7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
20
+ },
21
+ disabled: {
22
+ "true": /*#__PURE__*/(0, _react.css)(_Dropzone.dropzoneTokens.disabledOpacity, ":0.4;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENxQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBkcm9wem9uZVRva2VucyB9IGZyb20gJy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvRHJvcHpvbmUnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZp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AxLjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJSYWRpdXN9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuY29udGVudEdhcH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZVdyYXBwZXJHYXB9OiAwLjM3NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcENvbHVtbn06IDAuNXJlbTtcblxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8taDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWg0LWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8taDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1oNC1saW5lLWhlaWdodCk7XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LWZhbWlseSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MaW5lSGVpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxpbmUtaGVpZ2h0KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIGRpc2FibGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kaXNhYmxlZE9wYWNpdHl9OiAwLjQ7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
23
+ }
24
+ }
25
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Dropzone = void 0;
7
+ var _Dropzone = /*#__PURE__*/require("../../../../components/Dropzone");
8
+ var _engines = /*#__PURE__*/require("../../../../engines");
9
+ var _Dropzone2 = /*#__PURE__*/require("./Dropzone.config");
10
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Dropzone.dropzoneConfig, _Dropzone2.config);
11
+ var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -0,0 +1,57 @@
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
+ };