@alfalab/core-components-select 12.4.7 → 13.0.1
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-c832d566.d.ts → Component-09f82c1f.d.ts} +0 -0
- package/{Component-c832d566.js → Component-09f82c1f.js} +8 -13
- package/{Component-0ae85b5e.d.ts → Component-42bffe35.d.ts} +5 -5
- package/{Component-0ae85b5e.js → Component-42bffe35.js} +28 -43
- package/Component-db573794.d.ts +73 -0
- package/Component.d.ts +10 -3
- package/Component.js +12 -12
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-select/Component.js +5 -5
- package/components/base-select/index.css +15 -9
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +5 -5
- package/components/base-select-mobile/Component.js +15 -15
- package/components/base-select-mobile/checkmark/Component.js +1 -1
- package/components/base-select-mobile/checkmark/index.css +4 -4
- package/components/base-select-mobile/index.css +12 -12
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +15 -15
- package/components/base-select-mobile/options-list/Component.js +2 -2
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +7 -7
- package/components/field/Component.d.ts +2 -22
- package/components/field/Component.js +3 -3
- package/components/field/index.css +9 -9
- package/components/field/index.js +2 -2
- package/components/index.js +18 -18
- package/components/native-select/Component.d.ts +2 -2
- package/components/native-select/Component.js +1 -1
- package/components/native-select/index.js +1 -1
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +2 -2
- package/components/option/index.css +20 -20
- package/components/option/index.js +1 -1
- package/components/options-list/Component.js +13 -19
- package/components/options-list/index.css +6 -6
- package/components/options-list/index.js +3 -3
- package/components/select-mobile/Component.js +15 -15
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +15 -15
- package/components/select-modal-mobile/Component.js +15 -15
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +15 -15
- package/components/virtual-options-list/Component.js +7 -10
- package/components/virtual-options-list/index.css +12 -12
- package/components/virtual-options-list/index.js +2 -2
- package/cssm/{Component-77d7e4fc.d.ts → Component-095a346d.d.ts} +5 -5
- package/cssm/{Component-77d7e4fc.js → Component-095a346d.js} +28 -43
- package/cssm/Component-db573794.d.ts +73 -0
- package/cssm/{Component-4bd2b7ec.d.ts → Component-f4dd589a.d.ts} +0 -0
- package/cssm/{Component-4bd2b7ec.js → Component-f4dd589a.js} +7 -12
- package/cssm/Component.d.ts +10 -3
- package/cssm/Component.js +15 -15
- package/cssm/components/base-select/Component.js +5 -5
- package/cssm/components/base-select/index.d.ts +1 -1
- package/cssm/components/base-select/index.js +5 -5
- package/cssm/components/base-select/index.module.css +8 -2
- package/cssm/components/base-select-mobile/Component.js +20 -20
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +20 -20
- package/cssm/components/base-select-mobile/index.module.css +1 -1
- package/cssm/components/base-select-mobile/options-list/Component.js +1 -1
- package/cssm/components/base-select-mobile/options-list/index.js +1 -1
- package/cssm/components/field/Component.d.ts +2 -22
- package/cssm/components/field/Component.js +2 -2
- package/cssm/components/field/index.js +2 -2
- package/cssm/components/index.js +23 -23
- package/cssm/components/native-select/Component.d.ts +2 -2
- package/cssm/components/native-select/Component.js +1 -1
- package/cssm/components/native-select/index.js +1 -1
- package/cssm/components/option/Component.js +1 -1
- package/cssm/components/option/index.js +1 -1
- package/cssm/components/options-list/Component.js +12 -18
- package/cssm/components/options-list/index.js +3 -3
- package/cssm/components/select-mobile/Component.js +20 -20
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +20 -20
- package/cssm/components/select-modal-mobile/Component.js +20 -20
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +20 -20
- package/cssm/components/virtual-options-list/Component.js +6 -9
- package/cssm/components/virtual-options-list/index.js +2 -2
- package/cssm/{hook-f5b8fe4f.d.ts → hook-edac5428.d.ts} +2 -4
- package/cssm/index.js +23 -23
- package/cssm/presets/index.d.ts +1 -1
- package/cssm/presets/index.js +20 -20
- package/cssm/presets/useLazyLoading/hook.d.ts +2 -2
- package/cssm/presets/useLazyLoading/hook.js +4 -4
- package/cssm/presets/useSelectWithApply/hook.js +20 -20
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +20 -20
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +20 -20
- package/cssm/presets/useSelectWithLoading/hook.js +1 -1
- package/{esm/tslib.es6-14867fac.d.ts → cssm/tslib.es6-0857346e.d.ts} +8 -4
- package/{tslib.es6-beb5d518.js → cssm/tslib.es6-0857346e.js} +12 -9
- package/cssm/typings.d.ts +2 -2
- package/cssm/utils.d.ts +2 -2
- package/esm/{Component-d190d712.d.ts → Component-3cfcec1a.d.ts} +0 -0
- package/esm/{Component-d190d712.js → Component-3cfcec1a.js} +8 -13
- package/esm/{Component-b4fcaaca.d.ts → Component-889ce29b.d.ts} +5 -5
- package/esm/{Component-b4fcaaca.js → Component-889ce29b.js} +28 -43
- package/esm/Component-db573794.d.ts +73 -0
- package/esm/Component.d.ts +10 -3
- package/esm/Component.js +12 -12
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-select/Component.js +5 -5
- package/esm/components/base-select/index.css +15 -9
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +5 -5
- package/esm/components/base-select-mobile/Component.js +15 -15
- package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
- package/esm/components/base-select-mobile/checkmark/index.css +4 -4
- package/esm/components/base-select-mobile/index.css +12 -12
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +15 -15
- package/esm/components/base-select-mobile/options-list/Component.js +2 -2
- package/esm/components/base-select-mobile/options-list/index.css +9 -9
- package/esm/components/base-select-mobile/options-list/index.js +1 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +7 -7
- package/esm/components/field/Component.d.ts +2 -22
- package/esm/components/field/Component.js +3 -3
- package/esm/components/field/index.css +9 -9
- package/esm/components/field/index.js +2 -2
- package/esm/components/index.js +15 -15
- package/esm/components/native-select/Component.d.ts +2 -2
- package/esm/components/native-select/Component.js +1 -1
- package/esm/components/native-select/index.js +1 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +20 -20
- package/esm/components/option/index.js +1 -1
- package/esm/components/options-list/Component.js +14 -20
- package/esm/components/options-list/index.css +6 -6
- package/esm/components/options-list/index.js +3 -3
- package/esm/components/select-mobile/Component.js +15 -15
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +15 -15
- package/esm/components/select-modal-mobile/Component.js +15 -15
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +15 -15
- package/esm/components/virtual-options-list/Component.js +7 -10
- package/esm/components/virtual-options-list/index.css +12 -12
- package/esm/components/virtual-options-list/index.js +2 -2
- package/{modern/hook-f5b8fe4f.d.ts → esm/hook-edac5428.d.ts} +2 -4
- package/esm/index.js +15 -15
- package/esm/{intersection-observer-a0b1a83f.d.ts → intersection-observer-46ae308d.d.ts} +0 -0
- package/esm/{intersection-observer-a0b1a83f.js → intersection-observer-46ae308d.js} +0 -0
- package/esm/presets/index.d.ts +1 -1
- package/esm/presets/index.js +15 -15
- package/esm/presets/useLazyLoading/hook.d.ts +2 -2
- package/esm/presets/useLazyLoading/hook.js +5 -5
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +15 -15
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +15 -15
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +15 -15
- package/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/{cssm/tslib.es6-f8106a15.d.ts → esm/tslib.es6-c4534f67.d.ts} +8 -4
- package/esm/{tslib.es6-14867fac.js → tslib.es6-c4534f67.js} +12 -9
- package/esm/typings.d.ts +2 -2
- package/esm/utils.d.ts +2 -2
- package/{hook-f5b8fe4f.d.ts → hook-edac5428.d.ts} +2 -4
- package/index.js +18 -18
- package/{intersection-observer-f01dee86.d.ts → intersection-observer-fc42e563.d.ts} +0 -0
- package/{intersection-observer-f01dee86.js → intersection-observer-fc42e563.js} +0 -0
- package/modern/{Component-538a2034.d.ts → Component-ac4d8093.d.ts} +0 -0
- package/modern/{Component-538a2034.js → Component-ac4d8093.js} +19 -22
- package/modern/Component-db573794.d.ts +73 -0
- package/modern/{Component-8186c533.d.ts → Component-dc7907a7.d.ts} +5 -5
- package/modern/{Component-8186c533.js → Component-dc7907a7.js} +43 -61
- package/modern/Component.d.ts +10 -3
- package/modern/Component.js +12 -12
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-select/Component.js +4 -4
- package/modern/components/base-select/index.css +15 -9
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +4 -4
- package/modern/components/base-select-mobile/Component.js +14 -14
- package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
- package/modern/components/base-select-mobile/checkmark/index.css +4 -4
- package/modern/components/base-select-mobile/index.css +12 -12
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +14 -14
- package/modern/components/base-select-mobile/options-list/Component.js +2 -2
- package/modern/components/base-select-mobile/options-list/index.css +9 -9
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +7 -7
- package/modern/components/field/Component.d.ts +2 -22
- package/modern/components/field/Component.js +4 -4
- package/modern/components/field/index.css +9 -9
- package/modern/components/field/index.js +1 -1
- package/modern/components/index.js +14 -14
- package/modern/components/native-select/Component.d.ts +2 -2
- package/modern/components/native-select/Component.js +1 -1
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +3 -3
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +11 -15
- package/modern/components/options-list/index.css +6 -6
- package/modern/components/options-list/index.js +2 -2
- package/modern/components/select-mobile/Component.js +14 -14
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +14 -14
- package/modern/components/select-modal-mobile/Component.js +14 -14
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +14 -14
- package/modern/components/virtual-options-list/Component.js +18 -23
- package/modern/components/virtual-options-list/index.css +12 -12
- package/modern/components/virtual-options-list/index.js +1 -1
- package/{esm/hook-f5b8fe4f.d.ts → modern/hook-edac5428.d.ts} +2 -4
- package/modern/index.js +14 -14
- package/modern/{intersection-observer-a0b1a83f.d.ts → intersection-observer-46ae308d.d.ts} +0 -0
- package/modern/{intersection-observer-a0b1a83f.js → intersection-observer-46ae308d.js} +0 -0
- package/modern/presets/index.d.ts +1 -1
- package/modern/presets/index.js +14 -14
- package/modern/presets/useLazyLoading/hook.d.ts +2 -2
- package/modern/presets/useLazyLoading/hook.js +13 -15
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +14 -14
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +14 -14
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +14 -14
- package/modern/presets/useSelectWithLoading/hook.js +2 -2
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/typings.d.ts +2 -2
- package/modern/utils.d.ts +2 -2
- package/modern/utils.js +1 -1
- package/package.json +7 -7
- package/presets/index.d.ts +1 -1
- package/presets/index.js +15 -15
- package/presets/useLazyLoading/hook.d.ts +2 -2
- package/presets/useLazyLoading/hook.js +5 -5
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +15 -15
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +15 -15
- package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +15 -15
- package/presets/useSelectWithLoading/hook.js +2 -2
- package/presets/useSelectWithLoading/index.css +2 -2
- package/{tslib.es6-beb5d518.d.ts → tslib.es6-911daf6f.d.ts} +8 -4
- package/{cssm/tslib.es6-f8106a15.js → tslib.es6-911daf6f.js} +12 -9
- package/typings.d.ts +2 -2
- package/utils.d.ts +2 -2
- package/Component-afce40e0.d.ts +0 -73
- package/cssm/Component-afce40e0.d.ts +0 -73
- package/esm/Component-afce40e0.d.ts +0 -73
- package/modern/Component-afce40e0.d.ts +0 -73
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-c4534f67.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/hooks';
|
|
5
|
-
import '@alfalab/core-components-form-control/esm';
|
|
6
|
-
import '../../utils.js';
|
|
7
|
-
import '../../components/field/Component.js';
|
|
8
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
5
|
import '../../components/arrow/Component.js';
|
|
10
6
|
import 'react-merge-refs';
|
|
11
|
-
import '@
|
|
7
|
+
import '@juggle/resize-observer';
|
|
8
|
+
import 'downshift';
|
|
9
|
+
import '@alfalab/core-components-popover/esm';
|
|
10
|
+
import '@alfalab/hooks';
|
|
11
|
+
import '../../Component-3cfcec1a.js';
|
|
12
|
+
import '../../utils.js';
|
|
13
|
+
import '../../components/native-select/Component.js';
|
|
14
|
+
import '@alfalab/core-components-form-control/esm';
|
|
15
|
+
import '../../components/field/Component.js';
|
|
12
16
|
import '../../components/optgroup/Component.js';
|
|
13
|
-
import '../../components/options-list/Component.js';
|
|
14
17
|
import '@alfalab/core-components-checkbox/esm';
|
|
15
18
|
import '../../components/checkmark/Component.js';
|
|
16
19
|
import '../../components/option/Component.js';
|
|
17
|
-
import '@
|
|
18
|
-
import '
|
|
19
|
-
import 'downshift';
|
|
20
|
-
import '../../components/native-select/Component.js';
|
|
21
|
-
import '../../Component-d190d712.js';
|
|
20
|
+
import '@alfalab/core-components-scrollbar/esm';
|
|
21
|
+
import '../../components/options-list/Component.js';
|
|
22
22
|
import '../../Component.js';
|
|
23
23
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
24
24
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
25
25
|
import '@alfalab/core-components-button/esm';
|
|
26
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-889ce29b.js';
|
|
27
|
+
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
26
28
|
import '@alfalab/core-components-base-modal/esm';
|
|
27
29
|
import '../../components/base-select-mobile/options-list/Component.js';
|
|
28
|
-
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
29
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-b4fcaaca.js';
|
|
30
30
|
import 'react-virtual';
|
|
31
31
|
import '@alfalab/core-components-skeleton/esm';
|
|
32
|
-
import '../../intersection-observer-
|
|
32
|
+
import '../../intersection-observer-46ae308d.js';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import '../../../tslib.es6-
|
|
1
|
+
import '../../../tslib.es6-c4534f67.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/hooks';
|
|
5
|
-
import '@alfalab/core-components-form-control/esm';
|
|
6
|
-
import '../../../utils.js';
|
|
7
|
-
import '../../../components/field/Component.js';
|
|
8
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
5
|
import '../../../components/arrow/Component.js';
|
|
10
6
|
import 'react-merge-refs';
|
|
11
|
-
import '@
|
|
7
|
+
import '@juggle/resize-observer';
|
|
8
|
+
import 'downshift';
|
|
9
|
+
import '@alfalab/core-components-popover/esm';
|
|
10
|
+
import '@alfalab/hooks';
|
|
11
|
+
import '../../../Component-3cfcec1a.js';
|
|
12
|
+
import '../../../utils.js';
|
|
13
|
+
import '../../../components/native-select/Component.js';
|
|
14
|
+
import '@alfalab/core-components-form-control/esm';
|
|
15
|
+
import '../../../components/field/Component.js';
|
|
12
16
|
import '../../../components/optgroup/Component.js';
|
|
13
|
-
import '../../../components/options-list/Component.js';
|
|
14
17
|
import '@alfalab/core-components-checkbox/esm';
|
|
15
18
|
import '../../../components/checkmark/Component.js';
|
|
16
19
|
import '../../../components/option/Component.js';
|
|
17
|
-
import '@
|
|
18
|
-
import '
|
|
19
|
-
import 'downshift';
|
|
20
|
-
import '../../../components/native-select/Component.js';
|
|
21
|
-
import '../../../Component-d190d712.js';
|
|
20
|
+
import '@alfalab/core-components-scrollbar/esm';
|
|
21
|
+
import '../../../components/options-list/Component.js';
|
|
22
22
|
import '../../../Component.js';
|
|
23
23
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
24
24
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
25
25
|
import '@alfalab/core-components-button/esm';
|
|
26
|
+
export { O as OptionsListWithApply } from '../../../Component-889ce29b.js';
|
|
27
|
+
import '../../../components/base-select-mobile/checkmark/Component.js';
|
|
26
28
|
import '@alfalab/core-components-base-modal/esm';
|
|
27
29
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
28
|
-
import '../../../components/base-select-mobile/checkmark/Component.js';
|
|
29
|
-
export { O as OptionsListWithApply } from '../../../Component-b4fcaaca.js';
|
|
30
30
|
import 'react-virtual';
|
|
31
31
|
import '@alfalab/core-components-skeleton/esm';
|
|
32
|
-
import '../../../intersection-observer-
|
|
32
|
+
import '../../../intersection-observer-46ae308d.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tir6a */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-secondary: #e7e9eb;
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.select__footer_1yudg {
|
|
30
30
|
background: var(--color-light-bg-primary);
|
|
31
31
|
padding: var(--gap-s) var(--gap-s) var(--gap-m);
|
|
32
32
|
outline: none
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__footer_1yudg > * + * {
|
|
35
35
|
margin-left: var(--gap-xs);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.select__withBorder_1yudg {
|
|
38
38
|
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-889ce29b";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import '../../../tslib.es6-
|
|
1
|
+
import '../../../tslib.es6-c4534f67.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '@alfalab/hooks';
|
|
5
|
-
import '@alfalab/core-components-form-control/esm';
|
|
6
|
-
import '../../../utils.js';
|
|
7
|
-
import '../../../components/field/Component.js';
|
|
8
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
5
|
import '../../../components/arrow/Component.js';
|
|
10
6
|
import 'react-merge-refs';
|
|
11
|
-
import '@
|
|
7
|
+
import '@juggle/resize-observer';
|
|
8
|
+
import 'downshift';
|
|
9
|
+
import '@alfalab/core-components-popover/esm';
|
|
10
|
+
import '@alfalab/hooks';
|
|
11
|
+
import '../../../Component-3cfcec1a.js';
|
|
12
|
+
import '../../../utils.js';
|
|
13
|
+
import '../../../components/native-select/Component.js';
|
|
14
|
+
import '@alfalab/core-components-form-control/esm';
|
|
15
|
+
import '../../../components/field/Component.js';
|
|
12
16
|
import '../../../components/optgroup/Component.js';
|
|
13
|
-
import '../../../components/options-list/Component.js';
|
|
14
17
|
import '@alfalab/core-components-checkbox/esm';
|
|
15
18
|
import '../../../components/checkmark/Component.js';
|
|
16
19
|
import '../../../components/option/Component.js';
|
|
17
|
-
import '@
|
|
18
|
-
import '
|
|
19
|
-
import 'downshift';
|
|
20
|
-
import '../../../components/native-select/Component.js';
|
|
21
|
-
import '../../../Component-d190d712.js';
|
|
20
|
+
import '@alfalab/core-components-scrollbar/esm';
|
|
21
|
+
import '../../../components/options-list/Component.js';
|
|
22
22
|
import '../../../Component.js';
|
|
23
23
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
24
24
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
25
25
|
import '@alfalab/core-components-button/esm';
|
|
26
|
+
export { O as OptionsListWithApply } from '../../../Component-889ce29b.js';
|
|
27
|
+
import '../../../components/base-select-mobile/checkmark/Component.js';
|
|
26
28
|
import '@alfalab/core-components-base-modal/esm';
|
|
27
29
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
28
|
-
import '../../../components/base-select-mobile/checkmark/Component.js';
|
|
29
|
-
export { O as OptionsListWithApply } from '../../../Component-b4fcaaca.js';
|
|
30
30
|
import 'react-virtual';
|
|
31
31
|
import '@alfalab/core-components-skeleton/esm';
|
|
32
|
-
import '../../../intersection-observer-
|
|
32
|
+
import '../../../intersection-observer-46ae308d.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-c4534f67.js';
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-checkbox/esm';
|
|
@@ -6,7 +6,7 @@ import '../../components/checkmark/Component.js';
|
|
|
6
6
|
import { Option } from '../../components/option/Component.js';
|
|
7
7
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
8
8
|
|
|
9
|
-
var styles = {"skeleton":"
|
|
9
|
+
var styles = {"skeleton":"select__skeleton_zoxte"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
function useSelectWithLoading(_a) {
|
|
@@ -12,9 +12,12 @@ declare function __generator(thisArg: any, body: any): {
|
|
|
12
12
|
declare function __exportStar(m: any, o: any): void;
|
|
13
13
|
declare function __values(o: any): any;
|
|
14
14
|
declare function __read(o: any, n: any): any;
|
|
15
|
+
/** @deprecated */
|
|
15
16
|
declare function __spread(...args: any[]): any[];
|
|
17
|
+
/** @deprecated */
|
|
16
18
|
declare function __spreadArrays(...args: any[]): any[];
|
|
17
|
-
declare function
|
|
19
|
+
declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
|
|
20
|
+
declare function __await(v: any): __await;
|
|
18
21
|
declare class __await {
|
|
19
22
|
constructor(v: any);
|
|
20
23
|
v: any;
|
|
@@ -25,8 +28,9 @@ declare function __asyncValues(o: any): any;
|
|
|
25
28
|
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
26
29
|
declare function __importStar(mod: any): any;
|
|
27
30
|
declare function __importDefault(mod: any): any;
|
|
28
|
-
declare function __classPrivateFieldGet(receiver: any,
|
|
29
|
-
declare function __classPrivateFieldSet(receiver: any,
|
|
31
|
+
declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
|
|
32
|
+
declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
|
|
33
|
+
declare function __classPrivateFieldIn(state: any, receiver: any): any;
|
|
30
34
|
declare function __assign(...args: any[]): any;
|
|
31
35
|
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
32
|
-
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
|
|
36
|
+
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/******************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -36,13 +36,16 @@ function __rest(s, e) {
|
|
|
36
36
|
}
|
|
37
37
|
return t;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
function __spreadArray(to, from, pack) {
|
|
40
|
+
if (pack || arguments.length === 2)
|
|
41
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
42
|
+
if (ar || !(i in from)) {
|
|
43
|
+
if (!ar)
|
|
44
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
45
|
+
ar[i] = from[i];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
export { __rest as _, __assign as a,
|
|
51
|
+
export { __rest as _, __assign as a, __spreadArray as b };
|
package/esm/typings.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
2
|
+
import { AriaAttributes, FC, FocusEvent, MouseEvent, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
4
3
|
import { InputProps } from "@alfalab/core-components-input";
|
|
4
|
+
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
5
5
|
type OptionShape = {
|
|
6
6
|
/**
|
|
7
7
|
* Текстовое представление пункта
|
package/esm/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
|
-
declare const isOptionShape: (item:
|
|
4
|
+
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
6
6
|
selected?: OptionShape | undefined;
|
|
7
7
|
selectedMultiple?: OptionShape[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./index";
|
|
3
3
|
type useSelectWithApplyProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Список выбранных пунктов
|
|
@@ -32,9 +32,7 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
32
32
|
showClear?: boolean | undefined;
|
|
33
33
|
onClose?: (() => void) | undefined;
|
|
34
34
|
selectedDraft?: OptionShape[] | undefined;
|
|
35
|
-
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
|
|
36
|
-
* Показывать кнопку очистки
|
|
37
|
-
*/
|
|
35
|
+
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
|
|
38
36
|
} & import("react").RefAttributes<unknown>>;
|
|
39
37
|
optionsListProps: {
|
|
40
38
|
OptionsList: import("react").FC<import("./index").OptionsListProps> | undefined;
|
package/index.js
CHANGED
|
@@ -2,44 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-911daf6f.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('@alfalab/hooks');
|
|
9
|
-
require('@alfalab/core-components-form-control');
|
|
10
|
-
var utils = require('./utils.js');
|
|
11
|
-
var components_field_Component = require('./components/field/Component.js');
|
|
12
8
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
13
9
|
var components_arrow_Component = require('./components/arrow/Component.js');
|
|
14
10
|
require('react-merge-refs');
|
|
15
|
-
require('@
|
|
11
|
+
require('@juggle/resize-observer');
|
|
12
|
+
require('downshift');
|
|
13
|
+
require('@alfalab/core-components-popover');
|
|
14
|
+
require('@alfalab/hooks');
|
|
15
|
+
var components_baseSelect_Component = require('./Component-09f82c1f.js');
|
|
16
|
+
var utils = require('./utils.js');
|
|
17
|
+
require('./components/native-select/Component.js');
|
|
18
|
+
require('@alfalab/core-components-form-control');
|
|
19
|
+
var components_field_Component = require('./components/field/Component.js');
|
|
16
20
|
var components_optgroup_Component = require('./components/optgroup/Component.js');
|
|
17
|
-
var components_optionsList_Component = require('./components/options-list/Component.js');
|
|
18
21
|
require('@alfalab/core-components-checkbox');
|
|
19
22
|
require('./components/checkmark/Component.js');
|
|
20
23
|
var components_option_Component = require('./components/option/Component.js');
|
|
21
|
-
require('@
|
|
22
|
-
require('
|
|
23
|
-
require('downshift');
|
|
24
|
-
require('./components/native-select/Component.js');
|
|
25
|
-
var components_baseSelect_Component = require('./Component-c832d566.js');
|
|
24
|
+
require('@alfalab/core-components-scrollbar');
|
|
25
|
+
var components_optionsList_Component = require('./components/options-list/Component.js');
|
|
26
26
|
var Component = require('./Component.js');
|
|
27
27
|
require('@alfalab/core-components-bottom-sheet');
|
|
28
28
|
require('@alfalab/core-components-modal/mobile');
|
|
29
29
|
require('@alfalab/core-components-button');
|
|
30
|
+
var presets_useSelectWithApply_hook = require('./Component-42bffe35.js');
|
|
31
|
+
require('./components/base-select-mobile/checkmark/Component.js');
|
|
30
32
|
require('@alfalab/core-components-base-modal');
|
|
31
33
|
require('./components/base-select-mobile/options-list/Component.js');
|
|
32
|
-
require('./components/base-select-mobile/checkmark/Component.js');
|
|
33
|
-
var presets_useSelectWithApply_hook = require('./Component-0ae85b5e.js');
|
|
34
34
|
require('react-virtual');
|
|
35
35
|
var components_virtualOptionsList_Component = require('./components/virtual-options-list/Component.js');
|
|
36
36
|
require('@alfalab/core-components-skeleton');
|
|
37
37
|
var presets_useSelectWithLoading_hook = require('./presets/useSelectWithLoading/hook.js');
|
|
38
|
-
require('./intersection-observer-f01dee86.js');
|
|
39
38
|
var presets_useLazyLoading_hook = require('./presets/useLazyLoading/hook.js');
|
|
39
|
+
require('./intersection-observer-fc42e563.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
+
exports.Arrow = components_arrow_Component.Arrow;
|
|
44
|
+
exports.BaseSelect = components_baseSelect_Component.BaseSelect;
|
|
43
45
|
exports.isGroup = utils.isGroup;
|
|
44
46
|
exports.isOptionShape = utils.isOptionShape;
|
|
45
47
|
exports.joinOptions = utils.joinOptions;
|
|
@@ -48,11 +50,9 @@ exports.processOptions = utils.processOptions;
|
|
|
48
50
|
exports.usePrevious = utils.usePrevious;
|
|
49
51
|
exports.useVisibleOptions = utils.useVisibleOptions;
|
|
50
52
|
exports.Field = components_field_Component.Field;
|
|
51
|
-
exports.Arrow = components_arrow_Component.Arrow;
|
|
52
53
|
exports.Optgroup = components_optgroup_Component.Optgroup;
|
|
53
|
-
exports.OptionsList = components_optionsList_Component.OptionsList;
|
|
54
54
|
exports.Option = components_option_Component.Option;
|
|
55
|
-
exports.
|
|
55
|
+
exports.OptionsList = components_optionsList_Component.OptionsList;
|
|
56
56
|
exports.Select = Component.Select;
|
|
57
57
|
exports.SELECT_ALL_KEY = presets_useSelectWithApply_hook.SELECT_ALL_KEY;
|
|
58
58
|
exports.SelectMobile = presets_useSelectWithApply_hook.SelectMobile;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
4
|
-
import { processOptions } from './utils.js';
|
|
5
3
|
import mergeRefs from 'react-merge-refs';
|
|
6
4
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
7
|
-
import { Popover } from '@alfalab/core-components-popover/modern';
|
|
8
5
|
import { useMultipleSelection, useCombobox } from 'downshift';
|
|
6
|
+
import { Popover } from '@alfalab/core-components-popover/modern';
|
|
7
|
+
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
8
|
+
import { processOptions } from './utils.js';
|
|
9
9
|
import { NativeSelect } from './components/native-select/Component.js';
|
|
10
10
|
|
|
11
11
|
const getDataTestId = (dataTestId, element) => {
|
|
@@ -13,7 +13,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"select__component_wekqh","popoverInner":"select__popoverInner_wekqh","optionsList":"select__optionsList_wekqh","nativeSelect":"select__nativeSelect_wekqh","block":"select__block_wekqh"};
|
|
17
17
|
require('./components/base-select/index.css')
|
|
18
18
|
|
|
19
19
|
const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
|
|
@@ -22,13 +22,10 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
|
|
|
22
22
|
const listRef = useRef(null);
|
|
23
23
|
const initiatorRef = useRef(null);
|
|
24
24
|
const itemToString = (option) => (option ? option.key : '');
|
|
25
|
-
const { flatOptions, selectedOptions } = useMemo(() => processOptions(options, selected), [
|
|
26
|
-
options,
|
|
27
|
-
selected,
|
|
28
|
-
]);
|
|
25
|
+
const { flatOptions, selectedOptions } = useMemo(() => processOptions(options, selected), [options, selected]);
|
|
29
26
|
const useMultipleSelectionProps = {
|
|
30
27
|
itemToString,
|
|
31
|
-
onSelectedItemsChange: changes => {
|
|
28
|
+
onSelectedItemsChange: (changes) => {
|
|
32
29
|
if (onChange) {
|
|
33
30
|
const { selectedItems = [] } = changes;
|
|
34
31
|
onChange({
|
|
@@ -60,7 +57,7 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
|
|
|
60
57
|
items: flatOptions,
|
|
61
58
|
itemToString,
|
|
62
59
|
defaultHighlightedIndex: selectedItems.length === 0 ? -1 : undefined,
|
|
63
|
-
onIsOpenChange: changes => {
|
|
60
|
+
onIsOpenChange: (changes) => {
|
|
64
61
|
if (onOpen) {
|
|
65
62
|
/**
|
|
66
63
|
* Вызываем обработчик асинхронно.
|
|
@@ -219,21 +216,21 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
|
|
|
219
216
|
options,
|
|
220
217
|
selectedItems,
|
|
221
218
|
]);
|
|
222
|
-
const renderValue = useCallback(() => selectedItems.map(option => (React.createElement("input", { type: 'hidden', name: name, value: option.key, key: option.key }))), [selectedItems, name]);
|
|
219
|
+
const renderValue = useCallback(() => selectedItems.map((option) => (React.createElement("input", { type: 'hidden', name: name, value: option.key, key: option.key }))), [selectedItems, name]);
|
|
223
220
|
const renderNativeSelect = useCallback(() => {
|
|
224
221
|
const value = multiple
|
|
225
|
-
? selectedItems.map(option => option.key)
|
|
222
|
+
? selectedItems.map((option) => option.key)
|
|
226
223
|
: (selectedItems[0] || {}).key;
|
|
227
|
-
return (React.createElement(NativeSelect,
|
|
224
|
+
return (React.createElement(NativeSelect, { ...menuProps, className: styles.nativeSelect, disabled: disabled, multiple: multiple, name: name, value: value, onChange: handleNativeSelectChange, options: options }));
|
|
228
225
|
}, [multiple, selectedItems, disabled, name, handleNativeSelectChange, options, menuProps]);
|
|
229
226
|
const needRenderOptionsList = flatOptions.length > 0 || showEmptyOptionsList;
|
|
230
|
-
return (React.createElement("div",
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
227
|
+
return (React.createElement("div", { ...getComboboxProps({
|
|
228
|
+
ref: rootRef,
|
|
229
|
+
...(disabled && { 'aria-disabled': true }),
|
|
230
|
+
className: cn(styles.component, { [styles.block]: block }, className),
|
|
231
|
+
}), onKeyDown: disabled ? undefined : handleFieldKeyDown, tabIndex: -1, "data-test-id": getDataTestId(dataTestId) },
|
|
235
232
|
nativeSelect && renderNativeSelect(),
|
|
236
|
-
React.createElement(Field,
|
|
233
|
+
React.createElement(Field, { selectedMultiple: selectedItems, selected: selectedItems[0], setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, multiple: multiple, open: open, disabled: disabled, size: size, placeholder: placeholder, label: label && React.createElement("span", { ...getLabelProps() }, label), labelView: labelView, Arrow: Arrow && React.createElement(Arrow, { open: open }), error: error, hint: hint, valueRenderer: valueRenderer, className: fieldClassName, innerProps: {
|
|
237
234
|
onBlur: handleFieldBlur,
|
|
238
235
|
onFocus: disabled ? undefined : handleFieldFocus,
|
|
239
236
|
onClick: disabled ? undefined : handleFieldClick,
|
|
@@ -245,10 +242,10 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
|
|
|
245
242
|
'aria-autocomplete': autocomplete
|
|
246
243
|
? inputProps['aria-autocomplete']
|
|
247
244
|
: undefined,
|
|
248
|
-
}, dataTestId: getDataTestId(dataTestId, 'field')
|
|
245
|
+
}, dataTestId: getDataTestId(dataTestId, 'field'), ...fieldProps }),
|
|
249
246
|
name && !nativeSelect && renderValue(),
|
|
250
|
-
!nativeSelect && (React.createElement(Popover, { open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: cn(styles.popoverInner, popperClassName), update: updatePopover, zIndex: zIndexPopover }, needRenderOptionsList && (React.createElement("div",
|
|
251
|
-
React.createElement(OptionsList,
|
|
247
|
+
!nativeSelect && (React.createElement(Popover, { open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: cn(styles.popoverInner, popperClassName), update: updatePopover, zIndex: zIndexPopover }, needRenderOptionsList && (React.createElement("div", { ...menuProps, className: cn(optionsListClassName, styles.optionsList) },
|
|
248
|
+
React.createElement(OptionsList, { ...optionsListProps, optionsListWidth: optionsListWidth, flatOptions: flatOptions, highlightedIndex: highlightedIndex, open: open, size: size, options: options, Optgroup: Optgroup, Option: Option, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, visibleOptions: visibleOptions, onScroll: onScroll, dataTestId: getDataTestId(dataTestId, 'options-list') })))))));
|
|
252
249
|
});
|
|
253
250
|
|
|
254
251
|
export { BaseSelect as B, getDataTestId as g };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, FC } from "react";
|
|
4
|
+
import { ButtonProps } from "@alfalab/core-components-button";
|
|
5
|
+
type IconButtonProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Компонент иконки
|
|
8
|
+
*/
|
|
9
|
+
icon: ElementType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Тип кнопки
|
|
14
|
+
*/
|
|
15
|
+
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
16
|
+
/**
|
|
17
|
+
* Размер компонента
|
|
18
|
+
*/
|
|
19
|
+
size?: "xxs" | "xs" | "s";
|
|
20
|
+
/**
|
|
21
|
+
* Дополнительный класс
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
26
|
+
*/
|
|
27
|
+
dataTestId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Набор цветов для компонента
|
|
30
|
+
*/
|
|
31
|
+
colors?: "default" | "inverted";
|
|
32
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
|
|
33
|
+
declare const IconButton: React.ForwardRefExoticComponent<{
|
|
34
|
+
icon: ElementType<{
|
|
35
|
+
className?: string;
|
|
36
|
+
}>;
|
|
37
|
+
view?: "primary" | "secondary" | "tertiary" | "transparent" | "negative" | undefined;
|
|
38
|
+
size?: "s" | "xs" | "xxs" | undefined;
|
|
39
|
+
className?: string | undefined;
|
|
40
|
+
dataTestId?: string | undefined;
|
|
41
|
+
colors?: "default" | "inverted" | undefined;
|
|
42
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
44
|
+
/**
|
|
45
|
+
* Дополнительный класс
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Позиция крестика
|
|
50
|
+
*/
|
|
51
|
+
align?: 'left' | 'right';
|
|
52
|
+
/**
|
|
53
|
+
* Размер кнопки
|
|
54
|
+
*/
|
|
55
|
+
size?: IconButtonProps['size'];
|
|
56
|
+
/**
|
|
57
|
+
* Фиксирует крестик
|
|
58
|
+
*/
|
|
59
|
+
sticky?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Иконка
|
|
62
|
+
*/
|
|
63
|
+
icon?: ElementType;
|
|
64
|
+
/**
|
|
65
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
66
|
+
*/
|
|
67
|
+
dataTestId?: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Компонент только для внутреннего использования. Используйте <Header />
|
|
71
|
+
*/
|
|
72
|
+
declare const Closer: FC<CloserProps>;
|
|
73
|
+
export { IconButtonProps, IconButton, CloserProps, Closer };
|
|
@@ -21,7 +21,7 @@ type AdditionalMobileProps = {
|
|
|
21
21
|
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
22
22
|
};
|
|
23
23
|
type SelectMobileProps = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "onScroll"> & AdditionalMobileProps;
|
|
24
|
-
declare const SelectMobile: React.ForwardRefExoticComponent<
|
|
24
|
+
declare const SelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "OptionsList" | "Checkmark"> & AdditionalMobileProps & React.RefAttributes<unknown>>;
|
|
25
25
|
type SelectMobileProps$0 = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "onScroll"> & {
|
|
26
26
|
/**
|
|
27
27
|
* Футер
|
|
@@ -42,8 +42,8 @@ type SelectMobileProps$0 = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "
|
|
|
42
42
|
*/
|
|
43
43
|
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
44
44
|
};
|
|
45
|
-
declare const BaseSelectMobile: React.ForwardRefExoticComponent<
|
|
46
|
-
footer?:
|
|
45
|
+
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "OptionsList" | "Checkmark"> & {
|
|
46
|
+
footer?: ReactNode;
|
|
47
47
|
swipeable?: boolean | undefined;
|
|
48
48
|
isBottomSheet?: boolean | undefined;
|
|
49
49
|
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
@@ -103,12 +103,12 @@ declare const ModalMobile: React.ForwardRefExoticComponent<BaseModalProps & {
|
|
|
103
103
|
Content: React.FC<ContentProps>;
|
|
104
104
|
Header: React.FC<import("./Component.mobile-3fe0d3e6").HeaderMobileProps>;
|
|
105
105
|
Footer: React.FC<FooterProps>;
|
|
106
|
-
Closer: React.FC<import("./Component-
|
|
106
|
+
Closer: React.FC<import("./Component-db573794").CloserProps>;
|
|
107
107
|
};
|
|
108
108
|
type ContentMobileProps = ContentProps;
|
|
109
109
|
declare const ContentMobile: FC<ContentMobileProps>;
|
|
110
110
|
type FooterMobileProps = FooterProps;
|
|
111
111
|
declare const FooterMobile: FC<FooterMobileProps>;
|
|
112
112
|
type SelectModalMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll'>;
|
|
113
|
-
declare const SelectModalMobile: React.ForwardRefExoticComponent<
|
|
113
|
+
declare const SelectModalMobile: React.ForwardRefExoticComponent<SelectModalMobileProps & React.RefAttributes<unknown>>;
|
|
114
114
|
export { AdditionalMobileProps, SelectMobileProps, SelectMobile, BaseSelectMobile, OptionsListWithApply, ModalMobileProps, ModalMobile, ContentMobileProps, ContentMobile, FooterMobileProps, FooterMobile, SelectModalMobileProps, SelectModalMobile };
|