@salutejs/plasma-new-hope 0.147.0-canary.1437.10892194926.0 → 0.147.0-canary.1440.10898537587.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Cell/Cell.js +2 -3
- package/cjs/components/Cell/Cell.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +30 -6
- package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.js +15 -3
- package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/cjs/components/DatePicker/hooks/useDatePicker.js +41 -5
- package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -1
- package/cjs/components/DatePicker/utils/dateHelper.js +10 -1
- package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -1
- package/cjs/index.css +0 -14
- package/cjs/index.js +0 -5
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Cell/Cell.js +2 -3
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +30 -6
- package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +15 -3
- package/emotion/cjs/components/DatePicker/hooks/useDatePicker.js +41 -5
- package/emotion/cjs/components/DatePicker/utils/dateHelper.js +10 -1
- package/emotion/cjs/index.js +0 -11
- package/emotion/es/components/Cell/Cell.js +2 -3
- package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +30 -6
- package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +15 -3
- package/emotion/es/components/DatePicker/hooks/useDatePicker.js +41 -5
- package/emotion/es/components/DatePicker/utils/dateHelper.js +10 -1
- package/emotion/es/index.js +1 -2
- package/es/components/Cell/Cell.js +2 -3
- package/es/components/Cell/Cell.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.js +30 -6
- package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/es/components/DatePicker/SingleDate/SingleDate.js +15 -3
- package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/es/components/DatePicker/hooks/useDatePicker.js +41 -5
- package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -1
- package/es/components/DatePicker/utils/dateHelper.js +10 -1
- package/es/components/DatePicker/utils/dateHelper.js.map +1 -1
- package/es/index.css +0 -14
- package/es/index.js +0 -2
- package/es/index.js.map +1 -1
- package/package.json +2 -3
- package/styled-components/cjs/components/Cell/Cell.js +2 -3
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +30 -6
- package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +15 -3
- package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +41 -5
- package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +10 -1
- package/styled-components/cjs/index.js +0 -11
- package/styled-components/es/components/Cell/Cell.js +2 -3
- package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +30 -6
- package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +15 -3
- package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +41 -5
- package/styled-components/es/components/DatePicker/utils/dateHelper.js +10 -1
- package/styled-components/es/index.js +1 -2
- package/types/components/Cell/Cell.d.ts.map +1 -1
- package/types/components/Cell/Cell.types.d.ts +1 -1
- package/types/components/Cell/Cell.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts +2 -2
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
- package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -1
- package/types/components/DatePicker/utils/dateHelper.d.ts +10 -1
- package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +2 -2
- package/types/examples/plasma_web/components/Cell/Cell.d.ts +2 -2
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/cjs/components/Attach/Attach.css +0 -45
- package/cjs/components/Attach/Attach.js +0 -174
- package/cjs/components/Attach/Attach.js.map +0 -1
- package/cjs/components/Attach/Attach.styles.js +0 -23
- package/cjs/components/Attach/Attach.styles.js.map +0 -1
- package/cjs/components/Attach/Attach.styles_17fejif.css +0 -3
- package/cjs/components/Attach/Attach.tokens.js +0 -83
- package/cjs/components/Attach/Attach.tokens.js.map +0 -1
- package/cjs/components/Attach/ui/Button/Button.styles.js +0 -23
- package/cjs/components/Attach/ui/Button/Button.styles.js.map +0 -1
- package/cjs/components/Attach/ui/Button/Button.styles_oi6jxf.css +0 -1
- package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -25
- package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +0 -1
- package/cjs/components/Attach/ui/Cell/Cell.styles_1dlvsak.css +0 -1
- package/cjs/components/Attach/ui/iconButton/IconButton.styles.js +0 -23
- package/cjs/components/Attach/ui/iconButton/IconButton.styles.js.map +0 -1
- package/cjs/components/Attach/ui/iconButton/IconButton.styles_14dty7n.css +0 -1
- package/cjs/components/Attach/utils/extractExtension.js +0 -10
- package/cjs/components/Attach/utils/extractExtension.js.map +0 -1
- package/cjs/components/Attach/utils/getFileicon.js +0 -27
- package/cjs/components/Attach/utils/getFileicon.js.map +0 -1
- package/cjs/components/Attach/utils/truncateFilename.js +0 -16
- package/cjs/components/Attach/utils/truncateFilename.js.map +0 -1
- package/cjs/components/Attach/variations/_size/base.js +0 -9
- package/cjs/components/Attach/variations/_size/base.js.map +0 -1
- package/cjs/components/Attach/variations/_size/base_eax0b8.css +0 -1
- package/cjs/components/Attach/variations/_view/base.js +0 -9
- package/cjs/components/Attach/variations/_view/base.js.map +0 -1
- package/cjs/components/Attach/variations/_view/base_1nvsg1b.css +0 -1
- package/emotion/cjs/components/Attach/Attach.js +0 -180
- package/emotion/cjs/components/Attach/Attach.styles.js +0 -36
- package/emotion/cjs/components/Attach/Attach.template-doc.mdx +0 -46
- package/emotion/cjs/components/Attach/Attach.tokens.js +0 -81
- package/emotion/cjs/components/Attach/Attach.types.js +0 -5
- package/emotion/cjs/components/Attach/index.js +0 -25
- package/emotion/cjs/components/Attach/ui/Button/Button.js +0 -12
- package/emotion/cjs/components/Attach/ui/Button/Button.styles.js +0 -17
- package/emotion/cjs/components/Attach/ui/Cell/Cell.js +0 -12
- package/emotion/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -17
- package/emotion/cjs/components/Attach/ui/iconButton/IconButton.js +0 -12
- package/emotion/cjs/components/Attach/ui/iconButton/IconButton.styles.js +0 -17
- package/emotion/cjs/components/Attach/utils/extractExtension.js +0 -9
- package/emotion/cjs/components/Attach/utils/getFileicon.js +0 -26
- package/emotion/cjs/components/Attach/utils/index.js +0 -26
- package/emotion/cjs/components/Attach/utils/truncateFilename.js +0 -15
- package/emotion/cjs/components/Attach/variations/_size/base.js +0 -9
- package/emotion/cjs/components/Attach/variations/_view/base.js +0 -9
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +0 -25
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.js +0 -11
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -61
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.config.js +0 -25
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.js +0 -11
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -61
- package/emotion/es/components/Attach/Attach.js +0 -171
- package/emotion/es/components/Attach/Attach.styles.js +0 -29
- package/emotion/es/components/Attach/Attach.template-doc.mdx +0 -46
- package/emotion/es/components/Attach/Attach.tokens.js +0 -75
- package/emotion/es/components/Attach/Attach.types.js +0 -1
- package/emotion/es/components/Attach/index.js +0 -2
- package/emotion/es/components/Attach/ui/Button/Button.js +0 -1
- package/emotion/es/components/Attach/ui/Button/Button.styles.js +0 -10
- package/emotion/es/components/Attach/ui/Cell/Cell.js +0 -1
- package/emotion/es/components/Attach/ui/Cell/Cell.styles.js +0 -10
- package/emotion/es/components/Attach/ui/iconButton/IconButton.js +0 -1
- package/emotion/es/components/Attach/ui/iconButton/IconButton.styles.js +0 -10
- package/emotion/es/components/Attach/utils/extractExtension.js +0 -3
- package/emotion/es/components/Attach/utils/getFileicon.js +0 -19
- package/emotion/es/components/Attach/utils/index.js +0 -3
- package/emotion/es/components/Attach/utils/truncateFilename.js +0 -9
- package/emotion/es/components/Attach/variations/_size/base.js +0 -3
- package/emotion/es/components/Attach/variations/_view/base.js +0 -3
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.config.js +0 -19
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.js +0 -5
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -61
- package/emotion/es/examples/plasma_web/components/Attach/Attach.config.js +0 -19
- package/emotion/es/examples/plasma_web/components/Attach/Attach.js +0 -5
- package/emotion/es/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -61
- package/es/components/Attach/Attach.css +0 -45
- package/es/components/Attach/Attach.js +0 -169
- package/es/components/Attach/Attach.js.map +0 -1
- package/es/components/Attach/Attach.styles.js +0 -17
- package/es/components/Attach/Attach.styles.js.map +0 -1
- package/es/components/Attach/Attach.styles_17fejif.css +0 -3
- package/es/components/Attach/Attach.tokens.js +0 -78
- package/es/components/Attach/Attach.tokens.js.map +0 -1
- package/es/components/Attach/ui/Button/Button.styles.js +0 -19
- package/es/components/Attach/ui/Button/Button.styles.js.map +0 -1
- package/es/components/Attach/ui/Button/Button.styles_oi6jxf.css +0 -1
- package/es/components/Attach/ui/Cell/Cell.styles.js +0 -21
- package/es/components/Attach/ui/Cell/Cell.styles.js.map +0 -1
- package/es/components/Attach/ui/Cell/Cell.styles_1dlvsak.css +0 -1
- package/es/components/Attach/ui/iconButton/IconButton.styles.js +0 -19
- package/es/components/Attach/ui/iconButton/IconButton.styles.js.map +0 -1
- package/es/components/Attach/ui/iconButton/IconButton.styles_14dty7n.css +0 -1
- package/es/components/Attach/utils/extractExtension.js +0 -6
- package/es/components/Attach/utils/extractExtension.js.map +0 -1
- package/es/components/Attach/utils/getFileicon.js +0 -23
- package/es/components/Attach/utils/getFileicon.js.map +0 -1
- package/es/components/Attach/utils/truncateFilename.js +0 -12
- package/es/components/Attach/utils/truncateFilename.js.map +0 -1
- package/es/components/Attach/variations/_size/base.js +0 -5
- package/es/components/Attach/variations/_size/base.js.map +0 -1
- package/es/components/Attach/variations/_size/base_eax0b8.css +0 -1
- package/es/components/Attach/variations/_view/base.js +0 -5
- package/es/components/Attach/variations/_view/base.js.map +0 -1
- package/es/components/Attach/variations/_view/base_1nvsg1b.css +0 -1
- package/styled-components/cjs/components/Attach/Attach.js +0 -180
- package/styled-components/cjs/components/Attach/Attach.styles.js +0 -18
- package/styled-components/cjs/components/Attach/Attach.template-doc.mdx +0 -46
- package/styled-components/cjs/components/Attach/Attach.tokens.js +0 -81
- package/styled-components/cjs/components/Attach/Attach.types.js +0 -5
- package/styled-components/cjs/components/Attach/index.js +0 -25
- package/styled-components/cjs/components/Attach/ui/Button/Button.js +0 -12
- package/styled-components/cjs/components/Attach/ui/Button/Button.styles.js +0 -16
- package/styled-components/cjs/components/Attach/ui/Cell/Cell.js +0 -12
- package/styled-components/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -16
- package/styled-components/cjs/components/Attach/ui/iconButton/IconButton.js +0 -12
- package/styled-components/cjs/components/Attach/ui/iconButton/IconButton.styles.js +0 -16
- package/styled-components/cjs/components/Attach/utils/extractExtension.js +0 -9
- package/styled-components/cjs/components/Attach/utils/getFileicon.js +0 -26
- package/styled-components/cjs/components/Attach/utils/index.js +0 -26
- package/styled-components/cjs/components/Attach/utils/truncateFilename.js +0 -15
- package/styled-components/cjs/components/Attach/variations/_size/base.js +0 -9
- package/styled-components/cjs/components/Attach/variations/_view/base.js +0 -9
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +0 -25
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -61
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.config.js +0 -25
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.js +0 -11
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -61
- package/styled-components/es/components/Attach/Attach.js +0 -171
- package/styled-components/es/components/Attach/Attach.styles.js +0 -10
- package/styled-components/es/components/Attach/Attach.template-doc.mdx +0 -46
- package/styled-components/es/components/Attach/Attach.tokens.js +0 -75
- package/styled-components/es/components/Attach/Attach.types.js +0 -1
- package/styled-components/es/components/Attach/index.js +0 -2
- package/styled-components/es/components/Attach/ui/Button/Button.js +0 -1
- package/styled-components/es/components/Attach/ui/Button/Button.styles.js +0 -9
- package/styled-components/es/components/Attach/ui/Cell/Cell.js +0 -1
- package/styled-components/es/components/Attach/ui/Cell/Cell.styles.js +0 -9
- package/styled-components/es/components/Attach/ui/iconButton/IconButton.js +0 -1
- package/styled-components/es/components/Attach/ui/iconButton/IconButton.styles.js +0 -9
- package/styled-components/es/components/Attach/utils/extractExtension.js +0 -3
- package/styled-components/es/components/Attach/utils/getFileicon.js +0 -19
- package/styled-components/es/components/Attach/utils/index.js +0 -3
- package/styled-components/es/components/Attach/utils/truncateFilename.js +0 -9
- package/styled-components/es/components/Attach/variations/_size/base.js +0 -3
- package/styled-components/es/components/Attach/variations/_view/base.js +0 -3
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.config.js +0 -19
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -61
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.config.js +0 -19
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.js +0 -5
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -61
- package/types/components/Attach/Attach.d.ts +0 -23
- package/types/components/Attach/Attach.d.ts.map +0 -1
- package/types/components/Attach/Attach.styles.d.ts +0 -5
- package/types/components/Attach/Attach.styles.d.ts.map +0 -1
- package/types/components/Attach/Attach.tokens.d.ts +0 -73
- package/types/components/Attach/Attach.tokens.d.ts.map +0 -1
- package/types/components/Attach/Attach.types.d.ts +0 -33
- package/types/components/Attach/Attach.types.d.ts.map +0 -1
- package/types/components/Attach/index.d.ts +0 -4
- package/types/components/Attach/index.d.ts.map +0 -1
- package/types/components/Attach/ui/Button/Button.d.ts +0 -2
- package/types/components/Attach/ui/Button/Button.d.ts.map +0 -1
- package/types/components/Attach/ui/Button/Button.styles.d.ts +0 -45
- package/types/components/Attach/ui/Button/Button.styles.d.ts.map +0 -1
- package/types/components/Attach/ui/Cell/Cell.d.ts +0 -2
- package/types/components/Attach/ui/Cell/Cell.d.ts.map +0 -1
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts +0 -33
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts.map +0 -1
- package/types/components/Attach/ui/iconButton/IconButton.d.ts +0 -2
- package/types/components/Attach/ui/iconButton/IconButton.d.ts.map +0 -1
- package/types/components/Attach/ui/iconButton/IconButton.styles.d.ts +0 -45
- package/types/components/Attach/ui/iconButton/IconButton.styles.d.ts.map +0 -1
- package/types/components/Attach/utils/extractExtension.d.ts +0 -2
- package/types/components/Attach/utils/extractExtension.d.ts.map +0 -1
- package/types/components/Attach/utils/getFileicon.d.ts +0 -3
- package/types/components/Attach/utils/getFileicon.d.ts.map +0 -1
- package/types/components/Attach/utils/index.d.ts +0 -4
- package/types/components/Attach/utils/index.d.ts.map +0 -1
- package/types/components/Attach/utils/truncateFilename.d.ts +0 -2
- package/types/components/Attach/utils/truncateFilename.d.ts.map +0 -1
- package/types/components/Attach/variations/_size/base.d.ts +0 -2
- package/types/components/Attach/variations/_size/base.d.ts.map +0 -1
- package/types/components/Attach/variations/_view/base.d.ts +0 -2
- package/types/components/Attach/variations/_view/base.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts +0 -18
- package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +0 -13
- package/types/examples/plasma_b2c/components/Attach/Attach.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Attach/Attach.config.d.ts +0 -18
- package/types/examples/plasma_web/components/Attach/Attach.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Attach/Attach.d.ts +0 -13
- package/types/examples/plasma_web/components/Attach/Attach.d.ts.map +0 -1
@@ -1,180 +0,0 @@
|
|
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.attachRoot = exports.attachConfig = void 0;
|
8
|
-
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
-
var _plasmaIcons = /*#__PURE__*/require("@salutejs/plasma-icons");
|
10
|
-
var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
|
11
|
-
var _utils = /*#__PURE__*/require("../../utils");
|
12
|
-
var _base = /*#__PURE__*/require("./variations/_size/base");
|
13
|
-
var _base2 = /*#__PURE__*/require("./variations/_view/base");
|
14
|
-
var _Attach = /*#__PURE__*/require("./Attach.styles");
|
15
|
-
var _Button = /*#__PURE__*/require("./ui/Button/Button");
|
16
|
-
var _Cell = /*#__PURE__*/require("./ui/Cell/Cell");
|
17
|
-
var _IconButton = /*#__PURE__*/require("./ui/iconButton/IconButton");
|
18
|
-
var _utils2 = /*#__PURE__*/require("./utils");
|
19
|
-
var _Attach2 = /*#__PURE__*/require("./Attach.tokens");
|
20
|
-
var _IconCloseCircleOutli;
|
21
|
-
var _excluded = ["flow", "text", "hasAttachment", "acceptedFileFormats", "size", "view", "className"];
|
22
|
-
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); }
|
23
|
-
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; }
|
24
|
-
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); }
|
25
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
26
|
-
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."); }
|
27
|
-
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); }
|
28
|
-
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; }
|
29
|
-
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; } }
|
30
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
31
|
-
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; }
|
32
|
-
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; }
|
33
|
-
var attachRoot = exports.attachRoot = function attachRoot(Root) {
|
34
|
-
return /*#__PURE__*/(0, _react.forwardRef)(function (props, outerRef) {
|
35
|
-
var _props$flow = props.flow,
|
36
|
-
flow = _props$flow === void 0 ? 'auto' : _props$flow,
|
37
|
-
_props$text = props.text,
|
38
|
-
text = _props$text === void 0 ? 'Загрузить файл' : _props$text,
|
39
|
-
_props$hasAttachment = props.hasAttachment,
|
40
|
-
hasAttachment = _props$hasAttachment === void 0 ? true : _props$hasAttachment,
|
41
|
-
acceptedFileFormats = props.acceptedFileFormats,
|
42
|
-
size = props.size,
|
43
|
-
view = props.view,
|
44
|
-
className = props.className,
|
45
|
-
rest = _objectWithoutProperties(props, _excluded);
|
46
|
-
var inputRef = (0, _react.useRef)(null);
|
47
|
-
var inputHelperRef = (0, _react.useRef)(null);
|
48
|
-
var cellRef = (0, _react.useRef)(null);
|
49
|
-
var innerRef = (0, _react.useRef)(null);
|
50
|
-
var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
|
51
|
-
var _useState = (0, _react.useState)(null),
|
52
|
-
_useState2 = _slicedToArray(_useState, 2),
|
53
|
-
containerWidth = _useState2[0],
|
54
|
-
setContainerWidth = _useState2[1];
|
55
|
-
var _useState3 = (0, _react.useState)(null),
|
56
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
57
|
-
origFilename = _useState4[0],
|
58
|
-
setOrigFilename = _useState4[1];
|
59
|
-
var _useState5 = (0, _react.useState)(null),
|
60
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
61
|
-
filename = _useState6[0],
|
62
|
-
setFilename = _useState6[1];
|
63
|
-
var _useState7 = (0, _react.useState)(false),
|
64
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
65
|
-
shouldUpdateFilename = _useState8[0],
|
66
|
-
setShouldUpdateFilename = _useState8[1];
|
67
|
-
var horizontalClass = flow === 'horizontal' ? _Attach2.classes.horizontal : undefined;
|
68
|
-
var verticalClass = flow === 'vertical' ? _Attach2.classes.vertical : undefined;
|
69
|
-
var autoClass = flow === 'auto' ? _Attach2.classes.auto : undefined;
|
70
|
-
var cellHiddenClass = shouldUpdateFilename ? _Attach2.classes.cellHidden : undefined;
|
71
|
-
var accept = acceptedFileFormats === null || acceptedFileFormats === void 0 ? void 0 : acceptedFileFormats.join(',');
|
72
|
-
var extension = filename ? (0, _utils2.extractExtension)(filename) : null;
|
73
|
-
var contentLeft = extension ? (0, _utils2.getFileicon)(extension) : null;
|
74
|
-
var handleClick = function handleClick() {
|
75
|
-
if (!inputRef.current) {
|
76
|
-
return;
|
77
|
-
}
|
78
|
-
inputRef.current.click();
|
79
|
-
};
|
80
|
-
var handleChange = function handleChange() {
|
81
|
-
if (!inputRef.current || !inputRef.current.files) {
|
82
|
-
return;
|
83
|
-
}
|
84
|
-
setOrigFilename(inputRef.current.files[0].name);
|
85
|
-
};
|
86
|
-
var handleClear = function handleClear() {
|
87
|
-
if (!inputRef.current) {
|
88
|
-
return;
|
89
|
-
}
|
90
|
-
inputRef.current.value = '';
|
91
|
-
setOrigFilename(null);
|
92
|
-
};
|
93
|
-
(0, _plasmaCore.useResizeObserver)(innerRef, function (container) {
|
94
|
-
setContainerWidth(container.offsetWidth);
|
95
|
-
});
|
96
|
-
(0, _react.useEffect)(function () {
|
97
|
-
setFilename(origFilename);
|
98
|
-
setShouldUpdateFilename(true);
|
99
|
-
}, [size, view, flow, origFilename, containerWidth]);
|
100
|
-
(0, _react.useEffect)(function () {
|
101
|
-
if (!cellRef.current || !cellRef.current.parentElement || !inputHelperRef.current || !inputHelperRef.current.textContent || !origFilename || !shouldUpdateFilename) {
|
102
|
-
setShouldUpdateFilename(false);
|
103
|
-
return;
|
104
|
-
}
|
105
|
-
var textWidth = inputHelperRef.current.offsetWidth;
|
106
|
-
var _cellRef$current$getB = cellRef.current.getBoundingClientRect(),
|
107
|
-
cellWidth = _cellRef$current$getB.width,
|
108
|
-
cellLeft = _cellRef$current$getB.left;
|
109
|
-
var _cellRef$current$pare = cellRef.current.parentElement.getBoundingClientRect(),
|
110
|
-
parentWidth = _cellRef$current$pare.width,
|
111
|
-
parentLeft = _cellRef$current$pare.left;
|
112
|
-
var cellLeftRightContentWidth = cellWidth - textWidth;
|
113
|
-
var leftDiff = cellLeft - parentLeft;
|
114
|
-
var index = origFilename.length - 1;
|
115
|
-
var currentTextWidth = textWidth;
|
116
|
-
var resultFilename = origFilename;
|
117
|
-
while (currentTextWidth + cellLeftRightContentWidth + leftDiff > parentWidth && index >= 1) {
|
118
|
-
var truncatedFilename = (0, _utils2.truncateFilename)(inputHelperRef.current.textContent, index);
|
119
|
-
inputHelperRef.current.textContent = truncatedFilename;
|
120
|
-
resultFilename = truncatedFilename;
|
121
|
-
currentTextWidth = inputHelperRef.current.offsetWidth;
|
122
|
-
index -= 1;
|
123
|
-
}
|
124
|
-
inputHelperRef.current.textContent = origFilename;
|
125
|
-
setFilename(resultFilename);
|
126
|
-
setShouldUpdateFilename(false);
|
127
|
-
}, [shouldUpdateFilename]);
|
128
|
-
return /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
129
|
-
className: (0, _utils.cx)(horizontalClass, verticalClass, autoClass, className),
|
130
|
-
size: size,
|
131
|
-
view: view,
|
132
|
-
ref: ref
|
133
|
-
}, rest), /*#__PURE__*/_react["default"].createElement(_Attach.StyledHiddenInput, {
|
134
|
-
ref: inputRef,
|
135
|
-
accept: accept,
|
136
|
-
type: "file",
|
137
|
-
id: "attachHiddenInput",
|
138
|
-
name: "attachHiddenInput",
|
139
|
-
onChange: handleChange
|
140
|
-
}), /*#__PURE__*/_react["default"].createElement(_Attach.StyledHiddenInputHelper, {
|
141
|
-
ref: inputHelperRef,
|
142
|
-
id: "attachHiddenInputHelper"
|
143
|
-
}, origFilename), /*#__PURE__*/_react["default"].createElement(_Button.StyledButton, {
|
144
|
-
size: size,
|
145
|
-
view: view,
|
146
|
-
onClick: handleClick,
|
147
|
-
text: text
|
148
|
-
}), hasAttachment && filename && /*#__PURE__*/_react["default"].createElement(_Cell.StyledCell, {
|
149
|
-
className: cellHiddenClass,
|
150
|
-
ref: cellRef,
|
151
|
-
size: size,
|
152
|
-
view: view,
|
153
|
-
title: filename,
|
154
|
-
contentLeft: contentLeft,
|
155
|
-
contentRight: /*#__PURE__*/_react["default"].createElement(_IconButton.StyledIconButton, {
|
156
|
-
onClick: handleClear
|
157
|
-
}, _IconCloseCircleOutli || (_IconCloseCircleOutli = /*#__PURE__*/_react["default"].createElement(_plasmaIcons.IconCloseCircleOutline, {
|
158
|
-
size: "xs"
|
159
|
-
})))
|
160
|
-
}));
|
161
|
-
});
|
162
|
-
};
|
163
|
-
var attachConfig = exports.attachConfig = {
|
164
|
-
name: 'Attach',
|
165
|
-
tag: 'div',
|
166
|
-
layout: attachRoot,
|
167
|
-
base: _Attach.base,
|
168
|
-
variations: {
|
169
|
-
view: {
|
170
|
-
css: _base2.base
|
171
|
-
},
|
172
|
-
size: {
|
173
|
-
css: _base.base
|
174
|
-
}
|
175
|
-
},
|
176
|
-
defaults: {
|
177
|
-
view: 'default',
|
178
|
-
size: 'm'
|
179
|
-
}
|
180
|
-
};
|
@@ -1,18 +0,0 @@
|
|
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.base = exports.StyledHiddenInputHelper = exports.StyledHiddenInput = void 0;
|
8
|
-
var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
|
9
|
-
var _Attach = /*#__PURE__*/require("./Attach.tokens");
|
10
|
-
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); }
|
11
|
-
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; }
|
12
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["position:relative;display:flex;width:fit-content;"]);
|
13
|
-
var StyledHiddenInput = exports.StyledHiddenInput = /*#__PURE__*/_styledComponents["default"].input.withConfig({
|
14
|
-
componentId: "plasma-new-hope__sc-15vkopl-0"
|
15
|
-
})(["display:none;"]);
|
16
|
-
var StyledHiddenInputHelper = exports.StyledHiddenInputHelper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
17
|
-
componentId: "plasma-new-hope__sc-15vkopl-1"
|
18
|
-
})(["position:absolute;visibility:hidden;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Attach.tokens.cellTitleFontFamily, _Attach.tokens.cellTitleFontSize, _Attach.tokens.cellTitleFontStyle, _Attach.tokens.cellTitleFontWeight, _Attach.tokens.cellTitleLetterSpacing, _Attach.tokens.cellTitleLineHeight);
|
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
id: attach
|
3
|
-
title: Attach
|
4
|
-
---
|
5
|
-
|
6
|
-
import { PropsTable, Description } from '@site/src/components';
|
7
|
-
|
8
|
-
# Attach
|
9
|
-
<Description name="Attach" />
|
10
|
-
<PropsTable name="Attach" />
|
11
|
-
|
12
|
-
## Примеры
|
13
|
-
|
14
|
-
### Расположение элементов
|
15
|
-
C помощью свойства `flow` можно регулировать расположение элементов в зависимости от ширины контейнера.
|
16
|
-
|
17
|
-
```tsx live
|
18
|
-
import React from 'react';
|
19
|
-
import { Attach } from '@salutejs/plasma-web';
|
20
|
-
|
21
|
-
export function App() {
|
22
|
-
return (
|
23
|
-
<div style=\{{ display: "flex", flexDirection: "column", gap: "100px"}}>
|
24
|
-
<Attach style=\{{ width: "400px" }} flow="auto" />
|
25
|
-
<Attach style=\{{ width: "400px" }} flow="horizontal" />
|
26
|
-
<Attach style=\{{ width: "400px" }} flow="vertical" />
|
27
|
-
</div>
|
28
|
-
);
|
29
|
-
}
|
30
|
-
```
|
31
|
-
|
32
|
-
### Фильтр форматов файлов
|
33
|
-
Свойство `acceptedFileFormats` устанавливает доступные форматы файлов.
|
34
|
-
|
35
|
-
```tsx live
|
36
|
-
import React from 'react';
|
37
|
-
import { Attach } from '@salutejs/plasma-web';
|
38
|
-
|
39
|
-
export function App() {
|
40
|
-
return (
|
41
|
-
<div>
|
42
|
-
<Attach acceptedFileFormats={['.pdf', '.doc']} />
|
43
|
-
</div>
|
44
|
-
);
|
45
|
-
}
|
46
|
-
```
|
@@ -1,81 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.tokens = exports.classes = void 0;
|
7
|
-
var classes = exports.classes = {
|
8
|
-
auto: 'auto',
|
9
|
-
horizontal: 'horizontal',
|
10
|
-
vertical: 'vertical',
|
11
|
-
cellHidden: 'cell-hidden'
|
12
|
-
};
|
13
|
-
var tokens = exports.tokens = {
|
14
|
-
horizontalGap: '--plasma-attach-horizontal-gap',
|
15
|
-
verticalGap: '--plasma-attach-vertical-gap',
|
16
|
-
// Токены для Button
|
17
|
-
buttonColor: '--plasma-attach-button-color',
|
18
|
-
buttonBackgroundColor: '--plasma-attach-button-background-color',
|
19
|
-
buttonColorHover: '--plasma-attach-button-color-hover',
|
20
|
-
buttonBackgroundColorHover: '--plasma-attach-button-background-color-hover',
|
21
|
-
buttonColorActive: '--plasma-attach-button-color-active',
|
22
|
-
buttonBackgroundColorActive: '--plasma-attach-button-background-color-active',
|
23
|
-
buttonHeight: '--plasma-attach-button-height',
|
24
|
-
buttonWidth: '--plasma-attach-button-width',
|
25
|
-
buttonPadding: '--plasma-attach-button-padding',
|
26
|
-
buttonRadius: '--plasma-attach-button-radius',
|
27
|
-
buttonFontFamily: '--plasma-attach-button-font-family',
|
28
|
-
buttonFontSize: '--plasma-attach-button-font-size',
|
29
|
-
buttonFontStyle: '--plasma-attach-button-font-style',
|
30
|
-
buttonFontWeight: '--plasma-attach-button-font-weight',
|
31
|
-
buttonLetterSpacing: '--plasma-attach-button-letter-spacing',
|
32
|
-
buttonLineHeight: '--plasma-attach-button-line-height',
|
33
|
-
// Токены для Cell
|
34
|
-
cellColor: '--plasma-attach-cell-color',
|
35
|
-
cellLabelColor: '--plasma-attach-cell-label-color',
|
36
|
-
cellTitleColor: '--plasma-attach-cell-title-color',
|
37
|
-
cellSubtitleColor: '--plasma-attach-cell-subtitle-color',
|
38
|
-
cellBackgroundColor: '--plasma-attach-cell-background-color',
|
39
|
-
cellWidth: '--plasma-attach-cell-width',
|
40
|
-
cellPadding: '--plasma-attach-cell-padding',
|
41
|
-
cellPaddingLeftContent: '--plasma-attach-cell-padding-left-content',
|
42
|
-
cellPaddingContent: '--plasma-attach-cell-padding-content',
|
43
|
-
cellPaddingRightContent: '--plasma-attach-cell-padding-right-content',
|
44
|
-
cellTextboxGap: '--plasma-attach-cell-textbox-gap',
|
45
|
-
cellGap: '--plasma-attach-cell-gap',
|
46
|
-
cellLabelFontFamily: '--plasma-attach-cell-label-font-family',
|
47
|
-
cellLabelFontSize: '--plasma-attach-cell-label-font-size',
|
48
|
-
cellLabelFontStyle: '--plasma-attach-cell-label-font-style',
|
49
|
-
cellLabelFontWeight: '--plasma-attach-cell-label-font-weight',
|
50
|
-
cellLabelLetterSpacing: '--plasma-attach-cell-label-letter-spacing',
|
51
|
-
cellLabelLineHeight: '--plasma-attach-cell-label-line-height',
|
52
|
-
cellTitleFontFamily: '--plasma-attach-cell-title-font-family',
|
53
|
-
cellTitleFontSize: '--plasma-attach-cell-title-font-size',
|
54
|
-
cellTitleFontStyle: '--plasma-attach-cell-title-font-style',
|
55
|
-
cellTitleFontWeight: '--plasma-attach-cell-title-font-weight',
|
56
|
-
cellTitleLetterSpacing: '--plasma-attach-cell-title-letter-spacing',
|
57
|
-
cellTitleLineHeight: '--plasma-attach-cell-title-line-height',
|
58
|
-
cellSubtitleFontFamily: '--plasma-attach-cell-subtitle-font-family',
|
59
|
-
cellSubtitleFontSize: '--plasma-attach-cell-subtitle-font-size',
|
60
|
-
cellSubtitleFontStyle: '--plasma-attach-cell-subtitle-font-style',
|
61
|
-
cellSubtitleFontWeight: '--plasma-attach-cell-subtitle-font-weight',
|
62
|
-
cellSubtitleLetterSpacing: '--plasma-attach-cell-subtitle-letter-spacing',
|
63
|
-
cellSubtitleLineHeight: '--plasma-attach-cell-subtitle-line-height',
|
64
|
-
// Токены для IconButton
|
65
|
-
iconButtonColor: '--plasma-attach-icon-button-color',
|
66
|
-
iconButtonBackgroundColor: '--plasma-attach-icon-button-background-color',
|
67
|
-
iconButtonColorHover: '--plasma-attach-icon-button-color-hover',
|
68
|
-
iconButtonBackgroundColorHover: '--plasma-attach-icon-button-background-color-hover',
|
69
|
-
iconButtonColorActive: '--plasma-attach-icon-button-color-active',
|
70
|
-
iconButtonBackgroundColorActive: '--plasma-attach-icon-button-background-color-active',
|
71
|
-
iconButtonHeight: '--plasma-attach-icon-button-height',
|
72
|
-
iconButtonWidth: '--plasma-attach-icon-button-width',
|
73
|
-
iconButtonPadding: '--plasma-attach-icon-button-padding',
|
74
|
-
iconButtonRadius: '--plasma-attach-icon-button-radius',
|
75
|
-
iconButtonFontFamily: '--plasma-attach-icon-button-font-family',
|
76
|
-
iconButtonFontSize: '--plasma-attach-icon-button-font-size',
|
77
|
-
iconButtonFontStyle: '--plasma-attach-icon-button-font-style',
|
78
|
-
iconButtonFontWeight: '--plasma-attach-icon-button-font-weight',
|
79
|
-
iconButtonLetterSpacing: '--plasma-attach-icon-button-letter-spacing',
|
80
|
-
iconButtonLineHeight: '--plasma-attach-icon-button-line-height'
|
81
|
-
};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "attachConfig", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _Attach.attachConfig;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "attachRoot", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function get() {
|
15
|
-
return _Attach.attachRoot;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
Object.defineProperty(exports, "attachTokens", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _Attach2.tokens;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
var _Attach = /*#__PURE__*/require("./Attach");
|
25
|
-
var _Attach2 = /*#__PURE__*/require("./Attach.tokens");
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "StyledButton", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _Button.StyledButton;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
var _Button = /*#__PURE__*/require("./Button.styles");
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.StyledButton = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
|
8
|
-
var _engines = /*#__PURE__*/require("../../../../engines");
|
9
|
-
var _Button = /*#__PURE__*/require("../../../Button");
|
10
|
-
var _Attach = /*#__PURE__*/require("../../Attach.tokens");
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
12
|
-
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Button.buttonConfig);
|
13
|
-
var Button = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
14
|
-
var StyledButton = exports.StyledButton = /*#__PURE__*/(0, _styledComponents["default"])(Button).withConfig({
|
15
|
-
componentId: "plasma-new-hope__sc-elwbwo-0"
|
16
|
-
})(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _Button.buttonTokens.buttonColor, _Attach.tokens.buttonColor, _Button.buttonTokens.buttonBackgroundColor, _Attach.tokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Attach.tokens.buttonColorHover, _Button.buttonTokens.buttonBackgroundColorHover, _Attach.tokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonColorActive, _Attach.tokens.buttonColorActive, _Button.buttonTokens.buttonBackgroundColorActive, _Attach.tokens.buttonBackgroundColorActive, _Button.buttonTokens.buttonHeight, _Attach.tokens.buttonHeight, _Button.buttonTokens.buttonWidth, _Attach.tokens.buttonWidth, _Button.buttonTokens.buttonPadding, _Attach.tokens.buttonPadding, _Button.buttonTokens.buttonRadius, _Attach.tokens.buttonRadius, _Button.buttonTokens.buttonFontFamily, _Attach.tokens.buttonFontFamily, _Button.buttonTokens.buttonFontSize, _Attach.tokens.buttonFontSize, _Button.buttonTokens.buttonFontStyle, _Attach.tokens.buttonFontStyle, _Button.buttonTokens.buttonFontWeight, _Attach.tokens.buttonFontWeight, _Button.buttonTokens.buttonLetterSpacing, _Attach.tokens.buttonLetterSpacing, _Button.buttonTokens.buttonLineHeight, _Attach.tokens.buttonLineHeight);
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "StyledCell", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _Cell.StyledCell;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
var _Cell = /*#__PURE__*/require("./Cell.styles");
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.StyledCell = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
|
8
|
-
var _engines = /*#__PURE__*/require("../../../../engines");
|
9
|
-
var _Cell = /*#__PURE__*/require("../../../Cell");
|
10
|
-
var _Attach = /*#__PURE__*/require("../../Attach.tokens");
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
12
|
-
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Cell.cellConfig);
|
13
|
-
var Cell = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
14
|
-
var StyledCell = exports.StyledCell = /*#__PURE__*/(0, _styledComponents["default"])(Cell).withConfig({
|
15
|
-
componentId: "plasma-new-hope__sc-15m5uhg-0"
|
16
|
-
})(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");width:fit-content !important;&.", "{visibility:hidden;}"], _Cell.cellTokens.cellLabelColor, _Attach.tokens.cellLabelColor, _Cell.cellTokens.cellTitleColor, _Attach.tokens.cellTitleColor, _Cell.cellTokens.cellSubtitleColor, _Attach.tokens.cellSubtitleColor, _Cell.cellTokens.cellBackgroundColor, _Attach.tokens.cellBackgroundColor, _Cell.cellTokens.cellWidth, _Attach.tokens.cellWidth, _Cell.cellTokens.cellPadding, _Attach.tokens.cellPadding, _Cell.cellTokens.cellPaddingLeftContent, _Attach.tokens.cellPaddingLeftContent, _Cell.cellTokens.cellPaddingContent, _Attach.tokens.cellPaddingContent, _Cell.cellTokens.cellPaddingRightContent, _Attach.tokens.cellPaddingRightContent, _Cell.cellTokens.cellTextboxGap, _Attach.tokens.cellTextboxGap, _Cell.cellTokens.cellGap, _Attach.tokens.cellGap, _Cell.cellTokens.cellLabelFontFamily, _Attach.tokens.cellLabelFontFamily, _Cell.cellTokens.cellLabelFontSize, _Attach.tokens.cellLabelFontSize, _Cell.cellTokens.cellLabelFontStyle, _Attach.tokens.cellLabelFontStyle, _Cell.cellTokens.cellLabelFontWeight, _Attach.tokens.cellLabelFontWeight, _Cell.cellTokens.cellLabelLetterSpacing, _Attach.tokens.cellLabelLetterSpacing, _Cell.cellTokens.cellLabelLineHeight, _Attach.tokens.cellLabelLineHeight, _Cell.cellTokens.cellTitleFontFamily, _Attach.tokens.cellTitleFontFamily, _Cell.cellTokens.cellTitleFontSize, _Attach.tokens.cellTitleFontSize, _Cell.cellTokens.cellTitleFontStyle, _Attach.tokens.cellTitleFontStyle, _Cell.cellTokens.cellTitleFontWeight, _Attach.tokens.cellTitleFontWeight, _Cell.cellTokens.cellTitleLetterSpacing, _Attach.tokens.cellTitleLetterSpacing, _Cell.cellTokens.cellTitleLineHeight, _Attach.tokens.cellTitleLineHeight, _Cell.cellTokens.cellSubtitleFontFamily, _Attach.tokens.cellSubtitleFontFamily, _Cell.cellTokens.cellSubtitleFontSize, _Attach.tokens.cellSubtitleFontSize, _Cell.cellTokens.cellSubtitleFontStyle, _Attach.tokens.cellSubtitleFontStyle, _Cell.cellTokens.cellSubtitleFontWeight, _Attach.tokens.cellSubtitleFontWeight, _Cell.cellTokens.cellSubtitleLetterSpacing, _Attach.tokens.cellSubtitleLetterSpacing, _Cell.cellTokens.cellSubtitleLineHeight, _Attach.tokens.cellSubtitleLineHeight, _Attach.classes.cellHidden);
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "StyledIconButton", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _IconButton.StyledIconButton;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
var _IconButton = /*#__PURE__*/require("./IconButton.styles");
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.StyledIconButton = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
|
8
|
-
var _engines = /*#__PURE__*/require("../../../../engines");
|
9
|
-
var _IconButton = /*#__PURE__*/require("../../../IconButton");
|
10
|
-
var _Attach = /*#__PURE__*/require("../../Attach.tokens");
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
12
|
-
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_IconButton.iconButtonConfig);
|
13
|
-
var IconButton = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
14
|
-
var StyledIconButton = exports.StyledIconButton = /*#__PURE__*/(0, _styledComponents["default"])(IconButton).withConfig({
|
15
|
-
componentId: "plasma-new-hope__sc-7q1s1x-0"
|
16
|
-
})(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _IconButton.iconButtonTokens.iconButtonColor, _Attach.tokens.iconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _Attach.tokens.iconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _Attach.tokens.iconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _Attach.tokens.iconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _Attach.tokens.iconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive, _Attach.tokens.iconButtonBackgroundColorActive, _IconButton.iconButtonTokens.iconButtonHeight, _Attach.tokens.iconButtonHeight, _IconButton.iconButtonTokens.iconButtonWidth, _Attach.tokens.iconButtonWidth, _IconButton.iconButtonTokens.iconButtonPadding, _Attach.tokens.iconButtonPadding, _IconButton.iconButtonTokens.iconButtonRadius, _Attach.tokens.iconButtonRadius, _IconButton.iconButtonTokens.iconButtonFontFamily, _Attach.tokens.iconButtonFontFamily, _IconButton.iconButtonTokens.iconButtonFontSize, _Attach.tokens.iconButtonFontSize, _IconButton.iconButtonTokens.iconButtonFontStyle, _Attach.tokens.iconButtonFontStyle, _IconButton.iconButtonTokens.iconButtonFontWeight, _Attach.tokens.iconButtonFontWeight, _IconButton.iconButtonTokens.iconButtonLetterSpacing, _Attach.tokens.iconButtonLetterSpacing, _IconButton.iconButtonTokens.iconButtonLineHeight, _Attach.tokens.iconButtonLineHeight);
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.getFileicon = void 0;
|
7
|
-
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
-
var _plasmaIcons = /*#__PURE__*/require("@salutejs/plasma-icons");
|
9
|
-
var _IconBlankPdfOutline, _IconBlankDocOutline, _IconBlankXlsOutline, _IconBlankTxtOutline, _IconBlankCsvOutline, _IconBlankOutline;
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
-
var getFileicon = exports.getFileicon = function getFileicon(extension) {
|
12
|
-
switch (extension) {
|
13
|
-
case 'pdf':
|
14
|
-
return _IconBlankPdfOutline || (_IconBlankPdfOutline = /*#__PURE__*/_react["default"].createElement(_plasmaIcons.IconBlankPdfOutline, null));
|
15
|
-
case 'doc':
|
16
|
-
return _IconBlankDocOutline || (_IconBlankDocOutline = /*#__PURE__*/_react["default"].createElement(_plasmaIcons.IconBlankDocOutline, null));
|
17
|
-
case 'xls':
|
18
|
-
return _IconBlankXlsOutline || (_IconBlankXlsOutline = /*#__PURE__*/_react["default"].createElement(_plasmaIcons.IconBlankXlsOutline, null));
|
19
|
-
case 'txt':
|
20
|
-
return _IconBlankTxtOutline || (_IconBlankTxtOutline = /*#__PURE__*/_react["default"].createElement(_plasmaIcons.IconBlankTxtOutline, null));
|
21
|
-
case 'csv':
|
22
|
-
return _IconBlankCsvOutline || (_IconBlankCsvOutline = /*#__PURE__*/_react["default"].createElement(_plasmaIcons.IconBlankCsvOutline, null));
|
23
|
-
default:
|
24
|
-
return _IconBlankOutline || (_IconBlankOutline = /*#__PURE__*/_react["default"].createElement(_plasmaIcons.IconBlankOutline, null));
|
25
|
-
}
|
26
|
-
};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "extractExtension", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _extractExtension.extractExtension;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "getFileicon", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function get() {
|
15
|
-
return _getFileicon.getFileicon;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
Object.defineProperty(exports, "truncateFilename", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _truncateFilename.truncateFilename;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
var _extractExtension = /*#__PURE__*/require("./extractExtension");
|
25
|
-
var _getFileicon = /*#__PURE__*/require("./getFileicon");
|
26
|
-
var _truncateFilename = /*#__PURE__*/require("./truncateFilename");
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.truncateFilename = void 0;
|
7
|
-
var truncateFilename = exports.truncateFilename = function truncateFilename(filename, startTruncationIndex) {
|
8
|
-
var separator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '...';
|
9
|
-
var strings = filename.split('.');
|
10
|
-
var extension = strings.length > 1 ? strings[strings.length - 1] : null;
|
11
|
-
var left = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];
|
12
|
-
var lastFilenameLetter = left[left.length - 1];
|
13
|
-
var truncatedFilename = "".concat(left.substring(0, startTruncationIndex)).concat(separator).concat(lastFilenameLetter);
|
14
|
-
return extension ? "".concat(truncatedFilename, ".").concat(extension) : truncatedFilename;
|
15
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
-
var _Attach = /*#__PURE__*/require("../../Attach.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{column-gap:var(", ");}&.", "{row-gap:var(", ");}&.", "{row-gap:var(", ");column-gap:var(", ");}}"], _Attach.classes.horizontal, _Attach.tokens.horizontalGap, _Attach.classes.vertical, _Attach.tokens.verticalGap, _Attach.classes.auto, _Attach.tokens.verticalGap, _Attach.tokens.horizontalGap);
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
-
var _Attach = /*#__PURE__*/require("../../Attach.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{flex-direction:row;}&.", "{flex-direction:column;}&.", "{flex-wrap:wrap;}"], _Attach.classes.horizontal, _Attach.classes.vertical, _Attach.classes.auto);
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.config = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
-
var _Attach = /*#__PURE__*/require("../../../../components/Attach");
|
9
|
-
var config = exports.config = {
|
10
|
-
defaults: {
|
11
|
-
view: 'default',
|
12
|
-
size: 'm'
|
13
|
-
},
|
14
|
-
variations: {
|
15
|
-
view: {
|
16
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive)
|
17
|
-
},
|
18
|
-
size: {
|
19
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;", ":0.5rem;", ":3.5rem;", ":12.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":3.5rem;", ":3.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight),
|
20
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.25rem;", ":0.5rem;", ":3rem;", ":11.25rem;", ":1.25rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":2rem;", ":2rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight),
|
21
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":1rem;", ":0.375rem;", ":2.5rem;", ":11.25rem;", ":1rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2.5rem;", ":2.5rem;", ":1rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight),
|
22
|
-
xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.75rem;", ":0.25rem;", ":2rem;", ":10rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2rem;", ":2rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight)
|
23
|
-
}
|
24
|
-
}
|
25
|
-
};
|