@salutejs/plasma-new-hope 0.194.0-dev.0 → 0.195.0-canary.1534.11893340297.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) 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 +46 -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_1cl61bm.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_cipwu9.css +1 -0
  20. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +24 -0
  21. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +1 -0
  22. package/cjs/components/_Icon/Icons/IconArrowBarDown.js +23 -0
  23. package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +1 -0
  24. package/cjs/index.css +14 -0
  25. package/cjs/index.js +6 -0
  26. package/cjs/index.js.map +1 -1
  27. package/emotion/cjs/components/Dropzone/Dropzone.js +271 -0
  28. package/emotion/cjs/components/Dropzone/Dropzone.styles.js +67 -0
  29. package/emotion/cjs/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  30. package/emotion/cjs/components/Dropzone/Dropzone.tokens.js +43 -0
  31. package/emotion/cjs/components/Dropzone/Dropzone.types.js +5 -0
  32. package/emotion/cjs/components/Dropzone/index.js +31 -0
  33. package/emotion/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
  34. package/emotion/cjs/components/Dropzone/variations/_disabled/tokens.json +4 -0
  35. package/emotion/cjs/components/Dropzone/variations/_size/base.js +10 -0
  36. package/emotion/cjs/components/Dropzone/variations/_size/tokens.json +19 -0
  37. package/emotion/cjs/components/Dropzone/variations/_view/base.js +10 -0
  38. package/emotion/cjs/components/Dropzone/variations/_view/tokens.json +9 -0
  39. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  40. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  41. package/emotion/cjs/components/_Icon/index.js +8 -1
  42. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +25 -0
  43. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +11 -0
  44. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  45. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +25 -0
  46. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +11 -0
  47. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  48. package/emotion/cjs/index.js +11 -0
  49. package/emotion/es/components/Dropzone/Dropzone.js +263 -0
  50. package/emotion/es/components/Dropzone/Dropzone.styles.js +60 -0
  51. package/emotion/es/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  52. package/emotion/es/components/Dropzone/Dropzone.tokens.js +37 -0
  53. package/emotion/es/components/Dropzone/Dropzone.types.js +1 -0
  54. package/emotion/es/components/Dropzone/index.js +2 -0
  55. package/emotion/es/components/Dropzone/variations/_disabled/base.js +3 -0
  56. package/emotion/es/components/Dropzone/variations/_disabled/tokens.json +4 -0
  57. package/emotion/es/components/Dropzone/variations/_size/base.js +4 -0
  58. package/emotion/es/components/Dropzone/variations/_size/tokens.json +19 -0
  59. package/emotion/es/components/Dropzone/variations/_view/base.js +4 -0
  60. package/emotion/es/components/Dropzone/variations/_view/tokens.json +9 -0
  61. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  62. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  63. package/emotion/es/components/_Icon/index.js +2 -1
  64. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +19 -0
  65. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +5 -0
  66. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  67. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +19 -0
  68. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.js +5 -0
  69. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  70. package/emotion/es/index.js +2 -1
  71. package/es/_virtual/_rollupPluginBabelHelpers.js +332 -1
  72. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  73. package/es/components/Dropzone/Dropzone.css +15 -0
  74. package/es/components/Dropzone/Dropzone.js +247 -0
  75. package/es/components/Dropzone/Dropzone.js.map +1 -0
  76. package/es/components/Dropzone/Dropzone.styles.js +37 -0
  77. package/es/components/Dropzone/Dropzone.styles.js.map +1 -0
  78. package/es/components/Dropzone/Dropzone.styles_1fo7dbq.css +7 -0
  79. package/es/components/Dropzone/Dropzone.tokens.js +40 -0
  80. package/es/components/Dropzone/Dropzone.tokens.js.map +1 -0
  81. package/es/components/Dropzone/variations/_disabled/base.js +5 -0
  82. package/es/components/Dropzone/variations/_disabled/base.js.map +1 -0
  83. package/es/components/Dropzone/variations/_disabled/base_3qwygi.css +1 -0
  84. package/es/components/Dropzone/variations/_size/base.js +5 -0
  85. package/es/components/Dropzone/variations/_size/base.js.map +1 -0
  86. package/es/components/Dropzone/variations/_size/base_1cl61bm.css +1 -0
  87. package/es/components/Dropzone/variations/_view/base.js +5 -0
  88. package/es/components/Dropzone/variations/_view/base.js.map +1 -0
  89. package/es/components/Dropzone/variations/_view/base_cipwu9.css +1 -0
  90. package/es/components/_Icon/Icon.assets/ArrowBarDown.js +20 -0
  91. package/es/components/_Icon/Icon.assets/ArrowBarDown.js.map +1 -0
  92. package/es/components/_Icon/Icons/IconArrowBarDown.js +19 -0
  93. package/es/components/_Icon/Icons/IconArrowBarDown.js.map +1 -0
  94. package/es/index.css +14 -0
  95. package/es/index.js +2 -0
  96. package/es/index.js.map +1 -1
  97. package/package.json +2 -2
  98. package/styled-components/cjs/components/Dropzone/Dropzone.js +271 -0
  99. package/styled-components/cjs/components/Dropzone/Dropzone.styles.js +29 -0
  100. package/styled-components/cjs/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  101. package/styled-components/cjs/components/Dropzone/Dropzone.tokens.js +43 -0
  102. package/styled-components/cjs/components/Dropzone/Dropzone.types.js +5 -0
  103. package/styled-components/cjs/components/Dropzone/index.js +31 -0
  104. package/styled-components/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
  105. package/styled-components/cjs/components/Dropzone/variations/_disabled/tokens.json +4 -0
  106. package/styled-components/cjs/components/Dropzone/variations/_size/base.js +10 -0
  107. package/styled-components/cjs/components/Dropzone/variations/_size/tokens.json +19 -0
  108. package/styled-components/cjs/components/Dropzone/variations/_view/base.js +10 -0
  109. package/styled-components/cjs/components/Dropzone/variations/_view/tokens.json +9 -0
  110. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  111. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  112. package/styled-components/cjs/components/_Icon/index.js +8 -1
  113. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +25 -0
  114. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +11 -0
  115. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  116. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +25 -0
  117. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +11 -0
  118. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  119. package/styled-components/cjs/index.js +11 -0
  120. package/styled-components/es/components/Dropzone/Dropzone.js +263 -0
  121. package/styled-components/es/components/Dropzone/Dropzone.styles.js +21 -0
  122. package/styled-components/es/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  123. package/styled-components/es/components/Dropzone/Dropzone.tokens.js +37 -0
  124. package/styled-components/es/components/Dropzone/Dropzone.types.js +1 -0
  125. package/styled-components/es/components/Dropzone/index.js +2 -0
  126. package/styled-components/es/components/Dropzone/variations/_disabled/base.js +3 -0
  127. package/styled-components/es/components/Dropzone/variations/_disabled/tokens.json +4 -0
  128. package/styled-components/es/components/Dropzone/variations/_size/base.js +4 -0
  129. package/styled-components/es/components/Dropzone/variations/_size/tokens.json +19 -0
  130. package/styled-components/es/components/Dropzone/variations/_view/base.js +4 -0
  131. package/styled-components/es/components/Dropzone/variations/_view/tokens.json +9 -0
  132. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  133. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  134. package/styled-components/es/components/_Icon/index.js +2 -1
  135. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +19 -0
  136. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +5 -0
  137. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
  138. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +19 -0
  139. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.js +5 -0
  140. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
  141. package/styled-components/es/index.js +2 -1
  142. package/types/components/Dropzone/Dropzone.d.ts +59 -0
  143. package/types/components/Dropzone/Dropzone.d.ts.map +1 -0
  144. package/types/components/Dropzone/Dropzone.styles.d.ts +9 -0
  145. package/types/components/Dropzone/Dropzone.styles.d.ts.map +1 -0
  146. package/types/components/Dropzone/Dropzone.tokens.d.ts +38 -0
  147. package/types/components/Dropzone/Dropzone.tokens.d.ts.map +1 -0
  148. package/types/components/Dropzone/Dropzone.types.d.ts +77 -0
  149. package/types/components/Dropzone/Dropzone.types.d.ts.map +1 -0
  150. package/types/components/Dropzone/index.d.ts +3 -0
  151. package/types/components/Dropzone/index.d.ts.map +1 -0
  152. package/types/components/Dropzone/variations/_disabled/base.d.ts +2 -0
  153. package/types/components/Dropzone/variations/_disabled/base.d.ts.map +1 -0
  154. package/types/components/Dropzone/variations/_size/base.d.ts +2 -0
  155. package/types/components/Dropzone/variations/_size/base.d.ts.map +1 -0
  156. package/types/components/Dropzone/variations/_view/base.d.ts +2 -0
  157. package/types/components/Dropzone/variations/_view/base.d.ts.map +1 -0
  158. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +4 -0
  159. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +1 -0
  160. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +4 -0
  161. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +1 -0
  162. package/types/components/_Icon/index.d.ts +1 -0
  163. package/types/components/_Icon/index.d.ts.map +1 -1
  164. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts +18 -0
  165. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts.map +1 -0
  166. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +29 -0
  167. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +1 -0
  168. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts +18 -0
  169. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts.map +1 -0
  170. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts +29 -0
  171. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts.map +1 -0
  172. package/types/index.d.ts +1 -0
  173. package/types/index.d.ts.map +1 -1
@@ -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, 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{border-color:var(", tokens.borderColorHover, ");outline:none;}&.", classes.active, "{border-color:var(", tokens.borderColorActive, ");&:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL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Fic29sdXRlO1xuICAgICAgICAgICAgdG9wOiAwO1xuICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgICAgICAgICAgYmFja2dyb3VuZDogdmFyKCR7dG9rZW5zLm92ZXJsYXlDb2xvckFjdGl2ZX0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJHtUaXRsZVdyYXBwZXJ9IHtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy50aXRsZUNvbG9yfSk7XG4gICAgfVxuXG4gICAgJHtEZXNjcmlwdGlvbn0ge1xuICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9KTtcbiAgICB9XG5gO1xuIl19 */"));
@@ -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
+ ]
@@ -0,0 +1,16 @@
1
+ var _path;
2
+ 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); }
3
+ import React from 'react';
4
+ export var ArrowBarDown = function ArrowBarDown(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ width: "100%",
7
+ viewBox: "0 0 16 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg"
10
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
11
+ fillRule: "evenodd",
12
+ clipRule: "evenodd",
13
+ 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",
14
+ fill: "currentColor"
15
+ })));
16
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ArrowBarDown } from '../Icon.assets/ArrowBarDown';
3
+ import { IconRoot } from '../IconRoot';
4
+ export var IconArrowBarDown = function IconArrowBarDown(_ref) {
5
+ var _ref$size = _ref.size,
6
+ size = _ref$size === void 0 ? 'xs' : _ref$size,
7
+ color = _ref.color,
8
+ className = _ref.className;
9
+ return /*#__PURE__*/React.createElement(IconRoot, {
10
+ className: className,
11
+ size: size,
12
+ color: color,
13
+ icon: ArrowBarDown
14
+ });
15
+ };
@@ -24,4 +24,5 @@ export { IconBlankOutline } from './Icons/IconBlankOutline';
24
24
  export { IconBlankPdfOutline } from './Icons/IconBlankPdfOutline';
25
25
  export { IconBlankTxtOutline } from './Icons/IconBlankTxtOutline';
26
26
  export { IconBlankXlsOutline } from './Icons/IconBlankXlsOutline';
27
- export { IconInfoCircleOutline } from './Icons/IconInfoCircleOutline';
27
+ export { IconInfoCircleOutline } from './Icons/IconInfoCircleOutline';
28
+ export { IconArrowBarDown } from './Icons/IconArrowBarDown';
@@ -0,0 +1,19 @@
1
+ import { css } from '@emotion/react';
2
+ import { dropzoneTokens } from '../../../../components/Dropzone';
3
+ export var config = {
4
+ defaults: {
5
+ view: 'default',
6
+ size: 'm'
7
+ },
8
+ variations: {
9
+ view: {
10
+ "default": /*#__PURE__*/css(dropzoneTokens.background, ":var(--surface-solid-card);", dropzoneTokens.overlayColorActive, ":var(--overlay-soft);", dropzoneTokens.border, ":0.063rem dashed var(--outline-secondary);", dropzoneTokens.borderColorHover, ":var(--outline-secondary);", dropzoneTokens.borderColorActive, ":var(--outline-accent);", dropzoneTokens.titleColor, ":var(--text-primary);", dropzoneTokens.descriptionColor, ":var(--text-secondary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV3dCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGRyb3B6b25lVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ecm9wem9uZSc7XG5cbmV4cG9ydCBjb25zdCBjb25maWcgPSB7XG4gICAgZGVmYXVsdHM6IHtcbiAgICAgICAgdmlldzogJ2RlZmF1bHQnLFxuICAgICAgICBzaXplOiAnbScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHZpZXc6IHtcbiAgICAgICAgICAgIGRlZmF1bHQ6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9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wZXJHYXBDb2x1bW59OiAwLjVyZW07XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFN0eWxlfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1oNC1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlTGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtbGluZS1oZWlnaHQpO1xuXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Gb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Gb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uTGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGlzYWJsZWRPcGFjaXR5fTogMC40O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */"))
11
+ },
12
+ size: {
13
+ m: /*#__PURE__*/css(dropzoneTokens.padding, ":1.5rem;", dropzoneTokens.borderRadius, ":1.25rem;", dropzoneTokens.contentGap, ":0.75rem;", dropzoneTokens.titleWrapperGap, ":0.375rem;", dropzoneTokens.titleWrapperGapColumn, ":0.5rem;", dropzoneTokens.titleFontFamily, ":var(--plasma-typo-body-h4-font-family);", dropzoneTokens.titleFontSize, ":var(--plasma-typo-body-h4-font-size);", dropzoneTokens.titleFontStyle, ":var(--plasma-typo-body-h4-font-style);", dropzoneTokens.titleFontWeight, ":var(--plasma-typo-body-h4-bold-font-weight);", dropzoneTokens.titleLetterSpacing, ":var(--plasma-typo-body-h4-letter-spacing);", dropzoneTokens.titleLineHeight, ":var(--plasma-typo-body-h4-line-height);", dropzoneTokens.descriptionFontFamily, ":var(--plasma-typo-body-s-font-family);", dropzoneTokens.descriptionFontSize, ":var(--plasma-typo-body-s-font-size);", dropzoneTokens.descriptionFontStyle, ":var(--plasma-typo-body-s-font-style);", dropzoneTokens.descriptionFontWeight, ":var(--plasma-typo-body-s-font-weight);", dropzoneTokens.descriptionLetterSpacing, ":var(--plasma-typo-body-s-letter-spacing);", dropzoneTokens.descriptionLineHeight, ":var(--plasma-typo-body-s-line-height);;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0JrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBkcm9wem9uZVRva2VucyB9IGZyb20gJy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvRHJvcHpvbmUnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBkZWZhdWx0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLm92ZXJsYXlDb2xvckFjdGl2ZX06IHZhcigtLW92ZXJsYXktc29mdCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJ9OiAwLjA2M3JlbSBkYXNoZWQgdmFyKC0tb3V0bGluZS1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuYm9yZGVyQ29sb3JIb3Zlcn06IHZhcigtLW91dGxpbmUtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9yQWN0aXZlfTogdmFyKC0tb3V0bGluZS1hY2NlbnQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVDb2xvcn06IHZhcigtLXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMucGFkZGluZ306IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlclJhZGl1c306IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5jb250ZW50R2FwfTogMC43NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcH06IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwQ29sdW1ufTogMC41cmVtO1xuXG4gICAgICAgICAgICAgIC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gICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Gb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtd2VpZ2h0KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uTGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGluZS1oZWlnaHQpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZGlzYWJsZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
14
+ },
15
+ disabled: {
16
+ "true": /*#__PURE__*/css(dropzoneTokens.disabledOpacity, ":0.4;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkNxQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuY29uZmlnLnRzIiwic291cmNlc0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gICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMucGFkZGluZ306IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlclJhZGl1c306IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5jb250ZW50R2FwfTogMC43NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcH06IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwQ29sdW1ufTogMC41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWJvbGQtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVMZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxpbmV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 @@
1
+ import { dropzoneConfig } from '../../../../components/Dropzone';
2
+ import { component, mergeConfig } from '../../../../engines';
3
+ import { config } from './Dropzone.config';
4
+ var mergedConfig = /*#__PURE__*/mergeConfig(dropzoneConfig, config);
5
+ export var Dropzone = /*#__PURE__*/component(mergedConfig);
@@ -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
+ };
@@ -0,0 +1,19 @@
1
+ import { css } from '@emotion/react';
2
+ import { dropzoneTokens } from '../../../../components/Dropzone';
3
+ export var config = {
4
+ defaults: {
5
+ view: 'default',
6
+ size: 'm'
7
+ },
8
+ variations: {
9
+ view: {
10
+ "default": /*#__PURE__*/css(dropzoneTokens.background, ":var(--surface-solid-card);", dropzoneTokens.overlayColorActive, ":var(--overlay-soft);", dropzoneTokens.border, ":0.063rem dashed var(--outline-secondary);", dropzoneTokens.borderColorHover, ":var(--outline-secondary);", dropzoneTokens.borderColorActive, ":var(--outline-accent);", dropzoneTokens.titleColor, ":var(--text-primary);", dropzoneTokens.descriptionColor, ":var(--text-secondary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV3dCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGRyb3B6b25lVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ecm9wem9uZSc7XG5cbmV4cG9ydCBjb25zdCBjb25maWcgPSB7XG4gICAgZGVmYXVsdHM6IHtcbiAgICAgICAgdmlldzogJ2RlZmF1bHQnLFxuICAgICAgICBzaXplOiAnbScsXG4gICAgfSxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHZpZXc6IHtcbiAgICAgICAgICAgIGRlZmF1bHQ6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJhY2tncm91bmR9OiB2YXIoLS1zdXJmYWNlLXNvbGlkLWNhcmQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMub3ZlcmxheUNvbG9yQWN0aXZlfTogdmFyKC0tb3ZlcmxheS1zb2Z0KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlcn06IDAuMDYzcmVtIGRhc2hlZCB2YXIoLS1vdXRsaW5lLXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJDb2xvckhvdmVyfTogdmFyKC0tb3V0bGluZS1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuYm9yZGVyQ29sb3JBY3RpdmV9OiB2YXIoLS1vdXRsaW5lLWFjY2VudCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUNvbG9yfTogdmFyKC0tdGV4dC1wcmltYXJ5KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uQ29sb3J9OiB2YXIoLS10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5wYWRkaW5nfTogMS41cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmNvbnRlbnRHYXB9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwfTogMC4zNzVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZVdyYXBwZXJHYXBDb2x1bW59OiAwLjVyZW07XG5cbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVGb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFN0eWxlfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1oNC1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtYm9sZC1mb250LXdlaWdodCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlTGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtbGluZS1oZWlnaHQpO1xuXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Gb250U2l6ZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Gb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25MZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uTGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1saW5lLWhlaWdodCk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBkaXNhYmxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGlzYWJsZWRPcGFjaXR5fTogMC40O1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */"))
11
+ },
12
+ size: {
13
+ m: /*#__PURE__*/css(dropzoneTokens.padding, ":1.5rem;", dropzoneTokens.borderRadius, ":1.25rem;", dropzoneTokens.contentGap, ":0.75rem;", dropzoneTokens.titleWrapperGap, ":0.375rem;", dropzoneTokens.titleWrapperGapColumn, ":0.5rem;", dropzoneTokens.titleFontFamily, ":var(--plasma-typo-body-h4-font-family);", dropzoneTokens.titleFontSize, ":var(--plasma-typo-body-h4-font-size);", dropzoneTokens.titleFontStyle, ":var(--plasma-typo-body-h4-font-style);", dropzoneTokens.titleFontWeight, ":var(--plasma-typo-body-h4-bold-font-weight);", dropzoneTokens.titleLetterSpacing, ":var(--plasma-typo-body-h4-letter-spacing);", dropzoneTokens.titleLineHeight, ":var(--plasma-typo-body-h4-line-height);", dropzoneTokens.descriptionFontFamily, ":var(--plasma-typo-body-s-font-family);", dropzoneTokens.descriptionFontSize, ":var(--plasma-typo-body-s-font-size);", dropzoneTokens.descriptionFontStyle, ":var(--plasma-typo-body-s-font-style);", dropzoneTokens.descriptionFontWeight, ":var(--plasma-typo-body-s-font-weight);", dropzoneTokens.descriptionLetterSpacing, ":var(--plasma-typo-body-s-letter-spacing);", dropzoneTokens.descriptionLineHeight, ":var(--plasma-typo-body-s-line-height);;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0JrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfd2ViL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBkcm9wem9uZVRva2VucyB9IGZyb20gJy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvRHJvcHpvbmUnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBkZWZhdWx0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkKTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLm92ZXJsYXlDb2xvckFjdGl2ZX06IHZhcigtLW92ZXJsYXktc29mdCk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5ib3JkZXJ9OiAwLjA2M3JlbSBkYXNoZWQgdmFyKC0tb3V0bGluZS1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuYm9yZGVyQ29sb3JIb3Zlcn06IHZhcigtLW91dGxpbmUtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlckNvbG9yQWN0aXZlfTogdmFyKC0tb3V0bGluZS1hY2NlbnQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVDb2xvcn06IHZhcigtLXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMucGFkZGluZ306IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlclJhZGl1c306IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5jb250ZW50R2FwfTogMC43NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcH06IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwQ29sdW1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G8tYm9keS1zLWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMuZGVzY3JpcHRpb25Gb250V2VpZ2h0fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtd2VpZ2h0KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRlc2NyaXB0aW9uTGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5kZXNjcmlwdGlvbkxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGluZS1oZWlnaHQpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgZGlzYWJsZWQ6IHtcbiAgICAgICAgICAgIHRydWU6IGNzc2BcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmRpc2FibGVkT3BhY2l0eX06IDAuNDtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
14
+ },
15
+ disabled: {
16
+ "true": /*#__PURE__*/css(dropzoneTokens.disabledOpacity, ":0.4;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV93ZWIvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkNxQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfd2ViL2NvbXBvbmVudHMvRHJvcHpvbmUvRH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vbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMucGFkZGluZ306IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLmJvcmRlclJhZGl1c306IDEuMjVyZW07XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy5jb250ZW50R2FwfTogMC43NXJlbTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlV3JhcHBlckdhcH06IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVXcmFwcGVyR2FwQ29sdW1ufTogMC41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke2Ryb3B6b25lVG9rZW5zLnRpdGxlRm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHtkcm9wem9uZVRva2Vucy50aXRsZUZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWJvbGQtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7ZHJvcHpvbmVUb2tlbnMudGl0bGVMZXR0ZXJTcGFjaW5nfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgICAgICAgICAgICAg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))
17
+ }
18
+ }
19
+ };
@@ -0,0 +1,5 @@
1
+ import { dropzoneConfig } from '../../../../components/Dropzone';
2
+ import { component, mergeConfig } from '../../../../engines';
3
+ import { config } from './Dropzone.config';
4
+ var mergedConfig = /*#__PURE__*/mergeConfig(dropzoneConfig, config);
5
+ export var Dropzone = /*#__PURE__*/component(mergedConfig);
@@ -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_web/Dropzone',
20
+ component: Dropzone,
21
+ decorators: [WithTheme],
22
+ argTypes: {
23
+ iconPlacement: {
24
+ options: iconPlacements,
25
+ control: {
26
+ type: 'inline-radio',
27
+ },
28
+ defaultValue: 'top',
29
+ },
30
+ ...disableProps(['view', 'size']),
31
+ },
32
+ };
33
+
34
+ export default meta;
35
+
36
+ type StoryPropsDefault = ComponentProps<typeof Dropzone>;
37
+
38
+ export const Default: StoryObj<StoryPropsDefault> = {
39
+ args: {
40
+ iconPlacement: 'top',
41
+ width: 400,
42
+ height: 280,
43
+ disabled: false,
44
+ title: 'Click to upload',
45
+ description: 'or drag and drop files here',
46
+ },
47
+ render: (args) => (
48
+ <Dropzone
49
+ {...args}
50
+ onDragEnter={onDragEnter}
51
+ onDragLeave={onDragLeave}
52
+ onDrop={onDrop}
53
+ onChange={onChange}
54
+ onChoseFiles={onChoseFiles}
55
+ />
56
+ ),
57
+ };
@@ -63,4 +63,5 @@ export * from './components/Editable';
63
63
  export * from './components/Mask';
64
64
  export * from './components/Attach';
65
65
  export * from './components/ViewContainer';
66
- export * from './components/NumberInput';
66
+ export * from './components/NumberInput';
67
+ export * from './components/Dropzone';