@salutejs/sdds-dfa 0.174.1-canary.1569.11908076676.0 → 0.175.0-canary.1534.11911237435.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,12 +84,15 @@ import type { DistributivePick } from '@salutejs/plasma-new-hope';
84
84
  import { DividerProps } from '@salutejs/plasma-new-hope/styled-components';
85
85
  import { dividerTokens } from '@salutejs/plasma-new-hope/styled-components';
86
86
  import { DoubleSliderProps } from '@salutejs/plasma-new-hope/styled-components';
87
+ import { DragEvent as DragEvent_2 } from 'react';
87
88
  import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components';
88
89
  import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
89
90
  import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
90
91
  import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
91
92
  import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
92
93
  import { DropdownProps } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
94
+ import { dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
95
+ import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
93
96
  import { dsplL } from '@salutejs/sdds-themes/tokens';
94
97
  import { dsplLBold } from '@salutejs/sdds-themes/tokens';
95
98
  import { dsplM } from '@salutejs/sdds-themes/tokens';
@@ -97,6 +100,7 @@ import { dsplMBold } from '@salutejs/sdds-themes/tokens';
97
100
  import { dsplS } from '@salutejs/sdds-themes/tokens';
98
101
  import { dsplSBold } from '@salutejs/sdds-themes/tokens';
99
102
  import type { FC } from 'react';
103
+ import { FileProcessHandler } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
100
104
  import { Filter } from '@salutejs/plasma-new-hope/types/engines/types';
101
105
  import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
102
106
  import { FormTypeString } from '@salutejs/plasma-new-hope/types/types/FormType';
@@ -216,6 +220,7 @@ import { TooltipProps } from '@salutejs/plasma-new-hope/styled-components';
216
220
  import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
217
221
  import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
218
222
  import { useToast } from '@salutejs/plasma-new-hope/styled-components';
223
+ import { ValidatorReturnType } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
219
224
  import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
220
225
  import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
221
226
 
@@ -1200,6 +1205,39 @@ default: PolymorphicClassName;
1200
1205
  };
1201
1206
  }> & DropdownProps & RefAttributes<HTMLDivElement>>;
1202
1207
 
1208
+ // @public (undocumented)
1209
+ export const Dropzone: FunctionComponent<PropsType< {
1210
+ view: {
1211
+ default: PolymorphicClassName;
1212
+ };
1213
+ size: {
1214
+ m: PolymorphicClassName;
1215
+ };
1216
+ disabled: {
1217
+ true: PolymorphicClassName;
1218
+ };
1219
+ }> & {
1220
+ multiple?: boolean | undefined;
1221
+ title?: string | undefined;
1222
+ description?: ReactNode;
1223
+ icon?: ReactNode;
1224
+ iconPlacement?: "top" | "left" | undefined;
1225
+ size?: string | undefined;
1226
+ view?: string | undefined;
1227
+ disabled?: boolean | undefined;
1228
+ stretch?: boolean | undefined;
1229
+ onDragEnter?: ((event: DragEvent_2<HTMLDivElement>) => void) | undefined;
1230
+ onDragLeave?: ((event: DragEvent_2<HTMLDivElement>) => void) | undefined;
1231
+ onDragOver?: ((event: DragEvent_2<HTMLDivElement>) => void) | undefined;
1232
+ validator?: ((files: File[]) => ValidatorReturnType) | undefined;
1233
+ onDrop?: FileProcessHandler | undefined;
1234
+ onChoseFiles?: FileProcessHandler | undefined;
1235
+ } & InputHTMLAttributes_2<HTMLInputElement> & RefAttributes<HTMLInputElement>>;
1236
+
1237
+ export { dropzoneClasses }
1238
+
1239
+ export { dropzoneTokens }
1240
+
1203
1241
  // @public (undocumented)
1204
1242
  export const DsplL: FunctionComponent<PropsType< {
1205
1243
  size: {
@@ -0,0 +1,17 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ };
6
+ variations: {
7
+ view: {
8
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
9
+ };
10
+ size: {
11
+ m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
12
+ };
13
+ disabled: {
14
+ true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
15
+ };
16
+ };
17
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
+ var _templateObject, _templateObject2, _templateObject3;
9
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
10
+ var config = exports.config = {
11
+ defaults: {
12
+ view: 'default',
13
+ size: 'm'
14
+ },
15
+ variations: {
16
+ view: {
17
+ "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-solid-card);\n ", ": var(--surface-solid-card-hover);\n ", ": var(--overlay-soft);\n ", ": 0.063rem dashed var(--outline-solid-secondary);\n ", ": var(--outline-solid-secondary-hover);\n ", ": var(--outline-accent);\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n "])), _styledComponents.dropzoneTokens.background, _styledComponents.dropzoneTokens.backgroundHover, _styledComponents.dropzoneTokens.overlayColorActive, _styledComponents.dropzoneTokens.border, _styledComponents.dropzoneTokens.borderColorHover, _styledComponents.dropzoneTokens.borderColorActive, _styledComponents.dropzoneTokens.titleColor, _styledComponents.dropzoneTokens.descriptionColor)
18
+ },
19
+ size: {
20
+ m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 1.25rem;\n ", ": 0.75rem;\n ", ": 0.375rem;\n ", ": 0.5rem;\n\n ", ": var(--plasma-typo-h4-font-family);\n ", ": var(--plasma-typo-h4-font-size);\n ", ": var(--plasma-typo-h4-font-style);\n ", ": var(--plasma-typo-h4-bold-font-weight);\n ", ": var(--plasma-typo-h4-letter-spacing);\n ", ": var(--plasma-typo-h4-line-height);\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), _styledComponents.dropzoneTokens.padding, _styledComponents.dropzoneTokens.borderRadius, _styledComponents.dropzoneTokens.contentGap, _styledComponents.dropzoneTokens.titleWrapperGap, _styledComponents.dropzoneTokens.titleWrapperGapColumn, _styledComponents.dropzoneTokens.titleFontFamily, _styledComponents.dropzoneTokens.titleFontSize, _styledComponents.dropzoneTokens.titleFontStyle, _styledComponents.dropzoneTokens.titleFontWeight, _styledComponents.dropzoneTokens.titleLetterSpacing, _styledComponents.dropzoneTokens.titleLineHeight, _styledComponents.dropzoneTokens.descriptionFontFamily, _styledComponents.dropzoneTokens.descriptionFontSize, _styledComponents.dropzoneTokens.descriptionFontStyle, _styledComponents.dropzoneTokens.descriptionFontWeight, _styledComponents.dropzoneTokens.descriptionLetterSpacing, _styledComponents.dropzoneTokens.descriptionLineHeight)
21
+ },
22
+ disabled: {
23
+ "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.dropzoneTokens.disabledOpacity)
24
+ }
25
+ }
26
+ };
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ export declare const Dropzone: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
+ view: {
4
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
+ };
6
+ size: {
7
+ m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
+ };
9
+ disabled: {
10
+ true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
+ };
12
+ }> & {
13
+ multiple?: boolean | undefined;
14
+ title?: string | undefined;
15
+ description?: import("react").ReactNode;
16
+ icon?: import("react").ReactNode;
17
+ iconPlacement?: "top" | "left" | undefined;
18
+ size?: string | undefined;
19
+ view?: string | undefined;
20
+ disabled?: boolean | undefined;
21
+ stretch?: boolean | undefined;
22
+ onDragEnter?: ((event: import("react").DragEvent<HTMLDivElement>) => void) | undefined;
23
+ onDragLeave?: ((event: import("react").DragEvent<HTMLDivElement>) => void) | undefined;
24
+ onDragOver?: ((event: import("react").DragEvent<HTMLDivElement>) => void) | undefined;
25
+ validator?: ((files: File[]) => import("@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types").ValidatorReturnType) | undefined;
26
+ onDrop?: import("@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
27
+ onChoseFiles?: import("@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
28
+ } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Dropzone = void 0;
7
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
+ var _Dropzone = /*#__PURE__*/require("./Dropzone.config");
9
+ var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.dropzoneConfig, _Dropzone.config);
10
+ var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
@@ -0,0 +1,2 @@
1
+ export { Dropzone } from './Dropzone';
2
+ export { dropzoneTokens, dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Dropzone", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _Dropzone.Dropzone;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "dropzoneClasses", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _styledComponents.dropzoneClasses;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "dropzoneTokens", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _styledComponents.dropzoneTokens;
22
+ }
23
+ });
24
+ var _Dropzone = /*#__PURE__*/require("./Dropzone");
25
+ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
@@ -26,7 +26,7 @@ var config = exports.config = {
26
26
  s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2rem;\n ", ": 1.25rem;\n ", ": calc(var(", ") / 2);\n ", ": 1rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), _styledComponents.switchTokens.trackWidth, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.trackBorderRadius, _styledComponents.switchTokens.trackHeight, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbBorderRadius, _styledComponents.switchTokens.thumbSize, _styledComponents.switchTokens.thumbOffset, _styledComponents.switchTokens.thumbPressScale)
27
27
  },
28
28
  view: {
29
- "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": 0;\n ", ": 0;\n ", ": var(--on-dark-surface-solid-default);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), _styledComponents.switchTokens.labelColor, _styledComponents.switchTokens.descriptionColor, _styledComponents.switchTokens.trackBackgroundColorOn, _styledComponents.switchTokens.trackBackgroundColorOnHover, _styledComponents.switchTokens.trackBackgroundColorOff, _styledComponents.switchTokens.trackBackgroundColorOffHover, _styledComponents.switchTokens.trackBorderWidthOn, _styledComponents.switchTokens.trackBorderWidthOff, _styledComponents.switchTokens.thumbBackgroundColorOff, _styledComponents.switchTokens.thumbBackgroundColorOn, _styledComponents.switchTokens.thumbBoxShadow)
29
+ "default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": 0rem;\n ", ": var(--on-dark-surface-solid-default);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), _styledComponents.switchTokens.labelColor, _styledComponents.switchTokens.descriptionColor, _styledComponents.switchTokens.trackBackgroundColorOn, _styledComponents.switchTokens.trackBackgroundColorOnHover, _styledComponents.switchTokens.trackBackgroundColorOff, _styledComponents.switchTokens.trackBackgroundColorOffHover, _styledComponents.switchTokens.trackBorderWidth, _styledComponents.switchTokens.thumbBackgroundColorOff, _styledComponents.switchTokens.thumbBackgroundColorOn, _styledComponents.switchTokens.thumbBoxShadow)
30
30
  },
31
31
  disabled: {
32
32
  "true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.switchTokens.disabledOpacity)
@@ -0,0 +1,20 @@
1
+ var _templateObject, _templateObject2, _templateObject3;
2
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
+ import { css, dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
4
+ export var config = {
5
+ defaults: {
6
+ view: 'default',
7
+ size: 'm'
8
+ },
9
+ variations: {
10
+ view: {
11
+ "default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-solid-card);\n ", ": var(--surface-solid-card-hover);\n ", ": var(--overlay-soft);\n ", ": 0.063rem dashed var(--outline-solid-secondary);\n ", ": var(--outline-solid-secondary-hover);\n ", ": var(--outline-accent);\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n "])), dropzoneTokens.background, dropzoneTokens.backgroundHover, dropzoneTokens.overlayColorActive, dropzoneTokens.border, dropzoneTokens.borderColorHover, dropzoneTokens.borderColorActive, dropzoneTokens.titleColor, dropzoneTokens.descriptionColor)
12
+ },
13
+ size: {
14
+ m: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n ", ": 1.25rem;\n ", ": 0.75rem;\n ", ": 0.375rem;\n ", ": 0.5rem;\n\n ", ": var(--plasma-typo-h4-font-family);\n ", ": var(--plasma-typo-h4-font-size);\n ", ": var(--plasma-typo-h4-font-style);\n ", ": var(--plasma-typo-h4-bold-font-weight);\n ", ": var(--plasma-typo-h4-letter-spacing);\n ", ": var(--plasma-typo-h4-line-height);\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), dropzoneTokens.padding, dropzoneTokens.borderRadius, dropzoneTokens.contentGap, dropzoneTokens.titleWrapperGap, dropzoneTokens.titleWrapperGapColumn, dropzoneTokens.titleFontFamily, dropzoneTokens.titleFontSize, dropzoneTokens.titleFontStyle, dropzoneTokens.titleFontWeight, dropzoneTokens.titleLetterSpacing, dropzoneTokens.titleLineHeight, dropzoneTokens.descriptionFontFamily, dropzoneTokens.descriptionFontSize, dropzoneTokens.descriptionFontStyle, dropzoneTokens.descriptionFontWeight, dropzoneTokens.descriptionLetterSpacing, dropzoneTokens.descriptionLineHeight)
15
+ },
16
+ disabled: {
17
+ "true": /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), dropzoneTokens.disabledOpacity)
18
+ }
19
+ }
20
+ };
@@ -0,0 +1,4 @@
1
+ import { dropzoneConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { config } from './Dropzone.config';
3
+ var mergedConfig = /*#__PURE__*/mergeConfig(dropzoneConfig, config);
4
+ export var Dropzone = /*#__PURE__*/component(mergedConfig);
@@ -0,0 +1,2 @@
1
+ export { Dropzone } from './Dropzone';
2
+ export { dropzoneTokens, dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
@@ -20,7 +20,7 @@ export var config = {
20
20
  s: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2rem;\n ", ": 1.25rem;\n ", ": calc(var(", ") / 2);\n ", ": 1rem;\n ", ": calc(var(", ") / 2);\n ", ": 0.125rem;\n ", ": 1.25;\n "])), switchTokens.trackWidth, switchTokens.trackHeight, switchTokens.trackBorderRadius, switchTokens.trackHeight, switchTokens.thumbSize, switchTokens.thumbBorderRadius, switchTokens.thumbSize, switchTokens.thumbOffset, switchTokens.thumbPressScale)
21
21
  },
22
22
  view: {
23
- "default": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": 0;\n ", ": 0;\n ", ": var(--on-dark-surface-solid-default);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.trackBorderWidthOn, switchTokens.trackBorderWidthOff, switchTokens.thumbBackgroundColorOff, switchTokens.thumbBackgroundColorOn, switchTokens.thumbBoxShadow)
23
+ "default": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-accent-hover);\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-transparent-tertiary-hover);\n ", ": 0rem;\n ", ": var(--on-dark-surface-solid-default);\n ", ": var(--on-dark-surface-solid-default);\n ", ": 0 1px 1px rgba(0, 0, 0, 0.11);\n "])), switchTokens.labelColor, switchTokens.descriptionColor, switchTokens.trackBackgroundColorOn, switchTokens.trackBackgroundColorOnHover, switchTokens.trackBackgroundColorOff, switchTokens.trackBackgroundColorOffHover, switchTokens.trackBorderWidth, switchTokens.thumbBackgroundColorOff, switchTokens.thumbBackgroundColorOn, switchTokens.thumbBoxShadow)
24
24
  },
25
25
  disabled: {
26
26
  "true": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), switchTokens.disabledOpacity)
package/es/index.js CHANGED
@@ -52,5 +52,6 @@ export * from './components/EmptyState';
52
52
  export * from './components/Attach';
53
53
  export * from './components/ViewContainer';
54
54
  export * from './components/NumberInput';
55
+ export * from './components/Dropzone';
55
56
  export * from './mixins';
56
57
  export * from './tokens';
package/index.d.ts CHANGED
@@ -52,5 +52,6 @@ export * from './components/EmptyState';
52
52
  export * from './components/Attach';
53
53
  export * from './components/ViewContainer';
54
54
  export * from './components/NumberInput';
55
+ export * from './components/Dropzone';
55
56
  export * from './mixins';
56
57
  export * from './tokens';
package/index.js CHANGED
@@ -597,6 +597,17 @@ Object.keys(_NumberInput).forEach(function (key) {
597
597
  }
598
598
  });
599
599
  });
600
+ var _Dropzone = /*#__PURE__*/require("./components/Dropzone");
601
+ Object.keys(_Dropzone).forEach(function (key) {
602
+ if (key === "default" || key === "__esModule") return;
603
+ if (key in exports && exports[key] === _Dropzone[key]) return;
604
+ Object.defineProperty(exports, key, {
605
+ enumerable: true,
606
+ get: function get() {
607
+ return _Dropzone[key];
608
+ }
609
+ });
610
+ });
600
611
  var _mixins = /*#__PURE__*/require("./mixins");
601
612
  Object.keys(_mixins).forEach(function (key) {
602
613
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-dfa",
3
- "version": "0.174.1-canary.1569.11908076676.0",
3
+ "version": "0.175.0-canary.1534.11911237435.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS DFA web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "directory": "packages/sdds-dfa"
20
20
  },
21
21
  "dependencies": {
22
- "@salutejs/plasma-new-hope": "0.194.1-canary.1569.11908076676.0",
22
+ "@salutejs/plasma-new-hope": "0.195.0-canary.1534.11911237435.0",
23
23
  "@salutejs/sdds-themes": "0.27.0"
24
24
  },
25
25
  "peerDependencies": {
@@ -95,5 +95,5 @@
95
95
  "Anton Vinogradov"
96
96
  ],
97
97
  "sideEffects": false,
98
- "gitHead": "c410afdbf526a38220b90aefd5e992025d260ec7"
98
+ "gitHead": "fdbb8c693a92a41835c42a5062d1f1d2a74e276e"
99
99
  }
@@ -84,12 +84,15 @@ import type { DistributivePick } from '@salutejs/plasma-new-hope';
84
84
  import { DividerProps } from '@salutejs/plasma-new-hope/styled-components';
85
85
  import { dividerTokens } from '@salutejs/plasma-new-hope/styled-components';
86
86
  import { DoubleSliderProps } from '@salutejs/plasma-new-hope/styled-components';
87
+ import { DragEvent as DragEvent_2 } from 'react';
87
88
  import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components';
88
89
  import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
89
90
  import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
90
91
  import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
91
92
  import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
92
93
  import { DropdownProps } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
94
+ import { dropzoneClasses } from '@salutejs/plasma-new-hope/styled-components';
95
+ import { dropzoneTokens } from '@salutejs/plasma-new-hope/styled-components';
93
96
  import { dsplL } from '@salutejs/sdds-themes/tokens';
94
97
  import { dsplLBold } from '@salutejs/sdds-themes/tokens';
95
98
  import { dsplM } from '@salutejs/sdds-themes/tokens';
@@ -97,6 +100,7 @@ import { dsplMBold } from '@salutejs/sdds-themes/tokens';
97
100
  import { dsplS } from '@salutejs/sdds-themes/tokens';
98
101
  import { dsplSBold } from '@salutejs/sdds-themes/tokens';
99
102
  import type { FC } from 'react';
103
+ import { FileProcessHandler } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
100
104
  import { Filter } from '@salutejs/plasma-new-hope/types/engines/types';
101
105
  import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
102
106
  import { FormTypeString } from '@salutejs/plasma-new-hope/types/types/FormType';
@@ -216,6 +220,7 @@ import { TooltipProps } from '@salutejs/plasma-new-hope/styled-components';
216
220
  import { usePopupContext } from '@salutejs/plasma-new-hope/styled-components';
217
221
  import { useSegment } from '@salutejs/plasma-new-hope/styled-components';
218
222
  import { useToast } from '@salutejs/plasma-new-hope/styled-components';
223
+ import { ValidatorReturnType } from '@salutejs/plasma-new-hope/types/components/Dropzone/Dropzone.types';
219
224
  import { Variants } from '@salutejs/plasma-new-hope/types/engines/types';
220
225
  import { ViewContainerCustomProps } from '@salutejs/plasma-new-hope/types/components/ViewContainer/ViewContainer';
221
226
 
@@ -1200,6 +1205,39 @@ default: PolymorphicClassName;
1200
1205
  };
1201
1206
  }> & DropdownProps & RefAttributes<HTMLDivElement>>;
1202
1207
 
1208
+ // @public (undocumented)
1209
+ export const Dropzone: FunctionComponent<PropsType< {
1210
+ view: {
1211
+ default: PolymorphicClassName;
1212
+ };
1213
+ size: {
1214
+ m: PolymorphicClassName;
1215
+ };
1216
+ disabled: {
1217
+ true: PolymorphicClassName;
1218
+ };
1219
+ }> & {
1220
+ multiple?: boolean | undefined;
1221
+ title?: string | undefined;
1222
+ description?: ReactNode;
1223
+ icon?: ReactNode;
1224
+ iconPlacement?: "top" | "left" | undefined;
1225
+ size?: string | undefined;
1226
+ view?: string | undefined;
1227
+ disabled?: boolean | undefined;
1228
+ stretch?: boolean | undefined;
1229
+ onDragEnter?: ((event: DragEvent_2<HTMLDivElement>) => void) | undefined;
1230
+ onDragLeave?: ((event: DragEvent_2<HTMLDivElement>) => void) | undefined;
1231
+ onDragOver?: ((event: DragEvent_2<HTMLDivElement>) => void) | undefined;
1232
+ validator?: ((files: File[]) => ValidatorReturnType) | undefined;
1233
+ onDrop?: FileProcessHandler | undefined;
1234
+ onChoseFiles?: FileProcessHandler | undefined;
1235
+ } & InputHTMLAttributes_2<HTMLInputElement> & RefAttributes<HTMLInputElement>>;
1236
+
1237
+ export { dropzoneClasses }
1238
+
1239
+ export { dropzoneTokens }
1240
+
1203
1241
  // @public (undocumented)
1204
1242
  export const DsplL: FunctionComponent<PropsType< {
1205
1243
  size: {