@alfalab/core-components 45.3.0-beta.1 → 45.4.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/button/components/base-button/Component.js +8 -9
- package/button/components/base-button/default.css +56 -24
- package/button/components/base-button/index.css +30 -6
- package/button/components/base-button/inverted.css +64 -21
- package/button/cssm/components/base-button/Component.js +5 -6
- package/button/cssm/components/base-button/default.module.css +56 -24
- package/button/cssm/components/base-button/index.module.css +30 -6
- package/button/cssm/components/base-button/inverted.module.css +64 -21
- package/button/cssm/desktop/default.desktop.module.css +34 -0
- package/button/cssm/desktop/desktop.module.css +20 -0
- package/button/cssm/desktop/inverted.desktop.module.css +36 -0
- package/button/cssm/mobile/default.mobile.module.css +34 -0
- package/button/cssm/mobile/inverted.mobile.module.css +36 -0
- package/button/cssm/mobile/mobile.module.css +20 -0
- package/button/cssm/typings.d.ts +1 -1
- package/button/cssm/vars.css +20 -0
- package/button/desktop/Component.desktop.js +2 -2
- package/button/desktop/default.desktop.css +34 -0
- package/button/desktop/desktop.css +20 -0
- package/button/desktop/inverted.desktop.css +36 -0
- package/button/esm/components/base-button/Component.js +8 -9
- package/button/esm/components/base-button/default.css +56 -24
- package/button/esm/components/base-button/index.css +30 -6
- package/button/esm/components/base-button/inverted.css +64 -21
- package/button/esm/desktop/Component.desktop.js +2 -2
- package/button/esm/desktop/default.desktop.css +34 -0
- package/button/esm/desktop/desktop.css +20 -0
- package/button/esm/desktop/inverted.desktop.css +36 -0
- package/button/esm/mobile/Component.mobile.js +2 -2
- package/button/esm/mobile/default.mobile.css +34 -0
- package/button/esm/mobile/inverted.mobile.css +36 -0
- package/button/esm/mobile/mobile.css +20 -0
- package/button/esm/typings.d.ts +1 -1
- package/button/mobile/Component.mobile.js +2 -2
- package/button/mobile/default.mobile.css +34 -0
- package/button/mobile/inverted.mobile.css +36 -0
- package/button/mobile/mobile.css +20 -0
- package/button/modern/components/base-button/Component.js +8 -9
- package/button/modern/components/base-button/default.css +56 -24
- package/button/modern/components/base-button/index.css +30 -6
- package/button/modern/components/base-button/inverted.css +64 -21
- package/button/modern/desktop/Component.desktop.js +2 -2
- package/button/modern/desktop/default.desktop.css +34 -0
- package/button/modern/desktop/desktop.css +20 -0
- package/button/modern/desktop/inverted.desktop.css +36 -0
- package/button/modern/mobile/Component.mobile.js +2 -2
- package/button/modern/mobile/default.mobile.css +34 -0
- package/button/modern/mobile/inverted.mobile.css +36 -0
- package/button/modern/mobile/mobile.css +20 -0
- package/button/modern/typings.d.ts +1 -1
- package/button/typings.d.ts +1 -1
- package/calendar/components/calendar-mobile/Component.js +14 -2
- package/calendar/components/days-table/Component.js +1 -1
- package/calendar/components/period-slider/Component.js +2 -2
- package/calendar/components/period-slider/utils.js +8 -0
- package/calendar/components/select-button/Component.js +1 -1
- package/calendar/cssm/components/calendar-mobile/Component.js +14 -2
- package/calendar/cssm/components/days-table/Component.js +1 -1
- package/calendar/cssm/components/period-slider/Component.js +2 -2
- package/calendar/cssm/components/period-slider/utils.js +8 -0
- package/calendar/cssm/components/select-button/Component.js +1 -1
- package/calendar/cssm/desktop/Component.desktop.js +1 -0
- package/calendar/desktop/Component.desktop.js +1 -0
- package/calendar/esm/Component.responsive.js +1 -0
- package/calendar/esm/components/calendar-mobile/Component.js +15 -2
- package/calendar/esm/components/calendar-mobile/index.js +1 -0
- package/calendar/esm/components/days-table/Component.js +1 -1
- package/calendar/esm/components/period-slider/Component.js +3 -2
- package/calendar/esm/components/period-slider/index.js +1 -0
- package/calendar/esm/components/period-slider/utils.js +7 -0
- package/calendar/esm/components/select-button/Component.js +1 -1
- package/calendar/esm/desktop/Component.desktop.js +1 -0
- package/calendar/esm/desktop/index.js +1 -0
- package/calendar/esm/index.js +1 -0
- package/calendar/esm/mobile/index.js +1 -0
- package/calendar/modern/Component.responsive.js +1 -0
- package/calendar/modern/components/calendar-mobile/Component.js +15 -2
- package/calendar/modern/components/calendar-mobile/index.js +1 -0
- package/calendar/modern/components/days-table/Component.js +1 -1
- package/calendar/modern/components/period-slider/Component.js +3 -2
- package/calendar/modern/components/period-slider/index.js +1 -0
- package/calendar/modern/components/period-slider/utils.js +7 -0
- package/calendar/modern/components/select-button/Component.js +1 -1
- package/calendar/modern/desktop/Component.desktop.js +1 -0
- package/calendar/modern/desktop/index.js +1 -0
- package/calendar/modern/index.js +1 -0
- package/calendar/modern/mobile/index.js +1 -0
- package/calendar-range/utils.js +3 -1
- package/confirmation/components/screens/initial/component.js +2 -2
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/cssm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +2 -2
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +2 -2
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/file-upload-item/Component.d.ts +4 -0
- package/file-upload-item/Component.js +4 -3
- package/file-upload-item/cssm/Component.d.ts +4 -0
- package/file-upload-item/cssm/Component.js +3 -2
- package/file-upload-item/cssm/index.module.css +8 -3
- package/file-upload-item/esm/Component.d.ts +4 -0
- package/file-upload-item/esm/Component.js +4 -3
- package/file-upload-item/esm/index.css +8 -3
- package/file-upload-item/index.css +8 -3
- package/file-upload-item/modern/Component.d.ts +4 -0
- package/file-upload-item/modern/Component.js +3 -3
- package/file-upload-item/modern/index.css +8 -3
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- 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.js +1 -1
- package/gallery/esm/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/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- 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 +2 -2
- package/gallery/modern/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.js +1 -1
- package/gallery/modern/index.js +2 -2
- package/icon-button/Component.js +1 -1
- package/icon-button/cssm/Component.js +1 -1
- package/icon-button/esm/Component.js +1 -1
- package/icon-button/modern/Component.js +1 -1
- package/input/components/clear-button/Component.js +1 -1
- package/input/cssm/components/clear-button/Component.js +1 -1
- package/input/esm/components/clear-button/Component.js +1 -1
- package/input/modern/components/clear-button/Component.js +1 -1
- package/international-phone-input/{cssm/Component-61e2321e.d.ts → Component-6d57839f.d.ts} +1 -1
- package/international-phone-input/Component.responsive-8566963f.d.ts +2 -2
- package/international-phone-input/{modern/Component-61e2321e.d.ts → cssm/Component-6d57839f.d.ts} +1 -1
- package/international-phone-input/cssm/Component.responsive-8566963f.d.ts +2 -2
- package/international-phone-input/cssm/data/country-data.js +225 -211
- package/international-phone-input/cssm/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/international-phone-input/cssm/index-8566963f.d.ts +2 -2
- package/international-phone-input/cssm/{typings-61e2321e.d.ts → typings-6d57839f.d.ts} +1 -1
- package/international-phone-input/cssm/typings-70284312.d.ts +1 -1
- package/international-phone-input/data/country-data.js +225 -211
- package/international-phone-input/esm/{Component-61e2321e.d.ts → Component-6d57839f.d.ts} +1 -1
- package/international-phone-input/esm/Component.responsive-8566963f.d.ts +2 -2
- package/international-phone-input/esm/data/country-data.js +225 -211
- package/international-phone-input/esm/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/international-phone-input/esm/index-8566963f.d.ts +2 -2
- package/international-phone-input/{modern/typings-61e2321e.d.ts → esm/typings-6d57839f.d.ts} +1 -1
- package/international-phone-input/esm/typings-70284312.d.ts +1 -1
- package/international-phone-input/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/international-phone-input/index-8566963f.d.ts +2 -2
- package/international-phone-input/{Component-61e2321e.d.ts → modern/Component-6d57839f.d.ts} +1 -1
- package/international-phone-input/modern/Component.responsive-8566963f.d.ts +2 -2
- package/international-phone-input/modern/data/country-data.js +225 -211
- package/international-phone-input/modern/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/international-phone-input/modern/index-8566963f.d.ts +2 -2
- package/international-phone-input/{esm/typings-61e2321e.d.ts → modern/typings-6d57839f.d.ts} +1 -1
- package/international-phone-input/modern/typings-70284312.d.ts +1 -1
- package/international-phone-input/{typings-61e2321e.d.ts → typings-6d57839f.d.ts} +1 -1
- package/international-phone-input/typings-70284312.d.ts +1 -1
- package/link/cssm/default.module.css +12 -6
- package/link/cssm/index.module.css +5 -2
- package/link/cssm/inverted.module.css +12 -6
- package/link/default.css +12 -6
- package/link/esm/default.css +12 -6
- package/link/esm/index.css +5 -2
- package/link/esm/inverted.css +12 -6
- package/link/index.css +5 -2
- package/link/inverted.css +12 -6
- package/link/modern/default.css +12 -6
- package/link/modern/index.css +5 -2
- package/link/modern/inverted.css +12 -6
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/esm/Component.responsive.js +1 -1
- package/modal/esm/components/controls/Component.js +1 -1
- package/modal/esm/components/controls/index.js +1 -1
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/desktop/Component.desktop.js +1 -1
- package/modal/esm/desktop/index.js +1 -1
- package/modal/esm/index.js +1 -1
- package/modal/esm/mobile/Component.mobile.js +1 -1
- package/modal/esm/mobile/index.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/controls/Component.js +1 -1
- package/modal/modern/components/controls/index.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/desktop/Component.desktop.js +1 -1
- package/modal/modern/desktop/index.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile/Component.mobile.js +1 -1
- package/modal/modern/mobile/index.js +1 -1
- package/navigation-bar/components/back-arrow-addon/Component.js +1 -1
- package/navigation-bar/cssm/components/back-arrow-addon/Component.js +1 -1
- package/navigation-bar/esm/components/back-arrow-addon/Component.js +1 -1
- package/navigation-bar/modern/components/back-arrow-addon/Component.js +1 -1
- package/package.json +1 -1
- package/pass-code/components/KeyPad/Component.js +1 -1
- package/pass-code/cssm/components/KeyPad/Component.js +1 -1
- package/pass-code/esm/components/KeyPad/Component.js +1 -1
- package/pass-code/modern/components/KeyPad/Component.js +1 -1
- package/pattern-lock/components/base-pattern-lock/Component.js +1 -1
- package/pattern-lock/cssm/components/base-pattern-lock/Component.js +1 -1
- package/pattern-lock/esm/components/base-pattern-lock/Component.js +1 -1
- package/pattern-lock/modern/components/base-pattern-lock/Component.js +1 -1
- package/picker-button/Component-c44170fe.d.ts +1 -1
- package/pure-cell/{component-fd7196d2.d.ts → component-9cd60393.d.ts} +6 -6
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/addon/component.js +1 -1
- package/pure-cell/components/addon/index.d.ts +1 -1
- package/pure-cell/components/addon/index.js +1 -1
- package/pure-cell/components/amount/component.js +1 -1
- package/pure-cell/components/amount/index.d.ts +1 -1
- package/pure-cell/components/amount/index.js +1 -1
- package/pure-cell/components/amount-title/component.js +1 -1
- package/pure-cell/components/amount-title/index.d.ts +1 -1
- package/pure-cell/components/amount-title/index.js +1 -1
- package/pure-cell/components/category/component.js +1 -1
- package/pure-cell/components/category/index.d.ts +1 -1
- package/pure-cell/components/category/index.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/footer/component.js +1 -1
- package/pure-cell/components/footer/index.d.ts +1 -1
- package/pure-cell/components/footer/index.js +1 -1
- package/pure-cell/components/footer-button/component.js +1 -1
- package/pure-cell/components/footer-button/index.d.ts +1 -1
- package/pure-cell/components/footer-button/index.js +1 -1
- package/pure-cell/components/footer-text/component.js +1 -1
- package/pure-cell/components/footer-text/index.d.ts +1 -1
- package/pure-cell/components/footer-text/index.js +1 -1
- package/pure-cell/components/graphics/component.js +1 -1
- package/pure-cell/components/graphics/index.d.ts +1 -1
- package/pure-cell/components/graphics/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/cssm/{component-fd7196d2.d.ts → component-9cd60393.d.ts} +6 -6
- package/pure-cell/cssm/index.d.ts +2 -1
- package/pure-cell/esm/{component-fd7196d2.d.ts → component-9cd60393.d.ts} +6 -6
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/addon/component.js +1 -1
- package/pure-cell/esm/components/addon/index.d.ts +1 -1
- package/pure-cell/esm/components/addon/index.js +1 -1
- package/pure-cell/esm/components/amount/component.js +1 -1
- package/pure-cell/esm/components/amount/index.d.ts +1 -1
- package/pure-cell/esm/components/amount/index.js +1 -1
- package/pure-cell/esm/components/amount-title/component.js +1 -1
- package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
- package/pure-cell/esm/components/amount-title/index.js +1 -1
- package/pure-cell/esm/components/category/component.js +1 -1
- package/pure-cell/esm/components/category/index.d.ts +1 -1
- package/pure-cell/esm/components/category/index.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/footer/component.js +1 -1
- package/pure-cell/esm/components/footer/index.d.ts +1 -1
- package/pure-cell/esm/components/footer/index.js +1 -1
- package/pure-cell/esm/components/footer-button/component.js +1 -1
- package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-button/index.js +1 -1
- package/pure-cell/esm/components/footer-text/component.js +1 -1
- package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-text/index.js +1 -1
- package/pure-cell/esm/components/graphics/component.js +1 -1
- package/pure-cell/esm/components/graphics/index.d.ts +1 -1
- package/pure-cell/esm/components/graphics/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.d.ts +2 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.d.ts +2 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/{component-fd7196d2.d.ts → component-9cd60393.d.ts} +6 -6
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/addon/component.js +1 -1
- package/pure-cell/modern/components/addon/index.d.ts +1 -1
- package/pure-cell/modern/components/addon/index.js +1 -1
- package/pure-cell/modern/components/amount/component.js +1 -1
- package/pure-cell/modern/components/amount/index.d.ts +1 -1
- package/pure-cell/modern/components/amount/index.js +1 -1
- package/pure-cell/modern/components/amount-title/component.js +1 -1
- package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
- package/pure-cell/modern/components/amount-title/index.js +1 -1
- package/pure-cell/modern/components/category/component.js +1 -1
- package/pure-cell/modern/components/category/index.d.ts +1 -1
- package/pure-cell/modern/components/category/index.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/footer/component.js +1 -1
- package/pure-cell/modern/components/footer/index.d.ts +1 -1
- package/pure-cell/modern/components/footer/index.js +1 -1
- package/pure-cell/modern/components/footer-button/component.js +1 -1
- package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-button/index.js +1 -1
- package/pure-cell/modern/components/footer-text/component.js +1 -1
- package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-text/index.js +1 -1
- package/pure-cell/modern/components/graphics/component.js +1 -1
- package/pure-cell/modern/components/graphics/index.d.ts +1 -1
- package/pure-cell/modern/components/graphics/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.d.ts +2 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/components/base-select/mobile.css +2 -2
- package/select/cssm/components/base-select/mobile.module.css +2 -2
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/components/base-select/mobile.css +2 -2
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/esm/shared/index.js +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/components/base-select/mobile.css +2 -2
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.js +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/modern/shared/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/side-panel/components/controls/Component.js +1 -1
- package/side-panel/components/footer/Component.js +1 -1
- package/side-panel/esm/Component.responsive.js +1 -1
- package/side-panel/esm/components/controls/Component.js +1 -1
- package/side-panel/esm/components/controls/index.js +1 -1
- package/side-panel/esm/components/footer/Component.desktop.js +1 -1
- package/side-panel/esm/components/footer/Component.js +1 -1
- package/side-panel/esm/components/footer/Component.mobile.js +1 -1
- package/side-panel/esm/desktop/Component.desktop.js +1 -1
- package/side-panel/esm/desktop/index.js +1 -1
- package/side-panel/esm/index.js +1 -1
- package/side-panel/esm/mobile/Component.mobile.js +1 -1
- package/side-panel/esm/mobile/index.js +1 -1
- package/side-panel/modern/Component.responsive.js +1 -1
- package/side-panel/modern/components/controls/Component.js +1 -1
- package/side-panel/modern/components/controls/index.js +1 -1
- package/side-panel/modern/components/footer/Component.desktop.js +1 -1
- package/side-panel/modern/components/footer/Component.js +1 -1
- package/side-panel/modern/components/footer/Component.mobile.js +1 -1
- package/side-panel/modern/desktop/Component.desktop.js +1 -1
- package/side-panel/modern/desktop/index.js +1 -1
- package/side-panel/modern/index.js +1 -1
- package/side-panel/modern/mobile/Component.mobile.js +1 -1
- package/side-panel/modern/mobile/index.js +1 -1
- package/table/components/pagination/select-field/index.js +1 -1
- package/table/cssm/components/pagination/select-field/index.js +1 -1
- package/table/esm/components/pagination/select-field/index.js +1 -1
- package/table/modern/components/pagination/select-field/index.js +1 -1
- package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/cssm/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +48 -33
- package/universal-date-input/Component-6d57839f.d.ts +47 -0
- package/universal-date-input/Component.responsive-71043c62.d.ts +1 -1
- package/universal-date-input/cssm/Component-6d57839f.d.ts +47 -0
- package/universal-date-input/cssm/Component.responsive-71043c62.d.ts +1 -1
- package/universal-date-input/cssm/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/universal-date-input/cssm/index-71043c62.d.ts +2 -2
- package/universal-date-input/cssm/index-f034f741.d.ts +1 -1
- package/universal-date-input/cssm/typings-6d57839f.d.ts +114 -0
- package/universal-date-input/esm/Component-6d57839f.d.ts +47 -0
- package/universal-date-input/esm/Component.responsive-71043c62.d.ts +1 -1
- package/universal-date-input/esm/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/universal-date-input/esm/index-71043c62.d.ts +2 -2
- package/universal-date-input/esm/index-f034f741.d.ts +1 -1
- package/universal-date-input/esm/typings-6d57839f.d.ts +114 -0
- package/universal-date-input/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/universal-date-input/index-71043c62.d.ts +2 -2
- package/universal-date-input/index-f034f741.d.ts +1 -1
- package/universal-date-input/modern/Component-6d57839f.d.ts +47 -0
- package/universal-date-input/modern/Component.responsive-71043c62.d.ts +1 -1
- package/universal-date-input/modern/{index-61e2321e.d.ts → index-6d57839f.d.ts} +1 -1
- package/universal-date-input/modern/index-71043c62.d.ts +2 -2
- package/universal-date-input/modern/index-f034f741.d.ts +1 -1
- package/universal-date-input/modern/typings-6d57839f.d.ts +114 -0
- package/universal-date-input/typings-6d57839f.d.ts +114 -0
- package/universal-date-input/Component-61e2321e.d.ts +0 -47
- package/universal-date-input/cssm/Component-61e2321e.d.ts +0 -47
- package/universal-date-input/cssm/typings-61e2321e.d.ts +0 -114
- package/universal-date-input/esm/Component-61e2321e.d.ts +0 -47
- package/universal-date-input/esm/typings-61e2321e.d.ts +0 -114
- package/universal-date-input/modern/Component-61e2321e.d.ts +0 -47
- package/universal-date-input/modern/typings-61e2321e.d.ts +0 -114
- package/universal-date-input/typings-61e2321e.d.ts +0 -114
- /package/confirmation/{countdown-section-f0928054.d.ts → countdown-section-c7b95621.d.ts} +0 -0
- /package/confirmation/{countdown-section-f0928054.js → countdown-section-c7b95621.js} +0 -0
- /package/confirmation/esm/{countdown-section-9f6a0e69.d.ts → countdown-section-b0eafcff.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-9f6a0e69.js → countdown-section-b0eafcff.js} +0 -0
- /package/confirmation/modern/{countdown-section-bf3d2d78.d.ts → countdown-section-0eefd440.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-bf3d2d78.js → countdown-section-0eefd440.js} +0 -0
- /package/gallery/{buttons-1c0cdc14.d.ts → buttons-18e23a2f.d.ts} +0 -0
- /package/gallery/{buttons-1c0cdc14.js → buttons-18e23a2f.js} +0 -0
- /package/gallery/esm/{buttons-7e925cf3.d.ts → buttons-fd4c2149.d.ts} +0 -0
- /package/gallery/esm/{buttons-7e925cf3.js → buttons-fd4c2149.js} +0 -0
- /package/gallery/esm/{slide-3feace8e.d.ts → slide-cf9447e4.d.ts} +0 -0
- /package/gallery/esm/{slide-3feace8e.js → slide-cf9447e4.js} +0 -0
- /package/gallery/modern/{buttons-d84b4f9a.d.ts → buttons-d3be09c1.d.ts} +0 -0
- /package/gallery/modern/{buttons-d84b4f9a.js → buttons-d3be09c1.js} +0 -0
- /package/gallery/modern/{slide-c6df0579.d.ts → slide-e2f7f858.d.ts} +0 -0
- /package/gallery/modern/{slide-c6df0579.js → slide-e2f7f858.js} +0 -0
- /package/gallery/{slide-535aa79e.d.ts → slide-f2e3c7bf.d.ts} +0 -0
- /package/gallery/{slide-535aa79e.js → slide-f2e3c7bf.js} +0 -0
- /package/modal/esm/{layout.module-7fed901a.js → layout.module-a1fa9754.js} +0 -0
- /package/modal/{layout.module-19c570e6.js → layout.module-fe843796.js} +0 -0
- /package/modal/modern/{layout.module-c12b8ceb.js → layout.module-6ffd48ba.js} +0 -0
- /package/pure-cell/{component-62687ca9.d.ts → component-49e6db18.d.ts} +0 -0
- /package/pure-cell/{component-62687ca9.js → component-49e6db18.js} +0 -0
- /package/pure-cell/esm/{component-a3078d37.d.ts → component-5eb318e0.d.ts} +0 -0
- /package/pure-cell/esm/{component-a3078d37.js → component-5eb318e0.js} +0 -0
- /package/pure-cell/modern/{component-2b59df70.d.ts → component-d1c071aa.d.ts} +0 -0
- /package/pure-cell/modern/{component-2b59df70.js → component-d1c071aa.js} +0 -0
- /package/select/esm/{hook-47802ae2.d.ts → hook-db3bacf5.d.ts} +0 -0
- /package/select/esm/{hook-47802ae2.js → hook-db3bacf5.js} +0 -0
- /package/select/{hook-1b6b8f9e.d.ts → hook-4d7077f8.d.ts} +0 -0
- /package/select/{hook-1b6b8f9e.js → hook-4d7077f8.js} +0 -0
- /package/select/modern/{hook-f2b8c0de.d.ts → hook-0b1ac3c1.d.ts} +0 -0
- /package/select/modern/{hook-f2b8c0de.js → hook-0b1ac3c1.js} +0 -0
- /package/side-panel/esm/{layout.module-a1f1e5d5.js → layout.module-10b60370.js} +0 -0
- /package/side-panel/{layout.module-58cb0667.js → layout.module-3789959a.js} +0 -0
- /package/side-panel/modern/{layout.module-3d5b6e76.js → layout.module-a3ff3ebd.js} +0 -0
- /package/universal-date-input/cssm/{utils-e0a54580.d.ts → utils-b1bfe0d1.d.ts} +0 -0
- /package/universal-date-input/esm/{utils-e0a54580.d.ts → utils-b1bfe0d1.d.ts} +0 -0
- /package/universal-date-input/modern/{utils-e0a54580.d.ts → utils-b1bfe0d1.d.ts} +0 -0
- /package/universal-date-input/{utils-e0a54580.d.ts → utils-b1bfe0d1.d.ts} +0 -0
|
@@ -34,6 +34,7 @@ import 'date-fns/addMonths';
|
|
|
34
34
|
import 'date-fns/addQuarters';
|
|
35
35
|
import 'date-fns/addWeeks';
|
|
36
36
|
import 'date-fns/addYears';
|
|
37
|
+
import 'date-fns/differenceInDays';
|
|
37
38
|
import 'date-fns/endOfMonth';
|
|
38
39
|
import 'date-fns/endOfQuarter';
|
|
39
40
|
import 'date-fns/endOfYear';
|
|
@@ -85,6 +86,8 @@ var CalendarMonthOnlyView = function (_a) {
|
|
|
85
86
|
var minDate = useMemo(function () { return (minDateTimestamp ? startOfDay(minDateTimestamp) : undefined); }, [minDateTimestamp]);
|
|
86
87
|
var maxDate = useMemo(function () { return (maxDateTimestamp ? endOfDay(maxDateTimestamp) : undefined); }, [maxDateTimestamp]);
|
|
87
88
|
var selected = useMemo(function () { return (value ? new Date(value) : undefined); }, [value]);
|
|
89
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
90
|
+
var startingDate = useMemo(function () { return (value ? new Date(value) : new Date()); }, []);
|
|
88
91
|
var defaultMonth = useMemo(function () {
|
|
89
92
|
return startOfMonth(selected ||
|
|
90
93
|
limitDate(defaultMonthTimestamp || Date.now(), minDateTimestamp, maxDateTimestamp));
|
|
@@ -108,7 +111,7 @@ var CalendarMonthOnlyView = function (_a) {
|
|
|
108
111
|
var dayAddonsMap = addonArrayToHashTable(dayAddons || []);
|
|
109
112
|
var prevMonths = [];
|
|
110
113
|
var nextMonths = [];
|
|
111
|
-
var date = new Date();
|
|
114
|
+
var date = new Date(startingDate.getTime());
|
|
112
115
|
var currentYear = date.getFullYear();
|
|
113
116
|
var currYearMonths = generateMonths(date, {});
|
|
114
117
|
for (var i = 0; i < yearsAmount; i++) {
|
|
@@ -129,7 +132,17 @@ var CalendarMonthOnlyView = function (_a) {
|
|
|
129
132
|
holidaysMap: holidaysMap,
|
|
130
133
|
dayAddonsMap: dayAddonsMap,
|
|
131
134
|
}), title: "".concat(monthName(item.date), " ").concat(item.date.getFullYear()) })); });
|
|
132
|
-
}, [
|
|
135
|
+
}, [
|
|
136
|
+
events,
|
|
137
|
+
offDays,
|
|
138
|
+
holidays,
|
|
139
|
+
dayAddons,
|
|
140
|
+
startingDate,
|
|
141
|
+
minDate,
|
|
142
|
+
maxDate,
|
|
143
|
+
yearsAmount,
|
|
144
|
+
selected,
|
|
145
|
+
]);
|
|
133
146
|
var initialMonthIndex = useMemo(function () {
|
|
134
147
|
var date = value || selectedFrom || activeMonth.getTime() || Date.now();
|
|
135
148
|
return activeMonths.findIndex(function (m) { return isSameMonth(date, m.date); });
|
|
@@ -54,6 +54,7 @@ import '../period-slider/utils.js';
|
|
|
54
54
|
import 'date-fns/addQuarters';
|
|
55
55
|
import 'date-fns/addWeeks';
|
|
56
56
|
import 'date-fns/addYears';
|
|
57
|
+
import 'date-fns/differenceInDays';
|
|
57
58
|
import 'date-fns/endOfMonth';
|
|
58
59
|
import 'date-fns/endOfQuarter';
|
|
59
60
|
import 'date-fns/getQuarter';
|
|
@@ -104,7 +104,7 @@ var DaysTable = function (_a) {
|
|
|
104
104
|
dayProps.ref(node);
|
|
105
105
|
}
|
|
106
106
|
}, onClick: handleDayClick }),
|
|
107
|
-
React.createElement(ButtonDesktop, { type: 'button', view: '
|
|
107
|
+
React.createElement(ButtonDesktop, { type: 'button', view: 'text', size: 'xs', disabled: day.disabled, className: cn(styles.day, styles[shape], (_b = {},
|
|
108
108
|
_b[styles.dayAddons] = day.dayAddon,
|
|
109
109
|
_b[styles.selected] = daySelected,
|
|
110
110
|
_b[styles.today] = isToday(day.date),
|
|
@@ -31,6 +31,7 @@ import '../../../../shared/esm';
|
|
|
31
31
|
import 'date-fns/addQuarters';
|
|
32
32
|
import 'date-fns/addWeeks';
|
|
33
33
|
import 'date-fns/addYears';
|
|
34
|
+
import 'date-fns/differenceInDays';
|
|
34
35
|
import 'date-fns/endOfMonth';
|
|
35
36
|
import 'date-fns/endOfQuarter';
|
|
36
37
|
import 'date-fns/getQuarter';
|
|
@@ -98,8 +99,8 @@ var PeriodSlider = function (_a) {
|
|
|
98
99
|
}
|
|
99
100
|
if (periodType === 'month' && isMonthAndYearSelectable) {
|
|
100
101
|
return (React.createElement("div", null,
|
|
101
|
-
React.createElement(ButtonDesktop, { className: styles.period, view: '
|
|
102
|
-
yearSelectorValue && (React.createElement(ButtonDesktop, { className: cn(styles.yearSelectorButton, styles.period), view: '
|
|
102
|
+
React.createElement(ButtonDesktop, { className: styles.period, view: 'text', size: 'l', onClick: onMonthClick }, monthName(valueFrom)),
|
|
103
|
+
yearSelectorValue && (React.createElement(ButtonDesktop, { className: cn(styles.yearSelectorButton, styles.period), view: 'text', size: 'l', onClick: onYearClick }, yearSelectorValue))));
|
|
103
104
|
}
|
|
104
105
|
if (onPeriodClick) {
|
|
105
106
|
return (
|
|
@@ -32,6 +32,7 @@ import '../../../../shared/esm';
|
|
|
32
32
|
import 'date-fns/addQuarters';
|
|
33
33
|
import 'date-fns/addWeeks';
|
|
34
34
|
import 'date-fns/addYears';
|
|
35
|
+
import 'date-fns/differenceInDays';
|
|
35
36
|
import 'date-fns/endOfMonth';
|
|
36
37
|
import 'date-fns/endOfQuarter';
|
|
37
38
|
import 'date-fns/getQuarter';
|
|
@@ -3,6 +3,7 @@ import addMonths from 'date-fns/addMonths';
|
|
|
3
3
|
import addQuarters from 'date-fns/addQuarters';
|
|
4
4
|
import addWeeks from 'date-fns/addWeeks';
|
|
5
5
|
import addYears from 'date-fns/addYears';
|
|
6
|
+
import differenceInDays from 'date-fns/differenceInDays';
|
|
6
7
|
import endOfMonth from 'date-fns/endOfMonth';
|
|
7
8
|
import endOfQuarter from 'date-fns/endOfQuarter';
|
|
8
9
|
import endOfWeek from 'date-fns/endOfWeek';
|
|
@@ -92,6 +93,12 @@ var shiftValues = function (valueFrom, valueTo, periodType, direction) {
|
|
|
92
93
|
newValueFrom = startOfYear(addYears(valueFrom, amount));
|
|
93
94
|
newValueTo = endOfYear(newValueFrom);
|
|
94
95
|
break;
|
|
96
|
+
case 'range': {
|
|
97
|
+
var diffInDays = differenceInDays(valueTo, valueFrom);
|
|
98
|
+
newValueFrom = addDays(valueFrom, diffInDays * amount);
|
|
99
|
+
newValueTo = addDays(valueTo, diffInDays * amount);
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
95
102
|
}
|
|
96
103
|
return {
|
|
97
104
|
valueFrom: newValueFrom,
|
|
@@ -8,7 +8,7 @@ require('./index.css');
|
|
|
8
8
|
|
|
9
9
|
var SelectButton = forwardRef(function (_a, ref) {
|
|
10
10
|
var className = _a.className, children = _a.children, _b = _a.view, view = _b === void 0 ? 'default' : _b, restProps = __rest(_a, ["className", "children", "view"]);
|
|
11
|
-
return (React.createElement(ButtonDesktop, __assign({}, restProps, { ref: ref, view: '
|
|
11
|
+
return (React.createElement(ButtonDesktop, __assign({}, restProps, { ref: ref, view: 'text', size: 'xs', className: cn(styles.button, styles[view], className) }), children));
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
export { SelectButton };
|
|
@@ -16,6 +16,7 @@ import 'date-fns/addMonths';
|
|
|
16
16
|
import 'date-fns/addQuarters';
|
|
17
17
|
import 'date-fns/addWeeks';
|
|
18
18
|
import 'date-fns/addYears';
|
|
19
|
+
import 'date-fns/differenceInDays';
|
|
19
20
|
import 'date-fns/endOfMonth';
|
|
20
21
|
import 'date-fns/endOfQuarter';
|
|
21
22
|
import 'date-fns/endOfWeek';
|
|
@@ -48,6 +48,7 @@ import '../components/period-slider/utils.js';
|
|
|
48
48
|
import 'date-fns/addQuarters';
|
|
49
49
|
import 'date-fns/addWeeks';
|
|
50
50
|
import 'date-fns/addYears';
|
|
51
|
+
import 'date-fns/differenceInDays';
|
|
51
52
|
import 'date-fns/endOfMonth';
|
|
52
53
|
import 'date-fns/endOfQuarter';
|
|
53
54
|
import 'date-fns/getQuarter';
|
package/calendar/esm/index.js
CHANGED
|
@@ -56,6 +56,7 @@ import './components/period-slider/utils.js';
|
|
|
56
56
|
import 'date-fns/addQuarters';
|
|
57
57
|
import 'date-fns/addWeeks';
|
|
58
58
|
import 'date-fns/addYears';
|
|
59
|
+
import 'date-fns/differenceInDays';
|
|
59
60
|
import 'date-fns/endOfMonth';
|
|
60
61
|
import 'date-fns/endOfQuarter';
|
|
61
62
|
import 'date-fns/getQuarter';
|
|
@@ -54,6 +54,7 @@ import '../components/period-slider/utils.js';
|
|
|
54
54
|
import 'date-fns/addQuarters';
|
|
55
55
|
import 'date-fns/addWeeks';
|
|
56
56
|
import 'date-fns/addYears';
|
|
57
|
+
import 'date-fns/differenceInDays';
|
|
57
58
|
import 'date-fns/endOfMonth';
|
|
58
59
|
import 'date-fns/endOfQuarter';
|
|
59
60
|
import 'date-fns/getQuarter';
|
|
@@ -58,6 +58,7 @@ import '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
|
58
58
|
import './components/period-slider/utils.js';
|
|
59
59
|
import 'date-fns/addQuarters';
|
|
60
60
|
import 'date-fns/addWeeks';
|
|
61
|
+
import 'date-fns/differenceInDays';
|
|
61
62
|
import 'date-fns/endOfMonth';
|
|
62
63
|
import 'date-fns/endOfQuarter';
|
|
63
64
|
import 'date-fns/getQuarter';
|
|
@@ -33,6 +33,7 @@ import 'date-fns/addMonths';
|
|
|
33
33
|
import 'date-fns/addQuarters';
|
|
34
34
|
import 'date-fns/addWeeks';
|
|
35
35
|
import 'date-fns/addYears';
|
|
36
|
+
import 'date-fns/differenceInDays';
|
|
36
37
|
import 'date-fns/endOfMonth';
|
|
37
38
|
import 'date-fns/endOfQuarter';
|
|
38
39
|
import 'date-fns/endOfYear';
|
|
@@ -83,6 +84,8 @@ const CalendarMonthOnlyView = ({ value, month: monthTimestamp, minDate: minDateT
|
|
|
83
84
|
const minDate = useMemo(() => (minDateTimestamp ? startOfDay(minDateTimestamp) : undefined), [minDateTimestamp]);
|
|
84
85
|
const maxDate = useMemo(() => (maxDateTimestamp ? endOfDay(maxDateTimestamp) : undefined), [maxDateTimestamp]);
|
|
85
86
|
const selected = useMemo(() => (value ? new Date(value) : undefined), [value]);
|
|
87
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
88
|
+
const startingDate = useMemo(() => (value ? new Date(value) : new Date()), []);
|
|
86
89
|
const defaultMonth = useMemo(() => startOfMonth(selected ||
|
|
87
90
|
limitDate(defaultMonthTimestamp || Date.now(), minDateTimestamp, maxDateTimestamp)), [defaultMonthTimestamp, maxDateTimestamp, minDateTimestamp, selected]);
|
|
88
91
|
const { activeMonth, highlighted, getDayProps } = useCalendar({
|
|
@@ -104,7 +107,7 @@ const CalendarMonthOnlyView = ({ value, month: monthTimestamp, minDate: minDateT
|
|
|
104
107
|
const dayAddonsMap = addonArrayToHashTable(dayAddons || []);
|
|
105
108
|
const prevMonths = [];
|
|
106
109
|
const nextMonths = [];
|
|
107
|
-
const date = new Date();
|
|
110
|
+
const date = new Date(startingDate.getTime());
|
|
108
111
|
const currentYear = date.getFullYear();
|
|
109
112
|
const currYearMonths = generateMonths(date, {});
|
|
110
113
|
for (let i = 0; i < yearsAmount; i++) {
|
|
@@ -129,7 +132,17 @@ const CalendarMonthOnlyView = ({ value, month: monthTimestamp, minDate: minDateT
|
|
|
129
132
|
}),
|
|
130
133
|
title: `${monthName(item.date)} ${item.date.getFullYear()}`,
|
|
131
134
|
}));
|
|
132
|
-
}, [
|
|
135
|
+
}, [
|
|
136
|
+
events,
|
|
137
|
+
offDays,
|
|
138
|
+
holidays,
|
|
139
|
+
dayAddons,
|
|
140
|
+
startingDate,
|
|
141
|
+
minDate,
|
|
142
|
+
maxDate,
|
|
143
|
+
yearsAmount,
|
|
144
|
+
selected,
|
|
145
|
+
]);
|
|
133
146
|
const initialMonthIndex = useMemo(() => {
|
|
134
147
|
const date = value || selectedFrom || activeMonth.getTime() || Date.now();
|
|
135
148
|
return activeMonths.findIndex((m) => isSameMonth(date, m.date));
|
|
@@ -53,6 +53,7 @@ import '../period-slider/utils.js';
|
|
|
53
53
|
import 'date-fns/addQuarters';
|
|
54
54
|
import 'date-fns/addWeeks';
|
|
55
55
|
import 'date-fns/addYears';
|
|
56
|
+
import 'date-fns/differenceInDays';
|
|
56
57
|
import 'date-fns/endOfMonth';
|
|
57
58
|
import 'date-fns/endOfQuarter';
|
|
58
59
|
import 'date-fns/getQuarter';
|
|
@@ -99,7 +99,7 @@ const DaysTable = ({ weeks = [], activeMonth = new Date(), highlighted, selected
|
|
|
99
99
|
dayProps.ref(node);
|
|
100
100
|
}
|
|
101
101
|
}, onClick: handleDayClick },
|
|
102
|
-
React.createElement(ButtonDesktop, { type: 'button', view: '
|
|
102
|
+
React.createElement(ButtonDesktop, { type: 'button', view: 'text', size: 'xs', disabled: day.disabled, className: cn(styles.day, styles[shape], {
|
|
103
103
|
[styles.dayAddons]: day.dayAddon,
|
|
104
104
|
[styles.selected]: daySelected,
|
|
105
105
|
[styles.today]: isToday(day.date),
|
|
@@ -31,6 +31,7 @@ import '../../../../shared/modern';
|
|
|
31
31
|
import 'date-fns/addQuarters';
|
|
32
32
|
import 'date-fns/addWeeks';
|
|
33
33
|
import 'date-fns/addYears';
|
|
34
|
+
import 'date-fns/differenceInDays';
|
|
34
35
|
import 'date-fns/endOfMonth';
|
|
35
36
|
import 'date-fns/endOfQuarter';
|
|
36
37
|
import 'date-fns/getQuarter';
|
|
@@ -96,8 +97,8 @@ const PeriodSlider = ({ value, periodType = 'month', className, periodFormatter
|
|
|
96
97
|
}
|
|
97
98
|
if (periodType === 'month' && isMonthAndYearSelectable) {
|
|
98
99
|
return (React.createElement("div", null,
|
|
99
|
-
React.createElement(ButtonDesktop, { className: styles.period, view: '
|
|
100
|
-
yearSelectorValue && (React.createElement(ButtonDesktop, { className: cn(styles.yearSelectorButton, styles.period), view: '
|
|
100
|
+
React.createElement(ButtonDesktop, { className: styles.period, view: 'text', size: 'l', onClick: onMonthClick }, monthName(valueFrom)),
|
|
101
|
+
yearSelectorValue && (React.createElement(ButtonDesktop, { className: cn(styles.yearSelectorButton, styles.period), view: 'text', size: 'l', onClick: onYearClick }, yearSelectorValue))));
|
|
101
102
|
}
|
|
102
103
|
if (onPeriodClick) {
|
|
103
104
|
return (
|
|
@@ -32,6 +32,7 @@ import '../../../../shared/modern';
|
|
|
32
32
|
import 'date-fns/addQuarters';
|
|
33
33
|
import 'date-fns/addWeeks';
|
|
34
34
|
import 'date-fns/addYears';
|
|
35
|
+
import 'date-fns/differenceInDays';
|
|
35
36
|
import 'date-fns/endOfMonth';
|
|
36
37
|
import 'date-fns/endOfQuarter';
|
|
37
38
|
import 'date-fns/getQuarter';
|
|
@@ -3,6 +3,7 @@ import addMonths from 'date-fns/addMonths';
|
|
|
3
3
|
import addQuarters from 'date-fns/addQuarters';
|
|
4
4
|
import addWeeks from 'date-fns/addWeeks';
|
|
5
5
|
import addYears from 'date-fns/addYears';
|
|
6
|
+
import differenceInDays from 'date-fns/differenceInDays';
|
|
6
7
|
import endOfMonth from 'date-fns/endOfMonth';
|
|
7
8
|
import endOfQuarter from 'date-fns/endOfQuarter';
|
|
8
9
|
import endOfWeek from 'date-fns/endOfWeek';
|
|
@@ -92,6 +93,12 @@ const shiftValues = (valueFrom, valueTo, periodType, direction) => {
|
|
|
92
93
|
newValueFrom = startOfYear(addYears(valueFrom, amount));
|
|
93
94
|
newValueTo = endOfYear(newValueFrom);
|
|
94
95
|
break;
|
|
96
|
+
case 'range': {
|
|
97
|
+
const diffInDays = differenceInDays(valueTo, valueFrom);
|
|
98
|
+
newValueFrom = addDays(valueFrom, diffInDays * amount);
|
|
99
|
+
newValueTo = addDays(valueTo, diffInDays * amount);
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
95
102
|
}
|
|
96
103
|
return {
|
|
97
104
|
valueFrom: newValueFrom,
|
|
@@ -5,6 +5,6 @@ import { ButtonDesktop } from '../../../../button/modern/desktop';
|
|
|
5
5
|
const styles = {"button":"calendar__button_g9agc","filled":"calendar__filled_g9agc","current":"calendar__current_g9agc","selected":"calendar__selected_g9agc"};
|
|
6
6
|
require('./index.css');
|
|
7
7
|
|
|
8
|
-
const SelectButton = forwardRef(({ className, children, view = 'default', ...restProps }, ref) => (React.createElement(ButtonDesktop, { ...restProps, ref: ref, view: '
|
|
8
|
+
const SelectButton = forwardRef(({ className, children, view = 'default', ...restProps }, ref) => (React.createElement(ButtonDesktop, { ...restProps, ref: ref, view: 'text', size: 'xs', className: cn(styles.button, styles[view], className) }, children)));
|
|
9
9
|
|
|
10
10
|
export { SelectButton };
|
|
@@ -15,6 +15,7 @@ import 'date-fns/addMonths';
|
|
|
15
15
|
import 'date-fns/addQuarters';
|
|
16
16
|
import 'date-fns/addWeeks';
|
|
17
17
|
import 'date-fns/addYears';
|
|
18
|
+
import 'date-fns/differenceInDays';
|
|
18
19
|
import 'date-fns/endOfMonth';
|
|
19
20
|
import 'date-fns/endOfQuarter';
|
|
20
21
|
import 'date-fns/endOfWeek';
|
|
@@ -47,6 +47,7 @@ import '../components/period-slider/utils.js';
|
|
|
47
47
|
import 'date-fns/addQuarters';
|
|
48
48
|
import 'date-fns/addWeeks';
|
|
49
49
|
import 'date-fns/addYears';
|
|
50
|
+
import 'date-fns/differenceInDays';
|
|
50
51
|
import 'date-fns/endOfMonth';
|
|
51
52
|
import 'date-fns/endOfQuarter';
|
|
52
53
|
import 'date-fns/getQuarter';
|
package/calendar/modern/index.js
CHANGED
|
@@ -55,6 +55,7 @@ import './components/period-slider/utils.js';
|
|
|
55
55
|
import 'date-fns/addQuarters';
|
|
56
56
|
import 'date-fns/addWeeks';
|
|
57
57
|
import 'date-fns/addYears';
|
|
58
|
+
import 'date-fns/differenceInDays';
|
|
58
59
|
import 'date-fns/endOfMonth';
|
|
59
60
|
import 'date-fns/endOfQuarter';
|
|
60
61
|
import 'date-fns/getQuarter';
|
|
@@ -53,6 +53,7 @@ import '../components/period-slider/utils.js';
|
|
|
53
53
|
import 'date-fns/addQuarters';
|
|
54
54
|
import 'date-fns/addWeeks';
|
|
55
55
|
import 'date-fns/addYears';
|
|
56
|
+
import 'date-fns/differenceInDays';
|
|
56
57
|
import 'date-fns/endOfMonth';
|
|
57
58
|
import 'date-fns/endOfQuarter';
|
|
58
59
|
import 'date-fns/getQuarter';
|
package/calendar-range/utils.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var isDayButton = function (node) {
|
|
3
|
+
var isDayButton = function (node) {
|
|
4
|
+
return node && node.tagName === 'BUTTON' && node.dataset.date;
|
|
5
|
+
};
|
|
4
6
|
|
|
5
7
|
exports.isDayButton = isDayButton;
|
|
@@ -10,7 +10,7 @@ var coreComponentsTypography = require('../../../../typography');
|
|
|
10
10
|
var hooks = require('@alfalab/hooks');
|
|
11
11
|
var context = require('../../../context.js');
|
|
12
12
|
var components_header_component = require('../../header/component.js');
|
|
13
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
13
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-c7b95621.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
16
|
|
|
@@ -90,7 +90,7 @@ var Initial = function (_a) {
|
|
|
90
90
|
return initialScreenHintSlot;
|
|
91
91
|
}
|
|
92
92
|
if (mobile$2) {
|
|
93
|
-
return (React__default.default.createElement(mobile.ButtonMobile, { onClick: handleSmsHintLinkClick, view: '
|
|
93
|
+
return (React__default.default.createElement(mobile.ButtonMobile, { onClick: handleSmsHintLinkClick, view: 'transparent', size: 'xs' }, texts.linkToHint));
|
|
94
94
|
}
|
|
95
95
|
return (React__default.default.createElement(coreComponentsLink.Link, { onClick: handleSmsHintLinkClick, className: components_screens_initial_countdownSection.styles.smsComeLink, view: mobile$2 ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint));
|
|
96
96
|
};
|
|
@@ -7,7 +7,7 @@ require('../../../../spinner');
|
|
|
7
7
|
require('../../../../typography');
|
|
8
8
|
require('../../../context.js');
|
|
9
9
|
require('../../../utils.js');
|
|
10
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
10
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-c7b95621.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -92,7 +92,7 @@ var Initial = function (_a) {
|
|
|
92
92
|
return initialScreenHintSlot;
|
|
93
93
|
}
|
|
94
94
|
if (mobile$2) {
|
|
95
|
-
return (React__default.default.createElement(mobile.ButtonMobile, { onClick: handleSmsHintLinkClick, view: '
|
|
95
|
+
return (React__default.default.createElement(mobile.ButtonMobile, { onClick: handleSmsHintLinkClick, view: 'transparent', size: 'xs' }, texts.linkToHint));
|
|
96
96
|
}
|
|
97
97
|
return (React__default.default.createElement(coreComponentsLink.Link, { onClick: handleSmsHintLinkClick, className: styles__default.default.smsComeLink, view: mobile$2 ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint));
|
|
98
98
|
};
|
|
@@ -16,7 +16,7 @@ import '../../code-input/esm/mobile';
|
|
|
16
16
|
import '../../link/esm';
|
|
17
17
|
import '../../typography/esm';
|
|
18
18
|
import './components/header/component.js';
|
|
19
|
-
import './countdown-section-
|
|
19
|
+
import './countdown-section-b0eafcff.js';
|
|
20
20
|
import '../../button/esm';
|
|
21
21
|
import '../../spinner/esm';
|
|
22
22
|
import './components/screens/hint/component.js';
|
|
@@ -15,7 +15,7 @@ import '../../../../code-input/esm/mobile';
|
|
|
15
15
|
import '../../../../link/esm';
|
|
16
16
|
import '../../../../typography/esm';
|
|
17
17
|
import '../header/component.js';
|
|
18
|
-
import '../../countdown-section-
|
|
18
|
+
import '../../countdown-section-b0eafcff.js';
|
|
19
19
|
import '../../../../button/esm';
|
|
20
20
|
import '../../../../spinner/esm';
|
|
21
21
|
import '../countdown-loader/component.js';
|
|
@@ -13,7 +13,7 @@ import '../../../../code-input/esm/mobile';
|
|
|
13
13
|
import '../../../../link/esm';
|
|
14
14
|
import '../../../../typography/esm';
|
|
15
15
|
import '../header/component.js';
|
|
16
|
-
import '../../countdown-section-
|
|
16
|
+
import '../../countdown-section-b0eafcff.js';
|
|
17
17
|
import '../../../../button/esm';
|
|
18
18
|
import '../../../../spinner/esm';
|
|
19
19
|
import '../screens/hint/component.js';
|
|
@@ -14,6 +14,6 @@ import '@alfalab/hooks';
|
|
|
14
14
|
import '../context.js';
|
|
15
15
|
import '../utils.js';
|
|
16
16
|
import './header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-b0eafcff.js';
|
|
18
18
|
import '../../../button/esm';
|
|
19
19
|
import '../../../spinner/esm';
|
|
@@ -13,7 +13,7 @@ import '@alfalab/hooks';
|
|
|
13
13
|
import '../../context.js';
|
|
14
14
|
import '../../utils.js';
|
|
15
15
|
import '../header/component.js';
|
|
16
|
-
import '../../countdown-section-
|
|
16
|
+
import '../../countdown-section-b0eafcff.js';
|
|
17
17
|
import '../../../../button/esm';
|
|
18
18
|
import '../../../../spinner/esm';
|
|
19
19
|
import '../countdown-loader/component.js';
|
|
@@ -8,7 +8,7 @@ import { Typography } from '../../../../../typography/esm';
|
|
|
8
8
|
import { usePrevious, useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
9
9
|
import { ConfirmationContext } from '../../../context.js';
|
|
10
10
|
import { Header } from '../../header/component.js';
|
|
11
|
-
import { s as styles, C as CountdownSection } from '../../../countdown-section-
|
|
11
|
+
import { s as styles, C as CountdownSection } from '../../../countdown-section-b0eafcff.js';
|
|
12
12
|
import '../../../utils.js';
|
|
13
13
|
import '../../../../../button/esm';
|
|
14
14
|
import '../../../../../spinner/esm';
|
|
@@ -86,7 +86,7 @@ var Initial = function (_a) {
|
|
|
86
86
|
return initialScreenHintSlot;
|
|
87
87
|
}
|
|
88
88
|
if (mobile) {
|
|
89
|
-
return (React.createElement(ButtonMobile, { onClick: handleSmsHintLinkClick, view: '
|
|
89
|
+
return (React.createElement(ButtonMobile, { onClick: handleSmsHintLinkClick, view: 'transparent', size: 'xs' }, texts.linkToHint));
|
|
90
90
|
}
|
|
91
91
|
return (React.createElement(Link, { onClick: handleSmsHintLinkClick, className: styles.smsComeLink, view: mobile ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint));
|
|
92
92
|
};
|
|
@@ -4,5 +4,5 @@ import '../../../../../button/esm';
|
|
|
4
4
|
import '../../../../../spinner/esm';
|
|
5
5
|
import '../../../../../typography/esm';
|
|
6
6
|
import '../../../context.js';
|
|
7
|
-
export { C as CountdownSection } from '../../../countdown-section-
|
|
7
|
+
export { C as CountdownSection } from '../../../countdown-section-b0eafcff.js';
|
|
8
8
|
import '../../../utils.js';
|
|
@@ -10,6 +10,6 @@ import '@alfalab/hooks';
|
|
|
10
10
|
import '../../../context.js';
|
|
11
11
|
import '../../../utils.js';
|
|
12
12
|
import '../../header/component.js';
|
|
13
|
-
import '../../../countdown-section-
|
|
13
|
+
import '../../../countdown-section-b0eafcff.js';
|
|
14
14
|
import '../../../../../button/esm';
|
|
15
15
|
import '../../../../../spinner/esm';
|
|
@@ -13,7 +13,7 @@ import '../../../code-input/esm/mobile';
|
|
|
13
13
|
import '../../../link/esm';
|
|
14
14
|
import '../../../typography/esm';
|
|
15
15
|
import '../components/header/component.js';
|
|
16
|
-
import '../countdown-section-
|
|
16
|
+
import '../countdown-section-b0eafcff.js';
|
|
17
17
|
import '../../../button/esm';
|
|
18
18
|
import '../../../spinner/esm';
|
|
19
19
|
import '../components/screens/hint/component.js';
|
|
@@ -14,7 +14,7 @@ import '../../../code-input/esm/mobile';
|
|
|
14
14
|
import '../../../link/esm';
|
|
15
15
|
import '../../../typography/esm';
|
|
16
16
|
import '../components/header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-b0eafcff.js';
|
|
18
18
|
import '../../../button/esm';
|
|
19
19
|
import '../../../spinner/esm';
|
|
20
20
|
import '../components/screens/hint/component.js';
|
|
@@ -16,7 +16,7 @@ import '../../code-input/esm/mobile';
|
|
|
16
16
|
import '../../link/esm';
|
|
17
17
|
import '../../typography/esm';
|
|
18
18
|
import './components/header/component.js';
|
|
19
|
-
import './countdown-section-
|
|
19
|
+
import './countdown-section-b0eafcff.js';
|
|
20
20
|
import '../../button/esm';
|
|
21
21
|
import '../../spinner/esm';
|
|
22
22
|
import './components/screens/hint/component.js';
|
|
@@ -13,7 +13,7 @@ import '../../../code-input/esm/mobile';
|
|
|
13
13
|
import '../../../link/esm';
|
|
14
14
|
import '../../../typography/esm';
|
|
15
15
|
import '../components/header/component.js';
|
|
16
|
-
import '../countdown-section-
|
|
16
|
+
import '../countdown-section-b0eafcff.js';
|
|
17
17
|
import '../../../button/esm';
|
|
18
18
|
import '../../../spinner/esm';
|
|
19
19
|
import '../components/screens/hint/component.js';
|
|
@@ -14,7 +14,7 @@ import '../../../code-input/esm/mobile';
|
|
|
14
14
|
import '../../../link/esm';
|
|
15
15
|
import '../../../typography/esm';
|
|
16
16
|
import '../components/header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-b0eafcff.js';
|
|
18
18
|
import '../../../button/esm';
|
|
19
19
|
import '../../../spinner/esm';
|
|
20
20
|
import '../components/screens/hint/component.js';
|
|
@@ -15,6 +15,6 @@ import '../../../link/esm';
|
|
|
15
15
|
import '../../../typography/esm';
|
|
16
16
|
import '@alfalab/hooks';
|
|
17
17
|
import '../components/header/component.js';
|
|
18
|
-
import '../countdown-section-
|
|
18
|
+
import '../countdown-section-b0eafcff.js';
|
|
19
19
|
import '../../../button/esm';
|
|
20
20
|
import '../../../spinner/esm';
|
|
@@ -15,7 +15,7 @@ import '../../code-input/modern/mobile';
|
|
|
15
15
|
import '../../link/modern';
|
|
16
16
|
import '../../typography/modern';
|
|
17
17
|
import './components/header/component.js';
|
|
18
|
-
import './countdown-section-
|
|
18
|
+
import './countdown-section-0eefd440.js';
|
|
19
19
|
import '../../button/modern';
|
|
20
20
|
import '../../spinner/modern';
|
|
21
21
|
import './components/screens/hint/component.js';
|
|
@@ -14,7 +14,7 @@ import '../../../../code-input/modern/mobile';
|
|
|
14
14
|
import '../../../../link/modern';
|
|
15
15
|
import '../../../../typography/modern';
|
|
16
16
|
import '../header/component.js';
|
|
17
|
-
import '../../countdown-section-
|
|
17
|
+
import '../../countdown-section-0eefd440.js';
|
|
18
18
|
import '../../../../button/modern';
|
|
19
19
|
import '../../../../spinner/modern';
|
|
20
20
|
import '../countdown-loader/component.js';
|
|
@@ -12,7 +12,7 @@ import '../../../../code-input/modern/mobile';
|
|
|
12
12
|
import '../../../../link/modern';
|
|
13
13
|
import '../../../../typography/modern';
|
|
14
14
|
import '../header/component.js';
|
|
15
|
-
import '../../countdown-section-
|
|
15
|
+
import '../../countdown-section-0eefd440.js';
|
|
16
16
|
import '../../../../button/modern';
|
|
17
17
|
import '../../../../spinner/modern';
|
|
18
18
|
import '../screens/hint/component.js';
|
|
@@ -14,6 +14,6 @@ import '@alfalab/hooks';
|
|
|
14
14
|
import '../context.js';
|
|
15
15
|
import '../utils.js';
|
|
16
16
|
import './header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-0eefd440.js';
|
|
18
18
|
import '../../../button/modern';
|
|
19
19
|
import '../../../spinner/modern';
|
|
@@ -13,7 +13,7 @@ import '@alfalab/hooks';
|
|
|
13
13
|
import '../../context.js';
|
|
14
14
|
import '../../utils.js';
|
|
15
15
|
import '../header/component.js';
|
|
16
|
-
import '../../countdown-section-
|
|
16
|
+
import '../../countdown-section-0eefd440.js';
|
|
17
17
|
import '../../../../button/modern';
|
|
18
18
|
import '../../../../spinner/modern';
|
|
19
19
|
import '../countdown-loader/component.js';
|
|
@@ -8,7 +8,7 @@ import { Typography } from '../../../../../typography/modern';
|
|
|
8
8
|
import { usePrevious, useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
9
9
|
import { ConfirmationContext } from '../../../context.js';
|
|
10
10
|
import { Header } from '../../header/component.js';
|
|
11
|
-
import { s as styles, C as CountdownSection } from '../../../countdown-section-
|
|
11
|
+
import { s as styles, C as CountdownSection } from '../../../countdown-section-0eefd440.js';
|
|
12
12
|
import '../../../utils.js';
|
|
13
13
|
import '../../../../../button/modern';
|
|
14
14
|
import '../../../../../spinner/modern';
|
|
@@ -84,7 +84,7 @@ const Initial = ({ mobile }) => {
|
|
|
84
84
|
return initialScreenHintSlot;
|
|
85
85
|
}
|
|
86
86
|
if (mobile) {
|
|
87
|
-
return (React.createElement(ButtonMobile, { onClick: handleSmsHintLinkClick, view: '
|
|
87
|
+
return (React.createElement(ButtonMobile, { onClick: handleSmsHintLinkClick, view: 'transparent', size: 'xs' }, texts.linkToHint));
|
|
88
88
|
}
|
|
89
89
|
return (React.createElement(Link, { onClick: handleSmsHintLinkClick, className: styles.smsComeLink, view: mobile ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint));
|
|
90
90
|
};
|
|
@@ -4,5 +4,5 @@ import '../../../../../button/modern';
|
|
|
4
4
|
import '../../../../../spinner/modern';
|
|
5
5
|
import '../../../../../typography/modern';
|
|
6
6
|
import '../../../context.js';
|
|
7
|
-
export { C as CountdownSection } from '../../../countdown-section-
|
|
7
|
+
export { C as CountdownSection } from '../../../countdown-section-0eefd440.js';
|
|
8
8
|
import '../../../utils.js';
|