@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,263 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _IconArrowBarDown;
3
+ var _excluded = ["className", "style", "accept", "multiple", "title", "description", "icon", "iconPlacement", "size", "view", "disabled", "stretch", "width", "height", "onDragEnter", "onDragLeave", "onDragOver", "onDrop", "validator", "onClick", "onChange", "onChoseFiles"];
4
+ 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); }
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
14
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
15
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
16
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
17
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
20
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
21
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
22
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
+ import React, { forwardRef, useRef, useState } from 'react';
26
+ import { useForkRef } from '@salutejs/plasma-core';
27
+ import { cx, getSizeValueFromProp } from '../../utils';
28
+ import { IconArrowBarDown } from '../../components/_Icon';
29
+ import { base as viewCSS } from './variations/_view/base';
30
+ import { base as sizeCSS } from './variations/_size/base';
31
+ import { base as disabledCSS } from './variations/_disabled/base';
32
+ import { base, Content, Description, DropzoneHandlerOverlay, HiddenInput, Title, TitleWrapper } from './Dropzone.styles';
33
+ import { classes, privateTokens } from './Dropzone.tokens';
34
+ export var dropzoneRoot = function dropzoneRoot(Root) {
35
+ return /*#__PURE__*/forwardRef(function (_ref, outerRef) {
36
+ var className = _ref.className,
37
+ style = _ref.style,
38
+ accept = _ref.accept,
39
+ multiple = _ref.multiple,
40
+ title = _ref.title,
41
+ description = _ref.description,
42
+ icon = _ref.icon,
43
+ iconPlacement = _ref.iconPlacement,
44
+ size = _ref.size,
45
+ view = _ref.view,
46
+ disabled = _ref.disabled,
47
+ stretch = _ref.stretch,
48
+ width = _ref.width,
49
+ height = _ref.height,
50
+ onDragEnter = _ref.onDragEnter,
51
+ onDragLeave = _ref.onDragLeave,
52
+ onDragOver = _ref.onDragOver,
53
+ onDrop = _ref.onDrop,
54
+ validator = _ref.validator,
55
+ onClick = _ref.onClick,
56
+ onChange = _ref.onChange,
57
+ onChoseFiles = _ref.onChoseFiles,
58
+ rest = _objectWithoutProperties(_ref, _excluded);
59
+ var _useState = useState(false),
60
+ _useState2 = _slicedToArray(_useState, 2),
61
+ isDropzoneActive = _useState2[0],
62
+ setIsDropzoneActive = _useState2[1];
63
+ var inputRef = useRef(null);
64
+ var forkInputRef = useForkRef(outerRef, inputRef);
65
+ var innerWidth = width ? getSizeValueFromProp(width) : 'fit-content';
66
+ var innerHeight = height ? getSizeValueFromProp(height) : 'fit-content';
67
+ var processFiles = /*#__PURE__*/function () {
68
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(rawFiles, callback, afterAction) {
69
+ var files, res;
70
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
71
+ while (1) switch (_context.prev = _context.next) {
72
+ case 0:
73
+ if (rawFiles !== null && rawFiles !== void 0 && rawFiles.length) {
74
+ _context.next = 2;
75
+ break;
76
+ }
77
+ return _context.abrupt("return");
78
+ case 2:
79
+ files = _toConsumableArray(rawFiles);
80
+ res = {
81
+ acceptedFiles: files
82
+ };
83
+ if (!validator) {
84
+ _context.next = 8;
85
+ break;
86
+ }
87
+ _context.next = 7;
88
+ return validator === null || validator === void 0 ? void 0 : validator(files);
89
+ case 7:
90
+ res = _context.sent;
91
+ case 8:
92
+ if (!callback) {
93
+ _context.next = 11;
94
+ break;
95
+ }
96
+ _context.next = 11;
97
+ return callback(res);
98
+ case 11:
99
+ if (afterAction) {
100
+ afterAction();
101
+ }
102
+ case 12:
103
+ case "end":
104
+ return _context.stop();
105
+ }
106
+ }, _callee);
107
+ }));
108
+ return function processFiles(_x, _x2, _x3) {
109
+ return _ref2.apply(this, arguments);
110
+ };
111
+ }();
112
+ var handleDragEnter = function handleDragEnter(event) {
113
+ if (disabled) {
114
+ return;
115
+ }
116
+ event.preventDefault();
117
+ event.stopPropagation();
118
+ if (onDragEnter) {
119
+ onDragEnter(event);
120
+ }
121
+ setIsDropzoneActive(true);
122
+ };
123
+ var handleDragLeave = function handleDragLeave(event) {
124
+ if (disabled) {
125
+ return;
126
+ }
127
+ event.preventDefault();
128
+ if (onDragLeave) {
129
+ onDragLeave(event);
130
+ }
131
+ setIsDropzoneActive(false);
132
+ };
133
+ var handleDragOver = function handleDragOver(event) {
134
+ if (disabled) {
135
+ return;
136
+ }
137
+ event.preventDefault();
138
+ if (onDragOver) {
139
+ onDragOver(event);
140
+ }
141
+ var rawFiles = event.dataTransfer.files;
142
+ if (!isDropzoneActive && rawFiles && rawFiles.length > 0) {
143
+ setIsDropzoneActive(true);
144
+ }
145
+ };
146
+ var handleDrop = /*#__PURE__*/function () {
147
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event) {
148
+ var rawFiles, afterAction;
149
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
150
+ while (1) switch (_context2.prev = _context2.next) {
151
+ case 0:
152
+ if (!disabled) {
153
+ _context2.next = 2;
154
+ break;
155
+ }
156
+ return _context2.abrupt("return");
157
+ case 2:
158
+ event.preventDefault();
159
+ event.persist();
160
+ rawFiles = event.dataTransfer.files;
161
+ afterAction = function afterAction() {
162
+ event.dataTransfer.clearData();
163
+ setIsDropzoneActive(false);
164
+ };
165
+ _context2.next = 8;
166
+ return processFiles(rawFiles, onDrop, afterAction);
167
+ case 8:
168
+ case "end":
169
+ return _context2.stop();
170
+ }
171
+ }, _callee2);
172
+ }));
173
+ return function handleDrop(_x4) {
174
+ return _ref3.apply(this, arguments);
175
+ };
176
+ }();
177
+ var handleClick = function handleClick(event) {
178
+ if (!inputRef.current || disabled) {
179
+ return;
180
+ }
181
+ inputRef.current.click();
182
+ if (onClick) {
183
+ onClick(event);
184
+ }
185
+ };
186
+ var handleChange = /*#__PURE__*/function () {
187
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(event) {
188
+ var rawFiles;
189
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
190
+ while (1) switch (_context3.prev = _context3.next) {
191
+ case 0:
192
+ if (!disabled) {
193
+ _context3.next = 2;
194
+ break;
195
+ }
196
+ return _context3.abrupt("return");
197
+ case 2:
198
+ if (onChange) {
199
+ onChange(event);
200
+ }
201
+ rawFiles = event.target.files;
202
+ _context3.next = 6;
203
+ return processFiles(rawFiles, onChoseFiles);
204
+ case 6:
205
+ case "end":
206
+ return _context3.stop();
207
+ }
208
+ }, _callee3);
209
+ }));
210
+ return function handleChange(_x5) {
211
+ return _ref4.apply(this, arguments);
212
+ };
213
+ }();
214
+ return /*#__PURE__*/React.createElement(Root, {
215
+ className: cx(className, isDropzoneActive && classes.active, stretch && classes.stretch, disabled && classes.disabled),
216
+ view: view,
217
+ size: size,
218
+ disabled: disabled,
219
+ tabIndex: 0,
220
+ style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty({}, privateTokens.width, innerWidth), privateTokens.height, innerHeight))
221
+ }, /*#__PURE__*/React.createElement(DropzoneHandlerOverlay, {
222
+ onDragEnter: handleDragEnter,
223
+ onDragLeave: handleDragLeave,
224
+ onDragOver: handleDragOver,
225
+ onDrop: handleDrop,
226
+ onClick: handleClick
227
+ }), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(TitleWrapper, {
228
+ className: cx(iconPlacement === 'top' && classes.verticalContentPlacing)
229
+ }, icon || _IconArrowBarDown || (_IconArrowBarDown = /*#__PURE__*/React.createElement(IconArrowBarDown, {
230
+ color: "inherit",
231
+ size: "s"
232
+ })), title && /*#__PURE__*/React.createElement(Title, null, title)), description && /*#__PURE__*/React.createElement(Description, null, description)), /*#__PURE__*/React.createElement(HiddenInput, _extends({
233
+ ref: forkInputRef,
234
+ type: "file",
235
+ accept: accept,
236
+ multiple: multiple,
237
+ tabIndex: -1,
238
+ onChange: handleChange
239
+ }, rest)));
240
+ });
241
+ };
242
+ export var dropzoneConfig = {
243
+ name: 'Dropzone',
244
+ tag: 'div',
245
+ layout: dropzoneRoot,
246
+ base: base,
247
+ variations: {
248
+ view: {
249
+ css: viewCSS
250
+ },
251
+ size: {
252
+ css: sizeCSS
253
+ },
254
+ disabled: {
255
+ css: disabledCSS,
256
+ attrs: true
257
+ }
258
+ },
259
+ defaults: {
260
+ view: 'default',
261
+ size: 'm'
262
+ }
263
+ };
@@ -0,0 +1,60 @@
1
+ import _styled from "@emotion/styled/base";
2
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
+ import { css } from '@emotion/react';
4
+ export var base = process.env.NODE_ENV === "production" ? {
5
+ name: "akxguv-plasma-new-hope__base",
6
+ styles: "position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;label:plasma-new-hope__base;"
7
+ } : {
8
+ name: "akxguv-plasma-new-hope__base",
9
+ styles: "position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;label:plasma-new-hope__base;",
10
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUd1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0Ryb3B6b25lL0Ryb3B6b25lLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgRHJvcHpvbmVIYW5kbGVyT3ZlcmxheSA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogMDtcbiAgICBsZWZ0OiAwO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICB6LWluZGV4OiAyO1xuYDtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIHVzZXItc2VsZWN0OiBub25lO1xuYDtcblxuZXhwb3J0IGNvbnN0IFRpdGxlV3JhcHBlciA9IHN0eWxlZC5kaXZgYDtcblxuZXhwb3J0IGNvbnN0IFRpdGxlID0gc3R5bGVkLnNwYW5gYDtcblxuZXhwb3J0IGNvbnN0IERlc2NyaXB0aW9uID0gc3R5bGVkLnNwYW5gYDtcblxuZXhwb3J0IGNvbnN0IEhpZGRlbklucHV0ID0gc3R5bGVkLmlucHV0YFxuICAgIGRpc3BsYXk6IG5vbmU7XG5gO1xuIl19 */",
11
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
12
+ };
13
+ export var DropzoneHandlerOverlay = /*#__PURE__*/_styled("div", {
14
+ target: "e1pxpart5",
15
+ label: "plasma-new-hope__DropzoneHandlerOverlay"
16
+ })(process.env.NODE_ENV === "production" ? {
17
+ name: "g19zll",
18
+ styles: "position:absolute;top:0;left:0;width:100%;height:100%;z-index:2"
19
+ } : {
20
+ name: "g19zll",
21
+ styles: "position:absolute;top:0;left:0;width:100%;height:100%;z-index:2",
22
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVdnRCIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0Ryb3B6b25lL0Ryb3B6b25lLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgRHJvcHpvbmVIYW5kbGVyT3ZlcmxheSA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogMDtcbiAgICBsZWZ0OiAwO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICB6LWluZGV4OiAyO1xuYDtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIHVzZXItc2VsZWN0OiBub25lO1xuYDtcblxuZXhwb3J0IGNvbnN0IFRpdGxlV3JhcHBlciA9IHN0eWxlZC5kaXZgYDtcblxuZXhwb3J0IGNvbnN0IFRpdGxlID0gc3R5bGVkLnNwYW5gYDtcblxuZXhwb3J0IGNvbnN0IERlc2NyaXB0aW9uID0gc3R5bGVkLnNwYW5gYDtcblxuZXhwb3J0IGNvbnN0IEhpZGRlbklucHV0ID0gc3R5bGVkLmlucHV0YFxuICAgIGRpc3BsYXk6IG5vbmU7XG5gO1xuIl19 */",
23
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
24
+ });
25
+ export var Content = /*#__PURE__*/_styled("div", {
26
+ target: "e1pxpart4",
27
+ label: "plasma-new-hope__Content"
28
+ })(process.env.NODE_ENV === "production" ? {
29
+ name: "1eclbur",
30
+ styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;user-select:none"
31
+ } : {
32
+ name: "1eclbur",
33
+ styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;user-select:none",
34
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9CaUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuYDtcblxuZXhwb3J0IGNvbnN0IERyb3B6b25lSGFuZGxlck92ZXJsYXkgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBoZWlnaHQ6IDEwMCU7XG4gICAgei1pbmRleDogMjtcbmA7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICB1c2VyLXNlbGVjdDogbm9uZTtcbmA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZVdyYXBwZXIgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZSA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBEZXNjcmlwdGlvbiA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */",
35
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
36
+ });
37
+ export var TitleWrapper = /*#__PURE__*/_styled("div", {
38
+ target: "e1pxpart3",
39
+ label: "plasma-new-hope__TitleWrapper"
40
+ })(process.env.NODE_ENV === "production" ?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A7XG5cbmV4cG9ydCBjb25zdCBUaXRsZVdyYXBwZXIgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZSA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBEZXNjcmlwdGlvbiA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */");
41
+ export var Title = /*#__PURE__*/_styled("span", {
42
+ target: "e1pxpart2",
43
+ label: "plasma-new-hope__Title"
44
+ })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQThCZ0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuYDtcblxuZXhwb3J0IGNvbnN0IERyb3B6b25lSGFuZGxlck92ZXJsYXkgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBoZWlnaHQ6IDEwMCU7XG4gICAgei1pbmRleDogMjtcbmA7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICB1c2VyLXNlbGVjdDogbm9uZTtcbmA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZVdyYXBwZXIgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZSA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBEZXNjcmlwdGlvbiA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */");
45
+ export var Description = /*#__PURE__*/_styled("span", {
46
+ target: "e1pxpart1",
47
+ label: "plasma-new-hope__Description"
48
+ })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdDc0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbX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part0",
51
+ label: "plasma-new-hope__HiddenInput"
52
+ })(process.env.NODE_ENV === "production" ? {
53
+ name: "eivff4",
54
+ styles: "display:none"
55
+ } : {
56
+ name: "eivff4",
57
+ styles: "display:none",
58
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtDdUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuYDtcblxuZXhwb3J0IGNvbnN0IERyb3B6b25lSGFuZGxlck92ZXJsYXkgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBoZWlnaHQ6IDEwMCU7XG4gICAgei1pbmRleDogMjtcbmA7XG5cbmV4cG9ydCBjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICB1c2VyLXNlbGVjdDogbm9uZTtcbmA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZVdyYXBwZXIgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZSA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBEZXNjcmlwdGlvbiA9IHN0eWxlZC5zcGFuYGA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */",
59
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
60
+ });
@@ -0,0 +1,136 @@
1
+ ---
2
+ id: dropzone
3
+ title: Dropzone
4
+ ---
5
+
6
+ import { PropsTable } from '@site/src/components';
7
+
8
+ # Dropzone
9
+ Компонент для загрузки файлов, без отображения индикации загрузки.
10
+ Компонент не предполагает наличия валиации, так как является частью Upload.
11
+ Но валидацию можно задать с помощью callback `validator`.
12
+ <PropsTable name="Dropzone" />
13
+
14
+ # Типизация
15
+
16
+ ```tsx
17
+ type DropzoneProps = {
18
+ /**
19
+ * Массив форматов файлов, которые могут быть прикреплены (см. HTML-атрибут 'accept' для 'input').
20
+ */
21
+ acceptedFileFormats?: string[];
22
+ /**
23
+ * Позовляет выбирать несколько файлов для загрузки
24
+ */
25
+ multiple?: boolean;
26
+ /**
27
+ * Слот для Title
28
+ */
29
+ title?: string;
30
+ /**
31
+ * Слот для описания
32
+ */
33
+ description?: ReactNode;
34
+ /**
35
+ * Слот для иконки
36
+ */
37
+ icon?: ReactNode;
38
+ /**
39
+ * Расположение иконки
40
+ * @default 'left'
41
+ */
42
+ iconPlacement?: 'top' | 'left';
43
+ /**
44
+ * Размер компонента
45
+ */
46
+ size?: string;
47
+ /**
48
+ * Вид компонента
49
+ */
50
+ view?: string;
51
+ /**
52
+ * Компонент неактивен
53
+ */
54
+ disabled?: boolean;
55
+ /**
56
+ * Компонент растягивается на всю доступную ширину
57
+ */
58
+ stretch?: boolean;
59
+ /**
60
+ * Функция, вызываемая в момент вхождения курсора внутрь границ Dropzone
61
+ */
62
+ onDragEnter?: () => void;
63
+ /**
64
+ * Функция, вызываемая в момент выхода курсора из Dropzone
65
+ */
66
+ onDragLeave?: () => void;
67
+ /**
68
+ * Функция, вызываемая при нахождении курсора внутри Dropzone
69
+ */
70
+ onDragOver?: () => void;
71
+ /**
72
+ * Функция, вызываемая при drop файлов
73
+ */
74
+ onDrop?: () => void;
75
+ /**
76
+ * Функция, вызываемая для валидации файлов, перед onDropFiles
77
+ */
78
+ validator?: (files: File[]) => ValidatorReturnType;
79
+ /**
80
+ * Функция, вызываемая при наличии файлов, после onDrop
81
+ */
82
+ onDropFiles?: FileProcessHandler;
83
+ /**
84
+ * Функция, вызываемая при выборе файлов
85
+ */
86
+ onChoseFiles?: FileProcessHandler;
87
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'accept'>;
88
+ ```
89
+
90
+ # Пример
91
+
92
+ ```tsx live
93
+ import React from 'react';
94
+ import { Dropzone } from '@salutejs/{{ package }}';
95
+
96
+ export function App() {
97
+ const onDragEnter = () => {
98
+ console.log("onDragEnter")
99
+ }
100
+
101
+ const onDragLeave = () => {
102
+ console.log("onDragLeave")
103
+ }
104
+
105
+ const onDrop = () => {
106
+ console.log("onDrop")
107
+ }
108
+
109
+ const onDropFiles = () => {
110
+ console.log("onDropFiles")
111
+ }
112
+
113
+ const onChange = () => {
114
+ console.log("onChange")
115
+ }
116
+
117
+ const onChoseFiles = () => {
118
+ console.log("onChoseFiles")
119
+ }
120
+
121
+ return (
122
+ <Dropzone
123
+ iconPlacement="top"
124
+ width="240"
125
+ title="Click to upload"
126
+ description="or drag and drop files here"
127
+ onDragEnter={onDragEnter}
128
+ onDragLeave={onDragLeave}
129
+ onDrop={onDrop}
130
+ onDropFiles={onDropFiles}
131
+ onChange={onChange}
132
+ onChoseFiles={onChoseFiles}
133
+ />
134
+ );
135
+ }
136
+ ```
@@ -0,0 +1,38 @@
1
+ export var classes = {
2
+ stretch: 'dropzone-stretch',
3
+ active: 'dropzone-active',
4
+ verticalContentPlacing: 'dropzone-vertical-content-placing',
5
+ disabled: 'dropzone-disabled'
6
+ };
7
+ export var privateTokens = {
8
+ width: '--plasma_private-dropzone-width',
9
+ height: '--plasma_private-dropzone-height'
10
+ };
11
+ export 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
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { dropzoneRoot, dropzoneConfig } from './Dropzone';
2
+ export { classes as dropzoneClasses, tokens as dropzoneTokens } from './Dropzone.tokens';
@@ -0,0 +1,3 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from '../../Dropzone.tokens';
3
+ export var base = /*#__PURE__*/css("&.", classes.disabled, "{opacity:var(", tokens.disabledOpacity, ");cursor:not-allowed;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvdmFyaWF0aW9ucy9fZGlzYWJsZWQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ecm9wem9uZS92YXJpYXRpb25zL19kaXNhYmxlZC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9Ecm9wem9uZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5kaXNhYmxlZH0ge1xuICAgICAgICBvcGFjaXR5OiB2YXIoJHt0b2tlbnMuZGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "boolean",
3
+ "tokens": ["--plasma-dropzone-disabled-opacity"]
4
+ }
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, privateTokens, tokens } from '../../Dropzone.tokens';
3
+ import { Content, Description, DropzoneHandlerOverlay, Title, TitleWrapper } from '../../Dropzone.styles';
4
+ export var base = /*#__PURE__*/css("padding:var(", tokens.padding, ");border-radius:var(", tokens.borderRadius, ");height:var(", privateTokens.height, ");width:var(", privateTokens.width, ");&.", classes.stretch, "{width:100%;}", DropzoneHandlerOverlay, "{border-radius:var(", tokens.borderRadius, ");}", Content, "{gap:var(", tokens.contentGap, ");}", TitleWrapper, "{display:flex;align-items:center;justify-content:center;gap:var(", tokens.titleWrapperGap, ");&.", classes.verticalContentPlacing, "{flex-direction:column;gap:var(", tokens.titleWrapperGapColumn, ");}}", Title, "{font-family:var(", tokens.titleFontFamily, ");font-size:var(", tokens.titleFontSize, ");font-style:var(", tokens.titleFontStyle, ");font-weight:var(", tokens.titleFontWeight, ");letter-spacing:var(", tokens.titleLetterSpacing, ");line-height:var(", tokens.titleLineHeight, ");}", Description, "{font-family:var(", tokens.descriptionFontFamily, ");font-size:var(", tokens.descriptionFontSize, ");font-style:var(", tokens.descriptionFontStyle, ");font-weight:var(", tokens.descriptionFontWeight, ");letter-spacing:var(", tokens.descriptionLetterSpacing, ");line-height:var(", tokens.descriptionLineHeight, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvRHJvcHpvbmUvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0Ry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FyKCR7dG9rZW5zLmRlc2NyaXB0aW9uTGV0dGVyU3BhY2luZ30pO1xuICAgICAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLmRlc2NyaXB0aW9uTGluZUhlaWdodH0pO1xuICAgIH1cbmA7XG4iXX0= */"));
@@ -0,0 +1,19 @@
1
+ [
2
+ "--plasma-dropzone-padding",
3
+ "--plasma-dropzone-border-radius",
4
+ "--plasma-dropzone-content-gap",
5
+ "--plasma-dropzone-title-wrapper-gap",
6
+ "--plasma-dropzone-title-wrapper-gap",
7
+ "--plasma-dropzone-title-font-family",
8
+ "--plasma-dropzone-title-font-size",
9
+ "--plasma-dropzone-title-font-style",
10
+ "--plasma-dropzone-title-font-weight",
11
+ "--plasma-dropzone-title-letter-spacing",
12
+ "--plasma-dropzone-title-line-height",
13
+ "--plasma-dropzone-description-font-family",
14
+ "--plasma-dropzone-description-font-size",
15
+ "--plasma-dropzone-description-font-style",
16
+ "--plasma-dropzone-description-font-weight",
17
+ "--plasma-dropzone-description-letter-spacing",
18
+ "--plasma-dropzone-description-line-height"
19
+ ]
@@ -0,0 +1,4 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from '../../Dropzone.tokens';
3
+ import { Description, DropzoneHandlerOverlay, TitleWrapper } from '../../Dropzone.styles';
4
+ export var base = /*#__PURE__*/css("background:var(", tokens.background, ");border:var(", tokens.border, ");&:not(.", classes.active, "):hover,&:not(.", classes.active, "):focus-within{background:var(", tokens.backgroundHover, ");border-color:var(", tokens.borderColorHover, ");outline:none;}&.", classes.active, "{border-color:var(", tokens.borderColorActive, ");", DropzoneHandlerOverlay, "{background:var(", tokens.overlayColorActive, ");}}", TitleWrapper, "{color:var(", tokens.titleColor, ");}", Description, "{color:var(", tokens.descriptionColor, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy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dGl2ZX0pO1xuXG4gICAgICAgICR7RHJvcHpvbmVIYW5kbGVyT3ZlcmxheX0ge1xuICAgICAgICAgICAgYmFja2dyb3VuZDogdmFyKCR7dG9rZW5zLm92ZXJsYXlDb2xvckFjdGl2ZX0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJHtUaXRsZVdyYXBwZXJ9IHtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy50aXRsZUNvbG9yfSk7XG4gICAgfVxuXG4gICAgJHtEZXNjcmlwdGlvbn0ge1xuICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9KTtcbiAgICB9XG5gO1xuIl19 */"));
@@ -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
+ ]
@@ -23,8 +23,7 @@ export var tokens = {
23
23
  verticalGap: '--plasma-switch-vertical-gap',
24
24
  trackWidth: '--plasma-switch__track-width',
25
25
  trackHeight: '--plasma-switch__track-height',
26
- trackBorderWidthOn: '--plasma-switch__track-checked_true-border-width',
27
- trackBorderWidthOff: '--plasma-switch__track-checked_false-border-width',
26
+ trackBorderWidth: '--plasma-switch__track-border',
28
27
  trackBorderColorOn: '--plasma-switch__track-checked_true-border-color',
29
28
  trackBorderColorOnHover: '--plasma-switch__track-checked_true_hovered_true-border-color',
30
29
  trackBorderColorOff: '--plasma-switch__track-checked_false-border-color',
@@ -1,4 +1,4 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { tokens } from '../Switch.tokens';
3
- import { StyledInput, StyledTrigger } from '../Switch.styles';
4
- export var base = /*#__PURE__*/css(StyledTrigger, "{box-sizing:border-box;flex:0 0 var(", tokens.trackWidth, ");border-style:solid;border-width:var(", tokens.trackBorderWidthOff, ");border-radius:var(", tokens.trackBorderRadius, ");width:var(", tokens.trackWidth, ");height:var(", tokens.trackHeight, ");&::after{width:var(", tokens.thumbSize, ");height:var(", tokens.thumbSize, ");border-radius:var(", tokens.thumbBorderRadius, ");margin:auto var(", tokens.thumbOffset, ");}}", StyledInput, ":checked~", StyledTrigger, "{border-width:var(", tokens.trackBorderWidthOn, ", var(", tokens.trackBorderWidthOff, "));}:active:not([disabled]) ", StyledTrigger, "::after{width:calc(var(", tokens.thumbSize, ") * var(", tokens.thumbPressScale, ", 1));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL190b2dnbGVTaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL190b2dnbGVTaXplL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uL1N3aXRjaC50b2tlbnMnO1xuaW1wb3J0IHsgU3R5bGVkSW5wdXQsIFN0eWxlZFRyaWdnZXIgfSBmcm9tICcuLi9Td2l0Y2guc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJHtTdHlsZWRUcmlnZ2VyfSB7XG4gICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgICAgIGZsZXg6IDAgMCB2YXIoJHt0b2tlbnMudHJhY2tXaWR0aH0pO1xuXG4gICAgICAgIGJvcmRlci1zdHlsZTogc29saWQ7XG4gICAgICAgIGJvcmRlci13aWR0aDogdmFyKCR7dG9rZW5zLnRyYWNrQm9yZGVyV2lkdGhPZmZ9KTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLnRyYWNrQm9yZGVyUmFkaXVzfSk7XG5cbiAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy50cmFja1dpZHRofSk7XG4gICAgICAgIGhlaWdodDogdmFyKCR7dG9rZW5zLnRyYWNrSGVpZ2h0fSk7XG5cbiAgICAgICAgJjo6YWZ0ZXIge1xuICAgICAgICAgICAgd2lkdGg6IHZhcigke3Rva2Vucy50aHVtYlNpemV9KTtcbiAgICAgICAgICAgIGhlaWdodDogdmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pO1xuICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLnRodW1iQm9yZGVyUmFkaXVzfSk7XG4gICAgICAgICAgICBtYXJnaW46IGF1dG8gdmFyKCR7dG9rZW5zLnRodW1iT2Zmc2V0fSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAke1N0eWxlZElucHV0fTpjaGVja2VkIH4gJHtTdHlsZWRUcmlnZ2VyfSB7XG4gICAgICAgIGJvcmRlci13aWR0aDogdmFyKCR7dG9rZW5zLnRyYWNrQm9yZGVyV2lkdGhPbn0sIHZhcigke3Rva2Vucy50cmFja0JvcmRlcldpZHRoT2ZmfSkpO1xuICAgIH1cblxuICAgIDphY3RpdmU6bm90KFtkaXNhYmxlZF0pICR7U3R5bGVkVHJpZ2dlcn06OmFmdGVyIHtcbiAgICAgICAgd2lkdGg6IGNhbGModmFyKCR7dG9rZW5zLnRodW1iU2l6ZX0pICogdmFyKCR7dG9rZW5zLnRodW1iUHJlc3NTY2FsZX0sIDEpKTtcbiAgICB9XG5gO1xuIl19 */"));
3
+ import { StyledTrigger } from '../Switch.styles';
4
+ export var base = /*#__PURE__*/css(StyledTrigger, "{box-sizing:border-box;flex:0 0 var(", tokens.trackWidth, ");border-style:solid;border-width:var(", tokens.trackBorderWidth, ");border-radius:var(", tokens.trackBorderRadius, ");width:var(", tokens.trackWidth, ");height:var(", tokens.trackHeight, ");&::after{width:var(", tokens.thumbSize, ");height:var(", tokens.thumbSize, ");border-radius:var(", tokens.thumbBorderRadius, ");margin:auto var(", tokens.thumbOffset, ");}}:active:not([disabled]) ", StyledTrigger, "::after{width:calc(var(", tokens.thumbSize, ") * var(", tokens.thumbPressScale, ", 1));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL190b2dnbGVTaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU3dpdGNoL190b2dnbGVTaXplL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uL1N3aXRjaC50b2tlbnMnO1xuaW1wb3J0IHsgU3R5bGVkVHJpZ2dlciB9IGZyb20gJy4uL1N3aXRjaC5zdHlsZXMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAke1N0eWxlZFRyaWdnZXJ9IHtcbiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgICAgICAgZmxleDogMCAwIHZhcigke3Rva2Vucy50cmFja1dpZHRofSk7XG5cbiAgICAgICAgYm9yZGVyLXN0eWxlOiBzb2xpZDtcbiAgICAgICAgYm9yZGVyLXdpZHRoOiB2YXIoJHt0b2tlbnMudHJhY2tCb3JkZXJXaWR0aH0pO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