@salutejs/plasma-new-hope 0.336.0-canary.2235.17792261875.0 → 0.336.0-canary.2238.17818313113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Attach/Attach.css +18 -16
- package/cjs/components/Attach/Attach.js +13 -59
- package/cjs/components/Attach/Attach.js.map +1 -1
- package/cjs/components/Attach/Attach.styles.js +21 -9
- package/cjs/components/Attach/Attach.styles.js.map +1 -1
- package/cjs/components/Attach/Attach.styles_pso18d.css +7 -0
- package/cjs/components/Attach/Attach.tokens.js +1 -0
- package/cjs/components/Attach/Attach.tokens.js.map +1 -1
- package/cjs/components/Attach/components/AttachButton/AttachButton.css +9 -9
- package/cjs/components/Attach/utils/getFileicon.js +2 -2
- package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
- package/cjs/components/Attach/variations/_helperTextView/base.js +1 -1
- package/cjs/components/Attach/variations/_helperTextView/base_1tgnvl9.css +1 -0
- package/cjs/components/Attach/variations/_size/base.js +1 -1
- package/cjs/components/Attach/variations/_size/base.js.map +1 -1
- package/cjs/components/Attach/variations/_size/{base_a4eelx.css → base_kpo9at.css} +1 -1
- package/cjs/components/Button/Button.css +9 -9
- package/cjs/components/Button/Button.styles.js +11 -11
- package/cjs/components/Button/Button.styles.js.map +1 -1
- package/cjs/components/Button/{Button.styles_yce5o0.css → Button.styles_wo15lb.css} +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.css +9 -9
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +9 -9
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -9
- package/cjs/components/Carousel/CarouselNew/Carousel.css +9 -9
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +9 -9
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +9 -9
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +9 -9
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +9 -9
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +9 -9
- package/cjs/components/Drawer/Drawer.css +11 -11
- package/cjs/components/Drawer/Drawer.js +10 -7
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/Drawer.styles.js +17 -2
- package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
- package/cjs/components/Drawer/{Drawer.styles_h5od79.css → Drawer.styles_1gcp61n.css} +1 -1
- package/cjs/components/Drawer/Drawer.tokens.js +10 -0
- package/cjs/components/Drawer/Drawer.tokens.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +9 -9
- package/cjs/components/EmbedIconButton/EmbedIconButton.css +9 -9
- package/cjs/components/EmptyState/EmptyState.css +9 -9
- package/cjs/components/IconButton/IconButton.css +9 -9
- package/cjs/components/Note/Note.css +9 -9
- package/cjs/components/Notification/Notification.css +9 -9
- package/cjs/components/Notification/NotificationsProvider.css +9 -9
- package/cjs/components/NumberInput/NumberInput.css +9 -9
- package/cjs/components/Pagination/Pagination.css +9 -9
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +9 -9
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +9 -9
- package/cjs/components/Select/Select.css +9 -9
- package/cjs/components/Select/ui/Target/Target.css +9 -9
- package/cjs/components/Select/ui/Target/ui/Button/Button.css +9 -9
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.css +1 -1
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +10 -4
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +2 -1
- package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.styles.js.map +1 -1
- package/cjs/components/Skeleton/LineSkeleton/variations/_size/base.js +1 -1
- package/cjs/components/Skeleton/LineSkeleton/variations/_size/base.js.map +1 -1
- package/cjs/components/Skeleton/LineSkeleton/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Skeleton/LineSkeleton/variations/_view/base.js +9 -0
- package/cjs/components/Skeleton/LineSkeleton/variations/_view/base.js.map +1 -0
- package/cjs/components/Skeleton/LineSkeleton/variations/_view/base_1it9pjr.css +1 -0
- package/cjs/components/Skeleton/TextSkeleton/TextSkeleton.js +4 -1
- package/cjs/components/Skeleton/TextSkeleton/TextSkeleton.js.map +1 -1
- package/cjs/components/Skeleton/tokens.js +2 -1
- package/cjs/components/Skeleton/tokens.js.map +1 -1
- package/cjs/components/Table/Table.css +9 -9
- package/cjs/components/Table/ui/Cell/Cell.css +9 -9
- package/cjs/components/Table/ui/EditableCell/EditableCell.css +9 -9
- package/cjs/components/Table/ui/HeadCell/HeadCell.css +9 -9
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +9 -9
- package/cjs/components/Toast/Toast.css +9 -9
- package/cjs/components/Toast/ToastController.css +9 -9
- package/cjs/components/Toast/ToastNew/ToastNew.css +9 -9
- package/cjs/index.css +21 -19
- package/emotion/cjs/components/Attach/Attach.js +12 -51
- package/emotion/cjs/components/Attach/Attach.styles.js +28 -13
- package/emotion/cjs/components/Attach/Attach.tokens.js +1 -0
- package/emotion/cjs/components/Attach/utils/getFileicon.js +3 -3
- package/emotion/cjs/components/Attach/utils/index.js +2 -10
- package/emotion/cjs/components/Attach/variations/_size/base.js +1 -1
- package/emotion/cjs/components/Button/Button.styles.js +17 -17
- package/emotion/cjs/components/Drawer/Drawer.js +13 -4
- package/emotion/cjs/components/Drawer/Drawer.styles.js +10 -4
- package/emotion/cjs/components/Drawer/Drawer.tokens.js +12 -0
- package/emotion/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +11 -5
- package/emotion/cjs/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +5 -4
- package/emotion/cjs/components/Skeleton/LineSkeleton/variations/_size/base.js +1 -3
- package/emotion/cjs/components/Skeleton/LineSkeleton/variations/_view/base.js +14 -0
- package/emotion/cjs/components/Skeleton/TextSkeleton/TextSkeleton.js +4 -2
- package/emotion/cjs/components/Skeleton/tokens.js +2 -1
- package/emotion/cjs/examples/components/Attach/Attach.config.js +18 -18
- package/emotion/cjs/examples/components/Button/Button.config.js +21 -21
- package/emotion/cjs/examples/components/Skeleton/LineSkeleton.config.js +23 -18
- package/emotion/es/components/Attach/Attach.js +16 -55
- package/emotion/es/components/Attach/Attach.styles.js +20 -11
- package/emotion/es/components/Attach/Attach.tokens.js +1 -0
- package/emotion/es/components/Attach/utils/getFileicon.js +1 -1
- package/emotion/es/components/Attach/utils/index.js +1 -3
- package/emotion/es/components/Attach/variations/_size/base.js +2 -2
- package/emotion/es/components/Button/Button.styles.js +17 -17
- package/emotion/es/components/Drawer/Drawer.js +9 -5
- package/emotion/es/components/Drawer/Drawer.styles.js +11 -5
- package/emotion/es/components/Drawer/Drawer.tokens.js +9 -0
- package/emotion/es/components/Skeleton/LineSkeleton/LineSkeleton.js +11 -5
- package/emotion/es/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +5 -4
- package/emotion/es/components/Skeleton/LineSkeleton/variations/_size/base.js +1 -3
- package/emotion/es/components/Skeleton/LineSkeleton/variations/_view/base.js +4 -0
- package/emotion/es/components/Skeleton/TextSkeleton/TextSkeleton.js +4 -2
- package/emotion/es/components/Skeleton/tokens.js +2 -1
- package/emotion/es/examples/components/Attach/Attach.config.js +18 -18
- package/emotion/es/examples/components/Button/Button.config.js +21 -21
- package/emotion/es/examples/components/Combobox/Combobox.js +7 -0
- package/emotion/es/examples/components/Skeleton/LineSkeleton.config.js +23 -18
- package/es/components/Attach/Attach.css +18 -16
- package/es/components/Attach/Attach.js +17 -63
- package/es/components/Attach/Attach.js.map +1 -1
- package/es/components/Attach/Attach.styles.js +19 -9
- package/es/components/Attach/Attach.styles.js.map +1 -1
- package/es/components/Attach/Attach.styles_pso18d.css +7 -0
- package/es/components/Attach/Attach.tokens.js +1 -0
- package/es/components/Attach/Attach.tokens.js.map +1 -1
- package/es/components/Attach/components/AttachButton/AttachButton.css +9 -9
- package/es/components/Attach/utils/getFileicon.js +2 -2
- package/es/components/Attach/utils/getFileicon.js.map +1 -1
- package/es/components/Attach/variations/_helperTextView/base.js +1 -1
- package/es/components/Attach/variations/_helperTextView/base_1tgnvl9.css +1 -0
- package/es/components/Attach/variations/_size/base.js +1 -1
- package/es/components/Attach/variations/_size/base.js.map +1 -1
- package/es/components/Attach/variations/_size/{base_a4eelx.css → base_kpo9at.css} +1 -1
- package/es/components/Button/Button.css +9 -9
- package/es/components/Button/Button.styles.js +11 -11
- package/es/components/Button/Button.styles.js.map +1 -1
- package/es/components/Button/{Button.styles_yce5o0.css → Button.styles_wo15lb.css} +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.css +9 -9
- package/es/components/Calendar/CalendarDouble/CalendarDouble.css +9 -9
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +9 -9
- package/es/components/Carousel/CarouselNew/Carousel.css +9 -9
- package/es/components/Combobox/ComboboxNew/Combobox.css +9 -9
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +9 -9
- package/es/components/DatePicker/RangeDate/RangeDate.css +9 -9
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +9 -9
- package/es/components/DatePicker/SingleDate/SingleDate.css +9 -9
- package/es/components/Drawer/Drawer.css +11 -11
- package/es/components/Drawer/Drawer.js +8 -6
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/Drawer.styles.js +17 -2
- package/es/components/Drawer/Drawer.styles.js.map +1 -1
- package/es/components/Drawer/{Drawer.styles_h5od79.css → Drawer.styles_1gcp61n.css} +1 -1
- package/es/components/Drawer/Drawer.tokens.js +10 -1
- package/es/components/Drawer/Drawer.tokens.js.map +1 -1
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +9 -9
- package/es/components/EmbedIconButton/EmbedIconButton.css +9 -9
- package/es/components/EmptyState/EmptyState.css +9 -9
- package/es/components/IconButton/IconButton.css +9 -9
- package/es/components/Note/Note.css +9 -9
- package/es/components/Notification/Notification.css +9 -9
- package/es/components/Notification/NotificationsProvider.css +9 -9
- package/es/components/NumberInput/NumberInput.css +9 -9
- package/es/components/Pagination/Pagination.css +9 -9
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +9 -9
- package/es/components/Panel/ui/PanelHeader/PanelHeader.css +9 -9
- package/es/components/Select/Select.css +9 -9
- package/es/components/Select/ui/Target/Target.css +9 -9
- package/es/components/Select/ui/Target/ui/Button/Button.css +9 -9
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.css +1 -1
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +10 -4
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +2 -1
- package/es/components/Skeleton/LineSkeleton/LineSkeleton.styles.js.map +1 -1
- package/es/components/Skeleton/LineSkeleton/variations/_size/base.js +1 -1
- package/es/components/Skeleton/LineSkeleton/variations/_size/base.js.map +1 -1
- package/es/components/Skeleton/LineSkeleton/variations/_size/base_x642ct.css +1 -0
- package/es/components/Skeleton/LineSkeleton/variations/_view/base.js +5 -0
- package/es/components/Skeleton/LineSkeleton/variations/_view/base.js.map +1 -0
- package/es/components/Skeleton/LineSkeleton/variations/_view/base_1it9pjr.css +1 -0
- package/es/components/Skeleton/TextSkeleton/TextSkeleton.js +4 -1
- package/es/components/Skeleton/TextSkeleton/TextSkeleton.js.map +1 -1
- package/es/components/Skeleton/tokens.js +2 -1
- package/es/components/Skeleton/tokens.js.map +1 -1
- package/es/components/Table/Table.css +9 -9
- package/es/components/Table/ui/Cell/Cell.css +9 -9
- package/es/components/Table/ui/EditableCell/EditableCell.css +9 -9
- package/es/components/Table/ui/HeadCell/HeadCell.css +9 -9
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +9 -9
- package/es/components/Toast/Toast.css +9 -9
- package/es/components/Toast/ToastController.css +9 -9
- package/es/components/Toast/ToastNew/ToastNew.css +9 -9
- package/es/index.css +21 -19
- package/package.json +5 -5
- package/styled-components/cjs/components/Attach/Attach.js +12 -51
- package/styled-components/cjs/components/Attach/Attach.styles.js +31 -11
- package/styled-components/cjs/components/Attach/Attach.tokens.js +1 -0
- package/styled-components/cjs/components/Attach/utils/getFileicon.js +3 -3
- package/styled-components/cjs/components/Attach/utils/index.js +2 -10
- package/styled-components/cjs/components/Attach/variations/_size/base.js +2 -1
- package/styled-components/cjs/components/Button/Button.styles.js +11 -10
- package/styled-components/cjs/components/Drawer/Drawer.js +13 -4
- package/styled-components/cjs/components/Drawer/Drawer.styles.js +17 -4
- package/styled-components/cjs/components/Drawer/Drawer.tokens.js +12 -0
- package/styled-components/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +11 -5
- package/styled-components/cjs/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +3 -2
- package/styled-components/cjs/components/Skeleton/LineSkeleton/variations/_size/base.js +2 -7
- package/styled-components/cjs/components/Skeleton/LineSkeleton/variations/_view/base.js +19 -0
- package/styled-components/cjs/components/Skeleton/TextSkeleton/TextSkeleton.js +4 -2
- package/styled-components/cjs/components/Skeleton/tokens.js +2 -1
- package/styled-components/cjs/examples/components/Attach/Attach.config.js +8 -4
- package/styled-components/cjs/examples/components/Button/Button.config.js +2 -4
- package/styled-components/cjs/examples/components/Combobox/Combobox.js +15 -0
- package/styled-components/cjs/examples/components/Skeleton/LineSkeleton.config.js +12 -1
- package/styled-components/es/components/Attach/Attach.js +16 -55
- package/styled-components/es/components/Attach/Attach.styles.js +23 -9
- package/styled-components/es/components/Attach/Attach.tokens.js +1 -0
- package/styled-components/es/components/Attach/utils/getFileicon.js +1 -1
- package/styled-components/es/components/Attach/utils/index.js +1 -3
- package/styled-components/es/components/Attach/variations/_size/base.js +3 -2
- package/styled-components/es/components/Button/Button.styles.js +11 -10
- package/styled-components/es/components/Drawer/Drawer.js +9 -5
- package/styled-components/es/components/Drawer/Drawer.styles.js +18 -5
- package/styled-components/es/components/Drawer/Drawer.tokens.js +9 -0
- package/styled-components/es/components/Skeleton/LineSkeleton/LineSkeleton.js +11 -5
- package/styled-components/es/components/Skeleton/LineSkeleton/LineSkeleton.styles.js +3 -2
- package/styled-components/es/components/Skeleton/LineSkeleton/variations/_size/base.js +2 -7
- package/styled-components/es/components/Skeleton/LineSkeleton/variations/_view/base.js +9 -0
- package/styled-components/es/components/Skeleton/TextSkeleton/TextSkeleton.js +4 -2
- package/styled-components/es/components/Skeleton/tokens.js +2 -1
- package/styled-components/es/examples/components/Attach/Attach.config.js +8 -4
- package/styled-components/es/examples/components/Button/Button.config.js +2 -4
- package/styled-components/es/examples/components/Combobox/Combobox.js +7 -0
- package/styled-components/es/examples/components/Skeleton/LineSkeleton.config.js +12 -1
- package/types/components/Attach/Attach.d.ts.map +1 -1
- package/types/components/Attach/Attach.styles.d.ts +3 -1
- package/types/components/Attach/Attach.styles.d.ts.map +1 -1
- package/types/components/Attach/Attach.tokens.d.ts +1 -0
- package/types/components/Attach/Attach.tokens.d.ts.map +1 -1
- package/types/components/Attach/Attach.types.d.ts +7 -0
- package/types/components/Attach/Attach.types.d.ts.map +1 -1
- package/types/components/Attach/utils/getFileicon.d.ts +1 -1
- package/types/components/Attach/utils/index.d.ts +1 -3
- package/types/components/Attach/utils/index.d.ts.map +1 -1
- package/types/components/Attach/variations/_size/base.d.ts.map +1 -1
- package/types/components/Button/Button.styles.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +2 -0
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.styles.d.ts +2 -1
- package/types/components/Drawer/Drawer.styles.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.tokens.d.ts +9 -0
- package/types/components/Drawer/Drawer.tokens.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +16 -0
- package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.d.ts +3 -0
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.styles.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.types.d.ts +1 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.types.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/variations/_size/base.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/variations/_view/base.d.ts +2 -0
- package/types/components/Skeleton/LineSkeleton/variations/_view/base.d.ts.map +1 -0
- package/types/components/Skeleton/Skeleton.types.d.ts +1 -0
- package/types/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/types/components/Skeleton/TextSkeleton/TextSkeleton.d.ts.map +1 -1
- package/types/components/Skeleton/tokens.d.ts +1 -0
- package/types/components/Skeleton/tokens.d.ts.map +1 -1
- package/types/examples/components/Attach/Attach.config.d.ts.map +1 -1
- package/types/examples/components/Attach/Attach.d.ts.map +1 -1
- package/types/examples/components/Button/Button.config.d.ts.map +1 -1
- package/types/examples/components/Drawer/Drawer.d.ts +1 -0
- package/types/examples/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/examples/components/Skeleton/LineSkeleton.config.d.ts +5 -0
- package/types/examples/components/Skeleton/LineSkeleton.config.d.ts.map +1 -1
- package/types/examples/components/Skeleton/Skeleton.d.ts +8 -0
- package/types/examples/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/cjs/components/Attach/Attach.styles_1w3ga58.css +0 -5
- package/cjs/components/Attach/utils/addSeparator.js +0 -18
- package/cjs/components/Attach/utils/addSeparator.js.map +0 -1
- package/cjs/components/Attach/utils/index.js +0 -8
- package/cjs/components/Attach/utils/index.js.map +0 -1
- package/cjs/components/Attach/variations/_helperTextView/base_1vgke1p.css +0 -1
- package/cjs/components/Skeleton/LineSkeleton/variations/_size/base_1wf7n5i.css +0 -1
- package/emotion/cjs/components/Attach/utils/addSeparator.js +0 -20
- package/emotion/es/components/Attach/utils/addSeparator.js +0 -10
- package/es/components/Attach/Attach.styles_1w3ga58.css +0 -5
- package/es/components/Attach/utils/addSeparator.js +0 -14
- package/es/components/Attach/utils/addSeparator.js.map +0 -1
- package/es/components/Attach/utils/index.js +0 -4
- package/es/components/Attach/utils/index.js.map +0 -1
- package/es/components/Attach/variations/_helperTextView/base_1vgke1p.css +0 -1
- package/es/components/Skeleton/LineSkeleton/variations/_size/base_1wf7n5i.css +0 -1
- package/styled-components/cjs/components/Attach/utils/addSeparator.js +0 -20
- package/styled-components/es/components/Attach/utils/addSeparator.js +0 -10
- package/types/components/Attach/utils/addSeparator.d.ts +0 -2
- package/types/components/Attach/utils/addSeparator.d.ts.map +0 -1
|
@@ -463,6 +463,7 @@ var config = {
|
|
|
463
463
|
":0.5rem;",
|
|
464
464
|
":1.625rem;",
|
|
465
465
|
":3.5rem;",
|
|
466
|
+
":3.5rem;",
|
|
466
467
|
":12.5rem;",
|
|
467
468
|
":1.5rem;",
|
|
468
469
|
":0.875rem;",
|
|
@@ -526,13 +527,14 @@ var config = {
|
|
|
526
527
|
":var(--plasma-typo-body-xs-line-height);",
|
|
527
528
|
":1rem;",
|
|
528
529
|
":inherit;"
|
|
529
|
-
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _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),
|
|
530
|
+
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _Attach.attachTokens.filenameWrapperHeight, _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),
|
|
530
531
|
m: (0, _styledcomponents.css)([
|
|
531
532
|
"",
|
|
532
533
|
":1.25rem;",
|
|
533
534
|
":0.5rem;",
|
|
534
535
|
":1.625rem;",
|
|
535
536
|
":3rem;",
|
|
537
|
+
":3rem;",
|
|
536
538
|
":11.25rem;",
|
|
537
539
|
":1.25rem;",
|
|
538
540
|
":0.75rem;",
|
|
@@ -596,13 +598,14 @@ var config = {
|
|
|
596
598
|
":var(--plasma-typo-body-xs-line-height);",
|
|
597
599
|
":1rem;",
|
|
598
600
|
":inherit;"
|
|
599
|
-
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _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),
|
|
601
|
+
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _Attach.attachTokens.filenameWrapperHeight, _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),
|
|
600
602
|
s: (0, _styledcomponents.css)([
|
|
601
603
|
"",
|
|
602
604
|
":1rem;",
|
|
603
605
|
":0.375rem;",
|
|
604
606
|
":1.5rem;",
|
|
605
607
|
":2.5rem;",
|
|
608
|
+
":2.5rem;",
|
|
606
609
|
":11.25rem;",
|
|
607
610
|
":1rem;",
|
|
608
611
|
":0.625rem;",
|
|
@@ -666,13 +669,14 @@ var config = {
|
|
|
666
669
|
":var(--plasma-typo-body-xs-line-height);",
|
|
667
670
|
":1rem;",
|
|
668
671
|
":inherit;"
|
|
669
|
-
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _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),
|
|
672
|
+
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _Attach.attachTokens.filenameWrapperHeight, _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),
|
|
670
673
|
xs: (0, _styledcomponents.css)([
|
|
671
674
|
"",
|
|
672
675
|
":0.75rem;",
|
|
673
676
|
":0.25rem;",
|
|
674
677
|
":1.375rem;",
|
|
675
678
|
":2rem;",
|
|
679
|
+
":2rem;",
|
|
676
680
|
":10rem;",
|
|
677
681
|
":0.75rem;",
|
|
678
682
|
":0.5rem;",
|
|
@@ -736,7 +740,7 @@ var config = {
|
|
|
736
740
|
":var(--plasma-typo-body-xs-line-height);",
|
|
737
741
|
":1rem;",
|
|
738
742
|
":inherit;"
|
|
739
|
-
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _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)
|
|
743
|
+
], _Attach.attachTokens.horizontalGap, _Attach.attachTokens.verticalGap, _Attach.attachTokens.verticalGapWithHelperText, _Attach.attachTokens.filenameWrapperHeight, _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)
|
|
740
744
|
}
|
|
741
745
|
}
|
|
742
746
|
};
|
|
@@ -24,14 +24,12 @@ var config = {
|
|
|
24
24
|
":var(--inverse-text-primary);",
|
|
25
25
|
":var(--inverse-text-primary);",
|
|
26
26
|
":var(--inverse-text-secondary);",
|
|
27
|
-
":var(--surface-solid-default
|
|
28
|
-
":var(--surface-solid-default-hover-brightness);",
|
|
29
|
-
":var(--surface-solid-default-active-brightness);",
|
|
27
|
+
":var(--surface-solid-default);",
|
|
30
28
|
":var(",
|
|
31
29
|
");",
|
|
32
30
|
":var(--inverse-text-primary-hover);",
|
|
33
31
|
":var(--inverse-text-primary-active);"
|
|
34
|
-
], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonTextColor, _Button.buttonTokens.buttonIconColor, _Button.buttonTokens.buttonValueColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.
|
|
32
|
+
], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonTextColor, _Button.buttonTokens.buttonIconColor, _Button.buttonTokens.buttonValueColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonLoadingBackgroundColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonColorHover, _Button.buttonTokens.buttonColorActive),
|
|
35
33
|
accent: (0, _styledcomponents.css)([
|
|
36
34
|
"",
|
|
37
35
|
":var(--on-dark-text-primary);",
|
|
@@ -1 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Combobox", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Combobox;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _engines = require("../../../engines");
|
|
12
|
+
var _ = require("../../..");
|
|
13
|
+
var _Comboboxconfig = require("./Combobox.config");
|
|
14
|
+
var mergedConfig = (0, _engines.mergeConfig)(_.comboboxNewConfig, _Comboboxconfig.config);
|
|
15
|
+
var ComboboxComponent = (0, _engines.component)(mergedConfig);
|
|
16
|
+
var Combobox = ComboboxComponent;
|
|
@@ -12,9 +12,20 @@ var _styledcomponents = require("styled-components");
|
|
|
12
12
|
var _Skeleton = require("../../../components/Skeleton");
|
|
13
13
|
var config = {
|
|
14
14
|
defaults: {
|
|
15
|
-
size: 'bodyM'
|
|
15
|
+
size: 'bodyM',
|
|
16
|
+
view: 'default'
|
|
16
17
|
},
|
|
17
18
|
variations: {
|
|
19
|
+
view: {
|
|
20
|
+
default: (0, _styledcomponents.css)([
|
|
21
|
+
"",
|
|
22
|
+
":var(--plasma-colors-skeleton-gradient,var(--surface-skeleton-gradient));"
|
|
23
|
+
], _Skeleton.skeletonTokens.gradientColor),
|
|
24
|
+
lighter: (0, _styledcomponents.css)([
|
|
25
|
+
"",
|
|
26
|
+
":var(--plasma-colors-skeleton-gradient-lighter,var(--surface-skeleton-deep-gradient));"
|
|
27
|
+
], _Skeleton.skeletonTokens.gradientColor)
|
|
28
|
+
},
|
|
18
29
|
size: {
|
|
19
30
|
bodyL: (0, _styledcomponents.css)([
|
|
20
31
|
"",
|
|
@@ -99,24 +99,25 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
99
99
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
100
100
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
101
101
|
}
|
|
102
|
-
import React, { forwardRef,
|
|
103
|
-
import { useForkRef
|
|
102
|
+
import React, { forwardRef, useRef, useState } from "react";
|
|
103
|
+
import { useForkRef } from "@salutejs/plasma-core";
|
|
104
104
|
import { cx } from "../../utils";
|
|
105
105
|
import { IconCloseCircleOutline } from "../_Icon";
|
|
106
106
|
import { base as sizeCSS } from "./variations/_size/base";
|
|
107
107
|
import { base as viewCSS } from "./variations/_view/base";
|
|
108
108
|
import { base as helperTextViewCSS } from "./variations/_helperTextView/base";
|
|
109
|
-
import { base, StyledHelperText, StyledHiddenInput,
|
|
109
|
+
import { base, StyledHelperText, StyledHiddenInput, StyledAttachButtonWrapper, FilenameWrapper, TruncatedFilenamePart, FilenameExtensionPart } from "./Attach.styles";
|
|
110
110
|
import { StyledCell } from "./ui/Cell/Cell";
|
|
111
|
-
import { extractExtension,
|
|
111
|
+
import { extractExtension, getFileIcon } from "./utils";
|
|
112
112
|
import { classes } from "./Attach.tokens";
|
|
113
113
|
import { AttachButton } from "./components/AttachButton";
|
|
114
114
|
import { StyledIconButtonCancel } from "./ui/IconButton/IconButton.styles";
|
|
115
115
|
export var attachRoot = function(Root) {
|
|
116
116
|
return /*#__PURE__*/ forwardRef(function(props, outerRef) {
|
|
117
|
-
var _props_flow = props.flow, flow = _props_flow === void 0 ? 'auto' : _props_flow, _props_buttonType = props.buttonType, buttonType = _props_buttonType === void 0 ? 'button' : _props_buttonType, _props_hasAttachment = props.hasAttachment, hasAttachment = _props_hasAttachment === void 0 ? true : _props_hasAttachment, acceptedFileFormats = props.acceptedFileFormats, helperText = props.helperText, size = props.size, view = props.view, helperTextView = props.helperTextView, className = props.className, style = props.style, isLoading = props.isLoading, disabled = props.disabled, id = props.id, name = props.name, customIcon = props.customIcon, onChange = props.onChange, onClear = props.onClear, rest = _object_without_properties(props, [
|
|
117
|
+
var _props_flow = props.flow, flow = _props_flow === void 0 ? 'auto' : _props_flow, _props_buttonType = props.buttonType, buttonType = _props_buttonType === void 0 ? 'button' : _props_buttonType, _props_hideButtonOnAttach = props.hideButtonOnAttach, hideButtonOnAttach = _props_hideButtonOnAttach === void 0 ? false : _props_hideButtonOnAttach, _props_hasAttachment = props.hasAttachment, hasAttachment = _props_hasAttachment === void 0 ? true : _props_hasAttachment, acceptedFileFormats = props.acceptedFileFormats, helperText = props.helperText, size = props.size, view = props.view, helperTextView = props.helperTextView, className = props.className, style = props.style, isLoading = props.isLoading, disabled = props.disabled, id = props.id, name = props.name, customIcon = props.customIcon, onClick = props.onClick, onChange = props.onChange, onClear = props.onClear, rest = _object_without_properties(props, [
|
|
118
118
|
"flow",
|
|
119
119
|
"buttonType",
|
|
120
|
+
"hideButtonOnAttach",
|
|
120
121
|
"hasAttachment",
|
|
121
122
|
"acceptedFileFormats",
|
|
122
123
|
"helperText",
|
|
@@ -130,66 +131,31 @@ export var attachRoot = function(Root) {
|
|
|
130
131
|
"id",
|
|
131
132
|
"name",
|
|
132
133
|
"customIcon",
|
|
134
|
+
"onClick",
|
|
133
135
|
"onChange",
|
|
134
136
|
"onClear"
|
|
135
137
|
]);
|
|
136
138
|
var innerRef = useRef(null);
|
|
137
139
|
var ref = useForkRef(outerRef, innerRef);
|
|
138
140
|
var inputRef = useRef(null);
|
|
139
|
-
var inputHelperRef = useRef(null);
|
|
140
141
|
var cellRef = useRef(null);
|
|
141
142
|
var buttonRef = useRef(null);
|
|
142
|
-
var emptyTextCellWidth = useRef(null);
|
|
143
143
|
var _useState = _sliced_to_array(useState(''), 2), filename = _useState[0], setFilename = _useState[1];
|
|
144
|
-
var _useState1 = _sliced_to_array(useState(''), 2), truncatedFilename = _useState1[0], setTruncatedFilename = _useState1[1];
|
|
145
144
|
var horizontalClass = flow === 'horizontal' ? classes.horizontal : undefined;
|
|
146
145
|
var verticalClass = flow === 'vertical' ? classes.vertical : undefined;
|
|
147
146
|
var withHelperTextClass = helperText ? classes.withHelperText : undefined;
|
|
148
147
|
var autoClass = flow === 'auto' ? classes.auto : undefined;
|
|
149
|
-
var cellHiddenClass = truncatedFilename.length === 0 ? classes.cellHidden : undefined;
|
|
150
148
|
var accept = acceptedFileFormats === null || acceptedFileFormats === void 0 ? void 0 : acceptedFileFormats.join(',');
|
|
151
149
|
var extension = extractExtension(filename);
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
emptyTextCellWidth.current = ((_cellRef_current = cellRef.current) === null || _cellRef_current === void 0 ? void 0 : _cellRef_current.offsetWidth) || 0;
|
|
156
|
-
}, []);
|
|
157
|
-
useIsomorphicLayoutEffect(function() {
|
|
158
|
-
if (!cellRef.current || !cellRef.current.parentElement || !inputHelperRef.current || !inputHelperRef.current.textContent || !emptyTextCellWidth.current || !buttonRef.current) {
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
var _inputHelperRef_current = inputHelperRef.current, textWidth = _inputHelperRef_current.offsetWidth;
|
|
162
|
-
var _buttonRef_current = buttonRef.current, buttonWidth = _buttonRef_current.offsetWidth;
|
|
163
|
-
var _cellRef_current_parentElement_getBoundingClientRect = cellRef.current.parentElement.getBoundingClientRect(), parentWidth = _cellRef_current_parentElement_getBoundingClientRect.width, parentLeft = _cellRef_current_parentElement_getBoundingClientRect.left;
|
|
164
|
-
var _cellRef_current_getBoundingClientRect = cellRef.current.getBoundingClientRect(), cellLeft = _cellRef_current_getBoundingClientRect.left;
|
|
165
|
-
var leftDiff = cellLeft - parentLeft;
|
|
166
|
-
var currentTextWidth = textWidth;
|
|
167
|
-
if (currentTextWidth + emptyTextCellWidth.current + leftDiff <= parentWidth || currentTextWidth + emptyTextCellWidth.current < buttonWidth) {
|
|
168
|
-
setTruncatedFilename(filename);
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
var currFilename = addSeparator(filename, separator);
|
|
172
|
-
for(var i = currFilename.indexOf(separator) - 1; i > 0; i -= 1){
|
|
173
|
-
if (currentTextWidth + emptyTextCellWidth.current + leftDiff <= parentWidth) {
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
var left = currFilename.slice(0, i);
|
|
177
|
-
var right = currFilename.slice(i + 1);
|
|
178
|
-
var newFilename = "".concat(left).concat(right);
|
|
179
|
-
inputHelperRef.current.textContent = newFilename;
|
|
180
|
-
currentTextWidth = inputHelperRef.current.offsetWidth;
|
|
181
|
-
if (currentTextWidth + emptyTextCellWidth.current < buttonWidth) {
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
currFilename = newFilename;
|
|
185
|
-
}
|
|
186
|
-
inputHelperRef.current.textContent = filename;
|
|
187
|
-
setTruncatedFilename(currFilename);
|
|
188
|
-
});
|
|
189
|
-
var handleClick = function() {
|
|
150
|
+
var filenameWithoutExtension = filename.slice(0, -1 - ((extension === null || extension === void 0 ? void 0 : extension.length) || 0));
|
|
151
|
+
var cellContentLeft = customIcon || getFileIcon(extension, size);
|
|
152
|
+
var handleClick = function(e) {
|
|
190
153
|
if (!inputRef.current) {
|
|
191
154
|
return;
|
|
192
155
|
}
|
|
156
|
+
if (onClick) {
|
|
157
|
+
onClick(e);
|
|
158
|
+
}
|
|
193
159
|
inputRef.current.click();
|
|
194
160
|
};
|
|
195
161
|
var handleChange = function(e) {
|
|
@@ -210,7 +176,6 @@ export var attachRoot = function(Root) {
|
|
|
210
176
|
}
|
|
211
177
|
inputRef.current.value = '';
|
|
212
178
|
setFilename('');
|
|
213
|
-
setTruncatedFilename('');
|
|
214
179
|
};
|
|
215
180
|
return /*#__PURE__*/ React.createElement(Root, {
|
|
216
181
|
className: cx(horizontalClass, verticalClass, autoClass, withHelperTextClass, className),
|
|
@@ -226,20 +191,16 @@ export var attachRoot = function(Root) {
|
|
|
226
191
|
id: id,
|
|
227
192
|
name: name,
|
|
228
193
|
onChange: handleChange
|
|
229
|
-
}), /*#__PURE__*/ React.createElement(
|
|
230
|
-
ref: inputHelperRef
|
|
231
|
-
}, filename), /*#__PURE__*/ React.createElement(StyledAttachButtonWrapper, null, /*#__PURE__*/ React.createElement(AttachButton, _object_spread({
|
|
194
|
+
}), (!hideButtonOnAttach || !filename) && /*#__PURE__*/ React.createElement(StyledAttachButtonWrapper, null, /*#__PURE__*/ React.createElement(AttachButton, _object_spread({
|
|
232
195
|
ref: buttonRef,
|
|
233
196
|
buttonType: buttonType,
|
|
234
197
|
isLoading: isLoading,
|
|
235
198
|
disabled: disabled,
|
|
236
199
|
onClick: handleClick
|
|
237
|
-
}, rest)), helperText && /*#__PURE__*/ React.createElement(StyledHelperText, null, helperText)), hasAttachment && /*#__PURE__*/ React.createElement(StyledCell, {
|
|
200
|
+
}, rest)), helperText && /*#__PURE__*/ React.createElement(StyledHelperText, null, helperText)), (hasAttachment || hideButtonOnAttach) && filename && /*#__PURE__*/ React.createElement(StyledCell, {
|
|
238
201
|
stretching: "fixed",
|
|
239
|
-
className: cellHiddenClass,
|
|
240
202
|
ref: cellRef,
|
|
241
203
|
size: size,
|
|
242
|
-
title: truncatedFilename,
|
|
243
204
|
contentLeft: cellContentLeft,
|
|
244
205
|
contentRight: /*#__PURE__*/ React.createElement(StyledIconButtonCancel, {
|
|
245
206
|
onClick: handleClear
|
|
@@ -247,7 +208,7 @@ export var attachRoot = function(Root) {
|
|
|
247
208
|
size: "xs",
|
|
248
209
|
color: "inherit"
|
|
249
210
|
}))
|
|
250
|
-
}));
|
|
211
|
+
}, /*#__PURE__*/ React.createElement(FilenameWrapper, null, /*#__PURE__*/ React.createElement(TruncatedFilenamePart, null, filenameWithoutExtension.slice(0, -1)), /*#__PURE__*/ React.createElement(FilenameExtensionPart, null, filenameWithoutExtension.at(-1), ".", extension))));
|
|
251
212
|
});
|
|
252
213
|
};
|
|
253
214
|
export var attachConfig = {
|
|
@@ -1,29 +1,43 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { css } from "styled-components";
|
|
3
|
+
import { applyEllipsis } from "../../mixins";
|
|
3
4
|
export var base = css([
|
|
4
5
|
"position:relative;display:flex;"
|
|
5
6
|
]);
|
|
6
7
|
export var StyledHiddenInput = styled.input.withConfig({
|
|
7
8
|
displayName: "Attach.styles__StyledHiddenInput",
|
|
8
|
-
componentId: "sc-
|
|
9
|
+
componentId: "sc-ebfa8a10-0"
|
|
9
10
|
})([
|
|
10
11
|
"display:none;"
|
|
11
12
|
]);
|
|
12
|
-
export var StyledHiddenInputHelper = styled.div.withConfig({
|
|
13
|
-
displayName: "Attach.styles__StyledHiddenInputHelper",
|
|
14
|
-
componentId: "sc-7ce14282-1"
|
|
15
|
-
})([
|
|
16
|
-
"position:absolute;visibility:hidden;white-space:nowrap;"
|
|
17
|
-
]);
|
|
18
13
|
export var StyledAttachButtonWrapper = styled.div.withConfig({
|
|
19
14
|
displayName: "Attach.styles__StyledAttachButtonWrapper",
|
|
20
|
-
componentId: "sc-
|
|
15
|
+
componentId: "sc-ebfa8a10-1"
|
|
21
16
|
})([
|
|
22
17
|
"position:relative;"
|
|
23
18
|
]);
|
|
24
19
|
export var StyledHelperText = styled.div.withConfig({
|
|
25
20
|
displayName: "Attach.styles__StyledHelperText",
|
|
26
|
-
componentId: "sc-
|
|
21
|
+
componentId: "sc-ebfa8a10-2"
|
|
27
22
|
})([
|
|
28
23
|
"position:absolute;margin-top:0.25rem;"
|
|
29
24
|
]);
|
|
25
|
+
export var FilenameWrapper = styled.div.withConfig({
|
|
26
|
+
displayName: "Attach.styles__FilenameWrapper",
|
|
27
|
+
componentId: "sc-ebfa8a10-3"
|
|
28
|
+
})([
|
|
29
|
+
"display:inline-grid;align-items:center;grid-template-columns:auto 1fr;min-width:8ch;"
|
|
30
|
+
]);
|
|
31
|
+
export var TruncatedFilenamePart = styled.span.withConfig({
|
|
32
|
+
displayName: "Attach.styles__TruncatedFilenamePart",
|
|
33
|
+
componentId: "sc-ebfa8a10-4"
|
|
34
|
+
})([
|
|
35
|
+
"",
|
|
36
|
+
""
|
|
37
|
+
], applyEllipsis());
|
|
38
|
+
export var FilenameExtensionPart = styled.span.withConfig({
|
|
39
|
+
displayName: "Attach.styles__FilenameExtensionPart",
|
|
40
|
+
componentId: "sc-ebfa8a10-5"
|
|
41
|
+
})([
|
|
42
|
+
""
|
|
43
|
+
]);
|
|
@@ -9,6 +9,7 @@ export var tokens = {
|
|
|
9
9
|
horizontalGap: '--plasma-attach-horizontal-gap',
|
|
10
10
|
verticalGap: '--plasma-attach-vertical-gap',
|
|
11
11
|
verticalGapWithHelperText: '--plasma-attach-vertical-gap-with-helper-text',
|
|
12
|
+
filenameWrapperHeight: '--plasma-attach-filename-wrapper-height',
|
|
12
13
|
helperTextColor: '--plasma-attach-helper-text-color',
|
|
13
14
|
// Токены для Button
|
|
14
15
|
buttonColor: '--plasma-attach-button-color',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IconBlankCsvOutline, IconBlankDocOutline, IconBlankOutline, IconBlankPdfOutline, IconBlankTxtOutline, IconBlankXlsOutline } from "../../_Icon";
|
|
3
|
-
export var
|
|
3
|
+
export var getFileIcon = function(extension, size) {
|
|
4
4
|
var iconSize = size === 'xs' ? 'xs' : 's';
|
|
5
5
|
switch(extension){
|
|
6
6
|
case 'pdf':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
2
|
import { tokens, classes } from "../../Attach.tokens";
|
|
3
|
-
import {
|
|
3
|
+
import { FilenameWrapper, StyledHelperText } from "../../Attach.styles";
|
|
4
4
|
export var base = css([
|
|
5
5
|
"&.",
|
|
6
6
|
"{column-gap:var(",
|
|
@@ -18,6 +18,7 @@ export var base = css([
|
|
|
18
18
|
");font-weight:var(",
|
|
19
19
|
");letter-spacing:var(",
|
|
20
20
|
");line-height:var(",
|
|
21
|
+
");height:var(",
|
|
21
22
|
");}",
|
|
22
23
|
"{font-family:var(--plasma-typo-body-xs-font-family);font-size:var(--plasma-typo-body-xs-font-size);font-style:var(--plasma-typo-body-xs-font-style);font-weight:var(--plasma-typo-body-xs-font-weight);letter-spacing:var(--plasma-typo-body-xs-letter-spacing);line-height:var(--plasma-typo-body-xs-line-height);}}"
|
|
23
|
-
], classes.horizontal, tokens.horizontalGap, classes.vertical, tokens.verticalGap, classes.auto, tokens.verticalGap, tokens.horizontalGap, classes.withHelperText, tokens.verticalGapWithHelperText,
|
|
24
|
+
], classes.horizontal, tokens.horizontalGap, classes.vertical, tokens.verticalGap, classes.auto, tokens.verticalGap, tokens.horizontalGap, classes.withHelperText, tokens.verticalGapWithHelperText, FilenameWrapper, tokens.cellTitleFontFamily, tokens.cellTitleFontSize, tokens.cellTitleFontStyle, tokens.cellTitleFontWeight, tokens.cellTitleLetterSpacing, tokens.cellTitleLineHeight, tokens.filenameWrapperHeight, StyledHelperText);
|
|
@@ -9,15 +9,16 @@ var mergedConfig = mergeConfig(spinnerConfig);
|
|
|
9
9
|
var Spinner = component(mergedConfig);
|
|
10
10
|
export var ButtonText = styled.span.withConfig({
|
|
11
11
|
displayName: "Button.styles__ButtonText",
|
|
12
|
-
componentId: "sc-
|
|
12
|
+
componentId: "sc-b7c1e7a-0"
|
|
13
13
|
})([
|
|
14
14
|
"min-width:4ch;&.",
|
|
15
|
-
"{flex-grow:2;text-align:start;}",
|
|
15
|
+
"{flex-grow:2;text-align:start;}color:var(",
|
|
16
|
+
");",
|
|
16
17
|
""
|
|
17
|
-
], String(classes.contentRelaxed), applyEllipsis());
|
|
18
|
+
], String(classes.contentRelaxed), tokens.buttonTextColor, applyEllipsis());
|
|
18
19
|
export var StyledAdditionalContent = styled.div.withConfig({
|
|
19
20
|
displayName: "Button.styles__StyledAdditionalContent",
|
|
20
|
-
componentId: "sc-
|
|
21
|
+
componentId: "sc-b7c1e7a-1"
|
|
21
22
|
})([
|
|
22
23
|
"display:flex;align-items:center;margin:var(",
|
|
23
24
|
");&.",
|
|
@@ -27,7 +28,7 @@ export var StyledAdditionalContent = styled.div.withConfig({
|
|
|
27
28
|
], tokens.buttonAdditionalContentMargin, String(classes.contentRelaxed), classes.buttonHasValue, tokens.buttonAdditionalContentMarginRightWidthValue);
|
|
28
29
|
export var ButtonValue = styled.span.withConfig({
|
|
29
30
|
displayName: "Button.styles__ButtonValue",
|
|
30
|
-
componentId: "sc-
|
|
31
|
+
componentId: "sc-b7c1e7a-2"
|
|
31
32
|
})([
|
|
32
33
|
"color:var(",
|
|
33
34
|
");margin:var(",
|
|
@@ -37,7 +38,7 @@ export var ButtonValue = styled.span.withConfig({
|
|
|
37
38
|
// TODO: #720
|
|
38
39
|
export var LoadWrap = styled.div.withConfig({
|
|
39
40
|
displayName: "Button.styles__LoadWrap",
|
|
40
|
-
componentId: "sc-
|
|
41
|
+
componentId: "sc-b7c1e7a-3"
|
|
41
42
|
})([
|
|
42
43
|
"opacity:",
|
|
43
44
|
";display:flex;align-items:inherit;justify-content:",
|
|
@@ -51,13 +52,13 @@ export var LoadWrap = styled.div.withConfig({
|
|
|
51
52
|
});
|
|
52
53
|
export var Loader = styled.div.withConfig({
|
|
53
54
|
displayName: "Button.styles__Loader",
|
|
54
|
-
componentId: "sc-
|
|
55
|
+
componentId: "sc-b7c1e7a-4"
|
|
55
56
|
})([
|
|
56
57
|
"position:absolute;"
|
|
57
58
|
]);
|
|
58
59
|
export var StyledSpinner = styled(Spinner).withConfig({
|
|
59
60
|
displayName: "Button.styles__StyledSpinner",
|
|
60
|
-
componentId: "sc-
|
|
61
|
+
componentId: "sc-b7c1e7a-5"
|
|
61
62
|
})([
|
|
62
63
|
"",
|
|
63
64
|
":var(",
|
|
@@ -67,7 +68,7 @@ export var StyledSpinner = styled(Spinner).withConfig({
|
|
|
67
68
|
], spinnerTokens.size, tokens.buttonSpinnerSize, spinnerTokens.color, tokens.buttonSpinnerColor);
|
|
68
69
|
export var StyledContentLeft = styled.div.withConfig({
|
|
69
70
|
displayName: "Button.styles__StyledContentLeft",
|
|
70
|
-
componentId: "sc-
|
|
71
|
+
componentId: "sc-b7c1e7a-6"
|
|
71
72
|
})([
|
|
72
73
|
"display:flex;align-self:var(",
|
|
73
74
|
");color:var(",
|
|
@@ -79,7 +80,7 @@ export var StyledContentLeft = styled.div.withConfig({
|
|
|
79
80
|
});
|
|
80
81
|
export var StyledContentRight = styled.div.withConfig({
|
|
81
82
|
displayName: "Button.styles__StyledContentRight",
|
|
82
|
-
componentId: "sc-
|
|
83
|
+
componentId: "sc-b7c1e7a-7"
|
|
83
84
|
})([
|
|
84
85
|
"display:flex;align-self:var(",
|
|
85
86
|
");color:var(",
|
|
@@ -54,8 +54,9 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
54
54
|
return target;
|
|
55
55
|
}
|
|
56
56
|
import React, { forwardRef, useMemo } from "react";
|
|
57
|
+
import cls from "classnames";
|
|
57
58
|
import { useForkRef } from "@salutejs/plasma-core";
|
|
58
|
-
import {
|
|
59
|
+
import { getSizeValueFromProp, safeUseId } from "../../utils";
|
|
59
60
|
import { usePopupContext } from "../Popup";
|
|
60
61
|
import { Overlay } from "../Overlay";
|
|
61
62
|
import { DEFAULT_Z_INDEX } from "../Popup/utils";
|
|
@@ -70,7 +71,7 @@ import { useDrawer } from "./hooks";
|
|
|
70
71
|
// issue #823
|
|
71
72
|
export var drawerRoot = function(Root) {
|
|
72
73
|
return /*#__PURE__*/ forwardRef(function(_param, outerRef) {
|
|
73
|
-
var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
|
|
74
|
+
var id = _param.id, zIndex = _param.zIndex, popupInfo = _param.popupInfo, withBlur = _param.withBlur, children = _param.children, view = _param.view, size = _param.size, width = _param.width, height = _param.height, isOpen = _param.isOpen, opened = _param.opened, initialFocusRef = _param.initialFocusRef, focusAfterRef = _param.focusAfterRef, animationInfo = _param.animationInfo, className = _param.className, customBackgroundColor = _param.customBackgroundColor, customContentBackgroundColor = _param.customContentBackgroundColor, onClose = _param.onClose, onOverlayClick = _param.onOverlayClick, onEscKeyDown = _param.onEscKeyDown, offset = _param.offset, frame = _param.frame, _param_borderRadius = _param.borderRadius, borderRadius = _param_borderRadius === void 0 ? 'none' : _param_borderRadius, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'right' : _param_placement, _param_closeOnEsc = _param.closeOnEsc, closeOnEsc = _param_closeOnEsc === void 0 ? true : _param_closeOnEsc, _param_closeOnOverlayClick = _param.closeOnOverlayClick, closeOnOverlayClick = _param_closeOnOverlayClick === void 0 ? true : _param_closeOnOverlayClick, _param_asModal = _param.asModal, asModal = _param_asModal === void 0 ? true : _param_asModal, draggable = _param.draggable, rest = _object_without_properties(_param, [
|
|
74
75
|
"id",
|
|
75
76
|
"zIndex",
|
|
76
77
|
"popupInfo",
|
|
@@ -84,6 +85,7 @@ export var drawerRoot = function(Root) {
|
|
|
84
85
|
"opened",
|
|
85
86
|
"initialFocusRef",
|
|
86
87
|
"focusAfterRef",
|
|
88
|
+
"animationInfo",
|
|
87
89
|
"className",
|
|
88
90
|
"customBackgroundColor",
|
|
89
91
|
"customContentBackgroundColor",
|
|
@@ -133,10 +135,11 @@ export var drawerRoot = function(Root) {
|
|
|
133
135
|
onClose();
|
|
134
136
|
}
|
|
135
137
|
};
|
|
138
|
+
var _obj;
|
|
136
139
|
return /*#__PURE__*/ React.createElement(StyledPopup, _object_spread({
|
|
137
140
|
id: innerId,
|
|
138
141
|
ref: asModal ? innerRef : outerRef,
|
|
139
|
-
className:
|
|
142
|
+
className: cls(placementClass, className, (_obj = {}, _define_property(_obj, classes.enterCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.enter), _define_property(_obj, classes.exitCustomAnimation, animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.exit), _obj)),
|
|
140
143
|
opened: innerIsOpen,
|
|
141
144
|
zIndex: zIndex,
|
|
142
145
|
placement: placement,
|
|
@@ -146,6 +149,7 @@ export var drawerRoot = function(Root) {
|
|
|
146
149
|
height: innerHeight,
|
|
147
150
|
offset: offset,
|
|
148
151
|
withAnimation: true,
|
|
152
|
+
drawerAnimationInfo: animationInfo,
|
|
149
153
|
overlay: asModal && /*#__PURE__*/ React.createElement(Root, {
|
|
150
154
|
view: view
|
|
151
155
|
}, /*#__PURE__*/ React.createElement(Overlay, {
|
|
@@ -158,6 +162,7 @@ export var drawerRoot = function(Root) {
|
|
|
158
162
|
onOverlayClick: onDrawerOverlayKeyDown
|
|
159
163
|
}))
|
|
160
164
|
}, rest), /*#__PURE__*/ React.createElement(Root, {
|
|
165
|
+
className: classes.panel,
|
|
161
166
|
view: view,
|
|
162
167
|
size: size,
|
|
163
168
|
style: {
|
|
@@ -169,8 +174,7 @@ export var drawerRoot = function(Root) {
|
|
|
169
174
|
width: innerWidth,
|
|
170
175
|
height: innerHeight,
|
|
171
176
|
customBackgroundColor: customBackgroundColor,
|
|
172
|
-
customContentBackgroundColor: customContentBackgroundColor
|
|
173
|
-
className: className
|
|
177
|
+
customContentBackgroundColor: customContentBackgroundColor
|
|
174
178
|
}, children)));
|
|
175
179
|
});
|
|
176
180
|
};
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import { component, mergeConfig } from "../../engines";
|
|
3
3
|
import { popupClasses, popupConfig } from "../Popup";
|
|
4
4
|
import { panelTokens, panelConfig } from "../Panel";
|
|
5
|
-
import { classes, tokens } from "./Drawer.tokens";
|
|
5
|
+
import { classes, privateTokens, tokens } from "./Drawer.tokens";
|
|
6
6
|
var mergedPanelConfig = mergeConfig(panelConfig);
|
|
7
7
|
var Panel = component(mergedPanelConfig);
|
|
8
8
|
var Popup = component(popupConfig);
|
|
@@ -59,7 +59,7 @@ var getAnimationStyles = function() {
|
|
|
59
59
|
};
|
|
60
60
|
export var StyledPanel = styled(Panel).withConfig({
|
|
61
61
|
displayName: "Drawer.styles__StyledPanel",
|
|
62
|
-
componentId: "sc-
|
|
62
|
+
componentId: "sc-758b0d76-0"
|
|
63
63
|
})([
|
|
64
64
|
"",
|
|
65
65
|
":var(",
|
|
@@ -67,7 +67,7 @@ export var StyledPanel = styled(Panel).withConfig({
|
|
|
67
67
|
], panelTokens.closeColor, tokens.closeIconColor);
|
|
68
68
|
export var StyledPopup = styled(Popup).withConfig({
|
|
69
69
|
displayName: "Drawer.styles__StyledPopup",
|
|
70
|
-
componentId: "sc-
|
|
70
|
+
componentId: "sc-758b0d76-1"
|
|
71
71
|
})([
|
|
72
72
|
"&&.",
|
|
73
73
|
"{animation:fadeIn 0.2s forwards;scrollbar-gutter:stable;}&&.",
|
|
@@ -77,11 +77,24 @@ export var StyledPopup = styled(Popup).withConfig({
|
|
|
77
77
|
" > div{width:",
|
|
78
78
|
";height:",
|
|
79
79
|
";}",
|
|
80
|
-
""
|
|
80
|
+
" &.",
|
|
81
|
+
"{&& .",
|
|
82
|
+
"{animation:",
|
|
83
|
+
";}}&.",
|
|
84
|
+
"{&&.",
|
|
85
|
+
" .",
|
|
86
|
+
"{animation:",
|
|
87
|
+
";}}"
|
|
81
88
|
], classes.overlay, popupClasses.endAnimation, classes.overlay, popupClasses.root, popupClasses.root, function(param) {
|
|
82
89
|
var width = param.width;
|
|
83
90
|
return width || 'auto';
|
|
84
91
|
}, function(param) {
|
|
85
92
|
var height = param.height;
|
|
86
93
|
return height || 'auto';
|
|
87
|
-
}, getAnimationStyles())
|
|
94
|
+
}, getAnimationStyles(), classes.enterCustomAnimation, popupClasses.root, function(param) {
|
|
95
|
+
var drawerAnimationInfo = param.drawerAnimationInfo;
|
|
96
|
+
return (drawerAnimationInfo === null || drawerAnimationInfo === void 0 ? void 0 : drawerAnimationInfo.enter) || "var(".concat(privateTokens.enterAnimation, ")");
|
|
97
|
+
}, classes.exitCustomAnimation, popupClasses.endAnimation, popupClasses.root, function(param) {
|
|
98
|
+
var drawerAnimationInfo = param.drawerAnimationInfo;
|
|
99
|
+
return (drawerAnimationInfo === null || drawerAnimationInfo === void 0 ? void 0 : drawerAnimationInfo.exit) || "var(".concat(privateTokens.exitAnimation, ")");
|
|
100
|
+
});
|
|
@@ -3,6 +3,9 @@ export var classes = {
|
|
|
3
3
|
header: 'drawer-header',
|
|
4
4
|
footer: 'drawer-footer',
|
|
5
5
|
overlay: 'drawer-overlay',
|
|
6
|
+
panel: 'drawer-panel',
|
|
7
|
+
enterCustomAnimation: 'drawer-enter-custom-animation',
|
|
8
|
+
exitCustomAnimation: 'drawer-exit-custom-animation',
|
|
6
9
|
horizontal: 'drawer-horizontal',
|
|
7
10
|
hasHeader: 'drawer-has-header',
|
|
8
11
|
isRightClose: 'drawer-right-close-button',
|
|
@@ -11,6 +14,12 @@ export var classes = {
|
|
|
11
14
|
rightPlacement: 'drawer-right-placement',
|
|
12
15
|
leftPlacement: 'drawer-left-placement'
|
|
13
16
|
};
|
|
17
|
+
export var privateTokens = {
|
|
18
|
+
enterAnimation: '--plasma__private-drawer-enter-animation',
|
|
19
|
+
exitAnimation: '--plasma__private-drawer-exit-animation',
|
|
20
|
+
customEnterAnimation: '--plasma__private-drawer-custom-enter-animation',
|
|
21
|
+
customExitAnimation: '--plasma__private-drawer-custom-exit-animation'
|
|
22
|
+
};
|
|
14
23
|
export var tokens = {
|
|
15
24
|
drawerOverlayWithBlurColor: '--plasma-drawer-overlay-with-blur-color',
|
|
16
25
|
drawerOverlayColor: '--plasma-drawer-overlay-color',
|