@alfalab/core-components-select 17.17.5 → 17.18.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/components/arrow/Component.d.ts +1 -1
- package/components/arrow/Component.js +6 -3
- package/components/arrow/index.css +8 -4
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +6 -6
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +15 -15
- package/components/base-select/Component.js +3 -3
- package/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/components/base-select/index.css +11 -11
- package/components/base-select/mobile.css +12 -12
- 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/clear-button/Component.js +1 -1
- package/components/clear-button/index.css +6 -6
- package/components/field/Component.js +1 -1
- package/components/field/index.css +12 -12
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +5 -5
- 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 +19 -19
- package/components/options-list/Component.js +3 -3
- package/components/options-list/index.css +11 -11
- package/components/search/Component.js +1 -1
- package/components/search/index.css +2 -2
- package/components/virtual-options-list/Component.js +1 -1
- package/components/virtual-options-list/index.css +15 -15
- package/cssm/components/arrow/Component.d.ts +1 -1
- package/cssm/components/arrow/Component.js +5 -2
- package/cssm/components/arrow/index.module.css +6 -2
- package/cssm/components/base-select/Component.js +1 -1
- package/cssm/components/options-list/Component.js +2 -2
- package/cssm/{hook-619dab79.js → hook-08576e87.js} +3 -3
- package/{hook-882d7b38.d.ts → cssm/hook-b8d44131.d.ts} +0 -3
- package/cssm/mobile/Component.mobile.js +1 -1
- package/cssm/presets/index.d.ts +1 -1
- package/cssm/presets/index.js +1 -1
- package/cssm/presets/useSelectWithApply/hook.js +2 -2
- 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/shared/index.js +1 -1
- package/cssm/typings.d.ts +9 -1
- package/esm/components/arrow/Component.d.ts +1 -1
- package/esm/components/arrow/Component.js +6 -3
- package/esm/components/arrow/index.css +8 -4
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +6 -6
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +15 -15
- package/esm/components/base-select/Component.js +3 -3
- package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/esm/components/base-select/index.css +11 -11
- package/esm/components/base-select/mobile.css +12 -12
- 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/clear-button/Component.js +1 -1
- package/esm/components/clear-button/index.css +6 -6
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +12 -12
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +5 -5
- 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 +19 -19
- package/esm/components/options-list/Component.js +3 -3
- package/esm/components/options-list/index.css +11 -11
- package/esm/components/search/Component.js +1 -1
- package/esm/components/search/index.css +2 -2
- package/esm/components/virtual-options-list/Component.js +1 -1
- package/esm/components/virtual-options-list/index.css +15 -15
- package/esm/{hook-b99a8a47.js → hook-aaef0610.js} +2 -2
- package/{modern/hook-882d7b38.d.ts → esm/hook-b8d44131.d.ts} +0 -3
- package/esm/{list-popover-desktop-46675d67.js → list-popover-desktop-7752b0d6.js} +1 -1
- package/esm/mobile/Component.mobile.js +1 -1
- package/esm/mobile.module-cea6059d.js +4 -0
- package/esm/presets/index.d.ts +1 -1
- package/esm/presets/index.js +1 -1
- package/esm/presets/useSelectWithApply/hook.js +2 -2
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- 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/header/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/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 +1 -1
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/shared/index.js +1 -1
- package/esm/typings.d.ts +9 -1
- package/{cssm/hook-882d7b38.d.ts → hook-b8d44131.d.ts} +0 -3
- package/{hook-c60298eb.js → hook-d32fd6d1.js} +3 -3
- package/{list-popover-desktop-1bdcb314.js → list-popover-desktop-0112e158.js} +1 -1
- package/mobile/Component.mobile.js +1 -1
- package/mobile.module-c0872fa7.js +6 -0
- package/modern/components/arrow/Component.d.ts +1 -1
- package/modern/components/arrow/Component.js +5 -2
- package/modern/components/arrow/index.css +8 -4
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +6 -6
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +15 -15
- package/modern/components/base-select/Component.js +3 -3
- package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/modern/components/base-select/index.css +11 -11
- package/modern/components/base-select/mobile.css +12 -12
- 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/clear-button/Component.js +1 -1
- package/modern/components/clear-button/index.css +6 -6
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +12 -12
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +5 -5
- 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 +19 -19
- package/modern/components/options-list/Component.js +3 -3
- package/modern/components/options-list/index.css +11 -11
- package/modern/components/search/Component.js +1 -1
- package/modern/components/search/index.css +2 -2
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +15 -15
- package/{moderncssm/hook-7fabc4ab.js → modern/hook-07c71261.js} +2 -2
- package/{esm/hook-882d7b38.d.ts → modern/hook-b8d44131.d.ts} +0 -3
- package/modern/{list-popover-desktop-44cb3bf4.js → list-popover-desktop-dd9395b6.js} +1 -1
- package/modern/mobile/Component.mobile.js +1 -1
- package/modern/mobile.module-64428fbc.js +4 -0
- package/modern/presets/index.d.ts +1 -1
- package/modern/presets/index.js +1 -1
- package/modern/presets/useSelectWithApply/hook.js +2 -2
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- 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/header/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/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 +1 -1
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/shared/index.js +1 -1
- package/modern/typings.d.ts +9 -1
- package/moderncssm/components/arrow/Component.d.ts +1 -1
- package/moderncssm/components/arrow/Component.js +4 -1
- package/moderncssm/components/arrow/index.module.css +5 -1
- package/moderncssm/components/base-select/Component.js +1 -1
- package/moderncssm/components/options-list/Component.js +2 -2
- package/{modern/hook-ded53aed.js → moderncssm/hook-50057c35.js} +2 -2
- package/moderncssm/hook-b8d44131.d.ts +112 -0
- package/moderncssm/mobile/Component.mobile.js +1 -1
- package/moderncssm/presets/index.d.ts +1 -1
- package/moderncssm/presets/index.js +1 -1
- package/moderncssm/presets/useSelectWithApply/hook.js +2 -2
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/moderncssm/shared/index.js +1 -1
- package/moderncssm/typings.d.ts +9 -1
- package/package.json +17 -16
- package/presets/index.d.ts +1 -1
- package/presets/index.js +1 -1
- package/presets/useSelectWithApply/hook.js +2 -2
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- 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/header/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/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 +1 -1
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/shared/index.js +1 -1
- package/src/components/arrow/Component.tsx +7 -2
- package/src/components/arrow/index.module.css +4 -0
- package/src/components/base-select/Component.tsx +1 -1
- package/src/components/options-list/Component.tsx +2 -1
- package/src/presets/useSelectWithApply/hook.tsx +2 -2
- package/src/typings.ts +10 -0
- package/src/vars.css +1 -0
- package/typings.d.ts +9 -1
- package/esm/mobile.module-8b8ee71a.js +0 -4
- package/mobile.module-58df004d.js +0 -6
- package/modern/mobile.module-f305a358.js +0 -4
- package/moderncssm/hook-882d7b38.d.ts +0 -115
- /package/cssm/{hook-619dab79.d.ts → hook-08576e87.d.ts} +0 -0
- /package/esm/{hook-b99a8a47.d.ts → hook-aaef0610.d.ts} +0 -0
- /package/esm/{list-popover-desktop-46675d67.d.ts → list-popover-desktop-7752b0d6.d.ts} +0 -0
- /package/{hook-c60298eb.d.ts → hook-d32fd6d1.d.ts} +0 -0
- /package/{list-popover-desktop-1bdcb314.d.ts → list-popover-desktop-0112e158.d.ts} +0 -0
- /package/modern/{hook-ded53aed.d.ts → hook-07c71261.d.ts} +0 -0
- /package/modern/{list-popover-desktop-44cb3bf4.d.ts → list-popover-desktop-dd9395b6.d.ts} +0 -0
- /package/moderncssm/{hook-7fabc4ab.d.ts → hook-50057c35.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16tj0 */
|
|
2
2
|
:root { /* 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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-base-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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
} :root {
|
|
26
26
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
27
27
|
--select-option-list-footer-button-gap: var(--gap-8);
|
|
28
|
-
} .
|
|
28
|
+
} .select__footer_ut0bb {
|
|
29
29
|
background-color: var(--color-light-base-bg-primary);
|
|
30
30
|
padding: var(--gap-12);
|
|
31
31
|
outline: none
|
|
32
|
-
} .
|
|
32
|
+
} .select__footer_ut0bb > .select__button_ut0bb + .select__button_ut0bb {
|
|
33
33
|
margin-left: var(--select-option-list-footer-button-gap);
|
|
34
34
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"desktop":"
|
|
14
|
+
var styles = {"desktop":"select__desktop_12vyf","mobile":"select__mobile_12vyf"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1na3s */
|
|
2
2
|
:root { /* 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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root { /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */
|
|
4
4
|
} :root { /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
--gap-12: var(--gap-s);
|
|
23
23
|
} :root {
|
|
24
24
|
} :root {
|
|
25
|
-
} /* сбрасывает синюю подсветку при нажатии */ .
|
|
25
|
+
} /* сбрасывает синюю подсветку при нажатии */ .select__desktop_12vyf {
|
|
26
26
|
padding: var(--gap-12);
|
|
27
|
-
} .
|
|
27
|
+
} .select__mobile_12vyf {
|
|
28
28
|
padding: var(--gap-12) var(--gap-8);
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-d32fd6d1";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-
|
|
5
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-d32fd6d1.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
14
|
+
var styles = {"skeleton":"select__skeleton_1pt3w"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
function useSelectWithLoading(_a) {
|
package/shared/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var presets_useSelectWithLoading_hook = require('../presets/useSelectWithLoading/hook.js');
|
|
6
6
|
var presets_useLazyLoading_hook = require('../presets/useLazyLoading/hook.js');
|
|
7
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
7
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-d32fd6d1.js');
|
|
8
8
|
var utils = require('../utils.js');
|
|
9
9
|
var components_option_Component = require('../components/option/Component.js');
|
|
10
10
|
var components_baseOption_Component = require('../components/base-option/Component.js');
|
|
@@ -7,6 +7,11 @@ import { ArrowProps } from '../../typings';
|
|
|
7
7
|
|
|
8
8
|
import styles from './index.module.css';
|
|
9
9
|
|
|
10
|
-
export const Arrow = ({ open, className }: ArrowProps) => (
|
|
11
|
-
<ChevronDownMIcon
|
|
10
|
+
export const Arrow = ({ open, disabled, className }: ArrowProps) => (
|
|
11
|
+
<ChevronDownMIcon
|
|
12
|
+
className={cn(styles.arrow, className, {
|
|
13
|
+
[styles.open]: open,
|
|
14
|
+
[styles.disabled]: disabled,
|
|
15
|
+
})}
|
|
16
|
+
/>
|
|
12
17
|
);
|
|
@@ -674,7 +674,7 @@ export const BaseSelect = forwardRef<unknown, ComponentProps>(
|
|
|
674
674
|
placeholder={placeholder}
|
|
675
675
|
label={label && <span {...getLabelProps()}>{label}</span>}
|
|
676
676
|
labelView={labelView}
|
|
677
|
-
Arrow={Arrow && <Arrow open={open} />}
|
|
677
|
+
Arrow={Arrow && <Arrow open={open} disabled={disabled} />}
|
|
678
678
|
error={error}
|
|
679
679
|
hint={hint}
|
|
680
680
|
valueRenderer={valueRenderer}
|
|
@@ -26,6 +26,7 @@ export const OptionsList = forwardRef<HTMLDivElement, OptionsListProps>(
|
|
|
26
26
|
size = 48,
|
|
27
27
|
className,
|
|
28
28
|
optionGroupClassName,
|
|
29
|
+
footerClassName,
|
|
29
30
|
scrollbarClassName,
|
|
30
31
|
Option,
|
|
31
32
|
getOptionProps,
|
|
@@ -210,7 +211,7 @@ export const OptionsList = forwardRef<HTMLDivElement, OptionsListProps>(
|
|
|
210
211
|
{showFooter && footer && (
|
|
211
212
|
<div
|
|
212
213
|
onMouseEnter={resetHighlightedIndex}
|
|
213
|
-
className={cn(styles.optionsListFooter, {
|
|
214
|
+
className={cn(styles.optionsListFooter, footerClassName, {
|
|
214
215
|
[styles.withBorder]:
|
|
215
216
|
visibleOptions &&
|
|
216
217
|
flatOptions.length > visibleOptions &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import reactFastCompare from 'react-fast-compare';
|
|
3
3
|
|
|
4
4
|
import type { AnyObject, BaseSelectProps, OptionShape } from '../../typings';
|
|
5
5
|
import {
|
|
@@ -187,7 +187,7 @@ export function useSelectWithApply({
|
|
|
187
187
|
|
|
188
188
|
useEffect(() => {
|
|
189
189
|
// устанавливать selectedDraft если selectedOptions изменились
|
|
190
|
-
if (!
|
|
190
|
+
if (!reactFastCompare(selectedOptionsRef.current, selectedOptions)) {
|
|
191
191
|
setSelectedDraft(selectedOptions);
|
|
192
192
|
}
|
|
193
193
|
selectedOptionsRef.current = selectedOptions;
|
package/src/typings.ts
CHANGED
|
@@ -497,6 +497,11 @@ export type ArrowProps = {
|
|
|
497
497
|
* Флаг, открыто ли меню
|
|
498
498
|
*/
|
|
499
499
|
open?: boolean;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Флаг блокировки select'а
|
|
503
|
+
*/
|
|
504
|
+
disabled?: boolean;
|
|
500
505
|
};
|
|
501
506
|
|
|
502
507
|
export type OptionsListProps = {
|
|
@@ -515,6 +520,11 @@ export type OptionsListProps = {
|
|
|
515
520
|
*/
|
|
516
521
|
scrollbarClassName?: string;
|
|
517
522
|
|
|
523
|
+
/**
|
|
524
|
+
* Дополнительный класс для футера
|
|
525
|
+
*/
|
|
526
|
+
footerClassName?: string;
|
|
527
|
+
|
|
518
528
|
/**
|
|
519
529
|
* Размер компонента
|
|
520
530
|
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
package/src/vars.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--select-error-color: var(--color-light-text-negative);
|
|
3
3
|
--select-arrow-color: var(--color-light-neutral-translucent-700);
|
|
4
|
+
--select-arrow-disabled-color: var(--color-light-neutral-translucent-500);
|
|
4
5
|
--select-arrow-hover-opacity: 0.7;
|
|
5
6
|
|
|
6
7
|
/* options list */
|
package/typings.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { InputProps } from "@alfalab/core-components-input";
|
|
|
6
6
|
import { ModalProps } from "@alfalab/core-components-modal";
|
|
7
7
|
import { ModalFooterProps, ModalHeaderProps } from "@alfalab/core-components-modal/shared";
|
|
8
8
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
9
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
9
|
+
import { UseSelectWithApplyProps } from "./hook-b8d44131";
|
|
10
10
|
type AnyObject = Record<string, any>;
|
|
11
11
|
type OptionShape = {
|
|
12
12
|
/**
|
|
@@ -386,6 +386,10 @@ type ArrowProps = {
|
|
|
386
386
|
* Флаг, открыто ли меню
|
|
387
387
|
*/
|
|
388
388
|
open?: boolean;
|
|
389
|
+
/**
|
|
390
|
+
* Флаг блокировки select'а
|
|
391
|
+
*/
|
|
392
|
+
disabled?: boolean;
|
|
389
393
|
};
|
|
390
394
|
type OptionsListProps = {
|
|
391
395
|
/**
|
|
@@ -400,6 +404,10 @@ type OptionsListProps = {
|
|
|
400
404
|
* Дополнительный класс для скроллбара
|
|
401
405
|
*/
|
|
402
406
|
scrollbarClassName?: string;
|
|
407
|
+
/**
|
|
408
|
+
* Дополнительный класс для футера
|
|
409
|
+
*/
|
|
410
|
+
footerClassName?: string;
|
|
403
411
|
/**
|
|
404
412
|
* Размер компонента
|
|
405
413
|
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var mobileStyles = {"sheet":"select__sheet_2rndr","sheetContent":"select__sheetContent_2rndr","modalContent":"select__modalContent_2rndr","sheetContainer":"select__sheetContainer_2rndr","optionsListWrapper":"select__optionsListWrapper_2rndr","optionsList":"select__optionsList_2rndr","scrollbar":"select__scrollbar_2rndr","search":"select__search_2rndr","option":"select__option_2rndr","optionGroup":"select__optionGroup_2rndr"};
|
|
2
|
-
require('./components/base-select/mobile.css')
|
|
3
|
-
|
|
4
|
-
export { mobileStyles as m };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var mobileStyles = {"sheet":"select__sheet_2rndr","sheetContent":"select__sheetContent_2rndr","modalContent":"select__modalContent_2rndr","sheetContainer":"select__sheetContainer_2rndr","optionsListWrapper":"select__optionsListWrapper_2rndr","optionsList":"select__optionsList_2rndr","scrollbar":"select__scrollbar_2rndr","search":"select__search_2rndr","option":"select__option_2rndr","optionGroup":"select__optionGroup_2rndr"};
|
|
4
|
-
require('./components/base-select/mobile.css')
|
|
5
|
-
|
|
6
|
-
exports.mobileStyles = mobileStyles;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const mobileStyles = {"sheet":"select__sheet_2rndr","sheetContent":"select__sheetContent_2rndr","modalContent":"select__modalContent_2rndr","sheetContainer":"select__sheetContainer_2rndr","optionsListWrapper":"select__optionsListWrapper_2rndr","optionsList":"select__optionsList_2rndr","scrollbar":"select__scrollbar_2rndr","search":"select__search_2rndr","option":"select__option_2rndr","optionGroup":"select__optionGroup_2rndr"};
|
|
2
|
-
require('./components/base-select/mobile.css')
|
|
3
|
-
|
|
4
|
-
export { mobileStyles as m };
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./typings";
|
|
3
|
-
type UseSelectWithApplyProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Список выбранных пунктов
|
|
6
|
-
*/
|
|
7
|
-
selected: BaseSelectProps['selected'];
|
|
8
|
-
/**
|
|
9
|
-
* Список вариантов выбора
|
|
10
|
-
*/
|
|
11
|
-
options: BaseSelectProps['options'];
|
|
12
|
-
/**
|
|
13
|
-
* Обработчик выбора
|
|
14
|
-
*/
|
|
15
|
-
onChange: BaseSelectProps['onChange'];
|
|
16
|
-
/**
|
|
17
|
-
* Дополнительный обработчик клика на чекбокс выбрать все
|
|
18
|
-
*/
|
|
19
|
-
onSelectAllClick?: (selectedMultiple: OptionShape[]) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Компонент выпадающего меню
|
|
22
|
-
*/
|
|
23
|
-
OptionsList?: BaseSelectProps['OptionsList'];
|
|
24
|
-
/**
|
|
25
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
26
|
-
*/
|
|
27
|
-
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
28
|
-
/**
|
|
29
|
-
* Включает отображение поиска
|
|
30
|
-
*/
|
|
31
|
-
showSearch?: BaseSelectProps['showSearch'];
|
|
32
|
-
/**
|
|
33
|
-
* Настройки поиска
|
|
34
|
-
*/
|
|
35
|
-
searchProps?: BaseSelectProps['searchProps'];
|
|
36
|
-
/**
|
|
37
|
-
* Показывать кнопку очистки
|
|
38
|
-
*/
|
|
39
|
-
showClear?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Показывать пункт "Выбрать все"
|
|
42
|
-
*/
|
|
43
|
-
showSelectAll?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Показывать пункт "Выбрать все" в заголовке списка
|
|
46
|
-
*/
|
|
47
|
-
showHeaderWithSelectAll?: boolean;
|
|
48
|
-
};
|
|
49
|
-
declare const SELECT_ALL_KEY = "select_all";
|
|
50
|
-
declare function useSelectWithApply({ options, selected, onChange, onSelectAllClick, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
51
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./typings").OptionsListProps & {
|
|
52
|
-
showClear?: boolean | undefined;
|
|
53
|
-
onClose?: (() => void) | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Обработчик выбора
|
|
56
|
-
*/
|
|
57
|
-
selectedDraft?: OptionShape[] | undefined;
|
|
58
|
-
OptionsList?: import("react").FC<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
59
|
-
Footer?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/footer/Component").FooterProps> | undefined;
|
|
60
|
-
Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
|
|
61
|
-
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
|
|
62
|
-
showHeaderWithSelectAll?: boolean | undefined;
|
|
63
|
-
setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
|
|
64
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
65
|
-
optionsListProps: {
|
|
66
|
-
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
67
|
-
showClear: boolean;
|
|
68
|
-
onClear: () => void;
|
|
69
|
-
onApply: () => void;
|
|
70
|
-
onClose: () => void;
|
|
71
|
-
selectedDraft: OptionShape[];
|
|
72
|
-
setSelectedDraft: import("react").Dispatch<import("react").SetStateAction<OptionShape[]>>;
|
|
73
|
-
showHeaderWithSelectAll: boolean;
|
|
74
|
-
headerProps: any;
|
|
75
|
-
};
|
|
76
|
-
allowUnselect: boolean;
|
|
77
|
-
multiple: boolean;
|
|
78
|
-
options: (OptionShape | import("./typings").GroupShape | {
|
|
79
|
-
key: string;
|
|
80
|
-
content: string;
|
|
81
|
-
})[];
|
|
82
|
-
onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
|
|
83
|
-
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
84
|
-
showSearch: boolean;
|
|
85
|
-
searchProps: {
|
|
86
|
-
value: string;
|
|
87
|
-
onChange: ((value: string) => void) | undefined;
|
|
88
|
-
componentProps?: import("./typings").SearchProps | undefined;
|
|
89
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
90
|
-
filterFn?: ((optionText: string, search: string) => boolean) | undefined;
|
|
91
|
-
filterGroup?: boolean | undefined;
|
|
92
|
-
groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
originalProps: {
|
|
95
|
-
options: (OptionShape | import("./typings").GroupShape)[];
|
|
96
|
-
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
97
|
-
onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
|
|
98
|
-
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
99
|
-
optionsListProps: unknown;
|
|
100
|
-
showClear: boolean;
|
|
101
|
-
showSelectAll: boolean;
|
|
102
|
-
showHeaderWithSelectAll: boolean;
|
|
103
|
-
showSearch: boolean;
|
|
104
|
-
searchProps: {
|
|
105
|
-
componentProps?: import("./typings").SearchProps | undefined;
|
|
106
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
107
|
-
filterFn?: ((optionText: string, search: string) => boolean) | undefined;
|
|
108
|
-
value?: string | undefined;
|
|
109
|
-
onChange?: ((value: string) => void) | undefined;
|
|
110
|
-
filterGroup?: boolean | undefined;
|
|
111
|
-
groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|