@alfalab/core-components 47.0.0-beta.1 → 47.0.0-beta.2
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/base-modal/Component.js +2 -1
- package/base-modal/cssm/Component.js +2 -1
- package/base-modal/esm/Component.js +2 -1
- package/base-modal/esm/index.js +1 -0
- package/base-modal/modern/Component.js +2 -1
- package/base-modal/modern/index.js +1 -0
- package/calendar-range/utils.js +3 -1
- 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.d.ts +10 -0
- package/icon-button/Component.js +4 -3
- package/icon-button/cssm/Component.d.ts +10 -0
- package/icon-button/cssm/Component.js +2 -1
- package/icon-button/cssm/default.module.css +35 -3
- package/icon-button/cssm/inverted.module.css +35 -3
- package/icon-button/default.css +35 -3
- package/icon-button/esm/Component.d.ts +10 -0
- package/icon-button/esm/Component.js +4 -3
- package/icon-button/esm/default.css +35 -3
- package/icon-button/esm/inverted.css +35 -3
- package/icon-button/inverted.css +35 -3
- package/icon-button/modern/Component.d.ts +10 -0
- package/icon-button/modern/Component.js +4 -3
- package/icon-button/modern/default.css +35 -3
- package/icon-button/modern/inverted.css +35 -3
- package/input/components/base-input/Component.d.ts +2 -2
- package/input/cssm/components/base-input/Component.d.ts +2 -2
- package/input/esm/components/base-input/Component.d.ts +2 -2
- package/input/modern/components/base-input/Component.d.ts +2 -2
- package/international-phone-input/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/Component.responsive.d.ts +4 -4
- package/international-phone-input/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/cssm/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/cssm/Component.responsive.d.ts +4 -4
- package/international-phone-input/cssm/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/cssm/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/cssm/types.d.ts +1 -1
- package/international-phone-input/cssm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/cssm/utils-89376c31.d.ts +1 -1
- package/international-phone-input/esm/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/esm/Component.responsive.d.ts +4 -4
- package/international-phone-input/esm/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/esm/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/esm/types.d.ts +1 -1
- package/international-phone-input/esm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/esm/utils-89376c31.d.ts +1 -1
- package/international-phone-input/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/modern/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/modern/Component.responsive.d.ts +4 -4
- package/international-phone-input/modern/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/modern/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/modern/types.d.ts +1 -1
- package/international-phone-input/modern/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/modern/utils-89376c31.d.ts +1 -1
- package/international-phone-input/types.d.ts +1 -1
- package/international-phone-input/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/utils-89376c31.d.ts +1 -1
- 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/notification/Component.js +2 -1
- package/notification/cssm/Component.js +2 -1
- package/notification/esm/Component.js +2 -1
- package/notification/esm/index.js +1 -0
- package/notification/modern/Component.js +2 -1
- package/notification/modern/index.js +1 -0
- package/notification-manager/component.js +2 -1
- package/notification-manager/cssm/component.js +2 -1
- package/notification-manager/esm/component.js +2 -1
- package/notification-manager/esm/index.js +1 -0
- package/notification-manager/modern/component.js +2 -1
- package/notification-manager/modern/index.js +1 -0
- package/package.json +2 -1
- package/picker-button/Component-0f35b62f.d.ts +5 -0
- package/picker-button/Component-c44170fe.d.ts +2 -2
- package/picker-button/cssm/Component-0f35b62f.d.ts +5 -0
- package/picker-button/cssm/Component-c44170fe.d.ts +2 -2
- package/picker-button/cssm/field/Component.d.ts +1 -1
- package/picker-button/cssm/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/cssm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/cssm/utils-89376c31.d.ts +1 -1
- package/picker-button/esm/Component-0f35b62f.d.ts +5 -0
- package/picker-button/esm/Component-c44170fe.d.ts +2 -2
- package/picker-button/esm/field/Component.d.ts +1 -1
- package/picker-button/esm/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/esm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/esm/utils-89376c31.d.ts +1 -1
- package/picker-button/field/Component.d.ts +1 -1
- package/picker-button/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/modern/Component-0f35b62f.d.ts +5 -0
- package/picker-button/modern/Component-c44170fe.d.ts +2 -2
- package/picker-button/modern/field/Component.d.ts +1 -1
- package/picker-button/modern/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/modern/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/modern/utils-89376c31.d.ts +1 -1
- package/picker-button/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/utils-89376c31.d.ts +1 -1
- package/popover/Component.js +2 -1
- package/popover/cssm/Component.js +2 -1
- package/popover/esm/Component.js +2 -1
- package/popover/esm/index.js +1 -0
- package/popover/modern/Component.js +2 -1
- package/popover/modern/index.js +1 -0
- package/select/components/base-select/Component.js +2 -2
- package/select/components/options-list/Component.js +2 -2
- package/select/components/virtual-options-list/Component.js +4 -2
- package/select/cssm/components/base-select/Component.js +2 -2
- package/select/cssm/components/options-list/Component.js +2 -2
- package/select/cssm/components/virtual-options-list/Component.js +4 -2
- package/select/cssm/typings.d.ts +32 -0
- package/select/esm/components/base-select/Component.js +2 -2
- package/select/esm/components/options-list/Component.js +2 -2
- package/select/esm/components/virtual-options-list/Component.js +4 -2
- package/select/esm/typings.d.ts +32 -0
- package/select/modern/components/base-select/Component.js +2 -2
- package/select/modern/components/options-list/Component.js +2 -2
- package/select/modern/components/virtual-options-list/Component.js +2 -2
- package/select/modern/typings.d.ts +32 -0
- package/select/typings.d.ts +32 -0
- package/stack/component.js +4 -4
- package/stack/cssm/component.js +4 -4
- package/stack/cssm/index.d.ts +0 -1
- package/stack/cssm/index.js +0 -3
- package/stack/esm/component.js +1 -1
- package/stack/esm/index.d.ts +0 -1
- package/stack/esm/index.js +1 -1
- package/stack/index.d.ts +0 -1
- package/stack/index.js +0 -3
- package/stack/modern/component.js +1 -1
- package/stack/modern/index.d.ts +0 -1
- package/stack/modern/index.js +1 -1
- package/status/Component.d.ts +2 -1
- package/status/Component.js +2 -2
- package/status/cssm/Component.d.ts +2 -1
- package/status/cssm/Component.js +1 -1
- package/status/cssm/index.module.css +74 -29
- package/status/esm/Component.d.ts +2 -1
- package/status/esm/Component.js +2 -2
- package/status/esm/index.css +55 -27
- package/status/index.css +55 -27
- package/status/modern/Component.d.ts +2 -1
- package/status/modern/Component.js +2 -2
- package/status/modern/index.css +55 -27
- package/themes/click.css +0 -1516
- package/themes/compiled/mobile-dark-bluetint.css +210 -50
- package/themes/corp.css +0 -1516
- package/themes/intranet.css +0 -1516
- package/themes/mobile.css +0 -1516
- package/themes/site.css +0 -1516
- package/toast/components/base-toast/component.js +2 -1
- package/toast/cssm/components/base-toast/component.js +2 -1
- package/toast/esm/Component.responsive.js +1 -0
- package/toast/esm/components/base-toast/component.js +2 -1
- package/toast/esm/components/base-toast/index.js +1 -0
- package/toast/esm/desktop/Component.desktop.js +1 -0
- package/toast/esm/desktop/index.js +1 -0
- package/toast/esm/index.js +1 -0
- package/toast/esm/mobile/Component.mobile.js +1 -0
- package/toast/esm/mobile/index.js +1 -0
- package/toast/modern/Component.responsive.js +1 -0
- package/toast/modern/components/base-toast/component.js +2 -1
- package/toast/modern/components/base-toast/index.js +1 -0
- package/toast/modern/desktop/Component.desktop.js +1 -0
- package/toast/modern/desktop/index.js +1 -0
- package/toast/modern/index.js +1 -0
- package/toast/modern/mobile/Component.mobile.js +1 -0
- package/toast/modern/mobile/index.js +1 -0
- package/toast-plate/components/base-toast-plate/component.js +1 -1
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/esm/Component.responsive.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/component.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/index.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/esm/desktop/Component.desktop.js +1 -1
- package/toast-plate/esm/desktop/index.js +1 -1
- package/toast-plate/esm/index-307da6d7.d.ts +1 -1
- package/toast-plate/esm/index.js +1 -1
- package/toast-plate/esm/mobile/Component.mobile.js +1 -1
- package/toast-plate/esm/mobile/index.js +1 -1
- package/toast-plate/index-307da6d7.d.ts +1 -1
- package/toast-plate/modern/Component.responsive.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/component.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/index.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/modern/desktop/Component.desktop.js +1 -1
- package/toast-plate/modern/desktop/index.js +1 -1
- package/toast-plate/modern/index-307da6d7.d.ts +1 -1
- package/toast-plate/modern/index.js +1 -1
- package/toast-plate/modern/mobile/Component.mobile.js +1 -1
- package/toast-plate/modern/mobile/index.js +1 -1
- package/universal-date-input/cssm/index-5712fce2.d.ts +1 -13
- package/universal-date-input/esm/index-5712fce2.d.ts +1 -13
- package/universal-date-input/index-5712fce2.d.ts +1 -13
- package/universal-date-input/modern/index-5712fce2.d.ts +1 -13
- package/international-phone-input/cssm/index-136acbb1.d.ts +0 -28
- package/international-phone-input/esm/index-136acbb1.d.ts +0 -28
- package/international-phone-input/index-136acbb1.d.ts +0 -28
- package/international-phone-input/modern/index-136acbb1.d.ts +0 -28
- package/picker-button/Component-1fe708ea.d.ts +0 -5
- package/picker-button/cssm/Component-1fe708ea.d.ts +0 -5
- package/picker-button/esm/Component-1fe708ea.d.ts +0 -5
- package/picker-button/modern/Component-1fe708ea.d.ts +0 -5
- package/stack/context.d.ts +0 -29
- package/stack/context.js +0 -34
- package/stack/cssm/context.d.ts +0 -29
- package/stack/cssm/context.js +0 -34
- package/stack/esm/context.d.ts +0 -29
- package/stack/esm/context.js +0 -31
- package/stack/modern/context.d.ts +0 -29
- package/stack/modern/context.js +0 -31
- /package/gallery/{buttons-36b3ca68.d.ts → buttons-2c587253.d.ts} +0 -0
- /package/gallery/{buttons-36b3ca68.js → buttons-2c587253.js} +0 -0
- /package/gallery/esm/{buttons-49e609ab.d.ts → buttons-fb317559.d.ts} +0 -0
- /package/gallery/esm/{buttons-49e609ab.js → buttons-fb317559.js} +0 -0
- /package/gallery/esm/{slide-01af06f1.d.ts → slide-cb44c8ba.d.ts} +0 -0
- /package/gallery/esm/{slide-01af06f1.js → slide-cb44c8ba.js} +0 -0
- /package/gallery/modern/{buttons-9e01c41d.d.ts → buttons-0d4c9cc6.d.ts} +0 -0
- /package/gallery/modern/{buttons-9e01c41d.js → buttons-0d4c9cc6.js} +0 -0
- /package/gallery/modern/{slide-0932c021.d.ts → slide-3771e01f.d.ts} +0 -0
- /package/gallery/modern/{slide-0932c021.js → slide-3771e01f.js} +0 -0
- /package/gallery/{slide-cbb98cfd.d.ts → slide-a4b1c89f.d.ts} +0 -0
- /package/gallery/{slide-cbb98cfd.js → slide-a4b1c89f.js} +0 -0
- /package/modal/esm/{layout.module-8f4bb5c4.js → layout.module-5977466c.js} +0 -0
- /package/modal/{layout.module-dd4e6f62.js → layout.module-74b07012.js} +0 -0
- /package/modal/modern/{layout.module-6bc66458.js → layout.module-565c309a.js} +0 -0
- /package/toast-plate/esm/{getDataTestId-1e8085ca.d.ts → getDataTestId-32922464.d.ts} +0 -0
- /package/toast-plate/esm/{getDataTestId-1e8085ca.js → getDataTestId-32922464.js} +0 -0
- /package/toast-plate/{getDataTestId-4ff6c5ff.d.ts → getDataTestId-64de4ccf.d.ts} +0 -0
- /package/toast-plate/{getDataTestId-4ff6c5ff.js → getDataTestId-64de4ccf.js} +0 -0
- /package/toast-plate/modern/{getDataTestId-11ebf806.d.ts → getDataTestId-4d724a67.d.ts} +0 -0
- /package/toast-plate/modern/{getDataTestId-11ebf806.js → getDataTestId-4d724a67.js} +0 -0
package/base-modal/Component.js
CHANGED
|
@@ -11,6 +11,7 @@ var coreComponentsBackdrop = require('../backdrop');
|
|
|
11
11
|
var coreComponentsPortal = require('../portal');
|
|
12
12
|
var coreComponentsShared = require('../shared');
|
|
13
13
|
var coreComponentsStack = require('../stack');
|
|
14
|
+
var stackContext = require('@alfalab/stack-context');
|
|
14
15
|
var helpers_lockScroll = require('./helpers/lockScroll.js');
|
|
15
16
|
var utils = require('./utils.js');
|
|
16
17
|
require('./matches-polyfill.js');
|
|
@@ -42,7 +43,7 @@ var BaseModalContext = React__default.default.createContext({
|
|
|
42
43
|
onClose: function () { return null; },
|
|
43
44
|
});
|
|
44
45
|
var BaseModal = React.forwardRef(function (_a, ref) {
|
|
45
|
-
var open = _a.open, container = _a.container, children = _a.children, _b = _a.scrollHandler, scrollHandler = _b === void 0 ? 'wrapper' : _b, _c = _a.Backdrop, Backdrop = _c === void 0 ? coreComponentsBackdrop.Backdrop : _c, _d = _a.backdropProps, backdropProps = _d === void 0 ? {} : _d, _e = _a.transitionProps, transitionProps = _e === void 0 ? {} : _e, disableBackdropClick = _a.disableBackdropClick, _f = _a.disableAutoFocus, disableAutoFocus = _f === void 0 ? false : _f, _g = _a.disableFocusLock, disableFocusLock = _g === void 0 ? false : _g, _h = _a.disableEscapeKeyDown, disableEscapeKeyDown = _h === void 0 ? false : _h, _j = _a.disableRestoreFocus, disableRestoreFocus = _j === void 0 ? false : _j, _k = _a.disableBlockingScroll, disableBlockingScroll = _k === void 0 ? false : _k, _l = _a.keepMounted, keepMounted = _l === void 0 ? false : _l, className = _a.className, contentClassName = _a.contentClassName, wrapperProps = _a.wrapperProps, contentProps = _a.contentProps, componentDivProps = _a.componentDivProps, wrapperClassName = _a.wrapperClassName, onBackdropClick = _a.onBackdropClick, onClose = _a.onClose, onEscapeKeyDown = _a.onEscapeKeyDown, onMount = _a.onMount, onUnmount = _a.onUnmount, dataTestId = _a.dataTestId, _m = _a.zIndex, zIndex = _m === void 0 ?
|
|
46
|
+
var open = _a.open, container = _a.container, children = _a.children, _b = _a.scrollHandler, scrollHandler = _b === void 0 ? 'wrapper' : _b, _c = _a.Backdrop, Backdrop = _c === void 0 ? coreComponentsBackdrop.Backdrop : _c, _d = _a.backdropProps, backdropProps = _d === void 0 ? {} : _d, _e = _a.transitionProps, transitionProps = _e === void 0 ? {} : _e, disableBackdropClick = _a.disableBackdropClick, _f = _a.disableAutoFocus, disableAutoFocus = _f === void 0 ? false : _f, _g = _a.disableFocusLock, disableFocusLock = _g === void 0 ? false : _g, _h = _a.disableEscapeKeyDown, disableEscapeKeyDown = _h === void 0 ? false : _h, _j = _a.disableRestoreFocus, disableRestoreFocus = _j === void 0 ? false : _j, _k = _a.disableBlockingScroll, disableBlockingScroll = _k === void 0 ? false : _k, _l = _a.keepMounted, keepMounted = _l === void 0 ? false : _l, className = _a.className, contentClassName = _a.contentClassName, wrapperProps = _a.wrapperProps, contentProps = _a.contentProps, componentDivProps = _a.componentDivProps, wrapperClassName = _a.wrapperClassName, onBackdropClick = _a.onBackdropClick, onClose = _a.onClose, onEscapeKeyDown = _a.onEscapeKeyDown, onMount = _a.onMount, onUnmount = _a.onUnmount, dataTestId = _a.dataTestId, _m = _a.zIndex, zIndex = _m === void 0 ? stackContext.stackingOrder.MODAL : _m, _o = _a.componentRef, componentRef = _o === void 0 ? null : _o, _p = _a.usePortal, usePortal = _p === void 0 ? true : _p, _q = _a.iOSLock, iOSLock = _q === void 0 ? false : _q;
|
|
46
47
|
var _r = React.useState(null), exited = _r[0], setExited = _r[1];
|
|
47
48
|
var _s = React.useState(false), hasScroll = _s[0], setHasScroll = _s[1];
|
|
48
49
|
var _t = React.useState(false), hasHeader = _t[0], setHasHeader = _t[1];
|
|
@@ -11,6 +11,7 @@ var coreComponentsBackdrop = require('../../backdrop/cssm');
|
|
|
11
11
|
var coreComponentsPortal = require('../../portal/cssm');
|
|
12
12
|
var coreComponentsShared = require('../../shared/cssm');
|
|
13
13
|
var coreComponentsStack = require('../../stack/cssm');
|
|
14
|
+
var stackContext = require('@alfalab/stack-context');
|
|
14
15
|
var helpers_lockScroll = require('./helpers/lockScroll.js');
|
|
15
16
|
var utils = require('./utils.js');
|
|
16
17
|
var styles = require('./index.module.css');
|
|
@@ -41,7 +42,7 @@ var BaseModalContext = React__default.default.createContext({
|
|
|
41
42
|
onClose: function () { return null; },
|
|
42
43
|
});
|
|
43
44
|
var BaseModal = React.forwardRef(function (_a, ref) {
|
|
44
|
-
var open = _a.open, container = _a.container, children = _a.children, _b = _a.scrollHandler, scrollHandler = _b === void 0 ? 'wrapper' : _b, _c = _a.Backdrop, Backdrop = _c === void 0 ? coreComponentsBackdrop.Backdrop : _c, _d = _a.backdropProps, backdropProps = _d === void 0 ? {} : _d, _e = _a.transitionProps, transitionProps = _e === void 0 ? {} : _e, disableBackdropClick = _a.disableBackdropClick, _f = _a.disableAutoFocus, disableAutoFocus = _f === void 0 ? false : _f, _g = _a.disableFocusLock, disableFocusLock = _g === void 0 ? false : _g, _h = _a.disableEscapeKeyDown, disableEscapeKeyDown = _h === void 0 ? false : _h, _j = _a.disableRestoreFocus, disableRestoreFocus = _j === void 0 ? false : _j, _k = _a.disableBlockingScroll, disableBlockingScroll = _k === void 0 ? false : _k, _l = _a.keepMounted, keepMounted = _l === void 0 ? false : _l, className = _a.className, contentClassName = _a.contentClassName, wrapperProps = _a.wrapperProps, contentProps = _a.contentProps, componentDivProps = _a.componentDivProps, wrapperClassName = _a.wrapperClassName, onBackdropClick = _a.onBackdropClick, onClose = _a.onClose, onEscapeKeyDown = _a.onEscapeKeyDown, onMount = _a.onMount, onUnmount = _a.onUnmount, dataTestId = _a.dataTestId, _m = _a.zIndex, zIndex = _m === void 0 ?
|
|
45
|
+
var open = _a.open, container = _a.container, children = _a.children, _b = _a.scrollHandler, scrollHandler = _b === void 0 ? 'wrapper' : _b, _c = _a.Backdrop, Backdrop = _c === void 0 ? coreComponentsBackdrop.Backdrop : _c, _d = _a.backdropProps, backdropProps = _d === void 0 ? {} : _d, _e = _a.transitionProps, transitionProps = _e === void 0 ? {} : _e, disableBackdropClick = _a.disableBackdropClick, _f = _a.disableAutoFocus, disableAutoFocus = _f === void 0 ? false : _f, _g = _a.disableFocusLock, disableFocusLock = _g === void 0 ? false : _g, _h = _a.disableEscapeKeyDown, disableEscapeKeyDown = _h === void 0 ? false : _h, _j = _a.disableRestoreFocus, disableRestoreFocus = _j === void 0 ? false : _j, _k = _a.disableBlockingScroll, disableBlockingScroll = _k === void 0 ? false : _k, _l = _a.keepMounted, keepMounted = _l === void 0 ? false : _l, className = _a.className, contentClassName = _a.contentClassName, wrapperProps = _a.wrapperProps, contentProps = _a.contentProps, componentDivProps = _a.componentDivProps, wrapperClassName = _a.wrapperClassName, onBackdropClick = _a.onBackdropClick, onClose = _a.onClose, onEscapeKeyDown = _a.onEscapeKeyDown, onMount = _a.onMount, onUnmount = _a.onUnmount, dataTestId = _a.dataTestId, _m = _a.zIndex, zIndex = _m === void 0 ? stackContext.stackingOrder.MODAL : _m, _o = _a.componentRef, componentRef = _o === void 0 ? null : _o, _p = _a.usePortal, usePortal = _p === void 0 ? true : _p, _q = _a.iOSLock, iOSLock = _q === void 0 ? false : _q;
|
|
45
46
|
var _r = React.useState(null), exited = _r[0], setExited = _r[1];
|
|
46
47
|
var _s = React.useState(false), hasScroll = _s[0], setHasScroll = _s[1];
|
|
47
48
|
var _t = React.useState(false), hasHeader = _t[0], setHasHeader = _t[1];
|
|
@@ -8,7 +8,8 @@ import cn from 'classnames';
|
|
|
8
8
|
import { Backdrop } from '../../backdrop/esm';
|
|
9
9
|
import { Portal } from '../../portal/esm';
|
|
10
10
|
import { os, browser } from '../../shared/esm';
|
|
11
|
-
import {
|
|
11
|
+
import { Stack } from '../../stack/esm';
|
|
12
|
+
import { stackingOrder } from '@alfalab/stack-context';
|
|
12
13
|
import { unlockScroll, syncHeight, lockScroll } from './helpers/lockScroll.js';
|
|
13
14
|
import { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerStyles, hasScrollbar } from './utils.js';
|
|
14
15
|
import './matches-polyfill.js';
|
package/base-modal/esm/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import cn from 'classnames';
|
|
|
7
7
|
import { Backdrop } from '../../backdrop/modern';
|
|
8
8
|
import { Portal } from '../../portal/modern';
|
|
9
9
|
import { os, browser } from '../../shared/modern';
|
|
10
|
-
import {
|
|
10
|
+
import { Stack } from '../../stack/modern';
|
|
11
|
+
import { stackingOrder } from '@alfalab/stack-context';
|
|
11
12
|
import { unlockScroll, syncHeight, lockScroll } from './helpers/lockScroll.js';
|
|
12
13
|
import { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerStyles, hasScrollbar } from './utils.js';
|
|
13
14
|
import './matches-polyfill.js';
|
|
@@ -10,6 +10,7 @@ import '../../backdrop/modern';
|
|
|
10
10
|
import '../../portal/modern';
|
|
11
11
|
import '../../shared/modern';
|
|
12
12
|
import '../../stack/modern';
|
|
13
|
+
import '@alfalab/stack-context';
|
|
13
14
|
import './helpers/lockScroll.js';
|
|
14
15
|
import './matches-polyfill.js';
|
|
15
16
|
import '../../global-store/modern';
|
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;
|
|
@@ -5,7 +5,7 @@ var context = require('../../context.js');
|
|
|
5
5
|
var utils_utils = require('../../utils/utils.js');
|
|
6
6
|
var utils_constants = require('../../utils/constants.js');
|
|
7
7
|
var components_headerInfoBlock_Component = require('../header-info-block/Component.js');
|
|
8
|
-
var components_header_buttons = require('../../buttons-
|
|
8
|
+
var components_header_buttons = require('../../buttons-2c587253.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
@@ -8,7 +8,7 @@ require('@alfalab/icons-glyph/ArrowsInwardMIcon');
|
|
|
8
8
|
require('@alfalab/icons-glyph/ArrowsOutwardMIcon');
|
|
9
9
|
require('@alfalab/icons-glyph/CrossMIcon');
|
|
10
10
|
require('@alfalab/icons-glyph/PointerDownMIcon');
|
|
11
|
-
var components_header_buttons = require('../../buttons-
|
|
11
|
+
var components_header_buttons = require('../../buttons-2c587253.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -12,7 +12,7 @@ var ChevronForwardHeavyMIcon = require('@alfalab/icons-glyph/ChevronForwardHeavy
|
|
|
12
12
|
var context = require('../../context.js');
|
|
13
13
|
var utils_utils = require('../../utils/utils.js');
|
|
14
14
|
var utils_constants = require('../../utils/constants.js');
|
|
15
|
-
var components_imageViewer_slide = require('../../slide-
|
|
15
|
+
var components_imageViewer_slide = require('../../slide-a4b1c89f.js');
|
|
16
16
|
require('swiper/swiper.min.css');
|
|
17
17
|
|
|
18
18
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -6,7 +6,7 @@ require('../../../typography');
|
|
|
6
6
|
require('../../utils/utils.js');
|
|
7
7
|
require('../../utils/constants.js');
|
|
8
8
|
require('./paths.js');
|
|
9
|
-
var components_imageViewer_slide = require('../../slide-
|
|
9
|
+
var components_imageViewer_slide = require('../../slide-a4b1c89f.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
package/gallery/esm/Component.js
CHANGED
|
@@ -20,13 +20,13 @@ import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
|
20
20
|
import './components/image-preview/paths.js';
|
|
21
21
|
import './components/header-info-block/Component.js';
|
|
22
22
|
import './utils/split-filename.js';
|
|
23
|
-
import './buttons-
|
|
23
|
+
import './buttons-fb317559.js';
|
|
24
24
|
import 'element-closest';
|
|
25
25
|
import 'swiper';
|
|
26
26
|
import 'swiper/react';
|
|
27
27
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
28
28
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
29
|
-
import './slide-
|
|
29
|
+
import './slide-cb44c8ba.js';
|
|
30
30
|
import './components/image-viewer/paths.js';
|
|
31
31
|
import 'swiper/swiper.min.css';
|
|
32
32
|
|
|
@@ -3,7 +3,7 @@ import { GalleryContext } from '../../context.js';
|
|
|
3
3
|
import { isSmallImage } from '../../utils/utils.js';
|
|
4
4
|
import { TestIds } from '../../utils/constants.js';
|
|
5
5
|
import { HeaderInfoBlock } from '../header-info-block/Component.js';
|
|
6
|
-
import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-
|
|
6
|
+
import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-fb317559.js';
|
|
7
7
|
import '../../../../typography/esm';
|
|
8
8
|
import '../../utils/split-filename.js';
|
|
9
9
|
import 'tslib';
|
|
@@ -6,4 +6,4 @@ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
|
6
6
|
import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
|
|
7
7
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
8
8
|
import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
9
|
-
export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-
|
|
9
|
+
export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-fb317559.js';
|
|
@@ -6,7 +6,7 @@ import '../../utils/constants.js';
|
|
|
6
6
|
import '../header-info-block/Component.js';
|
|
7
7
|
import '../../../../typography/esm';
|
|
8
8
|
import '../../utils/split-filename.js';
|
|
9
|
-
import '../../buttons-
|
|
9
|
+
import '../../buttons-fb317559.js';
|
|
10
10
|
import 'tslib';
|
|
11
11
|
import '../../../../icon-button/esm';
|
|
12
12
|
import '../../../../tooltip/esm/desktop';
|
|
@@ -20,7 +20,7 @@ import 'swiper/react';
|
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
22
22
|
import '../../utils/constants.js';
|
|
23
|
-
import '../../slide-
|
|
23
|
+
import '../../slide-cb44c8ba.js';
|
|
24
24
|
import '../image-viewer/paths.js';
|
|
25
25
|
import 'swiper/swiper.min.css';
|
|
26
26
|
|
|
@@ -20,7 +20,7 @@ import '@alfalab/hooks';
|
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
22
22
|
import '../../utils/constants.js';
|
|
23
|
-
import '../../slide-
|
|
23
|
+
import '../../slide-cb44c8ba.js';
|
|
24
24
|
import '../image-viewer/paths.js';
|
|
25
25
|
import 'swiper/swiper.min.css';
|
|
26
26
|
import './paths.js';
|
|
@@ -10,7 +10,7 @@ import { ChevronForwardHeavyMIcon } from '@alfalab/icons-glyph/ChevronForwardHea
|
|
|
10
10
|
import { GalleryContext } from '../../context.js';
|
|
11
11
|
import { getImageAlt, getImageKey } from '../../utils/utils.js';
|
|
12
12
|
import { TestIds } from '../../utils/constants.js';
|
|
13
|
-
import { s as styles, S as Slide } from '../../slide-
|
|
13
|
+
import { s as styles, S as Slide } from '../../slide-cb44c8ba.js';
|
|
14
14
|
import 'swiper/swiper.min.css';
|
|
15
15
|
import '../../../../typography/esm';
|
|
16
16
|
import './paths.js';
|
|
@@ -11,7 +11,7 @@ import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
|
11
11
|
import '../../context.js';
|
|
12
12
|
import '../../utils/utils.js';
|
|
13
13
|
import '../../utils/constants.js';
|
|
14
|
-
import '../../slide-
|
|
14
|
+
import '../../slide-cb44c8ba.js';
|
|
15
15
|
import '../../../../typography/esm';
|
|
16
16
|
import './paths.js';
|
|
17
17
|
import 'swiper/swiper.min.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '../../../../typography/esm';
|
|
4
|
-
export { S as Slide } from '../../slide-
|
|
4
|
+
export { S as Slide } from '../../slide-cb44c8ba.js';
|
|
5
5
|
import '../../utils/utils.js';
|
|
6
6
|
import '../../utils/constants.js';
|
|
7
7
|
import './paths.js';
|
|
@@ -22,10 +22,10 @@ import 'swiper/react';
|
|
|
22
22
|
import '@alfalab/hooks';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
24
24
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
25
|
-
import '../slide-
|
|
25
|
+
import '../slide-cb44c8ba.js';
|
|
26
26
|
import './image-viewer/paths.js';
|
|
27
27
|
import 'swiper/swiper.min.css';
|
|
28
28
|
import './image-preview/paths.js';
|
|
29
29
|
import './header-info-block/Component.js';
|
|
30
30
|
import '../utils/split-filename.js';
|
|
31
|
-
import '../buttons-
|
|
31
|
+
import '../buttons-fb317559.js';
|
|
@@ -20,7 +20,7 @@ import 'swiper/react';
|
|
|
20
20
|
import '@alfalab/hooks';
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
23
|
-
import '../../slide-
|
|
23
|
+
import '../../slide-cb44c8ba.js';
|
|
24
24
|
import '../image-viewer/paths.js';
|
|
25
25
|
import 'swiper/swiper.min.css';
|
|
26
26
|
import '../image-preview/paths.js';
|
|
@@ -21,7 +21,7 @@ import 'swiper/react';
|
|
|
21
21
|
import '@alfalab/hooks';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
24
|
-
import '../../slide-
|
|
24
|
+
import '../../slide-cb44c8ba.js';
|
|
25
25
|
import '../image-viewer/paths.js';
|
|
26
26
|
import 'swiper/swiper.min.css';
|
|
27
27
|
import '../image-preview/paths.js';
|
package/gallery/esm/index.js
CHANGED
|
@@ -23,10 +23,10 @@ import 'swiper/react';
|
|
|
23
23
|
import '@alfalab/hooks';
|
|
24
24
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
25
25
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
26
|
-
import './slide-
|
|
26
|
+
import './slide-cb44c8ba.js';
|
|
27
27
|
import './components/image-viewer/paths.js';
|
|
28
28
|
import 'swiper/swiper.min.css';
|
|
29
29
|
import './components/image-preview/paths.js';
|
|
30
30
|
import './components/header/Component.js';
|
|
31
31
|
import './components/header-info-block/Component.js';
|
|
32
|
-
import './buttons-
|
|
32
|
+
import './buttons-fb317559.js';
|
|
@@ -19,13 +19,13 @@ import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
|
19
19
|
import './components/image-preview/paths.js';
|
|
20
20
|
import './components/header-info-block/Component.js';
|
|
21
21
|
import './utils/split-filename.js';
|
|
22
|
-
import './buttons-
|
|
22
|
+
import './buttons-0d4c9cc6.js';
|
|
23
23
|
import 'element-closest';
|
|
24
24
|
import 'swiper';
|
|
25
25
|
import 'swiper/react';
|
|
26
26
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
27
27
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
28
|
-
import './slide-
|
|
28
|
+
import './slide-3771e01f.js';
|
|
29
29
|
import './components/image-viewer/paths.js';
|
|
30
30
|
import 'swiper/swiper.min.css';
|
|
31
31
|
|
|
@@ -3,7 +3,7 @@ import { GalleryContext } from '../../context.js';
|
|
|
3
3
|
import { isSmallImage } from '../../utils/utils.js';
|
|
4
4
|
import { TestIds } from '../../utils/constants.js';
|
|
5
5
|
import { HeaderInfoBlock } from '../header-info-block/Component.js';
|
|
6
|
-
import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-
|
|
6
|
+
import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-0d4c9cc6.js';
|
|
7
7
|
import '../../../../typography/modern';
|
|
8
8
|
import '../../utils/split-filename.js';
|
|
9
9
|
import '../../../../icon-button/modern';
|
|
@@ -5,4 +5,4 @@ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
|
5
5
|
import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
|
|
6
6
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
7
7
|
import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
8
|
-
export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-
|
|
8
|
+
export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-0d4c9cc6.js';
|
|
@@ -6,7 +6,7 @@ import '../../utils/constants.js';
|
|
|
6
6
|
import '../header-info-block/Component.js';
|
|
7
7
|
import '../../../../typography/modern';
|
|
8
8
|
import '../../utils/split-filename.js';
|
|
9
|
-
import '../../buttons-
|
|
9
|
+
import '../../buttons-0d4c9cc6.js';
|
|
10
10
|
import '../../../../icon-button/modern';
|
|
11
11
|
import '../../../../tooltip/modern/desktop';
|
|
12
12
|
import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
@@ -19,7 +19,7 @@ import 'swiper/react';
|
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
21
21
|
import '../../utils/constants.js';
|
|
22
|
-
import '../../slide-
|
|
22
|
+
import '../../slide-3771e01f.js';
|
|
23
23
|
import '../image-viewer/paths.js';
|
|
24
24
|
import 'swiper/swiper.min.css';
|
|
25
25
|
|
|
@@ -19,7 +19,7 @@ import '@alfalab/hooks';
|
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
21
21
|
import '../../utils/constants.js';
|
|
22
|
-
import '../../slide-
|
|
22
|
+
import '../../slide-3771e01f.js';
|
|
23
23
|
import '../image-viewer/paths.js';
|
|
24
24
|
import 'swiper/swiper.min.css';
|
|
25
25
|
import './paths.js';
|
|
@@ -9,7 +9,7 @@ import { ChevronForwardHeavyMIcon } from '@alfalab/icons-glyph/ChevronForwardHea
|
|
|
9
9
|
import { GalleryContext } from '../../context.js';
|
|
10
10
|
import { getImageAlt, getImageKey } from '../../utils/utils.js';
|
|
11
11
|
import { TestIds } from '../../utils/constants.js';
|
|
12
|
-
import { s as styles, S as Slide } from '../../slide-
|
|
12
|
+
import { s as styles, S as Slide } from '../../slide-3771e01f.js';
|
|
13
13
|
import 'swiper/swiper.min.css';
|
|
14
14
|
import '../../../../typography/modern';
|
|
15
15
|
import './paths.js';
|
|
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
|
10
10
|
import '../../context.js';
|
|
11
11
|
import '../../utils/utils.js';
|
|
12
12
|
import '../../utils/constants.js';
|
|
13
|
-
import '../../slide-
|
|
13
|
+
import '../../slide-3771e01f.js';
|
|
14
14
|
import '../../../../typography/modern';
|
|
15
15
|
import './paths.js';
|
|
16
16
|
import 'swiper/swiper.min.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '../../../../typography/modern';
|
|
4
|
-
export { S as Slide } from '../../slide-
|
|
4
|
+
export { S as Slide } from '../../slide-3771e01f.js';
|
|
5
5
|
import '../../utils/utils.js';
|
|
6
6
|
import '../../utils/constants.js';
|
|
7
7
|
import './paths.js';
|
|
@@ -21,10 +21,10 @@ import 'swiper/react';
|
|
|
21
21
|
import '@alfalab/hooks';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
24
|
-
import '../slide-
|
|
24
|
+
import '../slide-3771e01f.js';
|
|
25
25
|
import './image-viewer/paths.js';
|
|
26
26
|
import 'swiper/swiper.min.css';
|
|
27
27
|
import './image-preview/paths.js';
|
|
28
28
|
import './header-info-block/Component.js';
|
|
29
29
|
import '../utils/split-filename.js';
|
|
30
|
-
import '../buttons-
|
|
30
|
+
import '../buttons-0d4c9cc6.js';
|
|
@@ -19,7 +19,7 @@ import 'swiper/react';
|
|
|
19
19
|
import '@alfalab/hooks';
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
22
|
-
import '../../slide-
|
|
22
|
+
import '../../slide-3771e01f.js';
|
|
23
23
|
import '../image-viewer/paths.js';
|
|
24
24
|
import 'swiper/swiper.min.css';
|
|
25
25
|
import '../image-preview/paths.js';
|
|
@@ -20,7 +20,7 @@ import 'swiper/react';
|
|
|
20
20
|
import '@alfalab/hooks';
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
23
|
-
import '../../slide-
|
|
23
|
+
import '../../slide-3771e01f.js';
|
|
24
24
|
import '../image-viewer/paths.js';
|
|
25
25
|
import 'swiper/swiper.min.css';
|
|
26
26
|
import '../image-preview/paths.js';
|
package/gallery/modern/index.js
CHANGED
|
@@ -22,10 +22,10 @@ import 'swiper/react';
|
|
|
22
22
|
import '@alfalab/hooks';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
24
24
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
25
|
-
import './slide-
|
|
25
|
+
import './slide-3771e01f.js';
|
|
26
26
|
import './components/image-viewer/paths.js';
|
|
27
27
|
import 'swiper/swiper.min.css';
|
|
28
28
|
import './components/image-preview/paths.js';
|
|
29
29
|
import './components/header/Component.js';
|
|
30
30
|
import './components/header-info-block/Component.js';
|
|
31
|
-
import './buttons-
|
|
31
|
+
import './buttons-0d4c9cc6.js';
|
|
@@ -22,6 +22,11 @@ type IconButtonProps = {
|
|
|
22
22
|
* Дополнительный класс
|
|
23
23
|
*/
|
|
24
24
|
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Включает прозрачный фон
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
transparentBg?: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* Выравнивание иконки
|
|
27
32
|
* @default 'center'
|
|
@@ -56,6 +61,11 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
56
61
|
* Дополнительный класс
|
|
57
62
|
*/
|
|
58
63
|
className?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Включает прозрачный фон
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
transparentBg?: boolean | undefined;
|
|
59
69
|
/**
|
|
60
70
|
* Выравнивание иконки
|
|
61
71
|
* @default 'center'
|
package/icon-button/Component.js
CHANGED
|
@@ -10,13 +10,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
11
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
12
12
|
|
|
13
|
-
var defaultColors = {"primary":"icon-button__primary_4tbui","secondary":"icon-button__secondary_4tbui","transparent":"icon-button__transparent_4tbui","negative":"icon-button__negative_4tbui","tertiary":"icon-button__tertiary_4tbui","component":"icon-button__component_4tbui","loader":"icon-button__loader_4tbui"};
|
|
13
|
+
var defaultColors = {"primary":"icon-button__primary_4tbui","secondary":"icon-button__secondary_4tbui","transparent":"icon-button__transparent_4tbui","negative":"icon-button__negative_4tbui","tertiary":"icon-button__tertiary_4tbui","transparentBg":"icon-button__transparentBg_4tbui","component":"icon-button__component_4tbui","loader":"icon-button__loader_4tbui"};
|
|
14
14
|
require('./default.css');
|
|
15
15
|
|
|
16
16
|
var styles = {"size-24":"icon-button__size-24_1s5jk","size-32":"icon-button__size-32_1s5jk","size-40":"icon-button__size-40_1s5jk","size-48":"icon-button__size-48_1s5jk","size-56":"icon-button__size-56_1s5jk","iconWrapper":"icon-button__iconWrapper_1s5jk","center":"icon-button__center_1s5jk","left":"icon-button__left_1s5jk","right":"icon-button__right_1s5jk","icon":"icon-button__icon_1s5jk"};
|
|
17
17
|
require('./index.css');
|
|
18
18
|
|
|
19
|
-
var invertedColors = {"primary":"icon-button__primary_gkd4v","secondary":"icon-button__secondary_gkd4v","transparent":"icon-button__transparent_gkd4v","negative":"icon-button__negative_gkd4v","tertiary":"icon-button__tertiary_gkd4v","component":"icon-button__component_gkd4v","loader":"icon-button__loader_gkd4v"};
|
|
19
|
+
var invertedColors = {"primary":"icon-button__primary_gkd4v","secondary":"icon-button__secondary_gkd4v","transparent":"icon-button__transparent_gkd4v","negative":"icon-button__negative_gkd4v","tertiary":"icon-button__tertiary_gkd4v","transparentBg":"icon-button__transparentBg_gkd4v","component":"icon-button__component_gkd4v","loader":"icon-button__loader_gkd4v"};
|
|
20
20
|
require('./inverted.css');
|
|
21
21
|
|
|
22
22
|
var colorStyles = {
|
|
@@ -35,9 +35,10 @@ var SIZE_TO_CLASSNAME_MAP = {
|
|
|
35
35
|
};
|
|
36
36
|
var IconButton = React.forwardRef(function (_a, ref) {
|
|
37
37
|
var _b;
|
|
38
|
-
var className = _a.className, Icon = _a.icon, _c = _a.view, view = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 48 : _d, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, _f = _a.alignIcon, alignIcon = _f === void 0 ? 'center' : _f, restProps = tslib.__rest(_a, ["className", "icon", "view", "size", "colors", "alignIcon"]);
|
|
38
|
+
var className = _a.className, Icon = _a.icon, _c = _a.view, view = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 48 : _d, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, _f = _a.alignIcon, alignIcon = _f === void 0 ? 'center' : _f, _g = _a.transparentBg, transparentBg = _g === void 0 ? false : _g, restProps = tslib.__rest(_a, ["className", "icon", "view", "size", "colors", "alignIcon", "transparentBg"]);
|
|
39
39
|
return (React__default.default.createElement(coreComponentsButton.Button, tslib.__assign({}, restProps, { ref: ref, view: 'text', className: cn__default.default('cc-icon-button', className, colorStyles[colors][view], colorStyles[colors].component, (_b = {},
|
|
40
40
|
_b[colorStyles[colors].loader] = restProps.loading,
|
|
41
|
+
_b[colorStyles[colors].transparentBg] = transparentBg,
|
|
41
42
|
_b)), size: 's' }),
|
|
42
43
|
React__default.default.createElement("span", { className: cn__default.default(styles.iconWrapper, styles[SIZE_TO_CLASSNAME_MAP[size]], styles[alignIcon]) }, React__default.default.isValidElement(Icon) ? (React__default.default.cloneElement(Icon, { className: cn__default.default(styles.icon, Icon.props.className) })) : (React__default.default.createElement(Icon, { className: styles.icon })))));
|
|
43
44
|
});
|
|
@@ -22,6 +22,11 @@ type IconButtonProps = {
|
|
|
22
22
|
* Дополнительный класс
|
|
23
23
|
*/
|
|
24
24
|
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Включает прозрачный фон
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
transparentBg?: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* Выравнивание иконки
|
|
27
32
|
* @default 'center'
|
|
@@ -56,6 +61,11 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
56
61
|
* Дополнительный класс
|
|
57
62
|
*/
|
|
58
63
|
className?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Включает прозрачный фон
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
transparentBg?: boolean | undefined;
|
|
59
69
|
/**
|
|
60
70
|
* Выравнивание иконки
|
|
61
71
|
* @default 'center'
|
|
@@ -32,9 +32,10 @@ var SIZE_TO_CLASSNAME_MAP = {
|
|
|
32
32
|
};
|
|
33
33
|
var IconButton = React.forwardRef(function (_a, ref) {
|
|
34
34
|
var _b;
|
|
35
|
-
var className = _a.className, Icon = _a.icon, _c = _a.view, view = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 48 : _d, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, _f = _a.alignIcon, alignIcon = _f === void 0 ? 'center' : _f, restProps = tslib.__rest(_a, ["className", "icon", "view", "size", "colors", "alignIcon"]);
|
|
35
|
+
var className = _a.className, Icon = _a.icon, _c = _a.view, view = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 48 : _d, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, _f = _a.alignIcon, alignIcon = _f === void 0 ? 'center' : _f, _g = _a.transparentBg, transparentBg = _g === void 0 ? false : _g, restProps = tslib.__rest(_a, ["className", "icon", "view", "size", "colors", "alignIcon", "transparentBg"]);
|
|
36
36
|
return (React__default.default.createElement(coreComponentsButton.Button, tslib.__assign({}, restProps, { ref: ref, view: 'text', className: cn__default.default('cc-icon-button', className, colorStyles[colors][view], colorStyles[colors].component, (_b = {},
|
|
37
37
|
_b[colorStyles[colors].loader] = restProps.loading,
|
|
38
|
+
_b[colorStyles[colors].transparentBg] = transparentBg,
|
|
38
39
|
_b)), size: 's' }),
|
|
39
40
|
React__default.default.createElement("span", { className: cn__default.default(styles__default.default.iconWrapper, styles__default.default[SIZE_TO_CLASSNAME_MAP[size]], styles__default.default[alignIcon]) }, React__default.default.isValidElement(Icon) ? (React__default.default.cloneElement(Icon, { className: cn__default.default(styles__default.default.icon, Icon.props.className) })) : (React__default.default.createElement(Icon, { className: styles__default.default.icon })))));
|
|
40
41
|
});
|
|
@@ -12,7 +12,13 @@
|
|
|
12
12
|
--color-light-neutral-translucent-700-press: rgba(1, 1, 12, 0.63);
|
|
13
13
|
--color-light-status-negative: #ff4837;
|
|
14
14
|
--color-light-status-negative-hover: #ec2d20;
|
|
15
|
-
--color-light-status-negative-press: #c7241f;
|
|
15
|
+
--color-light-status-negative-press: #c7241f;
|
|
16
|
+
--color-light-text-negative: #ec2d20;
|
|
17
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
18
|
+
--color-light-text-secondary: rgba(4, 4, 19, 0.55);
|
|
19
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38);
|
|
20
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
21
|
+
--color-light-transparent-default-press: rgba(30, 43, 68, 0.08); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
16
22
|
--color-light-graphic-primary-alpha-30: rgba(14, 14, 14, 0.3);
|
|
17
23
|
--color-light-graphic-primary-alpha-40: rgba(14, 14, 14, 0.4);
|
|
18
24
|
--color-light-graphic-primary-alpha-50: rgba(14, 14, 14, 0.5);
|
|
@@ -88,7 +94,31 @@
|
|
|
88
94
|
color: var(--icon-button-tertiary-hover-color);
|
|
89
95
|
} :global(.cc-icon-button).tertiary:active {
|
|
90
96
|
color: var(--icon-button-tertiary-active-color);
|
|
91
|
-
} :global(.cc-icon-button).
|
|
97
|
+
} :global(.cc-icon-button).transparentBg.primary {
|
|
98
|
+
color: var(--color-light-text-primary)
|
|
99
|
+
} :global(.cc-icon-button).transparentBg.primary:hover {
|
|
100
|
+
background: var(--color-light-transparent-default-hover);
|
|
101
|
+
} :global(.cc-icon-button).transparentBg.primary:active {
|
|
102
|
+
background: var(--color-light-transparent-default-press);
|
|
103
|
+
} :global(.cc-icon-button).transparentBg.secondary {
|
|
104
|
+
color: var(--color-light-text-secondary)
|
|
105
|
+
} :global(.cc-icon-button).transparentBg.secondary:hover {
|
|
106
|
+
background: var(--color-light-transparent-default-hover);
|
|
107
|
+
} :global(.cc-icon-button).transparentBg.secondary:active {
|
|
108
|
+
background: var(--color-light-transparent-default-press);
|
|
109
|
+
} :global(.cc-icon-button).transparentBg.negative {
|
|
110
|
+
color: var(--color-light-text-negative)
|
|
111
|
+
} :global(.cc-icon-button).transparentBg.negative:hover {
|
|
112
|
+
background: var(--color-light-transparent-default-hover);
|
|
113
|
+
} :global(.cc-icon-button).transparentBg.negative:active {
|
|
114
|
+
background: var(--color-light-transparent-default-press);
|
|
115
|
+
} :global(.cc-icon-button).transparentBg.tertiary {
|
|
116
|
+
color: var(--color-light-text-tertiary)
|
|
117
|
+
} :global(.cc-icon-button).transparentBg.tertiary:hover {
|
|
118
|
+
background: var(--color-light-transparent-default-hover);
|
|
119
|
+
} :global(.cc-icon-button).transparentBg.tertiary:active {
|
|
120
|
+
background: var(--color-light-transparent-default-press);
|
|
121
|
+
} :global(.cc-icon-button).component:disabled.primary {
|
|
92
122
|
color: var(--icon-button-primary-disabled-color)
|
|
93
123
|
} :global(.cc-icon-button).component:disabled.primary.loader {
|
|
94
124
|
color: var(--icon-button-primary-base-color);
|
|
@@ -104,4 +134,6 @@
|
|
|
104
134
|
color: var(--icon-button-tertiary-disabled-color)
|
|
105
135
|
} :global(.cc-icon-button).component:disabled.tertiary.loader {
|
|
106
136
|
color: var(--icon-button-tertiary-base-color);
|
|
107
|
-
}
|
|
137
|
+
} :global(.cc-icon-button).component:disabled.transparentBg {
|
|
138
|
+
background: transparent;
|
|
139
|
+
}
|