@salutejs/plasma-new-hope 0.183.1-canary.1535.11680166109.0 → 0.184.0-canary.1534.11679645702.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
- package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
- package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
- package/emotion/cjs/components/_Icon/index.js +8 -1
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +220 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +80 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +5 -0
- package/emotion/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
- package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
- package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
- package/emotion/es/components/_Icon/index.js +2 -1
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +212 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +73 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +1 -0
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
- package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
- package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
- package/styled-components/cjs/components/_Icon/index.js +8 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +220 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +33 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +5 -0
- package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
- package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
- package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
- package/styled-components/es/components/_Icon/index.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +212 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +26 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +1 -0
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -1
- package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +4 -0
- package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +1 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +22 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts +15 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts +80 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts.map +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RangeDatePopover.js","sources":["../../../../../src/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getPlacements } from '../../../../utils';\nimport { StyledPopover } from '../RangeDate.styles';\n\nimport type { RangeDatePopoverProps } from './RangeDatePopover.types';\nimport { StyledCalendar, StyledCalendarDouble } from './RangeDatePopover.styles';\n\nexport const RangeDatePopover = ({\n rootWrapper: Root,\n target,\n\n isOpen,\n opened,\n isDoubleCalendar,\n\n calendarValue,\n min,\n max,\n includeEdgeDates,\n eventList,\n disabledList,\n eventMonthList,\n disabledMonthList,\n eventQuarterList,\n disabledQuarterList,\n eventYearList,\n disabledYearList,\n\n frame = 'document',\n usePortal = false,\n placement = ['top', 'bottom'],\n closeOnOverlayClick = true,\n closeOnEsc,\n offset,\n\n type,\n size,\n lang = 'ru',\n\n onChangeValue,\n onChangeStartOfRange,\n\n onToggle,\n}: RangeDatePopoverProps) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n if (isDoubleCalendar) {\n return (\n <StyledPopover\n opened={innerIsOpen}\n frame={frame}\n usePortal={usePortal}\n onToggle={onToggle}\n offset={offset}\n placement={getPlacements(placement)}\n trigger=\"click\"\n closeOnOverlayClick={closeOnOverlayClick}\n isFocusTrapped={false}\n target={target}\n preventOverflow={false}\n >\n <Root>\n <StyledCalendarDouble\n size={size}\n value={calendarValue}\n eventList={eventList}\n disabledList={disabledList}\n eventMonthList={eventMonthList}\n disabledMonthList={disabledMonthList}\n eventQuarterList={eventQuarterList}\n disabledQuarterList={disabledQuarterList}\n eventYearList={eventYearList}\n disabledYearList={disabledYearList}\n min={min}\n max={max}\n
|
1
|
+
{"version":3,"file":"RangeDatePopover.js","sources":["../../../../../src/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getPlacements } from '../../../../utils';\nimport { StyledPopover } from '../RangeDate.styles';\n\nimport type { RangeDatePopoverProps } from './RangeDatePopover.types';\nimport { StyledCalendar, StyledCalendarDouble } from './RangeDatePopover.styles';\n\nexport const RangeDatePopover = ({\n rootWrapper: Root,\n target,\n\n isOpen,\n opened,\n isDoubleCalendar,\n\n calendarValue,\n min,\n max,\n includeEdgeDates,\n eventList,\n disabledList,\n eventMonthList,\n disabledMonthList,\n eventQuarterList,\n disabledQuarterList,\n eventYearList,\n disabledYearList,\n\n frame = 'document',\n usePortal = false,\n placement = ['top', 'bottom'],\n closeOnOverlayClick = true,\n closeOnEsc,\n offset,\n\n type,\n size,\n lang = 'ru',\n\n onChangeValue,\n onChangeStartOfRange,\n\n onToggle,\n}: RangeDatePopoverProps) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n if (isDoubleCalendar) {\n return (\n <StyledPopover\n opened={innerIsOpen}\n frame={frame}\n usePortal={usePortal}\n onToggle={onToggle}\n offset={offset}\n placement={getPlacements(placement)}\n trigger=\"click\"\n closeOnOverlayClick={closeOnOverlayClick}\n isFocusTrapped={false}\n target={target}\n preventOverflow={false}\n >\n <Root>\n <StyledCalendarDouble\n size={size}\n value={calendarValue}\n eventList={eventList}\n disabledList={disabledList}\n eventMonthList={eventMonthList}\n disabledMonthList={disabledMonthList}\n eventQuarterList={eventQuarterList}\n disabledQuarterList={disabledQuarterList}\n eventYearList={eventYearList}\n disabledYearList={disabledYearList}\n min={min}\n max={max}\n locale={lang}\n includeEdgeDates={includeEdgeDates}\n onChangeValue={onChangeValue}\n onChangeStartOfRange={onChangeStartOfRange}\n />\n </Root>\n </StyledPopover>\n );\n }\n\n return (\n <StyledPopover\n opened={innerIsOpen}\n frame={frame}\n usePortal={usePortal}\n onToggle={onToggle}\n offset={offset}\n placement={getPlacements(placement)}\n trigger=\"click\"\n closeOnOverlayClick={closeOnOverlayClick}\n isFocusTrapped={false}\n target={target}\n preventOverflow={false}\n closeOnEsc={closeOnEsc}\n >\n <Root>\n <StyledCalendar\n size={size}\n value={calendarValue}\n eventList={eventList}\n disabledList={disabledList}\n eventMonthList={eventMonthList}\n disabledMonthList={disabledMonthList}\n eventQuarterList={eventQuarterList}\n disabledQuarterList={disabledQuarterList}\n eventYearList={eventYearList}\n disabledYearList={disabledYearList}\n min={min}\n max={max}\n type={type}\n locale={lang}\n includeEdgeDates={includeEdgeDates}\n onChangeValue={onChangeValue}\n onChangeStartOfRange={onChangeStartOfRange}\n />\n </Root>\n </StyledPopover>\n );\n};\n"],"names":["RangeDatePopover","_ref","Root","rootWrapper","target","isOpen","opened","isDoubleCalendar","calendarValue","min","max","includeEdgeDates","eventList","disabledList","eventMonthList","disabledMonthList","eventQuarterList","disabledQuarterList","eventYearList","disabledYearList","_ref$frame","frame","_ref$usePortal","usePortal","_ref$placement","placement","_ref$closeOnOverlayCl","closeOnOverlayClick","closeOnEsc","offset","type","size","_ref$lang","lang","onChangeValue","onChangeStartOfRange","onToggle","innerIsOpen","Boolean","React","createElement","StyledPopover","getPlacements","trigger","isFocusTrapped","preventOverflow","StyledCalendarDouble","value","locale","StyledCalendar"],"mappings":";;;;;;;;;IAQaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAoCA;AAAA,EAAA,IAnCZC,IAAI,GAAAD,IAAA,CAAjBE,WAAW;IACXC,MAAM,GAAAH,IAAA,CAANG,MAAM;IAENC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,MAAM,GAAAL,IAAA,CAANK,MAAM;IACNC,gBAA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CV,IAAAA,GAAG,EAAEA,GAAI;AACTC,IAAAA,GAAG,EAAEA,GAAI;AACToB,IAAAA,IAAI,EAAEA,IAAK;AACXkB,IAAAA,MAAM,EAAEf,IAAK;AACbtB,IAAAA,gBAAgB,EAAEA,gBAAiB;AACnCuB,IAAAA,aAAa,EAAEA,aAAc;AAC7BC,IAAAA,oBAAoB,EAAEA,oBAAAA;GACzB,CACC,CACK,CAAC,CAAA;AAExB;;;;"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.ArrowBarDown = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _path;
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11
|
+
var ArrowBarDown = exports.ArrowBarDown = function ArrowBarDown(props) {
|
12
|
+
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
13
|
+
width: "100%",
|
14
|
+
viewBox: "0 0 16 16",
|
15
|
+
fill: "none",
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
17
|
+
}, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
|
18
|
+
fillRule: "evenodd",
|
19
|
+
clipRule: "evenodd",
|
20
|
+
d: "M7.95833 1.875C8.23448 1.875 8.45833 2.09886 8.45833 2.375V10.4043L11.2686 7.54868C11.4623 7.35186 11.7789 7.34933 11.9757 7.54302C12.1725 7.73672 12.1751 8.05329 11.9814 8.25011L8.3147 11.9759C8.21782 12.0744 8.08453 12.1283 7.94645 12.1251C7.80837 12.1218 7.67779 12.0615 7.5857 11.9586L4.25237 8.23278C4.06824 8.02698 4.08582 7.71088 4.29162 7.52676C4.49742 7.34264 4.81351 7.36021 4.99763 7.56601L7.45833 10.3164V2.375C7.45833 2.09886 7.68219 1.875 7.95833 1.875ZM2.5 14.0001C2.5 13.724 2.72386 13.5001 3 13.5001H13C13.2761 13.5001 13.5 13.724 13.5 14.0001C13.5 14.2763 13.2761 14.5001 13 14.5001H3C2.72386 14.5001 2.5 14.2763 2.5 14.0001Z",
|
21
|
+
fill: "currentColor"
|
22
|
+
})));
|
23
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.IconArrowBarDown = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _ArrowBarDown = /*#__PURE__*/require("../Icon.assets/ArrowBarDown");
|
9
|
+
var _IconRoot = /*#__PURE__*/require("../IconRoot");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
var IconArrowBarDown = exports.IconArrowBarDown = function IconArrowBarDown(_ref) {
|
12
|
+
var _ref$size = _ref.size,
|
13
|
+
size = _ref$size === void 0 ? 'xs' : _ref$size,
|
14
|
+
color = _ref.color,
|
15
|
+
className = _ref.className;
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
|
17
|
+
className: className,
|
18
|
+
size: size,
|
19
|
+
color: color,
|
20
|
+
icon: _ArrowBarDown.ArrowBarDown
|
21
|
+
});
|
22
|
+
};
|
@@ -3,6 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
Object.defineProperty(exports, "IconArrowBarDown", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _IconArrowBarDown.IconArrowBarDown;
|
10
|
+
}
|
11
|
+
});
|
6
12
|
Object.defineProperty(exports, "IconBlankCsvOutline", {
|
7
13
|
enumerable: true,
|
8
14
|
get: function get() {
|
@@ -191,4 +197,5 @@ var _IconBlankOutline = /*#__PURE__*/require("./Icons/IconBlankOutline");
|
|
191
197
|
var _IconBlankPdfOutline = /*#__PURE__*/require("./Icons/IconBlankPdfOutline");
|
192
198
|
var _IconBlankTxtOutline = /*#__PURE__*/require("./Icons/IconBlankTxtOutline");
|
193
199
|
var _IconBlankXlsOutline = /*#__PURE__*/require("./Icons/IconBlankXlsOutline");
|
194
|
-
var _IconInfoCircleOutline = /*#__PURE__*/require("./Icons/IconInfoCircleOutline");
|
200
|
+
var _IconInfoCircleOutline = /*#__PURE__*/require("./Icons/IconInfoCircleOutline");
|
201
|
+
var _IconArrowBarDown = /*#__PURE__*/require("./Icons/IconArrowBarDown");
|
@@ -0,0 +1,220 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
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); }
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.Dropzone = void 0;
|
8
|
+
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
+
var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
|
10
|
+
var _utils = /*#__PURE__*/require("../../../../utils");
|
11
|
+
var _Icon = /*#__PURE__*/require("../../../../components/_Icon");
|
12
|
+
var _Dropzone = /*#__PURE__*/require("./Dropzone.styles");
|
13
|
+
var _IconArrowBarDown;
|
14
|
+
var _excluded = ["className", "style", "acceptedFileFormats", "multiple", "title", "description", "icon", "iconPlacement", "size", "view", "disabled", "stretch", "width", "onDragEnter", "onDragLeave", "onDragOver", "onDrop", "validator", "onDropFiles", "onClick", "onChange", "onChoseFiles"];
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
17
|
+
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); }
|
18
|
+
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; }
|
19
|
+
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; }
|
20
|
+
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; }
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
22
|
+
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); }
|
23
|
+
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; }
|
24
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
25
|
+
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."); }
|
26
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
27
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
28
|
+
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); } }
|
29
|
+
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); }); }; }
|
30
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
31
|
+
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."); }
|
32
|
+
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); }
|
33
|
+
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; }
|
34
|
+
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; } }
|
35
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
36
|
+
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; }
|
37
|
+
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; }
|
38
|
+
var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, outerRef) {
|
39
|
+
var className = _ref.className,
|
40
|
+
style = _ref.style,
|
41
|
+
acceptedFileFormats = _ref.acceptedFileFormats,
|
42
|
+
multiple = _ref.multiple,
|
43
|
+
title = _ref.title,
|
44
|
+
description = _ref.description,
|
45
|
+
icon = _ref.icon,
|
46
|
+
iconPlacement = _ref.iconPlacement,
|
47
|
+
size = _ref.size,
|
48
|
+
view = _ref.view,
|
49
|
+
disabled = _ref.disabled,
|
50
|
+
stretch = _ref.stretch,
|
51
|
+
width = _ref.width,
|
52
|
+
onDragEnter = _ref.onDragEnter,
|
53
|
+
onDragLeave = _ref.onDragLeave,
|
54
|
+
onDragOver = _ref.onDragOver,
|
55
|
+
onDrop = _ref.onDrop,
|
56
|
+
validator = _ref.validator,
|
57
|
+
onDropFiles = _ref.onDropFiles,
|
58
|
+
onClick = _ref.onClick,
|
59
|
+
onChange = _ref.onChange,
|
60
|
+
onChoseFiles = _ref.onChoseFiles,
|
61
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
62
|
+
var _useState = (0, _react.useState)(false),
|
63
|
+
_useState2 = _slicedToArray(_useState, 2),
|
64
|
+
isDropzoneActive = _useState2[0],
|
65
|
+
setIsDropzoneActive = _useState2[1];
|
66
|
+
var inputRef = (0, _react.useRef)(null);
|
67
|
+
var forkInputRef = (0, _plasmaCore.useForkRef)(outerRef, inputRef);
|
68
|
+
var accept = acceptedFileFormats === null || acceptedFileFormats === void 0 ? void 0 : acceptedFileFormats.join(',');
|
69
|
+
var innerWidth = width ? (0, _utils.getSizeValueFromProp)(width) : 'fit-content';
|
70
|
+
var processFiles = /*#__PURE__*/function () {
|
71
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(rawFiles, callback, afterAction) {
|
72
|
+
var files, res;
|
73
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
74
|
+
while (1) switch (_context.prev = _context.next) {
|
75
|
+
case 0:
|
76
|
+
if (!(rawFiles && rawFiles.length > 0)) {
|
77
|
+
_context.next = 12;
|
78
|
+
break;
|
79
|
+
}
|
80
|
+
files = _toConsumableArray(rawFiles);
|
81
|
+
res = {
|
82
|
+
acceptedFiles: files
|
83
|
+
};
|
84
|
+
if (!validator) {
|
85
|
+
_context.next = 7;
|
86
|
+
break;
|
87
|
+
}
|
88
|
+
_context.next = 6;
|
89
|
+
return validator === null || validator === void 0 ? void 0 : validator(files);
|
90
|
+
case 6:
|
91
|
+
res = _context.sent;
|
92
|
+
case 7:
|
93
|
+
console.log(res);
|
94
|
+
if (!callback) {
|
95
|
+
_context.next = 11;
|
96
|
+
break;
|
97
|
+
}
|
98
|
+
_context.next = 11;
|
99
|
+
return callback(res);
|
100
|
+
case 11:
|
101
|
+
if (afterAction) {
|
102
|
+
afterAction();
|
103
|
+
}
|
104
|
+
case 12:
|
105
|
+
case "end":
|
106
|
+
return _context.stop();
|
107
|
+
}
|
108
|
+
}, _callee);
|
109
|
+
}));
|
110
|
+
return function processFiles(_x, _x2, _x3) {
|
111
|
+
return _ref2.apply(this, arguments);
|
112
|
+
};
|
113
|
+
}();
|
114
|
+
var handleDragEnter = function handleDragEnter(event) {
|
115
|
+
event.preventDefault();
|
116
|
+
event.stopPropagation();
|
117
|
+
if (onDragEnter) {
|
118
|
+
onDragEnter();
|
119
|
+
}
|
120
|
+
var rawFiles = event.dataTransfer.files;
|
121
|
+
if (rawFiles && rawFiles.length > 0) {
|
122
|
+
setIsDropzoneActive(true);
|
123
|
+
}
|
124
|
+
};
|
125
|
+
var handleDragLeave = function handleDragLeave(event) {
|
126
|
+
event.preventDefault();
|
127
|
+
if (onDragLeave) {
|
128
|
+
onDragLeave();
|
129
|
+
}
|
130
|
+
setIsDropzoneActive(false);
|
131
|
+
};
|
132
|
+
var handleDragOver = function handleDragOver(event) {
|
133
|
+
event.preventDefault();
|
134
|
+
if (onDragOver) {
|
135
|
+
onDragOver();
|
136
|
+
}
|
137
|
+
var rawFiles = event.dataTransfer.files;
|
138
|
+
if (!isDropzoneActive && rawFiles && rawFiles.length > 0) {
|
139
|
+
setIsDropzoneActive(true);
|
140
|
+
}
|
141
|
+
};
|
142
|
+
var handleDrop = /*#__PURE__*/function () {
|
143
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event) {
|
144
|
+
var rawFiles, afterAction;
|
145
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
146
|
+
while (1) switch (_context2.prev = _context2.next) {
|
147
|
+
case 0:
|
148
|
+
event.preventDefault();
|
149
|
+
event.persist();
|
150
|
+
if (onDrop) {
|
151
|
+
onDrop();
|
152
|
+
}
|
153
|
+
rawFiles = event.dataTransfer.files;
|
154
|
+
afterAction = function afterAction() {
|
155
|
+
return event.dataTransfer.clearData();
|
156
|
+
};
|
157
|
+
_context2.next = 7;
|
158
|
+
return processFiles(rawFiles, onDropFiles, afterAction);
|
159
|
+
case 7:
|
160
|
+
case "end":
|
161
|
+
return _context2.stop();
|
162
|
+
}
|
163
|
+
}, _callee2);
|
164
|
+
}));
|
165
|
+
return function handleDrop(_x4) {
|
166
|
+
return _ref3.apply(this, arguments);
|
167
|
+
};
|
168
|
+
}();
|
169
|
+
var handleClick = function handleClick(event) {
|
170
|
+
if (!inputRef.current) {
|
171
|
+
return;
|
172
|
+
}
|
173
|
+
inputRef.current.click();
|
174
|
+
if (onClick) {
|
175
|
+
onClick(event);
|
176
|
+
}
|
177
|
+
};
|
178
|
+
var handleChange = /*#__PURE__*/function () {
|
179
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(event) {
|
180
|
+
var rawFiles;
|
181
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
182
|
+
while (1) switch (_context3.prev = _context3.next) {
|
183
|
+
case 0:
|
184
|
+
if (onChange) {
|
185
|
+
onChange(event);
|
186
|
+
}
|
187
|
+
rawFiles = event.target.files;
|
188
|
+
_context3.next = 4;
|
189
|
+
return processFiles(rawFiles, onChoseFiles);
|
190
|
+
case 4:
|
191
|
+
case "end":
|
192
|
+
return _context3.stop();
|
193
|
+
}
|
194
|
+
}, _callee3);
|
195
|
+
}));
|
196
|
+
return function handleChange(_x5) {
|
197
|
+
return _ref4.apply(this, arguments);
|
198
|
+
};
|
199
|
+
}();
|
200
|
+
return /*#__PURE__*/_react["default"].createElement(_Dropzone.StyledRoot, {
|
201
|
+
className: (0, _utils.cx)(className, isDropzoneActive && _Dropzone.classes.active, stretch && _Dropzone.classes.stretch),
|
202
|
+
tabIndex: 0,
|
203
|
+
onDragEnter: handleDragEnter,
|
204
|
+
onDragLeave: handleDragLeave,
|
205
|
+
onDragOver: handleDragOver,
|
206
|
+
onDrop: handleDrop,
|
207
|
+
onClick: handleClick,
|
208
|
+
style: _objectSpread(_objectSpread({}, style), {}, _defineProperty({}, _Dropzone.privateTokens.width, innerWidth))
|
209
|
+
}, /*#__PURE__*/_react["default"].createElement(_Dropzone.Content, null, /*#__PURE__*/_react["default"].createElement(_Dropzone.TitleWrapper, null, icon || _IconArrowBarDown || (_IconArrowBarDown = /*#__PURE__*/_react["default"].createElement(_Icon.IconArrowBarDown, {
|
210
|
+
color: "inherit",
|
211
|
+
size: "s"
|
212
|
+
})), title && /*#__PURE__*/_react["default"].createElement(_Dropzone.Title, null, title)), description && /*#__PURE__*/_react["default"].createElement(_Dropzone.Description, null, description)), /*#__PURE__*/_react["default"].createElement(_Dropzone.HiddenInput, _extends({
|
213
|
+
ref: forkInputRef,
|
214
|
+
type: "file",
|
215
|
+
accept: accept,
|
216
|
+
multiple: multiple,
|
217
|
+
tabIndex: -1,
|
218
|
+
onChange: handleChange
|
219
|
+
}, rest)));
|
220
|
+
});
|
@@ -0,0 +1,58 @@
|
|
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 onDropFiles = action('onDropFiles');
|
14
|
+
const onChange = action('onChange');
|
15
|
+
const onChoseFiles = action('onChoseFiles');
|
16
|
+
|
17
|
+
const iconPlacement = ['top', 'left'];
|
18
|
+
|
19
|
+
const meta: Meta<typeof Dropzone> = {
|
20
|
+
title: 'plasma_b2c/Dropzone',
|
21
|
+
component: Dropzone,
|
22
|
+
decorators: [WithTheme],
|
23
|
+
argTypes: {
|
24
|
+
iconPlacement: {
|
25
|
+
control: {
|
26
|
+
type: 'inline-radio',
|
27
|
+
options: iconPlacement,
|
28
|
+
},
|
29
|
+
defaultValue: 'top',
|
30
|
+
},
|
31
|
+
...disableProps(['view', 'size']),
|
32
|
+
},
|
33
|
+
};
|
34
|
+
|
35
|
+
export default meta;
|
36
|
+
|
37
|
+
type StoryPropsDefault = ComponentProps<typeof Dropzone>;
|
38
|
+
|
39
|
+
export const Default: StoryObj<StoryPropsDefault> = {
|
40
|
+
args: {
|
41
|
+
iconPlacement: 'top',
|
42
|
+
width: 240,
|
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
|
+
onDropFiles={onDropFiles}
|
54
|
+
onChange={onChange}
|
55
|
+
onChoseFiles={onChoseFiles}
|
56
|
+
/>
|
57
|
+
),
|
58
|
+
};
|
@@ -0,0 +1,80 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.privateTokens = exports.classes = exports.TitleWrapper = exports.Title = exports.StyledRoot = exports.HiddenInput = exports.Description = exports.Content = void 0;
|
7
|
+
var _base = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("@emotion/styled/base"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
|
+
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)."; }
|
10
|
+
var privateTokens = exports.privateTokens = {
|
11
|
+
width: '--plasma_private-dropzone-width'
|
12
|
+
};
|
13
|
+
var classes = exports.classes = {
|
14
|
+
stretch: 'dropzone-stretch',
|
15
|
+
active: 'dropzone-active'
|
16
|
+
};
|
17
|
+
var StyledRoot = exports.StyledRoot = /*#__PURE__*/(0, _base["default"])("div", {
|
18
|
+
target: "e10frn1c5",
|
19
|
+
label: "plasma-new-hope__StyledRoot"
|
20
|
+
})("padding:1.5rem;border-radius:1.25rem;border:1px dashed var(--outline-secondary);background:var(--surface-solid-card);height:8.75rem;width:var(", privateTokens.width, ");position:relative;display:flex;align-items:center;justify-content:center;&.", classes.stretch, "{width:100%;}&:not(.", classes.active, "):hover{border-color:#4a4a4a;}&.", classes.active, "{border-color:var(--outline-accent);&:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:var(--overlay-soft);}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV29DIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS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XdlaWdodDogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1oNC1ib2xkLWZvbnQtd2VpZ2h0KTtcbiAgICBsZXR0ZXItc3BhY2luZzogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1oNC1sZXR0ZXItc3BhY2luZyk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtbGluZS1oZWlnaHQpO1xuYDtcblxuZXhwb3J0IGNvbnN0IERlc2NyaXB0aW9uID0gc3R5bGVkLnNwYW5gXG4gICAgZm9udC1mYW1pbHk6IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LWZhbWlseSk7XG4gICAgZm9udC1zaXplOiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zaXplKTtcbiAgICBmb250LXN0eWxlOiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXdlaWdodCk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1sZXR0ZXItc3BhY2luZyk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1saW5lLWhlaWdodCk7XG5cbiAgICBjb2xvcjogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuYDtcblxuZXhwb3J0IGNvbnN0IEhpZGRlbklucHV0ID0gc3R5bGVkLmlucHV0YFxuICAgIGRpc3BsYXk6IG5vbmU7XG5gO1xuIl19 */"));
|
21
|
+
var Content = exports.Content = /*#__PURE__*/(0, _base["default"])("div", {
|
22
|
+
target: "e10frn1c4",
|
23
|
+
label: "plasma-new-hope__Content"
|
24
|
+
})(process.env.NODE_ENV === "production" ? {
|
25
|
+
name: "1wnfjpe",
|
26
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem"
|
27
|
+
} : {
|
28
|
+
name: "1wnfjpe",
|
29
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem",
|
30
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENpQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgY29uc3QgcHJpdmF0ZVRva2VucyA9IHtcbiAgICB3aWR0aDogJy0tcGxhc21hX3ByaXZhdGUtZHJvcHpvbmUtd2lkdGgnLFxufTtcblxuZXhwb3J0IGNvbnN0IGNsYXNzZXMgPSB7XG4gICAgc3RyZXRjaDogJ2Ryb3B6b25lLXN0cmV0Y2gnLFxuICAgIGFjdGl2ZTogJ2Ryb3B6b25lLWFjdGl2ZScsXG59O1xuXG5leHBvcnQgY29uc3QgU3R5bGVkUm9vdCA9IHN0eWxlZC5kaXZgXG4gICAgcGFkZGluZzogMS41cmVtO1xuICAgIGJvcmRlci1yYWRpdXM6IDEuMjVyZW07XG4gICAgYm9yZGVyOiAxcHggZGFzaGVkIHZhcigtLW91dGxpbmUtc2Vjb25kYXJ5KTtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoLS1zdXJmYWNlLXNvbGlkLWNhcmQpO1xuICAgIGhlaWdodDogOC43NXJlbTtcbiAgICB3aWR0aD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lwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGluZS1oZWlnaHQpO1xuXG4gICAgY29sb3I6IHZhcigtLXRleHQtc2Vjb25kYXJ5KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */",
|
31
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
32
|
+
});
|
33
|
+
var TitleWrapper = exports.TitleWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
34
|
+
target: "e10frn1c3",
|
35
|
+
label: "plasma-new-hope__TitleWrapper"
|
36
|
+
})(process.env.NODE_ENV === "production" ? {
|
37
|
+
name: "1dlv5c4",
|
38
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;color:var(--text-primary)"
|
39
|
+
} : {
|
40
|
+
name: "1dlv5c4",
|
41
|
+
styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;color:var(--text-primary)",
|
42
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0RzQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi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HZhcigtLXBsYXNtYS10eXBvLWJvZHktaDQtbGV0dGVyLXNwYWNpbmcpO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LWg0LWxpbmUtaGVpZ2h0KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEZXNjcmlwdGlvbiA9IHN0eWxlZC5zcGFuYFxuICAgIGZvbnQtZmFtaWx5OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1mYW1pbHkpO1xuICAgIGZvbnQtc2l6ZTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgZm9udC1zdHlsZTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc3R5bGUpO1xuICAgIGZvbnQtd2VpZ2h0OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC13ZWlnaHQpO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGluZS1oZWlnaHQpO1xuXG4gICAgY29sb3I6IHZhcigtLXRleHQtc2Vjb25kYXJ5KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */",
|
43
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
44
|
+
});
|
45
|
+
var Title = exports.Title = /*#__PURE__*/(0, _base["default"])("span", {
|
46
|
+
target: "e10frn1c2",
|
47
|
+
label: "plasma-new-hope__Title"
|
48
|
+
})(process.env.NODE_ENV === "production" ? {
|
49
|
+
name: "3to6zk",
|
50
|
+
styles: "font-family:var(--plasma-typo-body-h4-font-family);font-size:var(--plasma-typo-body-h4-font-size);font-style:var(--plasma-typo-body-h4-font-style);font-weight:var(--plasma-typo-body-h4-bold-font-weight);letter-spacing:var(--plasma-typo-body-h4-letter-spacing);line-height:var(--plasma-typo-body-h4-line-height)"
|
51
|
+
} : {
|
52
|
+
name: "3to6zk",
|
53
|
+
styles: "font-family:var(--plasma-typo-body-h4-font-family);font-size:var(--plasma-typo-body-h4-font-size);font-style:var(--plasma-typo-body-h4-font-style);font-weight:var(--plasma-typo-body-h4-bold-font-weight);letter-spacing:var(--plasma-typo-body-h4-letter-spacing);line-height:var(--plasma-typo-body-h4-line-height)",
|
54
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0RnQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgY29uc3QgcHJpdmF0ZVRva2VucyA9IHtcbiAgICB3aWR0aDogJy0tcGxhc21hX3ByaXZhdGUtZHJvcHpvbmUtd2lkdGgnLFxufTtcblxuZXhwb3J0IGNvbnN0IGNsYXNzZXMgPSB7XG4gICAgc3RyZXRjaDogJ2Ryb3B6b25lLXN0cmV0Y2gnLFxuICAgIGFjdGl2ZTogJ2Ryb3B6b25lLWFjdGl2ZScsXG59O1xuXG5leHBvcnQgY29uc3QgU3R5bGVkUm9vdCA9IHN0eWxlZC5kaXZgXG4gICAgcGFkZGlu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keS1zLWZvbnQtc2l6ZSk7XG4gICAgZm9udC1zdHlsZTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc3R5bGUpO1xuICAgIGZvbnQtd2VpZ2h0OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC13ZWlnaHQpO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGV0dGVyLXNwYWNpbmcpO1xuICAgIGxpbmUtaGVpZ2h0OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtbGluZS1oZWlnaHQpO1xuXG4gICAgY29sb3I6IHZhcigtLXRleHQtc2Vjb25kYXJ5KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */",
|
55
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
56
|
+
});
|
57
|
+
var Description = exports.Description = /*#__PURE__*/(0, _base["default"])("span", {
|
58
|
+
target: "e10frn1c1",
|
59
|
+
label: "plasma-new-hope__Description"
|
60
|
+
})(process.env.NODE_ENV === "production" ? {
|
61
|
+
name: "14vojwa",
|
62
|
+
styles: "font-family:var(--plasma-typo-body-s-font-family);font-size:var(--plasma-typo-body-s-font-size);font-style:var(--plasma-typo-body-s-font-style);font-weight:var(--plasma-typo-body-s-font-weight);letter-spacing:var(--plasma-typo-body-s-letter-spacing);line-height:var(--plasma-typo-body-s-line-height);color:var(--text-secondary)"
|
63
|
+
} : {
|
64
|
+
name: "14vojwa",
|
65
|
+
styles: "font-family:var(--plasma-typo-body-s-font-family);font-size:var(--plasma-typo-body-s-font-size);font-style:var(--plasma-typo-body-s-font-style);font-weight:var(--plasma-typo-body-s-font-weight);letter-spacing:var(--plasma-typo-body-s-letter-spacing);line-height:var(--plasma-typo-body-s-line-height);color:var(--text-secondary)",
|
66
|
+
map: "/*# sour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gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5cbiAgICAmLiR7Y2xhc3Nlcy5zdHJldGNofSB7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgIH1cblxuICAgICY6bm90KC4ke2NsYXNzZXMuYWN0aXZlfSk6aG92ZXIge1xuICAgICAgICBib3JkZXItY29sb3I6ICM0YTRhNGE7XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMuYWN0aXZlfSB7XG4gICAgICAgIGJvcmRlci1jb2xvcjogdmFyKC0tb3V0bGluZS1hY2NlbnQpO1xuXG4gICAgICAgICY6YWZ0ZXIge1xuICAgICAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICB0b3A6IDA7XG4gICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS1vdmVybGF5LXNvZnQpO1xuICAgICAgICB9XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGdhcDogMC43NXJlbTtcbmA7XG5cbmV4cG9ydCBjb25zdCBUaXRsZVdyYXBwZXIgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGdhcDogMC41cmVtO1xuICA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WlnaHQpO1xuXG4gICAgY29sb3I6IHZhcigtLXRleHQtc2Vjb25kYXJ5KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcbiJdfQ== */",
|
67
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
68
|
+
});
|
69
|
+
var HiddenInput = exports.HiddenInput = /*#__PURE__*/(0, _base["default"])("input", {
|
70
|
+
target: "e10frn1c0",
|
71
|
+
label: "plasma-new-hope__HiddenInput"
|
72
|
+
})(process.env.NODE_ENV === "production" ? {
|
73
|
+
name: "eivff4",
|
74
|
+
styles: "display:none"
|
75
|
+
} : {
|
76
|
+
name: "eivff4",
|
77
|
+
styles: "display:none",
|
78
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3BsYXNtYV9iMmMvY29tcG9uZW50cy9Ecm9wem9uZS9Ecm9wem9uZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUZ1QyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9wbGFzbWFfYjJjL2NvbXBvbmVudHMvRHJvcHpvbmUvRHJvcHpvbmUuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgY29uc3QgcHJpdmF0ZVRva2VucyA9IHtcbiAgICB3aWR0aDogJy0tcGxhc21hX3ByaXZhdGUtZHJvcHpvbmUtd2lkdGgnLFxufTtcblxuZXhwb3J0IGNvbnN0IGNsYXNzZXMgPSB7XG4gICAgc3RyZXRjaDogJ2Ryb3B6b25lLXN0cmV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