@alfalab/core-components-select 14.1.2 → 14.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component-3885b0d7.d.ts +1 -1
- package/{Component-00c64376.d.ts → Component-3b7dfcdb.d.ts} +25 -0
- package/{Component-00c64376.js → Component-3b7dfcdb.js} +5 -4
- package/Component.js +1 -1
- package/Component.mobile-b2c0420d.d.ts +93 -0
- package/Component.responsive.js +3 -3
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +13 -13
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +8 -8
- package/components/base-select/index.js +1 -1
- package/components/base-select-mobile/Component.d.ts +24 -0
- package/components/base-select-mobile/Component.js +25 -7
- package/components/base-select-mobile/footer/Component.js +3 -3
- package/components/base-select-mobile/footer/index.css +5 -5
- package/components/base-select-mobile/index.css +10 -10
- package/components/base-select-mobile/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/checkmark-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/field/Component.js +1 -1
- package/components/field/index.css +9 -9
- package/components/index.js +3 -3
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +1 -1
- package/components/option/index.css +20 -20
- package/components/options-list/Component.js +3 -3
- package/components/options-list/index.css +9 -9
- package/components/select-mobile/Component.js +3 -3
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +3 -3
- package/components/select-modal-mobile/Component.js +3 -3
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +3 -3
- package/components/virtual-options-list/Component.js +4 -4
- package/components/virtual-options-list/index.css +15 -15
- package/cssm/Component-3885b0d7.d.ts +1 -1
- package/{esm/Component-2ff63ae2.d.ts → cssm/Component-75d13e23.d.ts} +25 -0
- package/cssm/{Component-f86f43e3.js → Component-75d13e23.js} +4 -3
- package/cssm/Component.mobile-b2c0420d.d.ts +93 -0
- package/cssm/Component.responsive.js +1 -1
- package/cssm/components/base-select-mobile/Component.d.ts +24 -0
- package/cssm/components/base-select-mobile/Component.js +23 -5
- package/cssm/components/base-select-mobile/footer/Component.js +2 -2
- package/cssm/components/index.js +1 -1
- package/cssm/components/options-list/Component.js +2 -2
- package/cssm/components/select-mobile/Component.js +1 -1
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +1 -1
- package/cssm/components/select-modal-mobile/Component.js +1 -1
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +1 -1
- package/cssm/components/virtual-options-list/Component.js +3 -3
- package/cssm/index.js +1 -1
- package/cssm/mobile.d.ts +4 -0
- package/cssm/mobile.js +65 -0
- package/cssm/presets/index.js +1 -1
- package/cssm/presets/useSelectWithApply/hook.js +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/cssm/responsive.js +1 -1
- package/{cssm/Component-f86f43e3.d.ts → esm/Component-06bb5812.d.ts} +25 -0
- package/esm/{Component-2ff63ae2.js → Component-06bb5812.js} +5 -4
- package/esm/Component-3885b0d7.d.ts +1 -1
- package/esm/Component.js +1 -1
- package/esm/Component.mobile-b2c0420d.d.ts +93 -0
- package/esm/Component.responsive.js +3 -3
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +8 -8
- package/esm/components/base-select/index.js +1 -1
- package/esm/components/base-select-mobile/Component.d.ts +24 -0
- package/esm/components/base-select-mobile/Component.js +26 -8
- package/esm/components/base-select-mobile/footer/Component.js +3 -3
- package/esm/components/base-select-mobile/footer/index.css +5 -5
- package/esm/components/base-select-mobile/index.css +10 -10
- package/esm/components/base-select-mobile/index.js +1 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/checkmark-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +9 -9
- package/esm/components/index.js +3 -3
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +1 -1
- package/esm/components/option/index.css +20 -20
- package/esm/components/options-list/Component.js +3 -3
- package/esm/components/options-list/index.css +9 -9
- package/esm/components/select-mobile/Component.js +3 -3
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +3 -3
- package/esm/components/select-modal-mobile/Component.js +3 -3
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +3 -3
- package/esm/components/virtual-options-list/Component.js +4 -4
- package/esm/components/virtual-options-list/index.css +15 -15
- package/esm/index-3885b0d7.d.ts +1 -1
- package/esm/index.js +3 -3
- package/esm/mobile.d.ts +4 -0
- package/esm/mobile.js +40 -0
- package/esm/presets/index.js +3 -3
- package/esm/presets/useLazyLoading/hook.js +2 -2
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +3 -3
- package/index-3885b0d7.d.ts +1 -1
- package/index.js +3 -3
- package/mobile.d.ts +4 -0
- package/mobile.js +49 -0
- package/modern/Component-3885b0d7.d.ts +1 -1
- package/modern/{Component-0b711513.d.ts → Component-8dc39be2.d.ts} +25 -0
- package/modern/{Component-0b711513.js → Component-8dc39be2.js} +2 -2
- package/modern/Component.js +1 -1
- package/modern/Component.mobile-b2c0420d.d.ts +93 -0
- package/modern/Component.responsive.js +3 -3
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-select/Component.js +2 -2
- package/modern/components/base-select/index.css +8 -8
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.d.ts +24 -0
- package/modern/components/base-select-mobile/Component.js +20 -7
- package/modern/components/base-select-mobile/footer/Component.js +3 -3
- package/modern/components/base-select-mobile/footer/index.css +5 -5
- package/modern/components/base-select-mobile/index.css +10 -10
- package/modern/components/base-select-mobile/index.js +1 -1
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/checkmark-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +3 -3
- package/modern/components/options-list/index.css +9 -9
- package/modern/components/select-mobile/Component.js +3 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +3 -3
- package/modern/components/select-modal-mobile/Component.js +3 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +3 -3
- package/modern/components/virtual-options-list/Component.js +3 -3
- package/modern/components/virtual-options-list/index.css +15 -15
- package/modern/index-3885b0d7.d.ts +1 -1
- package/modern/index.js +3 -3
- package/modern/mobile.d.ts +4 -0
- package/modern/mobile.js +39 -0
- package/modern/presets/index.js +3 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +3 -3
- package/package.json +6 -6
- package/presets/index.js +3 -3
- package/presets/useLazyLoading/hook.js +2 -2
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +3 -3
- /package/esm/{getDataTestId-d8d91b2e.d.ts → getDataTestId-8aabb6b6.d.ts} +0 -0
- /package/esm/{getDataTestId-d8d91b2e.js → getDataTestId-8aabb6b6.js} +0 -0
- /package/esm/{intersection-observer-210062db.d.ts → intersection-observer-6b92b662.d.ts} +0 -0
- /package/esm/{intersection-observer-210062db.js → intersection-observer-6b92b662.js} +0 -0
- /package/{getDataTestId-d8391785.d.ts → getDataTestId-1bda9cae.d.ts} +0 -0
- /package/{getDataTestId-d8391785.js → getDataTestId-1bda9cae.js} +0 -0
- /package/{intersection-observer-131fbe35.d.ts → intersection-observer-38296236.d.ts} +0 -0
- /package/{intersection-observer-131fbe35.js → intersection-observer-38296236.js} +0 -0
- /package/modern/{getDataTestId-b301a7a9.d.ts → getDataTestId-59fdb29b.d.ts} +0 -0
- /package/modern/{getDataTestId-b301a7a9.js → getDataTestId-59fdb29b.js} +0 -0
- /package/modern/{intersection-observer-210062db.d.ts → intersection-observer-6b92b662.d.ts} +0 -0
- /package/modern/{intersection-observer-210062db.js → intersection-observer-6b92b662.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1fvjl */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dcdcdd;
|
|
@@ -35,34 +35,34 @@
|
|
|
35
35
|
/* checkmark */
|
|
36
36
|
|
|
37
37
|
/* optgroup */
|
|
38
|
-
} .
|
|
38
|
+
} .select__virtualOptionsList_1em8u {
|
|
39
39
|
width: 100%;
|
|
40
40
|
outline: none;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
position: sticky;
|
|
43
|
-
} .
|
|
43
|
+
} .select__virtualOptionsListHeader_1em8u {
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
46
|
-
} .
|
|
46
|
+
} .select__virtualOptionsListFooter_1em8u {
|
|
47
47
|
position: sticky;
|
|
48
48
|
bottom: 0;
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
border-top: 1px solid transparent
|
|
51
|
-
} .
|
|
51
|
+
} .select__virtualOptionsListFooter_1em8u.select__withBorder_1em8u {
|
|
52
52
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
53
|
-
} .
|
|
53
|
+
} .select__scrollable_1em8u {
|
|
54
54
|
position: relative;
|
|
55
55
|
overflow: auto;
|
|
56
56
|
width: 100%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__inner_1em8u {
|
|
58
58
|
position: relative;
|
|
59
59
|
width: 100%;
|
|
60
|
-
} .
|
|
60
|
+
} .select__virtualRow_1em8u {
|
|
61
61
|
position: absolute;
|
|
62
62
|
top: 0;
|
|
63
63
|
left: 0;
|
|
64
64
|
width: 100%
|
|
65
|
-
} .
|
|
65
|
+
} .select__virtualRow_1em8u:before {
|
|
66
66
|
content: '';
|
|
67
67
|
position: absolute;
|
|
68
68
|
z-index: 1;
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
height: 1px;
|
|
73
73
|
background: var(--select-option-divider-background);
|
|
74
74
|
display: var(--select-option-divider-display);
|
|
75
|
-
} .
|
|
75
|
+
} .select__virtualRow_1em8u:first-child:before {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
78
|
-
.
|
|
77
|
+
} .select__highlighted_1em8u:before,
|
|
78
|
+
.select__highlighted_1em8u + .select__virtualRow_1em8u:before {
|
|
79
79
|
display: none;
|
|
80
|
-
} .
|
|
80
|
+
} .select__emptyPlaceholder_1em8u {
|
|
81
81
|
padding: var(--gap-m) var(--gap-s);
|
|
82
82
|
color: var(--select-options-list-empty-placeholder-color);
|
|
83
|
-
} .
|
|
84
|
-
.
|
|
83
|
+
} .select__l_1em8u .select__emptyPlaceholder_1em8u,
|
|
84
|
+
.select__xl_1em8u .select__emptyPlaceholder_1em8u {
|
|
85
85
|
padding: var(--gap-xl) var(--gap-m);
|
|
86
86
|
}
|
package/esm/index-3885b0d7.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Select } from './Component.js';
|
|
2
2
|
export { Arrow } from './components/arrow/Component.js';
|
|
3
3
|
export { BaseSelect } from './components/base-select/Component.js';
|
|
4
|
-
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-
|
|
4
|
+
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-06bb5812.js';
|
|
5
5
|
export { Field } from './components/field/Component.js';
|
|
6
6
|
export { Optgroup } from './components/optgroup/Component.js';
|
|
7
7
|
export { Option } from './components/option/Component.js';
|
|
@@ -20,7 +20,7 @@ import '@juggle/resize-observer';
|
|
|
20
20
|
import 'downshift';
|
|
21
21
|
import '@alfalab/core-components-popover/esm';
|
|
22
22
|
import '@alfalab/hooks';
|
|
23
|
-
import './getDataTestId-
|
|
23
|
+
import './getDataTestId-8aabb6b6.js';
|
|
24
24
|
import './components/native-select/Component.js';
|
|
25
25
|
import './components/base-select-mobile/Component.js';
|
|
26
26
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
@@ -34,7 +34,7 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
34
34
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
35
35
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
36
36
|
import '@alfalab/core-components-skeleton/esm';
|
|
37
|
-
import './intersection-observer-
|
|
37
|
+
import './intersection-observer-6b92b662.js';
|
|
38
38
|
import './consts.js';
|
|
39
39
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
40
40
|
import './components/checkmark/Component.js';
|
package/esm/mobile.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SelectMobile } from "./components/select-mobile/index";
|
|
2
|
+
export { SelectModalMobile } from "./components/select-modal-mobile/index";
|
|
3
|
+
export type { SelectMobileProps } from "./components/select-mobile/index";
|
|
4
|
+
export type { SelectModalMobileProps } from "./components/select-modal-mobile/index";
|
package/esm/mobile.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { S as SelectMobile, a as SelectModalMobile } from './Component-06bb5812.js';
|
|
2
|
+
import 'tslib';
|
|
3
|
+
import 'react';
|
|
4
|
+
import './Component.js';
|
|
5
|
+
import './components/arrow/Component.js';
|
|
6
|
+
import 'classnames';
|
|
7
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
8
|
+
import './components/base-select/Component.js';
|
|
9
|
+
import 'react-merge-refs';
|
|
10
|
+
import '@juggle/resize-observer';
|
|
11
|
+
import 'downshift';
|
|
12
|
+
import '@alfalab/core-components-popover/esm';
|
|
13
|
+
import '@alfalab/hooks';
|
|
14
|
+
import './getDataTestId-8aabb6b6.js';
|
|
15
|
+
import './utils.js';
|
|
16
|
+
import './components/native-select/Component.js';
|
|
17
|
+
import './components/field/Component.js';
|
|
18
|
+
import '@alfalab/core-components-form-control/esm';
|
|
19
|
+
import './components/optgroup/Component.js';
|
|
20
|
+
import './components/option/Component.js';
|
|
21
|
+
import './components/checkmark/Component.js';
|
|
22
|
+
import '@alfalab/core-components-badge/esm';
|
|
23
|
+
import '@alfalab/core-components-checkbox/esm';
|
|
24
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
25
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
26
|
+
import './components/checkmark-mobile/Component.js';
|
|
27
|
+
import './components/options-list/Component.js';
|
|
28
|
+
import '@alfalab/core-components-scrollbar/esm';
|
|
29
|
+
import './consts.js';
|
|
30
|
+
import './components/base-select-mobile/Component.js';
|
|
31
|
+
import '@alfalab/core-components-bottom-sheet/esm';
|
|
32
|
+
import '@alfalab/core-components-modal/esm/mobile';
|
|
33
|
+
import './components/base-select-mobile/footer/Component.js';
|
|
34
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
35
|
+
import '@alfalab/core-components-button/esm';
|
|
36
|
+
import './components/virtual-options-list/Component.js';
|
|
37
|
+
import 'react-virtual';
|
|
38
|
+
import '@alfalab/core-components-skeleton/esm';
|
|
39
|
+
import './intersection-observer-6b92b662.js';
|
|
40
|
+
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
package/esm/presets/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-
|
|
3
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-06bb5812.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@alfalab/core-components-skeleton/esm';
|
|
@@ -12,7 +12,7 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
13
13
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
14
14
|
import '../components/checkmark-mobile/Component.js';
|
|
15
|
-
import '../intersection-observer-
|
|
15
|
+
import '../intersection-observer-6b92b662.js';
|
|
16
16
|
import '../Component.js';
|
|
17
17
|
import '../components/arrow/Component.js';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -22,7 +22,7 @@ import '@juggle/resize-observer';
|
|
|
22
22
|
import 'downshift';
|
|
23
23
|
import '@alfalab/core-components-popover/esm';
|
|
24
24
|
import '@alfalab/hooks';
|
|
25
|
-
import '../getDataTestId-
|
|
25
|
+
import '../getDataTestId-8aabb6b6.js';
|
|
26
26
|
import '../utils.js';
|
|
27
27
|
import '../components/native-select/Component.js';
|
|
28
28
|
import '../components/field/Component.js';
|
|
@@ -2,7 +2,7 @@ import { __spreadArray, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
3
3
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
4
4
|
import { Option } from '../../components/option/Component.js';
|
|
5
|
-
import '../../intersection-observer-
|
|
5
|
+
import '../../intersection-observer-6b92b662.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../components/checkmark/Component.js';
|
|
8
8
|
import '@alfalab/core-components-badge/esm';
|
|
@@ -11,7 +11,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
12
12
|
import '../../components/checkmark-mobile/Component.js';
|
|
13
13
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
14
|
+
var styles = {"skeleton":"select__skeleton_16ejv"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var DEBOUNCE_TIMEOUT = 300;
|
|
@@ -4,7 +4,7 @@ import '../../Component.js';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
6
|
import '../../components/base-select/Component.js';
|
|
7
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-
|
|
7
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-06bb5812.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
10
|
import '../../utils.js';
|
|
@@ -15,7 +15,7 @@ import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
|
15
15
|
import '../../components/options-list/Component.js';
|
|
16
16
|
import '../../components/virtual-options-list/Component.js';
|
|
17
17
|
import '@alfalab/core-components-skeleton/esm';
|
|
18
|
-
import '../../intersection-observer-
|
|
18
|
+
import '../../intersection-observer-6b92b662.js';
|
|
19
19
|
import '../../components/arrow/Component.js';
|
|
20
20
|
import '../../components/field/Component.js';
|
|
21
21
|
import '../../components/optgroup/Component.js';
|
|
@@ -26,7 +26,7 @@ import 'react-merge-refs';
|
|
|
26
26
|
import '@juggle/resize-observer';
|
|
27
27
|
import 'downshift';
|
|
28
28
|
import '@alfalab/core-components-popover/esm';
|
|
29
|
-
import '../../getDataTestId-
|
|
29
|
+
import '../../getDataTestId-8aabb6b6.js';
|
|
30
30
|
import '../../components/native-select/Component.js';
|
|
31
31
|
import '@alfalab/core-components-scrollbar/esm';
|
|
32
32
|
import '../../consts.js';
|
|
@@ -2,7 +2,7 @@ import 'tslib';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../components/options-list/Component.js';
|
|
4
4
|
import '../../../consts.js';
|
|
5
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
5
|
+
export { O as OptionsListWithApply } from '../../../Component-06bb5812.js';
|
|
6
6
|
import './footer/Component.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import 'classnames';
|
|
@@ -17,7 +17,7 @@ import '../../../components/base-select/Component.js';
|
|
|
17
17
|
import '@juggle/resize-observer';
|
|
18
18
|
import 'downshift';
|
|
19
19
|
import '@alfalab/core-components-popover/esm';
|
|
20
|
-
import '../../../getDataTestId-
|
|
20
|
+
import '../../../getDataTestId-8aabb6b6.js';
|
|
21
21
|
import '../../../components/native-select/Component.js';
|
|
22
22
|
import '../../../components/field/Component.js';
|
|
23
23
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -37,4 +37,4 @@ import '@alfalab/core-components-button/esm';
|
|
|
37
37
|
import '../../../components/virtual-options-list/Component.js';
|
|
38
38
|
import 'react-virtual';
|
|
39
39
|
import '@alfalab/core-components-skeleton/esm';
|
|
40
|
-
import '../../../intersection-observer-
|
|
40
|
+
import '../../../intersection-observer-6b92b662.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9z5hy */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
/* checkmark */
|
|
27
27
|
|
|
28
28
|
/* optgroup */
|
|
29
|
-
} .
|
|
29
|
+
} .select__footer_1518i {
|
|
30
30
|
background-color: var(--color-light-bg-primary);
|
|
31
31
|
padding: var(--gap-s);
|
|
32
32
|
outline: none
|
|
33
|
-
} .
|
|
33
|
+
} .select__footer_1518i > * + * {
|
|
34
34
|
margin-left: var(--gap-xs);
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-06bb5812";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
1
|
+
export { O as OptionsListWithApply } from '../../../Component-06bb5812.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../../Component.js';
|
|
@@ -11,7 +11,7 @@ import '@juggle/resize-observer';
|
|
|
11
11
|
import 'downshift';
|
|
12
12
|
import '@alfalab/core-components-popover/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
14
|
-
import '../../../getDataTestId-
|
|
14
|
+
import '../../../getDataTestId-8aabb6b6.js';
|
|
15
15
|
import '../../../utils.js';
|
|
16
16
|
import '../../../components/native-select/Component.js';
|
|
17
17
|
import '../../../components/field/Component.js';
|
|
@@ -36,5 +36,5 @@ import '@alfalab/core-components-button/esm';
|
|
|
36
36
|
import '../../../components/virtual-options-list/Component.js';
|
|
37
37
|
import 'react-virtual';
|
|
38
38
|
import '@alfalab/core-components-skeleton/esm';
|
|
39
|
-
import '../../../intersection-observer-
|
|
39
|
+
import '../../../intersection-observer-6b92b662.js';
|
|
40
40
|
import './footer/Component.js';
|
|
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
10
10
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
11
11
|
import '../../components/checkmark-mobile/Component.js';
|
|
12
12
|
|
|
13
|
-
var styles = {"skeleton":"
|
|
13
|
+
var styles = {"skeleton":"select__skeleton_1ibg1"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
function useSelectWithLoading(_a) {
|
package/esm/responsive.js
CHANGED
|
@@ -11,7 +11,7 @@ import 'react-merge-refs';
|
|
|
11
11
|
import '@juggle/resize-observer';
|
|
12
12
|
import 'downshift';
|
|
13
13
|
import '@alfalab/core-components-popover/esm';
|
|
14
|
-
import './getDataTestId-
|
|
14
|
+
import './getDataTestId-8aabb6b6.js';
|
|
15
15
|
import './utils.js';
|
|
16
16
|
import './components/native-select/Component.js';
|
|
17
17
|
import './components/field/Component.js';
|
|
@@ -27,7 +27,7 @@ import './components/checkmark-mobile/Component.js';
|
|
|
27
27
|
import './components/options-list/Component.js';
|
|
28
28
|
import '@alfalab/core-components-scrollbar/esm';
|
|
29
29
|
import './consts.js';
|
|
30
|
-
import './Component-
|
|
30
|
+
import './Component-06bb5812.js';
|
|
31
31
|
import './components/base-select-mobile/Component.js';
|
|
32
32
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
33
33
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
@@ -37,5 +37,5 @@ import '@alfalab/core-components-button/esm';
|
|
|
37
37
|
import './components/virtual-options-list/Component.js';
|
|
38
38
|
import 'react-virtual';
|
|
39
39
|
import '@alfalab/core-components-skeleton/esm';
|
|
40
|
-
import './intersection-observer-
|
|
40
|
+
import './intersection-observer-6b92b662.js';
|
|
41
41
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
package/index-3885b0d7.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
6
|
var components_arrow_Component = require('./components/arrow/Component.js');
|
|
7
7
|
var components_baseSelect_Component = require('./components/base-select/Component.js');
|
|
8
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('./Component-
|
|
8
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('./Component-3b7dfcdb.js');
|
|
9
9
|
var components_field_Component = require('./components/field/Component.js');
|
|
10
10
|
var components_optgroup_Component = require('./components/optgroup/Component.js');
|
|
11
11
|
var components_option_Component = require('./components/option/Component.js');
|
|
@@ -24,7 +24,7 @@ require('@juggle/resize-observer');
|
|
|
24
24
|
require('downshift');
|
|
25
25
|
require('@alfalab/core-components-popover');
|
|
26
26
|
require('@alfalab/hooks');
|
|
27
|
-
require('./getDataTestId-
|
|
27
|
+
require('./getDataTestId-1bda9cae.js');
|
|
28
28
|
require('./components/native-select/Component.js');
|
|
29
29
|
require('./components/base-select-mobile/Component.js');
|
|
30
30
|
require('@alfalab/core-components-bottom-sheet');
|
|
@@ -38,7 +38,7 @@ require('@alfalab/core-components-checkbox');
|
|
|
38
38
|
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
39
39
|
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
40
40
|
require('@alfalab/core-components-skeleton');
|
|
41
|
-
require('./intersection-observer-
|
|
41
|
+
require('./intersection-observer-38296236.js');
|
|
42
42
|
require('./consts.js');
|
|
43
43
|
require('./presets/useSelectWithApply/options-list-with-apply/footer/Component.js');
|
|
44
44
|
require('./components/checkmark/Component.js');
|
package/mobile.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SelectMobile } from "./components/select-mobile/index";
|
|
2
|
+
export { SelectModalMobile } from "./components/select-modal-mobile/index";
|
|
3
|
+
export type { SelectMobileProps } from "./components/select-mobile/index";
|
|
4
|
+
export type { SelectModalMobileProps } from "./components/select-modal-mobile/index";
|
package/mobile.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('./Component-3b7dfcdb.js');
|
|
6
|
+
require('tslib');
|
|
7
|
+
require('react');
|
|
8
|
+
require('./Component.js');
|
|
9
|
+
require('./components/arrow/Component.js');
|
|
10
|
+
require('classnames');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
12
|
+
require('./components/base-select/Component.js');
|
|
13
|
+
require('react-merge-refs');
|
|
14
|
+
require('@juggle/resize-observer');
|
|
15
|
+
require('downshift');
|
|
16
|
+
require('@alfalab/core-components-popover');
|
|
17
|
+
require('@alfalab/hooks');
|
|
18
|
+
require('./getDataTestId-1bda9cae.js');
|
|
19
|
+
require('./utils.js');
|
|
20
|
+
require('./components/native-select/Component.js');
|
|
21
|
+
require('./components/field/Component.js');
|
|
22
|
+
require('@alfalab/core-components-form-control');
|
|
23
|
+
require('./components/optgroup/Component.js');
|
|
24
|
+
require('./components/option/Component.js');
|
|
25
|
+
require('./components/checkmark/Component.js');
|
|
26
|
+
require('@alfalab/core-components-badge');
|
|
27
|
+
require('@alfalab/core-components-checkbox');
|
|
28
|
+
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
29
|
+
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
30
|
+
require('./components/checkmark-mobile/Component.js');
|
|
31
|
+
require('./components/options-list/Component.js');
|
|
32
|
+
require('@alfalab/core-components-scrollbar');
|
|
33
|
+
require('./consts.js');
|
|
34
|
+
require('./components/base-select-mobile/Component.js');
|
|
35
|
+
require('@alfalab/core-components-bottom-sheet');
|
|
36
|
+
require('@alfalab/core-components-modal/mobile');
|
|
37
|
+
require('./components/base-select-mobile/footer/Component.js');
|
|
38
|
+
require('@alfalab/core-components-base-modal');
|
|
39
|
+
require('@alfalab/core-components-button');
|
|
40
|
+
require('./components/virtual-options-list/Component.js');
|
|
41
|
+
require('react-virtual');
|
|
42
|
+
require('@alfalab/core-components-skeleton');
|
|
43
|
+
require('./intersection-observer-38296236.js');
|
|
44
|
+
require('./presets/useSelectWithApply/options-list-with-apply/footer/Component.js');
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
exports.SelectMobile = presets_useSelectWithApply_optionsListWithApply_Component.SelectMobile;
|
|
49
|
+
exports.SelectModalMobile = presets_useSelectWithApply_optionsListWithApply_Component.SelectModalMobile;
|
|
@@ -51,7 +51,7 @@ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
|
51
51
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
52
52
|
type TextBaseProps = {
|
|
53
53
|
/**
|
|
54
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/
|
|
54
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
55
55
|
*/
|
|
56
56
|
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
57
57
|
/**
|
|
@@ -5,6 +5,7 @@ import { BottomSheetProps } from "@alfalab/core-components-bottom-sheet";
|
|
|
5
5
|
import { UseSelectWithApplyProps } from "./hook-4b555174";
|
|
6
6
|
import { BaseSelectProps, OptionShape, OptionsListProps } from "./typings";
|
|
7
7
|
import { FooterProps } from "./presets/useSelectWithApply/options-list-with-apply/footer/Component";
|
|
8
|
+
import { ModalMobile } from "./Component.mobile-b2c0420d";
|
|
8
9
|
type AdditionalMobileProps = {
|
|
9
10
|
/**
|
|
10
11
|
* Футер
|
|
@@ -47,6 +48,18 @@ type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> &
|
|
|
47
48
|
* Показывать пункт "Выбрать все"
|
|
48
49
|
*/
|
|
49
50
|
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
51
|
+
/**
|
|
52
|
+
* Дополнительные пропсы шапки модалки
|
|
53
|
+
*/
|
|
54
|
+
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
55
|
+
/**
|
|
56
|
+
* Дополнительные пропсы модалки
|
|
57
|
+
*/
|
|
58
|
+
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
59
|
+
/**
|
|
60
|
+
* Дополнительные пропсы футера модалки
|
|
61
|
+
*/
|
|
62
|
+
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
50
63
|
};
|
|
51
64
|
declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
52
65
|
/**
|
|
@@ -57,5 +70,17 @@ declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelect
|
|
|
57
70
|
* Показывать пункт "Выбрать все"
|
|
58
71
|
*/
|
|
59
72
|
showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
|
|
73
|
+
/**
|
|
74
|
+
* Дополнительные пропсы шапки модалки
|
|
75
|
+
*/
|
|
76
|
+
modalHeaderProps?: Partial<import("./Component.mobile-b2c0420d").HeaderProps> | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Дополнительные пропсы модалки
|
|
79
|
+
*/
|
|
80
|
+
modalProps?: Partial<import("./Component.mobile-b2c0420d").ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Дополнительные пропсы футера модалки
|
|
83
|
+
*/
|
|
84
|
+
modalFooterProps?: Partial<import("./Component.mobile-b2c0420d").FooterProps> | undefined;
|
|
60
85
|
} & React.RefAttributes<unknown>>;
|
|
61
86
|
export { AdditionalMobileProps, SelectMobileProps, SelectMobile, OptionsListWithApply, SelectModalMobileProps, SelectModalMobile };
|
|
@@ -19,7 +19,7 @@ import '@alfalab/core-components-checkbox/modern';
|
|
|
19
19
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
20
20
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
21
21
|
import '@alfalab/core-components-skeleton/modern';
|
|
22
|
-
import './intersection-observer-
|
|
22
|
+
import './intersection-observer-6b92b662.js';
|
|
23
23
|
import { DEFAULT_VISIBLE_OPTIONS } from './consts.js';
|
|
24
24
|
import { Footer } from './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
25
25
|
|
|
@@ -157,7 +157,7 @@ const SelectModalMobile = forwardRef(({ autocomplete = false, multiple = false,
|
|
|
157
157
|
showClear,
|
|
158
158
|
showSelectAll,
|
|
159
159
|
});
|
|
160
|
-
return (React.createElement(BaseSelectMobile, { ref: ref, autocomplete: autocomplete, multiple: multiple, allowUnselect: allowUnselect, disabled: disabled, closeOnSelect: closeOnSelect, circularNavigation: circularNavigation, defaultOpen: defaultOpen, open: openProp, size: size, optionsSize: optionsSize, fieldProps: fieldProps, optionProps: optionProps, Arrow: Arrow$1, Field: Field$1, Optgroup: Optgroup$1, Option: Option$1, isBottomSheet: false, options: options, selected: selected, onChange: onChange, OptionsList: OptionsList$1, optionsListProps: optionsListProps, ...restProps, ...(multiple && applyProps) }));
|
|
160
|
+
return (React.createElement(BaseSelectMobile, { ref: ref, autocomplete: autocomplete, multiple: multiple, allowUnselect: allowUnselect, disabled: disabled, closeOnSelect: closeOnSelect, circularNavigation: circularNavigation, defaultOpen: defaultOpen, open: openProp, size: size, optionsSize: optionsSize, fieldProps: fieldProps, optionProps: optionProps, Arrow: Arrow$1, Field: Field$1, Optgroup: Optgroup$1, Option: Option$1, isBottomSheet: false, options: options, selected: selected, onChange: onChange, OptionsList: OptionsList$1, optionsListProps: optionsListProps, ...restProps, ...(multiple && !restProps.modalFooterProps?.children && applyProps) }));
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
export { OptionsListWithApply as O, SelectMobile as S, SelectModalMobile as a, SELECT_ALL_KEY as b, useSelectWithApply as u };
|
package/modern/Component.js
CHANGED
|
@@ -12,7 +12,7 @@ import '@juggle/resize-observer';
|
|
|
12
12
|
import 'downshift';
|
|
13
13
|
import '@alfalab/core-components-popover/modern';
|
|
14
14
|
import '@alfalab/hooks';
|
|
15
|
-
import './getDataTestId-
|
|
15
|
+
import './getDataTestId-59fdb29b.js';
|
|
16
16
|
import './utils.js';
|
|
17
17
|
import './components/native-select/Component.js';
|
|
18
18
|
import '@alfalab/core-components-form-control/modern';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ReactNode } from "react";
|
|
4
|
+
import { NavigationBarProps } from "./types-ebda875c";
|
|
5
|
+
import { BaseModalProps, BaseModalContext } from "@alfalab/core-components-base-modal";
|
|
6
|
+
type HeaderProps = Omit<NavigationBarProps, "size" | "view" | "parentRef">;
|
|
7
|
+
declare const Header: FC<HeaderProps>;
|
|
8
|
+
type ModalDesktopProps = BaseModalProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Ширина модального окна
|
|
11
|
+
* @default "m"
|
|
12
|
+
*/
|
|
13
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen";
|
|
14
|
+
/**
|
|
15
|
+
* Растягивает модальное окно на весь экран
|
|
16
|
+
* @deprecated Используйте размер fullscreen
|
|
17
|
+
*/
|
|
18
|
+
fullscreen?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Фиксирует позицию модального окна после открытия,
|
|
21
|
+
* предотвращая скачки, если контент внутри будет меняться
|
|
22
|
+
*/
|
|
23
|
+
fixedPosition?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Управление наличием закрывающего крестика
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
hasCloser?: boolean;
|
|
29
|
+
};
|
|
30
|
+
type ModalMobileProps = Omit<ModalDesktopProps, "size" | "fixedPosition" | "fullscreen">;
|
|
31
|
+
type View = "desktop" | "mobile";
|
|
32
|
+
type TResponsiveModalContext = {
|
|
33
|
+
view: View;
|
|
34
|
+
size: NonNullable<ModalDesktopProps["size"]>;
|
|
35
|
+
};
|
|
36
|
+
type ContentProps = {
|
|
37
|
+
/**
|
|
38
|
+
* Контент
|
|
39
|
+
*/
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Дополнительный класс
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Растягивает контент на всю высоту
|
|
47
|
+
*/
|
|
48
|
+
flex?: boolean;
|
|
49
|
+
};
|
|
50
|
+
declare const Content: FC<ContentProps>;
|
|
51
|
+
type FooterProps = {
|
|
52
|
+
/**
|
|
53
|
+
* Контент футера
|
|
54
|
+
*/
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Дополнительный класс
|
|
58
|
+
*/
|
|
59
|
+
className?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Фиксирует футер
|
|
62
|
+
*/
|
|
63
|
+
sticky?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Выравнивание элементов футера
|
|
66
|
+
*/
|
|
67
|
+
layout?: "start" | "center" | "space-between" | "column";
|
|
68
|
+
/**
|
|
69
|
+
* Отступы между элементами футера
|
|
70
|
+
*/
|
|
71
|
+
gap?: 16 | 24 | 32;
|
|
72
|
+
};
|
|
73
|
+
declare const Footer: FC<FooterProps>;
|
|
74
|
+
declare const Modal: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
|
|
75
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
76
|
+
fullscreen?: boolean | undefined;
|
|
77
|
+
fixedPosition?: boolean | undefined;
|
|
78
|
+
hasCloser?: boolean | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
view: View;
|
|
81
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
|
|
83
|
+
declare const ModalContext: import("react").Context<BaseModalContext>;
|
|
84
|
+
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
85
|
+
Content: React.FC<ContentProps>;
|
|
86
|
+
Header: React.FC<HeaderProps>;
|
|
87
|
+
Footer: React.FC<FooterProps>;
|
|
88
|
+
Closer: React.FC<CloserProps>;
|
|
89
|
+
};
|
|
90
|
+
export * from "./Component-3885b0d7";
|
|
91
|
+
export * from "./index-ebda875c";
|
|
92
|
+
export type { NavigationBarProps } from "./types-ebda875c";
|
|
93
|
+
export { HeaderProps, Header, Content, FooterProps, Footer, Modal, ResponsiveContext, ModalContext, ModalMobile };
|