@alfalab/core-components-select 13.2.20 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component-3885b0d7.d.ts +1 -1
- package/Component-f1a1856f.d.ts +61 -0
- package/Component-f1a1856f.js +158 -0
- package/Component.js +4 -3
- package/Component.responsive.js +14 -13
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +13 -13
- package/components/base-select/Component.d.ts +5 -0
- package/components/base-select/Component.js +242 -12
- package/components/base-select/index.css +8 -8
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +2 -1
- package/components/base-select-mobile/Component.d.ts +46 -0
- package/components/base-select-mobile/Component.js +209 -33
- package/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/components/base-select-mobile/footer/Component.js +34 -0
- package/components/base-select-mobile/footer/index.css +42 -0
- package/components/base-select-mobile/footer/index.js +13 -0
- package/components/base-select-mobile/index.css +10 -19
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +9 -22
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/{cssm/components/base-select-mobile/checkmark → components/checkmark-mobile}/Component.d.ts +1 -1
- package/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
- package/components/{base-select-mobile/checkmark → checkmark-mobile}/index.css +6 -6
- package/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +2 -2
- package/components/field/Component.js +1 -1
- package/components/field/index.css +9 -9
- package/components/index.js +15 -13
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +4 -4
- package/components/option/index.css +20 -20
- package/components/option/index.js +2 -2
- package/components/options-list/Component.d.ts +1 -1
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +12 -10
- package/components/select-mobile/Component.js +19 -18
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +16 -15
- package/components/select-modal-mobile/Component.js +19 -18
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +16 -15
- package/components/virtual-options-list/Component.d.ts +2 -7
- package/components/virtual-options-list/Component.js +31 -19
- package/components/virtual-options-list/index.css +19 -16
- package/components/virtual-options-list/index.js +1 -0
- package/cssm/Component-3885b0d7.d.ts +1 -1
- package/cssm/Component-610b3743.d.ts +61 -0
- package/cssm/Component-610b3743.js +168 -0
- package/cssm/Component.js +5 -4
- package/cssm/Component.responsive.js +18 -18
- package/cssm/components/base-select/Component.d.ts +5 -0
- package/cssm/components/base-select/Component.js +241 -13
- package/cssm/components/base-select/index.d.ts +1 -1
- package/cssm/components/base-select/index.js +2 -1
- package/cssm/components/base-select-mobile/Component.d.ts +46 -0
- package/cssm/components/base-select-mobile/Component.js +209 -44
- package/cssm/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/cssm/components/base-select-mobile/footer/Component.js +33 -0
- package/cssm/components/base-select-mobile/footer/index.js +14 -0
- package/cssm/components/base-select-mobile/footer/index.module.css +41 -0
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +11 -33
- package/cssm/components/base-select-mobile/index.module.css +0 -9
- package/{components/base-select-mobile/checkmark → cssm/components/checkmark-mobile}/Component.d.ts +1 -1
- package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +2 -2
- package/cssm/components/index.js +22 -21
- package/cssm/components/option/Component.js +4 -4
- package/cssm/components/option/index.js +3 -3
- package/cssm/components/options-list/Component.d.ts +1 -1
- package/cssm/components/options-list/index.module.css +3 -1
- package/cssm/components/select-mobile/Component.js +26 -26
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +19 -19
- package/cssm/components/select-modal-mobile/Component.js +26 -26
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +19 -19
- package/cssm/components/virtual-options-list/Component.d.ts +2 -7
- package/cssm/components/virtual-options-list/Component.js +30 -18
- package/cssm/components/virtual-options-list/index.js +1 -0
- package/cssm/components/virtual-options-list/index.module.css +4 -1
- package/cssm/getDataTestId-5c876d98.d.ts +2 -0
- package/cssm/getDataTestId-5c876d98.js +8 -0
- package/{esm/hook-edac5428.d.ts → cssm/hook-4b555174.d.ts} +11 -6
- package/cssm/index-3885b0d7.d.ts +1 -1
- package/cssm/index.js +21 -20
- package/cssm/presets/index.d.ts +1 -1
- package/cssm/presets/index.js +19 -19
- package/cssm/presets/useLazyLoading/hook.js +3 -3
- package/cssm/presets/useSelectWithApply/hook.js +17 -17
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +35 -35
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +23 -0
- package/cssm/presets/useSelectWithApply/options-list-with-apply/{index.module.css → footer/index.module.css} +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 +19 -19
- package/cssm/presets/useSelectWithLoading/hook.js +3 -3
- package/cssm/responsive.js +15 -15
- package/cssm/types-ebda875c.d.ts +1 -1
- package/cssm/typings.d.ts +1 -1
- package/esm/Component-3885b0d7.d.ts +1 -1
- package/esm/Component-b5248298.d.ts +61 -0
- package/esm/Component-b5248298.js +148 -0
- package/esm/Component.js +4 -3
- package/esm/Component.responsive.js +14 -13
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-select/Component.d.ts +5 -0
- package/esm/components/base-select/Component.js +239 -11
- package/esm/components/base-select/index.css +8 -8
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +2 -1
- package/esm/components/base-select-mobile/Component.d.ts +46 -0
- package/esm/components/base-select-mobile/Component.js +206 -32
- package/esm/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/esm/components/base-select-mobile/footer/Component.js +25 -0
- package/esm/components/base-select-mobile/footer/index.css +42 -0
- package/esm/components/base-select-mobile/{options-list → footer}/index.js +1 -4
- package/esm/components/base-select-mobile/index.css +10 -19
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +8 -21
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.d.ts +1 -1
- package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
- package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.css +6 -6
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +9 -9
- package/esm/components/index.js +15 -13
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +3 -3
- package/esm/components/option/index.css +20 -20
- package/esm/components/option/index.js +2 -2
- package/esm/components/options-list/Component.d.ts +1 -1
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +12 -10
- package/esm/components/select-mobile/Component.js +19 -18
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +16 -15
- package/esm/components/select-modal-mobile/Component.js +19 -18
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +16 -15
- package/esm/components/virtual-options-list/Component.d.ts +2 -7
- package/esm/components/virtual-options-list/Component.js +31 -20
- package/esm/components/virtual-options-list/index.css +19 -16
- package/esm/components/virtual-options-list/index.js +1 -0
- package/esm/getDataTestId-015e89f1.d.ts +2 -0
- package/esm/getDataTestId-015e89f1.js +6 -0
- package/{hook-edac5428.d.ts → esm/hook-4b555174.d.ts} +11 -6
- package/esm/index-3885b0d7.d.ts +1 -1
- package/esm/index.js +14 -12
- package/esm/presets/index.d.ts +1 -1
- package/esm/presets/index.js +16 -15
- package/esm/presets/useLazyLoading/hook.js +4 -4
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +13 -12
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +27 -26
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +16 -0
- package/esm/presets/useSelectWithApply/options-list-with-apply/{index.css → footer/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 +16 -15
- package/esm/presets/useSelectWithLoading/hook.js +3 -3
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +12 -11
- package/esm/types-ebda875c.d.ts +1 -1
- package/esm/typings.d.ts +1 -1
- package/getDataTestId-3deaae20.d.ts +2 -0
- package/getDataTestId-3deaae20.js +8 -0
- package/{cssm/hook-edac5428.d.ts → hook-4b555174.d.ts} +11 -6
- package/index-3885b0d7.d.ts +1 -1
- package/index.js +14 -12
- package/modern/Component-29d24a9b.d.ts +61 -0
- package/modern/Component-29d24a9b.js +162 -0
- package/modern/Component-3885b0d7.d.ts +1 -1
- package/modern/Component.js +4 -3
- package/modern/Component.responsive.js +14 -13
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-select/Component.d.ts +5 -0
- package/modern/components/base-select/Component.js +251 -10
- package/modern/components/base-select/index.css +8 -8
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +2 -1
- package/modern/components/base-select-mobile/Component.d.ts +46 -0
- package/modern/components/base-select-mobile/Component.js +220 -31
- package/modern/components/base-select-mobile/footer/Component.d.ts +8 -0
- package/modern/components/base-select-mobile/footer/Component.js +23 -0
- package/modern/components/base-select-mobile/footer/index.css +42 -0
- package/modern/components/base-select-mobile/{options-list → footer}/index.js +1 -3
- package/modern/components/base-select-mobile/index.css +10 -19
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +8 -21
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.d.ts +1 -1
- package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +1 -1
- package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/index.css +6 -6
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +15 -13
- 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/option/index.js +2 -2
- package/modern/components/options-list/Component.d.ts +1 -1
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +12 -10
- package/modern/components/select-mobile/Component.js +19 -18
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +16 -15
- package/modern/components/select-modal-mobile/Component.js +19 -18
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +16 -15
- package/modern/components/virtual-options-list/Component.d.ts +2 -7
- package/modern/components/virtual-options-list/Component.js +29 -18
- package/modern/components/virtual-options-list/index.css +19 -16
- package/modern/components/virtual-options-list/index.js +1 -0
- package/modern/getDataTestId-b257b571.d.ts +2 -0
- package/modern/getDataTestId-b257b571.js +6 -0
- package/modern/{hook-edac5428.d.ts → hook-4b555174.d.ts} +11 -6
- package/modern/index-3885b0d7.d.ts +1 -1
- package/modern/index.js +14 -12
- package/modern/presets/index.d.ts +1 -1
- package/modern/presets/index.js +16 -15
- package/modern/presets/useLazyLoading/hook.js +4 -4
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +13 -12
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +27 -26
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +13 -0
- package/modern/presets/useSelectWithApply/options-list-with-apply/{index.css → footer/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 +16 -15
- package/modern/presets/useSelectWithLoading/hook.js +3 -3
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +12 -11
- package/modern/types-ebda875c.d.ts +1 -1
- package/modern/typings.d.ts +1 -1
- package/package.json +4 -4
- package/presets/index.d.ts +1 -1
- package/presets/index.js +16 -15
- package/presets/useLazyLoading/hook.js +4 -4
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +13 -12
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +27 -26
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +10 -0
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +24 -0
- package/presets/useSelectWithApply/options-list-with-apply/{index.css → footer/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 +16 -15
- package/presets/useSelectWithLoading/hook.js +3 -3
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +12 -11
- package/types-ebda875c.d.ts +1 -1
- package/typings.d.ts +1 -1
- package/Component-44ef3579.d.ts +0 -6
- package/Component-44ef3579.js +0 -252
- package/Component-ab39b2d3.d.ts +0 -142
- package/Component-ab39b2d3.js +0 -373
- package/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/components/base-select-mobile/options-list/Component.js +0 -51
- package/components/base-select-mobile/options-list/index.css +0 -60
- package/components/base-select-mobile/options-list/index.js +0 -16
- package/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/components/base-select-mobile/virtual-options-list/Component.js +0 -114
- package/components/base-select-mobile/virtual-options-list/index.css +0 -89
- package/components/base-select-mobile/virtual-options-list/index.js +0 -18
- package/cssm/Component-e0df017c.d.ts +0 -6
- package/cssm/Component-e0df017c.js +0 -251
- package/cssm/Component-e4ef870b.d.ts +0 -142
- package/cssm/Component-e4ef870b.js +0 -382
- package/cssm/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/cssm/components/base-select-mobile/options-list/Component.js +0 -51
- package/cssm/components/base-select-mobile/options-list/index.js +0 -18
- package/cssm/components/base-select-mobile/options-list/index.module.css +0 -59
- package/cssm/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/cssm/components/base-select-mobile/virtual-options-list/Component.js +0 -114
- package/cssm/components/base-select-mobile/virtual-options-list/index.js +0 -20
- package/cssm/components/base-select-mobile/virtual-options-list/index.module.css +0 -88
- package/esm/Component-1830cf5e.d.ts +0 -142
- package/esm/Component-1830cf5e.js +0 -360
- package/esm/Component-578c3e05.d.ts +0 -6
- package/esm/Component-578c3e05.js +0 -243
- package/esm/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/esm/components/base-select-mobile/options-list/Component.js +0 -42
- package/esm/components/base-select-mobile/options-list/index.css +0 -60
- package/esm/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/esm/components/base-select-mobile/virtual-options-list/Component.js +0 -105
- package/esm/components/base-select-mobile/virtual-options-list/index.css +0 -89
- package/esm/components/base-select-mobile/virtual-options-list/index.d.ts +0 -1
- package/esm/components/base-select-mobile/virtual-options-list/index.js +0 -10
- package/modern/Component-a4a8e905.d.ts +0 -6
- package/modern/Component-a4a8e905.js +0 -255
- package/modern/Component-ae787d42.d.ts +0 -142
- package/modern/Component-ae787d42.js +0 -370
- package/modern/components/base-select-mobile/checkmark/index.d.ts +0 -1
- package/modern/components/base-select-mobile/options-list/Component.d.ts +0 -4
- package/modern/components/base-select-mobile/options-list/Component.js +0 -37
- package/modern/components/base-select-mobile/options-list/index.css +0 -60
- package/modern/components/base-select-mobile/options-list/index.d.ts +0 -1
- package/modern/components/base-select-mobile/virtual-options-list/Component.d.ts +0 -5
- package/modern/components/base-select-mobile/virtual-options-list/Component.js +0 -99
- package/modern/components/base-select-mobile/virtual-options-list/index.css +0 -89
- package/modern/components/base-select-mobile/virtual-options-list/index.d.ts +0 -1
- package/modern/components/base-select-mobile/virtual-options-list/index.js +0 -9
- /package/components/base-select-mobile/{checkmark → footer}/index.d.ts +0 -0
- /package/components/{base-select-mobile/options-list → checkmark-mobile}/index.d.ts +0 -0
- /package/{components/base-select-mobile/virtual-options-list → cssm/components/base-select-mobile/footer}/index.d.ts +0 -0
- /package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/Component.js +0 -0
- /package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.d.ts +0 -0
- /package/cssm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.module.css +0 -0
- /package/{cssm/components/base-select-mobile/options-list → esm/components/base-select-mobile/footer}/index.d.ts +0 -0
- /package/{cssm/components/base-select-mobile/virtual-options-list → esm/components/checkmark-mobile}/index.d.ts +0 -0
- /package/esm/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +0 -0
- /package/esm/{intersection-observer-55833352.d.ts → intersection-observer-961b54c8.d.ts} +0 -0
- /package/esm/{intersection-observer-55833352.js → intersection-observer-961b54c8.js} +0 -0
- /package/{intersection-observer-959eb559.d.ts → intersection-observer-d5f3e178.d.ts} +0 -0
- /package/{intersection-observer-959eb559.js → intersection-observer-d5f3e178.js} +0 -0
- /package/{esm/components/base-select-mobile/checkmark → modern/components/base-select-mobile/footer}/index.d.ts +0 -0
- /package/{esm/components/base-select-mobile/options-list → modern/components/checkmark-mobile}/index.d.ts +0 -0
- /package/modern/components/{base-select-mobile/checkmark → checkmark-mobile}/index.js +0 -0
- /package/modern/{intersection-observer-55833352.d.ts → intersection-observer-961b54c8.d.ts} +0 -0
- /package/modern/{intersection-observer-55833352.js → intersection-observer-961b54c8.js} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* hash: azp39 */
|
|
2
|
+
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
--color-light-bg-primary: #fff;
|
|
5
|
+
--color-light-border-primary: #dcdcdd; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
+
} :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 */
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
9
|
+
|
|
10
|
+
/* Hard */
|
|
11
|
+
|
|
12
|
+
/* Up */
|
|
13
|
+
|
|
14
|
+
/* Hard up */
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
--gap-m: 16px;
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
|
|
22
|
+
/* options list */
|
|
23
|
+
|
|
24
|
+
/* option */
|
|
25
|
+
|
|
26
|
+
/* checkmark */
|
|
27
|
+
|
|
28
|
+
/* optgroup */
|
|
29
|
+
} .select__footer_199rp {
|
|
30
|
+
display: flex;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
width: 100%;
|
|
33
|
+
padding: var(--gap-m) var(--gap-m);
|
|
34
|
+
background-color: var(--color-light-bg-primary)
|
|
35
|
+
} .select__footer_199rp .select__button_199rp:first-of-type {
|
|
36
|
+
margin-right: var(--gap-m);
|
|
37
|
+
} .select__button_199rp {
|
|
38
|
+
width: 50%;
|
|
39
|
+
} .select__highlighted_199rp {
|
|
40
|
+
border-top: 1px solid var(--color-light-border-primary);
|
|
41
|
+
background-color: var(--color-light-bg-primary);
|
|
42
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import 'tslib';
|
|
1
|
+
export { Footer } from './Component.js';
|
|
3
2
|
import 'react';
|
|
4
3
|
import 'classnames';
|
|
5
4
|
import '@alfalab/core-components-base-modal/esm';
|
|
6
5
|
import '@alfalab/core-components-button/esm';
|
|
7
|
-
import '../../../utils.js';
|
|
8
|
-
import '../../optgroup/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: slx8t */
|
|
2
2
|
:root {
|
|
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 */
|
|
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 */
|
|
@@ -21,42 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
|
|
23
23
|
/* options list */
|
|
24
|
-
--select-options-list-offset: var(--gap-2xs);
|
|
25
24
|
|
|
26
25
|
/* option */
|
|
27
26
|
|
|
28
27
|
/* checkmark */
|
|
29
28
|
|
|
30
29
|
/* optgroup */
|
|
31
|
-
} .
|
|
30
|
+
} .select__component_1d6dq {
|
|
32
31
|
width: max-content;
|
|
33
32
|
position: relative;
|
|
34
33
|
outline: 0;
|
|
35
|
-
} .
|
|
36
|
-
padding-top: var(--select-options-list-offset);
|
|
37
|
-
padding-bottom: var(--select-options-list-offset);
|
|
38
|
-
box-shadow: none;
|
|
39
|
-
border: none;
|
|
40
|
-
background: transparent;
|
|
41
|
-
border-radius: 0;
|
|
42
|
-
position: relative;
|
|
43
|
-
} .select__sheet_k8b5a {
|
|
34
|
+
} .select__sheet_1d6dq {
|
|
44
35
|
overflow: hidden;
|
|
45
|
-
} .
|
|
36
|
+
} .select__sheetContent_1d6dq {
|
|
46
37
|
padding: 0;
|
|
47
|
-
} .
|
|
38
|
+
} .select__sheetContainer_1d6dq {
|
|
48
39
|
padding: 0;
|
|
49
|
-
} .
|
|
40
|
+
} .select__block_1d6dq {
|
|
50
41
|
width: 100%;
|
|
51
42
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
52
|
-
.
|
|
43
|
+
.select__component_1d6dq {
|
|
53
44
|
float: left;
|
|
54
45
|
clear: left;
|
|
55
46
|
}
|
|
56
|
-
} .
|
|
47
|
+
} .select__option_1d6dq {
|
|
57
48
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
58
|
-
} .
|
|
49
|
+
} .select__option_1d6dq:before {
|
|
59
50
|
display: none;
|
|
60
|
-
} .
|
|
51
|
+
} .select__optionGroup_1d6dq {
|
|
61
52
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
62
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./Component";
|
|
@@ -1,38 +1,25 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BaseSelectMobile } from './Component.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../arrow/Component.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
7
4
|
import 'react-merge-refs';
|
|
5
|
+
import 'classnames';
|
|
8
6
|
import 'downshift';
|
|
9
7
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
10
8
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
11
|
-
import '../../
|
|
12
|
-
import '../../Component-578c3e05.js';
|
|
13
|
-
import '@juggle/resize-observer';
|
|
14
|
-
import '@alfalab/core-components-popover/esm';
|
|
15
|
-
import '@alfalab/hooks';
|
|
9
|
+
import '../../getDataTestId-015e89f1.js';
|
|
16
10
|
import '../../utils.js';
|
|
17
|
-
import '../
|
|
11
|
+
import '../arrow/Component.js';
|
|
12
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
18
13
|
import '../field/Component.js';
|
|
19
14
|
import '@alfalab/core-components-form-control/esm';
|
|
15
|
+
import '@alfalab/hooks';
|
|
20
16
|
import '../optgroup/Component.js';
|
|
21
17
|
import '../option/Component.js';
|
|
22
|
-
import './checkmark/Component.js';
|
|
23
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
24
18
|
import '../checkmark/Component.js';
|
|
25
19
|
import '@alfalab/core-components-badge/esm';
|
|
26
20
|
import '@alfalab/core-components-checkbox/esm';
|
|
27
21
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
22
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
23
|
+
import '../checkmark-mobile/Component.js';
|
|
28
24
|
import '../options-list/Component.js';
|
|
29
25
|
import '@alfalab/core-components-scrollbar/esm';
|
|
30
|
-
import 'react-virtual';
|
|
31
|
-
import '../base-option/Component.js';
|
|
32
|
-
import '../base-checkmark/Component.js';
|
|
33
|
-
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import '../../intersection-observer-55833352.js';
|
|
35
|
-
import '@alfalab/core-components-button/esm';
|
|
36
|
-
import './options-list/Component.js';
|
|
37
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
38
|
-
import './virtual-options-list/Component.js';
|
|
@@ -5,7 +5,7 @@ import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
|
5
5
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
6
6
|
import CheckmarkMIcon from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"checkmark":"
|
|
8
|
+
var styles = {"checkmark":"select__checkmark_1q10r","after":"select__after_1q10r","single":"select__single_1q10r","selected":"select__selected_1q10r","before":"select__before_1q10r","multiple":"select__multiple_1q10r","colorIcon":"select__colorIcon_1q10r"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: mhfc7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-positive: #2fc26e;
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
--select-checkmark-border-radius: var(--border-radius-circle);
|
|
40
40
|
|
|
41
41
|
/* optgroup */
|
|
42
|
-
} .
|
|
42
|
+
} .select__checkmark_1q10r {
|
|
43
43
|
flex-shrink: 0;
|
|
44
44
|
margin: var(--select-checkmark-margin)
|
|
45
|
-
} .
|
|
45
|
+
} .select__checkmark_1q10r.select__after_1q10r {
|
|
46
46
|
margin: var(--select-checkmark-margin-after);
|
|
47
|
-
} .
|
|
47
|
+
} .select__single_1q10r {
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
border-radius: var(--select-checkmark-border-radius);
|
|
55
55
|
width: var(--select-checkmark-size);
|
|
56
56
|
height: var(--select-checkmark-size)
|
|
57
|
-
} .
|
|
57
|
+
} .select__single_1q10r.select__selected_1q10r {
|
|
58
58
|
opacity: 1;
|
|
59
|
-
} .
|
|
59
|
+
} .select__before_1q10r {
|
|
60
60
|
display: var(--select-checkmark-before-display)
|
|
61
|
-
} .
|
|
61
|
+
} .select__before_1q10r.select__multiple_1q10r {
|
|
62
62
|
margin-right: var(--gap-s);
|
|
63
63
|
display: var(--select-checkmark-before-display-multiple);
|
|
64
|
-
} .
|
|
64
|
+
} .select__after_1q10r {
|
|
65
65
|
display: var(--select-checkmark-after-display)
|
|
66
|
-
} .
|
|
66
|
+
} .select__after_1q10r.select__single_1q10r {
|
|
67
67
|
display: var(--select-checkmark-after-display-single);
|
|
68
|
-
} .
|
|
68
|
+
} .select__colorIcon_1q10r {
|
|
69
69
|
color: var(--color-light-graphic-positive);
|
|
70
70
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
4
4
|
|
|
5
|
-
var styles = {"checkmark":"
|
|
5
|
+
var styles = {"checkmark":"select__checkmark_1qowo","selected":"select__selected_1qowo","displayIcon":"select__displayIcon_1qowo","displayBadge":"select__displayBadge_1qowo"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1f3ki */
|
|
2
2
|
:root {
|
|
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 */
|
|
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 */
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--select-mobile-checkmark-display-badge: none;
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
|
-
} .
|
|
28
|
+
} .select__checkmark_1qowo {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
opacity: 0
|
|
36
|
-
} .
|
|
36
|
+
} .select__checkmark_1qowo:first-child {
|
|
37
37
|
display: none;
|
|
38
|
-
} .
|
|
38
|
+
} .select__checkmark_1qowo.select__selected_1qowo {
|
|
39
39
|
opacity: 1;
|
|
40
|
-
} .
|
|
40
|
+
} .select__displayIcon_1qowo {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
42
|
-
} .
|
|
42
|
+
} .select__displayBadge_1qowo {
|
|
43
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
44
44
|
}
|
|
@@ -5,7 +5,7 @@ import { FormControl } from '@alfalab/core-components-form-control/esm';
|
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
6
|
import { joinOptions } from '../../utils.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"select__component_ghju5","field":"select__field_ghju5","disabled":"select__disabled_ghju5","arrow":"select__arrow_ghju5","placeholder":"select__placeholder_ghju5","contentWrapper":"select__contentWrapper_ghju5","value":"select__value_ghju5","focusVisible":"select__focusVisible_ghju5"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Field = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: syddh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__component_ghju5 {
|
|
32
32
|
width: 100%;
|
|
33
33
|
outline: none;
|
|
34
|
-
} .
|
|
34
|
+
} .select__field_ghju5:not(.select__disabled_ghju5) {
|
|
35
35
|
cursor: pointer
|
|
36
|
-
} .
|
|
36
|
+
} .select__field_ghju5:not(.select__disabled_ghju5):hover .select__arrow_ghju5 {
|
|
37
37
|
opacity: var(--select-arrow-hover-opacity);
|
|
38
|
-
} .
|
|
38
|
+
} .select__disabled_ghju5 {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} /* TODO: Заюзать переменные из инпута */ .
|
|
40
|
+
} /* TODO: Заюзать переменные из инпута */ .select__placeholder_ghju5 {
|
|
41
41
|
color: var(--color-light-text-secondary);
|
|
42
|
-
} .
|
|
42
|
+
} .select__contentWrapper_ghju5 {
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
line-height: 20px;
|
|
45
45
|
font-weight: 400;
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
text-overflow: ellipsis;
|
|
49
49
|
overflow: hidden;
|
|
50
50
|
width: 100%;
|
|
51
|
-
} .
|
|
51
|
+
} .select__value_ghju5 {
|
|
52
52
|
overflow: hidden;
|
|
53
53
|
text-overflow: ellipsis;
|
|
54
54
|
text-align: left;
|
|
55
|
-
} .
|
|
55
|
+
} .select__focusVisible_ghju5 {
|
|
56
56
|
outline: 2px solid var(--focus-color);
|
|
57
57
|
outline-offset: 2px;
|
|
58
58
|
}
|
package/esm/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Arrow } from './arrow/Component.js';
|
|
2
|
-
export {
|
|
3
|
-
export { S as SelectMobile, a as SelectModalMobile } from '../Component-
|
|
2
|
+
export { BaseSelect } from './base-select/Component.js';
|
|
3
|
+
export { S as SelectMobile, a as SelectModalMobile } from '../Component-b5248298.js';
|
|
4
4
|
export { Field } from './field/Component.js';
|
|
5
5
|
export { Optgroup } from './optgroup/Component.js';
|
|
6
6
|
export { Option } from './option/Component.js';
|
|
@@ -16,24 +16,26 @@ import '@juggle/resize-observer';
|
|
|
16
16
|
import 'downshift';
|
|
17
17
|
import '@alfalab/core-components-popover/esm';
|
|
18
18
|
import '@alfalab/hooks';
|
|
19
|
+
import '../getDataTestId-015e89f1.js';
|
|
19
20
|
import '../utils.js';
|
|
20
21
|
import './native-select/Component.js';
|
|
22
|
+
import '../Component.js';
|
|
23
|
+
import './base-select-mobile/Component.js';
|
|
21
24
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
22
25
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
26
|
-
import '@alfalab/core-components-skeleton/esm';
|
|
27
|
-
import '../intersection-observer-55833352.js';
|
|
26
|
+
import './base-select-mobile/footer/Component.js';
|
|
27
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
28
28
|
import '@alfalab/core-components-button/esm';
|
|
29
29
|
import '@alfalab/core-components-form-control/esm';
|
|
30
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
31
30
|
import '@alfalab/core-components-badge/esm';
|
|
32
31
|
import '@alfalab/core-components-checkbox/esm';
|
|
33
32
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
34
|
-
import '
|
|
35
|
-
import '
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import './base-select-mobile/virtual-options-list/Component.js';
|
|
33
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
34
|
+
import '@alfalab/core-components-skeleton/esm';
|
|
35
|
+
import '../intersection-observer-961b54c8.js';
|
|
36
|
+
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
39
37
|
import './checkmark/Component.js';
|
|
38
|
+
import './checkmark-mobile/Component.js';
|
|
39
|
+
import '@alfalab/core-components-scrollbar/esm';
|
|
40
|
+
import 'react-virtual';
|
|
41
|
+
import './base-checkmark/Component.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"optgroup":"
|
|
4
|
+
var styles = {"optgroup":"select__optgroup_w7e3l","label":"select__label_w7e3l","l":"select__l_w7e3l","xl":"select__xl_w7e3l"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Optgroup = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1rsrq */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--select-optgroup-right-padding: var(--gap-s);
|
|
36
36
|
--select-optgroup-l-left-padding: var(--gap-m);
|
|
37
37
|
--select-optgroup-l-right-padding: var(--gap-m);
|
|
38
|
-
} .
|
|
38
|
+
} .select__optgroup_w7e3l {
|
|
39
39
|
position: relative;
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
background: var(--select-optgroup-background);
|
|
46
46
|
min-height: 40px
|
|
47
|
-
} .
|
|
47
|
+
} .select__optgroup_w7e3l + *[role='option']:before {
|
|
48
48
|
display: none;
|
|
49
|
-
} .
|
|
49
|
+
} .select__label_w7e3l {
|
|
50
50
|
font-size: 12px;
|
|
51
51
|
line-height: 16px;
|
|
52
52
|
font-weight: 500;
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
display: block;
|
|
57
57
|
color: var(--select-optgroup-color);
|
|
58
|
-
} .
|
|
59
|
-
.
|
|
58
|
+
} .select__l_w7e3l,
|
|
59
|
+
.select__xl_w7e3l {
|
|
60
60
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
61
61
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
62
62
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React, { isValidElement } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import { Checkmark } from '../base-select-mobile/checkmark/Component.js';
|
|
5
4
|
import { Checkmark as Checkmark$1 } from '../checkmark/Component.js';
|
|
6
|
-
import '
|
|
5
|
+
import { Checkmark } from '../checkmark-mobile/Component.js';
|
|
7
6
|
import '@alfalab/core-components-badge/esm';
|
|
8
7
|
import '@alfalab/core-components-checkbox/esm';
|
|
9
8
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
10
10
|
|
|
11
|
-
var styles = {"option":"
|
|
11
|
+
var styles = {"option":"select__option_xm5ty","disabled":"select__disabled_xm5ty","s":"select__s_xm5ty","m":"select__m_xm5ty","l":"select__l_xm5ty","xl":"select__xl_xm5ty","selected":"select__selected_xm5ty","highlighted":"select__highlighted_xm5ty","content":"select__content_xm5ty","textContent":"select__textContent_xm5ty"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Option = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15xay */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* checkmark */
|
|
54
54
|
|
|
55
55
|
/* optgroup */
|
|
56
|
-
} .
|
|
56
|
+
} .select__option_xm5ty {
|
|
57
57
|
font-size: 16px;
|
|
58
58
|
line-height: 20px;
|
|
59
59
|
font-weight: 400;
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
box-sizing: border-box;
|
|
69
69
|
position: relative;
|
|
70
70
|
cursor: pointer
|
|
71
|
-
} .
|
|
71
|
+
} .select__option_xm5ty:not(.select__disabled_xm5ty):active {
|
|
72
72
|
background: var(--select-option-active-background);
|
|
73
73
|
color: var(--select-option-active-color);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_xm5ty:before {
|
|
75
75
|
content: '';
|
|
76
76
|
position: absolute;
|
|
77
77
|
left: var(--select-option-left-padding);
|
|
@@ -81,46 +81,46 @@
|
|
|
81
81
|
background: var(--select-option-divider-background);
|
|
82
82
|
display: var(--select-option-divider-display);
|
|
83
83
|
transition: opacity 0.2s ease;
|
|
84
|
-
} .
|
|
84
|
+
} .select__option_xm5ty:first-child:before {
|
|
85
85
|
display: none;
|
|
86
|
-
} .
|
|
86
|
+
} .select__s_xm5ty {
|
|
87
87
|
min-height: var(--size-s-height);
|
|
88
|
-
} .
|
|
88
|
+
} .select__m_xm5ty {
|
|
89
89
|
min-height: var(--size-m-height);
|
|
90
|
-
} .
|
|
90
|
+
} .select__l_xm5ty {
|
|
91
91
|
min-height: var(--size-l-height);
|
|
92
|
-
} .
|
|
92
|
+
} .select__xl_xm5ty {
|
|
93
93
|
min-height: var(--size-xl-height);
|
|
94
|
-
} .
|
|
95
|
-
.
|
|
94
|
+
} .select__l_xm5ty,
|
|
95
|
+
.select__xl_xm5ty {
|
|
96
96
|
padding-left: var(--select-option-l-left-padding);
|
|
97
97
|
padding-right: var(--select-option-l-right-padding)
|
|
98
|
-
} .
|
|
98
|
+
} .select__l_xm5ty:before, .select__xl_xm5ty:before {
|
|
99
99
|
left: var(--select-option-l-left-padding);
|
|
100
100
|
right: var(--select-option-l-right-padding);
|
|
101
|
-
} .
|
|
101
|
+
} .select__selected_xm5ty {
|
|
102
102
|
background: var(--select-option-selected-background);
|
|
103
103
|
color: var(--select-option-selected-color);
|
|
104
104
|
cursor: default;
|
|
105
|
-
} .
|
|
105
|
+
} .select__highlighted_xm5ty {
|
|
106
106
|
background: var(--select-option-hover-background);
|
|
107
107
|
color: var(--select-option-hover-color)
|
|
108
|
-
} .
|
|
109
|
-
.
|
|
108
|
+
} .select__highlighted_xm5ty:before,
|
|
109
|
+
.select__highlighted_xm5ty + .select__option_xm5ty:before {
|
|
110
110
|
opacity: 0;
|
|
111
|
-
} .
|
|
111
|
+
} .select__disabled_xm5ty {
|
|
112
112
|
cursor: var(--disabled-cursor);
|
|
113
113
|
background: var(--select-option-disabled-background);
|
|
114
114
|
color: var(--select-option-disabled-color);
|
|
115
|
-
} .
|
|
115
|
+
} .select__content_xm5ty {
|
|
116
116
|
overflow: hidden;
|
|
117
117
|
flex: 1;
|
|
118
118
|
text-overflow: ellipsis;
|
|
119
|
-
} .
|
|
119
|
+
} .select__textContent_xm5ty {
|
|
120
120
|
padding-top: var(--gap-s);
|
|
121
121
|
padding-bottom: var(--gap-s);
|
|
122
122
|
} /* IE min-height fix */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
123
|
-
.
|
|
123
|
+
.select__option_xm5ty:after {
|
|
124
124
|
min-height: inherit;
|
|
125
125
|
font-size: 0;
|
|
126
126
|
content: '';
|
|
@@ -2,9 +2,9 @@ export { Option } from './Component.js';
|
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '../base-select-mobile/checkmark/Component.js';
|
|
6
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
7
5
|
import '../checkmark/Component.js';
|
|
8
6
|
import '@alfalab/core-components-badge/esm';
|
|
9
7
|
import '@alfalab/core-components-checkbox/esm';
|
|
10
8
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
10
|
+
import '../checkmark-mobile/Component.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OptionsListProps } from "../../typings";
|
|
4
|
-
declare const OptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<
|
|
4
|
+
declare const OptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { OptionsList };
|
|
@@ -7,7 +7,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
7
7
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
8
8
|
import { Optgroup } from '../optgroup/Component.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"optionsList":"
|
|
10
|
+
var styles = {"optionsList":"select__optionsList_xunrq","optionsListHeader":"select__optionsListHeader_xunrq","optionsListFooter":"select__optionsListFooter_xunrq","withBorder":"select__withBorder_xunrq","scrollable":"select__scrollable_xunrq","emptyPlaceholder":"select__emptyPlaceholder_xunrq","l":"select__l_xunrq","xl":"select__xl_xunrq"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var createCounter = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: i43kx */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -29,26 +29,28 @@
|
|
|
29
29
|
/* checkmark */
|
|
30
30
|
|
|
31
31
|
/* optgroup */
|
|
32
|
-
} .
|
|
33
|
-
overflow: auto;
|
|
32
|
+
} .select__optionsList_xunrq {
|
|
34
33
|
width: 100%;
|
|
35
34
|
outline: none;
|
|
36
35
|
box-sizing: border-box;
|
|
37
|
-
|
|
36
|
+
position: relative;
|
|
37
|
+
} .select__optionsListHeader_xunrq {
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
40
|
-
} .
|
|
40
|
+
} .select__optionsListFooter_xunrq {
|
|
41
|
+
position: sticky;
|
|
42
|
+
bottom: 0;
|
|
41
43
|
box-sizing: border-box;
|
|
42
44
|
border-top: 1px solid transparent
|
|
43
|
-
} .
|
|
45
|
+
} .select__optionsListFooter_xunrq.select__withBorder_xunrq {
|
|
44
46
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
45
|
-
} .
|
|
47
|
+
} .select__scrollable_xunrq {
|
|
46
48
|
overflow: auto;
|
|
47
49
|
width: 100%;
|
|
48
|
-
} .
|
|
50
|
+
} .select__emptyPlaceholder_xunrq {
|
|
49
51
|
padding: var(--gap-m) var(--gap-s);
|
|
50
52
|
color: var(--select-options-list-empty-placeholder-color);
|
|
51
|
-
} .
|
|
52
|
-
.
|
|
53
|
+
} .select__l_xunrq .select__emptyPlaceholder_xunrq,
|
|
54
|
+
.select__xl_xunrq .select__emptyPlaceholder_xunrq {
|
|
53
55
|
padding: var(--gap-xl) var(--gap-m);
|
|
54
56
|
}
|