@salutejs/plasma-new-hope 0.186.0-canary.1511.11719682564.0 → 0.186.0-canary.1534.11720486647.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/index.css +0 -23
- package/cjs/index.js +0 -6
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
- package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
- package/emotion/cjs/components/_Icon/index.js +8 -1
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +215 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +80 -0
- package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/emotion/cjs/index.js +0 -11
- package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
- package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
- package/emotion/es/components/_Icon/index.js +2 -1
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +207 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +73 -0
- package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/emotion/es/index.js +1 -2
- package/es/index.css +0 -23
- package/es/index.js +0 -2
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +23 -0
- package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +22 -0
- package/styled-components/cjs/components/_Icon/index.js +8 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +215 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +33 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/styled-components/cjs/index.js +0 -11
- package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +16 -0
- package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +15 -0
- package/styled-components/es/components/_Icon/index.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +207 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.styles.js +26 -0
- package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.template-docs.mdx +136 -0
- package/styled-components/es/index.js +1 -2
- package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +4 -0
- package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +1 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +20 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts +15 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.styles.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts +72 -0
- package/types/examples/plasma_b2c/components/Dropzone/Dropzone.types.d.ts.map +1 -0
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/cjs/components/NumberInput/NumberInput.css +0 -52
- package/cjs/components/NumberInput/NumberInput.js +0 -207
- package/cjs/components/NumberInput/NumberInput.js.map +0 -1
- package/cjs/components/NumberInput/NumberInput.styles.js +0 -9
- package/cjs/components/NumberInput/NumberInput.styles.js.map +0 -1
- package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
- package/cjs/components/NumberInput/NumberInput.tokens.js +0 -102
- package/cjs/components/NumberInput/NumberInput.tokens.js.map +0 -1
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -19
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -22
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
- package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +0 -1
- package/cjs/components/NumberInput/ui/Input/Input.css +0 -15
- package/cjs/components/NumberInput/ui/Input/Input.js +0 -205
- package/cjs/components/NumberInput/ui/Input/Input.js.map +0 -1
- package/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -96
- package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
- package/cjs/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
- package/cjs/components/NumberInput/utils/index.js +0 -12
- package/cjs/components/NumberInput/utils/index.js.map +0 -1
- package/cjs/components/NumberInput/variations/_background-type/base.js +0 -9
- package/cjs/components/NumberInput/variations/_background-type/base.js.map +0 -1
- package/cjs/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
- package/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
- package/cjs/components/NumberInput/variations/_disabled/base.js.map +0 -1
- package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
- package/cjs/components/NumberInput/variations/_segmentation/base.js +0 -9
- package/cjs/components/NumberInput/variations/_segmentation/base.js.map +0 -1
- package/cjs/components/NumberInput/variations/_segmentation/base_14s5rot.css +0 -1
- package/cjs/components/NumberInput/variations/_shape/base.js +0 -9
- package/cjs/components/NumberInput/variations/_shape/base.js.map +0 -1
- package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
- package/cjs/components/NumberInput/variations/_size/base.js +0 -9
- package/cjs/components/NumberInput/variations/_size/base.js.map +0 -1
- package/cjs/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
- package/cjs/components/NumberInput/variations/_view/base.js +0 -9
- package/cjs/components/NumberInput/variations/_view/base.js.map +0 -1
- package/cjs/components/NumberInput/variations/_view/base_tnfbb5.css +0 -1
- package/emotion/cjs/components/NumberInput/NumberInput.js +0 -216
- package/emotion/cjs/components/NumberInput/NumberInput.styles.js +0 -17
- package/emotion/cjs/components/NumberInput/NumberInput.template-doc.mdx +0 -214
- package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +0 -99
- package/emotion/cjs/components/NumberInput/index.js +0 -31
- package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
- package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -16
- package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -213
- package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -81
- package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
- package/emotion/cjs/components/NumberInput/ui/index.js +0 -19
- package/emotion/cjs/components/NumberInput/utils/index.js +0 -9
- package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
- package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
- package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
- package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
- package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
- package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
- package/emotion/cjs/components/NumberInput/variations/_shape/base.js +0 -11
- package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
- package/emotion/cjs/components/NumberInput/variations/_size/base.js +0 -13
- package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
- package/emotion/cjs/components/NumberInput/variations/_view/base.js +0 -13
- package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
- package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
- package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
- package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
- package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
- package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/emotion/es/components/NumberInput/NumberInput.js +0 -208
- package/emotion/es/components/NumberInput/NumberInput.styles.js +0 -11
- package/emotion/es/components/NumberInput/NumberInput.template-doc.mdx +0 -214
- package/emotion/es/components/NumberInput/NumberInput.tokens.js +0 -93
- package/emotion/es/components/NumberInput/index.js +0 -2
- package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
- package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -9
- package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -204
- package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +0 -74
- package/emotion/es/components/NumberInput/ui/Input/Input.types.js +0 -1
- package/emotion/es/components/NumberInput/ui/index.js +0 -2
- package/emotion/es/components/NumberInput/utils/index.js +0 -3
- package/emotion/es/components/NumberInput/variations/_background-type/base.js +0 -4
- package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
- package/emotion/es/components/NumberInput/variations/_disabled/base.js +0 -3
- package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
- package/emotion/es/components/NumberInput/variations/_segmentation/base.js +0 -6
- package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
- package/emotion/es/components/NumberInput/variations/_shape/base.js +0 -5
- package/emotion/es/components/NumberInput/variations/_shape/tokens.json +0 -1
- package/emotion/es/components/NumberInput/variations/_size/base.js +0 -7
- package/emotion/es/components/NumberInput/variations/_size/tokens.json +0 -22
- package/emotion/es/components/NumberInput/variations/_view/base.js +0 -7
- package/emotion/es/components/NumberInput/variations/_view/tokens.json +0 -14
- package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
- package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
- package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
- package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
- package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/es/components/NumberInput/NumberInput.css +0 -52
- package/es/components/NumberInput/NumberInput.js +0 -202
- package/es/components/NumberInput/NumberInput.js.map +0 -1
- package/es/components/NumberInput/NumberInput.styles.js +0 -5
- package/es/components/NumberInput/NumberInput.styles.js.map +0 -1
- package/es/components/NumberInput/NumberInput.styles_jeawjl.css +0 -1
- package/es/components/NumberInput/NumberInput.tokens.js +0 -96
- package/es/components/NumberInput/NumberInput.tokens.js.map +0 -1
- package/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -15
- package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +0 -1
- package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -18
- package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +0 -1
- package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +0 -1
- package/es/components/NumberInput/ui/Input/Input.css +0 -15
- package/es/components/NumberInput/ui/Input/Input.js +0 -201
- package/es/components/NumberInput/ui/Input/Input.js.map +0 -1
- package/es/components/NumberInput/ui/Input/Input.styles.js +0 -85
- package/es/components/NumberInput/ui/Input/Input.styles.js.map +0 -1
- package/es/components/NumberInput/ui/Input/Input.styles_fhgb95.css +0 -8
- package/es/components/NumberInput/utils/index.js +0 -6
- package/es/components/NumberInput/utils/index.js.map +0 -1
- package/es/components/NumberInput/variations/_background-type/base.js +0 -5
- package/es/components/NumberInput/variations/_background-type/base.js.map +0 -1
- package/es/components/NumberInput/variations/_background-type/base_dx9knv.css +0 -1
- package/es/components/NumberInput/variations/_disabled/base.js +0 -5
- package/es/components/NumberInput/variations/_disabled/base.js.map +0 -1
- package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +0 -1
- package/es/components/NumberInput/variations/_segmentation/base.js +0 -5
- package/es/components/NumberInput/variations/_segmentation/base.js.map +0 -1
- package/es/components/NumberInput/variations/_segmentation/base_14s5rot.css +0 -1
- package/es/components/NumberInput/variations/_shape/base.js +0 -5
- package/es/components/NumberInput/variations/_shape/base.js.map +0 -1
- package/es/components/NumberInput/variations/_shape/base_k05biw.css +0 -1
- package/es/components/NumberInput/variations/_size/base.js +0 -5
- package/es/components/NumberInput/variations/_size/base.js.map +0 -1
- package/es/components/NumberInput/variations/_size/base_yqdmk4.css +0 -1
- package/es/components/NumberInput/variations/_view/base.js +0 -5
- package/es/components/NumberInput/variations/_view/base.js.map +0 -1
- package/es/components/NumberInput/variations/_view/base_tnfbb5.css +0 -1
- package/styled-components/cjs/components/NumberInput/NumberInput.js +0 -216
- package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +0 -8
- package/styled-components/cjs/components/NumberInput/NumberInput.template-doc.mdx +0 -214
- package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +0 -99
- package/styled-components/cjs/components/NumberInput/NumberInput.types.js +0 -5
- package/styled-components/cjs/components/NumberInput/index.js +0 -31
- package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +0 -18
- package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -15
- package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -5
- package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -213
- package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +0 -48
- package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +0 -5
- package/styled-components/cjs/components/NumberInput/ui/index.js +0 -19
- package/styled-components/cjs/components/NumberInput/utils/index.js +0 -9
- package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +0 -10
- package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +0 -6
- package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +0 -9
- package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +0 -4
- package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +0 -12
- package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +0 -1
- package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +0 -11
- package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +0 -1
- package/styled-components/cjs/components/NumberInput/variations/_size/base.js +0 -13
- package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +0 -22
- package/styled-components/cjs/components/NumberInput/variations/_view/base.js +0 -13
- package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +0 -14
- package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -46
- package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -46
- package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +0 -11
- package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/styled-components/es/components/NumberInput/NumberInput.js +0 -208
- package/styled-components/es/components/NumberInput/NumberInput.styles.js +0 -2
- package/styled-components/es/components/NumberInput/NumberInput.template-doc.mdx +0 -214
- package/styled-components/es/components/NumberInput/NumberInput.tokens.js +0 -93
- package/styled-components/es/components/NumberInput/NumberInput.types.js +0 -1
- package/styled-components/es/components/NumberInput/index.js +0 -2
- package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +0 -11
- package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +0 -8
- package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +0 -1
- package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -204
- package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +0 -41
- package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +0 -1
- package/styled-components/es/components/NumberInput/ui/index.js +0 -2
- package/styled-components/es/components/NumberInput/utils/index.js +0 -3
- package/styled-components/es/components/NumberInput/variations/_background-type/base.js +0 -4
- package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +0 -6
- package/styled-components/es/components/NumberInput/variations/_disabled/base.js +0 -3
- package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +0 -4
- package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +0 -6
- package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +0 -1
- package/styled-components/es/components/NumberInput/variations/_shape/base.js +0 -5
- package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +0 -1
- package/styled-components/es/components/NumberInput/variations/_size/base.js +0 -7
- package/styled-components/es/components/NumberInput/variations/_size/tokens.json +0 -22
- package/styled-components/es/components/NumberInput/variations/_view/base.js +0 -7
- package/styled-components/es/components/NumberInput/variations/_view/tokens.json +0 -14
- package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +0 -40
- package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +0 -40
- package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +0 -5
- package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +0 -108
- package/types/components/NumberInput/NumberInput.d.ts +0 -38
- package/types/components/NumberInput/NumberInput.d.ts.map +0 -1
- package/types/components/NumberInput/NumberInput.styles.d.ts +0 -2
- package/types/components/NumberInput/NumberInput.styles.d.ts.map +0 -1
- package/types/components/NumberInput/NumberInput.tokens.d.ts +0 -88
- package/types/components/NumberInput/NumberInput.tokens.d.ts.map +0 -1
- package/types/components/NumberInput/NumberInput.types.d.ts +0 -112
- package/types/components/NumberInput/NumberInput.types.d.ts.map +0 -1
- package/types/components/NumberInput/index.d.ts +0 -3
- package/types/components/NumberInput/index.d.ts.map +0 -1
- package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +0 -4
- package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +0 -1
- package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +0 -45
- package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +0 -1
- package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +0 -7
- package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +0 -1
- package/types/components/NumberInput/ui/Input/Input.d.ts +0 -19
- package/types/components/NumberInput/ui/Input/Input.d.ts.map +0 -1
- package/types/components/NumberInput/ui/Input/Input.styles.d.ts +0 -30
- package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +0 -1
- package/types/components/NumberInput/ui/Input/Input.types.d.ts +0 -19
- package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +0 -1
- package/types/components/NumberInput/ui/index.d.ts +0 -3
- package/types/components/NumberInput/ui/index.d.ts.map +0 -1
- package/types/components/NumberInput/utils/index.d.ts +0 -4
- package/types/components/NumberInput/utils/index.d.ts.map +0 -1
- package/types/components/NumberInput/variations/_background-type/base.d.ts +0 -2
- package/types/components/NumberInput/variations/_background-type/base.d.ts.map +0 -1
- package/types/components/NumberInput/variations/_disabled/base.d.ts +0 -2
- package/types/components/NumberInput/variations/_disabled/base.d.ts.map +0 -1
- package/types/components/NumberInput/variations/_segmentation/base.d.ts +0 -2
- package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +0 -1
- package/types/components/NumberInput/variations/_shape/base.d.ts +0 -2
- package/types/components/NumberInput/variations/_shape/base.d.ts.map +0 -1
- package/types/components/NumberInput/variations/_size/base.d.ts +0 -2
- package/types/components/NumberInput/variations/_size/base.d.ts.map +0 -1
- package/types/components/NumberInput/variations/_view/base.d.ts +0 -2
- package/types/components/NumberInput/variations/_view/base.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +0 -39
- package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +0 -82
- package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +0 -1
- package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +0 -39
- package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +0 -82
- package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +0 -1
- /package/emotion/cjs/{components/NumberInput/NumberInput.types.js → examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
- /package/emotion/es/{components/NumberInput/NumberInput.types.js → examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
- /package/{emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js → styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
- /package/{emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js → styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.types.js} +0 -0
@@ -0,0 +1,136 @@
|
|
1
|
+
---
|
2
|
+
id: dropzone
|
3
|
+
title: Dropzone
|
4
|
+
---
|
5
|
+
|
6
|
+
import { PropsTable } from '@site/src/components';
|
7
|
+
|
8
|
+
# Dropzone
|
9
|
+
Компонент для загрузки файлов, без отображения индикации загрузки.
|
10
|
+
Компонент не предполагает наличия валиации, так как является частью Upload.
|
11
|
+
Но валидацию можно задать с помощью callback `validator`.
|
12
|
+
<PropsTable name="Dropzone" />
|
13
|
+
|
14
|
+
# Типизация
|
15
|
+
|
16
|
+
```tsx
|
17
|
+
type DropzoneProps = {
|
18
|
+
/**
|
19
|
+
* Массив форматов файлов, которые могут быть прикреплены (см. HTML-атрибут 'accept' для 'input').
|
20
|
+
*/
|
21
|
+
acceptedFileFormats?: string[];
|
22
|
+
/**
|
23
|
+
* Позовляет выбирать несколько файлов для загрузки
|
24
|
+
*/
|
25
|
+
multiple?: boolean;
|
26
|
+
/**
|
27
|
+
* Слот для Title
|
28
|
+
*/
|
29
|
+
title?: string;
|
30
|
+
/**
|
31
|
+
* Слот для описания
|
32
|
+
*/
|
33
|
+
description?: ReactNode;
|
34
|
+
/**
|
35
|
+
* Слот для иконки
|
36
|
+
*/
|
37
|
+
icon?: ReactNode;
|
38
|
+
/**
|
39
|
+
* Расположение иконки
|
40
|
+
* @default 'left'
|
41
|
+
*/
|
42
|
+
iconPlacement?: 'top' | 'left';
|
43
|
+
/**
|
44
|
+
* Размер компонента
|
45
|
+
*/
|
46
|
+
size?: string;
|
47
|
+
/**
|
48
|
+
* Вид компонента
|
49
|
+
*/
|
50
|
+
view?: string;
|
51
|
+
/**
|
52
|
+
* Компонент неактивен
|
53
|
+
*/
|
54
|
+
disabled?: boolean;
|
55
|
+
/**
|
56
|
+
* Компонент растягивается на всю доступную ширину
|
57
|
+
*/
|
58
|
+
stretch?: boolean;
|
59
|
+
/**
|
60
|
+
* Функция, вызываемая в момент вхождения курсора внутрь границ Dropzone
|
61
|
+
*/
|
62
|
+
onDragEnter?: () => void;
|
63
|
+
/**
|
64
|
+
* Функция, вызываемая в момент выхода курсора из Dropzone
|
65
|
+
*/
|
66
|
+
onDragLeave?: () => void;
|
67
|
+
/**
|
68
|
+
* Функция, вызываемая при нахождении курсора внутри Dropzone
|
69
|
+
*/
|
70
|
+
onDragOver?: () => void;
|
71
|
+
/**
|
72
|
+
* Функция, вызываемая при drop файлов
|
73
|
+
*/
|
74
|
+
onDrop?: () => void;
|
75
|
+
/**
|
76
|
+
* Функция, вызываемая для валидации файлов, перед onDropFiles
|
77
|
+
*/
|
78
|
+
validator?: (files: File[]) => ValidatorReturnType;
|
79
|
+
/**
|
80
|
+
* Функция, вызываемая при наличии файлов, после onDrop
|
81
|
+
*/
|
82
|
+
onDropFiles?: FileProcessHandler;
|
83
|
+
/**
|
84
|
+
* Функция, вызываемая при выборе файлов
|
85
|
+
*/
|
86
|
+
onChoseFiles?: FileProcessHandler;
|
87
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'accept'>;
|
88
|
+
```
|
89
|
+
|
90
|
+
# Пример
|
91
|
+
|
92
|
+
```tsx live
|
93
|
+
import React from 'react';
|
94
|
+
import { Dropzone } from '@salutejs/{{ package }}';
|
95
|
+
|
96
|
+
export function App() {
|
97
|
+
const onDragEnter = () => {
|
98
|
+
console.log("onDragEnter")
|
99
|
+
}
|
100
|
+
|
101
|
+
const onDragLeave = () => {
|
102
|
+
console.log("onDragLeave")
|
103
|
+
}
|
104
|
+
|
105
|
+
const onDrop = () => {
|
106
|
+
console.log("onDrop")
|
107
|
+
}
|
108
|
+
|
109
|
+
const onDropFiles = () => {
|
110
|
+
console.log("onDropFiles")
|
111
|
+
}
|
112
|
+
|
113
|
+
const onChange = () => {
|
114
|
+
console.log("onChange")
|
115
|
+
}
|
116
|
+
|
117
|
+
const onChoseFiles = () => {
|
118
|
+
console.log("onChoseFiles")
|
119
|
+
}
|
120
|
+
|
121
|
+
return (
|
122
|
+
<Dropzone
|
123
|
+
iconPlacement="top"
|
124
|
+
width="240"
|
125
|
+
title="Click to upload"
|
126
|
+
description="or drag and drop files here"
|
127
|
+
onDragEnter={onDragEnter}
|
128
|
+
onDragLeave={onDragLeave}
|
129
|
+
onDrop={onDrop}
|
130
|
+
onDropFiles={onDropFiles}
|
131
|
+
onChange={onChange}
|
132
|
+
onChoseFiles={onChoseFiles}
|
133
|
+
/>
|
134
|
+
);
|
135
|
+
}
|
136
|
+
```
|
package/emotion/es/index.js
CHANGED
@@ -61,5 +61,4 @@ export * from './components/EmptyState';
|
|
61
61
|
export * from './components/Editable';
|
62
62
|
export * from './components/Mask';
|
63
63
|
export * from './components/Attach';
|
64
|
-
export * from './components/ViewContainer';
|
65
|
-
export * from './components/NumberInput';
|
64
|
+
export * from './components/ViewContainer';
|
package/es/index.css
CHANGED
@@ -807,26 +807,3 @@
|
|
807
807
|
.IconButton_styles_1q2jfs2_shuaj1a__7aea03a6{--plasma-icon-button-color:var(--plasma-attach-icon-button-cancel-color);--plasma-icon-button-background-color:var(--plasma-attach-icon-button-cancel-background-color);--plasma-icon-button-loading-background-color:var(--plasma-attach-icon-button-cancel-loading-background-color);--plasma-icon-button-color-hover:var(--plasma-attach-icon-button-cancel-color-hover);--plasma-icon-button-background-color-hover:var(--plasma-attach-icon-button-cancel-background-color-hover);--plasma-icon-button-color-active:var(--plasma-attach-icon-button-cancel-color-active);--plasma-icon-button-background-color-active:var(--plasma-attach-icon-button-cancel-background-color-active);--plasma-icon-button-scale-hover:var(--plasma-attach-icon-button-cancel-scale-hover);---plasma-icon-button-scale-active:var(---plasma-attach-icon-button-cancel-scale-active);--plasma-icon-button-height:var(--plasma-attach-icon-button-cancel-height);--plasma-icon-button-width:var(--plasma-attach-icon-button-cancel-width);--plasma-icon-button-padding:var(--plasma-attach-icon-button-cancel-padding);--plasma-icon-button-radius:var(--plasma-attach-icon-button-cancel-radius);--plasma-icon-button-radius-circle:var(--plasma-attach-icon-button-cancel-radius-circle);--plasma-icon-button-font-family:var(--plasma-attach-icon-button-cancel-font-family);--plasma-icon-button-font-size:var(--plasma-attach-icon-button-cancel-font-size);--plasma-icon-button-font-style:var(--plasma-attach-icon-button-cancel-font-style);--plasma-icon-button-font-weight:var(--plasma-attach-icon-button-cancel-font-weight);--plasma-icon-button-letter-spacing:var(--plasma-attach-icon-button-cancel-letter-spacing);--plasma-icon-button-line-height:var(--plasma-attach-icon-button-cancel-line-height);--plasma-icon-button-disabled-opacity:var(--plasma-attach-icon-button-cancel-disabled-opacity);--plasma-icon-button-focus-color:var(--plasma-attach-icon-button-cancel-focus-color);--plasma-icon-button-spinner-color:var(--plasma-attach-icon-button-cancel-spinner-color);--plasma-icon-button-spinner-size:var(--plasma-attach-icon-button-cancel-spinner-size);}
|
808
808
|
|
809
809
|
.ViewContainer_yiqfcb_bemjbnt__5b2a6776{position:relative;}
|
810
|
-
|
811
|
-
.Input_styles_fhgb95_i1s8bsh6__3bed5c8f{overflow-x:auto;overflow-y:hidden;-webkit-flex:1;-ms-flex:1;flex:1;cursor:var(--i1s8bsh6-0);-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.Input_styles_fhgb95_i1s8bsh6__3bed5c8f::-webkit-scrollbar{display:none;}
|
812
|
-
.Input_styles_fhgb95_t6wb9c__3bed5c8f{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 auto;box-sizing:border-box;}
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
.Input_styles_fhgb95_d1n4jo6t__3bed5c8f{position:relative;}
|
817
|
-
.Input_styles_fhgb95_i1tgbhg7__3bed5c8f{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:var(--i1tgbhg7-0);box-sizing:border-box;cursor:var(--i1tgbhg7-1);pointer-events:var(--i1tgbhg7-2);-webkit-transition:width 0.1s;transition:width 0.1s;}
|
818
|
-
.Input_styles_fhgb95_i1il5xze__3bed5c8f{position:absolute;z-index:-999;visibility:hidden;top:0;left:0;opacity:0;height:0;white-space:pre;}
|
819
|
-
|
820
|
-
.NumberInput_styles_jeawjl_bwds6g__9a871afb{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
821
|
-
|
822
|
-
.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8{--plasma-icon-button-color:var(--plasma-number-input_icon-button_color);--plasma-icon-button-background-color:var(--plasma-number-input_icon-button_background-color);--plasma-icon-button-color-hover:var(--plasma-number-input_icon-button_color-hover);--plasma-icon-button-background-color-hover:var(--plasma-number-input_icon-button_background-color-hover);--plasma-icon-button-color-active:var(--plasma-number-input_icon-button_color-active);--plasma-icon-button-background-color-active:var(--plasma-number-input_icon-button_background-color-active);}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonDecrementDisabled__884e17c8,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonIncrementDisabled__884e17c8{opacity:var(--plasma-number-input_action-button_disabled-opacity);cursor:not-allowed;}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonDecrementDisabled__884e17c8:hover,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonIncrementDisabled__884e17c8:hover,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonDecrementDisabled__884e17c8:active,.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_sj0ab1b__884e17c8.base_tnfbb5_actionButtonIncrementDisabled__884e17c8:active{scale:none;color:var(--plasma-number-input_icon-button_color);background-color:var(--plasma-number-input_icon-button_background-color);}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8:focus-within{background-color:var(--plasma-number-input_background-color-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-focus);}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8.base_tnfbb5_errorAnimation__884e17c8{background-color:var(--plasma-number-input_background_error-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border_error-color);-webkit-animation:base_tnfbb5_shakingErrorBhi37xj__884e17c8 0.3s forwards;animation:base_tnfbb5_shakingErrorBhi37xj__884e17c8 0.3s forwards;}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8.base_tnfbb5_errorAnimation__884e17c8 .base_tnfbb5_i1tgbhg7__884e17c8{color:var(--plasma-number-input_error-color);-webkit-animation:base_tnfbb5_fadeErrorBhi37xj__884e17c8 0.3s forwards;animation:base_tnfbb5_fadeErrorBhi37xj__884e17c8 0.3s forwards;}.base_tnfbb5_bhi37xj__884e17c8.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1s8bsh6__884e17c8.base_tnfbb5_manualInputNumberInput__884e17c8.base_tnfbb5_errorAnimation__884e17c8:focus-within{background-color:var(--plasma-number-input_background_error-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border_error-color);}@-webkit-keyframes base_tnfbb5_shakingErrorBhi37xj__884e17c8{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@keyframes base_tnfbb5_shakingErrorBhi37xj__884e17c8{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@-webkit-keyframes base_tnfbb5_fadeErrorBhi37xj__884e17c8{50%{opacity:1;}100%{opacity:0;}}@keyframes base_tnfbb5_fadeErrorBhi37xj__884e17c8{50%{opacity:1;}100%{opacity:0;}}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_s1ft73sv__884e17c8{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color);}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_i1tgbhg7__884e17c8{color:var(--plasma-number-input_color);caret-color:var(--plasma-number-input_caret_color);}.base_tnfbb5_bhi37xj__884e17c8 .base_tnfbb5_az36kha__884e17c8{color:var(--plasma-number-input_additional-text_color);}
|
823
|
-
|
824
|
-
.base_yqdmk4_b13wjeky__9b206d94{width:var(--plasma_private-number-input_width);min-width:var(--plasma-number-input_min-width);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_sj0ab1b__9b206d94{--plasma-icon-button-height:var(--plasma-number-input_icon-button_height);--plasma-icon-button-width:var(--plasma-number-input_icon-button_width);--plasma-icon-button-padding:var(--plasma-number-input_icon-button_padding);--plasma-icon-button-font-family:var(--plasma-number-input_icon-button_font-family);--plasma-icon-button-font-size:var(--plasma-number-input_icon-button_font-size);--plasma-icon-button-font-style:var(--plasma-number-input_icon-button_font-style);--plasma-icon-button-font-weight:var(--plasma-number-input_icon-button_font-weight);--plasma-icon-button-letter-spacing:var(--plasma-number-input_icon-button_letter-spacing);--plasma-icon-button-line-height:var(--plasma-number-input_icon-button_line-height);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_i1s8bsh6__9b206d94{margin:var(--plasma-number-input_input-wrapper_margin);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_t6wb9c__9b206d94{height:var(--plasma-number-input_text-wrapper_height);padding:var(--plasma-number-input_text-wrapper_padding);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_d1n4jo6t__9b206d94,.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_i1tgbhg7__9b206d94,.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_az36kha__9b206d94{font-family:var(--plasma-number-input_font-family);font-size:var(--plasma-number-input_font-size);font-style:var(--plasma-number-input_font-style);font-weight:var(--plasma-number-input_font-weight);-webkit-letter-spacing:var(--plasma-number-input_letter-spacing);-moz-letter-spacing:var(--plasma-number-input_letter-spacing);-ms-letter-spacing:var(--plasma-number-input_letter-spacing);letter-spacing:var(--plasma-number-input_letter-spacing);line-height:var(--plasma-number-input_line-height);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_az36kha__9b206d94.base_yqdmk4_textBefore__9b206d94{margin-right:var(--plasma-number-input_text-before_margin-right);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_az36kha__9b206d94.base_yqdmk4_textAfter__9b206d94{margin-left:var(--plasma-number-input_text-after_margin-left);}.base_yqdmk4_b13wjeky__9b206d94 .base_yqdmk4_s1ft73sv__9b206d94{--plasma-spinner-size:var(--plasma-number-input_loader-spinner_size);}
|
825
|
-
|
826
|
-
.base_k05biw_b1l31q8y__7da7a6d0 .base_k05biw_sj0ab1b__7da7a6d0{--plasma-icon-button-radius:var(--plasma-number-input_icon-button_radius);}
|
827
|
-
|
828
|
-
.base_dx9knv_b15uqx38__1d74109c .base_dx9knv_i1s8bsh6__1d74109c{background-color:var(--plasma-number-input_background-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color);}.base_dx9knv_b15uqx38__1d74109c .base_dx9knv_i1s8bsh6__1d74109c.base_dx9knv_manualInputNumberInput__1d74109c:hover{background-color:var(--plasma-number-input_background-color-hover);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-hover);}
|
829
|
-
|
830
|
-
.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_i1s8bsh6__6339f446{border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446{--plasma_private-segmentation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_segmentedView__6339f446,.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_solidView__6339f446{--plasma_private-segmentation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrement__6339f446{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segmentation-border-radius) var(--plasma_private-segmentation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrement__6339f446{border-radius:var(--plasma_private-segmentation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segmentation-border-radius);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_segmentedView__6339f446 .base_14s5rot_i1s8bsh6__6339f446{border-radius:var(--plasma-number-input_icon-button_segmentation_radius);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446{--plasma_private-number-input_top-box-shadow:inset 0 var(--plasma-number-input_input-border-width) var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_bottom-box-shadow:inset 0 calc(-1 * var(--plasma-number-input_input-border-width)) var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_left-box-shadow:inset var(--plasma-number-input_input-border-width) 0 var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_right-box-shadow:inset calc(-1 * var(--plasma-number-input_input-border-width)) 0 var(--plasma-number-input_wrapper_border-color);position:relative;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_numberInputFocused__6339f446:not(number-input-loading),.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_numberInputFocused__6339f446:not(number-input-disabled){--plasma_private-number-input_top-box-shadow:inset 0 var(--plasma-number-input_input-border-width) var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_bottom-box-shadow:inset 0 calc(-1 * var(--plasma-number-input_input-border-width)) var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_left-box-shadow:inset var(--plasma-number-input_input-border-width) 0 var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_right-box-shadow:inset calc(-1 * var(--plasma-number-input_input-border-width)) 0 var(--plasma-number-input_wrapper_border-color_focus);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446:before{content:'';position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:calc(100% - var(--plasma-number-input_icon-button_width) * 2);height:100%;background:var(--plasma-number-input_background-color-solid);box-shadow:var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_bottom-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1s8bsh6__6339f446{position:relative;color:var(--plasma-number-input_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1s8bsh6__6339f446:not(error-animation).base_14s5rot_manualInputNumberInput__6339f446:focus-within{background-color:var(--plasma-number-input_background-color-solid-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-solid-focus);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrement__6339f446{box-shadow:var(--plasma_private-number-input_bottom-box-shadow),var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_left-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrement__6339f446{box-shadow:var(--plasma_private-number-input_bottom-box-shadow),var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_right-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:active{background-color:var(--plasma-number-input_icon-button_background-color);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:hover{color:var(--plasma-number-input_icon-button_color_solid-hover);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:active{color:var(--plasma-number-input_icon-button_color_solid-active);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446{opacity:1;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446 svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446 svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active{color:var(--plasma-number-input_icon-button_color);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active{background-color:transparent;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_s1ft73sv__6339f446{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1tgbhg7__6339f446{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1tgbhg7__6339f446:not(.base_14s5rot_errorAnimation__6339f446){color:var(--plasma-number-input_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_az36kha__6339f446{color:var(--plasma-number-input_additional-text_color-solid);}
|
831
|
-
|
832
|
-
.base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_numberInputDisabled__e93ebd2b{pointer-events:none;opacity:var(--plasma-number-input_disabled-opacity);cursor:not-allowed;}
|
package/es/index.js
CHANGED
@@ -203,6 +203,4 @@ export { composeMask } from './components/Mask/Mask.js';
|
|
203
203
|
export { attachConfig, attachRoot } from './components/Attach/Attach.js';
|
204
204
|
export { tokens as attachTokens } from './components/Attach/Attach.tokens.js';
|
205
205
|
export { viewContainerConfig, viewContainerRoot } from './components/ViewContainer/ViewContainer.js';
|
206
|
-
export { numberInputConfig, numberInputRoot } from './components/NumberInput/NumberInput.js';
|
207
|
-
export { classes as numberInputClasses, tokens as numberInputTokens } from './components/NumberInput/NumberInput.tokens.js';
|
208
206
|
//# sourceMappingURL=index.js.map
|
package/es/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.186.0-canary.
|
3
|
+
"version": "0.186.0-canary.1534.11720486647.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -128,5 +128,5 @@
|
|
128
128
|
"sideEffects": [
|
129
129
|
"*.css"
|
130
130
|
],
|
131
|
-
"gitHead": "
|
131
|
+
"gitHead": "5bc56d7808f9211df22d027e5f8f32ba2d7698c3"
|
132
132
|
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.ArrowBarDown = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _path;
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11
|
+
var ArrowBarDown = exports.ArrowBarDown = function ArrowBarDown(props) {
|
12
|
+
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
13
|
+
width: "100%",
|
14
|
+
viewBox: "0 0 16 16",
|
15
|
+
fill: "none",
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
17
|
+
}, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
|
18
|
+
fillRule: "evenodd",
|
19
|
+
clipRule: "evenodd",
|
20
|
+
d: "M7.95833 1.875C8.23448 1.875 8.45833 2.09886 8.45833 2.375V10.4043L11.2686 7.54868C11.4623 7.35186 11.7789 7.34933 11.9757 7.54302C12.1725 7.73672 12.1751 8.05329 11.9814 8.25011L8.3147 11.9759C8.21782 12.0744 8.08453 12.1283 7.94645 12.1251C7.80837 12.1218 7.67779 12.0615 7.5857 11.9586L4.25237 8.23278C4.06824 8.02698 4.08582 7.71088 4.29162 7.52676C4.49742 7.34264 4.81351 7.36021 4.99763 7.56601L7.45833 10.3164V2.375C7.45833 2.09886 7.68219 1.875 7.95833 1.875ZM2.5 14.0001C2.5 13.724 2.72386 13.5001 3 13.5001H13C13.2761 13.5001 13.5 13.724 13.5 14.0001C13.5 14.2763 13.2761 14.5001 13 14.5001H3C2.72386 14.5001 2.5 14.2763 2.5 14.0001Z",
|
21
|
+
fill: "currentColor"
|
22
|
+
})));
|
23
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.IconArrowBarDown = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _ArrowBarDown = /*#__PURE__*/require("../Icon.assets/ArrowBarDown");
|
9
|
+
var _IconRoot = /*#__PURE__*/require("../IconRoot");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
var IconArrowBarDown = exports.IconArrowBarDown = function IconArrowBarDown(_ref) {
|
12
|
+
var _ref$size = _ref.size,
|
13
|
+
size = _ref$size === void 0 ? 'xs' : _ref$size,
|
14
|
+
color = _ref.color,
|
15
|
+
className = _ref.className;
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
|
17
|
+
className: className,
|
18
|
+
size: size,
|
19
|
+
color: color,
|
20
|
+
icon: _ArrowBarDown.ArrowBarDown
|
21
|
+
});
|
22
|
+
};
|
@@ -3,6 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
Object.defineProperty(exports, "IconArrowBarDown", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _IconArrowBarDown.IconArrowBarDown;
|
10
|
+
}
|
11
|
+
});
|
6
12
|
Object.defineProperty(exports, "IconBlankCsvOutline", {
|
7
13
|
enumerable: true,
|
8
14
|
get: function get() {
|
@@ -191,4 +197,5 @@ var _IconBlankOutline = /*#__PURE__*/require("./Icons/IconBlankOutline");
|
|
191
197
|
var _IconBlankPdfOutline = /*#__PURE__*/require("./Icons/IconBlankPdfOutline");
|
192
198
|
var _IconBlankTxtOutline = /*#__PURE__*/require("./Icons/IconBlankTxtOutline");
|
193
199
|
var _IconBlankXlsOutline = /*#__PURE__*/require("./Icons/IconBlankXlsOutline");
|
194
|
-
var _IconInfoCircleOutline = /*#__PURE__*/require("./Icons/IconInfoCircleOutline");
|
200
|
+
var _IconInfoCircleOutline = /*#__PURE__*/require("./Icons/IconInfoCircleOutline");
|
201
|
+
var _IconArrowBarDown = /*#__PURE__*/require("./Icons/IconArrowBarDown");
|
@@ -0,0 +1,215 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.Dropzone = void 0;
|
8
|
+
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
+
var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
|
10
|
+
var _utils = /*#__PURE__*/require("../../../../utils");
|
11
|
+
var _Icon = /*#__PURE__*/require("../../../../components/_Icon");
|
12
|
+
var _Dropzone = /*#__PURE__*/require("./Dropzone.styles");
|
13
|
+
var _IconArrowBarDown;
|
14
|
+
var _excluded = ["className", "style", "accept", "multiple", "title", "description", "icon", "iconPlacement", "size", "view", "disabled", "stretch", "width", "onDragEnter", "onDragLeave", "onDragOver", "onDrop", "validator", "onClick", "onChange", "onChoseFiles"];
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
20
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
22
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
23
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
24
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
25
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
26
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
27
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
28
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
29
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
30
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
31
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
32
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
33
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
34
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
35
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
36
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
37
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
38
|
+
var Dropzone = exports.Dropzone = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, outerRef) {
|
39
|
+
var className = _ref.className,
|
40
|
+
style = _ref.style,
|
41
|
+
accept = _ref.accept,
|
42
|
+
multiple = _ref.multiple,
|
43
|
+
title = _ref.title,
|
44
|
+
description = _ref.description,
|
45
|
+
icon = _ref.icon,
|
46
|
+
iconPlacement = _ref.iconPlacement,
|
47
|
+
size = _ref.size,
|
48
|
+
view = _ref.view,
|
49
|
+
disabled = _ref.disabled,
|
50
|
+
stretch = _ref.stretch,
|
51
|
+
width = _ref.width,
|
52
|
+
onDragEnter = _ref.onDragEnter,
|
53
|
+
onDragLeave = _ref.onDragLeave,
|
54
|
+
onDragOver = _ref.onDragOver,
|
55
|
+
onDrop = _ref.onDrop,
|
56
|
+
validator = _ref.validator,
|
57
|
+
onClick = _ref.onClick,
|
58
|
+
onChange = _ref.onChange,
|
59
|
+
onChoseFiles = _ref.onChoseFiles,
|
60
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
61
|
+
var _useState = (0, _react.useState)(false),
|
62
|
+
_useState2 = _slicedToArray(_useState, 2),
|
63
|
+
isDropzoneActive = _useState2[0],
|
64
|
+
setIsDropzoneActive = _useState2[1];
|
65
|
+
var inputRef = (0, _react.useRef)(null);
|
66
|
+
var forkInputRef = (0, _plasmaCore.useForkRef)(outerRef, inputRef);
|
67
|
+
var innerWidth = width ? (0, _utils.getSizeValueFromProp)(width) : 'fit-content';
|
68
|
+
var processFiles = /*#__PURE__*/function () {
|
69
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(rawFiles, callback, afterAction) {
|
70
|
+
var files, res;
|
71
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
72
|
+
while (1) switch (_context.prev = _context.next) {
|
73
|
+
case 0:
|
74
|
+
if (!(rawFiles && rawFiles.length > 0)) {
|
75
|
+
_context.next = 12;
|
76
|
+
break;
|
77
|
+
}
|
78
|
+
files = _toConsumableArray(rawFiles);
|
79
|
+
res = {
|
80
|
+
acceptedFiles: files
|
81
|
+
};
|
82
|
+
if (!validator) {
|
83
|
+
_context.next = 7;
|
84
|
+
break;
|
85
|
+
}
|
86
|
+
_context.next = 6;
|
87
|
+
return validator === null || validator === void 0 ? void 0 : validator(files);
|
88
|
+
case 6:
|
89
|
+
res = _context.sent;
|
90
|
+
case 7:
|
91
|
+
console.log(res);
|
92
|
+
if (!callback) {
|
93
|
+
_context.next = 11;
|
94
|
+
break;
|
95
|
+
}
|
96
|
+
_context.next = 11;
|
97
|
+
return callback(res);
|
98
|
+
case 11:
|
99
|
+
if (afterAction) {
|
100
|
+
afterAction();
|
101
|
+
}
|
102
|
+
case 12:
|
103
|
+
case "end":
|
104
|
+
return _context.stop();
|
105
|
+
}
|
106
|
+
}, _callee);
|
107
|
+
}));
|
108
|
+
return function processFiles(_x, _x2, _x3) {
|
109
|
+
return _ref2.apply(this, arguments);
|
110
|
+
};
|
111
|
+
}();
|
112
|
+
var handleDragEnter = function handleDragEnter(event) {
|
113
|
+
event.preventDefault();
|
114
|
+
event.stopPropagation();
|
115
|
+
if (onDragEnter) {
|
116
|
+
onDragEnter(event);
|
117
|
+
}
|
118
|
+
var rawFiles = event.dataTransfer.files;
|
119
|
+
if (rawFiles && rawFiles.length > 0) {
|
120
|
+
setIsDropzoneActive(true);
|
121
|
+
}
|
122
|
+
};
|
123
|
+
var handleDragLeave = function handleDragLeave(event) {
|
124
|
+
event.preventDefault();
|
125
|
+
if (onDragLeave) {
|
126
|
+
onDragLeave(event);
|
127
|
+
}
|
128
|
+
setIsDropzoneActive(false);
|
129
|
+
};
|
130
|
+
var handleDragOver = function handleDragOver(event) {
|
131
|
+
event.preventDefault();
|
132
|
+
if (onDragOver) {
|
133
|
+
onDragOver(event);
|
134
|
+
}
|
135
|
+
var rawFiles = event.dataTransfer.files;
|
136
|
+
if (!isDropzoneActive && rawFiles && rawFiles.length > 0) {
|
137
|
+
setIsDropzoneActive(true);
|
138
|
+
}
|
139
|
+
};
|
140
|
+
var handleDrop = /*#__PURE__*/function () {
|
141
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event) {
|
142
|
+
var rawFiles, afterAction;
|
143
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
144
|
+
while (1) switch (_context2.prev = _context2.next) {
|
145
|
+
case 0:
|
146
|
+
event.preventDefault();
|
147
|
+
event.persist();
|
148
|
+
rawFiles = event.dataTransfer.files;
|
149
|
+
afterAction = function afterAction() {
|
150
|
+
return event.dataTransfer.clearData();
|
151
|
+
};
|
152
|
+
_context2.next = 6;
|
153
|
+
return processFiles(rawFiles, onDrop, afterAction);
|
154
|
+
case 6:
|
155
|
+
case "end":
|
156
|
+
return _context2.stop();
|
157
|
+
}
|
158
|
+
}, _callee2);
|
159
|
+
}));
|
160
|
+
return function handleDrop(_x4) {
|
161
|
+
return _ref3.apply(this, arguments);
|
162
|
+
};
|
163
|
+
}();
|
164
|
+
var handleClick = function handleClick(event) {
|
165
|
+
if (!inputRef.current) {
|
166
|
+
return;
|
167
|
+
}
|
168
|
+
inputRef.current.click();
|
169
|
+
if (onClick) {
|
170
|
+
onClick(event);
|
171
|
+
}
|
172
|
+
};
|
173
|
+
var handleChange = /*#__PURE__*/function () {
|
174
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(event) {
|
175
|
+
var rawFiles;
|
176
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
177
|
+
while (1) switch (_context3.prev = _context3.next) {
|
178
|
+
case 0:
|
179
|
+
if (onChange) {
|
180
|
+
onChange(event);
|
181
|
+
}
|
182
|
+
rawFiles = event.target.files;
|
183
|
+
_context3.next = 4;
|
184
|
+
return processFiles(rawFiles, onChoseFiles);
|
185
|
+
case 4:
|
186
|
+
case "end":
|
187
|
+
return _context3.stop();
|
188
|
+
}
|
189
|
+
}, _callee3);
|
190
|
+
}));
|
191
|
+
return function handleChange(_x5) {
|
192
|
+
return _ref4.apply(this, arguments);
|
193
|
+
};
|
194
|
+
}();
|
195
|
+
return /*#__PURE__*/_react["default"].createElement(_Dropzone.StyledRoot, {
|
196
|
+
className: (0, _utils.cx)(className, isDropzoneActive && _Dropzone.classes.active, stretch && _Dropzone.classes.stretch),
|
197
|
+
tabIndex: 0,
|
198
|
+
onDragEnter: handleDragEnter,
|
199
|
+
onDragLeave: handleDragLeave,
|
200
|
+
onDragOver: handleDragOver,
|
201
|
+
onDrop: handleDrop,
|
202
|
+
onClick: handleClick,
|
203
|
+
style: _objectSpread(_objectSpread({}, style), {}, _defineProperty({}, _Dropzone.privateTokens.width, innerWidth))
|
204
|
+
}, /*#__PURE__*/_react["default"].createElement(_Dropzone.Content, null, /*#__PURE__*/_react["default"].createElement(_Dropzone.TitleWrapper, null, icon || _IconArrowBarDown || (_IconArrowBarDown = /*#__PURE__*/_react["default"].createElement(_Icon.IconArrowBarDown, {
|
205
|
+
color: "inherit",
|
206
|
+
size: "s"
|
207
|
+
})), title && /*#__PURE__*/_react["default"].createElement(_Dropzone.Title, null, title)), description && /*#__PURE__*/_react["default"].createElement(_Dropzone.Description, null, description)), /*#__PURE__*/_react["default"].createElement(_Dropzone.HiddenInput, _extends({
|
208
|
+
ref: forkInputRef,
|
209
|
+
type: "file",
|
210
|
+
accept: accept,
|
211
|
+
multiple: multiple,
|
212
|
+
tabIndex: -1,
|
213
|
+
onChange: handleChange
|
214
|
+
}, rest)));
|
215
|
+
});
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
2
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
import { action } from '@storybook/addon-actions';
|
4
|
+
import { disableProps } from '@salutejs/plasma-sb-utils';
|
5
|
+
|
6
|
+
import { WithTheme } from '../../../_helpers';
|
7
|
+
|
8
|
+
import { Dropzone } from './Dropzone';
|
9
|
+
|
10
|
+
const onDragEnter = action('onDragEnter');
|
11
|
+
const onDragLeave = action('onDragLeave');
|
12
|
+
const onDrop = action('onDrop');
|
13
|
+
const onDropFiles = action('onDropFiles');
|
14
|
+
const onChange = action('onChange');
|
15
|
+
const onChoseFiles = action('onChoseFiles');
|
16
|
+
|
17
|
+
const iconPlacement = ['top', 'left'];
|
18
|
+
|
19
|
+
const meta: Meta<typeof Dropzone> = {
|
20
|
+
title: 'plasma_b2c/Dropzone',
|
21
|
+
component: Dropzone,
|
22
|
+
decorators: [WithTheme],
|
23
|
+
argTypes: {
|
24
|
+
iconPlacement: {
|
25
|
+
control: {
|
26
|
+
type: 'inline-radio',
|
27
|
+
options: iconPlacement,
|
28
|
+
},
|
29
|
+
defaultValue: 'top',
|
30
|
+
},
|
31
|
+
...disableProps(['view', 'size']),
|
32
|
+
},
|
33
|
+
};
|
34
|
+
|
35
|
+
export default meta;
|
36
|
+
|
37
|
+
type StoryPropsDefault = ComponentProps<typeof Dropzone>;
|
38
|
+
|
39
|
+
export const Default: StoryObj<StoryPropsDefault> = {
|
40
|
+
args: {
|
41
|
+
iconPlacement: 'top',
|
42
|
+
width: 240,
|
43
|
+
disabled: false,
|
44
|
+
title: 'Click to upload',
|
45
|
+
description: 'or drag and drop files here',
|
46
|
+
},
|
47
|
+
render: (args) => (
|
48
|
+
<Dropzone
|
49
|
+
{...args}
|
50
|
+
onDragEnter={onDragEnter}
|
51
|
+
onDragLeave={onDragLeave}
|
52
|
+
onDrop={onDrop}
|
53
|
+
onDropFiles={onDropFiles}
|
54
|
+
onChange={onChange}
|
55
|
+
onChoseFiles={onChoseFiles}
|
56
|
+
/>
|
57
|
+
),
|
58
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.privateTokens = exports.classes = exports.TitleWrapper = exports.Title = exports.StyledRoot = exports.HiddenInput = exports.Description = exports.Content = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
|
+
var privateTokens = exports.privateTokens = {
|
10
|
+
width: '--plasma_private-dropzone-width'
|
11
|
+
};
|
12
|
+
var classes = exports.classes = {
|
13
|
+
stretch: 'dropzone-stretch',
|
14
|
+
active: 'dropzone-active'
|
15
|
+
};
|
16
|
+
var StyledRoot = exports.StyledRoot = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
17
|
+
componentId: "plasma-new-hope__sc-o8ygcm-0"
|
18
|
+
})(["padding:1.5rem;border-radius:1.25rem;border:1px dashed var(--outline-secondary);background:var(--surface-solid-card);height:8.75rem;width:var(", ");position:relative;display:flex;align-items:center;justify-content:center;&.", "{width:100%;}&:not(.", "):hover{border-color:#4a4a4a;}&.", "{border-color:var(--outline-accent);&:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:var(--overlay-soft);}}"], privateTokens.width, classes.stretch, classes.active, classes.active);
|
19
|
+
var Content = exports.Content = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
20
|
+
componentId: "plasma-new-hope__sc-o8ygcm-1"
|
21
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem;"]);
|
22
|
+
var TitleWrapper = exports.TitleWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
23
|
+
componentId: "plasma-new-hope__sc-o8ygcm-2"
|
24
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;color:var(--text-primary);"]);
|
25
|
+
var Title = exports.Title = /*#__PURE__*/_styledComponents["default"].span.withConfig({
|
26
|
+
componentId: "plasma-new-hope__sc-o8ygcm-3"
|
27
|
+
})(["font-family:var(--plasma-typo-body-h4-font-family);font-size:var(--plasma-typo-body-h4-font-size);font-style:var(--plasma-typo-body-h4-font-style);font-weight:var(--plasma-typo-body-h4-bold-font-weight);letter-spacing:var(--plasma-typo-body-h4-letter-spacing);line-height:var(--plasma-typo-body-h4-line-height);"]);
|
28
|
+
var Description = exports.Description = /*#__PURE__*/_styledComponents["default"].span.withConfig({
|
29
|
+
componentId: "plasma-new-hope__sc-o8ygcm-4"
|
30
|
+
})(["font-family:var(--plasma-typo-body-s-font-family);font-size:var(--plasma-typo-body-s-font-size);font-style:var(--plasma-typo-body-s-font-style);font-weight:var(--plasma-typo-body-s-font-weight);letter-spacing:var(--plasma-typo-body-s-letter-spacing);line-height:var(--plasma-typo-body-s-line-height);color:var(--text-secondary);"]);
|
31
|
+
var HiddenInput = exports.HiddenInput = /*#__PURE__*/_styledComponents["default"].input.withConfig({
|
32
|
+
componentId: "plasma-new-hope__sc-o8ygcm-5"
|
33
|
+
})(["display:none;"]);
|