@salutejs/plasma-new-hope 0.149.0-canary.1437.10948458812.0 → 0.149.0-canary.1445.10940405865.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Cell/Cell.js +2 -3
- package/cjs/components/Cell/Cell.js.map +1 -1
- package/cjs/components/Chip/Chip.js +1 -1
- package/cjs/components/Chip/Chip.js.map +1 -1
- package/cjs/components/Chip/Chip.tokens.js +2 -1
- package/cjs/components/Chip/Chip.tokens.js.map +1 -1
- package/cjs/components/ChipGroup/ChipGroup.css +7 -0
- package/cjs/components/ChipGroup/ChipGroup.js +63 -0
- package/cjs/components/ChipGroup/ChipGroup.js.map +1 -0
- package/cjs/components/ChipGroup/ChipGroup.styles.js +9 -0
- package/cjs/components/ChipGroup/ChipGroup.styles.js.map +1 -0
- package/cjs/components/ChipGroup/ChipGroup.styles_1l3nd6v.css +1 -0
- package/cjs/components/ChipGroup/ChipGroup.tokens.js +50 -0
- package/cjs/components/ChipGroup/ChipGroup.tokens.js.map +1 -0
- package/cjs/components/{Attach/variations/_size → ChipGroup/variations/_gap}/base.js +2 -2
- package/cjs/components/ChipGroup/variations/_gap/base.js.map +1 -0
- package/cjs/components/ChipGroup/variations/_gap/base_vhoe9f.css +1 -0
- package/cjs/components/{Attach/variations/_view → ChipGroup/variations/_size}/base.js +2 -2
- package/cjs/components/ChipGroup/variations/_size/base.js.map +1 -0
- package/cjs/components/ChipGroup/variations/_size/base_eu60ye.css +1 -0
- package/cjs/components/ChipGroup/variations/_view/base.js +9 -0
- package/cjs/components/ChipGroup/variations/_view/base.js.map +1 -0
- package/cjs/components/ChipGroup/variations/_view/base_122089q.css +1 -0
- package/cjs/index.css +8 -15
- package/cjs/index.js +7 -5
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Cell/Cell.js +2 -3
- package/emotion/cjs/components/Chip/Chip.js +1 -1
- package/emotion/cjs/components/Chip/Chip.tokens.js +2 -1
- package/emotion/cjs/components/Chip/index.js +6 -0
- package/{styled-components/cjs/components/Attach/components/AttachButton/AttachButton.js → emotion/cjs/components/ChipGroup/ChipGroup.js} +50 -36
- package/emotion/cjs/components/ChipGroup/ChipGroup.styles.js +9 -0
- package/emotion/cjs/components/ChipGroup/ChipGroup.template-doc.mdx +93 -0
- package/emotion/cjs/components/ChipGroup/ChipGroup.tokens.js +48 -0
- package/emotion/cjs/components/ChipGroup/index.js +31 -0
- package/emotion/cjs/components/ChipGroup/variations/_gap/base.js +9 -0
- package/emotion/cjs/components/ChipGroup/variations/_gap/tokens.json +1 -0
- package/emotion/cjs/components/ChipGroup/variations/_size/base.js +10 -0
- package/emotion/cjs/components/ChipGroup/variations/_size/tokens.json +22 -0
- package/emotion/cjs/components/ChipGroup/variations/_view/base.js +10 -0
- package/emotion/cjs/components/ChipGroup/variations/_view/tokens.json +15 -0
- package/emotion/cjs/components/_Icon/index.js +1 -57
- package/emotion/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.config.js +33 -0
- package/emotion/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.js +11 -0
- package/emotion/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/emotion/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.config.js +33 -0
- package/emotion/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.js +11 -0
- package/emotion/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/emotion/cjs/index.js +11 -11
- package/emotion/es/components/Cell/Cell.js +2 -3
- package/emotion/es/components/Chip/Chip.js +1 -1
- package/emotion/es/components/Chip/Chip.tokens.js +2 -1
- package/emotion/es/components/Chip/index.js +1 -1
- package/emotion/es/components/ChipGroup/ChipGroup.js +56 -0
- package/emotion/es/components/ChipGroup/ChipGroup.styles.js +3 -0
- package/emotion/es/components/ChipGroup/ChipGroup.template-doc.mdx +93 -0
- package/emotion/es/components/ChipGroup/ChipGroup.tokens.js +42 -0
- package/emotion/es/components/ChipGroup/index.js +2 -0
- package/emotion/es/components/ChipGroup/variations/_gap/base.js +3 -0
- package/emotion/es/components/ChipGroup/variations/_gap/tokens.json +1 -0
- package/emotion/es/components/ChipGroup/variations/_size/base.js +4 -0
- package/emotion/es/components/ChipGroup/variations/_size/tokens.json +22 -0
- package/emotion/es/components/ChipGroup/variations/_view/base.js +4 -0
- package/emotion/es/components/ChipGroup/variations/_view/tokens.json +15 -0
- package/emotion/es/components/_Icon/index.js +1 -9
- package/emotion/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.config.js +27 -0
- package/emotion/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.js +5 -0
- package/emotion/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/emotion/es/examples/plasma_web/components/ChipGroup /ChipGroup.config.js +27 -0
- package/emotion/es/examples/plasma_web/components/ChipGroup /ChipGroup.js +5 -0
- package/emotion/es/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/emotion/es/index.js +2 -2
- package/es/components/Cell/Cell.js +2 -3
- package/es/components/Cell/Cell.js.map +1 -1
- package/es/components/Chip/Chip.js +1 -1
- package/es/components/Chip/Chip.js.map +1 -1
- package/es/components/Chip/Chip.tokens.js +2 -1
- package/es/components/Chip/Chip.tokens.js.map +1 -1
- package/es/components/ChipGroup/ChipGroup.css +7 -0
- package/es/components/ChipGroup/ChipGroup.js +58 -0
- package/es/components/ChipGroup/ChipGroup.js.map +1 -0
- package/es/components/ChipGroup/ChipGroup.styles.js +5 -0
- package/es/components/ChipGroup/ChipGroup.styles.js.map +1 -0
- package/es/components/ChipGroup/ChipGroup.styles_1l3nd6v.css +1 -0
- package/es/components/ChipGroup/ChipGroup.tokens.js +45 -0
- package/es/components/ChipGroup/ChipGroup.tokens.js.map +1 -0
- package/es/components/{Attach/variations/_view → ChipGroup/variations/_gap}/base.js +2 -2
- package/es/components/ChipGroup/variations/_gap/base.js.map +1 -0
- package/es/components/ChipGroup/variations/_gap/base_vhoe9f.css +1 -0
- package/es/components/{Attach → ChipGroup}/variations/_size/base.js +2 -2
- package/es/components/ChipGroup/variations/_size/base.js.map +1 -0
- package/es/components/ChipGroup/variations/_size/base_eu60ye.css +1 -0
- package/es/components/ChipGroup/variations/_view/base.js +5 -0
- package/es/components/ChipGroup/variations/_view/base.js.map +1 -0
- package/es/components/ChipGroup/variations/_view/base_122089q.css +1 -0
- package/es/index.css +8 -15
- package/es/index.js +3 -3
- package/package.json +2 -2
- package/styled-components/cjs/components/Cell/Cell.js +2 -3
- package/styled-components/cjs/components/Chip/Chip.js +1 -1
- package/styled-components/cjs/components/Chip/Chip.tokens.js +2 -1
- package/styled-components/cjs/components/Chip/index.js +6 -0
- package/{emotion/cjs/components/Attach/components/AttachButton/AttachButton.js → styled-components/cjs/components/ChipGroup/ChipGroup.js} +50 -36
- package/styled-components/cjs/components/ChipGroup/ChipGroup.styles.js +9 -0
- package/styled-components/cjs/components/ChipGroup/ChipGroup.template-doc.mdx +93 -0
- package/styled-components/cjs/components/ChipGroup/ChipGroup.tokens.js +48 -0
- package/styled-components/cjs/components/ChipGroup/index.js +31 -0
- package/styled-components/cjs/components/{Attach/variations/_view → ChipGroup/variations/_gap}/base.js +2 -2
- package/styled-components/cjs/components/ChipGroup/variations/_gap/tokens.json +1 -0
- package/styled-components/cjs/components/ChipGroup/variations/_size/base.js +10 -0
- package/styled-components/cjs/components/ChipGroup/variations/_size/tokens.json +22 -0
- package/styled-components/cjs/components/ChipGroup/variations/_view/base.js +10 -0
- package/styled-components/cjs/components/ChipGroup/variations/_view/tokens.json +15 -0
- package/styled-components/cjs/components/_Icon/index.js +1 -57
- package/styled-components/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.config.js +33 -0
- package/styled-components/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.js +11 -0
- package/styled-components/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/styled-components/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.config.js +33 -0
- package/styled-components/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.js +11 -0
- package/styled-components/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/styled-components/cjs/index.js +11 -11
- package/styled-components/es/components/Cell/Cell.js +2 -3
- package/styled-components/es/components/Chip/Chip.js +1 -1
- package/styled-components/es/components/Chip/Chip.tokens.js +2 -1
- package/styled-components/es/components/Chip/index.js +1 -1
- package/styled-components/es/components/ChipGroup/ChipGroup.js +56 -0
- package/styled-components/es/components/ChipGroup/ChipGroup.styles.js +3 -0
- package/styled-components/es/components/ChipGroup/ChipGroup.template-doc.mdx +93 -0
- package/styled-components/es/components/ChipGroup/ChipGroup.tokens.js +42 -0
- package/styled-components/es/components/ChipGroup/index.js +2 -0
- package/styled-components/es/components/ChipGroup/variations/_gap/base.js +3 -0
- package/styled-components/es/components/ChipGroup/variations/_gap/tokens.json +1 -0
- package/styled-components/es/components/ChipGroup/variations/_size/base.js +4 -0
- package/styled-components/es/components/ChipGroup/variations/_size/tokens.json +22 -0
- package/styled-components/es/components/ChipGroup/variations/_view/base.js +4 -0
- package/styled-components/es/components/ChipGroup/variations/_view/tokens.json +15 -0
- package/styled-components/es/components/_Icon/index.js +1 -9
- package/styled-components/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.config.js +27 -0
- package/styled-components/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.js +5 -0
- package/styled-components/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/styled-components/es/examples/plasma_web/components/ChipGroup /ChipGroup.config.js +27 -0
- package/styled-components/es/examples/plasma_web/components/ChipGroup /ChipGroup.js +5 -0
- package/styled-components/es/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +93 -0
- package/styled-components/es/index.js +2 -2
- 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/Chip/Chip.tokens.d.ts +1 -0
- package/types/components/Chip/Chip.tokens.d.ts.map +1 -1
- package/types/components/Chip/index.d.ts +1 -1
- package/types/components/Chip/index.d.ts.map +1 -1
- package/types/components/ChipGroup/ChipGroup.d.ts +27 -0
- package/types/components/ChipGroup/ChipGroup.d.ts.map +1 -0
- package/types/components/ChipGroup/ChipGroup.styles.d.ts +2 -0
- package/types/components/ChipGroup/ChipGroup.styles.d.ts.map +1 -0
- package/types/components/ChipGroup/ChipGroup.tokens.d.ts +43 -0
- package/types/components/ChipGroup/ChipGroup.tokens.d.ts.map +1 -0
- package/types/components/ChipGroup/ChipGroup.types.d.ts +42 -0
- package/types/components/ChipGroup/ChipGroup.types.d.ts.map +1 -0
- package/types/components/ChipGroup/index.d.ts +3 -0
- package/types/components/ChipGroup/index.d.ts.map +1 -0
- package/types/components/ChipGroup/variations/_gap/base.d.ts.map +1 -0
- package/types/components/ChipGroup/variations/_size/base.d.ts.map +1 -0
- package/types/components/ChipGroup/variations/_view/base.d.ts +2 -0
- package/types/components/ChipGroup/variations/_view/base.d.ts.map +1 -0
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts +2 -2
- package/types/components/_Icon/index.d.ts +0 -8
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +2 -2
- package/types/examples/plasma_b2c/components/ChipGroup /ChipGroup.config.d.ts +24 -0
- package/types/examples/plasma_b2c/components/ChipGroup /ChipGroup.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/ChipGroup /ChipGroup.d.ts +19 -0
- package/types/examples/plasma_b2c/components/ChipGroup /ChipGroup.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Cell/Cell.d.ts +2 -2
- package/types/examples/plasma_web/components/ChipGroup /ChipGroup.config.d.ts +24 -0
- package/types/examples/plasma_web/components/ChipGroup /ChipGroup.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/ChipGroup /ChipGroup.d.ts +19 -0
- package/types/examples/plasma_web/components/ChipGroup /ChipGroup.d.ts.map +1 -0
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/cjs/components/Attach/Attach.css +0 -48
- package/cjs/components/Attach/Attach.js +0 -182
- package/cjs/components/Attach/Attach.js.map +0 -1
- package/cjs/components/Attach/Attach.styles.js +0 -23
- package/cjs/components/Attach/Attach.styles.js.map +0 -1
- package/cjs/components/Attach/Attach.styles_fl8wha.css +0 -3
- package/cjs/components/Attach/Attach.tokens.js +0 -130
- package/cjs/components/Attach/Attach.tokens.js.map +0 -1
- package/cjs/components/Attach/components/AttachButton/AttachButton.css +0 -34
- package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -49
- package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +0 -1
- package/cjs/components/Attach/ui/Button/Button.styles.js +0 -23
- package/cjs/components/Attach/ui/Button/Button.styles.js.map +0 -1
- package/cjs/components/Attach/ui/Button/Button.styles_bj69th.css +0 -1
- package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -25
- package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +0 -1
- package/cjs/components/Attach/ui/Cell/Cell.styles_69w962.css +0 -1
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -32
- package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +0 -1
- package/cjs/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +0 -2
- package/cjs/components/Attach/utils/extractExtension.js +0 -10
- package/cjs/components/Attach/utils/extractExtension.js.map +0 -1
- package/cjs/components/Attach/utils/getFileicon.js +0 -45
- package/cjs/components/Attach/utils/getFileicon.js.map +0 -1
- package/cjs/components/Attach/utils/truncateFilename.js +0 -24
- package/cjs/components/Attach/utils/truncateFilename.js.map +0 -1
- package/cjs/components/Attach/variations/_size/base.js.map +0 -1
- package/cjs/components/Attach/variations/_size/base_eax0b8.css +0 -1
- package/cjs/components/Attach/variations/_view/base.js.map +0 -1
- package/cjs/components/Attach/variations/_view/base_1nvsg1b.css +0 -1
- package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -33
- package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +0 -37
- package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/BlankOutline.js +0 -24
- package/cjs/components/_Icon/Icon.assets/BlankOutline.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -29
- package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -33
- package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -33
- package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -24
- package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/Plus.js +0 -24
- package/cjs/components/_Icon/Icon.assets/Plus.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +0 -23
- package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconBlankDocOutline.js +0 -23
- package/cjs/components/_Icon/Icons/IconBlankDocOutline.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconBlankOutline.js +0 -23
- package/cjs/components/_Icon/Icons/IconBlankOutline.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +0 -23
- package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +0 -23
- package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +0 -23
- package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +0 -23
- package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconPlus.js +0 -23
- package/cjs/components/_Icon/Icons/IconPlus.js.map +0 -1
- package/emotion/cjs/components/Attach/Attach.js +0 -187
- package/emotion/cjs/components/Attach/Attach.styles.js +0 -36
- package/emotion/cjs/components/Attach/Attach.template-doc.mdx +0 -63
- package/emotion/cjs/components/Attach/Attach.tokens.js +0 -128
- package/emotion/cjs/components/Attach/components/AttachButton/index.js +0 -12
- package/emotion/cjs/components/Attach/index.js +0 -25
- package/emotion/cjs/components/Attach/ui/Button/Button.js +0 -12
- package/emotion/cjs/components/Attach/ui/Button/Button.styles.js +0 -17
- package/emotion/cjs/components/Attach/ui/Cell/Cell.js +0 -12
- package/emotion/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -17
- package/emotion/cjs/components/Attach/ui/IconButton/IconButton.js +0 -12
- package/emotion/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -21
- package/emotion/cjs/components/Attach/utils/extractExtension.js +0 -9
- package/emotion/cjs/components/Attach/utils/getFileicon.js +0 -38
- package/emotion/cjs/components/Attach/utils/index.js +0 -26
- package/emotion/cjs/components/Attach/utils/truncateFilename.js +0 -23
- package/emotion/cjs/components/Attach/variations/_size/base.js +0 -9
- package/emotion/cjs/components/Attach/variations/_view/base.js +0 -9
- package/emotion/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -32
- package/emotion/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +0 -36
- package/emotion/cjs/components/_Icon/Icon.assets/BlankOutline.js +0 -23
- package/emotion/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -28
- package/emotion/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -32
- package/emotion/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -32
- package/emotion/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -23
- package/emotion/cjs/components/_Icon/Icon.assets/Plus.js +0 -23
- package/emotion/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +0 -22
- package/emotion/cjs/components/_Icon/Icons/IconBlankDocOutline.js +0 -22
- package/emotion/cjs/components/_Icon/Icons/IconBlankOutline.js +0 -22
- package/emotion/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +0 -22
- package/emotion/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +0 -22
- package/emotion/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +0 -22
- package/emotion/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +0 -22
- package/emotion/cjs/components/_Icon/Icons/IconPlus.js +0 -22
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +0 -37
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.js +0 -11
- package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -181
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.config.js +0 -37
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.js +0 -11
- package/emotion/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -181
- package/emotion/es/components/Attach/Attach.js +0 -178
- package/emotion/es/components/Attach/Attach.styles.js +0 -29
- package/emotion/es/components/Attach/Attach.template-doc.mdx +0 -63
- package/emotion/es/components/Attach/Attach.tokens.js +0 -122
- package/emotion/es/components/Attach/components/AttachButton/AttachButton.js +0 -42
- package/emotion/es/components/Attach/components/AttachButton/index.js +0 -1
- package/emotion/es/components/Attach/index.js +0 -2
- package/emotion/es/components/Attach/ui/Button/Button.js +0 -1
- package/emotion/es/components/Attach/ui/Button/Button.styles.js +0 -10
- package/emotion/es/components/Attach/ui/Cell/Cell.js +0 -1
- package/emotion/es/components/Attach/ui/Cell/Cell.styles.js +0 -10
- package/emotion/es/components/Attach/ui/IconButton/IconButton.js +0 -1
- package/emotion/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -14
- package/emotion/es/components/Attach/utils/extractExtension.js +0 -3
- package/emotion/es/components/Attach/utils/getFileicon.js +0 -31
- package/emotion/es/components/Attach/utils/index.js +0 -3
- package/emotion/es/components/Attach/utils/truncateFilename.js +0 -17
- package/emotion/es/components/Attach/variations/_size/base.js +0 -3
- package/emotion/es/components/Attach/variations/_view/base.js +0 -3
- package/emotion/es/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -25
- package/emotion/es/components/_Icon/Icon.assets/BlankDocOutline.js +0 -29
- package/emotion/es/components/_Icon/Icon.assets/BlankOutline.js +0 -16
- package/emotion/es/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -21
- package/emotion/es/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -25
- package/emotion/es/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -25
- package/emotion/es/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -16
- package/emotion/es/components/_Icon/Icon.assets/Plus.js +0 -16
- package/emotion/es/components/_Icon/Icons/IconBlankCsvOutline.js +0 -15
- package/emotion/es/components/_Icon/Icons/IconBlankDocOutline.js +0 -15
- package/emotion/es/components/_Icon/Icons/IconBlankOutline.js +0 -15
- package/emotion/es/components/_Icon/Icons/IconBlankPdfOutline.js +0 -15
- package/emotion/es/components/_Icon/Icons/IconBlankTxtOutline.js +0 -15
- package/emotion/es/components/_Icon/Icons/IconBlankXlsOutline.js +0 -15
- package/emotion/es/components/_Icon/Icons/IconCloseCircleOutline.js +0 -15
- package/emotion/es/components/_Icon/Icons/IconPlus.js +0 -15
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.config.js +0 -31
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.js +0 -5
- package/emotion/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -181
- package/emotion/es/examples/plasma_web/components/Attach/Attach.config.js +0 -31
- package/emotion/es/examples/plasma_web/components/Attach/Attach.js +0 -5
- package/emotion/es/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -181
- package/es/components/Attach/Attach.css +0 -48
- package/es/components/Attach/Attach.js +0 -177
- package/es/components/Attach/Attach.js.map +0 -1
- package/es/components/Attach/Attach.styles.js +0 -17
- package/es/components/Attach/Attach.styles.js.map +0 -1
- package/es/components/Attach/Attach.styles_fl8wha.css +0 -3
- package/es/components/Attach/Attach.tokens.js +0 -125
- package/es/components/Attach/Attach.tokens.js.map +0 -1
- package/es/components/Attach/components/AttachButton/AttachButton.css +0 -34
- package/es/components/Attach/components/AttachButton/AttachButton.js +0 -45
- package/es/components/Attach/components/AttachButton/AttachButton.js.map +0 -1
- package/es/components/Attach/ui/Button/Button.styles.js +0 -19
- package/es/components/Attach/ui/Button/Button.styles.js.map +0 -1
- package/es/components/Attach/ui/Button/Button.styles_bj69th.css +0 -1
- package/es/components/Attach/ui/Cell/Cell.styles.js +0 -21
- package/es/components/Attach/ui/Cell/Cell.styles.js.map +0 -1
- package/es/components/Attach/ui/Cell/Cell.styles_69w962.css +0 -1
- package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -27
- package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +0 -1
- package/es/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +0 -2
- package/es/components/Attach/utils/extractExtension.js +0 -6
- package/es/components/Attach/utils/extractExtension.js.map +0 -1
- package/es/components/Attach/utils/getFileicon.js +0 -41
- package/es/components/Attach/utils/getFileicon.js.map +0 -1
- package/es/components/Attach/utils/truncateFilename.js +0 -20
- package/es/components/Attach/utils/truncateFilename.js.map +0 -1
- package/es/components/Attach/variations/_size/base.js.map +0 -1
- package/es/components/Attach/variations/_size/base_eax0b8.css +0 -1
- package/es/components/Attach/variations/_view/base.js.map +0 -1
- package/es/components/Attach/variations/_view/base_1nvsg1b.css +0 -1
- package/es/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -29
- package/es/components/_Icon/Icon.assets/BlankCsvOutline.js.map +0 -1
- package/es/components/_Icon/Icon.assets/BlankDocOutline.js +0 -33
- package/es/components/_Icon/Icon.assets/BlankDocOutline.js.map +0 -1
- package/es/components/_Icon/Icon.assets/BlankOutline.js +0 -20
- package/es/components/_Icon/Icon.assets/BlankOutline.js.map +0 -1
- package/es/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -25
- package/es/components/_Icon/Icon.assets/BlankPdfOutline.js.map +0 -1
- package/es/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -29
- package/es/components/_Icon/Icon.assets/BlankTxtOutline.js.map +0 -1
- package/es/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -29
- package/es/components/_Icon/Icon.assets/BlankXlsOutline.js.map +0 -1
- package/es/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -20
- package/es/components/_Icon/Icon.assets/CloseCircleOutline.js.map +0 -1
- package/es/components/_Icon/Icon.assets/Plus.js +0 -20
- package/es/components/_Icon/Icon.assets/Plus.js.map +0 -1
- package/es/components/_Icon/Icons/IconBlankCsvOutline.js +0 -19
- package/es/components/_Icon/Icons/IconBlankCsvOutline.js.map +0 -1
- package/es/components/_Icon/Icons/IconBlankDocOutline.js +0 -19
- package/es/components/_Icon/Icons/IconBlankDocOutline.js.map +0 -1
- package/es/components/_Icon/Icons/IconBlankOutline.js +0 -19
- package/es/components/_Icon/Icons/IconBlankOutline.js.map +0 -1
- package/es/components/_Icon/Icons/IconBlankPdfOutline.js +0 -19
- package/es/components/_Icon/Icons/IconBlankPdfOutline.js.map +0 -1
- package/es/components/_Icon/Icons/IconBlankTxtOutline.js +0 -19
- package/es/components/_Icon/Icons/IconBlankTxtOutline.js.map +0 -1
- package/es/components/_Icon/Icons/IconBlankXlsOutline.js +0 -19
- package/es/components/_Icon/Icons/IconBlankXlsOutline.js.map +0 -1
- package/es/components/_Icon/Icons/IconCloseCircleOutline.js +0 -19
- package/es/components/_Icon/Icons/IconCloseCircleOutline.js.map +0 -1
- package/es/components/_Icon/Icons/IconPlus.js +0 -19
- package/es/components/_Icon/Icons/IconPlus.js.map +0 -1
- package/styled-components/cjs/components/Attach/Attach.js +0 -187
- package/styled-components/cjs/components/Attach/Attach.styles.js +0 -18
- package/styled-components/cjs/components/Attach/Attach.template-doc.mdx +0 -63
- package/styled-components/cjs/components/Attach/Attach.tokens.js +0 -128
- package/styled-components/cjs/components/Attach/components/AttachButton/index.js +0 -12
- package/styled-components/cjs/components/Attach/index.js +0 -25
- package/styled-components/cjs/components/Attach/ui/Button/Button.js +0 -12
- package/styled-components/cjs/components/Attach/ui/Button/Button.styles.js +0 -16
- package/styled-components/cjs/components/Attach/ui/Cell/Cell.js +0 -12
- package/styled-components/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -16
- package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.js +0 -12
- package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -19
- package/styled-components/cjs/components/Attach/utils/extractExtension.js +0 -9
- package/styled-components/cjs/components/Attach/utils/getFileicon.js +0 -38
- package/styled-components/cjs/components/Attach/utils/index.js +0 -26
- package/styled-components/cjs/components/Attach/utils/truncateFilename.js +0 -23
- package/styled-components/cjs/components/Attach/variations/_size/base.js +0 -9
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -32
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +0 -36
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankOutline.js +0 -23
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -28
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -32
- package/styled-components/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -32
- package/styled-components/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -23
- package/styled-components/cjs/components/_Icon/Icon.assets/Plus.js +0 -23
- package/styled-components/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +0 -22
- package/styled-components/cjs/components/_Icon/Icons/IconBlankDocOutline.js +0 -22
- package/styled-components/cjs/components/_Icon/Icons/IconBlankOutline.js +0 -22
- package/styled-components/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +0 -22
- package/styled-components/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +0 -22
- package/styled-components/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +0 -22
- package/styled-components/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +0 -22
- package/styled-components/cjs/components/_Icon/Icons/IconPlus.js +0 -22
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +0 -37
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -181
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.config.js +0 -37
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.js +0 -11
- package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -181
- package/styled-components/es/components/Attach/Attach.js +0 -178
- package/styled-components/es/components/Attach/Attach.styles.js +0 -10
- package/styled-components/es/components/Attach/Attach.template-doc.mdx +0 -63
- package/styled-components/es/components/Attach/Attach.tokens.js +0 -122
- package/styled-components/es/components/Attach/components/AttachButton/AttachButton.js +0 -42
- package/styled-components/es/components/Attach/components/AttachButton/index.js +0 -1
- package/styled-components/es/components/Attach/index.js +0 -2
- package/styled-components/es/components/Attach/ui/Button/Button.js +0 -1
- package/styled-components/es/components/Attach/ui/Button/Button.styles.js +0 -9
- package/styled-components/es/components/Attach/ui/Cell/Cell.js +0 -1
- package/styled-components/es/components/Attach/ui/Cell/Cell.styles.js +0 -9
- package/styled-components/es/components/Attach/ui/IconButton/IconButton.js +0 -1
- package/styled-components/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -12
- package/styled-components/es/components/Attach/utils/extractExtension.js +0 -3
- package/styled-components/es/components/Attach/utils/getFileicon.js +0 -31
- package/styled-components/es/components/Attach/utils/index.js +0 -3
- package/styled-components/es/components/Attach/utils/truncateFilename.js +0 -17
- package/styled-components/es/components/Attach/variations/_size/base.js +0 -3
- package/styled-components/es/components/Attach/variations/_view/base.js +0 -3
- package/styled-components/es/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -25
- package/styled-components/es/components/_Icon/Icon.assets/BlankDocOutline.js +0 -29
- package/styled-components/es/components/_Icon/Icon.assets/BlankOutline.js +0 -16
- package/styled-components/es/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -21
- package/styled-components/es/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -25
- package/styled-components/es/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -25
- package/styled-components/es/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -16
- package/styled-components/es/components/_Icon/Icon.assets/Plus.js +0 -16
- package/styled-components/es/components/_Icon/Icons/IconBlankCsvOutline.js +0 -15
- package/styled-components/es/components/_Icon/Icons/IconBlankDocOutline.js +0 -15
- package/styled-components/es/components/_Icon/Icons/IconBlankOutline.js +0 -15
- package/styled-components/es/components/_Icon/Icons/IconBlankPdfOutline.js +0 -15
- package/styled-components/es/components/_Icon/Icons/IconBlankTxtOutline.js +0 -15
- package/styled-components/es/components/_Icon/Icons/IconBlankXlsOutline.js +0 -15
- package/styled-components/es/components/_Icon/Icons/IconCloseCircleOutline.js +0 -15
- package/styled-components/es/components/_Icon/Icons/IconPlus.js +0 -15
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.config.js +0 -31
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -181
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.config.js +0 -31
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.js +0 -5
- package/styled-components/es/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -181
- package/types/components/Attach/Attach.d.ts +0 -23
- package/types/components/Attach/Attach.d.ts.map +0 -1
- package/types/components/Attach/Attach.styles.d.ts +0 -5
- package/types/components/Attach/Attach.styles.d.ts.map +0 -1
- package/types/components/Attach/Attach.tokens.d.ts +0 -119
- package/types/components/Attach/Attach.tokens.d.ts.map +0 -1
- package/types/components/Attach/Attach.types.d.ts +0 -43
- package/types/components/Attach/Attach.types.d.ts.map +0 -1
- package/types/components/Attach/components/AttachButton/AttachButton.d.ts +0 -4
- package/types/components/Attach/components/AttachButton/AttachButton.d.ts.map +0 -1
- package/types/components/Attach/components/AttachButton/index.d.ts +0 -2
- package/types/components/Attach/components/AttachButton/index.d.ts.map +0 -1
- package/types/components/Attach/index.d.ts +0 -4
- package/types/components/Attach/index.d.ts.map +0 -1
- package/types/components/Attach/ui/Button/Button.d.ts +0 -2
- package/types/components/Attach/ui/Button/Button.d.ts.map +0 -1
- package/types/components/Attach/ui/Button/Button.styles.d.ts +0 -45
- package/types/components/Attach/ui/Button/Button.styles.d.ts.map +0 -1
- package/types/components/Attach/ui/Cell/Cell.d.ts +0 -2
- package/types/components/Attach/ui/Cell/Cell.d.ts.map +0 -1
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts +0 -33
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts.map +0 -1
- package/types/components/Attach/ui/IconButton/IconButton.d.ts +0 -2
- package/types/components/Attach/ui/IconButton/IconButton.d.ts.map +0 -1
- package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +0 -88
- package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts.map +0 -1
- package/types/components/Attach/utils/extractExtension.d.ts +0 -2
- package/types/components/Attach/utils/extractExtension.d.ts.map +0 -1
- package/types/components/Attach/utils/getFileicon.d.ts +0 -3
- package/types/components/Attach/utils/getFileicon.d.ts.map +0 -1
- package/types/components/Attach/utils/index.d.ts +0 -4
- package/types/components/Attach/utils/index.d.ts.map +0 -1
- package/types/components/Attach/utils/truncateFilename.d.ts +0 -7
- package/types/components/Attach/utils/truncateFilename.d.ts.map +0 -1
- package/types/components/Attach/variations/_size/base.d.ts.map +0 -1
- package/types/components/Attach/variations/_view/base.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/BlankOutline.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/BlankOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/Plus.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/Plus.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts +0 -4
- package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts +0 -4
- package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconBlankOutline.d.ts +0 -4
- package/types/components/_Icon/Icons/IconBlankOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts +0 -4
- package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts +0 -4
- package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts +0 -4
- package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts +0 -4
- package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconPlus.d.ts +0 -4
- package/types/components/_Icon/Icons/IconPlus.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts +0 -30
- package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +0 -224
- package/types/examples/plasma_b2c/components/Attach/Attach.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Attach/Attach.config.d.ts +0 -30
- package/types/examples/plasma_web/components/Attach/Attach.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Attach/Attach.d.ts +0 -224
- package/types/examples/plasma_web/components/Attach/Attach.d.ts.map +0 -1
- /package/emotion/cjs/components/{Attach/Attach.types.js → ChipGroup/ChipGroup.types.js} +0 -0
- /package/emotion/es/components/{Attach/Attach.types.js → ChipGroup/ChipGroup.types.js} +0 -0
- /package/styled-components/cjs/components/{Attach/Attach.types.js → ChipGroup/ChipGroup.types.js} +0 -0
- /package/styled-components/es/components/{Attach/Attach.types.js → ChipGroup/ChipGroup.types.js} +0 -0
- /package/types/components/{Attach/variations/_size → ChipGroup/variations/_gap}/base.d.ts +0 -0
- /package/types/components/{Attach/variations/_view → ChipGroup/variations/_size}/base.d.ts +0 -0
@@ -1,181 +0,0 @@
|
|
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 viewOptions = [
|
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_b2c/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: viewOptions,
|
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
|
-
};
|
@@ -1,37 +0,0 @@
|
|
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
|
-
};
|
@@ -1,11 +0,0 @@
|
|
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);
|
@@ -1,181 +0,0 @@
|
|
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
|
-
};
|