@salutejs/plasma-new-hope 0.149.0-canary.1421.10954838350.0 → 0.149.0-canary.1437.10953371299.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Attach/Attach.css +48 -0
- package/cjs/components/Attach/Attach.js +182 -0
- package/cjs/components/Attach/Attach.js.map +1 -0
- package/cjs/components/Attach/Attach.styles.js +23 -0
- package/cjs/components/Attach/Attach.styles.js.map +1 -0
- package/cjs/components/Attach/Attach.styles_fl8wha.css +3 -0
- package/cjs/components/Attach/Attach.tokens.js +130 -0
- package/cjs/components/Attach/Attach.tokens.js.map +1 -0
- package/cjs/components/Attach/components/AttachButton/AttachButton.css +34 -0
- package/cjs/components/Attach/components/AttachButton/AttachButton.js +49 -0
- package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -0
- package/cjs/components/Attach/ui/Button/Button.styles.js +23 -0
- package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -0
- package/cjs/components/Attach/ui/Button/Button.styles_bj69th.css +1 -0
- package/cjs/components/Attach/ui/Cell/Cell.styles.js +25 -0
- package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -0
- package/cjs/components/Attach/ui/Cell/Cell.styles_69w962.css +1 -0
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +32 -0
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -0
- package/cjs/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +2 -0
- package/cjs/components/Attach/utils/extractExtension.js +10 -0
- package/cjs/components/Attach/utils/extractExtension.js.map +1 -0
- package/cjs/components/Attach/utils/getFileicon.js +45 -0
- package/cjs/components/Attach/utils/getFileicon.js.map +1 -0
- package/cjs/components/Attach/utils/truncateFilename.js +24 -0
- package/cjs/components/Attach/utils/truncateFilename.js.map +1 -0
- package/cjs/components/Attach/variations/_size/base.js +9 -0
- package/cjs/components/Attach/variations/_size/base.js.map +1 -0
- package/cjs/components/Attach/variations/_size/base_eax0b8.css +1 -0
- package/cjs/components/Attach/variations/_view/base.js +9 -0
- package/cjs/components/Attach/variations/_view/base.js.map +1 -0
- package/cjs/components/Attach/variations/_view/base_1nvsg1b.css +1 -0
- package/cjs/components/Cell/Cell.js +3 -2
- package/cjs/components/Cell/Cell.js.map +1 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.js +2 -39
- package/cjs/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.js +2 -26
- package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/cjs/components/Slider/Slider.js +6 -20
- package/cjs/components/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.js +2 -38
- package/cjs/components/Slider/components/Double/Double.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.js +12 -35
- package/cjs/components/Slider/components/Single/Single.js.map +1 -1
- package/cjs/components/Slider/utils/index.js +0 -6
- package/cjs/components/Slider/utils/index.js.map +1 -1
- package/cjs/components/TextArea/TextArea.js +2 -3
- package/cjs/components/TextArea/TextArea.js.map +1 -1
- package/cjs/components/TextField/TextField.js +1 -3
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +33 -0
- package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +37 -0
- package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/BlankOutline.js +24 -0
- package/cjs/components/_Icon/Icon.assets/BlankOutline.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +29 -0
- package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +33 -0
- package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +33 -0
- package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +24 -0
- package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/Plus.js +24 -0
- package/cjs/components/_Icon/Icon.assets/Plus.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +23 -0
- package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconBlankDocOutline.js +23 -0
- package/cjs/components/_Icon/Icons/IconBlankDocOutline.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconBlankOutline.js +23 -0
- package/cjs/components/_Icon/Icons/IconBlankOutline.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +23 -0
- package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +23 -0
- package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +23 -0
- package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +23 -0
- package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js.map +1 -0
- package/cjs/components/_Icon/Icons/IconPlus.js +23 -0
- package/cjs/components/_Icon/Icons/IconPlus.js.map +1 -0
- package/cjs/index.css +15 -0
- package/cjs/index.js +5 -7
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js.map +1 -1
- package/emotion/cjs/components/Attach/Attach.js +187 -0
- package/emotion/cjs/components/Attach/Attach.styles.js +36 -0
- package/emotion/cjs/components/Attach/Attach.template-doc.mdx +63 -0
- package/emotion/cjs/components/Attach/Attach.tokens.js +128 -0
- package/emotion/cjs/components/Attach/components/AttachButton/AttachButton.js +51 -0
- package/emotion/cjs/components/Attach/components/AttachButton/index.js +12 -0
- package/emotion/cjs/components/Attach/index.js +25 -0
- package/emotion/cjs/components/Attach/ui/Button/Button.js +12 -0
- package/emotion/cjs/components/Attach/ui/Button/Button.styles.js +17 -0
- package/{styled-components/cjs/components/Mask/index.js → emotion/cjs/components/Attach/ui/Cell/Cell.js} +3 -3
- package/emotion/cjs/components/Attach/ui/Cell/Cell.styles.js +17 -0
- package/emotion/cjs/components/Attach/ui/IconButton/IconButton.js +12 -0
- package/emotion/cjs/components/Attach/ui/IconButton/IconButton.styles.js +21 -0
- package/emotion/cjs/components/Attach/utils/extractExtension.js +9 -0
- package/emotion/cjs/components/Attach/utils/getFileicon.js +38 -0
- package/emotion/cjs/components/Attach/utils/index.js +26 -0
- package/emotion/cjs/components/Attach/utils/truncateFilename.js +23 -0
- package/emotion/cjs/components/Attach/variations/_size/base.js +9 -0
- package/emotion/cjs/components/Attach/variations/_view/base.js +9 -0
- package/emotion/cjs/components/Cell/Cell.js +3 -2
- package/emotion/cjs/components/DatePicker/RangeDate/RangeDate.js +2 -39
- package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +2 -26
- package/emotion/cjs/components/Slider/Slider.js +6 -15
- package/emotion/cjs/components/Slider/components/Double/Double.js +2 -38
- package/emotion/cjs/components/Slider/components/Single/Single.js +7 -30
- package/emotion/cjs/components/Slider/components/index.js +0 -11
- package/emotion/cjs/components/Slider/utils/index.js +1 -6
- package/emotion/cjs/components/TextArea/TextArea.js +3 -3
- package/emotion/cjs/components/TextField/TextField.js +2 -4
- package/emotion/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +32 -0
- package/emotion/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +36 -0
- package/emotion/cjs/components/_Icon/Icon.assets/BlankOutline.js +23 -0
- package/emotion/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +28 -0
- package/emotion/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +32 -0
- package/emotion/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +32 -0
- package/emotion/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +23 -0
- package/emotion/cjs/components/_Icon/Icon.assets/Plus.js +23 -0
- package/emotion/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconBlankDocOutline.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconBlankOutline.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconPlus.js +22 -0
- package/emotion/cjs/components/_Icon/index.js +57 -1
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +37 -0
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.js +11 -0
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +181 -0
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.config.js +37 -0
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.js +11 -0
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +181 -0
- package/emotion/cjs/hooks/index.js +1 -8
- package/emotion/cjs/index.js +4 -4
- package/emotion/cjs/utils/index.js +0 -15
- package/emotion/es/components/Attach/Attach.js +178 -0
- package/emotion/es/components/Attach/Attach.styles.js +29 -0
- package/emotion/es/components/Attach/Attach.template-doc.mdx +63 -0
- package/emotion/es/components/Attach/Attach.tokens.js +122 -0
- package/emotion/es/components/Attach/components/AttachButton/AttachButton.js +42 -0
- package/emotion/es/components/Attach/components/AttachButton/index.js +1 -0
- package/emotion/es/components/Attach/index.js +2 -0
- package/emotion/es/components/Attach/ui/Button/Button.js +1 -0
- package/emotion/es/components/Attach/ui/Button/Button.styles.js +10 -0
- package/emotion/es/components/Attach/ui/Cell/Cell.js +1 -0
- package/emotion/es/components/Attach/ui/Cell/Cell.styles.js +10 -0
- package/emotion/es/components/Attach/ui/IconButton/IconButton.js +1 -0
- package/emotion/es/components/Attach/ui/IconButton/IconButton.styles.js +14 -0
- package/emotion/es/components/Attach/utils/extractExtension.js +3 -0
- package/emotion/es/components/Attach/utils/getFileicon.js +31 -0
- package/emotion/es/components/Attach/utils/index.js +3 -0
- package/emotion/es/components/Attach/utils/truncateFilename.js +17 -0
- package/emotion/es/components/Attach/variations/_size/base.js +3 -0
- package/emotion/es/components/Attach/variations/_view/base.js +3 -0
- package/emotion/es/components/Cell/Cell.js +3 -2
- package/emotion/es/components/DatePicker/RangeDate/RangeDate.js +2 -39
- package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +2 -26
- package/emotion/es/components/Slider/Slider.js +6 -16
- package/emotion/es/components/Slider/components/Double/Double.js +3 -39
- package/emotion/es/components/Slider/components/Single/Single.js +8 -31
- package/emotion/es/components/Slider/components/index.js +0 -1
- package/emotion/es/components/Slider/utils/index.js +0 -5
- package/emotion/es/components/TextArea/TextArea.js +4 -4
- package/emotion/es/components/TextField/TextField.js +2 -4
- package/emotion/es/components/_Icon/Icon.assets/BlankCsvOutline.js +25 -0
- package/emotion/es/components/_Icon/Icon.assets/BlankDocOutline.js +29 -0
- package/emotion/es/components/_Icon/Icon.assets/BlankOutline.js +16 -0
- package/emotion/es/components/_Icon/Icon.assets/BlankPdfOutline.js +21 -0
- package/emotion/es/components/_Icon/Icon.assets/BlankTxtOutline.js +25 -0
- package/emotion/es/components/_Icon/Icon.assets/BlankXlsOutline.js +25 -0
- package/emotion/es/components/_Icon/Icon.assets/CloseCircleOutline.js +16 -0
- package/emotion/es/components/_Icon/Icon.assets/Plus.js +16 -0
- package/emotion/es/components/_Icon/Icons/IconBlankCsvOutline.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconBlankDocOutline.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconBlankOutline.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconBlankPdfOutline.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconBlankTxtOutline.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconBlankXlsOutline.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconCloseCircleOutline.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconPlus.js +15 -0
- package/emotion/es/components/_Icon/index.js +9 -1
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.config.js +31 -0
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.js +5 -0
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +181 -0
- package/emotion/es/examples/plasma_web/components/Attach/Attach.config.js +31 -0
- package/emotion/es/examples/plasma_web/components/Attach/Attach.js +5 -0
- package/emotion/es/examples/plasma_web/components/Attach/Attach.stories.tsx +181 -0
- package/emotion/es/hooks/index.js +1 -2
- package/emotion/es/index.js +1 -1
- package/emotion/es/utils/index.js +0 -1
- package/es/components/Attach/Attach.css +48 -0
- package/es/components/Attach/Attach.js +177 -0
- package/es/components/Attach/Attach.js.map +1 -0
- package/es/components/Attach/Attach.styles.js +17 -0
- package/es/components/Attach/Attach.styles.js.map +1 -0
- package/es/components/Attach/Attach.styles_fl8wha.css +3 -0
- package/es/components/Attach/Attach.tokens.js +125 -0
- package/es/components/Attach/Attach.tokens.js.map +1 -0
- package/es/components/Attach/components/AttachButton/AttachButton.css +34 -0
- package/es/components/Attach/components/AttachButton/AttachButton.js +45 -0
- package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -0
- package/es/components/Attach/ui/Button/Button.styles.js +19 -0
- package/es/components/Attach/ui/Button/Button.styles.js.map +1 -0
- package/es/components/Attach/ui/Button/Button.styles_bj69th.css +1 -0
- package/es/components/Attach/ui/Cell/Cell.styles.js +21 -0
- package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -0
- package/es/components/Attach/ui/Cell/Cell.styles_69w962.css +1 -0
- package/es/components/Attach/ui/IconButton/IconButton.styles.js +27 -0
- package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -0
- package/es/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +2 -0
- package/es/components/Attach/utils/extractExtension.js +6 -0
- package/es/components/Attach/utils/extractExtension.js.map +1 -0
- package/es/components/Attach/utils/getFileicon.js +41 -0
- package/es/components/Attach/utils/getFileicon.js.map +1 -0
- package/es/components/Attach/utils/truncateFilename.js +20 -0
- package/es/components/Attach/utils/truncateFilename.js.map +1 -0
- package/es/components/Attach/variations/_size/base.js +5 -0
- package/es/components/Attach/variations/_size/base.js.map +1 -0
- package/es/components/Attach/variations/_size/base_eax0b8.css +1 -0
- package/es/components/Attach/variations/_view/base.js +5 -0
- package/es/components/Attach/variations/_view/base.js.map +1 -0
- package/es/components/Attach/variations/_view/base_1nvsg1b.css +1 -0
- package/es/components/Cell/Cell.js +3 -2
- package/es/components/Cell/Cell.js.map +1 -1
- package/es/components/DatePicker/RangeDate/RangeDate.js +2 -39
- package/es/components/DatePicker/RangeDate/RangeDate.js.map +1 -1
- package/es/components/DatePicker/SingleDate/SingleDate.js +2 -26
- package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
- package/es/components/Slider/Slider.js +7 -21
- package/es/components/Slider/Slider.js.map +1 -1
- package/es/components/Slider/components/Double/Double.js +3 -39
- package/es/components/Slider/components/Double/Double.js.map +1 -1
- package/es/components/Slider/components/Single/Single.js +8 -31
- package/es/components/Slider/components/Single/Single.js.map +1 -1
- package/es/components/Slider/utils/index.js +1 -6
- package/es/components/Slider/utils/index.js.map +1 -1
- package/es/components/TextArea/TextArea.js +2 -3
- package/es/components/TextArea/TextArea.js.map +1 -1
- package/es/components/TextField/TextField.js +1 -3
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/_Icon/Icon.assets/BlankCsvOutline.js +29 -0
- package/es/components/_Icon/Icon.assets/BlankCsvOutline.js.map +1 -0
- package/es/components/_Icon/Icon.assets/BlankDocOutline.js +33 -0
- package/es/components/_Icon/Icon.assets/BlankDocOutline.js.map +1 -0
- package/es/components/_Icon/Icon.assets/BlankOutline.js +20 -0
- package/es/components/_Icon/Icon.assets/BlankOutline.js.map +1 -0
- package/es/components/_Icon/Icon.assets/BlankPdfOutline.js +25 -0
- package/es/components/_Icon/Icon.assets/BlankPdfOutline.js.map +1 -0
- package/es/components/_Icon/Icon.assets/BlankTxtOutline.js +29 -0
- package/es/components/_Icon/Icon.assets/BlankTxtOutline.js.map +1 -0
- package/es/components/_Icon/Icon.assets/BlankXlsOutline.js +29 -0
- package/es/components/_Icon/Icon.assets/BlankXlsOutline.js.map +1 -0
- package/es/components/_Icon/Icon.assets/CloseCircleOutline.js +20 -0
- package/es/components/_Icon/Icon.assets/CloseCircleOutline.js.map +1 -0
- package/es/components/_Icon/Icon.assets/Plus.js +20 -0
- package/es/components/_Icon/Icon.assets/Plus.js.map +1 -0
- package/es/components/_Icon/Icons/IconBlankCsvOutline.js +19 -0
- package/es/components/_Icon/Icons/IconBlankCsvOutline.js.map +1 -0
- package/es/components/_Icon/Icons/IconBlankDocOutline.js +19 -0
- package/es/components/_Icon/Icons/IconBlankDocOutline.js.map +1 -0
- package/es/components/_Icon/Icons/IconBlankOutline.js +19 -0
- package/es/components/_Icon/Icons/IconBlankOutline.js.map +1 -0
- package/es/components/_Icon/Icons/IconBlankPdfOutline.js +19 -0
- package/es/components/_Icon/Icons/IconBlankPdfOutline.js.map +1 -0
- package/es/components/_Icon/Icons/IconBlankTxtOutline.js +19 -0
- package/es/components/_Icon/Icons/IconBlankTxtOutline.js.map +1 -0
- package/es/components/_Icon/Icons/IconBlankXlsOutline.js +19 -0
- package/es/components/_Icon/Icons/IconBlankXlsOutline.js.map +1 -0
- package/es/components/_Icon/Icons/IconCloseCircleOutline.js +19 -0
- package/es/components/_Icon/Icons/IconCloseCircleOutline.js.map +1 -0
- package/es/components/_Icon/Icons/IconPlus.js +19 -0
- package/es/components/_Icon/Icons/IconPlus.js.map +1 -0
- package/es/index.css +15 -0
- package/es/index.js +2 -3
- package/es/index.js.map +1 -1
- package/es/utils/index.js.map +1 -1
- package/package.json +2 -5
- package/styled-components/cjs/components/Attach/Attach.js +187 -0
- package/styled-components/cjs/components/Attach/Attach.styles.js +18 -0
- package/styled-components/cjs/components/Attach/Attach.template-doc.mdx +63 -0
- package/styled-components/cjs/components/Attach/Attach.tokens.js +128 -0
- package/styled-components/cjs/components/Attach/components/AttachButton/AttachButton.js +51 -0
- package/styled-components/cjs/components/Attach/components/AttachButton/index.js +12 -0
- package/styled-components/cjs/components/Attach/index.js +25 -0
- package/styled-components/cjs/components/Attach/ui/Button/Button.js +12 -0
- package/styled-components/cjs/components/Attach/ui/Button/Button.styles.js +16 -0
- package/{emotion/cjs/components/Mask/index.js → styled-components/cjs/components/Attach/ui/Cell/Cell.js} +3 -3
- package/styled-components/cjs/components/Attach/ui/Cell/Cell.styles.js +16 -0
- package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.js +12 -0
- package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.styles.js +19 -0
- package/styled-components/cjs/components/Attach/utils/extractExtension.js +9 -0
- package/styled-components/cjs/components/Attach/utils/getFileicon.js +38 -0
- package/styled-components/cjs/components/Attach/utils/index.js +26 -0
- package/styled-components/cjs/components/Attach/utils/truncateFilename.js +23 -0
- package/styled-components/cjs/components/Attach/variations/_size/base.js +9 -0
- package/styled-components/cjs/components/Attach/variations/_view/base.js +9 -0
- package/styled-components/cjs/components/Cell/Cell.js +3 -2
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDate.js +2 -39
- package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +2 -26
- package/styled-components/cjs/components/Slider/Slider.js +6 -15
- package/styled-components/cjs/components/Slider/components/Double/Double.js +2 -38
- package/styled-components/cjs/components/Slider/components/Single/Single.js +7 -30
- package/styled-components/cjs/components/Slider/components/index.js +0 -11
- package/styled-components/cjs/components/Slider/utils/index.js +1 -6
- package/styled-components/cjs/components/TextArea/TextArea.js +2 -2
- package/styled-components/cjs/components/TextField/TextField.js +1 -3
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +32 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +36 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankOutline.js +23 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +28 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +32 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +32 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +23 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/Plus.js +23 -0
- package/styled-components/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconBlankDocOutline.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconBlankOutline.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconPlus.js +22 -0
- package/styled-components/cjs/components/_Icon/index.js +57 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +37 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.js +11 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +181 -0
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.config.js +37 -0
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.js +11 -0
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +181 -0
- package/styled-components/cjs/hooks/index.js +1 -8
- package/styled-components/cjs/index.js +4 -4
- package/styled-components/cjs/utils/index.js +0 -15
- package/styled-components/es/components/Attach/Attach.js +178 -0
- package/styled-components/es/components/Attach/Attach.styles.js +10 -0
- package/styled-components/es/components/Attach/Attach.template-doc.mdx +63 -0
- package/styled-components/es/components/Attach/Attach.tokens.js +122 -0
- package/styled-components/es/components/Attach/components/AttachButton/AttachButton.js +42 -0
- package/styled-components/es/components/Attach/components/AttachButton/index.js +1 -0
- package/styled-components/es/components/Attach/index.js +2 -0
- package/styled-components/es/components/Attach/ui/Button/Button.js +1 -0
- package/styled-components/es/components/Attach/ui/Button/Button.styles.js +9 -0
- package/styled-components/es/components/Attach/ui/Cell/Cell.js +1 -0
- package/styled-components/es/components/Attach/ui/Cell/Cell.styles.js +9 -0
- package/styled-components/es/components/Attach/ui/IconButton/IconButton.js +1 -0
- package/styled-components/es/components/Attach/ui/IconButton/IconButton.styles.js +12 -0
- package/styled-components/es/components/Attach/utils/extractExtension.js +3 -0
- package/styled-components/es/components/Attach/utils/getFileicon.js +31 -0
- package/styled-components/es/components/Attach/utils/index.js +3 -0
- package/styled-components/es/components/Attach/utils/truncateFilename.js +17 -0
- package/styled-components/es/components/Attach/variations/_size/base.js +3 -0
- package/styled-components/es/components/Attach/variations/_view/base.js +3 -0
- package/styled-components/es/components/Cell/Cell.js +3 -2
- package/styled-components/es/components/DatePicker/RangeDate/RangeDate.js +2 -39
- package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +2 -26
- package/styled-components/es/components/Slider/Slider.js +6 -16
- package/styled-components/es/components/Slider/components/Double/Double.js +3 -39
- package/styled-components/es/components/Slider/components/Single/Single.js +8 -31
- package/styled-components/es/components/Slider/components/index.js +0 -1
- package/styled-components/es/components/Slider/utils/index.js +0 -5
- package/styled-components/es/components/TextArea/TextArea.js +3 -3
- package/styled-components/es/components/TextField/TextField.js +1 -3
- package/styled-components/es/components/_Icon/Icon.assets/BlankCsvOutline.js +25 -0
- package/styled-components/es/components/_Icon/Icon.assets/BlankDocOutline.js +29 -0
- package/styled-components/es/components/_Icon/Icon.assets/BlankOutline.js +16 -0
- package/styled-components/es/components/_Icon/Icon.assets/BlankPdfOutline.js +21 -0
- package/styled-components/es/components/_Icon/Icon.assets/BlankTxtOutline.js +25 -0
- package/styled-components/es/components/_Icon/Icon.assets/BlankXlsOutline.js +25 -0
- package/styled-components/es/components/_Icon/Icon.assets/CloseCircleOutline.js +16 -0
- package/styled-components/es/components/_Icon/Icon.assets/Plus.js +16 -0
- package/styled-components/es/components/_Icon/Icons/IconBlankCsvOutline.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconBlankDocOutline.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconBlankOutline.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconBlankPdfOutline.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconBlankTxtOutline.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconBlankXlsOutline.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconCloseCircleOutline.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconPlus.js +15 -0
- package/styled-components/es/components/_Icon/index.js +9 -1
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.config.js +31 -0
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.js +5 -0
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +181 -0
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.config.js +31 -0
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.js +5 -0
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.stories.tsx +181 -0
- package/styled-components/es/hooks/index.js +1 -2
- package/styled-components/es/index.js +1 -1
- package/styled-components/es/utils/index.js +0 -1
- package/types/components/Attach/Attach.d.ts +23 -0
- package/types/components/Attach/Attach.d.ts.map +1 -0
- package/types/components/Attach/Attach.styles.d.ts +5 -0
- package/types/components/Attach/Attach.styles.d.ts.map +1 -0
- package/types/components/Attach/Attach.tokens.d.ts +119 -0
- package/types/components/Attach/Attach.tokens.d.ts.map +1 -0
- package/types/components/Attach/Attach.types.d.ts +43 -0
- package/types/components/Attach/Attach.types.d.ts.map +1 -0
- package/types/components/Attach/components/AttachButton/AttachButton.d.ts +4 -0
- package/types/components/Attach/components/AttachButton/AttachButton.d.ts.map +1 -0
- package/types/components/Attach/components/AttachButton/index.d.ts +2 -0
- package/types/components/Attach/components/AttachButton/index.d.ts.map +1 -0
- package/types/components/Attach/index.d.ts +4 -0
- package/types/components/Attach/index.d.ts.map +1 -0
- package/types/components/Attach/ui/Button/Button.d.ts +2 -0
- package/types/components/Attach/ui/Button/Button.d.ts.map +1 -0
- package/types/components/Attach/ui/Button/Button.styles.d.ts +45 -0
- package/types/components/Attach/ui/Button/Button.styles.d.ts.map +1 -0
- package/types/components/Attach/ui/Cell/Cell.d.ts +2 -0
- package/types/components/Attach/ui/Cell/Cell.d.ts.map +1 -0
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts +33 -0
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts.map +1 -0
- package/types/components/Attach/ui/IconButton/IconButton.d.ts +2 -0
- package/types/components/Attach/ui/IconButton/IconButton.d.ts.map +1 -0
- package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +88 -0
- package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts.map +1 -0
- package/types/components/Attach/utils/extractExtension.d.ts +2 -0
- package/types/components/Attach/utils/extractExtension.d.ts.map +1 -0
- package/types/components/Attach/utils/getFileicon.d.ts +3 -0
- package/types/components/Attach/utils/getFileicon.d.ts.map +1 -0
- package/types/components/Attach/utils/index.d.ts +4 -0
- package/types/components/Attach/utils/index.d.ts.map +1 -0
- package/types/components/Attach/utils/truncateFilename.d.ts +7 -0
- package/types/components/Attach/utils/truncateFilename.d.ts.map +1 -0
- package/types/components/Attach/variations/_size/base.d.ts +2 -0
- package/types/components/Attach/variations/_size/base.d.ts.map +1 -0
- package/types/components/Attach/variations/_view/base.d.ts +2 -0
- package/types/components/Attach/variations/_view/base.d.ts.map +1 -0
- package/types/components/Cell/Cell.d.ts.map +1 -1
- package/types/components/Cell/Cell.types.d.ts +1 -1
- package/types/components/Cell/Cell.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts +2 -2
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts +0 -2
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +0 -4
- package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +0 -4
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
- package/types/components/Slider/Slider.d.ts.map +1 -1
- package/types/components/Slider/Slider.types.d.ts +2 -2
- package/types/components/Slider/Slider.types.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.types.d.ts +0 -2
- package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.types.d.ts +1 -3
- package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
- package/types/components/Slider/components/index.d.ts +0 -2
- package/types/components/Slider/components/index.d.ts.map +1 -1
- package/types/components/Slider/utils/index.d.ts +0 -1
- package/types/components/Slider/utils/index.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/BlankOutline.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/BlankOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/Plus.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/Plus.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts +4 -0
- package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts +4 -0
- package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconBlankOutline.d.ts +4 -0
- package/types/components/_Icon/Icons/IconBlankOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts +4 -0
- package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts +4 -0
- package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts +4 -0
- package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts +4 -0
- package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconPlus.d.ts +4 -0
- package/types/components/_Icon/Icons/IconPlus.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +8 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts +30 -0
- package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +224 -0
- package/types/examples/plasma_b2c/components/Attach/Attach.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +2 -2
- package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +0 -1
- package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +1 -3
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Attach/Attach.config.d.ts +30 -0
- package/types/examples/plasma_web/components/Attach/Attach.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Attach/Attach.d.ts +224 -0
- package/types/examples/plasma_web/components/Attach/Attach.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Cell/Cell.d.ts +2 -2
- package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +0 -1
- package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Slider/Slider.d.ts +1 -3
- package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
- package/types/hooks/index.d.ts +0 -1
- package/types/hooks/index.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/utils/index.d.ts +0 -1
- package/types/utils/index.d.ts.map +1 -1
- package/cjs/components/DatePicker/utils/setInitValue.js +0 -12
- package/cjs/components/DatePicker/utils/setInitValue.js.map +0 -1
- package/cjs/components/Mask/Mask.js +0 -45
- package/cjs/components/Mask/Mask.js.map +0 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -57
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +0 -1
- package/cjs/hooks/useForm.js +0 -131
- package/cjs/hooks/useForm.js.map +0 -1
- package/cjs/utils/inputHidden.js +0 -13
- package/cjs/utils/inputHidden.js.map +0 -1
- package/cjs/utils/setRefList.js +0 -28
- package/cjs/utils/setRefList.js.map +0 -1
- package/emotion/cjs/components/DatePicker/utils/setInitValue.js +0 -11
- package/emotion/cjs/components/Mask/Mask.js +0 -55
- package/emotion/cjs/components/Mask/Mask.template-doc.mdx +0 -125
- package/emotion/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -60
- package/emotion/cjs/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -245
- package/emotion/cjs/examples/plasma_b2c/components/Mask/Mask.js +0 -9
- package/emotion/cjs/examples/plasma_b2c/components/Mask/Mask.stories.tsx +0 -127
- package/emotion/cjs/examples/plasma_web/components/Form/Form.stories.tsx +0 -245
- package/emotion/cjs/examples/plasma_web/components/Mask/Mask.js +0 -9
- package/emotion/cjs/examples/plasma_web/components/Mask/Mask.stories.tsx +0 -125
- package/emotion/cjs/hooks/useForm.js +0 -137
- package/emotion/cjs/utils/inputHidden.js +0 -11
- package/emotion/cjs/utils/setRefList.js +0 -27
- package/emotion/es/components/DatePicker/utils/setInitValue.js +0 -5
- package/emotion/es/components/Mask/Mask.js +0 -45
- package/emotion/es/components/Mask/Mask.template-doc.mdx +0 -125
- package/emotion/es/components/Mask/index.js +0 -1
- package/emotion/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -51
- package/emotion/es/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -245
- package/emotion/es/examples/plasma_b2c/components/Mask/Mask.js +0 -3
- package/emotion/es/examples/plasma_b2c/components/Mask/Mask.stories.tsx +0 -127
- package/emotion/es/examples/plasma_web/components/Form/Form.stories.tsx +0 -245
- package/emotion/es/examples/plasma_web/components/Mask/Mask.js +0 -3
- package/emotion/es/examples/plasma_web/components/Mask/Mask.stories.tsx +0 -125
- package/emotion/es/hooks/useForm.js +0 -128
- package/emotion/es/utils/inputHidden.js +0 -5
- package/emotion/es/utils/setRefList.js +0 -20
- package/es/components/DatePicker/utils/setInitValue.js +0 -8
- package/es/components/DatePicker/utils/setInitValue.js.map +0 -1
- package/es/components/Mask/Mask.js +0 -41
- package/es/components/Mask/Mask.js.map +0 -1
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -53
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +0 -1
- package/es/hooks/useForm.js +0 -127
- package/es/hooks/useForm.js.map +0 -1
- package/es/utils/inputHidden.js +0 -9
- package/es/utils/inputHidden.js.map +0 -1
- package/es/utils/setRefList.js +0 -23
- package/es/utils/setRefList.js.map +0 -1
- package/styled-components/cjs/components/DatePicker/utils/setInitValue.js +0 -11
- package/styled-components/cjs/components/Mask/Mask.js +0 -55
- package/styled-components/cjs/components/Mask/Mask.template-doc.mdx +0 -125
- package/styled-components/cjs/components/Mask/Mask.types.js +0 -5
- package/styled-components/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -60
- package/styled-components/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.js +0 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -245
- package/styled-components/cjs/examples/plasma_b2c/components/Mask/Mask.js +0 -9
- package/styled-components/cjs/examples/plasma_b2c/components/Mask/Mask.stories.tsx +0 -127
- package/styled-components/cjs/examples/plasma_web/components/Form/Form.stories.tsx +0 -245
- package/styled-components/cjs/examples/plasma_web/components/Mask/Mask.js +0 -9
- package/styled-components/cjs/examples/plasma_web/components/Mask/Mask.stories.tsx +0 -125
- package/styled-components/cjs/hooks/useForm.js +0 -137
- package/styled-components/cjs/utils/inputHidden.js +0 -13
- package/styled-components/cjs/utils/setRefList.js +0 -27
- package/styled-components/es/components/DatePicker/utils/setInitValue.js +0 -5
- package/styled-components/es/components/Mask/Mask.js +0 -45
- package/styled-components/es/components/Mask/Mask.template-doc.mdx +0 -125
- package/styled-components/es/components/Mask/Mask.types.js +0 -1
- package/styled-components/es/components/Mask/index.js +0 -1
- package/styled-components/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -51
- package/styled-components/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.js +0 -1
- package/styled-components/es/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -245
- package/styled-components/es/examples/plasma_b2c/components/Mask/Mask.js +0 -3
- package/styled-components/es/examples/plasma_b2c/components/Mask/Mask.stories.tsx +0 -127
- package/styled-components/es/examples/plasma_web/components/Form/Form.stories.tsx +0 -245
- package/styled-components/es/examples/plasma_web/components/Mask/Mask.js +0 -3
- package/styled-components/es/examples/plasma_web/components/Mask/Mask.stories.tsx +0 -125
- package/styled-components/es/hooks/useForm.js +0 -128
- package/styled-components/es/utils/inputHidden.js +0 -5
- package/styled-components/es/utils/setRefList.js +0 -20
- package/types/components/DatePicker/utils/setInitValue.d.ts +0 -2
- package/types/components/DatePicker/utils/setInitValue.d.ts.map +0 -1
- package/types/components/Mask/Mask.d.ts +0 -5
- package/types/components/Mask/Mask.d.ts.map +0 -1
- package/types/components/Mask/Mask.types.d.ts +0 -62
- package/types/components/Mask/Mask.types.d.ts.map +0 -1
- package/types/components/Mask/index.d.ts +0 -2
- package/types/components/Mask/index.d.ts.map +0 -1
- package/types/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.d.ts +0 -4
- package/types/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.d.ts.map +0 -1
- package/types/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.d.ts +0 -5
- package/types/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +0 -191
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Mask/Mask.d.ts +0 -191
- package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +0 -1
- package/types/hooks/useForm.d.ts +0 -10
- package/types/hooks/useForm.d.ts.map +0 -1
- package/types/utils/inputHidden.d.ts +0 -2
- package/types/utils/inputHidden.d.ts.map +0 -1
- package/types/utils/setRefList.d.ts +0 -6
- package/types/utils/setRefList.d.ts.map +0 -1
- /package/emotion/cjs/components/{Mask/Mask.types.js → Attach/Attach.types.js} +0 -0
- /package/emotion/es/components/{Mask/Mask.types.js → Attach/Attach.types.js} +0 -0
- /package/{emotion/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.js → styled-components/cjs/components/Attach/Attach.types.js} +0 -0
- /package/{emotion/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.js → styled-components/es/components/Attach/Attach.types.js} +0 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
+
var _Attach = /*#__PURE__*/require("../../../../components/Attach");
|
9
|
+
var config = exports.config = {
|
10
|
+
defaults: {
|
11
|
+
view: 'default',
|
12
|
+
focused: 'true',
|
13
|
+
size: 'm'
|
14
|
+
},
|
15
|
+
variations: {
|
16
|
+
view: {
|
17
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--inverse-text-secondary);", ":var(--surface-solid-default);", ":var(", ");", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(", ");", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
18
|
+
accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-accent);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
19
|
+
secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-transparent-secondary);", ":var(", ");", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(", ");", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
20
|
+
clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
21
|
+
positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-positive);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-positive-hover);", ":var(--on-dark-text-primary);", ":var(--surface-positive-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
22
|
+
success: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-positive-hover);", ":var(--on-dark-text-primary);", ":var(--surface-positive-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
23
|
+
warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-warning);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-warning-hover);", ":var(--on-dark-text-primary);", ":var(--surface-warning-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-warning-hover);", ":var(--on-dark-text-primary);", ":var(--surface-warning-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
24
|
+
critical: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--on-dark-text-primary);", ":var(--surface-negative);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-negative-hover);", ":var(--on-dark-text-primary);", ":var(--surface-negative-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
25
|
+
negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-negative);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--surface-negative-hover);", ":var(--on-dark-text-primary);", ":var(--surface-negative-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
26
|
+
dark: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--on-light-surface-transparent-deep);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-transparent-deep-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
27
|
+
black: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--on-light-surface-solid-default);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default);", ":var(", ");", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-hover);", ":var(--on-dark-text-primary);", ":var(--on-light-surface-solid-default-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor),
|
28
|
+
white: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-light-text-primary);", ":var(--on-light-text-secondary);", ":var(--on-dark-surface-solid-default);", ":var(", ");", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(", ");", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-hover);", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default-active);", ":0.4;", ":var(--surface-accent);", ":var(--text-primary);", ":var(--surface-clear);", ":var(", ");", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);", ":0.4;", ":var(--surface-accent);"], _Attach.attachTokens.buttonColor, _Attach.attachTokens.buttonValueColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonLoadingBackgroundColor, _Attach.attachTokens.buttonBackgroundColor, _Attach.attachTokens.buttonColorHover, _Attach.attachTokens.buttonBackgroundColorHover, _Attach.attachTokens.buttonColorActive, _Attach.attachTokens.buttonBackgroundColorActive, _Attach.attachTokens.buttonDisabledOpacity, _Attach.attachTokens.buttonFocusColor, _Attach.attachTokens.cellColor, _Attach.attachTokens.cellLabelColor, _Attach.attachTokens.cellTitleColor, _Attach.attachTokens.cellSubtitleColor, _Attach.attachTokens.cellBackgroundColor, _Attach.attachTokens.iconButtonColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonLoadingBackgroundColor, _Attach.attachTokens.iconButtonBackgroundColor, _Attach.attachTokens.iconButtonColorHover, _Attach.attachTokens.iconButtonBackgroundColorHover, _Attach.attachTokens.iconButtonColorActive, _Attach.attachTokens.iconButtonBackgroundColorActive, _Attach.attachTokens.iconButtonDisabledOpacity, _Attach.attachTokens.iconButtonFocusColor, _Attach.attachTokens.iconButtonCancelColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelLoadingBackgroundColor, _Attach.attachTokens.iconButtonCancelBackgroundColor, _Attach.attachTokens.iconButtonCancelColorHover, _Attach.attachTokens.iconButtonCancelBackgroundColorHover, _Attach.attachTokens.iconButtonCancelColorActive, _Attach.attachTokens.iconButtonCancelBackgroundColorActive, _Attach.attachTokens.iconButtonCancelDisabledOpacity, _Attach.attachTokens.iconButtonCancelFocusColor)
|
29
|
+
},
|
30
|
+
size: {
|
31
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.5rem;", ":0.5rem;", ":3.5rem;", ":12.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.375rem;", ":inherit;", ":0 0.5rem 0 -0.125rem;", ":0 -0.125rem 0 0.5rem;", ":0 0 0 0.25rem;", ":fit-content;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":3.5rem;", ":3.5rem;", ":1.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":1.375rem;", ":inherit;", ":2rem;", ":2rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":inherit;"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.buttonSpinnerSize, _Attach.attachTokens.buttonSpinnerColor, _Attach.attachTokens.buttonLeftContentMargin, _Attach.attachTokens.buttonRightContentMargin, _Attach.attachTokens.buttonValueMargin, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight, _Attach.attachTokens.iconButtonSpinnerSize, _Attach.attachTokens.iconButtonSpinnerColor, _Attach.attachTokens.iconButtonCancelHeight, _Attach.attachTokens.iconButtonCancelWidth, _Attach.attachTokens.iconButtonCancelPadding, _Attach.attachTokens.iconButtonCancelRadius, _Attach.attachTokens.iconButtonCancelFontFamily, _Attach.attachTokens.iconButtonCancelFontSize, _Attach.attachTokens.iconButtonCancelFontStyle, _Attach.attachTokens.iconButtonCancelFontWeight, _Attach.attachTokens.iconButtonCancelLetterSpacing, _Attach.attachTokens.iconButtonCancelLineHeight, _Attach.attachTokens.iconButtonCancelSpinnerSize, _Attach.attachTokens.iconButtonCancelSpinnerColor),
|
32
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.25rem;", ":0.5rem;", ":3rem;", ":11.25rem;", ":1.25rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":1.375rem;", ":inherit;", ":0 0.375rem 0 -0.125rem;", ":0 -0.125rem 0 0.375rem;", ":0 0 0 0.25rem;", ":fit-content;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":3rem;", ":3rem;", ":1.25rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":1.375rem;", ":inherit;", ":2rem;", ":2rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":inherit;"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.buttonSpinnerSize, _Attach.attachTokens.buttonSpinnerColor, _Attach.attachTokens.buttonLeftContentMargin, _Attach.attachTokens.buttonRightContentMargin, _Attach.attachTokens.buttonValueMargin, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight, _Attach.attachTokens.iconButtonSpinnerSize, _Attach.attachTokens.iconButtonSpinnerColor, _Attach.attachTokens.iconButtonCancelHeight, _Attach.attachTokens.iconButtonCancelWidth, _Attach.attachTokens.iconButtonCancelPadding, _Attach.attachTokens.iconButtonCancelRadius, _Attach.attachTokens.iconButtonCancelFontFamily, _Attach.attachTokens.iconButtonCancelFontSize, _Attach.attachTokens.iconButtonCancelFontStyle, _Attach.attachTokens.iconButtonCancelFontWeight, _Attach.attachTokens.iconButtonCancelLetterSpacing, _Attach.attachTokens.iconButtonCancelLineHeight, _Attach.attachTokens.iconButtonCancelSpinnerSize, _Attach.attachTokens.iconButtonCancelSpinnerColor),
|
33
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":1rem;", ":0.375rem;", ":2.5rem;", ":11.25rem;", ":1rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":1.375rem;", ":inherit;", ":0 0.25rem 0 -0.125rem;", ":0 -0.125rem 0 0.25rem;", ":0 0 0 0.25rem;", ":fit-content;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2.5rem;", ":2.5rem;", ":1rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":1.375rem;", ":inherit;", ":2rem;", ":2rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":inherit;"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.buttonSpinnerSize, _Attach.attachTokens.buttonSpinnerColor, _Attach.attachTokens.buttonLeftContentMargin, _Attach.attachTokens.buttonRightContentMargin, _Attach.attachTokens.buttonValueMargin, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight, _Attach.attachTokens.iconButtonSpinnerSize, _Attach.attachTokens.iconButtonSpinnerColor, _Attach.attachTokens.iconButtonCancelHeight, _Attach.attachTokens.iconButtonCancelWidth, _Attach.attachTokens.iconButtonCancelPadding, _Attach.attachTokens.iconButtonCancelRadius, _Attach.attachTokens.iconButtonCancelFontFamily, _Attach.attachTokens.iconButtonCancelFontSize, _Attach.attachTokens.iconButtonCancelFontStyle, _Attach.attachTokens.iconButtonCancelFontWeight, _Attach.attachTokens.iconButtonCancelLetterSpacing, _Attach.attachTokens.iconButtonCancelLineHeight, _Attach.attachTokens.iconButtonCancelSpinnerSize, _Attach.attachTokens.iconButtonCancelSpinnerColor),
|
34
|
+
xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.75rem;", ":0.25rem;", ":2rem;", ":10rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":inherit;", ":0 0.25rem 0 -0.125rem;", ":0 -0.125rem 0 0.25rem;", ":0 0 0 0.25rem;", ":fit-content;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2rem;", ":2rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":inherit;", ":2rem;", ":2rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":1rem;", ":inherit;"], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.buttonHeight, _Attach.attachTokens.buttonWidth, _Attach.attachTokens.buttonPadding, _Attach.attachTokens.buttonRadius, _Attach.attachTokens.buttonFontFamily, _Attach.attachTokens.buttonFontSize, _Attach.attachTokens.buttonFontStyle, _Attach.attachTokens.buttonFontWeight, _Attach.attachTokens.buttonLetterSpacing, _Attach.attachTokens.buttonLineHeight, _Attach.attachTokens.buttonSpinnerSize, _Attach.attachTokens.buttonSpinnerColor, _Attach.attachTokens.buttonLeftContentMargin, _Attach.attachTokens.buttonRightContentMargin, _Attach.attachTokens.buttonValueMargin, _Attach.attachTokens.cellWidth, _Attach.attachTokens.cellPadding, _Attach.attachTokens.cellPaddingLeftContent, _Attach.attachTokens.cellPaddingContent, _Attach.attachTokens.cellPaddingRightContent, _Attach.attachTokens.cellTextboxGap, _Attach.attachTokens.cellGap, _Attach.attachTokens.cellLabelFontFamily, _Attach.attachTokens.cellLabelFontSize, _Attach.attachTokens.cellLabelFontStyle, _Attach.attachTokens.cellLabelFontWeight, _Attach.attachTokens.cellLabelLetterSpacing, _Attach.attachTokens.cellLabelLineHeight, _Attach.attachTokens.cellTitleFontFamily, _Attach.attachTokens.cellTitleFontSize, _Attach.attachTokens.cellTitleFontStyle, _Attach.attachTokens.cellTitleFontWeight, _Attach.attachTokens.cellTitleLetterSpacing, _Attach.attachTokens.cellTitleLineHeight, _Attach.attachTokens.cellSubtitleFontFamily, _Attach.attachTokens.cellSubtitleFontSize, _Attach.attachTokens.cellSubtitleFontStyle, _Attach.attachTokens.cellSubtitleFontWeight, _Attach.attachTokens.cellSubtitleLetterSpacing, _Attach.attachTokens.cellSubtitleLineHeight, _Attach.attachTokens.iconButtonHeight, _Attach.attachTokens.iconButtonWidth, _Attach.attachTokens.iconButtonPadding, _Attach.attachTokens.iconButtonRadius, _Attach.attachTokens.iconButtonFontFamily, _Attach.attachTokens.iconButtonFontSize, _Attach.attachTokens.iconButtonFontStyle, _Attach.attachTokens.iconButtonFontWeight, _Attach.attachTokens.iconButtonLetterSpacing, _Attach.attachTokens.iconButtonLineHeight, _Attach.attachTokens.iconButtonSpinnerSize, _Attach.attachTokens.iconButtonSpinnerColor, _Attach.attachTokens.iconButtonCancelHeight, _Attach.attachTokens.iconButtonCancelWidth, _Attach.attachTokens.iconButtonCancelPadding, _Attach.attachTokens.iconButtonCancelRadius, _Attach.attachTokens.iconButtonCancelFontFamily, _Attach.attachTokens.iconButtonCancelFontSize, _Attach.attachTokens.iconButtonCancelFontStyle, _Attach.attachTokens.iconButtonCancelFontWeight, _Attach.attachTokens.iconButtonCancelLetterSpacing, _Attach.attachTokens.iconButtonCancelLineHeight, _Attach.attachTokens.iconButtonCancelSpinnerSize, _Attach.attachTokens.iconButtonCancelSpinnerColor)
|
35
|
+
}
|
36
|
+
}
|
37
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Attach = void 0;
|
7
|
+
var _Attach = /*#__PURE__*/require("../../../../components/Attach");
|
8
|
+
var _engines = /*#__PURE__*/require("../../../../engines");
|
9
|
+
var _Attach2 = /*#__PURE__*/require("./Attach.config");
|
10
|
+
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Attach.attachConfig, _Attach2.config);
|
11
|
+
var Attach = exports.Attach = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
@@ -0,0 +1,181 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { ComponentProps } from 'react';
|
3
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
4
|
+
|
5
|
+
import { mergeConfig } from '../../../../engines';
|
6
|
+
import { WithTheme, argTypesFromConfig } from '../../../_helpers';
|
7
|
+
import { attachConfig } from '../../../../components/Attach';
|
8
|
+
import { IconMic } from '../../../../components/_Icon';
|
9
|
+
|
10
|
+
import { Attach } from './Attach';
|
11
|
+
import { config } from './Attach.config';
|
12
|
+
|
13
|
+
const buttonViewOptions = [
|
14
|
+
'default',
|
15
|
+
'accent',
|
16
|
+
'secondary',
|
17
|
+
'clear',
|
18
|
+
'positive',
|
19
|
+
'warning',
|
20
|
+
'negative',
|
21
|
+
'dark',
|
22
|
+
'black',
|
23
|
+
'white',
|
24
|
+
];
|
25
|
+
const iconButtonViewOptions = [
|
26
|
+
'default',
|
27
|
+
'accent',
|
28
|
+
'secondary',
|
29
|
+
'clear',
|
30
|
+
'success',
|
31
|
+
'warning',
|
32
|
+
'critical',
|
33
|
+
'dark',
|
34
|
+
'black',
|
35
|
+
'white',
|
36
|
+
];
|
37
|
+
const flowOptions = ['horizontal', 'vertical', 'auto'];
|
38
|
+
const fileFormatOptions = ['all', '.doc', '.xls', '.pdf', '.csv', '.txt'];
|
39
|
+
const pinOptions = [
|
40
|
+
'',
|
41
|
+
'square-square',
|
42
|
+
'square-clear',
|
43
|
+
'clear-square',
|
44
|
+
'clear-clear',
|
45
|
+
'clear-circle',
|
46
|
+
'circle-clear',
|
47
|
+
'circle-circle',
|
48
|
+
];
|
49
|
+
const contentPlacingOptions = ['default', 'relaxed'];
|
50
|
+
|
51
|
+
type StoryAttachProps = ComponentProps<typeof Attach> & {
|
52
|
+
enableContentLeft: boolean;
|
53
|
+
enableContentRight: boolean;
|
54
|
+
fileFormat?: string;
|
55
|
+
width?: string;
|
56
|
+
};
|
57
|
+
|
58
|
+
const meta: Meta<StoryAttachProps> = {
|
59
|
+
title: 'plasma_web/Attach',
|
60
|
+
decorators: [WithTheme],
|
61
|
+
component: Attach,
|
62
|
+
argTypes: {
|
63
|
+
...argTypesFromConfig(mergeConfig(attachConfig, config)),
|
64
|
+
fileFormat: {
|
65
|
+
options: fileFormatOptions,
|
66
|
+
control: {
|
67
|
+
type: 'select',
|
68
|
+
},
|
69
|
+
},
|
70
|
+
flow: {
|
71
|
+
options: flowOptions,
|
72
|
+
control: {
|
73
|
+
type: 'select',
|
74
|
+
},
|
75
|
+
},
|
76
|
+
pin: {
|
77
|
+
options: pinOptions,
|
78
|
+
control: {
|
79
|
+
type: 'select',
|
80
|
+
},
|
81
|
+
table: { defaultValue: { summary: 'bottom' } },
|
82
|
+
},
|
83
|
+
},
|
84
|
+
};
|
85
|
+
|
86
|
+
export default meta;
|
87
|
+
|
88
|
+
const StoryButton = (props: StoryAttachProps) => {
|
89
|
+
return <Attach {...props} />;
|
90
|
+
};
|
91
|
+
|
92
|
+
export const Button: StoryObj<StoryAttachProps> = {
|
93
|
+
args: {
|
94
|
+
fileFormat: 'all',
|
95
|
+
text: 'Загрузить файл',
|
96
|
+
value: '',
|
97
|
+
flow: 'horizontal',
|
98
|
+
hasAttachment: true,
|
99
|
+
width: '400px',
|
100
|
+
disabled: false,
|
101
|
+
square: false,
|
102
|
+
isLoading: false,
|
103
|
+
enableContentLeft: false,
|
104
|
+
enableContentRight: false,
|
105
|
+
size: 'm',
|
106
|
+
view: 'accent',
|
107
|
+
},
|
108
|
+
argTypes: {
|
109
|
+
contentPlacing: {
|
110
|
+
options: contentPlacingOptions,
|
111
|
+
control: {
|
112
|
+
type: 'select',
|
113
|
+
},
|
114
|
+
},
|
115
|
+
view: {
|
116
|
+
options: buttonViewOptions,
|
117
|
+
control: {
|
118
|
+
type: 'select',
|
119
|
+
},
|
120
|
+
},
|
121
|
+
},
|
122
|
+
render: (args) => {
|
123
|
+
const { width, size, fileFormat, enableContentLeft, enableContentRight, ...rest } = args;
|
124
|
+
const accepted = fileFormat && fileFormat !== 'all' ? [fileFormat] : undefined;
|
125
|
+
const iconSize = size === 'xs' ? 'xs' : 's';
|
126
|
+
|
127
|
+
return (
|
128
|
+
<StoryButton
|
129
|
+
style={{ width }}
|
130
|
+
size={size}
|
131
|
+
buttonType="button"
|
132
|
+
contentLeft={enableContentLeft ? <IconMic size={iconSize} color="inherit" /> : undefined}
|
133
|
+
contentRight={enableContentRight ? <IconMic size={iconSize} color="inherit" /> : undefined}
|
134
|
+
acceptedFileFormats={accepted}
|
135
|
+
{...rest}
|
136
|
+
/>
|
137
|
+
);
|
138
|
+
},
|
139
|
+
};
|
140
|
+
|
141
|
+
const StoryIconButton = (props: StoryAttachProps) => {
|
142
|
+
return <Attach {...props} />;
|
143
|
+
};
|
144
|
+
|
145
|
+
export const IconButton: StoryObj<StoryAttachProps> = {
|
146
|
+
args: {
|
147
|
+
fileFormat: 'all',
|
148
|
+
flow: 'horizontal',
|
149
|
+
hasAttachment: true,
|
150
|
+
width: '400px',
|
151
|
+
disabled: false,
|
152
|
+
isLoading: false,
|
153
|
+
size: 'm',
|
154
|
+
view: 'accent',
|
155
|
+
},
|
156
|
+
argTypes: {
|
157
|
+
view: {
|
158
|
+
options: iconButtonViewOptions,
|
159
|
+
control: {
|
160
|
+
type: 'select',
|
161
|
+
},
|
162
|
+
},
|
163
|
+
},
|
164
|
+
render: (args) => {
|
165
|
+
const { width, size, fileFormat, enableContentLeft, enableContentRight, ...rest } = args;
|
166
|
+
const accepted = fileFormat && fileFormat !== 'all' ? [fileFormat] : undefined;
|
167
|
+
const iconSize = size === 'xs' ? 'xs' : 's';
|
168
|
+
|
169
|
+
return (
|
170
|
+
<StoryIconButton
|
171
|
+
style={{ width }}
|
172
|
+
size={size}
|
173
|
+
buttonType="iconButton"
|
174
|
+
contentLeft={enableContentLeft ? <IconMic size={iconSize} color="inherit" /> : undefined}
|
175
|
+
contentRight={enableContentRight ? <IconMic size={iconSize} color="inherit" /> : undefined}
|
176
|
+
acceptedFileFormats={accepted}
|
177
|
+
{...rest}
|
178
|
+
/>
|
179
|
+
);
|
180
|
+
},
|
181
|
+
};
|
@@ -21,12 +21,6 @@ Object.defineProperty(exports, "useForceUpdate", {
|
|
21
21
|
return _useForceUpdate.useForceUpdate;
|
22
22
|
}
|
23
23
|
});
|
24
|
-
Object.defineProperty(exports, "useForm", {
|
25
|
-
enumerable: true,
|
26
|
-
get: function get() {
|
27
|
-
return _useForm.useForm;
|
28
|
-
}
|
29
|
-
});
|
30
24
|
Object.defineProperty(exports, "useIsomorphicLayoutEffect", {
|
31
25
|
enumerable: true,
|
32
26
|
get: function get() {
|
@@ -57,5 +51,4 @@ var _usePreviousValue = /*#__PURE__*/require("./usePreviousValue");
|
|
57
51
|
var _useForceUpdate = /*#__PURE__*/require("./useForceUpdate");
|
58
52
|
var _useDidMountEffect = /*#__PURE__*/require("./useDidMountEffect");
|
59
53
|
var _useOutsideClick = /*#__PURE__*/require("./useOutsideClick");
|
60
|
-
var _useIsomorphicLayoutEffect = /*#__PURE__*/require("./useIsomorphicLayoutEffect");
|
61
|
-
var _useForm = /*#__PURE__*/require("./useForm");
|
54
|
+
var _useIsomorphicLayoutEffect = /*#__PURE__*/require("./useIsomorphicLayoutEffect");
|
@@ -630,14 +630,14 @@ Object.keys(_Editable).forEach(function (key) {
|
|
630
630
|
}
|
631
631
|
});
|
632
632
|
});
|
633
|
-
var
|
634
|
-
Object.keys(
|
633
|
+
var _Attach = /*#__PURE__*/require("./components/Attach");
|
634
|
+
Object.keys(_Attach).forEach(function (key) {
|
635
635
|
if (key === "default" || key === "__esModule") return;
|
636
|
-
if (key in exports && exports[key] ===
|
636
|
+
if (key in exports && exports[key] === _Attach[key]) return;
|
637
637
|
Object.defineProperty(exports, key, {
|
638
638
|
enumerable: true,
|
639
639
|
get: function get() {
|
640
|
-
return
|
640
|
+
return _Attach[key];
|
641
641
|
}
|
642
642
|
});
|
643
643
|
});
|
@@ -13,8 +13,6 @@ var _exportNames = {
|
|
13
13
|
IS_REACT_18: true,
|
14
14
|
safeUseId: true,
|
15
15
|
isNumber: true,
|
16
|
-
mergeRefs: true,
|
17
|
-
setRefList: true,
|
18
16
|
isEmpty: true,
|
19
17
|
constants: true
|
20
18
|
};
|
@@ -55,30 +53,17 @@ Object.defineProperty(exports, "isNumber", {
|
|
55
53
|
return _isNumber.isNumber;
|
56
54
|
}
|
57
55
|
});
|
58
|
-
Object.defineProperty(exports, "mergeRefs", {
|
59
|
-
enumerable: true,
|
60
|
-
get: function get() {
|
61
|
-
return _setRefList.mergeRefs;
|
62
|
-
}
|
63
|
-
});
|
64
56
|
Object.defineProperty(exports, "safeUseId", {
|
65
57
|
enumerable: true,
|
66
58
|
get: function get() {
|
67
59
|
return _react.safeUseId;
|
68
60
|
}
|
69
61
|
});
|
70
|
-
Object.defineProperty(exports, "setRefList", {
|
71
|
-
enumerable: true,
|
72
|
-
get: function get() {
|
73
|
-
return _setRefList.setRefList;
|
74
|
-
}
|
75
|
-
});
|
76
62
|
var _canUseDOM = /*#__PURE__*/require("./canUseDOM");
|
77
63
|
var _extractTextFrom = /*#__PURE__*/require("./extractTextFrom");
|
78
64
|
var _getSizeValueFromProp = /*#__PURE__*/require("./getSizeValueFromProp");
|
79
65
|
var _react = /*#__PURE__*/require("./react");
|
80
66
|
var _isNumber = /*#__PURE__*/require("./isNumber");
|
81
|
-
var _setRefList = /*#__PURE__*/require("./setRefList");
|
82
67
|
var _isEmpty = /*#__PURE__*/require("./isEmpty");
|
83
68
|
var _constants = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./constants"));
|
84
69
|
exports.constants = _constants;
|
@@ -0,0 +1,178 @@
|
|
1
|
+
var _IconCloseCircleOutli;
|
2
|
+
var _excluded = ["flow", "buttonType", "hasAttachment", "acceptedFileFormats", "size", "view", "className", "style", "isLoading", "disabled"];
|
3
|
+
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); }
|
4
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
5
|
+
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."); }
|
6
|
+
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); }
|
7
|
+
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; }
|
8
|
+
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; } }
|
9
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
10
|
+
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; }
|
11
|
+
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; }
|
12
|
+
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
13
|
+
import { useForkRef, useIsomorphicLayoutEffect } from '@salutejs/plasma-core';
|
14
|
+
import { cx } from '../../utils';
|
15
|
+
import { IconCloseCircleOutline } from '../_Icon';
|
16
|
+
import { base as sizeCSS } from './variations/_size/base';
|
17
|
+
import { base as viewCSS } from './variations/_view/base';
|
18
|
+
import { base, StyledHiddenInput, StyledHiddenInputHelper } from './Attach.styles';
|
19
|
+
import { StyledCell } from './ui/Cell/Cell';
|
20
|
+
import { extractExtension, getFileicon, truncateFilename } from './utils';
|
21
|
+
import { classes } from './Attach.tokens';
|
22
|
+
import { AttachButton } from './components/AttachButton';
|
23
|
+
import { StyledIconButtonCancel } from './ui/IconButton/IconButton.styles';
|
24
|
+
export var attachRoot = function attachRoot(Root) {
|
25
|
+
return /*#__PURE__*/forwardRef(function (props, outerRef) {
|
26
|
+
var _props$flow = props.flow,
|
27
|
+
flow = _props$flow === void 0 ? 'auto' : _props$flow,
|
28
|
+
_props$buttonType = props.buttonType,
|
29
|
+
buttonType = _props$buttonType === void 0 ? 'button' : _props$buttonType,
|
30
|
+
_props$hasAttachment = props.hasAttachment,
|
31
|
+
hasAttachment = _props$hasAttachment === void 0 ? true : _props$hasAttachment,
|
32
|
+
acceptedFileFormats = props.acceptedFileFormats,
|
33
|
+
size = props.size,
|
34
|
+
view = props.view,
|
35
|
+
className = props.className,
|
36
|
+
style = props.style,
|
37
|
+
isLoading = props.isLoading,
|
38
|
+
disabled = props.disabled,
|
39
|
+
rest = _objectWithoutProperties(props, _excluded);
|
40
|
+
var innerRef = useRef(null);
|
41
|
+
var ref = useForkRef(outerRef, innerRef);
|
42
|
+
var inputRef = useRef(null);
|
43
|
+
var inputHelperRef = useRef(null);
|
44
|
+
var cellRef = useRef(null);
|
45
|
+
var buttonRef = useRef(null);
|
46
|
+
var emptyTextCellWidth = useRef(null);
|
47
|
+
var _useState = useState(''),
|
48
|
+
_useState2 = _slicedToArray(_useState, 2),
|
49
|
+
filename = _useState2[0],
|
50
|
+
setFilename = _useState2[1];
|
51
|
+
var _useState3 = useState(''),
|
52
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
53
|
+
truncatedFilename = _useState4[0],
|
54
|
+
setTruncatedFilename = _useState4[1];
|
55
|
+
var horizontalClass = flow === 'horizontal' ? classes.horizontal : undefined;
|
56
|
+
var verticalClass = flow === 'vertical' ? classes.vertical : undefined;
|
57
|
+
var autoClass = flow === 'auto' ? classes.auto : undefined;
|
58
|
+
var cellHiddenClass = truncatedFilename.length === 0 ? classes.cellHidden : undefined;
|
59
|
+
var accept = acceptedFileFormats === null || acceptedFileFormats === void 0 ? void 0 : acceptedFileFormats.join(',');
|
60
|
+
var extension = extractExtension(filename);
|
61
|
+
var cellContentLeft = getFileicon(extension, size);
|
62
|
+
useEffect(function () {
|
63
|
+
var _cellRef$current;
|
64
|
+
emptyTextCellWidth.current = ((_cellRef$current = cellRef.current) === null || _cellRef$current === void 0 ? void 0 : _cellRef$current.offsetWidth) || 0;
|
65
|
+
}, []);
|
66
|
+
useIsomorphicLayoutEffect(function () {
|
67
|
+
if (!cellRef.current || !cellRef.current.parentElement || !inputHelperRef.current || !inputHelperRef.current.textContent || !emptyTextCellWidth.current || !buttonRef.current) {
|
68
|
+
return;
|
69
|
+
}
|
70
|
+
var textWidth = inputHelperRef.current.offsetWidth;
|
71
|
+
var buttonWidth = buttonRef.current.offsetWidth;
|
72
|
+
var _cellRef$current$pare = cellRef.current.parentElement.getBoundingClientRect(),
|
73
|
+
parentWidth = _cellRef$current$pare.width,
|
74
|
+
parentLeft = _cellRef$current$pare.left;
|
75
|
+
var _cellRef$current$getB = cellRef.current.getBoundingClientRect(),
|
76
|
+
cellLeft = _cellRef$current$getB.left;
|
77
|
+
var leftDiff = cellLeft - parentLeft;
|
78
|
+
var currentTextWidth = textWidth;
|
79
|
+
var currFilename = filename;
|
80
|
+
for (var i = filename.length - 1; i > 0; i -= 1) {
|
81
|
+
if (currentTextWidth + emptyTextCellWidth.current + leftDiff <= parentWidth) {
|
82
|
+
break;
|
83
|
+
}
|
84
|
+
var newFilename = truncateFilename({
|
85
|
+
filename: inputHelperRef.current.textContent,
|
86
|
+
startNameTruncationIndex: i
|
87
|
+
});
|
88
|
+
inputHelperRef.current.textContent = newFilename;
|
89
|
+
currentTextWidth = inputHelperRef.current.offsetWidth;
|
90
|
+
if (currentTextWidth + emptyTextCellWidth.current < buttonWidth) {
|
91
|
+
break;
|
92
|
+
}
|
93
|
+
currFilename = newFilename;
|
94
|
+
}
|
95
|
+
inputHelperRef.current.textContent = filename;
|
96
|
+
setTruncatedFilename(currFilename);
|
97
|
+
});
|
98
|
+
var handleClick = function handleClick() {
|
99
|
+
if (!inputRef.current) {
|
100
|
+
return;
|
101
|
+
}
|
102
|
+
inputRef.current.click();
|
103
|
+
};
|
104
|
+
var handleChange = function handleChange() {
|
105
|
+
if (!inputRef.current || !inputRef.current.files) {
|
106
|
+
return;
|
107
|
+
}
|
108
|
+
setFilename(inputRef.current.files[0].name);
|
109
|
+
};
|
110
|
+
var handleClear = function handleClear() {
|
111
|
+
if (!inputRef.current) {
|
112
|
+
return;
|
113
|
+
}
|
114
|
+
inputRef.current.value = '';
|
115
|
+
setFilename('');
|
116
|
+
setTruncatedFilename('');
|
117
|
+
};
|
118
|
+
return /*#__PURE__*/React.createElement(Root, {
|
119
|
+
className: cx(horizontalClass, verticalClass, autoClass, className),
|
120
|
+
style: style,
|
121
|
+
size: size,
|
122
|
+
view: view,
|
123
|
+
ref: ref
|
124
|
+
}, /*#__PURE__*/React.createElement(StyledHiddenInput, {
|
125
|
+
ref: inputRef,
|
126
|
+
accept: accept,
|
127
|
+
type: "file",
|
128
|
+
id: "attachHiddenInput",
|
129
|
+
name: "attachHiddenInput",
|
130
|
+
onChange: handleChange
|
131
|
+
}), /*#__PURE__*/React.createElement(StyledHiddenInputHelper, {
|
132
|
+
ref: inputHelperRef,
|
133
|
+
id: "attachHiddenInputHelper"
|
134
|
+
}, filename), /*#__PURE__*/React.createElement(AttachButton, _extends({
|
135
|
+
buttonType: buttonType,
|
136
|
+
view: view,
|
137
|
+
size: size,
|
138
|
+
onClick: handleClick,
|
139
|
+
isLoading: isLoading,
|
140
|
+
disabled: disabled,
|
141
|
+
ref: buttonRef
|
142
|
+
}, rest)), hasAttachment && /*#__PURE__*/React.createElement(StyledCell, {
|
143
|
+
stretching: "fixed",
|
144
|
+
className: cellHiddenClass,
|
145
|
+
ref: cellRef,
|
146
|
+
size: size,
|
147
|
+
title: truncatedFilename,
|
148
|
+
contentLeft: cellContentLeft,
|
149
|
+
contentRight: /*#__PURE__*/React.createElement(StyledIconButtonCancel, {
|
150
|
+
view: view,
|
151
|
+
size: size,
|
152
|
+
isLoading: isLoading,
|
153
|
+
disabled: disabled,
|
154
|
+
onClick: handleClear
|
155
|
+
}, _IconCloseCircleOutli || (_IconCloseCircleOutli = /*#__PURE__*/React.createElement(IconCloseCircleOutline, {
|
156
|
+
size: "xs"
|
157
|
+
})))
|
158
|
+
}));
|
159
|
+
});
|
160
|
+
};
|
161
|
+
export var attachConfig = {
|
162
|
+
name: 'Attach',
|
163
|
+
tag: 'div',
|
164
|
+
layout: attachRoot,
|
165
|
+
base: base,
|
166
|
+
variations: {
|
167
|
+
view: {
|
168
|
+
css: viewCSS
|
169
|
+
},
|
170
|
+
size: {
|
171
|
+
css: sizeCSS
|
172
|
+
}
|
173
|
+
},
|
174
|
+
defaults: {
|
175
|
+
view: 'default',
|
176
|
+
size: 'm'
|
177
|
+
}
|
178
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import styled from 'styled-components';
|
2
|
+
import { css } from 'styled-components';
|
3
|
+
import { tokens as attachTokens } from './Attach.tokens';
|
4
|
+
export var base = /*#__PURE__*/css(["position:relative;display:flex;"]);
|
5
|
+
export var StyledHiddenInput = /*#__PURE__*/styled.input.withConfig({
|
6
|
+
componentId: "plasma-new-hope__sc-15vkopl-0"
|
7
|
+
})(["display:none;"]);
|
8
|
+
export var StyledHiddenInputHelper = /*#__PURE__*/styled.div.withConfig({
|
9
|
+
componentId: "plasma-new-hope__sc-15vkopl-1"
|
10
|
+
})(["position:absolute;visibility:hidden;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], attachTokens.cellTitleFontFamily, attachTokens.cellTitleFontSize, attachTokens.cellTitleFontStyle, attachTokens.cellTitleFontWeight, attachTokens.cellTitleLetterSpacing, attachTokens.cellTitleLineHeight);
|