@salutejs/plasma-new-hope 0.183.1-canary.1535.11680166109.0 → 0.184.0-canary.1534.11679645702.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
  2. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  3. package/emotion/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
  4. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  5. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  6. package/emotion/cjs/components/_Icon/index.js +8 -1
  7. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +220 -0
  8. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  9. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +80 -0
  10. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  11. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +5 -0
  12. package/emotion/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
  13. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  14. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  15. package/emotion/es/components/_Icon/index.js +2 -1
  16. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +212 -0
  17. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  18. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +73 -0
  19. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  20. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +1 -0
  21. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
  22. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  23. package/package.json +2 -2
  24. package/styled-components/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
  25. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
  26. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
  27. package/styled-components/cjs/components/_Icon/index.js +8 -1
  28. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +220 -0
  29. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  30. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +33 -0
  31. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  32. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +5 -0
  33. package/styled-components/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +0 -1
  34. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
  35. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
  36. package/styled-components/es/components/_Icon/index.js +2 -1
  37. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +212 -0
  38. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
  39. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +26 -0
  40. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
  41. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.types.js +1 -0
  42. package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -1
  43. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +4 -0
  44. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +1 -0
  45. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +4 -0
  46. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +1 -0
  47. package/types/components/_Icon/index.d.ts +1 -0
  48. package/types/components/_Icon/index.d.ts.map +1 -1
  49. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +22 -0
  50. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +1 -0
  51. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts +15 -0
  52. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts.map +1 -0
  53. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts +80 -0
  54. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrowBarDown.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icon.assets/ArrowBarDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAS5C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../IconRoot';
3
+ export declare const IconArrowBarDown: React.FC<IconProps>;
4
+ //# sourceMappingURL=IconArrowBarDown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconArrowBarDown.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icons/IconArrowBarDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,SAAS,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAEhD,CAAC"}
@@ -25,4 +25,5 @@ export { IconBlankPdfOutline } from './Icons/IconBlankPdfOutline';
25
25
  export { IconBlankTxtOutline } from './Icons/IconBlankTxtOutline';
26
26
  export { IconBlankXlsOutline } from './Icons/IconBlankXlsOutline';
27
27
  export { IconInfoCircleOutline } from './Icons/IconInfoCircleOutline';
28
+ export { IconArrowBarDown } from './Icons/IconArrowBarDown';
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_Icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CA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AAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { FileProcessHandler } from './Dropzone.types';
3
+ export declare const Dropzone: React.ForwardRefExoticComponent<{
4
+ acceptedFileFormats?: string[] | undefined;
5
+ multiple?: boolean | undefined;
6
+ title?: string | undefined;
7
+ description?: React.ReactNode;
8
+ icon?: React.ReactNode;
9
+ iconPlacement?: "left" | "top" | undefined;
10
+ size?: string | undefined;
11
+ view?: string | undefined;
12
+ disabled?: boolean | undefined;
13
+ stretch?: boolean | undefined;
14
+ onDragEnter?: (() => void) | undefined;
15
+ onDragLeave?: (() => void) | undefined;
16
+ onDragOver?: (() => void) | undefined;
17
+ onDrop?: (() => void) | undefined;
18
+ validator?: ((files: File[]) => import("./Dropzone.types").ValidatorReturnType) | undefined;
19
+ onDropFiles?: FileProcessHandler | undefined;
20
+ onChoseFiles?: FileProcessHandler | undefined;
21
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "accept"> & React.RefAttributes<HTMLInputElement>>;
22
+ //# sourceMappingURL=Dropzone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropzone/Dropzone.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAO5D,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAY/E,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;wGA8KpB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export declare const privateTokens: {
3
+ width: string;
4
+ };
5
+ export declare const classes: {
6
+ stretch: string;
7
+ active: string;
8
+ };
9
+ export declare const StyledRoot: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
+ export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
11
+ export declare const TitleWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
12
+ export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
13
+ export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
14
+ export declare const HiddenInput: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown>>;
15
+ //# sourceMappingURL=Dropzone.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropzone.styles.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropzone/Dropzone.styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAEF,eAAO,MAAM,UAAU,qKAiCtB,CAAC;AAEF,eAAO,MAAM,OAAO,qKAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAOxB,CAAC;AAEF,eAAO,MAAM,KAAK,uKAOjB,CAAC;AAEF,eAAO,MAAM,WAAW,uKASvB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAEvB,CAAC"}
@@ -0,0 +1,80 @@
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+ export declare type FileArgs = {
3
+ acceptedFiles: File[];
4
+ rejectedFiles?: File[];
5
+ error?: string;
6
+ };
7
+ export declare type ValidatorReturnType = Promise<FileArgs>;
8
+ export declare type FileProcessHandler = (files: FileArgs) => Promise<void> | void;
9
+ export declare type DropzoneProps = {
10
+ /**
11
+ * Массив форматов файлов, которые могут быть прикреплены (см. HTML-атрибут 'accept' для 'input').
12
+ */
13
+ acceptedFileFormats?: string[];
14
+ /**
15
+ * Позовляет выбирать несколько файлов для загрузки
16
+ */
17
+ multiple?: boolean;
18
+ /**
19
+ * Слот для Title
20
+ */
21
+ title?: string;
22
+ /**
23
+ * Слот для описания
24
+ */
25
+ description?: ReactNode;
26
+ /**
27
+ * Слот для иконки
28
+ */
29
+ icon?: ReactNode;
30
+ /**
31
+ * Расположение иконки
32
+ * @default 'left'
33
+ */
34
+ iconPlacement?: 'top' | 'left';
35
+ /**
36
+ * Размер компонента
37
+ */
38
+ size?: string;
39
+ /**
40
+ * Вид компонента
41
+ */
42
+ view?: string;
43
+ /**
44
+ * Компонент неактивен
45
+ */
46
+ disabled?: boolean;
47
+ /**
48
+ * Компонент растягивается на всю доступную ширину
49
+ */
50
+ stretch?: boolean;
51
+ /**
52
+ * Функция, вызываемая в момент вхождения курсора внутрь границ Dropzone
53
+ */
54
+ onDragEnter?: () => void;
55
+ /**
56
+ * Функция, вызываемая в момент выхода курсора из Dropzone
57
+ */
58
+ onDragLeave?: () => void;
59
+ /**
60
+ * Функция, вызываемая при нахождении курсора внутри Dropzone
61
+ */
62
+ onDragOver?: () => void;
63
+ /**
64
+ * Функция, вызываемая при drop файлов
65
+ */
66
+ onDrop?: () => void;
67
+ /**
68
+ * Функция, вызываемая для валидации файлов, перед onDropFiles
69
+ */
70
+ validator?: (files: File[]) => ValidatorReturnType;
71
+ /**
72
+ * Функция, вызываемая при наличии файлов, после onDrop
73
+ */
74
+ onDropFiles?: FileProcessHandler;
75
+ /**
76
+ * Функция, вызываемая при выборе файлов
77
+ */
78
+ onChoseFiles?: FileProcessHandler;
79
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'accept'>;
80
+ //# sourceMappingURL=Dropzone.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropzone.types.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropzone/Dropzone.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,oBAAY,QAAQ,GAAG;IACnB,aAAa,EAAE,IAAI,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACpD,oBAAY,kBAAkB,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE3E,oBAAY,aAAa,GAAG;IACxB;;OAEG;IACH,mBAAmB,CAAC,EAAE,M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