@alfalab/core-components 22.3.0 → 23.2.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/alert/Component.js +1 -1
- package/alert/esm/Component.js +1 -1
- package/alert/esm/index.css +5 -5
- package/alert/index.css +5 -5
- package/alert/modern/Component.js +1 -1
- package/alert/modern/index.css +5 -5
- package/amount/component.js +1 -1
- package/amount/esm/component.js +1 -1
- package/amount/esm/index.css +3 -3
- package/amount/esm/pure/component.js +1 -1
- package/amount/esm/pure/index.css +2 -2
- package/amount/index.css +3 -3
- package/amount/modern/component.js +1 -1
- package/amount/modern/index.css +3 -3
- package/amount/modern/pure/component.js +1 -1
- package/amount/modern/pure/index.css +2 -2
- package/amount/pure/component.js +1 -1
- package/amount/pure/index.css +2 -2
- package/amount-input/Component.js +3 -3
- package/amount-input/default.css +2 -2
- package/amount-input/esm/Component.js +3 -3
- package/amount-input/esm/default.css +2 -2
- package/amount-input/esm/index.css +7 -7
- package/amount-input/esm/inverted.css +2 -2
- package/amount-input/index.css +7 -7
- package/amount-input/inverted.css +2 -2
- package/amount-input/modern/Component.js +3 -3
- package/amount-input/modern/default.css +2 -2
- package/amount-input/modern/index.css +7 -7
- package/amount-input/modern/inverted.css +2 -2
- package/attach/Component.js +1 -1
- package/attach/esm/Component.js +1 -1
- package/attach/esm/index.css +23 -23
- package/attach/index.css +23 -23
- package/attach/modern/Component.js +1 -1
- package/attach/modern/index.css +23 -23
- package/backdrop/Component.js +1 -1
- package/backdrop/esm/Component.js +1 -1
- package/backdrop/esm/index.css +11 -11
- package/backdrop/index.css +11 -11
- package/backdrop/modern/Component.js +1 -1
- package/backdrop/modern/index.css +11 -11
- package/badge/Component.js +1 -1
- package/badge/esm/Component.js +1 -1
- package/badge/esm/index.css +16 -16
- package/badge/index.css +16 -16
- package/badge/modern/Component.js +1 -1
- package/badge/modern/index.css +16 -16
- package/bank-card/Component.js +1 -1
- package/bank-card/cssm/index.module.css +7 -0
- package/bank-card/esm/Component.js +1 -1
- package/bank-card/esm/index.css +27 -20
- package/bank-card/index.css +27 -20
- package/bank-card/modern/Component.js +1 -1
- package/bank-card/modern/index.css +27 -20
- package/base-modal/Component.js +1 -1
- package/base-modal/esm/Component.js +1 -1
- package/base-modal/esm/index.css +12 -12
- package/base-modal/index.css +12 -12
- package/base-modal/modern/Component.js +1 -1
- package/base-modal/modern/index.css +12 -12
- package/bottom-sheet/{Component-07b7ba90.d.ts → Component-c227b242.d.ts} +0 -0
- package/bottom-sheet/{Component-07b7ba90.js → Component-c227b242.js} +0 -0
- package/bottom-sheet/component.js +2 -2
- package/bottom-sheet/components/footer/Component.js +1 -1
- package/bottom-sheet/components/footer/index.css +2 -2
- package/bottom-sheet/components/swipeable-backdrop/Component.js +1 -1
- package/bottom-sheet/esm/{Component-23706596.d.ts → Component-90aa4632.d.ts} +0 -0
- package/bottom-sheet/esm/{Component-23706596.js → Component-90aa4632.js} +0 -0
- package/bottom-sheet/esm/component.js +2 -2
- package/bottom-sheet/esm/components/footer/Component.js +1 -1
- package/bottom-sheet/esm/components/footer/index.css +2 -2
- package/bottom-sheet/esm/components/swipeable-backdrop/Component.js +1 -1
- package/bottom-sheet/esm/index.css +14 -14
- package/bottom-sheet/esm/index.js +1 -1
- package/bottom-sheet/index.css +14 -14
- package/bottom-sheet/index.js +1 -1
- package/bottom-sheet/modern/component.js +1 -1
- package/bottom-sheet/modern/components/footer/Component.js +1 -1
- package/bottom-sheet/modern/components/footer/index.css +2 -2
- package/bottom-sheet/modern/index.css +14 -14
- package/button/Component.js +7 -4
- package/button/cssm/Component.js +4 -1
- package/button/default.css +41 -41
- package/button/esm/Component.js +7 -4
- package/button/esm/default.css +41 -41
- package/button/esm/index.css +51 -51
- package/button/esm/inverted.css +41 -41
- package/button/index.css +51 -51
- package/button/inverted.css +41 -41
- package/button/modern/Component.js +7 -4
- package/button/modern/default.css +41 -41
- package/button/modern/index.css +51 -51
- package/button/modern/inverted.css +41 -41
- package/calendar/Component.js +2 -2
- package/calendar/components/days-table/Component.js +2 -2
- package/calendar/components/days-table/index.css +40 -40
- package/calendar/components/days-table/index.js +1 -1
- package/calendar/components/header/Component.js +2 -2
- package/calendar/components/header/index.css +18 -18
- package/calendar/components/header/index.js +1 -1
- package/calendar/components/months-table/Component.js +2 -2
- package/calendar/components/months-table/index.css +6 -6
- package/calendar/components/months-table/index.js +1 -1
- package/calendar/components/select-button/Component.js +2 -2
- package/calendar/components/select-button/index.css +10 -10
- package/calendar/components/select-button/index.js +1 -1
- package/calendar/components/years-table/Component.js +2 -2
- package/calendar/components/years-table/index.css +6 -6
- package/calendar/components/years-table/index.js +1 -1
- package/calendar/esm/Component.js +2 -2
- package/calendar/esm/components/days-table/Component.js +2 -2
- package/calendar/esm/components/days-table/index.css +40 -40
- package/calendar/esm/components/days-table/index.js +1 -1
- package/calendar/esm/components/header/Component.js +2 -2
- package/calendar/esm/components/header/index.css +18 -18
- package/calendar/esm/components/header/index.js +1 -1
- package/calendar/esm/components/months-table/Component.js +2 -2
- package/calendar/esm/components/months-table/index.css +6 -6
- package/calendar/esm/components/months-table/index.js +1 -1
- package/calendar/esm/components/select-button/Component.js +2 -2
- package/calendar/esm/components/select-button/index.css +10 -10
- package/calendar/esm/components/select-button/index.js +1 -1
- package/calendar/esm/components/years-table/Component.js +2 -2
- package/calendar/esm/components/years-table/index.css +6 -6
- package/calendar/esm/components/years-table/index.js +1 -1
- package/calendar/esm/index.css +7 -7
- package/calendar/esm/index.js +1 -1
- package/calendar/esm/{tslib.es6-bac8a196.d.ts → tslib.es6-5899112b.d.ts} +0 -0
- package/calendar/esm/{tslib.es6-bac8a196.js → tslib.es6-5899112b.js} +0 -0
- package/calendar/index.css +7 -7
- package/calendar/index.js +1 -1
- package/calendar/modern/Component.js +1 -1
- package/calendar/modern/components/days-table/Component.js +1 -1
- package/calendar/modern/components/days-table/index.css +40 -40
- package/calendar/modern/components/header/Component.js +1 -1
- package/calendar/modern/components/header/index.css +18 -18
- package/calendar/modern/components/months-table/Component.js +1 -1
- package/calendar/modern/components/months-table/index.css +6 -6
- package/calendar/modern/components/select-button/Component.js +1 -1
- package/calendar/modern/components/select-button/index.css +10 -10
- package/calendar/modern/components/years-table/Component.js +1 -1
- package/calendar/modern/components/years-table/index.css +6 -6
- package/calendar/modern/index.css +7 -7
- package/calendar/{tslib.es6-a875354d.d.ts → tslib.es6-1b4a3a71.d.ts} +0 -0
- package/calendar/{tslib.es6-a875354d.js → tslib.es6-1b4a3a71.js} +0 -0
- package/calendar-input/Component.js +1 -1
- package/calendar-input/esm/Component.js +1 -1
- package/calendar-input/esm/index.css +10 -10
- package/calendar-input/index.css +10 -10
- package/calendar-input/modern/Component.js +1 -1
- package/calendar-input/modern/index.css +10 -10
- package/calendar-range/Component.js +1 -1
- package/calendar-range/esm/Component.js +1 -1
- package/calendar-range/esm/index.css +5 -5
- package/calendar-range/index.css +5 -5
- package/calendar-range/modern/Component.js +1 -1
- package/calendar-range/modern/index.css +5 -5
- package/calendar-with-skeleton/Component.js +1 -1
- package/calendar-with-skeleton/esm/Component.js +1 -1
- package/calendar-with-skeleton/esm/index.css +12 -12
- package/calendar-with-skeleton/index.css +12 -12
- package/calendar-with-skeleton/modern/Component.js +1 -1
- package/calendar-with-skeleton/modern/index.css +12 -12
- package/card-image/Component.js +1 -1
- package/card-image/esm/Component.js +1 -1
- package/card-image/esm/index.css +6 -6
- package/card-image/index.css +6 -6
- package/card-image/modern/Component.js +1 -1
- package/card-image/modern/index.css +6 -6
- package/cdn-icon/Component.js +1 -1
- package/cdn-icon/esm/Component.js +1 -1
- package/cdn-icon/esm/index.css +3 -3
- package/cdn-icon/index.css +3 -3
- package/cdn-icon/modern/Component.js +1 -1
- package/cdn-icon/modern/index.css +3 -3
- package/chart/Component.js +2 -2
- package/chart/components/Dot/index.css +7 -7
- package/chart/components/Dot/index.js +1 -1
- package/chart/components/Legends/index.css +7 -7
- package/chart/components/Legends/index.js +1 -1
- package/chart/components/Tick/index.css +3 -3
- package/chart/components/Tick/index.js +1 -1
- package/chart/components/TooltipContent/index.css +6 -6
- package/chart/components/TooltipContent/index.js +1 -1
- package/chart/esm/Component.js +2 -2
- package/chart/esm/components/Dot/index.css +7 -7
- package/chart/esm/components/Dot/index.js +1 -1
- package/chart/esm/components/Legends/index.css +7 -7
- package/chart/esm/components/Legends/index.js +1 -1
- package/chart/esm/components/Tick/index.css +3 -3
- package/chart/esm/components/Tick/index.js +1 -1
- package/chart/esm/components/TooltipContent/index.css +6 -6
- package/chart/esm/components/TooltipContent/index.js +1 -1
- package/chart/esm/hooks/useSettings/index.js +1 -1
- package/chart/esm/hooks/useSettings/utils/setDatas.js +1 -1
- package/chart/esm/hooks/useSettings/utils/setGradientCharts.js +1 -1
- package/chart/esm/index.css +2 -2
- package/chart/esm/index.js +1 -1
- package/chart/esm/{tslib.es6-0713df9a.d.ts → tslib.es6-93b6bd72.d.ts} +0 -0
- package/chart/esm/{tslib.es6-0713df9a.js → tslib.es6-93b6bd72.js} +0 -0
- package/chart/hooks/useSettings/index.js +1 -1
- package/chart/hooks/useSettings/utils/setDatas.js +1 -1
- package/chart/hooks/useSettings/utils/setGradientCharts.js +1 -1
- package/chart/index.css +2 -2
- package/chart/index.js +1 -1
- package/chart/modern/Component.js +1 -1
- package/chart/modern/components/Dot/index.css +7 -7
- package/chart/modern/components/Dot/index.js +1 -1
- package/chart/modern/components/Legends/index.css +7 -7
- package/chart/modern/components/Legends/index.js +1 -1
- package/chart/modern/components/Tick/index.css +3 -3
- package/chart/modern/components/Tick/index.js +1 -1
- package/chart/modern/components/TooltipContent/index.css +6 -6
- package/chart/modern/components/TooltipContent/index.js +1 -1
- package/chart/modern/index.css +2 -2
- package/chart/{tslib.es6-258238b2.d.ts → tslib.es6-65512a74.d.ts} +0 -0
- package/chart/{tslib.es6-258238b2.js → tslib.es6-65512a74.js} +0 -0
- package/checkbox/Component.js +1 -1
- package/checkbox/esm/Component.js +1 -1
- package/checkbox/esm/index.css +36 -36
- package/checkbox/index.css +36 -36
- package/checkbox/modern/Component.js +1 -1
- package/checkbox/modern/index.css +36 -36
- package/checkbox-group/Component.js +1 -1
- package/checkbox-group/esm/Component.js +1 -1
- package/checkbox-group/esm/index.css +16 -16
- package/checkbox-group/index.css +16 -16
- package/checkbox-group/modern/Component.js +1 -1
- package/checkbox-group/modern/index.css +16 -16
- package/circular-progress-bar/Component.js +1 -1
- package/circular-progress-bar/esm/Component.js +1 -1
- package/circular-progress-bar/esm/index.css +20 -20
- package/circular-progress-bar/index.css +20 -20
- package/circular-progress-bar/modern/Component.js +1 -1
- package/circular-progress-bar/modern/index.css +20 -20
- package/collapse/Component.js +1 -1
- package/collapse/esm/Component.js +1 -1
- package/collapse/esm/index.css +8 -8
- package/collapse/index.css +8 -8
- package/collapse/modern/Component.js +1 -1
- package/collapse/modern/index.css +8 -8
- package/confirmation/component.js +1 -1
- package/confirmation/components/code-input/component.js +1 -1
- package/confirmation/components/code-input/index.css +10 -10
- package/confirmation/components/countdown/component.js +1 -1
- package/confirmation/components/countdown/index.css +13 -13
- package/confirmation/components/countdown-loader/component.js +1 -1
- package/confirmation/components/countdown-loader/index.css +2 -2
- package/confirmation/components/overlimit/component.js +1 -1
- package/confirmation/components/overlimit/index.css +9 -9
- package/confirmation/components/sign-confirmation/component.js +1 -1
- package/confirmation/components/sign-confirmation/index.css +13 -13
- package/confirmation/esm/component.js +1 -1
- package/confirmation/esm/components/code-input/component.js +1 -1
- package/confirmation/esm/components/code-input/index.css +10 -10
- package/confirmation/esm/components/countdown/component.js +1 -1
- package/confirmation/esm/components/countdown/index.css +13 -13
- package/confirmation/esm/components/countdown-loader/component.js +1 -1
- package/confirmation/esm/components/countdown-loader/index.css +2 -2
- package/confirmation/esm/components/overlimit/component.js +1 -1
- package/confirmation/esm/components/overlimit/index.css +9 -9
- package/confirmation/esm/components/sign-confirmation/component.js +1 -1
- package/confirmation/esm/components/sign-confirmation/index.css +13 -13
- package/confirmation/esm/index.css +14 -14
- package/confirmation/index.css +14 -14
- package/confirmation/modern/component.js +1 -1
- package/confirmation/modern/components/code-input/component.js +1 -1
- package/confirmation/modern/components/code-input/index.css +10 -10
- package/confirmation/modern/components/countdown/component.js +1 -1
- package/confirmation/modern/components/countdown/index.css +13 -13
- package/confirmation/modern/components/countdown-loader/component.js +1 -1
- package/confirmation/modern/components/countdown-loader/index.css +2 -2
- package/confirmation/modern/components/overlimit/component.js +1 -1
- package/confirmation/modern/components/overlimit/index.css +9 -9
- package/confirmation/modern/components/sign-confirmation/component.js +1 -1
- package/confirmation/modern/components/sign-confirmation/index.css +13 -13
- package/confirmation/modern/index.css +14 -14
- package/custom-button/Component.d.ts +19 -0
- package/custom-button/Component.js +75 -0
- package/custom-button/cssm/Component.d.ts +19 -0
- package/custom-button/cssm/Component.js +74 -0
- package/custom-button/cssm/index.d.ts +1 -0
- package/custom-button/cssm/index.js +11 -0
- package/custom-button/cssm/index.module.css +57 -0
- package/custom-button/esm/Component.d.ts +19 -0
- package/custom-button/esm/Component.js +68 -0
- package/custom-button/esm/index.css +58 -0
- package/custom-button/esm/index.d.ts +1 -0
- package/custom-button/esm/index.js +4 -0
- package/custom-button/index.css +58 -0
- package/custom-button/index.d.ts +1 -0
- package/custom-button/index.js +10 -0
- package/custom-button/modern/Component.d.ts +19 -0
- package/custom-button/modern/Component.js +30 -0
- package/custom-button/modern/index.css +58 -0
- package/custom-button/modern/index.d.ts +1 -0
- package/custom-button/modern/index.js +4 -0
- package/custom-button/package.json +3 -0
- package/custom-button/send-stats.js +82 -0
- package/date-input/Component.js +1 -1
- package/date-input/esm/Component.js +1 -1
- package/date-input/esm/index.css +4 -4
- package/date-input/index.css +4 -4
- package/date-input/modern/Component.js +1 -1
- package/date-input/modern/index.css +4 -4
- package/divider/Component.js +1 -1
- package/divider/esm/Component.js +1 -1
- package/divider/esm/index.css +1 -1
- package/divider/index.css +1 -1
- package/divider/modern/Component.js +1 -1
- package/divider/modern/index.css +1 -1
- package/drawer/Component.js +1 -1
- package/drawer/esm/Component.js +1 -1
- package/drawer/esm/index.css +16 -16
- package/drawer/index.css +16 -16
- package/drawer/modern/Component.js +1 -1
- package/drawer/modern/index.css +16 -16
- package/dropzone/Component.js +1 -1
- package/dropzone/components/overlay/Component.js +1 -1
- package/dropzone/components/overlay/index.css +3 -3
- package/dropzone/esm/Component.js +1 -1
- package/dropzone/esm/components/overlay/Component.js +1 -1
- package/dropzone/esm/components/overlay/index.css +3 -3
- package/dropzone/esm/index.css +6 -6
- package/dropzone/index.css +6 -6
- package/dropzone/modern/Component.js +1 -1
- package/dropzone/modern/components/overlay/Component.js +1 -1
- package/dropzone/modern/components/overlay/index.css +3 -3
- package/dropzone/modern/index.css +6 -6
- package/file-upload-item/Component.d.ts +1 -1
- package/file-upload-item/Component.js +16 -8
- package/file-upload-item/cssm/Component.d.ts +1 -1
- package/file-upload-item/cssm/Component.js +15 -7
- package/file-upload-item/cssm/index.js +1 -0
- package/file-upload-item/cssm/index.module.css +49 -16
- package/file-upload-item/esm/Component.d.ts +1 -1
- package/file-upload-item/esm/Component.js +16 -8
- package/file-upload-item/esm/index.css +62 -29
- package/file-upload-item/esm/index.js +1 -0
- package/file-upload-item/index.css +62 -29
- package/file-upload-item/index.js +1 -0
- package/file-upload-item/modern/Component.d.ts +1 -1
- package/file-upload-item/modern/Component.js +16 -8
- package/file-upload-item/modern/index.css +62 -29
- package/file-upload-item/modern/index.js +1 -0
- package/form-control/Component.js +3 -3
- package/form-control/default.css +14 -14
- package/form-control/esm/Component.js +3 -3
- package/form-control/esm/default.css +14 -14
- package/form-control/esm/index.css +41 -41
- package/form-control/esm/inverted.css +14 -14
- package/form-control/index.css +41 -41
- package/form-control/inverted.css +14 -14
- package/form-control/modern/Component.js +3 -3
- package/form-control/modern/default.css +14 -14
- package/form-control/modern/index.css +41 -41
- package/form-control/modern/inverted.css +14 -14
- package/gallery/Component.js +3 -3
- package/gallery/components/header/Component.js +2 -2
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/header/index.css +3 -3
- package/gallery/components/header/index.js +1 -1
- package/gallery/components/header-info-block/Component.js +1 -1
- package/gallery/components/header-info-block/index.css +5 -5
- package/gallery/components/image-preview/Component.js +1 -1
- package/gallery/components/image-preview/index.css +12 -12
- package/gallery/components/image-viewer/component.js +2 -2
- package/gallery/components/image-viewer/index.css +19 -19
- package/gallery/components/image-viewer/index.js +2 -2
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/components/index.js +2 -2
- package/gallery/components/navigation-bar/Component.js +1 -1
- package/gallery/components/navigation-bar/index.css +6 -6
- package/gallery/esm/Component.js +3 -3
- package/gallery/esm/components/header/Component.js +2 -2
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.css +3 -3
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/header-info-block/Component.js +1 -1
- package/gallery/esm/components/header-info-block/index.css +5 -5
- package/gallery/esm/components/image-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/index.css +12 -12
- package/gallery/esm/components/image-viewer/component.js +2 -2
- package/gallery/esm/components/image-viewer/index.css +19 -19
- package/gallery/esm/components/image-viewer/index.js +2 -2
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/components/navigation-bar/Component.js +1 -1
- package/gallery/esm/components/navigation-bar/index.css +6 -6
- package/gallery/esm/index.css +3 -3
- package/gallery/esm/index.js +2 -2
- package/gallery/esm/{slide-f3fd3f2e.d.ts → slide-e3410627.d.ts} +0 -0
- package/gallery/esm/{slide-f3fd3f2e.js → slide-e3410627.js} +1 -1
- package/gallery/esm/{tslib.es6-8a6daacc.d.ts → tslib.es6-2fc44e43.d.ts} +0 -0
- package/gallery/esm/{tslib.es6-8a6daacc.js → tslib.es6-2fc44e43.js} +0 -0
- package/gallery/index.css +3 -3
- package/gallery/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/index.css +3 -3
- package/gallery/modern/components/header-info-block/Component.js +1 -1
- package/gallery/modern/components/header-info-block/index.css +5 -5
- package/gallery/modern/components/image-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/index.css +12 -12
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.css +19 -19
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +1 -1
- package/gallery/modern/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.css +6 -6
- package/gallery/modern/index.css +3 -3
- package/gallery/modern/index.js +1 -1
- package/gallery/modern/{slide-68eb7d50.d.ts → slide-f981fa1a.d.ts} +0 -0
- package/gallery/modern/{slide-68eb7d50.js → slide-f981fa1a.js} +1 -1
- package/gallery/{slide-dfdeb208.d.ts → slide-0e39fb1e.d.ts} +0 -0
- package/gallery/{slide-dfdeb208.js → slide-0e39fb1e.js} +1 -1
- package/gallery/{tslib.es6-d69af187.d.ts → tslib.es6-d1e625e9.d.ts} +0 -0
- package/gallery/{tslib.es6-d69af187.js → tslib.es6-d1e625e9.js} +0 -0
- package/grid/Component.js +1 -1
- package/grid/col/Component.js +2 -2
- package/grid/col/index.css +511 -511
- package/grid/col/index.js +1 -1
- package/grid/esm/Component.js +1 -1
- package/grid/esm/col/Component.js +2 -2
- package/grid/esm/col/index.css +511 -511
- package/grid/esm/col/index.js +1 -1
- package/grid/esm/gutters.css +78 -78
- package/grid/esm/{gutters.module-ebab587d.d.ts → gutters.module-3929333e.d.ts} +0 -0
- package/grid/esm/gutters.module-3929333e.js +27 -0
- package/grid/esm/index.js +1 -1
- package/grid/esm/row/Component.js +2 -2
- package/grid/esm/row/index.css +9 -9
- package/grid/esm/row/index.js +1 -1
- package/grid/gutters.css +78 -78
- package/grid/{gutters.module-70344c86.d.ts → gutters.module-73878830.d.ts} +0 -0
- package/grid/gutters.module-73878830.js +28 -0
- package/grid/index.js +1 -1
- package/grid/modern/Component.js +1 -1
- package/grid/modern/col/Component.js +2 -2
- package/grid/modern/col/index.css +511 -511
- package/grid/modern/col/index.js +1 -1
- package/grid/modern/gutters.css +78 -78
- package/grid/modern/gutters.module-18745f79.js +4 -0
- package/grid/modern/index.js +1 -1
- package/grid/modern/row/Component.js +2 -2
- package/grid/modern/row/index.css +9 -9
- package/grid/modern/row/index.js +1 -1
- package/grid/row/Component.js +2 -2
- package/grid/row/index.css +9 -9
- package/grid/row/index.js +1 -1
- package/icon-button/Component.d.ts +2 -2
- package/icon-button/Component.js +3 -3
- package/icon-button/cssm/Component.d.ts +2 -2
- package/icon-button/default.css +13 -13
- package/icon-button/esm/Component.d.ts +2 -2
- package/icon-button/esm/Component.js +3 -3
- package/icon-button/esm/default.css +13 -13
- package/icon-button/esm/index.css +6 -6
- package/icon-button/esm/inverted.css +13 -13
- package/icon-button/index.css +6 -6
- package/icon-button/inverted.css +13 -13
- package/icon-button/modern/Component.d.ts +2 -2
- package/icon-button/modern/Component.js +3 -3
- package/icon-button/modern/default.css +13 -13
- package/icon-button/modern/index.css +6 -6
- package/icon-button/modern/inverted.css +13 -13
- package/input/Component.js +3 -3
- package/input/default.css +13 -13
- package/input/esm/Component.js +3 -3
- package/input/esm/default.css +13 -13
- package/input/esm/index.css +31 -31
- package/input/esm/inverted.css +13 -13
- package/input/index.css +31 -31
- package/input/inverted.css +13 -13
- package/input/modern/Component.js +3 -3
- package/input/modern/default.css +13 -13
- package/input/modern/index.css +31 -31
- package/input/modern/inverted.css +13 -13
- package/input-autocomplete/{Component-d6c31507.d.ts → Component-66aca4d3.d.ts} +0 -0
- package/input-autocomplete/{Component-d6c31507.js → Component-66aca4d3.js} +1 -1
- package/input-autocomplete/Component.js +1 -1
- package/input-autocomplete/autocomplete-field/Component.js +1 -1
- package/input-autocomplete/autocomplete-field/index.css +2 -2
- package/input-autocomplete/autocomplete-field/index.d.ts +1 -1
- package/input-autocomplete/autocomplete-field/index.js +1 -1
- package/input-autocomplete/esm/{Component-a262d80b.d.ts → Component-8f1d0767.d.ts} +0 -0
- package/input-autocomplete/esm/{Component-a262d80b.js → Component-8f1d0767.js} +1 -1
- package/input-autocomplete/esm/Component.js +1 -1
- package/input-autocomplete/esm/autocomplete-field/Component.js +1 -1
- package/input-autocomplete/esm/autocomplete-field/index.css +2 -2
- package/input-autocomplete/esm/autocomplete-field/index.d.ts +1 -1
- package/input-autocomplete/esm/autocomplete-field/index.js +1 -1
- package/input-autocomplete/esm/index.js +1 -1
- package/input-autocomplete/index.js +1 -1
- package/input-autocomplete/modern/autocomplete-field/Component.js +1 -1
- package/input-autocomplete/modern/autocomplete-field/index.css +2 -2
- package/intl-phone-input/{component-4e2c2560.d.ts → component-2cc6830a.d.ts} +0 -0
- package/intl-phone-input/{component-4e2c2560.js → component-2cc6830a.js} +1 -1
- package/intl-phone-input/component.js +3 -3
- package/intl-phone-input/components/flag-icon/component.js +1 -1
- package/intl-phone-input/components/flag-icon/index.css +784 -784
- package/intl-phone-input/components/index.js +1 -1
- package/intl-phone-input/components/select/component.js +2 -2
- package/intl-phone-input/components/select/index.css +6 -6
- package/intl-phone-input/components/select/index.js +1 -1
- package/intl-phone-input/components/select-field/component.js +1 -1
- package/intl-phone-input/components/select-field/index.css +8 -8
- package/intl-phone-input/components/select-field/index.d.ts +1 -1
- package/intl-phone-input/components/select-field/index.js +1 -1
- package/intl-phone-input/esm/{component-1650699c.d.ts → component-e7a144b2.d.ts} +0 -0
- package/intl-phone-input/esm/{component-1650699c.js → component-e7a144b2.js} +1 -1
- package/intl-phone-input/esm/component.js +3 -3
- package/intl-phone-input/esm/components/flag-icon/component.js +1 -1
- package/intl-phone-input/esm/components/flag-icon/index.css +784 -784
- package/intl-phone-input/esm/components/index.js +1 -1
- package/intl-phone-input/esm/components/select/component.js +2 -2
- package/intl-phone-input/esm/components/select/index.css +6 -6
- package/intl-phone-input/esm/components/select/index.js +1 -1
- package/intl-phone-input/esm/components/select-field/component.js +1 -1
- package/intl-phone-input/esm/components/select-field/index.css +8 -8
- package/intl-phone-input/esm/components/select-field/index.d.ts +1 -1
- package/intl-phone-input/esm/components/select-field/index.js +1 -1
- package/intl-phone-input/esm/index.css +3 -3
- package/intl-phone-input/esm/index.js +1 -1
- package/intl-phone-input/esm/{libphonenumber-js.min-1e0a9b69.d.ts → libphonenumber-js.min-6bc9820a.d.ts} +0 -0
- package/intl-phone-input/esm/{libphonenumber-js.min-1e0a9b69.js → libphonenumber-js.min-6bc9820a.js} +0 -0
- package/intl-phone-input/index.css +3 -3
- package/intl-phone-input/index.js +1 -1
- package/intl-phone-input/{libphonenumber-js.min-6d1897ea.d.ts → libphonenumber-js.min-829c09bf.d.ts} +0 -0
- package/intl-phone-input/{libphonenumber-js.min-6d1897ea.js → libphonenumber-js.min-829c09bf.js} +0 -0
- package/intl-phone-input/modern/component.js +2 -2
- package/intl-phone-input/modern/components/flag-icon/component.js +1 -1
- package/intl-phone-input/modern/components/flag-icon/index.css +784 -784
- package/intl-phone-input/modern/components/select/component.js +1 -1
- package/intl-phone-input/modern/components/select/index.css +6 -6
- package/intl-phone-input/modern/components/select-field/component.js +1 -1
- package/intl-phone-input/modern/components/select-field/index.css +8 -8
- package/intl-phone-input/modern/index.css +3 -3
- package/intl-phone-input/modern/{libphonenumber-js.min-1e0a9b69.d.ts → libphonenumber-js.min-6bc9820a.d.ts} +0 -0
- package/intl-phone-input/modern/{libphonenumber-js.min-1e0a9b69.js → libphonenumber-js.min-6bc9820a.js} +0 -0
- package/link/Component.js +3 -3
- package/link/default.css +10 -10
- package/link/esm/Component.js +3 -3
- package/link/esm/default.css +10 -10
- package/link/esm/index.css +12 -12
- package/link/esm/inverted.css +10 -10
- package/link/index.css +12 -12
- package/link/inverted.css +10 -10
- package/link/modern/Component.js +3 -3
- package/link/modern/default.css +10 -10
- package/link/modern/index.css +12 -12
- package/link/modern/inverted.css +10 -10
- package/list/Component.js +1 -1
- package/list/esm/Component.js +1 -1
- package/list/esm/index.css +9 -9
- package/list/index.css +9 -9
- package/list/modern/Component.js +1 -1
- package/list/modern/index.css +9 -9
- package/list-header/Component.js +1 -1
- package/list-header/esm/Component.js +1 -1
- package/list-header/esm/index.css +3 -3
- package/list-header/index.css +3 -3
- package/list-header/modern/Component.js +1 -1
- package/list-header/modern/index.css +3 -3
- package/loader/Component.js +1 -1
- package/loader/esm/Component.js +1 -1
- package/loader/esm/index.css +7 -7
- package/loader/index.css +7 -7
- package/loader/modern/Component.js +1 -1
- package/loader/modern/index.css +7 -7
- package/masked-input/Component.js +1 -1
- package/masked-input/esm/Component.js +1 -1
- package/masked-input/esm/index.css +2 -2
- package/masked-input/index.css +2 -2
- package/masked-input/modern/Component.js +1 -1
- package/masked-input/modern/index.css +2 -2
- package/modal/Component.desktop.js +3 -3
- package/modal/Component.mobile.js +3 -3
- package/modal/Component.responsive.js +2 -2
- package/modal/components/closer/Component.js +2 -2
- package/modal/components/closer/index.css +8 -8
- package/modal/components/content/Component.desktop.js +2 -2
- package/modal/components/content/Component.mobile.js +2 -2
- package/modal/components/content/desktop.css +19 -12
- package/modal/components/content/mobile.css +14 -7
- package/modal/components/footer/Component.desktop.js +2 -2
- package/modal/components/footer/Component.js +1 -1
- package/modal/components/footer/Component.mobile.js +2 -2
- package/modal/components/footer/desktop.css +19 -12
- package/modal/components/footer/layout.css +25 -25
- package/modal/components/footer/mobile.css +14 -7
- package/modal/components/header/Component.desktop.js +2 -2
- package/modal/components/header/Component.js +1 -1
- package/modal/components/header/Component.mobile.js +2 -2
- package/modal/components/header/desktop.css +23 -16
- package/modal/components/header/mobile.css +18 -11
- package/modal/desktop.css +8 -8
- package/modal/desktop.js +2 -2
- package/modal/esm/Component.desktop.js +3 -3
- package/modal/esm/Component.mobile.js +3 -3
- package/modal/esm/Component.responsive.js +2 -2
- package/modal/esm/components/closer/Component.js +2 -2
- package/modal/esm/components/closer/index.css +8 -8
- package/modal/esm/components/content/Component.desktop.js +2 -2
- package/modal/esm/components/content/Component.mobile.js +2 -2
- package/modal/esm/components/content/desktop.css +19 -12
- package/modal/esm/components/content/mobile.css +14 -7
- package/modal/esm/components/footer/Component.desktop.js +2 -2
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/components/footer/Component.mobile.js +2 -2
- package/modal/esm/components/footer/desktop.css +19 -12
- package/modal/esm/components/footer/layout.css +25 -25
- package/modal/esm/components/footer/mobile.css +14 -7
- package/modal/esm/components/header/Component.desktop.js +2 -2
- package/modal/esm/components/header/Component.js +1 -1
- package/modal/esm/components/header/Component.mobile.js +2 -2
- package/modal/esm/components/header/desktop.css +23 -16
- package/modal/esm/components/header/mobile.css +18 -11
- package/modal/esm/desktop.css +8 -8
- package/modal/esm/desktop.js +2 -2
- package/modal/esm/index.js +2 -2
- package/modal/esm/mobile.css +2 -2
- package/modal/esm/mobile.js +2 -2
- package/modal/esm/responsive.js +2 -2
- package/modal/esm/transitions.css +8 -8
- package/modal/esm/transitions.module-4c2889a7.js +4 -0
- package/modal/esm/{tslib.es6-33db3ec8.d.ts → tslib.es6-5d3a812f.d.ts} +0 -0
- package/modal/esm/{tslib.es6-33db3ec8.js → tslib.es6-5d3a812f.js} +0 -0
- package/modal/index.js +2 -2
- package/modal/mobile.css +2 -2
- package/modal/mobile.js +2 -2
- package/modal/modern/Component.desktop.js +2 -2
- package/modal/modern/Component.mobile.js +2 -2
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/closer/Component.js +1 -1
- package/modal/modern/components/closer/index.css +8 -8
- package/modal/modern/components/content/Component.desktop.js +1 -1
- package/modal/modern/components/content/Component.mobile.js +1 -1
- package/modal/modern/components/content/desktop.css +19 -12
- package/modal/modern/components/content/mobile.css +14 -7
- package/modal/modern/components/footer/Component.desktop.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/components/footer/Component.mobile.js +1 -1
- package/modal/modern/components/footer/desktop.css +19 -12
- package/modal/modern/components/footer/layout.css +25 -25
- package/modal/modern/components/footer/mobile.css +14 -7
- package/modal/modern/components/header/Component.desktop.js +1 -1
- package/modal/modern/components/header/Component.mobile.js +1 -1
- package/modal/modern/components/header/desktop.css +23 -16
- package/modal/modern/components/header/mobile.css +18 -11
- package/modal/modern/desktop.css +8 -8
- package/modal/modern/desktop.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile.css +2 -2
- package/modal/modern/mobile.js +1 -1
- package/modal/modern/responsive.js +1 -1
- package/modal/modern/transitions.css +8 -8
- package/modal/modern/transitions.module-4c2889a7.js +4 -0
- package/modal/responsive.js +2 -2
- package/modal/transitions.css +8 -8
- package/modal/transitions.module-ad7c107c.js +4 -0
- package/modal/{tslib.es6-9ba169bb.d.ts → tslib.es6-810343ad.d.ts} +0 -0
- package/modal/{tslib.es6-9ba169bb.js → tslib.es6-810343ad.js} +0 -0
- package/notification/Component.js +1 -1
- package/notification/esm/Component.js +1 -1
- package/notification/esm/index.css +7 -7
- package/notification/index.css +7 -7
- package/notification/modern/Component.js +1 -1
- package/notification/modern/index.css +7 -7
- package/notification-manager/{component-0a83dbbe.d.ts → component-4c431649.d.ts} +0 -0
- package/notification-manager/{component-0a83dbbe.js → component-4c431649.js} +0 -0
- package/notification-manager/component.js +2 -2
- package/notification-manager/components/index.js +1 -1
- package/notification-manager/components/notification/component.js +1 -1
- package/notification-manager/components/notification/index.d.ts +1 -1
- package/notification-manager/components/notification/index.js +1 -1
- package/notification-manager/esm/{component-3067d5ad.d.ts → component-be06e635.d.ts} +0 -0
- package/notification-manager/esm/{component-3067d5ad.js → component-be06e635.js} +0 -0
- package/notification-manager/esm/component.js +2 -2
- package/notification-manager/esm/components/index.js +1 -1
- package/notification-manager/esm/components/notification/component.js +1 -1
- package/notification-manager/esm/components/notification/index.d.ts +1 -1
- package/notification-manager/esm/components/notification/index.js +1 -1
- package/notification-manager/esm/index.css +11 -11
- package/notification-manager/esm/index.js +1 -1
- package/notification-manager/index.css +11 -11
- package/notification-manager/index.js +1 -1
- package/notification-manager/modern/component.js +1 -1
- package/notification-manager/modern/index.css +11 -11
- package/package.json +1 -1
- package/password-input/component.js +1 -1
- package/password-input/esm/component.js +1 -1
- package/password-input/esm/index.css +5 -5
- package/password-input/index.css +5 -5
- package/password-input/modern/component.js +1 -1
- package/password-input/modern/index.css +5 -5
- package/picker-button/{Component-9a3d00b9.d.ts → Component-0f8b68a4.d.ts} +0 -0
- package/picker-button/{Component-9a3d00b9.js → Component-0f8b68a4.js} +6 -4
- package/picker-button/Component.js +2 -2
- package/picker-button/cssm/{Component-c7d52094.d.ts → Component-34f0d762.d.ts} +0 -0
- package/picker-button/cssm/{Component-c7d52094.js → Component-34f0d762.js} +5 -3
- package/picker-button/cssm/Component.js +1 -1
- package/picker-button/cssm/field/Component.js +1 -1
- package/picker-button/cssm/field/index.d.ts +1 -1
- package/picker-button/cssm/field/index.js +1 -1
- package/picker-button/cssm/index.js +1 -1
- package/picker-button/esm/{Component-472f5680.d.ts → Component-a4007d26.d.ts} +0 -0
- package/picker-button/esm/{Component-472f5680.js → Component-a4007d26.js} +6 -4
- package/picker-button/esm/Component.js +2 -2
- package/picker-button/esm/field/Component.js +1 -1
- package/picker-button/esm/field/index.css +3 -3
- package/picker-button/esm/field/index.d.ts +1 -1
- package/picker-button/esm/field/index.js +1 -1
- package/picker-button/esm/index.css +2 -2
- package/picker-button/esm/index.js +1 -1
- package/picker-button/field/Component.js +1 -1
- package/picker-button/field/index.css +3 -3
- package/picker-button/field/index.d.ts +1 -1
- package/picker-button/field/index.js +1 -1
- package/picker-button/index.css +2 -2
- package/picker-button/index.js +1 -1
- package/picker-button/modern/Component.js +1 -1
- package/picker-button/modern/field/Component.js +6 -4
- package/picker-button/modern/field/index.css +3 -3
- package/picker-button/modern/index.css +2 -2
- package/plate/Component.js +1 -1
- package/plate/esm/Component.js +1 -1
- package/plate/esm/index.css +28 -28
- package/plate/index.css +28 -28
- package/plate/modern/Component.js +1 -1
- package/plate/modern/index.css +28 -28
- package/popover/Component.js +1 -1
- package/popover/esm/Component.js +1 -1
- package/popover/esm/index.css +33 -33
- package/popover/index.css +33 -33
- package/popover/modern/Component.js +1 -1
- package/popover/modern/index.css +33 -33
- package/progress-bar/Component.js +1 -1
- package/progress-bar/esm/Component.js +1 -1
- package/progress-bar/esm/index.css +4 -4
- package/progress-bar/index.css +4 -4
- package/progress-bar/modern/Component.js +1 -1
- package/progress-bar/modern/index.css +4 -4
- package/pure-input/Component.js +1 -1
- package/pure-input/esm/Component.js +1 -1
- package/pure-input/esm/index.css +26 -26
- package/pure-input/index.css +26 -26
- package/pure-input/modern/Component.js +1 -1
- package/pure-input/modern/index.css +26 -26
- package/radio/Component.js +1 -1
- package/radio/esm/Component.js +1 -1
- package/radio/esm/index.css +32 -32
- package/radio/index.css +32 -32
- package/radio/modern/Component.js +1 -1
- package/radio/modern/index.css +32 -32
- package/radio-group/Component.js +1 -1
- package/radio-group/esm/Component.js +1 -1
- package/radio-group/esm/index.css +16 -16
- package/radio-group/index.css +16 -16
- package/radio-group/modern/Component.js +1 -1
- package/radio-group/modern/index.css +16 -16
- package/select/Component.js +1 -1
- package/select/components/arrow/Component.js +1 -1
- package/select/components/arrow/index.css +3 -3
- package/select/components/base-select/Component.js +2 -2
- package/select/components/base-select/index.css +7 -7
- package/select/components/base-select/index.js +1 -1
- package/select/components/checkmark/Component.js +1 -1
- package/select/components/checkmark/index.css +3 -3
- package/select/components/field/Component.js +2 -2
- package/select/components/field/index.css +9 -9
- package/select/components/field/index.js +1 -1
- package/select/components/index.js +1 -1
- package/select/components/native-select/Component.js +1 -1
- package/select/components/native-select/index.js +1 -1
- package/select/components/optgroup/Component.js +1 -1
- package/select/components/optgroup/index.css +6 -6
- package/select/components/option/Component.js +2 -2
- package/select/components/option/index.css +20 -20
- package/select/components/option/index.js +1 -1
- package/select/components/options-list/Component.js +1 -1
- package/select/components/options-list/index.css +5 -5
- package/select/components/virtual-options-list/Component.js +1 -1
- package/select/components/virtual-options-list/index.css +11 -11
- package/select/esm/Component.js +1 -1
- package/select/esm/components/arrow/Component.js +1 -1
- package/select/esm/components/arrow/index.css +3 -3
- package/select/esm/components/base-select/Component.js +2 -2
- package/select/esm/components/base-select/index.css +7 -7
- package/select/esm/components/base-select/index.js +1 -1
- package/select/esm/components/checkmark/Component.js +1 -1
- package/select/esm/components/checkmark/index.css +3 -3
- package/select/esm/components/field/Component.js +2 -2
- package/select/esm/components/field/index.css +9 -9
- package/select/esm/components/field/index.js +1 -1
- package/select/esm/components/index.js +1 -1
- package/select/esm/components/native-select/Component.js +1 -1
- package/select/esm/components/native-select/index.js +1 -1
- package/select/esm/components/optgroup/Component.js +1 -1
- package/select/esm/components/optgroup/index.css +6 -6
- package/select/esm/components/option/Component.js +2 -2
- package/select/esm/components/option/index.css +20 -20
- package/select/esm/components/option/index.js +1 -1
- package/select/esm/components/options-list/Component.js +1 -1
- package/select/esm/components/options-list/index.css +5 -5
- package/select/esm/components/virtual-options-list/Component.js +1 -1
- package/select/esm/components/virtual-options-list/index.css +11 -11
- package/select/esm/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useLazyLoading/hook.js +2 -2
- package/select/esm/presets/useLazyLoading/index.css +2 -2
- package/select/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/select/esm/presets/useSelectWithLoading/index.css +2 -2
- package/select/esm/{tslib.es6-88c0ba7a.d.ts → tslib.es6-92952a5b.d.ts} +0 -0
- package/select/esm/{tslib.es6-88c0ba7a.js → tslib.es6-92952a5b.js} +0 -0
- package/select/index.js +1 -1
- package/select/modern/components/arrow/Component.js +1 -1
- package/select/modern/components/arrow/index.css +3 -3
- package/select/modern/components/base-select/Component.js +1 -1
- package/select/modern/components/base-select/index.css +7 -7
- package/select/modern/components/checkmark/Component.js +1 -1
- package/select/modern/components/checkmark/index.css +3 -3
- package/select/modern/components/field/Component.js +1 -1
- package/select/modern/components/field/index.css +9 -9
- package/select/modern/components/optgroup/Component.js +1 -1
- package/select/modern/components/optgroup/index.css +6 -6
- package/select/modern/components/option/Component.js +1 -1
- package/select/modern/components/option/index.css +20 -20
- package/select/modern/components/options-list/Component.js +1 -1
- package/select/modern/components/options-list/index.css +5 -5
- package/select/modern/components/virtual-options-list/Component.js +1 -1
- package/select/modern/components/virtual-options-list/index.css +11 -11
- package/select/modern/presets/useLazyLoading/hook.js +1 -1
- package/select/modern/presets/useLazyLoading/index.css +2 -2
- package/select/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/select/modern/presets/useSelectWithLoading/index.css +2 -2
- package/select/presets/index.js +1 -1
- package/select/presets/useLazyLoading/hook.js +2 -2
- package/select/presets/useLazyLoading/index.css +2 -2
- package/select/presets/useSelectWithLoading/hook.js +2 -2
- package/select/presets/useSelectWithLoading/index.css +2 -2
- package/select/{tslib.es6-f331eccd.d.ts → tslib.es6-14b6a04f.d.ts} +0 -0
- package/select/{tslib.es6-f331eccd.js → tslib.es6-14b6a04f.js} +0 -0
- package/select-with-tags/component.js +1 -1
- package/select-with-tags/components/index.js +1 -1
- package/select-with-tags/components/tag/component.js +2 -2
- package/select-with-tags/components/tag/index.css +11 -11
- package/select-with-tags/components/tag/index.js +1 -1
- package/select-with-tags/components/tag-list/component.js +2 -2
- package/select-with-tags/components/tag-list/index.css +31 -31
- package/select-with-tags/components/tag-list/index.js +1 -1
- package/select-with-tags/esm/component.js +1 -1
- package/select-with-tags/esm/components/index.js +1 -1
- package/select-with-tags/esm/components/tag/component.js +2 -2
- package/select-with-tags/esm/components/tag/index.css +11 -11
- package/select-with-tags/esm/components/tag/index.js +1 -1
- package/select-with-tags/esm/components/tag-list/component.js +2 -2
- package/select-with-tags/esm/components/tag-list/index.css +31 -31
- package/select-with-tags/esm/components/tag-list/index.js +1 -1
- package/select-with-tags/esm/index.js +1 -1
- package/select-with-tags/esm/{tslib.es6-00075b53.d.ts → tslib.es6-77554891.d.ts} +0 -0
- package/select-with-tags/esm/{tslib.es6-00075b53.js → tslib.es6-77554891.js} +0 -0
- package/select-with-tags/esm/utils/index.js +1 -1
- package/select-with-tags/esm/utils/match.js +1 -1
- package/select-with-tags/index.js +1 -1
- package/select-with-tags/modern/components/tag/component.js +1 -1
- package/select-with-tags/modern/components/tag/index.css +11 -11
- package/select-with-tags/modern/components/tag-list/component.js +1 -1
- package/select-with-tags/modern/components/tag-list/index.css +31 -31
- package/select-with-tags/{tslib.es6-de6bfadf.d.ts → tslib.es6-c3c4b3f8.d.ts} +0 -0
- package/select-with-tags/{tslib.es6-de6bfadf.js → tslib.es6-c3c4b3f8.js} +0 -0
- package/select-with-tags/utils/index.js +1 -1
- package/select-with-tags/utils/match.js +1 -1
- package/skeleton/Component.js +1 -1
- package/skeleton/esm/Component.js +1 -1
- package/skeleton/esm/index.css +10 -10
- package/skeleton/index.css +10 -10
- package/skeleton/modern/Component.js +1 -1
- package/skeleton/modern/index.css +10 -10
- package/slider/Component.js +1 -1
- package/slider/esm/Component.js +1 -1
- package/slider/esm/index.css +37 -37
- package/slider/index.css +37 -37
- package/slider/modern/Component.js +1 -1
- package/slider/modern/index.css +37 -37
- package/slider-input/Component.js +1 -1
- package/slider-input/esm/Component.js +1 -1
- package/slider-input/esm/index.css +17 -17
- package/slider-input/index.css +17 -17
- package/slider-input/modern/Component.js +1 -1
- package/slider-input/modern/index.css +17 -17
- package/space/Component.js +2 -2
- package/space/{Item-e92bfe93.d.ts → Item-c2199ae5.d.ts} +0 -0
- package/space/{Item-e92bfe93.js → Item-c2199ae5.js} +0 -0
- package/space/Item.js +1 -1
- package/space/esm/Component.js +2 -2
- package/space/esm/{Item-20ffe191.d.ts → Item-967d7962.d.ts} +0 -0
- package/space/esm/{Item-20ffe191.js → Item-967d7962.js} +0 -0
- package/space/esm/Item.js +1 -1
- package/space/esm/index.css +8 -8
- package/space/esm/index.js +1 -1
- package/space/index.css +8 -8
- package/space/index.js +1 -1
- package/space/modern/Component.js +1 -1
- package/space/modern/index.css +8 -8
- package/spinner/Component.js +1 -1
- package/spinner/esm/Component.js +1 -1
- package/spinner/esm/index.css +6 -6
- package/spinner/index.css +6 -6
- package/spinner/modern/Component.js +1 -1
- package/spinner/modern/index.css +6 -6
- package/status/Component.js +1 -1
- package/status/cssm/index.module.css +14 -14
- package/status/esm/Component.js +1 -1
- package/status/esm/index.css +32 -32
- package/status/index.css +32 -32
- package/status/modern/Component.js +1 -1
- package/status/modern/index.css +32 -32
- package/stepped-progress-bar/Component.js +1 -1
- package/stepped-progress-bar/components/step-bar/Component.js +1 -1
- package/stepped-progress-bar/components/step-bar/index.css +3 -3
- package/stepped-progress-bar/esm/Component.js +1 -1
- package/stepped-progress-bar/esm/components/step-bar/Component.js +1 -1
- package/stepped-progress-bar/esm/components/step-bar/index.css +3 -3
- package/stepped-progress-bar/esm/index.css +3 -3
- package/stepped-progress-bar/index.css +3 -3
- package/stepped-progress-bar/modern/Component.js +1 -1
- package/stepped-progress-bar/modern/components/step-bar/Component.js +1 -1
- package/stepped-progress-bar/modern/components/step-bar/index.css +3 -3
- package/stepped-progress-bar/modern/index.css +3 -3
- package/switch/Component.js +1 -1
- package/switch/esm/Component.js +1 -1
- package/switch/esm/index.css +26 -26
- package/switch/index.css +26 -26
- package/switch/modern/Component.js +1 -1
- package/switch/modern/index.css +26 -26
- package/tabs/components/primary-tablist/Component.desktop.js +2 -2
- package/tabs/components/primary-tablist/Component.js +1 -1
- package/tabs/components/primary-tablist/Component.mobile.js +3 -3
- package/tabs/components/primary-tablist/Component.responsive.js +2 -2
- package/tabs/components/primary-tablist/index.css +19 -19
- package/tabs/components/primary-tablist/mobile.css +28 -21
- package/tabs/components/scrollable-container/Component.js +1 -1
- package/tabs/components/scrollable-container/index.css +3 -3
- package/tabs/components/secondary-tablist/Component.desktop.js +2 -2
- package/tabs/components/secondary-tablist/Component.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +3 -3
- package/tabs/components/secondary-tablist/Component.responsive.js +2 -2
- package/tabs/components/secondary-tablist/index.css +12 -12
- package/tabs/components/secondary-tablist/mobile.css +22 -15
- package/tabs/components/tab/Component.js +1 -1
- package/tabs/components/tab/index.css +3 -3
- package/tabs/components/tabs/Component.desktop.js +3 -3
- package/tabs/components/tabs/Component.mobile.js +3 -3
- package/tabs/components/tabs/Component.responsive.js +3 -3
- package/tabs/desktop.js +3 -3
- package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/tabs/esm/components/primary-tablist/Component.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/tabs/esm/components/primary-tablist/index.css +19 -19
- package/tabs/esm/components/primary-tablist/mobile.css +28 -21
- package/tabs/esm/components/scrollable-container/Component.js +1 -1
- package/tabs/esm/components/scrollable-container/index.css +3 -3
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/tabs/esm/components/secondary-tablist/Component.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +3 -3
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/tabs/esm/components/secondary-tablist/index.css +12 -12
- package/tabs/esm/components/secondary-tablist/mobile.css +22 -15
- package/tabs/esm/components/tab/Component.js +1 -1
- package/tabs/esm/components/tab/index.css +3 -3
- package/tabs/esm/components/tabs/Component.desktop.js +3 -3
- package/tabs/esm/components/tabs/Component.mobile.js +3 -3
- package/tabs/esm/components/tabs/Component.responsive.js +3 -3
- package/tabs/esm/desktop.js +3 -3
- package/tabs/esm/index.js +3 -3
- package/tabs/esm/index.module-0dae89c3.js +4 -0
- package/tabs/esm/index.module-8953c862.js +4 -0
- package/tabs/esm/mobile.js +3 -3
- package/tabs/esm/responsive.js +3 -3
- package/tabs/esm/{tslib.es6-f32a8b0b.d.ts → tslib.es6-34905a1c.d.ts} +0 -0
- package/tabs/esm/{tslib.es6-f32a8b0b.js → tslib.es6-34905a1c.js} +0 -0
- package/tabs/index.js +3 -3
- package/tabs/index.module-3fbb9413.js +4 -0
- package/tabs/index.module-eddb0042.js +4 -0
- package/tabs/mobile.js +3 -3
- package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/primary-tablist/index.css +19 -19
- package/tabs/modern/components/primary-tablist/mobile.css +28 -21
- package/tabs/modern/components/scrollable-container/Component.js +1 -1
- package/tabs/modern/components/scrollable-container/index.css +3 -3
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/secondary-tablist/index.css +12 -12
- package/tabs/modern/components/secondary-tablist/mobile.css +22 -15
- package/tabs/modern/components/tab/Component.js +1 -1
- package/tabs/modern/components/tab/index.css +3 -3
- package/tabs/modern/components/tabs/Component.desktop.js +2 -2
- package/tabs/modern/components/tabs/Component.mobile.js +2 -2
- package/tabs/modern/components/tabs/Component.responsive.js +2 -2
- package/tabs/modern/desktop.js +2 -2
- package/tabs/modern/index.js +2 -2
- package/tabs/modern/index.module-0dae89c3.js +4 -0
- package/tabs/modern/index.module-8953c862.js +4 -0
- package/tabs/modern/mobile.js +2 -2
- package/tabs/modern/responsive.js +2 -2
- package/tabs/responsive.js +3 -3
- package/tabs/{tslib.es6-a945f620.d.ts → tslib.es6-07c7df6c.d.ts} +0 -0
- package/tabs/{tslib.es6-a945f620.js → tslib.es6-07c7df6c.js} +0 -0
- package/tag/Component.js +3 -3
- package/tag/default.css +8 -8
- package/tag/esm/Component.js +3 -3
- package/tag/esm/default.css +8 -8
- package/tag/esm/index.css +36 -36
- package/tag/esm/inverted.css +8 -8
- package/tag/index.css +36 -36
- package/tag/inverted.css +8 -8
- package/tag/modern/Component.js +3 -3
- package/tag/modern/default.css +8 -8
- package/tag/modern/index.css +36 -36
- package/tag/modern/inverted.css +8 -8
- package/textarea/Component.js +3 -3
- package/textarea/default.css +19 -19
- package/textarea/esm/Component.js +3 -3
- package/textarea/esm/default.css +19 -19
- package/textarea/esm/index.css +22 -22
- package/textarea/esm/inverted.css +19 -19
- package/textarea/index.css +22 -22
- package/textarea/inverted.css +19 -19
- package/textarea/modern/Component.js +3 -3
- package/textarea/modern/default.css +19 -19
- package/textarea/modern/index.css +22 -22
- package/textarea/modern/inverted.css +19 -19
- package/themes/click.css +7 -0
- package/themes/compiled/mobile-dark-bluetint.css +261 -219
- package/themes/corp.css +7 -0
- package/themes/dist/click.css +7 -0
- package/themes/dist/compiled/mobile-dark-bluetint.css +674 -654
- package/themes/dist/corp.css +7 -0
- package/themes/dist/mobile.css +7 -0
- package/themes/dist/package.json +1 -1
- package/themes/dist/site.css +7 -0
- package/themes/mobile.css +7 -0
- package/themes/site.css +7 -0
- package/toast/component.js +1 -1
- package/toast/esm/component.js +1 -1
- package/toast/esm/index.css +9 -9
- package/toast/index.css +9 -9
- package/toast/modern/component.js +1 -1
- package/toast/modern/index.css +9 -9
- package/toast-plate/component.js +1 -1
- package/toast-plate/cssm/index.module.css +7 -0
- package/toast-plate/esm/component.js +1 -1
- package/toast-plate/esm/index.css +22 -15
- package/toast-plate/index.css +22 -15
- package/toast-plate/modern/component.js +1 -1
- package/toast-plate/modern/index.css +22 -15
- package/tooltip/{Component-8f38bcf9.d.ts → Component-98622602.d.ts} +0 -0
- package/tooltip/{Component-8f38bcf9.js → Component-98622602.js} +1 -1
- package/tooltip/Component.js +1 -1
- package/tooltip/component.responsive.js +1 -1
- package/tooltip/esm/{Component-2cfc0daa.d.ts → Component-a4f253e6.d.ts} +0 -0
- package/tooltip/esm/{Component-2cfc0daa.js → Component-a4f253e6.js} +1 -1
- package/tooltip/esm/Component.js +1 -1
- package/tooltip/esm/component.responsive.js +1 -1
- package/tooltip/esm/index.css +7 -7
- package/tooltip/esm/index.d.ts +1 -1
- package/tooltip/esm/index.js +1 -1
- package/tooltip/esm/responsive.js +1 -1
- package/tooltip/index.css +7 -7
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +1 -1
- package/tooltip/modern/Component.js +1 -1
- package/tooltip/modern/index.css +7 -7
- package/tooltip/responsive.js +1 -1
- package/typography/colors.css +12 -12
- package/typography/{colors.module-b68813dc.d.ts → colors.module-4d056399.d.ts} +0 -0
- package/typography/{colors.module-b68813dc.js → colors.module-4d056399.js} +1 -1
- package/typography/common.module-c3a7bb8d.js +4 -0
- package/typography/component.js +2 -2
- package/typography/esm/colors.css +12 -12
- package/typography/esm/{colors.module-ddf3a2b5.d.ts → colors.module-58e90404.d.ts} +0 -0
- package/typography/esm/{colors.module-ddf3a2b5.js → colors.module-58e90404.js} +1 -1
- package/typography/esm/common.module-0aa3dcdc.js +4 -0
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.js +2 -2
- package/typography/esm/text/index.css +13 -13
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/common.css +4 -4
- package/typography/esm/title/component.js +1 -1
- package/typography/esm/title/index.css +18 -18
- package/typography/esm/title/index.js +3 -3
- package/typography/esm/title-responsive/component.js +3 -3
- package/typography/esm/title-responsive/index.css +45 -45
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/index.js +2 -2
- package/typography/modern/colors.css +12 -12
- package/typography/modern/colors.module-821c0fe5.js +4 -0
- package/typography/modern/common.module-0aa3dcdc.js +4 -0
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.js +2 -2
- package/typography/modern/text/index.css +13 -13
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/common.css +4 -4
- package/typography/modern/title/component.js +1 -1
- package/typography/modern/title/index.css +18 -18
- package/typography/modern/title/index.js +3 -3
- package/typography/modern/title-responsive/component.js +3 -3
- package/typography/modern/title-responsive/index.css +45 -45
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.js +2 -2
- package/typography/text/index.css +13 -13
- package/typography/text/index.js +1 -1
- package/typography/title/common.css +4 -4
- package/typography/title/component.js +1 -1
- package/typography/title/index.css +18 -18
- package/typography/title/index.js +3 -3
- package/typography/title-responsive/component.js +3 -3
- package/typography/title-responsive/index.css +45 -45
- package/typography/title-responsive/index.js +2 -2
- package/vars/colors-addons.css +7 -0
- package/vars/cssm/colors-addons.css +7 -0
- package/vars/cssm/index.css +7 -0
- package/vars/dist/colors-addons.css +7 -0
- package/vars/dist/cssm/colors-addons.css +7 -0
- package/vars/dist/cssm/index.css +7 -0
- package/vars/dist/package.json +1 -1
- package/with-suffix/Component.js +1 -1
- package/with-suffix/esm/Component.js +1 -1
- package/with-suffix/esm/index.css +9 -9
- package/with-suffix/index.css +9 -9
- package/with-suffix/modern/Component.js +1 -1
- package/with-suffix/modern/index.css +9 -9
- package/grid/esm/gutters.module-ebab587d.js +0 -27
- package/grid/gutters.module-70344c86.js +0 -28
- package/grid/modern/gutters.module-4ce4555c.js +0 -4
- package/modal/esm/transitions.module-15613e30.js +0 -4
- package/modal/modern/transitions.module-15613e30.js +0 -4
- package/modal/transitions.module-1b92fd3b.js +0 -4
- package/tabs/esm/index.module-5f8ab866.js +0 -4
- package/tabs/esm/index.module-79dd2b67.js +0 -4
- package/tabs/index.module-09355c68.js +0 -4
- package/tabs/index.module-313ebd46.js +0 -4
- package/tabs/modern/index.module-5f8ab866.js +0 -4
- package/tabs/modern/index.module-79dd2b67.js +0 -4
- package/typography/common.module-13fb367b.js +0 -4
- package/typography/esm/common.module-6c598082.js +0 -4
- package/typography/modern/colors.module-c5fed0a1.js +0 -4
- package/typography/modern/common.module-6c598082.js +0 -4
|
@@ -8,7 +8,8 @@ var coreComponentsSpinner = require('../../spinner/cssm');
|
|
|
8
8
|
var CrossMIcon = require('@alfalab/icons-glyph/CrossMIcon');
|
|
9
9
|
var CheckmarkCircleMIcon = require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
10
10
|
var AlertCircleMIcon = require('@alfalab/icons-glyph/AlertCircleMIcon');
|
|
11
|
-
require('@alfalab/icons-glyph');
|
|
11
|
+
var PointerDownMIcon = require('@alfalab/icons-glyph/PointerDownMIcon');
|
|
12
|
+
var iconsGlyph = require('@alfalab/icons-glyph');
|
|
12
13
|
var utils = require('./utils.js');
|
|
13
14
|
var styles = require('./index.module.css');
|
|
14
15
|
|
|
@@ -35,6 +36,9 @@ var FileUploadItem = function (_a) {
|
|
|
35
36
|
onRestore(id);
|
|
36
37
|
}, [id, onRestore]);
|
|
37
38
|
var renderIcon = React.useCallback(function () {
|
|
39
|
+
if (showRestore) {
|
|
40
|
+
return React__default['default'].createElement(iconsGlyph.ClockMIcon, { className: styles__default['default'].restoreIcon });
|
|
41
|
+
}
|
|
38
42
|
switch (uploadStatus) {
|
|
39
43
|
case 'ERROR':
|
|
40
44
|
return React__default['default'].createElement(AlertCircleMIcon.AlertCircleMIcon, { className: styles__default['default'].errorIcon });
|
|
@@ -42,25 +46,29 @@ var FileUploadItem = function (_a) {
|
|
|
42
46
|
return React__default['default'].createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, { className: styles__default['default'].successIcon });
|
|
43
47
|
case 'LOADING':
|
|
44
48
|
case 'UPLOADING':
|
|
45
|
-
return React__default['default'].createElement(
|
|
49
|
+
return (React__default['default'].createElement("div", { className: styles__default['default'].spinnerWrapper },
|
|
50
|
+
React__default['default'].createElement(coreComponentsSpinner.Spinner, { visible: true, className: styles__default['default'].spinner })));
|
|
46
51
|
default: {
|
|
47
52
|
return React__default['default'].createElement(Icon, { className: styles__default['default'].icon });
|
|
48
53
|
}
|
|
49
54
|
}
|
|
50
|
-
}, [uploadStatus]);
|
|
51
|
-
var
|
|
55
|
+
}, [showRestore, uploadStatus]);
|
|
56
|
+
var renderInfoSection = React.useCallback(function () { return (React__default['default'].createElement("div", { className: styles__default['default'].infoSection },
|
|
57
|
+
React__default['default'].createElement("div", { className: styles__default['default'].name }, name),
|
|
58
|
+
uploadStatus === 'ERROR' && error && (React__default['default'].createElement("div", { className: styles__default['default'].errorWrapper, role: 'alert' }, error)))); }, [name, uploadStatus, error]);
|
|
52
59
|
var showMeta = !showRestore && (!uploadStatus || uploadStatus === 'SUCCESS');
|
|
60
|
+
var showDownload = Boolean(downloadLink) && !showRestore;
|
|
53
61
|
return (React__default['default'].createElement("div", { className: cn__default['default'](className, styles__default['default'].component, uploadStatus && styles__default['default'][uploadStatus.toLocaleLowerCase()]), "data-test-id": dataTestId },
|
|
54
62
|
React__default['default'].createElement("div", { className: styles__default['default'].info },
|
|
55
63
|
renderIcon(),
|
|
56
|
-
|
|
64
|
+
renderInfoSection(),
|
|
57
65
|
children,
|
|
58
|
-
uploadStatus === 'UPLOADING' && React__default['default'].createElement("span",
|
|
59
|
-
uploadStatus === 'ERROR' && (React__default['default'].createElement("span", { className: styles__default['default'].error, role: 'alert' }, error)),
|
|
66
|
+
uploadStatus === 'UPLOADING' && (React__default['default'].createElement("span", { className: styles__default['default'].uploadPercent }, Math.round(uploadPercent) + "%")),
|
|
60
67
|
showMeta && (React__default['default'].createElement("div", { className: styles__default['default'].meta },
|
|
61
68
|
uploadDate && React__default['default'].createElement("span", { key: uploadDate }, uploadDate),
|
|
62
69
|
size && (React__default['default'].createElement("span", { key: size, className: styles__default['default'].size }, utils.humanFileSize(size)))))),
|
|
63
70
|
showRestore && (React__default['default'].createElement(coreComponentsLink.Link, { pseudo: true, className: styles__default['default'].restore, onClick: handleRestore }, "\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C")),
|
|
71
|
+
showDownload && (React__default['default'].createElement(coreComponentsIconButton.IconButton, { size: 'xxs', icon: PointerDownMIcon.PointerDownMIcon, className: styles__default['default'].download, "aria-label": '\u0441\u043A\u0430\u0447\u0430\u0442\u044C', href: downloadLink, onClick: handleDownload, download: download })),
|
|
64
72
|
showDelete && !showRestore && (React__default['default'].createElement(coreComponentsIconButton.IconButton, { size: 'xxs', icon: CrossMIcon.CrossMIcon, onClick: handleDelete, className: styles__default['default'].delete, "aria-label": '\u0443\u0434\u0430\u043B\u0438\u0442\u044C' }))));
|
|
65
73
|
};
|
|
66
74
|
|
|
@@ -8,6 +8,7 @@ require('../../spinner/cssm');
|
|
|
8
8
|
require('@alfalab/icons-glyph/CrossMIcon');
|
|
9
9
|
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
10
10
|
require('@alfalab/icons-glyph/AlertCircleMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/PointerDownMIcon');
|
|
11
12
|
require('@alfalab/icons-glyph');
|
|
12
13
|
require('./utils.js');
|
|
13
14
|
require('./index.module.css');
|
|
@@ -16,8 +16,10 @@
|
|
|
16
16
|
}
|
|
17
17
|
:root {
|
|
18
18
|
--gap-3xs: 2px;
|
|
19
|
+
--gap-2xs: 4px;
|
|
19
20
|
--gap-xs: 8px;
|
|
20
21
|
--gap-s: 12px;
|
|
22
|
+
--gap-xl: 24px;
|
|
21
23
|
}
|
|
22
24
|
.component {
|
|
23
25
|
font-size: 13px;
|
|
@@ -26,18 +28,24 @@
|
|
|
26
28
|
|
|
27
29
|
display: flex;
|
|
28
30
|
width: 100%;
|
|
29
|
-
|
|
30
|
-
border-bottom: 1px solid var(--color-light-border-primary);
|
|
31
|
+
padding: var(--gap-xs);
|
|
31
32
|
color: var(--color-light-text-secondary);
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
box-shadow: 0 -1px 0 0 var(--color-light-border-primary) inset;
|
|
34
|
+
box-sizing: border-box
|
|
34
35
|
}
|
|
35
36
|
.component svg {
|
|
36
37
|
display: block;
|
|
37
38
|
}
|
|
39
|
+
.infoSection {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
flex: 1;
|
|
43
|
+
margin-top: var(--gap-2xs);
|
|
44
|
+
margin-left: var(--gap-s);
|
|
45
|
+
min-width: 40%;
|
|
46
|
+
}
|
|
38
47
|
.info {
|
|
39
48
|
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
49
|
flex-wrap: wrap;
|
|
42
50
|
flex: 1;
|
|
43
51
|
}
|
|
@@ -55,13 +63,10 @@
|
|
|
55
63
|
color: var(--color-light-graphic-positive);
|
|
56
64
|
}
|
|
57
65
|
.name {
|
|
58
|
-
flex: 1;
|
|
59
|
-
margin-left: var(--gap-xs);
|
|
60
66
|
white-space: nowrap;
|
|
61
67
|
overflow: hidden;
|
|
62
68
|
text-overflow: ellipsis;
|
|
63
|
-
color: var(--color-light-text-primary)
|
|
64
|
-
min-width: 40%
|
|
69
|
+
color: var(--color-light-text-primary)
|
|
65
70
|
}
|
|
66
71
|
.name a {
|
|
67
72
|
display: block;
|
|
@@ -70,8 +75,9 @@
|
|
|
70
75
|
.meta {
|
|
71
76
|
display: flex;
|
|
72
77
|
align-items: center;
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
margin-right: var(--gap-2xs);
|
|
80
|
+
margin-left: var(--gap-xl)
|
|
75
81
|
}
|
|
76
82
|
.meta > * {
|
|
77
83
|
margin-right: var(--gap-s)
|
|
@@ -80,20 +86,47 @@
|
|
|
80
86
|
margin-right: 0;
|
|
81
87
|
}
|
|
82
88
|
.size {
|
|
83
|
-
width: 65px;
|
|
84
89
|
text-align: right;
|
|
85
90
|
}
|
|
86
|
-
.delete
|
|
91
|
+
.delete,
|
|
92
|
+
.download {
|
|
87
93
|
height: 24px;
|
|
88
94
|
width: 24px;
|
|
89
|
-
margin-left: var(--gap-
|
|
95
|
+
margin-left: var(--gap-xs)
|
|
90
96
|
}
|
|
91
|
-
.
|
|
97
|
+
.delete svg, .download svg {
|
|
98
|
+
width: 18px;
|
|
99
|
+
height: 18px;
|
|
100
|
+
}
|
|
101
|
+
.errorWrapper {
|
|
102
|
+
margin-top: var(--gap-s);
|
|
92
103
|
color: var(--color-light-text-accent)
|
|
93
104
|
}
|
|
94
105
|
@media (--small-only) {
|
|
95
|
-
.
|
|
106
|
+
.errorWrapper {
|
|
96
107
|
flex: 1 0 100%;
|
|
97
108
|
margin-top: var(--gap-3xs)
|
|
98
109
|
}
|
|
99
110
|
}
|
|
111
|
+
.restore {
|
|
112
|
+
font-size: 14px;
|
|
113
|
+
line-height: 20px;
|
|
114
|
+
font-weight: 400;
|
|
115
|
+
|
|
116
|
+
margin-left: var(--gap-s);
|
|
117
|
+
}
|
|
118
|
+
.spinnerWrapper {
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
width: 24px;
|
|
123
|
+
height: 24px;
|
|
124
|
+
}
|
|
125
|
+
.spinner {
|
|
126
|
+
width: 20px;
|
|
127
|
+
height: 20px;
|
|
128
|
+
}
|
|
129
|
+
.uploadPercent {
|
|
130
|
+
margin-top: var(--gap-2xs);
|
|
131
|
+
margin-left: var(--gap-xl);
|
|
132
|
+
}
|
|
@@ -24,7 +24,7 @@ type FileUploadItemProps = {
|
|
|
24
24
|
*/
|
|
25
25
|
uploadDate?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Ссылка на файл. Если прокидывается этот параметр, то
|
|
27
|
+
* Ссылка на файл. Если прокидывается этот параметр, то появляется кнопка скачивания
|
|
28
28
|
*/
|
|
29
29
|
downloadLink?: string;
|
|
30
30
|
/**
|
|
@@ -6,10 +6,11 @@ import { Spinner } from '../../spinner/esm';
|
|
|
6
6
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
7
7
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
8
|
import { AlertCircleMIcon } from '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
9
|
-
import '@alfalab/icons-glyph';
|
|
9
|
+
import { PointerDownMIcon } from '@alfalab/icons-glyph/PointerDownMIcon';
|
|
10
|
+
import { ClockMIcon } from '@alfalab/icons-glyph';
|
|
10
11
|
import { fileIcon, humanFileSize } from './utils.js';
|
|
11
12
|
|
|
12
|
-
var styles = {"component":"file-upload-
|
|
13
|
+
var styles = {"component":"file-upload-item__component_1x70o","infoSection":"file-upload-item__infoSection_1x70o","info":"file-upload-item__info_1x70o","icon":"file-upload-item__icon_1x70o","errorIcon":"file-upload-item__errorIcon_1x70o","successIcon":"file-upload-item__successIcon_1x70o","name":"file-upload-item__name_1x70o","meta":"file-upload-item__meta_1x70o","size":"file-upload-item__size_1x70o","delete":"file-upload-item__delete_1x70o","download":"file-upload-item__download_1x70o","errorWrapper":"file-upload-item__errorWrapper_1x70o","restore":"file-upload-item__restore_1x70o","spinnerWrapper":"file-upload-item__spinnerWrapper_1x70o","spinner":"file-upload-item__spinner_1x70o","uploadPercent":"file-upload-item__uploadPercent_1x70o"};
|
|
13
14
|
require('./index.css');
|
|
14
15
|
|
|
15
16
|
var FileUploadItem = function (_a) {
|
|
@@ -29,6 +30,9 @@ var FileUploadItem = function (_a) {
|
|
|
29
30
|
onRestore(id);
|
|
30
31
|
}, [id, onRestore]);
|
|
31
32
|
var renderIcon = useCallback(function () {
|
|
33
|
+
if (showRestore) {
|
|
34
|
+
return React.createElement(ClockMIcon, { className: styles.restoreIcon });
|
|
35
|
+
}
|
|
32
36
|
switch (uploadStatus) {
|
|
33
37
|
case 'ERROR':
|
|
34
38
|
return React.createElement(AlertCircleMIcon, { className: styles.errorIcon });
|
|
@@ -36,25 +40,29 @@ var FileUploadItem = function (_a) {
|
|
|
36
40
|
return React.createElement(CheckmarkCircleMIcon, { className: styles.successIcon });
|
|
37
41
|
case 'LOADING':
|
|
38
42
|
case 'UPLOADING':
|
|
39
|
-
return React.createElement(
|
|
43
|
+
return (React.createElement("div", { className: styles.spinnerWrapper },
|
|
44
|
+
React.createElement(Spinner, { visible: true, className: styles.spinner })));
|
|
40
45
|
default: {
|
|
41
46
|
return React.createElement(Icon, { className: styles.icon });
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
|
-
}, [uploadStatus]);
|
|
45
|
-
var
|
|
49
|
+
}, [showRestore, uploadStatus]);
|
|
50
|
+
var renderInfoSection = useCallback(function () { return (React.createElement("div", { className: styles.infoSection },
|
|
51
|
+
React.createElement("div", { className: styles.name }, name),
|
|
52
|
+
uploadStatus === 'ERROR' && error && (React.createElement("div", { className: styles.errorWrapper, role: 'alert' }, error)))); }, [name, uploadStatus, error]);
|
|
46
53
|
var showMeta = !showRestore && (!uploadStatus || uploadStatus === 'SUCCESS');
|
|
54
|
+
var showDownload = Boolean(downloadLink) && !showRestore;
|
|
47
55
|
return (React.createElement("div", { className: cn(className, styles.component, uploadStatus && styles[uploadStatus.toLocaleLowerCase()]), "data-test-id": dataTestId },
|
|
48
56
|
React.createElement("div", { className: styles.info },
|
|
49
57
|
renderIcon(),
|
|
50
|
-
|
|
58
|
+
renderInfoSection(),
|
|
51
59
|
children,
|
|
52
|
-
uploadStatus === 'UPLOADING' && React.createElement("span",
|
|
53
|
-
uploadStatus === 'ERROR' && (React.createElement("span", { className: styles.error, role: 'alert' }, error)),
|
|
60
|
+
uploadStatus === 'UPLOADING' && (React.createElement("span", { className: styles.uploadPercent }, Math.round(uploadPercent) + "%")),
|
|
54
61
|
showMeta && (React.createElement("div", { className: styles.meta },
|
|
55
62
|
uploadDate && React.createElement("span", { key: uploadDate }, uploadDate),
|
|
56
63
|
size && (React.createElement("span", { key: size, className: styles.size }, humanFileSize(size)))))),
|
|
57
64
|
showRestore && (React.createElement(Link, { pseudo: true, className: styles.restore, onClick: handleRestore }, "\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C")),
|
|
65
|
+
showDownload && (React.createElement(IconButton, { size: 'xxs', icon: PointerDownMIcon, className: styles.download, "aria-label": '\u0441\u043A\u0430\u0447\u0430\u0442\u044C', href: downloadLink, onClick: handleDownload, download: download })),
|
|
58
66
|
showDelete && !showRestore && (React.createElement(IconButton, { size: 'xxs', icon: CrossMIcon, onClick: handleDelete, className: styles.delete, "aria-label": '\u0443\u0434\u0430\u043B\u0438\u0442\u044C' }))));
|
|
59
67
|
};
|
|
60
68
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1m858 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -17,84 +17,117 @@
|
|
|
17
17
|
}
|
|
18
18
|
:root {
|
|
19
19
|
--gap-3xs: 2px;
|
|
20
|
+
--gap-2xs: 4px;
|
|
20
21
|
--gap-xs: 8px;
|
|
21
22
|
--gap-s: 12px;
|
|
23
|
+
--gap-xl: 24px;
|
|
22
24
|
}
|
|
23
|
-
.file-upload-
|
|
25
|
+
.file-upload-item__component_1x70o {
|
|
24
26
|
font-size: 13px;
|
|
25
27
|
line-height: 16px;
|
|
26
28
|
font-weight: 400;
|
|
27
29
|
|
|
28
30
|
display: flex;
|
|
29
31
|
width: 100%;
|
|
30
|
-
|
|
31
|
-
border-bottom: 1px solid var(--color-light-border-primary);
|
|
32
|
+
padding: var(--gap-xs);
|
|
32
33
|
color: var(--color-light-text-secondary);
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
box-shadow: 0 -1px 0 0 var(--color-light-border-primary) inset;
|
|
35
|
+
box-sizing: border-box
|
|
35
36
|
}
|
|
36
|
-
.file-upload-
|
|
37
|
+
.file-upload-item__component_1x70o svg {
|
|
37
38
|
display: block;
|
|
38
39
|
}
|
|
39
|
-
.file-upload-
|
|
40
|
+
.file-upload-item__infoSection_1x70o {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
flex: 1;
|
|
44
|
+
margin-top: var(--gap-2xs);
|
|
45
|
+
margin-left: var(--gap-s);
|
|
46
|
+
min-width: 40%;
|
|
47
|
+
}
|
|
48
|
+
.file-upload-item__info_1x70o {
|
|
40
49
|
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
50
|
flex-wrap: wrap;
|
|
43
51
|
flex: 1;
|
|
44
52
|
}
|
|
45
|
-
.file-upload-
|
|
53
|
+
.file-upload-item__icon_1x70o {
|
|
46
54
|
display: block;
|
|
47
55
|
flex-shrink: 0;
|
|
48
56
|
color: var(--color-light-text-primary);
|
|
49
57
|
}
|
|
50
|
-
.file-upload-
|
|
58
|
+
.file-upload-item__errorIcon_1x70o {
|
|
51
59
|
flex-shrink: 0;
|
|
52
60
|
color: var(--color-light-graphic-negative);
|
|
53
61
|
}
|
|
54
|
-
.file-upload-
|
|
62
|
+
.file-upload-item__successIcon_1x70o {
|
|
55
63
|
flex-shrink: 0;
|
|
56
64
|
color: var(--color-light-graphic-positive);
|
|
57
65
|
}
|
|
58
|
-
.file-upload-
|
|
59
|
-
flex: 1;
|
|
60
|
-
margin-left: var(--gap-xs);
|
|
66
|
+
.file-upload-item__name_1x70o {
|
|
61
67
|
white-space: nowrap;
|
|
62
68
|
overflow: hidden;
|
|
63
69
|
text-overflow: ellipsis;
|
|
64
|
-
color: var(--color-light-text-primary)
|
|
65
|
-
min-width: 40%
|
|
70
|
+
color: var(--color-light-text-primary)
|
|
66
71
|
}
|
|
67
|
-
.file-upload-
|
|
72
|
+
.file-upload-item__name_1x70o a {
|
|
68
73
|
display: block;
|
|
69
74
|
margin-bottom: 1px;
|
|
70
75
|
}
|
|
71
|
-
.file-upload-
|
|
76
|
+
.file-upload-item__meta_1x70o {
|
|
72
77
|
display: flex;
|
|
73
78
|
align-items: center;
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
margin-right: var(--gap-2xs);
|
|
81
|
+
margin-left: var(--gap-xl)
|
|
76
82
|
}
|
|
77
|
-
.file-upload-
|
|
83
|
+
.file-upload-item__meta_1x70o > * {
|
|
78
84
|
margin-right: var(--gap-s)
|
|
79
85
|
}
|
|
80
|
-
.file-upload-
|
|
86
|
+
.file-upload-item__meta_1x70o > *:last-child {
|
|
81
87
|
margin-right: 0;
|
|
82
88
|
}
|
|
83
|
-
.file-upload-
|
|
84
|
-
width: 65px;
|
|
89
|
+
.file-upload-item__size_1x70o {
|
|
85
90
|
text-align: right;
|
|
86
91
|
}
|
|
87
|
-
.file-upload-
|
|
92
|
+
.file-upload-item__delete_1x70o,
|
|
93
|
+
.file-upload-item__download_1x70o {
|
|
88
94
|
height: 24px;
|
|
89
95
|
width: 24px;
|
|
90
|
-
margin-left: var(--gap-
|
|
96
|
+
margin-left: var(--gap-xs)
|
|
91
97
|
}
|
|
92
|
-
.file-upload-
|
|
98
|
+
.file-upload-item__delete_1x70o svg, .file-upload-item__download_1x70o svg {
|
|
99
|
+
width: 18px;
|
|
100
|
+
height: 18px;
|
|
101
|
+
}
|
|
102
|
+
.file-upload-item__errorWrapper_1x70o {
|
|
103
|
+
margin-top: var(--gap-s);
|
|
93
104
|
color: var(--color-light-text-accent)
|
|
94
105
|
}
|
|
95
106
|
@media (--small-only) {
|
|
96
|
-
.file-upload-
|
|
107
|
+
.file-upload-item__errorWrapper_1x70o {
|
|
97
108
|
flex: 1 0 100%;
|
|
98
109
|
margin-top: var(--gap-3xs)
|
|
99
110
|
}
|
|
100
111
|
}
|
|
112
|
+
.file-upload-item__restore_1x70o {
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
line-height: 20px;
|
|
115
|
+
font-weight: 400;
|
|
116
|
+
|
|
117
|
+
margin-left: var(--gap-s);
|
|
118
|
+
}
|
|
119
|
+
.file-upload-item__spinnerWrapper_1x70o {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
width: 24px;
|
|
124
|
+
height: 24px;
|
|
125
|
+
}
|
|
126
|
+
.file-upload-item__spinner_1x70o {
|
|
127
|
+
width: 20px;
|
|
128
|
+
height: 20px;
|
|
129
|
+
}
|
|
130
|
+
.file-upload-item__uploadPercent_1x70o {
|
|
131
|
+
margin-top: var(--gap-2xs);
|
|
132
|
+
margin-left: var(--gap-xl);
|
|
133
|
+
}
|
|
@@ -6,6 +6,7 @@ import '../../spinner/esm';
|
|
|
6
6
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
7
7
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
8
|
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
9
10
|
import '@alfalab/icons-glyph';
|
|
10
11
|
import './utils.js';
|
|
11
12
|
export { FileUploadItem } from './Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1m858 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -17,84 +17,117 @@
|
|
|
17
17
|
}
|
|
18
18
|
:root {
|
|
19
19
|
--gap-3xs: 2px;
|
|
20
|
+
--gap-2xs: 4px;
|
|
20
21
|
--gap-xs: 8px;
|
|
21
22
|
--gap-s: 12px;
|
|
23
|
+
--gap-xl: 24px;
|
|
22
24
|
}
|
|
23
|
-
.file-upload-
|
|
25
|
+
.file-upload-item__component_1x70o {
|
|
24
26
|
font-size: 13px;
|
|
25
27
|
line-height: 16px;
|
|
26
28
|
font-weight: 400;
|
|
27
29
|
|
|
28
30
|
display: flex;
|
|
29
31
|
width: 100%;
|
|
30
|
-
|
|
31
|
-
border-bottom: 1px solid var(--color-light-border-primary);
|
|
32
|
+
padding: var(--gap-xs);
|
|
32
33
|
color: var(--color-light-text-secondary);
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
box-shadow: 0 -1px 0 0 var(--color-light-border-primary) inset;
|
|
35
|
+
box-sizing: border-box
|
|
35
36
|
}
|
|
36
|
-
.file-upload-
|
|
37
|
+
.file-upload-item__component_1x70o svg {
|
|
37
38
|
display: block;
|
|
38
39
|
}
|
|
39
|
-
.file-upload-
|
|
40
|
+
.file-upload-item__infoSection_1x70o {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
flex: 1;
|
|
44
|
+
margin-top: var(--gap-2xs);
|
|
45
|
+
margin-left: var(--gap-s);
|
|
46
|
+
min-width: 40%;
|
|
47
|
+
}
|
|
48
|
+
.file-upload-item__info_1x70o {
|
|
40
49
|
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
50
|
flex-wrap: wrap;
|
|
43
51
|
flex: 1;
|
|
44
52
|
}
|
|
45
|
-
.file-upload-
|
|
53
|
+
.file-upload-item__icon_1x70o {
|
|
46
54
|
display: block;
|
|
47
55
|
flex-shrink: 0;
|
|
48
56
|
color: var(--color-light-text-primary);
|
|
49
57
|
}
|
|
50
|
-
.file-upload-
|
|
58
|
+
.file-upload-item__errorIcon_1x70o {
|
|
51
59
|
flex-shrink: 0;
|
|
52
60
|
color: var(--color-light-graphic-negative);
|
|
53
61
|
}
|
|
54
|
-
.file-upload-
|
|
62
|
+
.file-upload-item__successIcon_1x70o {
|
|
55
63
|
flex-shrink: 0;
|
|
56
64
|
color: var(--color-light-graphic-positive);
|
|
57
65
|
}
|
|
58
|
-
.file-upload-
|
|
59
|
-
flex: 1;
|
|
60
|
-
margin-left: var(--gap-xs);
|
|
66
|
+
.file-upload-item__name_1x70o {
|
|
61
67
|
white-space: nowrap;
|
|
62
68
|
overflow: hidden;
|
|
63
69
|
text-overflow: ellipsis;
|
|
64
|
-
color: var(--color-light-text-primary)
|
|
65
|
-
min-width: 40%
|
|
70
|
+
color: var(--color-light-text-primary)
|
|
66
71
|
}
|
|
67
|
-
.file-upload-
|
|
72
|
+
.file-upload-item__name_1x70o a {
|
|
68
73
|
display: block;
|
|
69
74
|
margin-bottom: 1px;
|
|
70
75
|
}
|
|
71
|
-
.file-upload-
|
|
76
|
+
.file-upload-item__meta_1x70o {
|
|
72
77
|
display: flex;
|
|
73
78
|
align-items: center;
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
margin-right: var(--gap-2xs);
|
|
81
|
+
margin-left: var(--gap-xl)
|
|
76
82
|
}
|
|
77
|
-
.file-upload-
|
|
83
|
+
.file-upload-item__meta_1x70o > * {
|
|
78
84
|
margin-right: var(--gap-s)
|
|
79
85
|
}
|
|
80
|
-
.file-upload-
|
|
86
|
+
.file-upload-item__meta_1x70o > *:last-child {
|
|
81
87
|
margin-right: 0;
|
|
82
88
|
}
|
|
83
|
-
.file-upload-
|
|
84
|
-
width: 65px;
|
|
89
|
+
.file-upload-item__size_1x70o {
|
|
85
90
|
text-align: right;
|
|
86
91
|
}
|
|
87
|
-
.file-upload-
|
|
92
|
+
.file-upload-item__delete_1x70o,
|
|
93
|
+
.file-upload-item__download_1x70o {
|
|
88
94
|
height: 24px;
|
|
89
95
|
width: 24px;
|
|
90
|
-
margin-left: var(--gap-
|
|
96
|
+
margin-left: var(--gap-xs)
|
|
91
97
|
}
|
|
92
|
-
.file-upload-
|
|
98
|
+
.file-upload-item__delete_1x70o svg, .file-upload-item__download_1x70o svg {
|
|
99
|
+
width: 18px;
|
|
100
|
+
height: 18px;
|
|
101
|
+
}
|
|
102
|
+
.file-upload-item__errorWrapper_1x70o {
|
|
103
|
+
margin-top: var(--gap-s);
|
|
93
104
|
color: var(--color-light-text-accent)
|
|
94
105
|
}
|
|
95
106
|
@media (--small-only) {
|
|
96
|
-
.file-upload-
|
|
107
|
+
.file-upload-item__errorWrapper_1x70o {
|
|
97
108
|
flex: 1 0 100%;
|
|
98
109
|
margin-top: var(--gap-3xs)
|
|
99
110
|
}
|
|
100
111
|
}
|
|
112
|
+
.file-upload-item__restore_1x70o {
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
line-height: 20px;
|
|
115
|
+
font-weight: 400;
|
|
116
|
+
|
|
117
|
+
margin-left: var(--gap-s);
|
|
118
|
+
}
|
|
119
|
+
.file-upload-item__spinnerWrapper_1x70o {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
width: 24px;
|
|
124
|
+
height: 24px;
|
|
125
|
+
}
|
|
126
|
+
.file-upload-item__spinner_1x70o {
|
|
127
|
+
width: 20px;
|
|
128
|
+
height: 20px;
|
|
129
|
+
}
|
|
130
|
+
.file-upload-item__uploadPercent_1x70o {
|
|
131
|
+
margin-top: var(--gap-2xs);
|
|
132
|
+
margin-left: var(--gap-xl);
|
|
133
|
+
}
|
|
@@ -8,6 +8,7 @@ require('../spinner');
|
|
|
8
8
|
require('@alfalab/icons-glyph/CrossMIcon');
|
|
9
9
|
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
10
10
|
require('@alfalab/icons-glyph/AlertCircleMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/PointerDownMIcon');
|
|
11
12
|
require('@alfalab/icons-glyph');
|
|
12
13
|
require('./utils.js');
|
|
13
14
|
var Component = require('./Component.js');
|
|
@@ -24,7 +24,7 @@ type FileUploadItemProps = {
|
|
|
24
24
|
*/
|
|
25
25
|
uploadDate?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Ссылка на файл. Если прокидывается этот параметр, то
|
|
27
|
+
* Ссылка на файл. Если прокидывается этот параметр, то появляется кнопка скачивания
|
|
28
28
|
*/
|
|
29
29
|
downloadLink?: string;
|
|
30
30
|
/**
|
|
@@ -3,13 +3,14 @@ import cn from 'classnames';
|
|
|
3
3
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
4
4
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
5
5
|
import { AlertCircleMIcon } from '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
6
|
-
import '@alfalab/icons-glyph';
|
|
6
|
+
import { PointerDownMIcon } from '@alfalab/icons-glyph/PointerDownMIcon';
|
|
7
|
+
import { ClockMIcon } from '@alfalab/icons-glyph';
|
|
7
8
|
import { IconButton } from '../../icon-button/modern';
|
|
8
9
|
import { Link } from '../../link/modern';
|
|
9
10
|
import { Spinner } from '../../spinner/modern';
|
|
10
11
|
import { fileIcon, humanFileSize } from './utils.js';
|
|
11
12
|
|
|
12
|
-
var styles = {"component":"file-upload-
|
|
13
|
+
var styles = {"component":"file-upload-item__component_1x70o","infoSection":"file-upload-item__infoSection_1x70o","info":"file-upload-item__info_1x70o","icon":"file-upload-item__icon_1x70o","errorIcon":"file-upload-item__errorIcon_1x70o","successIcon":"file-upload-item__successIcon_1x70o","name":"file-upload-item__name_1x70o","meta":"file-upload-item__meta_1x70o","size":"file-upload-item__size_1x70o","delete":"file-upload-item__delete_1x70o","download":"file-upload-item__download_1x70o","errorWrapper":"file-upload-item__errorWrapper_1x70o","restore":"file-upload-item__restore_1x70o","spinnerWrapper":"file-upload-item__spinnerWrapper_1x70o","spinner":"file-upload-item__spinner_1x70o","uploadPercent":"file-upload-item__uploadPercent_1x70o"};
|
|
13
14
|
require('./index.css');
|
|
14
15
|
|
|
15
16
|
const FileUploadItem = ({ className, children, id = '0', name = '', size, icon: Icon = fileIcon(name), uploadDate, downloadLink, download, uploadStatus, uploadPercent = 0, error = uploadStatus === 'ERROR' ? 'Не удалось загрузить файл' : undefined, showDelete, showRestore, onDelete, onDownload, onRestore, dataTestId, }) => {
|
|
@@ -28,6 +29,9 @@ const FileUploadItem = ({ className, children, id = '0', name = '', size, icon:
|
|
|
28
29
|
onRestore(id);
|
|
29
30
|
}, [id, onRestore]);
|
|
30
31
|
const renderIcon = useCallback(() => {
|
|
32
|
+
if (showRestore) {
|
|
33
|
+
return React.createElement(ClockMIcon, { className: styles.restoreIcon });
|
|
34
|
+
}
|
|
31
35
|
switch (uploadStatus) {
|
|
32
36
|
case 'ERROR':
|
|
33
37
|
return React.createElement(AlertCircleMIcon, { className: styles.errorIcon });
|
|
@@ -35,25 +39,29 @@ const FileUploadItem = ({ className, children, id = '0', name = '', size, icon:
|
|
|
35
39
|
return React.createElement(CheckmarkCircleMIcon, { className: styles.successIcon });
|
|
36
40
|
case 'LOADING':
|
|
37
41
|
case 'UPLOADING':
|
|
38
|
-
return React.createElement(
|
|
42
|
+
return (React.createElement("div", { className: styles.spinnerWrapper },
|
|
43
|
+
React.createElement(Spinner, { visible: true, className: styles.spinner })));
|
|
39
44
|
default: {
|
|
40
45
|
return React.createElement(Icon, { className: styles.icon });
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
|
-
}, [uploadStatus]);
|
|
44
|
-
const
|
|
48
|
+
}, [showRestore, uploadStatus]);
|
|
49
|
+
const renderInfoSection = useCallback(() => (React.createElement("div", { className: styles.infoSection },
|
|
50
|
+
React.createElement("div", { className: styles.name }, name),
|
|
51
|
+
uploadStatus === 'ERROR' && error && (React.createElement("div", { className: styles.errorWrapper, role: 'alert' }, error)))), [name, uploadStatus, error]);
|
|
45
52
|
const showMeta = !showRestore && (!uploadStatus || uploadStatus === 'SUCCESS');
|
|
53
|
+
const showDownload = Boolean(downloadLink) && !showRestore;
|
|
46
54
|
return (React.createElement("div", { className: cn(className, styles.component, uploadStatus && styles[uploadStatus.toLocaleLowerCase()]), "data-test-id": dataTestId },
|
|
47
55
|
React.createElement("div", { className: styles.info },
|
|
48
56
|
renderIcon(),
|
|
49
|
-
|
|
57
|
+
renderInfoSection(),
|
|
50
58
|
children,
|
|
51
|
-
uploadStatus === 'UPLOADING' && React.createElement("span",
|
|
52
|
-
uploadStatus === 'ERROR' && (React.createElement("span", { className: styles.error, role: 'alert' }, error)),
|
|
59
|
+
uploadStatus === 'UPLOADING' && (React.createElement("span", { className: styles.uploadPercent }, `${Math.round(uploadPercent)}%`)),
|
|
53
60
|
showMeta && (React.createElement("div", { className: styles.meta },
|
|
54
61
|
uploadDate && React.createElement("span", { key: uploadDate }, uploadDate),
|
|
55
62
|
size && (React.createElement("span", { key: size, className: styles.size }, humanFileSize(size)))))),
|
|
56
63
|
showRestore && (React.createElement(Link, { pseudo: true, className: styles.restore, onClick: handleRestore }, "\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C")),
|
|
64
|
+
showDownload && (React.createElement(IconButton, { size: 'xxs', icon: PointerDownMIcon, className: styles.download, "aria-label": '\u0441\u043A\u0430\u0447\u0430\u0442\u044C', href: downloadLink, onClick: handleDownload, download: download })),
|
|
57
65
|
showDelete && !showRestore && (React.createElement(IconButton, { size: 'xxs', icon: CrossMIcon, onClick: handleDelete, className: styles.delete, "aria-label": '\u0443\u0434\u0430\u043B\u0438\u0442\u044C' }))));
|
|
58
66
|
};
|
|
59
67
|
|