@alfalab/core-components 46.0.0-beta.3 → 46.0.0-beta.5
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 +1 -2
- package/base-modal/cssm/Component.js +1 -2
- package/base-modal/esm/Component.js +1 -2
- package/base-modal/esm/index.js +0 -1
- package/base-modal/modern/Component.js +1 -2
- package/base-modal/modern/index.js +0 -1
- package/bottom-sheet/component.js +9 -3
- package/bottom-sheet/cssm/component.js +9 -3
- package/bottom-sheet/esm/component.js +10 -4
- package/bottom-sheet/modern/component.js +9 -4
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.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 +1 -1
- 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 +1 -1
- 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/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/international-phone-input/cssm/index-136acbb1.d.ts +28 -0
- package/international-phone-input/esm/index-136acbb1.d.ts +28 -0
- package/international-phone-input/index-136acbb1.d.ts +28 -0
- package/international-phone-input/modern/index-136acbb1.d.ts +28 -0
- 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 +1 -2
- package/notification/cssm/Component.js +1 -2
- package/notification/esm/Component.js +1 -2
- package/notification/esm/index.js +0 -1
- package/notification/modern/Component.js +1 -2
- package/notification/modern/index.js +0 -1
- package/notification-manager/component.js +1 -2
- package/notification-manager/cssm/component.js +1 -2
- package/notification-manager/esm/component.js +1 -2
- package/notification-manager/esm/index.js +0 -1
- package/notification-manager/modern/component.js +1 -2
- package/notification-manager/modern/index.js +0 -1
- package/package.json +1 -2
- package/picker-button/cssm/index-bdb4c6b9.d.ts +13 -1
- package/picker-button/esm/index-bdb4c6b9.d.ts +13 -1
- package/picker-button/index-bdb4c6b9.d.ts +13 -1
- package/picker-button/modern/index-bdb4c6b9.d.ts +13 -1
- package/popover/Component.js +1 -2
- package/popover/cssm/Component.js +1 -2
- package/popover/esm/Component.js +1 -2
- package/popover/esm/index.js +0 -1
- package/popover/modern/Component.js +1 -2
- package/popover/modern/index.js +0 -1
- package/select/esm/Component.responsive.js +1 -1
- 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/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/stack/component.js +4 -4
- package/stack/context.d.ts +29 -0
- package/stack/context.js +34 -0
- package/stack/cssm/component.js +4 -4
- package/stack/cssm/context.d.ts +29 -0
- package/stack/cssm/context.js +34 -0
- package/stack/cssm/index.d.ts +1 -0
- package/stack/cssm/index.js +3 -0
- package/stack/esm/component.js +1 -1
- package/stack/esm/context.d.ts +29 -0
- package/stack/esm/context.js +31 -0
- package/stack/esm/index.d.ts +1 -0
- package/stack/esm/index.js +1 -1
- package/stack/index.d.ts +1 -0
- package/stack/index.js +3 -0
- package/stack/modern/component.js +1 -1
- package/stack/modern/context.d.ts +29 -0
- package/stack/modern/context.js +31 -0
- package/stack/modern/index.d.ts +1 -0
- package/stack/modern/index.js +1 -1
- package/textarea/Component.js +1 -1
- package/textarea/components/PseudoTextArea.js +1 -1
- package/textarea/components/index.d.ts +1 -1
- package/textarea/components/index.js +1 -1
- package/textarea/esm/Component.js +1 -1
- package/textarea/esm/components/PseudoTextArea.js +1 -1
- package/textarea/esm/components/index.d.ts +1 -1
- package/textarea/esm/components/index.js +1 -1
- package/textarea/esm/index.js +1 -1
- package/textarea/modern/Component.js +1 -1
- package/textarea/modern/components/PseudoTextArea.js +1 -1
- package/textarea/modern/components/index.d.ts +1 -1
- package/textarea/modern/components/index.js +1 -1
- package/textarea/modern/index.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +76 -215
- package/toast/components/base-toast/component.js +1 -2
- package/toast/cssm/components/base-toast/component.js +1 -2
- package/toast/esm/Component.responsive.js +0 -1
- package/toast/esm/components/base-toast/component.js +1 -2
- package/toast/esm/components/base-toast/index.js +0 -1
- package/toast/esm/desktop/Component.desktop.js +0 -1
- package/toast/esm/desktop/index.js +0 -1
- package/toast/esm/index.js +0 -1
- package/toast/esm/mobile/Component.mobile.js +0 -1
- package/toast/esm/mobile/index.js +0 -1
- package/toast/modern/Component.responsive.js +0 -1
- package/toast/modern/components/base-toast/component.js +1 -2
- package/toast/modern/components/base-toast/index.js +0 -1
- package/toast/modern/desktop/Component.desktop.js +0 -1
- package/toast/modern/desktop/index.js +0 -1
- package/toast/modern/index.js +0 -1
- package/toast/modern/mobile/Component.mobile.js +0 -1
- package/toast/modern/mobile/index.js +0 -1
- 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 +13 -1
- package/universal-date-input/esm/index-5712fce2.d.ts +13 -1
- package/universal-date-input/index-5712fce2.d.ts +13 -1
- package/universal-date-input/modern/index-5712fce2.d.ts +13 -1
- package/international-phone-input/cssm/index-7ca84eff.d.ts +0 -15
- package/international-phone-input/esm/index-7ca84eff.d.ts +0 -15
- package/international-phone-input/index-7ca84eff.d.ts +0 -15
- package/international-phone-input/modern/index-7ca84eff.d.ts +0 -15
- /package/confirmation/{countdown-section-80b2f871.d.ts → countdown-section-f9e4f884.d.ts} +0 -0
- /package/confirmation/{countdown-section-80b2f871.js → countdown-section-f9e4f884.js} +0 -0
- /package/confirmation/esm/{countdown-section-acc1051f.d.ts → countdown-section-540da1e3.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-acc1051f.js → countdown-section-540da1e3.js} +0 -0
- /package/confirmation/modern/{countdown-section-91463948.d.ts → countdown-section-d3385b29.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-91463948.js → countdown-section-d3385b29.js} +0 -0
- /package/gallery/{buttons-2d32d0ff.d.ts → buttons-0e0683d9.d.ts} +0 -0
- /package/gallery/{buttons-2d32d0ff.js → buttons-0e0683d9.js} +0 -0
- /package/gallery/esm/{buttons-7f3fd122.d.ts → buttons-eabdb51b.d.ts} +0 -0
- /package/gallery/esm/{buttons-7f3fd122.js → buttons-eabdb51b.js} +0 -0
- /package/gallery/esm/{slide-296478be.d.ts → slide-a8f6ccc1.d.ts} +0 -0
- /package/gallery/esm/{slide-296478be.js → slide-a8f6ccc1.js} +0 -0
- /package/gallery/modern/{buttons-efa9898e.d.ts → buttons-062ff167.d.ts} +0 -0
- /package/gallery/modern/{buttons-efa9898e.js → buttons-062ff167.js} +0 -0
- /package/gallery/modern/{slide-7d442501.d.ts → slide-b5566e19.d.ts} +0 -0
- /package/gallery/modern/{slide-7d442501.js → slide-b5566e19.js} +0 -0
- /package/gallery/{slide-4fbf6ff4.d.ts → slide-3d8ed06b.d.ts} +0 -0
- /package/gallery/{slide-4fbf6ff4.js → slide-3d8ed06b.js} +0 -0
- /package/modal/esm/{layout.module-8c2ad581.js → layout.module-ed84e654.js} +0 -0
- /package/modal/{layout.module-9c7f42a7.js → layout.module-74d56d9e.js} +0 -0
- /package/modal/modern/{layout.module-7b9f84d6.js → layout.module-169c9cd4.js} +0 -0
- /package/select/esm/{hook-74e64a0c.d.ts → hook-43f97773.d.ts} +0 -0
- /package/select/esm/{hook-74e64a0c.js → hook-43f97773.js} +0 -0
- /package/select/{hook-0bb52889.d.ts → hook-47df637e.d.ts} +0 -0
- /package/select/{hook-0bb52889.js → hook-47df637e.js} +0 -0
- /package/select/modern/{hook-6af684e1.d.ts → hook-72d63281.d.ts} +0 -0
- /package/select/modern/{hook-6af684e1.js → hook-72d63281.js} +0 -0
- /package/side-panel/esm/{layout.module-42bf261d.js → layout.module-72cc1a7a.js} +0 -0
- /package/side-panel/{layout.module-2ea47a88.js → layout.module-cfb65ab1.js} +0 -0
- /package/side-panel/modern/{layout.module-39651e51.js → layout.module-3503b091.js} +0 -0
- /package/textarea/{PseudoTextArea-53ba3572.d.ts → PseudoTextArea-7681334c.d.ts} +0 -0
- /package/textarea/{PseudoTextArea-53ba3572.js → PseudoTextArea-7681334c.js} +0 -0
- /package/textarea/esm/{PseudoTextArea-278ebb87.d.ts → PseudoTextArea-850a55b5.d.ts} +0 -0
- /package/textarea/esm/{PseudoTextArea-278ebb87.js → PseudoTextArea-850a55b5.js} +0 -0
- /package/textarea/modern/{PseudoTextArea-0d65e973.d.ts → PseudoTextArea-c51ed577.d.ts} +0 -0
- /package/textarea/modern/{PseudoTextArea-0d65e973.js → PseudoTextArea-c51ed577.js} +0 -0
- /package/toast-plate/esm/{getDataTestId-32d52205.d.ts → getDataTestId-f4dc32c7.d.ts} +0 -0
- /package/toast-plate/esm/{getDataTestId-32d52205.js → getDataTestId-f4dc32c7.js} +0 -0
- /package/toast-plate/{getDataTestId-1de39d74.d.ts → getDataTestId-442368bd.d.ts} +0 -0
- /package/toast-plate/{getDataTestId-1de39d74.js → getDataTestId-442368bd.js} +0 -0
- /package/toast-plate/modern/{getDataTestId-dd00ab19.d.ts → getDataTestId-16038735.d.ts} +0 -0
- /package/toast-plate/modern/{getDataTestId-dd00ab19.js → getDataTestId-16038735.js} +0 -0
|
@@ -9,7 +9,6 @@ var elementClosest = require('element-closest');
|
|
|
9
9
|
var coreComponentsPortal = require('../portal');
|
|
10
10
|
var coreComponentsStack = require('../stack');
|
|
11
11
|
var desktop = require('../toast-plate/desktop');
|
|
12
|
-
var stackContext = require('@alfalab/stack-context');
|
|
13
12
|
var utils_index = require('./utils/index.js');
|
|
14
13
|
|
|
15
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -24,7 +23,7 @@ require('./index.css');
|
|
|
24
23
|
|
|
25
24
|
var notificationClassNameSelector = ".".concat(styles.notificationComponent);
|
|
26
25
|
var Notification = React.forwardRef(function (_a, ref) {
|
|
27
|
-
var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ?
|
|
26
|
+
var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? coreComponentsStack.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
|
|
28
27
|
var notificationRef = React.useRef(null);
|
|
29
28
|
var autoCloseTimeoutRef = React.useRef(0);
|
|
30
29
|
var closeTimeoutRef = React.useRef(0);
|
|
@@ -9,7 +9,6 @@ var elementClosest = require('element-closest');
|
|
|
9
9
|
var coreComponentsPortal = require('../../portal/cssm');
|
|
10
10
|
var coreComponentsStack = require('../../stack/cssm');
|
|
11
11
|
var desktop = require('../../toast-plate/cssm/desktop');
|
|
12
|
-
var stackContext = require('@alfalab/stack-context');
|
|
13
12
|
var utils_index = require('./utils/index.js');
|
|
14
13
|
var styles = require('./index.module.css');
|
|
15
14
|
|
|
@@ -23,7 +22,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
23
22
|
|
|
24
23
|
var notificationClassNameSelector = ".".concat(styles__default.default.notificationComponent);
|
|
25
24
|
var Notification = React.forwardRef(function (_a, ref) {
|
|
26
|
-
var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ?
|
|
25
|
+
var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? coreComponentsStack.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
|
|
27
26
|
var notificationRef = React.useRef(null);
|
|
28
27
|
var autoCloseTimeoutRef = React.useRef(0);
|
|
29
28
|
var closeTimeoutRef = React.useRef(0);
|
|
@@ -5,9 +5,8 @@ import { useSwipeable } from 'react-swipeable';
|
|
|
5
5
|
import cn from 'classnames';
|
|
6
6
|
import elementClosest from 'element-closest';
|
|
7
7
|
import { Portal } from '../../portal/esm';
|
|
8
|
-
import { Stack } from '../../stack/esm';
|
|
8
|
+
import { stackingOrder, Stack } from '../../stack/esm';
|
|
9
9
|
import { ToastPlateDesktop } from '../../toast-plate/esm/desktop';
|
|
10
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
11
10
|
import { useClickOutside } from './utils/index.js';
|
|
12
11
|
|
|
13
12
|
var styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
|
|
@@ -4,9 +4,8 @@ import { useSwipeable } from 'react-swipeable';
|
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import elementClosest from 'element-closest';
|
|
6
6
|
import { Portal } from '../../portal/modern';
|
|
7
|
-
import { Stack } from '../../stack/modern';
|
|
7
|
+
import { Stack, stackingOrder } from '../../stack/modern';
|
|
8
8
|
import { ToastPlateDesktop } from '../../toast-plate/modern/desktop';
|
|
9
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
10
9
|
import { useClickOutside } from './utils/index.js';
|
|
11
10
|
|
|
12
11
|
const styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
|
|
@@ -6,7 +6,6 @@ var reactTransitionGroup = require('react-transition-group');
|
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var coreComponentsPortal = require('../portal');
|
|
8
8
|
var coreComponentsStack = require('../stack');
|
|
9
|
-
var stackContext = require('@alfalab/stack-context');
|
|
10
9
|
var components_notification_component = require('./components/notification/component.js');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -26,7 +25,7 @@ var TIMEOUT = {
|
|
|
26
25
|
enter: 400,
|
|
27
26
|
};
|
|
28
27
|
var NotificationManager = React.forwardRef(function (_a, ref) {
|
|
29
|
-
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ?
|
|
28
|
+
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
|
|
30
29
|
return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
|
|
31
30
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
|
|
32
31
|
React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
|
|
@@ -6,7 +6,6 @@ var reactTransitionGroup = require('react-transition-group');
|
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var coreComponentsPortal = require('../../portal/cssm');
|
|
8
8
|
var coreComponentsStack = require('../../stack/cssm');
|
|
9
|
-
var stackContext = require('@alfalab/stack-context');
|
|
10
9
|
var components_notification_component = require('./components/notification/component.js');
|
|
11
10
|
var styles = require('./index.module.css');
|
|
12
11
|
|
|
@@ -25,7 +24,7 @@ var TIMEOUT = {
|
|
|
25
24
|
enter: 400,
|
|
26
25
|
};
|
|
27
26
|
var NotificationManager = React.forwardRef(function (_a, ref) {
|
|
28
|
-
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ?
|
|
27
|
+
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
|
|
29
28
|
return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
|
|
30
29
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
|
|
31
30
|
React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
|
|
@@ -3,8 +3,7 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { Portal } from '../../portal/esm';
|
|
6
|
-
import { Stack } from '../../stack/esm';
|
|
7
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
6
|
+
import { stackingOrder, Stack } from '../../stack/esm';
|
|
8
7
|
import { Notification } from './components/notification/component.js';
|
|
9
8
|
|
|
10
9
|
var styles = {"component":"notification-manager__component_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
|
|
@@ -2,8 +2,7 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Portal } from '../../portal/modern';
|
|
5
|
-
import { Stack } from '../../stack/modern';
|
|
6
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
5
|
+
import { Stack, stackingOrder } from '../../stack/modern';
|
|
7
6
|
import { Notification } from './components/notification/component.js';
|
|
8
7
|
|
|
9
8
|
const styles = {"component":"notification-manager__component_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components",
|
|
3
|
-
"version": "46.0.0-beta.
|
|
3
|
+
"version": "46.0.0-beta.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"@alfalab/hooks": "^1.13.0",
|
|
57
57
|
"@alfalab/icons-glyph": "^2.139.0",
|
|
58
58
|
"@alfalab/icons-logotype": "^2.27.0",
|
|
59
|
-
"@alfalab/stack-context": "^1.16.0",
|
|
60
59
|
"@alfalab/utils": "^1.15.2",
|
|
61
60
|
"@dnd-kit/core": "^6.0.7",
|
|
62
61
|
"@dnd-kit/sortable": "^7.0.2",
|
|
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
174
174
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
175
175
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
176
176
|
declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
179
|
+
* Значения выбраны по приоритету.
|
|
180
|
+
*/
|
|
181
|
+
declare const stackingOrder: {
|
|
182
|
+
FOCUSED: number;
|
|
183
|
+
DEFAULT: number;
|
|
184
|
+
POPOVER: number;
|
|
185
|
+
MODAL: number;
|
|
186
|
+
TOAST: number;
|
|
187
|
+
};
|
|
188
|
+
declare const StackingContext: import("react").Context<number>;
|
|
177
189
|
type StackProps = {
|
|
178
190
|
/**
|
|
179
191
|
* Render prop, в который передается функция.
|
|
@@ -214,5 +226,5 @@ declare class GlobalStore {
|
|
|
214
226
|
constructor();
|
|
215
227
|
getModalStore: () => ModalStore;
|
|
216
228
|
}
|
|
217
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
229
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
218
230
|
export type { SavedStyle };
|
|
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
174
174
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
175
175
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
176
176
|
declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
179
|
+
* Значения выбраны по приоритету.
|
|
180
|
+
*/
|
|
181
|
+
declare const stackingOrder: {
|
|
182
|
+
FOCUSED: number;
|
|
183
|
+
DEFAULT: number;
|
|
184
|
+
POPOVER: number;
|
|
185
|
+
MODAL: number;
|
|
186
|
+
TOAST: number;
|
|
187
|
+
};
|
|
188
|
+
declare const StackingContext: import("react").Context<number>;
|
|
177
189
|
type StackProps = {
|
|
178
190
|
/**
|
|
179
191
|
* Render prop, в который передается функция.
|
|
@@ -214,5 +226,5 @@ declare class GlobalStore {
|
|
|
214
226
|
constructor();
|
|
215
227
|
getModalStore: () => ModalStore;
|
|
216
228
|
}
|
|
217
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
229
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
218
230
|
export type { SavedStyle };
|
|
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
174
174
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
175
175
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
176
176
|
declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
179
|
+
* Значения выбраны по приоритету.
|
|
180
|
+
*/
|
|
181
|
+
declare const stackingOrder: {
|
|
182
|
+
FOCUSED: number;
|
|
183
|
+
DEFAULT: number;
|
|
184
|
+
POPOVER: number;
|
|
185
|
+
MODAL: number;
|
|
186
|
+
TOAST: number;
|
|
187
|
+
};
|
|
188
|
+
declare const StackingContext: import("react").Context<number>;
|
|
177
189
|
type StackProps = {
|
|
178
190
|
/**
|
|
179
191
|
* Render prop, в который передается функция.
|
|
@@ -214,5 +226,5 @@ declare class GlobalStore {
|
|
|
214
226
|
constructor();
|
|
215
227
|
getModalStore: () => ModalStore;
|
|
216
228
|
}
|
|
217
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
229
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
218
230
|
export type { SavedStyle };
|
|
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
|
174
174
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
175
175
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
176
176
|
declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
179
|
+
* Значения выбраны по приоритету.
|
|
180
|
+
*/
|
|
181
|
+
declare const stackingOrder: {
|
|
182
|
+
FOCUSED: number;
|
|
183
|
+
DEFAULT: number;
|
|
184
|
+
POPOVER: number;
|
|
185
|
+
MODAL: number;
|
|
186
|
+
TOAST: number;
|
|
187
|
+
};
|
|
188
|
+
declare const StackingContext: import("react").Context<number>;
|
|
177
189
|
type StackProps = {
|
|
178
190
|
/**
|
|
179
191
|
* Render prop, в который передается функция.
|
|
@@ -214,5 +226,5 @@ declare class GlobalStore {
|
|
|
214
226
|
constructor();
|
|
215
227
|
getModalStore: () => ModalStore;
|
|
216
228
|
}
|
|
217
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
229
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
218
230
|
export type { SavedStyle };
|
package/popover/Component.js
CHANGED
|
@@ -11,7 +11,6 @@ var maxSize = require('popper-max-size-modifier');
|
|
|
11
11
|
var coreComponentsPortal = require('../portal');
|
|
12
12
|
var coreComponentsStack = require('../stack');
|
|
13
13
|
var hooks = require('@alfalab/hooks');
|
|
14
|
-
var stackContext = require('@alfalab/stack-context');
|
|
15
14
|
|
|
16
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
16
|
|
|
@@ -66,7 +65,7 @@ function getArrowPadding(_a) {
|
|
|
66
65
|
return 0;
|
|
67
66
|
}
|
|
68
67
|
var Popover = React.forwardRef(function (_a, ref) {
|
|
69
|
-
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ?
|
|
68
|
+
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? coreComponentsStack.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
|
|
70
69
|
var _l = React.useState(anchorElement), referenceElement = _l[0], setReferenceElement = _l[1];
|
|
71
70
|
var _m = React.useState(null), popperElement = _m[0], setPopperElement = _m[1];
|
|
72
71
|
var _o = React.useState(null), arrowElement = _o[0], setArrowElement = _o[1];
|
|
@@ -11,7 +11,6 @@ var maxSize = require('popper-max-size-modifier');
|
|
|
11
11
|
var coreComponentsPortal = require('../../portal/cssm');
|
|
12
12
|
var coreComponentsStack = require('../../stack/cssm');
|
|
13
13
|
var hooks = require('@alfalab/hooks');
|
|
14
|
-
var stackContext = require('@alfalab/stack-context');
|
|
15
14
|
var styles = require('./index.module.css');
|
|
16
15
|
|
|
17
16
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -65,7 +64,7 @@ function getArrowPadding(_a) {
|
|
|
65
64
|
return 0;
|
|
66
65
|
}
|
|
67
66
|
var Popover = React.forwardRef(function (_a, ref) {
|
|
68
|
-
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ?
|
|
67
|
+
var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? coreComponentsStack.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
|
|
69
68
|
var _l = React.useState(anchorElement), referenceElement = _l[0], setReferenceElement = _l[1];
|
|
70
69
|
var _m = React.useState(null), popperElement = _m[0], setPopperElement = _m[1];
|
|
71
70
|
var _o = React.useState(null), arrowElement = _o[0], setArrowElement = _o[1];
|
package/popover/esm/Component.js
CHANGED
|
@@ -7,9 +7,8 @@ import { ResizeObserver } from '@juggle/resize-observer';
|
|
|
7
7
|
import cn from 'classnames';
|
|
8
8
|
import maxSize from 'popper-max-size-modifier';
|
|
9
9
|
import { Portal } from '../../portal/esm';
|
|
10
|
-
import { Stack } from '../../stack/esm';
|
|
10
|
+
import { stackingOrder, Stack } from '../../stack/esm';
|
|
11
11
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
12
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
13
12
|
|
|
14
13
|
var styles = {"component":"popover__component_6dkfc","inner":"popover__inner_6dkfc","scrollableContent":"popover__scrollableContent_6dkfc","arrow":"popover__arrow_6dkfc","enter":"popover__enter_6dkfc","enterActive":"popover__enterActive_6dkfc","exit":"popover__exit_6dkfc","exitActive":"popover__exitActive_6dkfc"};
|
|
15
14
|
require('./index.css');
|
package/popover/esm/index.js
CHANGED
|
@@ -6,9 +6,8 @@ import { ResizeObserver } from '@juggle/resize-observer';
|
|
|
6
6
|
import cn from 'classnames';
|
|
7
7
|
import maxSize from 'popper-max-size-modifier';
|
|
8
8
|
import { Portal } from '../../portal/modern';
|
|
9
|
-
import { Stack } from '../../stack/modern';
|
|
9
|
+
import { Stack, stackingOrder } from '../../stack/modern';
|
|
10
10
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
11
|
-
import { stackingOrder } from '@alfalab/stack-context';
|
|
12
11
|
|
|
13
12
|
const styles = {"component":"popover__component_6dkfc","inner":"popover__inner_6dkfc","scrollableContent":"popover__scrollableContent_6dkfc","arrow":"popover__arrow_6dkfc","enter":"popover__enter_6dkfc","enterActive":"popover__enterActive_6dkfc","exit":"popover__exit_6dkfc","exitActive":"popover__exitActive_6dkfc"};
|
|
14
13
|
require('./index.css');
|
package/popover/modern/index.js
CHANGED
|
@@ -41,7 +41,7 @@ import '../../base-modal/esm';
|
|
|
41
41
|
import '../../button/esm/mobile';
|
|
42
42
|
import './components/virtual-options-list/Component.js';
|
|
43
43
|
import 'react-virtual';
|
|
44
|
-
import './hook-
|
|
44
|
+
import './hook-43f97773.js';
|
|
45
45
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
46
46
|
import '../../button/esm/desktop';
|
|
47
47
|
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
package/select/esm/index.js
CHANGED
|
@@ -41,7 +41,7 @@ import '../../base-modal/esm';
|
|
|
41
41
|
import '../../button/esm/mobile';
|
|
42
42
|
import './components/virtual-options-list/Component.js';
|
|
43
43
|
import 'react-virtual';
|
|
44
|
-
import './hook-
|
|
44
|
+
import './hook-43f97773.js';
|
|
45
45
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
46
46
|
import '../../button/esm/desktop';
|
|
47
47
|
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -12,7 +12,7 @@ import { Option } from '../components/option/Component.js';
|
|
|
12
12
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
13
13
|
import { Search } from '../components/search/Component.js';
|
|
14
14
|
import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
|
|
15
|
-
import { u as useSelectWithApply } from '../hook-
|
|
15
|
+
import { u as useSelectWithApply } from '../hook-43f97773.js';
|
|
16
16
|
import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
17
17
|
import 'classnames';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -37,7 +37,7 @@ import '../../../input/esm';
|
|
|
37
37
|
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
38
38
|
import '../components/virtual-options-list/Component.js';
|
|
39
39
|
import 'react-virtual';
|
|
40
|
-
import '../hook-
|
|
40
|
+
import '../hook-43f97773.js';
|
|
41
41
|
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
42
42
|
import '../../../button/esm/desktop';
|
|
43
43
|
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -38,7 +38,7 @@ import '../../../input/esm';
|
|
|
38
38
|
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
39
39
|
import '../components/virtual-options-list/Component.js';
|
|
40
40
|
import 'react-virtual';
|
|
41
|
-
import '../hook-
|
|
41
|
+
import '../hook-43f97773.js';
|
|
42
42
|
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
43
43
|
import '../../../button/esm/desktop';
|
|
44
44
|
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-43f97773.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../../skeleton/esm';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../../shared/esm';
|
|
4
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-
|
|
4
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-43f97773.js';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
import '../../components/options-list/Component.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../components/options-list/Component.js';
|
|
4
|
-
export { O as OptionsListWithApply } from '../../../hook-
|
|
4
|
+
export { O as OptionsListWithApply } from '../../../hook-43f97773.js';
|
|
5
5
|
import './footer/Component.js';
|
|
6
6
|
import './header/Component.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-43f97773";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-43f97773.js';
|
|
4
4
|
export { defaultAccessor, defaultFilterFn, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
|
|
5
5
|
export { Option } from '../components/option/Component.js';
|
|
6
6
|
export { BaseOption } from '../components/base-option/Component.js';
|
|
@@ -14,7 +14,7 @@ var components_option_Component = require('../components/option/Component.js');
|
|
|
14
14
|
var components_optionsList_Component = require('../components/options-list/Component.js');
|
|
15
15
|
var components_search_Component = require('../components/search/Component.js');
|
|
16
16
|
var components_virtualOptionsList_Component = require('../components/virtual-options-list/Component.js');
|
|
17
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
17
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-47df637e.js');
|
|
18
18
|
var presets_useSelectWithApply_optionsListWithApply_header_Component = require('../presets/useSelectWithApply/options-list-with-apply/header/Component.js');
|
|
19
19
|
|
|
20
20
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -40,7 +40,7 @@ import '../../base-modal/modern';
|
|
|
40
40
|
import '../../button/modern/mobile';
|
|
41
41
|
import './components/virtual-options-list/Component.js';
|
|
42
42
|
import 'react-virtual';
|
|
43
|
-
import './hook-
|
|
43
|
+
import './hook-72d63281.js';
|
|
44
44
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
45
45
|
import '../../button/modern/desktop';
|
|
46
46
|
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
package/select/modern/index.js
CHANGED
|
@@ -40,7 +40,7 @@ import '../../base-modal/modern';
|
|
|
40
40
|
import '../../button/modern/mobile';
|
|
41
41
|
import './components/virtual-options-list/Component.js';
|
|
42
42
|
import 'react-virtual';
|
|
43
|
-
import './hook-
|
|
43
|
+
import './hook-72d63281.js';
|
|
44
44
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
45
45
|
import '../../button/modern/desktop';
|
|
46
46
|
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -11,7 +11,7 @@ import { Option } from '../components/option/Component.js';
|
|
|
11
11
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
12
12
|
import { Search } from '../components/search/Component.js';
|
|
13
13
|
import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
|
|
14
|
-
import { u as useSelectWithApply } from '../hook-
|
|
14
|
+
import { u as useSelectWithApply } from '../hook-72d63281.js';
|
|
15
15
|
import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
16
16
|
import 'classnames';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -36,7 +36,7 @@ import '../../../input/modern';
|
|
|
36
36
|
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
37
37
|
import '../components/virtual-options-list/Component.js';
|
|
38
38
|
import 'react-virtual';
|
|
39
|
-
import '../hook-
|
|
39
|
+
import '../hook-72d63281.js';
|
|
40
40
|
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
41
41
|
import '../../../button/modern/desktop';
|
|
42
42
|
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -37,7 +37,7 @@ import '../../../input/modern';
|
|
|
37
37
|
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
38
38
|
import '../components/virtual-options-list/Component.js';
|
|
39
39
|
import 'react-virtual';
|
|
40
|
-
import '../hook-
|
|
40
|
+
import '../hook-72d63281.js';
|
|
41
41
|
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
42
42
|
import '../../../button/modern/desktop';
|
|
43
43
|
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-72d63281.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../../skeleton/modern';
|
|
6
6
|
import '../components/option/Component.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../../../../shared/modern';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-72d63281.js';
|
|
4
4
|
import '../../utils.js';
|
|
5
5
|
import '../../components/options-list/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../../../components/options-list/Component.js';
|
|
3
|
-
export { O as OptionsListWithApply } from '../../../hook-
|
|
3
|
+
export { O as OptionsListWithApply } from '../../../hook-72d63281.js';
|
|
4
4
|
import './footer/Component.js';
|
|
5
5
|
import './header/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-72d63281";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-72d63281.js';
|
|
4
4
|
export { defaultAccessor, defaultFilterFn, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
|
|
5
5
|
export { Option } from '../components/option/Component.js';
|
|
6
6
|
export { BaseOption } from '../components/base-option/Component.js';
|
package/select/presets/index.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
2
2
|
|
|
3
3
|
var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
|
|
4
4
|
var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
|
|
5
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
5
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-47df637e.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
require('tslib');
|
|
4
4
|
require('react');
|
|
5
5
|
require('../../utils.js');
|
|
6
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-
|
|
6
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-47df637e.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|