@salutejs/plasma-new-hope 0.194.0-canary.1568.11891833298.0 → 0.195.0-canary.1534.11893340297.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +333 -0
- package/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/cjs/components/Dropzone/Dropzone.css +15 -0
- package/cjs/components/Dropzone/Dropzone.js +252 -0
- package/cjs/components/Dropzone/Dropzone.js.map +1 -0
- package/cjs/components/Dropzone/Dropzone.styles.js +47 -0
- package/cjs/components/Dropzone/Dropzone.styles.js.map +1 -0
- package/cjs/components/Dropzone/Dropzone.styles_1fo7dbq.css +7 -0
- package/cjs/components/Dropzone/Dropzone.tokens.js +46 -0
- package/cjs/components/Dropzone/Dropzone.tokens.js.map +1 -0
- package/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
- package/cjs/components/Dropzone/variations/_disabled/base.js.map +1 -0
- package/cjs/components/Dropzone/variations/_disabled/base_3qwygi.css +1 -0
- package/cjs/components/Dropzone/variations/_size/base.js +9 -0
- package/cjs/components/Dropzone/variations/_size/base.js.map +1 -0
- package/cjs/components/Dropzone/variations/_size/base_1cl61bm.css +1 -0
- package/cjs/components/Dropzone/variations/_view/base.js +9 -0
- package/cjs/components/Dropzone/variations/_view/base.js.map +1 -0
- package/cjs/components/Dropzone/variations/_view/base_cipwu9.css +1 -0
- package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +24 -0
- package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconArrowBarDown.js +23 -0
- package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +1 -0
- package/cjs/index.css +14 -0
- package/cjs/index.js +6 -0
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Dropzone/Dropzone.js +271 -0
- package/emotion/cjs/components/Dropzone/Dropzone.styles.js +67 -0
- package/emotion/cjs/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/emotion/cjs/components/Dropzone/Dropzone.tokens.js +43 -0
- package/emotion/cjs/components/Dropzone/Dropzone.types.js +5 -0
- package/emotion/cjs/components/Dropzone/index.js +31 -0
- package/emotion/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
- package/emotion/cjs/components/Dropzone/variations/_disabled/tokens.json +4 -0
- package/emotion/cjs/components/Dropzone/variations/_size/base.js +10 -0
- package/emotion/cjs/components/Dropzone/variations/_size/tokens.json +19 -0
- package/emotion/cjs/components/Dropzone/variations/_view/base.js +10 -0
- package/emotion/cjs/components/Dropzone/variations/_view/tokens.json +9 -0
- package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
- package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
- package/emotion/cjs/components/_Icon/index.js +8 -1
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +25 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +11 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +25 -0
- package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +11 -0
- package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/emotion/cjs/index.js +11 -0
- package/emotion/es/components/Dropzone/Dropzone.js +263 -0
- package/emotion/es/components/Dropzone/Dropzone.styles.js +60 -0
- package/emotion/es/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/emotion/es/components/Dropzone/Dropzone.tokens.js +37 -0
- package/emotion/es/components/Dropzone/Dropzone.types.js +1 -0
- package/emotion/es/components/Dropzone/index.js +2 -0
- package/emotion/es/components/Dropzone/variations/_disabled/base.js +3 -0
- package/emotion/es/components/Dropzone/variations/_disabled/tokens.json +4 -0
- package/emotion/es/components/Dropzone/variations/_size/base.js +4 -0
- package/emotion/es/components/Dropzone/variations/_size/tokens.json +19 -0
- package/emotion/es/components/Dropzone/variations/_view/base.js +4 -0
- package/emotion/es/components/Dropzone/variations/_view/tokens.json +9 -0
- package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
- package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
- package/emotion/es/components/_Icon/index.js +2 -1
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +19 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +5 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +19 -0
- package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.js +5 -0
- package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/emotion/es/index.js +2 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +332 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/es/components/Dropzone/Dropzone.css +15 -0
- package/es/components/Dropzone/Dropzone.js +247 -0
- package/es/components/Dropzone/Dropzone.js.map +1 -0
- package/es/components/Dropzone/Dropzone.styles.js +37 -0
- package/es/components/Dropzone/Dropzone.styles.js.map +1 -0
- package/es/components/Dropzone/Dropzone.styles_1fo7dbq.css +7 -0
- package/es/components/Dropzone/Dropzone.tokens.js +40 -0
- package/es/components/Dropzone/Dropzone.tokens.js.map +1 -0
- package/es/components/Dropzone/variations/_disabled/base.js +5 -0
- package/es/components/Dropzone/variations/_disabled/base.js.map +1 -0
- package/es/components/Dropzone/variations/_disabled/base_3qwygi.css +1 -0
- package/es/components/Dropzone/variations/_size/base.js +5 -0
- package/es/components/Dropzone/variations/_size/base.js.map +1 -0
- package/es/components/Dropzone/variations/_size/base_1cl61bm.css +1 -0
- package/es/components/Dropzone/variations/_view/base.js +5 -0
- package/es/components/Dropzone/variations/_view/base.js.map +1 -0
- package/es/components/Dropzone/variations/_view/base_cipwu9.css +1 -0
- package/es/components/_Icon/Icon.assets/ArrowBarDown.js +20 -0
- package/es/components/_Icon/Icon.assets/ArrowBarDown.js.map +1 -0
- package/es/components/_Icon/Icons/IconArrowBarDown.js +19 -0
- package/es/components/_Icon/Icons/IconArrowBarDown.js.map +1 -0
- package/es/index.css +14 -0
- package/es/index.js +2 -0
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Dropzone/Dropzone.js +271 -0
- package/styled-components/cjs/components/Dropzone/Dropzone.styles.js +29 -0
- package/styled-components/cjs/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/styled-components/cjs/components/Dropzone/Dropzone.tokens.js +43 -0
- package/styled-components/cjs/components/Dropzone/Dropzone.types.js +5 -0
- package/styled-components/cjs/components/Dropzone/index.js +31 -0
- package/styled-components/cjs/components/Dropzone/variations/_disabled/base.js +9 -0
- package/styled-components/cjs/components/Dropzone/variations/_disabled/tokens.json +4 -0
- package/styled-components/cjs/components/Dropzone/variations/_size/base.js +10 -0
- package/styled-components/cjs/components/Dropzone/variations/_size/tokens.json +19 -0
- package/styled-components/cjs/components/Dropzone/variations/_view/base.js +10 -0
- package/styled-components/cjs/components/Dropzone/variations/_view/tokens.json +9 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
- package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
- package/styled-components/cjs/components/_Icon/index.js +8 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +25 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +11 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +25 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +11 -0
- package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/styled-components/cjs/index.js +11 -0
- package/styled-components/es/components/Dropzone/Dropzone.js +263 -0
- package/styled-components/es/components/Dropzone/Dropzone.styles.js +21 -0
- package/styled-components/es/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/styled-components/es/components/Dropzone/Dropzone.tokens.js +37 -0
- package/styled-components/es/components/Dropzone/Dropzone.types.js +1 -0
- package/styled-components/es/components/Dropzone/index.js +2 -0
- package/styled-components/es/components/Dropzone/variations/_disabled/base.js +3 -0
- package/styled-components/es/components/Dropzone/variations/_disabled/tokens.json +4 -0
- package/styled-components/es/components/Dropzone/variations/_size/base.js +4 -0
- package/styled-components/es/components/Dropzone/variations/_size/tokens.json +19 -0
- package/styled-components/es/components/Dropzone/variations/_view/base.js +4 -0
- package/styled-components/es/components/Dropzone/variations/_view/tokens.json +9 -0
- package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
- package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
- package/styled-components/es/components/_Icon/index.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +19 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +5 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +19 -0
- package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.js +5 -0
- package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +57 -0
- package/styled-components/es/index.js +2 -1
- package/types/components/Dropzone/Dropzone.d.ts +59 -0
- package/types/components/Dropzone/Dropzone.d.ts.map +1 -0
- package/types/components/Dropzone/Dropzone.styles.d.ts +9 -0
- package/types/components/Dropzone/Dropzone.styles.d.ts.map +1 -0
- package/types/components/Dropzone/Dropzone.tokens.d.ts +38 -0
- package/types/components/Dropzone/Dropzone.tokens.d.ts.map +1 -0
- package/types/components/Dropzone/Dropzone.types.d.ts +77 -0
- package/types/components/Dropzone/Dropzone.types.d.ts.map +1 -0
- package/types/components/Dropzone/index.d.ts +3 -0
- package/types/components/Dropzone/index.d.ts.map +1 -0
- package/types/components/Dropzone/variations/_disabled/base.d.ts +2 -0
- package/types/components/Dropzone/variations/_disabled/base.d.ts.map +1 -0
- package/types/components/Dropzone/variations/_size/base.d.ts +2 -0
- package/types/components/Dropzone/variations/_size/base.d.ts.map +1 -0
- package/types/components/Dropzone/variations/_view/base.d.ts +2 -0
- package/types/components/Dropzone/variations/_view/base.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +4 -0
- package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +1 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts +18 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +29 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts +18 -0
- package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts +29 -0
- package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/emotion/cjs/components/Card/Card.api.mdx +0 -184
- package/emotion/es/components/Card/Card.api.mdx +0 -184
- package/styled-components/cjs/components/Card/Card.api.mdx +0 -184
- package/styled-components/es/components/Card/Card.api.mdx +0 -184
@@ -0,0 +1,57 @@
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
2
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
import { action } from '@storybook/addon-actions';
|
4
|
+
import { disableProps } from '@salutejs/plasma-sb-utils';
|
5
|
+
|
6
|
+
import { WithTheme } from '../../../_helpers';
|
7
|
+
|
8
|
+
import { Dropzone } from './Dropzone';
|
9
|
+
|
10
|
+
const onDragEnter = action('onDragEnter');
|
11
|
+
const onDragLeave = action('onDragLeave');
|
12
|
+
const onDrop = action('onDrop');
|
13
|
+
const onChange = action('onChange');
|
14
|
+
const onChoseFiles = action('onChoseFiles');
|
15
|
+
|
16
|
+
const iconPlacements = ['top', 'left'];
|
17
|
+
|
18
|
+
const meta: Meta<typeof Dropzone> = {
|
19
|
+
title: 'plasma_b2c/Dropzone',
|
20
|
+
component: Dropzone,
|
21
|
+
decorators: [WithTheme],
|
22
|
+
argTypes: {
|
23
|
+
iconPlacement: {
|
24
|
+
options: iconPlacements,
|
25
|
+
control: {
|
26
|
+
type: 'inline-radio',
|
27
|
+
},
|
28
|
+
defaultValue: 'top',
|
29
|
+
},
|
30
|
+
...disableProps(['view', 'size']),
|
31
|
+
},
|
32
|
+
};
|
33
|
+
|
34
|
+
export default meta;
|
35
|
+
|
36
|
+
type StoryPropsDefault = ComponentProps<typeof Dropzone>;
|
37
|
+
|
38
|
+
export const Default: StoryObj<StoryPropsDefault> = {
|
39
|
+
args: {
|
40
|
+
iconPlacement: 'top',
|
41
|
+
width: 400,
|
42
|
+
height: 280,
|
43
|
+
disabled: false,
|
44
|
+
title: 'Click to upload',
|
45
|
+
description: 'or drag and drop files here',
|
46
|
+
},
|
47
|
+
render: (args) => (
|
48
|
+
<Dropzone
|
49
|
+
{...args}
|
50
|
+
onDragEnter={onDragEnter}
|
51
|
+
onDragLeave={onDragLeave}
|
52
|
+
onDrop={onDrop}
|
53
|
+
onChange={onChange}
|
54
|
+
onChoseFiles={onChoseFiles}
|
55
|
+
/>
|
56
|
+
),
|
57
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { css } from 'styled-components';
|
2
|
+
import { dropzoneTokens } from '../../../../components/Dropzone';
|
3
|
+
export var config = {
|
4
|
+
defaults: {
|
5
|
+
view: 'default',
|
6
|
+
size: 'm'
|
7
|
+
},
|
8
|
+
variations: {
|
9
|
+
view: {
|
10
|
+
"default": /*#__PURE__*/css(["", ":var(--surface-solid-card);", ":var(--overlay-soft);", ":0.063rem dashed var(--outline-secondary);", ":var(--outline-secondary);", ":var(--outline-accent);", ":var(--text-primary);", ":var(--text-secondary);"], dropzoneTokens.background, dropzoneTokens.overlayColorActive, dropzoneTokens.border, dropzoneTokens.borderColorHover, dropzoneTokens.borderColorActive, dropzoneTokens.titleColor, dropzoneTokens.descriptionColor)
|
11
|
+
},
|
12
|
+
size: {
|
13
|
+
m: /*#__PURE__*/css(["", ":1.5rem;", ":1.25rem;", ":0.75rem;", ":0.375rem;", ":0.5rem;", ":var(--plasma-typo-body-h4-font-family);", ":var(--plasma-typo-body-h4-font-size);", ":var(--plasma-typo-body-h4-font-style);", ":var(--plasma-typo-body-h4-bold-font-weight);", ":var(--plasma-typo-body-h4-letter-spacing);", ":var(--plasma-typo-body-h4-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);"], 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)
|
14
|
+
},
|
15
|
+
disabled: {
|
16
|
+
"true": /*#__PURE__*/css(["", ":0.4;"], dropzoneTokens.disabledOpacity)
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { dropzoneConfig } from '../../../../components/Dropzone';
|
2
|
+
import { component, mergeConfig } from '../../../../engines';
|
3
|
+
import { config } from './Dropzone.config';
|
4
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(dropzoneConfig, config);
|
5
|
+
export var Dropzone = /*#__PURE__*/component(mergedConfig);
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
2
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
import { action } from '@storybook/addon-actions';
|
4
|
+
import { disableProps } from '@salutejs/plasma-sb-utils';
|
5
|
+
|
6
|
+
import { WithTheme } from '../../../_helpers';
|
7
|
+
|
8
|
+
import { Dropzone } from './Dropzone';
|
9
|
+
|
10
|
+
const onDragEnter = action('onDragEnter');
|
11
|
+
const onDragLeave = action('onDragLeave');
|
12
|
+
const onDrop = action('onDrop');
|
13
|
+
const onChange = action('onChange');
|
14
|
+
const onChoseFiles = action('onChoseFiles');
|
15
|
+
|
16
|
+
const iconPlacements = ['top', 'left'];
|
17
|
+
|
18
|
+
const meta: Meta<typeof Dropzone> = {
|
19
|
+
title: 'plasma_web/Dropzone',
|
20
|
+
component: Dropzone,
|
21
|
+
decorators: [WithTheme],
|
22
|
+
argTypes: {
|
23
|
+
iconPlacement: {
|
24
|
+
options: iconPlacements,
|
25
|
+
control: {
|
26
|
+
type: 'inline-radio',
|
27
|
+
},
|
28
|
+
defaultValue: 'top',
|
29
|
+
},
|
30
|
+
...disableProps(['view', 'size']),
|
31
|
+
},
|
32
|
+
};
|
33
|
+
|
34
|
+
export default meta;
|
35
|
+
|
36
|
+
type StoryPropsDefault = ComponentProps<typeof Dropzone>;
|
37
|
+
|
38
|
+
export const Default: StoryObj<StoryPropsDefault> = {
|
39
|
+
args: {
|
40
|
+
iconPlacement: 'top',
|
41
|
+
width: 400,
|
42
|
+
height: 280,
|
43
|
+
disabled: false,
|
44
|
+
title: 'Click to upload',
|
45
|
+
description: 'or drag and drop files here',
|
46
|
+
},
|
47
|
+
render: (args) => (
|
48
|
+
<Dropzone
|
49
|
+
{...args}
|
50
|
+
onDragEnter={onDragEnter}
|
51
|
+
onDragLeave={onDragLeave}
|
52
|
+
onDrop={onDrop}
|
53
|
+
onChange={onChange}
|
54
|
+
onChoseFiles={onChoseFiles}
|
55
|
+
/>
|
56
|
+
),
|
57
|
+
};
|
@@ -63,4 +63,5 @@ export * from './components/Editable';
|
|
63
63
|
export * from './components/Mask';
|
64
64
|
export * from './components/Attach';
|
65
65
|
export * from './components/ViewContainer';
|
66
|
-
export * from './components/NumberInput';
|
66
|
+
export * from './components/NumberInput';
|
67
|
+
export * from './components/Dropzone';
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { RootProps } from '../../engines';
|
3
|
+
import type { DropzoneRootProps, FileProcessHandler } from './Dropzone.types';
|
4
|
+
export declare const dropzoneRoot: (Root: RootProps<HTMLDivElement, DropzoneRootProps>) => React.ForwardRefExoticComponent<{
|
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?: ((event: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
15
|
+
onDragLeave?: ((event: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
16
|
+
onDragOver?: ((event: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
17
|
+
validator?: ((files: File[]) => import("./Dropzone.types").ValidatorReturnType) | undefined;
|
18
|
+
onDrop?: FileProcessHandler | undefined;
|
19
|
+
onChoseFiles?: FileProcessHandler | undefined;
|
20
|
+
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
21
|
+
export declare const dropzoneConfig: {
|
22
|
+
name: string;
|
23
|
+
tag: string;
|
24
|
+
layout: (Root: RootProps<HTMLDivElement, DropzoneRootProps>) => React.ForwardRefExoticComponent<{
|
25
|
+
multiple?: boolean | undefined;
|
26
|
+
title?: string | undefined;
|
27
|
+
description?: React.ReactNode;
|
28
|
+
icon?: React.ReactNode;
|
29
|
+
iconPlacement?: "left" | "top" | undefined;
|
30
|
+
size?: string | undefined;
|
31
|
+
view?: string | undefined;
|
32
|
+
disabled?: boolean | undefined;
|
33
|
+
stretch?: boolean | undefined;
|
34
|
+
onDragEnter?: ((event: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
35
|
+
onDragLeave?: ((event: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
36
|
+
onDragOver?: ((event: React.DragEvent<HTMLDivElement>) => void) | undefined;
|
37
|
+
validator?: ((files: File[]) => import("./Dropzone.types").ValidatorReturnType) | undefined;
|
38
|
+
onDrop?: FileProcessHandler | undefined;
|
39
|
+
onChoseFiles?: FileProcessHandler | undefined;
|
40
|
+
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
41
|
+
base: import("@linaria/core").LinariaClassName;
|
42
|
+
variations: {
|
43
|
+
view: {
|
44
|
+
css: import("@linaria/core").LinariaClassName;
|
45
|
+
};
|
46
|
+
size: {
|
47
|
+
css: import("@linaria/core").LinariaClassName;
|
48
|
+
};
|
49
|
+
disabled: {
|
50
|
+
css: import("@linaria/core").LinariaClassName;
|
51
|
+
attrs: boolean;
|
52
|
+
};
|
53
|
+
};
|
54
|
+
defaults: {
|
55
|
+
view: string;
|
56
|
+
size: string;
|
57
|
+
};
|
58
|
+
};
|
59
|
+
//# sourceMappingURL=Dropzone.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/Dropzone.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAM5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAiB,iBAAiB,EAAY,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAevG,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;wFAyM1E,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA3MQ,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgO9E,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const base: import("@linaria/core").LinariaClassName;
|
3
|
+
export declare const DropzoneHandlerOverlay: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
4
|
+
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
5
|
+
export declare const TitleWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
6
|
+
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
7
|
+
export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
8
|
+
export declare const HiddenInput: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown>>;
|
9
|
+
//# sourceMappingURL=Dropzone.styles.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/Dropzone.styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,IAAI,0CAMhB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAOlC,CAAC;AAEF,eAAO,MAAM,OAAO,qKAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAAe,CAAC;AAEzC,eAAO,MAAM,KAAK,uKAAgB,CAAC;AAEnC,eAAO,MAAM,WAAW,uKAAgB,CAAC;AAEzC,eAAO,MAAM,WAAW,8KAEvB,CAAC"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export declare const classes: {
|
2
|
+
stretch: string;
|
3
|
+
active: string;
|
4
|
+
verticalContentPlacing: string;
|
5
|
+
disabled: string;
|
6
|
+
};
|
7
|
+
export declare const privateTokens: {
|
8
|
+
width: string;
|
9
|
+
height: string;
|
10
|
+
};
|
11
|
+
export declare const tokens: {
|
12
|
+
background: string;
|
13
|
+
overlayColorActive: string;
|
14
|
+
border: string;
|
15
|
+
borderColorHover: string;
|
16
|
+
borderColorActive: string;
|
17
|
+
titleColor: string;
|
18
|
+
descriptionColor: string;
|
19
|
+
padding: string;
|
20
|
+
borderRadius: string;
|
21
|
+
contentGap: string;
|
22
|
+
titleWrapperGap: string;
|
23
|
+
titleWrapperGapColumn: string;
|
24
|
+
titleFontFamily: string;
|
25
|
+
titleFontSize: string;
|
26
|
+
titleFontStyle: string;
|
27
|
+
titleFontWeight: string;
|
28
|
+
titleLetterSpacing: string;
|
29
|
+
titleLineHeight: string;
|
30
|
+
descriptionFontFamily: string;
|
31
|
+
descriptionFontSize: string;
|
32
|
+
descriptionFontStyle: string;
|
33
|
+
descriptionFontWeight: string;
|
34
|
+
descriptionLetterSpacing: string;
|
35
|
+
descriptionLineHeight: string;
|
36
|
+
disabledOpacity: string;
|
37
|
+
};
|
38
|
+
//# sourceMappingURL=Dropzone.tokens.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/Dropzone.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BlB,CAAC"}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import type { InputHTMLAttributes, DragEvent, ReactNode, HTMLAttributes } 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
|
+
* Позовляет выбирать несколько файлов для загрузки
|
12
|
+
*/
|
13
|
+
multiple?: boolean;
|
14
|
+
/**
|
15
|
+
* Слот для Title
|
16
|
+
*/
|
17
|
+
title?: string;
|
18
|
+
/**
|
19
|
+
* Слот для описания
|
20
|
+
*/
|
21
|
+
description?: ReactNode;
|
22
|
+
/**
|
23
|
+
* Слот для иконки
|
24
|
+
*/
|
25
|
+
icon?: ReactNode;
|
26
|
+
/**
|
27
|
+
* Расположение иконки
|
28
|
+
* @default 'left'
|
29
|
+
*/
|
30
|
+
iconPlacement?: 'top' | 'left';
|
31
|
+
/**
|
32
|
+
* Размер компонента
|
33
|
+
*/
|
34
|
+
size?: string;
|
35
|
+
/**
|
36
|
+
* Вид компонента
|
37
|
+
*/
|
38
|
+
view?: string;
|
39
|
+
/**
|
40
|
+
* Компонент неактивен
|
41
|
+
*/
|
42
|
+
disabled?: boolean;
|
43
|
+
/**
|
44
|
+
* Компонент растягивается на всю доступную ширину
|
45
|
+
*/
|
46
|
+
stretch?: boolean;
|
47
|
+
/**
|
48
|
+
* Функция, вызываемая в момент вхождения (один раз) курсора внутрь границ Dropzone
|
49
|
+
*/
|
50
|
+
onDragEnter?: (event: DragEvent<HTMLDivElement>) => void;
|
51
|
+
/**
|
52
|
+
* Функция, вызываемая в момент выхода (один раз) курсора из Dropzone
|
53
|
+
*/
|
54
|
+
onDragLeave?: (event: DragEvent<HTMLDivElement>) => void;
|
55
|
+
/**
|
56
|
+
* Функция, вызываемая при движении курсора с файлами внутри Dropzone
|
57
|
+
*/
|
58
|
+
onDragOver?: (event: DragEvent<HTMLDivElement>) => void;
|
59
|
+
/**
|
60
|
+
* Функция, вызываемая для валидации файлов, перед onDrop или onChoseFiles
|
61
|
+
*/
|
62
|
+
validator?: (files: File[]) => ValidatorReturnType;
|
63
|
+
/**
|
64
|
+
* Функция, вызываемая при drop файлов
|
65
|
+
*/
|
66
|
+
onDrop?: FileProcessHandler;
|
67
|
+
/**
|
68
|
+
* Функция, вызываемая при выборе файлов
|
69
|
+
*/
|
70
|
+
onChoseFiles?: FileProcessHandler;
|
71
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
72
|
+
export declare type DropzoneRootProps = {
|
73
|
+
view?: string;
|
74
|
+
size?: string;
|
75
|
+
disabled?: boolean;
|
76
|
+
} & HTMLAttributes<HTMLDivElement>;
|
77
|
+
//# sourceMappingURL=Dropzone.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/Dropzone.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvF,oBAAY,QAAQ,GAAG;IACnB,aAAa,EAAE,IAAI,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAA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MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropzone/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropzone/variations/_disabled/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAKhB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropzone/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CA4ChB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropzone/variations/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CA+BhB,CAAC"}
|
@@ -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 @@
|
|
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,OAA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|
7
|
+
view: {
|
8
|
+
default: import("@linaria/core").LinariaClassName;
|
9
|
+
};
|
10
|
+
size: {
|
11
|
+
m: import("@linaria/core").LinariaClassName;
|
12
|
+
};
|
13
|
+
disabled: {
|
14
|
+
true: import("@linaria/core").LinariaClassName;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=Dropzone.config.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropzone/Dropzone.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA8ClB,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const Dropzone: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
3
|
+
view: {
|
4
|
+
default: import("@linaria/core").LinariaClassName;
|
5
|
+
};
|
6
|
+
size: {
|
7
|
+
m: import("@linaria/core").LinariaClassName;
|
8
|
+
};
|
9
|
+
disabled: {
|
10
|
+
true: import("@linaria/core").LinariaClassName;
|
11
|
+
};
|
12
|
+
}> & {
|
13
|
+
multiple?: boolean | undefined;
|
14
|
+
title?: string | undefined;
|
15
|
+
description?: import("react").ReactNode;
|
16
|
+
icon?: import("react").ReactNode;
|
17
|
+
iconPlacement?: "left" | "top" | 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("../../../../components/Dropzone/Dropzone.types").ValidatorReturnType) | undefined;
|
26
|
+
onDrop?: import("../../../../components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
|
27
|
+
onChoseFiles?: import("../../../../components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
|
28
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
29
|
+
//# sourceMappingURL=Dropzone.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropzone/Dropzone.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;4GAA0B,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare const config: {
|
2
|
+
defaults: {
|
3
|
+
view: string;
|
4
|
+
size: string;
|
5
|
+
};
|
6
|
+
variations: {
|
7
|
+
view: {
|
8
|
+
default: import("@linaria/core").LinariaClassName;
|
9
|
+
};
|
10
|
+
size: {
|
11
|
+
m: import("@linaria/core").LinariaClassName;
|
12
|
+
};
|
13
|
+
disabled: {
|
14
|
+
true: import("@linaria/core").LinariaClassName;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=Dropzone.config.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Dropzone/Dropzone.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA8ClB,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const Dropzone: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
3
|
+
view: {
|
4
|
+
default: import("@linaria/core").LinariaClassName;
|
5
|
+
};
|
6
|
+
size: {
|
7
|
+
m: import("@linaria/core").LinariaClassName;
|
8
|
+
};
|
9
|
+
disabled: {
|
10
|
+
true: import("@linaria/core").LinariaClassName;
|
11
|
+
};
|
12
|
+
}> & {
|
13
|
+
multiple?: boolean | undefined;
|
14
|
+
title?: string | undefined;
|
15
|
+
description?: import("react").ReactNode;
|
16
|
+
icon?: import("react").ReactNode;
|
17
|
+
iconPlacement?: "left" | "top" | 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("../../../../components/Dropzone/Dropzone.types").ValidatorReturnType) | undefined;
|
26
|
+
onDrop?: import("../../../../components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
|
27
|
+
onChoseFiles?: import("../../../../components/Dropzone/Dropzone.types").FileProcessHandler | undefined;
|
28
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
29
|
+
//# sourceMappingURL=Dropzone.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Dropzone/Dropzone.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;4GAA0B,CAAC"}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qB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