@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
|
@@ -4,7 +4,7 @@ import { getDataTestId } from '../../../../shared/esm';
|
|
|
4
4
|
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
5
5
|
import { ModalContext } from '../../Context.js';
|
|
6
6
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
7
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
7
|
+
import { l as layoutStyles } from '../../layout.module-5977466c.js';
|
|
8
8
|
import '../../../../base-modal/esm';
|
|
9
9
|
|
|
10
10
|
var desktopStyles = {"footer":"modal__footer_e5vdf","sticky":"modal__sticky_e5vdf","fullscreen":"modal__fullscreen_e5vdf","size-500":"modal__size-500_e5vdf","size-600":"modal__size-600_e5vdf","size-800":"modal__size-800_e5vdf","size-1140":"modal__size-1140_e5vdf"};
|
|
@@ -12,7 +12,7 @@ import '../consts.js';
|
|
|
12
12
|
import '../ResponsiveContext.js';
|
|
13
13
|
import '../../../shared/esm';
|
|
14
14
|
import '../Context.js';
|
|
15
|
-
import '../layout.module-
|
|
15
|
+
import '../layout.module-5977466c.js';
|
|
16
16
|
import '../../../navigation-bar-private/esm';
|
|
17
17
|
|
|
18
18
|
var ModalDesktopComponent = forwardRef(function (props, ref) { return (React.createElement(Modal, __assign({}, props, { ref: ref, view: 'desktop' }))); });
|
|
@@ -11,7 +11,7 @@ import '../components/content/Component.js';
|
|
|
11
11
|
import '../../../shared/esm';
|
|
12
12
|
import '../Context.js';
|
|
13
13
|
import '../components/controls/Component.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-5977466c.js';
|
|
15
15
|
import '../components/footer/Component.js';
|
|
16
16
|
import '../components/header/Component.js';
|
|
17
17
|
import '../../../navigation-bar-private/esm';
|
package/modal/esm/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import './Context.js';
|
|
|
10
10
|
import '../../base-modal/esm';
|
|
11
11
|
import './ResponsiveContext.js';
|
|
12
12
|
import './components/controls/Component.js';
|
|
13
|
-
import './layout.module-
|
|
13
|
+
import './layout.module-5977466c.js';
|
|
14
14
|
import './components/footer/Component.js';
|
|
15
15
|
import './components/header/Component.js';
|
|
16
16
|
import '../../navigation-bar-private/esm';
|
|
@@ -12,7 +12,7 @@ import '../consts.js';
|
|
|
12
12
|
import '../ResponsiveContext.js';
|
|
13
13
|
import '../../../shared/esm';
|
|
14
14
|
import '../Context.js';
|
|
15
|
-
import '../layout.module-
|
|
15
|
+
import '../layout.module-5977466c.js';
|
|
16
16
|
import '../../../navigation-bar-private/esm';
|
|
17
17
|
|
|
18
18
|
var ModalMobileComponent = forwardRef(function (props, ref) { return (React.createElement(Modal, __assign({}, props, { ref: ref, view: 'mobile' }))); });
|
|
@@ -11,7 +11,7 @@ import '../components/content/Component.js';
|
|
|
11
11
|
import '../../../shared/esm';
|
|
12
12
|
import '../Context.js';
|
|
13
13
|
import '../components/controls/Component.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-5977466c.js';
|
|
15
15
|
import '../components/footer/Component.js';
|
|
16
16
|
import '../components/header/Component.js';
|
|
17
17
|
import '../../../navigation-bar-private/esm';
|
|
@@ -11,7 +11,7 @@ import './consts.js';
|
|
|
11
11
|
import './Context.js';
|
|
12
12
|
import '../../base-modal/modern';
|
|
13
13
|
import './ResponsiveContext.js';
|
|
14
|
-
import './layout.module-
|
|
14
|
+
import './layout.module-565c309a.js';
|
|
15
15
|
import '../../navigation-bar-private/modern';
|
|
16
16
|
import 'react-merge-refs';
|
|
17
17
|
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { getDataTestId } from '../../../../shared/modern';
|
|
4
4
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
5
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
5
|
+
import { l as layoutStyles } from '../../layout.module-565c309a.js';
|
|
6
6
|
|
|
7
7
|
const styles = {"component":"modal__component_6629a"};
|
|
8
8
|
require('./index.css');
|
|
@@ -4,7 +4,7 @@ import { getDataTestId } from '../../../../shared/modern';
|
|
|
4
4
|
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
5
5
|
import { ModalContext } from '../../Context.js';
|
|
6
6
|
import { ResponsiveContext } from '../../ResponsiveContext.js';
|
|
7
|
-
import { l as layoutStyles } from '../../layout.module-
|
|
7
|
+
import { l as layoutStyles } from '../../layout.module-565c309a.js';
|
|
8
8
|
import '../../../../base-modal/modern';
|
|
9
9
|
|
|
10
10
|
const desktopStyles = {"footer":"modal__footer_e5vdf","sticky":"modal__sticky_e5vdf","fullscreen":"modal__fullscreen_e5vdf","size-500":"modal__size-500_e5vdf","size-600":"modal__size-600_e5vdf","size-800":"modal__size-800_e5vdf","size-1140":"modal__size-1140_e5vdf"};
|
|
@@ -11,7 +11,7 @@ import '../consts.js';
|
|
|
11
11
|
import '../ResponsiveContext.js';
|
|
12
12
|
import '../../../shared/modern';
|
|
13
13
|
import '../Context.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-565c309a.js';
|
|
15
15
|
import '../../../navigation-bar-private/modern';
|
|
16
16
|
|
|
17
17
|
const ModalDesktopComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'desktop' })));
|
|
@@ -10,7 +10,7 @@ import '../components/content/Component.js';
|
|
|
10
10
|
import '../../../shared/modern';
|
|
11
11
|
import '../Context.js';
|
|
12
12
|
import '../components/controls/Component.js';
|
|
13
|
-
import '../layout.module-
|
|
13
|
+
import '../layout.module-565c309a.js';
|
|
14
14
|
import '../components/footer/Component.js';
|
|
15
15
|
import '../components/header/Component.js';
|
|
16
16
|
import '../../../navigation-bar-private/modern';
|
package/modal/modern/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import './Context.js';
|
|
|
9
9
|
import '../../base-modal/modern';
|
|
10
10
|
import './ResponsiveContext.js';
|
|
11
11
|
import './components/controls/Component.js';
|
|
12
|
-
import './layout.module-
|
|
12
|
+
import './layout.module-565c309a.js';
|
|
13
13
|
import './components/footer/Component.js';
|
|
14
14
|
import './components/header/Component.js';
|
|
15
15
|
import '../../navigation-bar-private/modern';
|
|
@@ -11,7 +11,7 @@ import '../consts.js';
|
|
|
11
11
|
import '../ResponsiveContext.js';
|
|
12
12
|
import '../../../shared/modern';
|
|
13
13
|
import '../Context.js';
|
|
14
|
-
import '../layout.module-
|
|
14
|
+
import '../layout.module-565c309a.js';
|
|
15
15
|
import '../../../navigation-bar-private/modern';
|
|
16
16
|
|
|
17
17
|
const ModalMobileComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'mobile' })));
|
|
@@ -10,7 +10,7 @@ import '../components/content/Component.js';
|
|
|
10
10
|
import '../../../shared/modern';
|
|
11
11
|
import '../Context.js';
|
|
12
12
|
import '../components/controls/Component.js';
|
|
13
|
-
import '../layout.module-
|
|
13
|
+
import '../layout.module-565c309a.js';
|
|
14
14
|
import '../components/footer/Component.js';
|
|
15
15
|
import '../components/header/Component.js';
|
|
16
16
|
import '../../../navigation-bar-private/modern';
|
|
@@ -9,6 +9,7 @@ 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');
|
|
12
13
|
var utils_index = require('./utils/index.js');
|
|
13
14
|
|
|
14
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -23,7 +24,7 @@ require('./index.css');
|
|
|
23
24
|
|
|
24
25
|
var notificationClassNameSelector = ".".concat(styles.notificationComponent);
|
|
25
26
|
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 ?
|
|
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 ? stackContext.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
28
|
var notificationRef = React.useRef(null);
|
|
28
29
|
var autoCloseTimeoutRef = React.useRef(0);
|
|
29
30
|
var closeTimeoutRef = React.useRef(0);
|
|
@@ -9,6 +9,7 @@ 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');
|
|
12
13
|
var utils_index = require('./utils/index.js');
|
|
13
14
|
var styles = require('./index.module.css');
|
|
14
15
|
|
|
@@ -22,7 +23,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
22
23
|
|
|
23
24
|
var notificationClassNameSelector = ".".concat(styles__default.default.notificationComponent);
|
|
24
25
|
var Notification = React.forwardRef(function (_a, ref) {
|
|
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 ?
|
|
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 ? stackContext.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"]);
|
|
26
27
|
var notificationRef = React.useRef(null);
|
|
27
28
|
var autoCloseTimeoutRef = React.useRef(0);
|
|
28
29
|
var closeTimeoutRef = React.useRef(0);
|
|
@@ -5,8 +5,9 @@ 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 {
|
|
8
|
+
import { Stack } from '../../stack/esm';
|
|
9
9
|
import { ToastPlateDesktop } from '../../toast-plate/esm/desktop';
|
|
10
|
+
import { stackingOrder } from '@alfalab/stack-context';
|
|
10
11
|
import { useClickOutside } from './utils/index.js';
|
|
11
12
|
|
|
12
13
|
var styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
|
|
@@ -4,8 +4,9 @@ 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
|
|
7
|
+
import { Stack } from '../../stack/modern';
|
|
8
8
|
import { ToastPlateDesktop } from '../../toast-plate/modern/desktop';
|
|
9
|
+
import { stackingOrder } from '@alfalab/stack-context';
|
|
9
10
|
import { useClickOutside } from './utils/index.js';
|
|
10
11
|
|
|
11
12
|
const styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
|
|
@@ -6,6 +6,7 @@ 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');
|
|
9
10
|
var components_notification_component = require('./components/notification/component.js');
|
|
10
11
|
|
|
11
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -25,7 +26,7 @@ var TIMEOUT = {
|
|
|
25
26
|
enter: 400,
|
|
26
27
|
};
|
|
27
28
|
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 ?
|
|
29
|
+
var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? stackContext.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
30
|
return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
|
|
30
31
|
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),
|
|
31
32
|
React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
|
|
@@ -6,6 +6,7 @@ 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');
|
|
9
10
|
var components_notification_component = require('./components/notification/component.js');
|
|
10
11
|
var styles = require('./index.module.css');
|
|
11
12
|
|
|
@@ -24,7 +25,7 @@ var TIMEOUT = {
|
|
|
24
25
|
enter: 400,
|
|
25
26
|
};
|
|
26
27
|
var NotificationManager = React.forwardRef(function (_a, ref) {
|
|
27
|
-
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 ? stackContext.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"]);
|
|
28
29
|
return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
|
|
29
30
|
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),
|
|
30
31
|
React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
|
|
@@ -3,7 +3,8 @@ 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 {
|
|
6
|
+
import { Stack } from '../../stack/esm';
|
|
7
|
+
import { stackingOrder } from '@alfalab/stack-context';
|
|
7
8
|
import { Notification } from './components/notification/component.js';
|
|
8
9
|
|
|
9
10
|
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,7 +2,8 @@ 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
|
|
5
|
+
import { Stack } from '../../stack/modern';
|
|
6
|
+
import { stackingOrder } from '@alfalab/stack-context';
|
|
6
7
|
import { Notification } from './components/notification/component.js';
|
|
7
8
|
|
|
8
9
|
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": "47.0.0-beta.
|
|
3
|
+
"version": "47.0.0-beta.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,6 +56,7 @@
|
|
|
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",
|
|
59
60
|
"@alfalab/utils": "^1.15.2",
|
|
60
61
|
"@dnd-kit/core": "^6.0.7",
|
|
61
62
|
"@dnd-kit/sortable": "^7.0.2",
|
|
@@ -58,7 +58,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
58
58
|
/**
|
|
59
59
|
* Атрибут type
|
|
60
60
|
*/
|
|
61
|
-
type?: 'number' | '
|
|
61
|
+
type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
62
62
|
/**
|
|
63
63
|
* Ref для обертки input
|
|
64
64
|
*/
|
|
@@ -196,7 +196,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
|
|
|
196
196
|
/**
|
|
197
197
|
* Атрибут type
|
|
198
198
|
*/
|
|
199
|
-
type?: "number" | "text" | "tel" | "email" | "password" | "
|
|
199
|
+
type?: "number" | "text" | "tel" | "email" | "password" | "money" | undefined;
|
|
200
200
|
/**
|
|
201
201
|
* Ref для обертки input
|
|
202
202
|
*/
|
|
@@ -58,7 +58,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
58
58
|
/**
|
|
59
59
|
* Атрибут type
|
|
60
60
|
*/
|
|
61
|
-
type?: 'number' | '
|
|
61
|
+
type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
62
62
|
/**
|
|
63
63
|
* Ref для обертки input
|
|
64
64
|
*/
|
|
@@ -196,7 +196,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
|
|
|
196
196
|
/**
|
|
197
197
|
* Атрибут type
|
|
198
198
|
*/
|
|
199
|
-
type?: "number" | "text" | "tel" | "email" | "password" | "
|
|
199
|
+
type?: "number" | "text" | "tel" | "email" | "password" | "money" | undefined;
|
|
200
200
|
/**
|
|
201
201
|
* Ref для обертки input
|
|
202
202
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "../../../button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-0f35b62f";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|
|
@@ -174,18 +174,6 @@ 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>;
|
|
189
177
|
type StackProps = {
|
|
190
178
|
/**
|
|
191
179
|
* Render prop, в который передается функция.
|
|
@@ -226,5 +214,5 @@ declare class GlobalStore {
|
|
|
226
214
|
constructor();
|
|
227
215
|
getModalStore: () => ModalStore;
|
|
228
216
|
}
|
|
229
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer,
|
|
217
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
230
218
|
export type { SavedStyle };
|
|
@@ -881,6 +881,18 @@ type OptionsListProps = {
|
|
|
881
881
|
* Указать индекс пункта для hover состояния
|
|
882
882
|
*/
|
|
883
883
|
setHighlightedIndex?: (index: number) => void;
|
|
884
|
+
/**
|
|
885
|
+
* Обработчик добавления в список выбранных вариантов
|
|
886
|
+
*/
|
|
887
|
+
addSelectedItem?: (item: OptionShape) => void;
|
|
888
|
+
/**
|
|
889
|
+
* Обработчик удаления из списка выбранных вариантов
|
|
890
|
+
*/
|
|
891
|
+
removeSelectedItem?: (item: OptionShape) => void;
|
|
892
|
+
/**
|
|
893
|
+
* Значение поиска
|
|
894
|
+
*/
|
|
895
|
+
search?: string;
|
|
884
896
|
};
|
|
885
897
|
type OptgroupProps = {
|
|
886
898
|
/**
|
|
@@ -900,6 +912,26 @@ type OptgroupProps = {
|
|
|
900
912
|
* Дочерние элементы
|
|
901
913
|
*/
|
|
902
914
|
children?: ReactNode;
|
|
915
|
+
/**
|
|
916
|
+
* Список вариантов выбора в группе
|
|
917
|
+
*/
|
|
918
|
+
options?: OptionShape[];
|
|
919
|
+
/**
|
|
920
|
+
* Список выбранных вариантов в группе
|
|
921
|
+
*/
|
|
922
|
+
selectedItems?: OptionShape[];
|
|
923
|
+
/**
|
|
924
|
+
* Обработчик добавления в список выбранных вариантов
|
|
925
|
+
*/
|
|
926
|
+
addSelectedItem?: (item: OptionShape) => void;
|
|
927
|
+
/**
|
|
928
|
+
* Обработчик удаления из списка выбранных вариантов
|
|
929
|
+
*/
|
|
930
|
+
removeSelectedItem?: (item: OptionShape) => void;
|
|
931
|
+
/**
|
|
932
|
+
* Значение поиска
|
|
933
|
+
*/
|
|
934
|
+
search?: string;
|
|
903
935
|
};
|
|
904
936
|
type OptionProps = {
|
|
905
937
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f35b62f";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -58,7 +58,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
58
58
|
/**
|
|
59
59
|
* Атрибут type
|
|
60
60
|
*/
|
|
61
|
-
type?: 'number' | '
|
|
61
|
+
type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
62
62
|
/**
|
|
63
63
|
* Ref для обертки input
|
|
64
64
|
*/
|
|
@@ -196,7 +196,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
|
|
|
196
196
|
/**
|
|
197
197
|
* Атрибут type
|
|
198
198
|
*/
|
|
199
|
-
type?: "number" | "text" | "tel" | "email" | "password" | "
|
|
199
|
+
type?: "number" | "text" | "tel" | "email" | "password" | "money" | undefined;
|
|
200
200
|
/**
|
|
201
201
|
* Ref для обертки input
|
|
202
202
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "../../../button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-0f35b62f";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|
|
@@ -174,18 +174,6 @@ 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>;
|
|
189
177
|
type StackProps = {
|
|
190
178
|
/**
|
|
191
179
|
* Render prop, в который передается функция.
|
|
@@ -226,5 +214,5 @@ declare class GlobalStore {
|
|
|
226
214
|
constructor();
|
|
227
215
|
getModalStore: () => ModalStore;
|
|
228
216
|
}
|
|
229
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer,
|
|
217
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
|
|
230
218
|
export type { SavedStyle };
|
|
@@ -881,6 +881,18 @@ type OptionsListProps = {
|
|
|
881
881
|
* Указать индекс пункта для hover состояния
|
|
882
882
|
*/
|
|
883
883
|
setHighlightedIndex?: (index: number) => void;
|
|
884
|
+
/**
|
|
885
|
+
* Обработчик добавления в список выбранных вариантов
|
|
886
|
+
*/
|
|
887
|
+
addSelectedItem?: (item: OptionShape) => void;
|
|
888
|
+
/**
|
|
889
|
+
* Обработчик удаления из списка выбранных вариантов
|
|
890
|
+
*/
|
|
891
|
+
removeSelectedItem?: (item: OptionShape) => void;
|
|
892
|
+
/**
|
|
893
|
+
* Значение поиска
|
|
894
|
+
*/
|
|
895
|
+
search?: string;
|
|
884
896
|
};
|
|
885
897
|
type OptgroupProps = {
|
|
886
898
|
/**
|
|
@@ -900,6 +912,26 @@ type OptgroupProps = {
|
|
|
900
912
|
* Дочерние элементы
|
|
901
913
|
*/
|
|
902
914
|
children?: ReactNode;
|
|
915
|
+
/**
|
|
916
|
+
* Список вариантов выбора в группе
|
|
917
|
+
*/
|
|
918
|
+
options?: OptionShape[];
|
|
919
|
+
/**
|
|
920
|
+
* Список выбранных вариантов в группе
|
|
921
|
+
*/
|
|
922
|
+
selectedItems?: OptionShape[];
|
|
923
|
+
/**
|
|
924
|
+
* Обработчик добавления в список выбранных вариантов
|
|
925
|
+
*/
|
|
926
|
+
addSelectedItem?: (item: OptionShape) => void;
|
|
927
|
+
/**
|
|
928
|
+
* Обработчик удаления из списка выбранных вариантов
|
|
929
|
+
*/
|
|
930
|
+
removeSelectedItem?: (item: OptionShape) => void;
|
|
931
|
+
/**
|
|
932
|
+
* Значение поиска
|
|
933
|
+
*/
|
|
934
|
+
search?: string;
|
|
903
935
|
};
|
|
904
936
|
type OptionProps = {
|
|
905
937
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f35b62f";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ComponentType, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "../../button";
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "../typings-
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "../typings-0f35b62f";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "../types";
|
|
7
7
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
8
8
|
buttonSize?: PickerButtonSize;
|