@alfalab/core-components-select 10.12.8 → 11.1.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/{esm/Component-3628acb7.d.ts → Component-00b8cb17.d.ts} +5 -105
- package/{Component-adb77a91.js → Component-00b8cb17.js} +5 -5
- package/{Component-b4c00a84.d.ts → Component-2bb239f8.d.ts} +0 -0
- package/{Component-b4c00a84.js → Component-2bb239f8.js} +2 -2
- package/Component-afce40e0.d.ts +73 -0
- package/Component.js +2 -2
- package/Component.mobile-3fe0d3e6.d.ts +56 -0
- package/Context-c2e6f1b2.d.ts +4 -0
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +7 -7
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +2 -2
- package/components/base-select-mobile/Component.js +4 -4
- package/components/base-select-mobile/checkmark/Component.js +1 -1
- package/components/base-select-mobile/checkmark/index.css +4 -4
- package/components/base-select-mobile/index.css +11 -11
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +4 -4
- package/components/base-select-mobile/options-list/Component.js +2 -2
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +7 -7
- package/components/field/Component.js +2 -2
- package/components/field/index.css +9 -9
- package/components/field/index.js +1 -1
- package/components/index.js +4 -4
- package/components/native-select/Component.js +1 -1
- package/components/native-select/index.js +1 -1
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +2 -2
- package/components/option/index.css +20 -20
- package/components/option/index.js +1 -1
- package/components/options-list/Component.js +2 -2
- package/components/options-list/index.css +6 -6
- package/components/options-list/index.js +1 -1
- package/components/select-mobile/Component.js +4 -4
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +4 -4
- package/components/select-modal-mobile/Component.js +4 -4
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +4 -4
- package/components/virtual-options-list/Component.js +2 -2
- package/components/virtual-options-list/index.css +12 -12
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/Component-26c7067e.d.ts +5 -105
- package/cssm/Component-afce40e0.d.ts +73 -0
- package/cssm/Component.mobile-3fe0d3e6.d.ts +56 -0
- package/cssm/Context-c2e6f1b2.d.ts +4 -0
- package/cssm/index-3fe0d3e6.d.ts +1 -0
- package/cssm/presets/useLazyLoading/hook.d.ts +2 -2
- package/cssm/presets/useLazyLoading/hook.js +1 -1
- package/cssm/presets/useSelectWithLoading/hook.d.ts +2 -2
- package/cssm/typings.d.ts +1 -1
- package/{Component-adb77a91.d.ts → esm/Component-16827e23.d.ts} +5 -105
- package/esm/{Component-3628acb7.js → Component-16827e23.js} +5 -5
- package/esm/{Component-5a1007fc.d.ts → Component-a6b4fa53.d.ts} +0 -0
- package/esm/{Component-5a1007fc.js → Component-a6b4fa53.js} +2 -2
- package/esm/Component-afce40e0.d.ts +73 -0
- package/esm/Component.js +2 -2
- package/esm/Component.mobile-3fe0d3e6.d.ts +56 -0
- package/esm/Context-c2e6f1b2.d.ts +4 -0
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +7 -7
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +2 -2
- package/esm/components/base-select-mobile/Component.js +4 -4
- package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
- package/esm/components/base-select-mobile/checkmark/index.css +4 -4
- package/esm/components/base-select-mobile/index.css +11 -11
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +4 -4
- package/esm/components/base-select-mobile/options-list/Component.js +2 -2
- package/esm/components/base-select-mobile/options-list/index.css +9 -9
- package/esm/components/base-select-mobile/options-list/index.js +1 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +7 -7
- package/esm/components/field/Component.js +2 -2
- package/esm/components/field/index.css +9 -9
- package/esm/components/field/index.js +1 -1
- package/esm/components/index.js +4 -4
- package/esm/components/native-select/Component.js +1 -1
- package/esm/components/native-select/index.js +1 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +20 -20
- package/esm/components/option/index.js +1 -1
- package/esm/components/options-list/Component.js +2 -2
- package/esm/components/options-list/index.css +6 -6
- package/esm/components/options-list/index.js +1 -1
- package/esm/components/select-mobile/Component.js +4 -4
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +4 -4
- package/esm/components/select-modal-mobile/Component.js +4 -4
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +4 -4
- package/esm/components/virtual-options-list/Component.js +2 -2
- package/esm/components/virtual-options-list/index.css +12 -12
- package/esm/components/virtual-options-list/index.js +1 -1
- package/esm/index-3fe0d3e6.d.ts +1 -0
- package/esm/index.js +4 -4
- package/esm/{intersection-observer-c9359098.d.ts → intersection-observer-b1fa8ee2.d.ts} +0 -0
- package/esm/{intersection-observer-c9359098.js → intersection-observer-b1fa8ee2.js} +0 -0
- package/esm/presets/index.js +4 -4
- package/esm/presets/useLazyLoading/hook.d.ts +2 -2
- package/esm/presets/useLazyLoading/hook.js +4 -4
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
- package/esm/presets/useSelectWithLoading/hook.d.ts +2 -2
- package/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/{tslib.es6-c081f302.d.ts → tslib.es6-260d2088.d.ts} +0 -0
- package/esm/{tslib.es6-c081f302.js → tslib.es6-260d2088.js} +0 -0
- package/esm/typings.d.ts +1 -1
- package/index-3fe0d3e6.d.ts +1 -0
- package/index.js +4 -4
- package/{intersection-observer-b4334d6c.d.ts → intersection-observer-a9727b1b.d.ts} +0 -0
- package/{intersection-observer-b4334d6c.js → intersection-observer-a9727b1b.js} +0 -0
- package/modern/{Component-eef8ac3b.d.ts → Component-0cd464a6.d.ts} +0 -0
- package/modern/{Component-eef8ac3b.js → Component-0cd464a6.js} +2 -2
- package/modern/Component-afce40e0.d.ts +73 -0
- package/modern/{Component-75155b9f.d.ts → Component-fd3c59cb.d.ts} +5 -105
- package/modern/{Component-75155b9f.js → Component-fd3c59cb.js} +4 -4
- package/modern/Component.js +1 -1
- package/modern/Component.mobile-3fe0d3e6.d.ts +56 -0
- package/modern/Context-c2e6f1b2.d.ts +4 -0
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +7 -7
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +3 -3
- package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
- package/modern/components/base-select-mobile/checkmark/index.css +4 -4
- package/modern/components/base-select-mobile/index.css +11 -11
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +3 -3
- package/modern/components/base-select-mobile/options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/options-list/index.css +9 -9
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +7 -7
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +3 -3
- package/modern/components/native-select/Component.js +1 -1
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +6 -6
- package/modern/components/select-mobile/Component.js +3 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +3 -3
- package/modern/components/select-modal-mobile/Component.js +3 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +3 -3
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +12 -12
- package/modern/index-3fe0d3e6.d.ts +1 -0
- package/modern/index.js +3 -3
- package/modern/{intersection-observer-c9359098.d.ts → intersection-observer-b1fa8ee2.d.ts} +0 -0
- package/modern/{intersection-observer-c9359098.js → intersection-observer-b1fa8ee2.js} +0 -0
- package/modern/presets/index.js +3 -3
- package/modern/presets/useLazyLoading/hook.d.ts +2 -2
- package/modern/presets/useLazyLoading/hook.js +3 -3
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/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 +3 -3
- package/modern/presets/useSelectWithLoading/hook.d.ts +2 -2
- package/modern/presets/useSelectWithLoading/hook.js +2 -2
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/typings.d.ts +1 -1
- package/package.json +14 -14
- package/presets/index.js +4 -4
- package/presets/useLazyLoading/hook.d.ts +2 -2
- package/presets/useLazyLoading/hook.js +4 -4
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
- package/presets/useSelectWithLoading/hook.d.ts +2 -2
- package/presets/useSelectWithLoading/hook.js +2 -2
- package/presets/useSelectWithLoading/index.css +2 -2
- package/{tslib.es6-b0d6b344.d.ts → tslib.es6-76ea8c13.d.ts} +0 -0
- package/{tslib.es6-b0d6b344.js → tslib.es6-76ea8c13.js} +0 -0
- package/typings.d.ts +1 -1
- package/CHANGELOG.md +0 -1000
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1o8xl */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-secondary: #e7e9eb;
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.select__footer_1kexb {
|
|
30
30
|
background: var(--color-light-bg-primary);
|
|
31
31
|
padding: var(--gap-s) var(--gap-s) var(--gap-m);
|
|
32
32
|
outline: none
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__footer_1kexb > * + * {
|
|
35
35
|
margin-left: var(--gap-xs);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.select__withBorder_1kexb {
|
|
38
38
|
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-16827e23";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../tslib.es6-
|
|
1
|
+
import '../../../tslib.es6-260d2088.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
@@ -18,7 +18,7 @@ import '@juggle/resize-observer';
|
|
|
18
18
|
import '@alfalab/core-components-popover/esm';
|
|
19
19
|
import 'downshift';
|
|
20
20
|
import '../../../components/native-select/Component.js';
|
|
21
|
-
import '../../../Component-
|
|
21
|
+
import '../../../Component-a6b4fa53.js';
|
|
22
22
|
import '../../../Component.js';
|
|
23
23
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
24
24
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
@@ -26,7 +26,7 @@ import '@alfalab/core-components-button/esm';
|
|
|
26
26
|
import '@alfalab/core-components-base-modal/esm';
|
|
27
27
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
28
28
|
import '../../../components/base-select-mobile/checkmark/Component.js';
|
|
29
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
29
|
+
export { O as OptionsListWithApply } from '../../../Component-16827e23.js';
|
|
30
30
|
import 'react-virtual';
|
|
31
31
|
import '@alfalab/core-components-skeleton/esm';
|
|
32
|
-
import '../../../intersection-observer-
|
|
32
|
+
import '../../../intersection-observer-b1fa8ee2.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "../../typings";
|
|
2
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "../../typings";
|
|
3
3
|
type useSelectWithLoadingProps = {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
visibleOptions?: BaseSelectProps['visibleOptions'];
|
|
6
6
|
};
|
|
7
7
|
declare function useSelectWithLoading({ loading, visibleOptions, }: useSelectWithLoadingProps): {
|
|
8
|
-
Option: (props:
|
|
8
|
+
Option: (props: OptionProps) => JSX.Element;
|
|
9
9
|
options: OptionShape[];
|
|
10
10
|
} | null;
|
|
11
11
|
export { useSelectWithLoading };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-260d2088.js';
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-checkbox/esm';
|
|
@@ -6,7 +6,7 @@ import '../../components/checkmark/Component.js';
|
|
|
6
6
|
import { Option } from '../../components/option/Component.js';
|
|
7
7
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
8
8
|
|
|
9
|
-
var styles = {"skeleton":"
|
|
9
|
+
var styles = {"skeleton":"select__skeleton_1mztq"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
function useSelectWithLoading(_a) {
|
|
File without changes
|
|
File without changes
|
package/esm/typings.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./getDataTestId-3fe0d3e6";
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-76ea8c13.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -22,7 +22,7 @@ require('@juggle/resize-observer');
|
|
|
22
22
|
require('@alfalab/core-components-popover');
|
|
23
23
|
require('downshift');
|
|
24
24
|
require('./components/native-select/Component.js');
|
|
25
|
-
var components_baseSelect_Component = require('./Component-
|
|
25
|
+
var components_baseSelect_Component = require('./Component-2bb239f8.js');
|
|
26
26
|
var Component = require('./Component.js');
|
|
27
27
|
require('@alfalab/core-components-bottom-sheet');
|
|
28
28
|
require('@alfalab/core-components-modal/mobile');
|
|
@@ -30,12 +30,12 @@ require('@alfalab/core-components-button');
|
|
|
30
30
|
require('@alfalab/core-components-base-modal');
|
|
31
31
|
require('./components/base-select-mobile/options-list/Component.js');
|
|
32
32
|
require('./components/base-select-mobile/checkmark/Component.js');
|
|
33
|
-
var presets_useSelectWithApply_hook = require('./Component-
|
|
33
|
+
var presets_useSelectWithApply_hook = require('./Component-00b8cb17.js');
|
|
34
34
|
require('react-virtual');
|
|
35
35
|
var components_virtualOptionsList_Component = require('./components/virtual-options-list/Component.js');
|
|
36
36
|
require('@alfalab/core-components-skeleton');
|
|
37
37
|
var presets_useSelectWithLoading_hook = require('./presets/useSelectWithLoading/hook.js');
|
|
38
|
-
require('./intersection-observer-
|
|
38
|
+
require('./intersection-observer-a9727b1b.js');
|
|
39
39
|
var presets_useLazyLoading_hook = require('./presets/useLazyLoading/hook.js');
|
|
40
40
|
|
|
41
41
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
12
12
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"
|
|
15
|
+
var styles = {"component":"select__component_ljplh","popoverInner":"select__popoverInner_ljplh","optionsList":"select__optionsList_ljplh","nativeSelect":"select__nativeSelect_ljplh","block":"select__block_ljplh"};
|
|
16
16
|
require('./components/base-select/index.css')
|
|
17
17
|
|
|
18
18
|
const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
|
|
@@ -152,7 +152,7 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
|
|
|
152
152
|
openMenu();
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
|
-
const handleNativeSelectChange = useCallback(event => {
|
|
155
|
+
const handleNativeSelectChange = useCallback((event) => {
|
|
156
156
|
setSelectedItems([...event.target.options].reduce((acc, option, index) => option.selected ? acc.concat(flatOptions[index]) : acc, []));
|
|
157
157
|
}, [flatOptions, setSelectedItems]);
|
|
158
158
|
const getOptionProps = useCallback((option, index) => ({
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, FC } from "react";
|
|
4
|
+
import { ButtonProps } from "@alfalab/core-components-button";
|
|
5
|
+
type IconButtonProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Компонент иконки
|
|
8
|
+
*/
|
|
9
|
+
icon: ElementType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Тип кнопки
|
|
14
|
+
*/
|
|
15
|
+
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
16
|
+
/**
|
|
17
|
+
* Размер компонента
|
|
18
|
+
*/
|
|
19
|
+
size?: "xxs" | "xs" | "s";
|
|
20
|
+
/**
|
|
21
|
+
* Дополнительный класс
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
26
|
+
*/
|
|
27
|
+
dataTestId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Набор цветов для компонента
|
|
30
|
+
*/
|
|
31
|
+
colors?: "default" | "inverted";
|
|
32
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
|
|
33
|
+
declare const IconButton: React.ForwardRefExoticComponent<{
|
|
34
|
+
icon: React.ElementType<{
|
|
35
|
+
className?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
view?: "transparent" | "primary" | "secondary" | "tertiary" | "negative" | undefined;
|
|
38
|
+
size?: "s" | "xxs" | "xs" | undefined;
|
|
39
|
+
className?: string | undefined;
|
|
40
|
+
dataTestId?: string | undefined;
|
|
41
|
+
colors?: "default" | "inverted" | undefined;
|
|
42
|
+
} & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "value" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & Pick<Partial<import("@alfalab/core-components-button").ComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>> | Partial<import("@alfalab/core-components-button").ComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>>, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
44
|
+
/**
|
|
45
|
+
* Дополнительный класс
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Позиция крестика
|
|
50
|
+
*/
|
|
51
|
+
align?: 'left' | 'right';
|
|
52
|
+
/**
|
|
53
|
+
* Размер кнопки
|
|
54
|
+
*/
|
|
55
|
+
size?: IconButtonProps['size'];
|
|
56
|
+
/**
|
|
57
|
+
* Фиксирует крестик
|
|
58
|
+
*/
|
|
59
|
+
sticky?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Иконка
|
|
62
|
+
*/
|
|
63
|
+
icon?: ElementType;
|
|
64
|
+
/**
|
|
65
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
66
|
+
*/
|
|
67
|
+
dataTestId?: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Компонент только для внутреннего использования. Используйте <Header />
|
|
71
|
+
*/
|
|
72
|
+
declare const Closer: FC<CloserProps>;
|
|
73
|
+
export { IconButtonProps, IconButton, CloserProps, Closer };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ReactNode, FC
|
|
3
|
+
import { ReactNode, FC } from "react";
|
|
4
4
|
import { BottomSheetProps } from "@alfalab/core-components-bottom-sheet";
|
|
5
5
|
import { BaseSelectProps, OptionShape, OptionsListProps } from "./typings";
|
|
6
|
-
import { BaseModalProps
|
|
7
|
-
import { ButtonProps } from "@alfalab/core-components-button";
|
|
6
|
+
import { BaseModalProps } from "@alfalab/core-components-base-modal";
|
|
8
7
|
type SelectMobileProps = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "onScroll"> & {
|
|
9
8
|
/**
|
|
10
9
|
* Футер
|
|
@@ -79,54 +78,6 @@ type ContentProps = {
|
|
|
79
78
|
*/
|
|
80
79
|
flex?: boolean;
|
|
81
80
|
};
|
|
82
|
-
type HeaderProps = {
|
|
83
|
-
/**
|
|
84
|
-
* Контент шапки
|
|
85
|
-
*/
|
|
86
|
-
children?: ReactNode;
|
|
87
|
-
/**
|
|
88
|
-
* Слот слева
|
|
89
|
-
*/
|
|
90
|
-
leftAddons?: ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* Компонент крестика
|
|
93
|
-
*/
|
|
94
|
-
closer?: ReactNode;
|
|
95
|
-
/**
|
|
96
|
-
* Дополнительный класс
|
|
97
|
-
*/
|
|
98
|
-
className?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Дополнительный класс для аддонов
|
|
101
|
-
*/
|
|
102
|
-
addonClassName?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Дополнительный класс для контента
|
|
105
|
-
*/
|
|
106
|
-
contentClassName?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Заголовок шапки
|
|
109
|
-
*/
|
|
110
|
-
title?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Выравнивание заголовка
|
|
113
|
-
*/
|
|
114
|
-
align?: "left" | "center";
|
|
115
|
-
/**
|
|
116
|
-
* Обрезать ли заголовок
|
|
117
|
-
*/
|
|
118
|
-
trim?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Фиксирует шапку
|
|
121
|
-
*/
|
|
122
|
-
sticky?: boolean;
|
|
123
|
-
};
|
|
124
|
-
type HeaderMobileProps = Omit<HeaderProps, "closer"> & {
|
|
125
|
-
/**
|
|
126
|
-
* Наличие крестика
|
|
127
|
-
*/
|
|
128
|
-
hasCloser?: boolean;
|
|
129
|
-
};
|
|
130
81
|
type FooterProps = {
|
|
131
82
|
/**
|
|
132
83
|
* Контент футера
|
|
@@ -149,69 +100,18 @@ type FooterProps = {
|
|
|
149
100
|
*/
|
|
150
101
|
gap?: 16 | 24 | 32;
|
|
151
102
|
};
|
|
152
|
-
type IconButtonProps = {
|
|
153
|
-
/**
|
|
154
|
-
* Компонент иконки
|
|
155
|
-
*/
|
|
156
|
-
icon: ElementType<{
|
|
157
|
-
className?: string;
|
|
158
|
-
}>;
|
|
159
|
-
/**
|
|
160
|
-
* Тип кнопки
|
|
161
|
-
*/
|
|
162
|
-
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
163
|
-
/**
|
|
164
|
-
* Размер компонента
|
|
165
|
-
*/
|
|
166
|
-
size?: "xxs" | "xs" | "s";
|
|
167
|
-
/**
|
|
168
|
-
* Дополнительный класс
|
|
169
|
-
*/
|
|
170
|
-
className?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
173
|
-
*/
|
|
174
|
-
dataTestId?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Набор цветов для компонента
|
|
177
|
-
*/
|
|
178
|
-
colors?: "default" | "inverted";
|
|
179
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
|
|
180
|
-
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
181
|
-
/**
|
|
182
|
-
* Дополнительный класс
|
|
183
|
-
*/
|
|
184
|
-
className?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Позиция крестика
|
|
187
|
-
*/
|
|
188
|
-
align?: "left" | "right";
|
|
189
|
-
/**
|
|
190
|
-
* Размер кнопки
|
|
191
|
-
*/
|
|
192
|
-
size?: IconButtonProps["size"];
|
|
193
|
-
/**
|
|
194
|
-
* Фиксирует крестик
|
|
195
|
-
*/
|
|
196
|
-
sticky?: boolean;
|
|
197
|
-
/**
|
|
198
|
-
* Иконка
|
|
199
|
-
*/
|
|
200
|
-
icon?: ElementType;
|
|
201
|
-
};
|
|
202
103
|
declare const ModalMobile: React.ForwardRefExoticComponent<BaseModalProps & {
|
|
203
104
|
hasCloser?: boolean | undefined;
|
|
204
105
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
205
106
|
Content: React.FC<ContentProps>;
|
|
206
|
-
Header: React.FC<HeaderMobileProps>;
|
|
107
|
+
Header: React.FC<import("./Component.mobile-3fe0d3e6").HeaderMobileProps>;
|
|
207
108
|
Footer: React.FC<FooterProps>;
|
|
208
|
-
Closer: React.FC<CloserProps>;
|
|
109
|
+
Closer: React.FC<import("./Component-afce40e0").CloserProps>;
|
|
209
110
|
};
|
|
210
111
|
type ContentMobileProps = ContentProps;
|
|
211
112
|
declare const ContentMobile: FC<ContentMobileProps>;
|
|
212
113
|
type FooterMobileProps = FooterProps;
|
|
213
114
|
declare const FooterMobile: FC<FooterMobileProps>;
|
|
214
|
-
declare const ModalContext: import("react").Context<BaseModalContext>;
|
|
215
115
|
type SelectModalMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll'>;
|
|
216
116
|
declare const SelectModalMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "multiple" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & React.RefAttributes<unknown>>;
|
|
217
|
-
export { SelectMobileProps, SelectMobile, BaseSelectMobile, OptionsListWithApply, ModalMobileProps, ModalMobile, ContentMobileProps, ContentMobile, FooterMobileProps, FooterMobile,
|
|
117
|
+
export { SelectMobileProps, SelectMobile, BaseSelectMobile, OptionsListWithApply, ModalMobileProps, ModalMobile, ContentMobileProps, ContentMobile, FooterMobileProps, FooterMobile, SelectModalMobileProps, SelectModalMobile };
|
|
@@ -13,7 +13,7 @@ import { OptionsList } from './components/options-list/Component.js';
|
|
|
13
13
|
import '@alfalab/core-components-checkbox/modern';
|
|
14
14
|
import { Option } from './components/option/Component.js';
|
|
15
15
|
import { useMultipleSelection, useCombobox } from 'downshift';
|
|
16
|
-
import { g as getDataTestId } from './Component-
|
|
16
|
+
import { g as getDataTestId } from './Component-0cd464a6.js';
|
|
17
17
|
import './Component.js';
|
|
18
18
|
import { BottomSheet } from '@alfalab/core-components-bottom-sheet/modern';
|
|
19
19
|
import { ModalMobile } from '@alfalab/core-components-modal/modern/mobile';
|
|
@@ -22,7 +22,7 @@ import { OptionsList as OptionsList$1 } from './components/base-select-mobile/op
|
|
|
22
22
|
import { Checkmark } from './components/base-select-mobile/checkmark/Component.js';
|
|
23
23
|
import 'react-virtual';
|
|
24
24
|
import '@alfalab/core-components-skeleton/modern';
|
|
25
|
-
import './intersection-observer-
|
|
25
|
+
import './intersection-observer-b1fa8ee2.js';
|
|
26
26
|
|
|
27
27
|
const SELECT_ALL_KEY = 'select_all';
|
|
28
28
|
const selectAllOption = { key: SELECT_ALL_KEY, content: 'Выбрать все' };
|
|
@@ -93,7 +93,7 @@ function useSelectWithApply({ options, selected, onChange = () => null, OptionsL
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
var styles = {"footer":"
|
|
96
|
+
var styles = {"footer":"select__footer_1kexb","withBorder":"select__withBorder_1kexb"};
|
|
97
97
|
require('./presets/useSelectWithApply/options-list-with-apply/index.css')
|
|
98
98
|
|
|
99
99
|
const OptionsListWithApply = forwardRef(({ toggleMenu, OptionsList: OptionsList$1 = OptionsList, getOptionProps: defaultGetOptionProps, showClear = true, selectedDraft = [], flatOptions = [], onApply = () => null, onClear = () => null, onClose = () => null, visibleOptions = 5, ...restProps }, ref) => {
|
|
@@ -140,7 +140,7 @@ const OptionsListWithApply = forwardRef(({ toggleMenu, OptionsList: OptionsList$
|
|
|
140
140
|
showClear && (React.createElement(Button, { size: 'xxs', view: 'secondary', onClick: handleClear }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C"))) })));
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
-
var styles$1 = {"component":"
|
|
143
|
+
var styles$1 = {"component":"select__component_1igvz","popoverInner":"select__popoverInner_1igvz","sheet":"select__sheet_1igvz","sheetContent":"select__sheetContent_1igvz","sheetContainer":"select__sheetContainer_1igvz","block":"select__block_1igvz","option":"select__option_1igvz","optionGroup":"select__optionGroup_1igvz"};
|
|
144
144
|
require('./components/base-select-mobile/index.css')
|
|
145
145
|
|
|
146
146
|
const BaseSelectMobile = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, optionGroupClassName, optionsListProps, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, defaultOpen = false, open: openProp, name, id, selected, size = 'm', optionsSize = 'm', error, hint, block, label, placeholder, fieldProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, swipeable, footer, isBottomSheet, bottomSheetProps, }, ref) => {
|
package/modern/Component.js
CHANGED
|
@@ -17,7 +17,7 @@ import '@juggle/resize-observer';
|
|
|
17
17
|
import '@alfalab/core-components-popover/modern';
|
|
18
18
|
import 'downshift';
|
|
19
19
|
import './components/native-select/Component.js';
|
|
20
|
-
import { B as BaseSelect } from './Component-
|
|
20
|
+
import { B as BaseSelect } from './Component-0cd464a6.js';
|
|
21
21
|
|
|
22
22
|
const Select = forwardRef(({ Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, OptionsList: OptionsList$1 = OptionsList, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, ...restProps }, ref) => (React.createElement(BaseSelect, Object.assign({ ref: ref, Option: Option$1, Field: Field$1, Optgroup: Optgroup$1, OptionsList: OptionsList$1, Arrow: Arrow$1 }, restProps))));
|
|
23
23
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
type HeaderProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Контент шапки
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Слот слева
|
|
9
|
+
*/
|
|
10
|
+
leftAddons?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Компонент крестика
|
|
13
|
+
*/
|
|
14
|
+
closer?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Дополнительный класс
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительный класс для аддонов
|
|
21
|
+
*/
|
|
22
|
+
addonClassName?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Дополнительный класс для контента
|
|
25
|
+
*/
|
|
26
|
+
contentClassName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Заголовок шапки
|
|
29
|
+
*/
|
|
30
|
+
title?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Выравнивание заголовка
|
|
33
|
+
*/
|
|
34
|
+
align?: "left" | "center";
|
|
35
|
+
/**
|
|
36
|
+
* Обрезать ли заголовок
|
|
37
|
+
*/
|
|
38
|
+
trim?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Фиксирует шапку
|
|
41
|
+
*/
|
|
42
|
+
sticky?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
45
|
+
*/
|
|
46
|
+
dataTestId?: string;
|
|
47
|
+
};
|
|
48
|
+
declare const Header: FC<HeaderProps>;
|
|
49
|
+
type HeaderMobileProps = Omit<HeaderProps, 'closer'> & {
|
|
50
|
+
/**
|
|
51
|
+
* Наличие крестика
|
|
52
|
+
*/
|
|
53
|
+
hasCloser?: boolean;
|
|
54
|
+
};
|
|
55
|
+
declare const HeaderMobile: FC<HeaderMobileProps>;
|
|
56
|
+
export { HeaderProps, Header, HeaderMobileProps, HeaderMobile };
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { ChevronDownMIcon } from '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
4
4
|
|
|
5
|
-
var styles = {"arrow":"
|
|
5
|
+
var styles = {"arrow":"select__arrow_bdliz","open":"select__open_bdliz"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Arrow = ({ open, className }) => (React.createElement(ChevronDownMIcon, { className: cn(styles.arrow, className, { [styles.open]: open }) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 114dc */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.select__arrow_bdliz {
|
|
28
28
|
display: block;
|
|
29
29
|
width: 24px;
|
|
30
30
|
height: 24px;
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
|
|
33
33
|
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__open_bdliz {
|
|
36
36
|
transform: var(--arrow-transform);
|
|
37
37
|
}
|
|
@@ -6,4 +6,4 @@ import '@juggle/resize-observer';
|
|
|
6
6
|
import '@alfalab/core-components-popover/modern';
|
|
7
7
|
import 'downshift';
|
|
8
8
|
import '../native-select/Component.js';
|
|
9
|
-
export { B as BaseSelect } from '../../Component-
|
|
9
|
+
export { B as BaseSelect } from '../../Component-0cd464a6.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nq66f */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
|
|
29
29
|
/* optgroup */
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.select__component_ljplh {
|
|
32
32
|
width: max-content;
|
|
33
33
|
position: relative;
|
|
34
34
|
outline: 0;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__popoverInner_ljplh {
|
|
37
37
|
padding-top: var(--select-options-list-offset);
|
|
38
38
|
padding-bottom: var(--select-options-list-offset);
|
|
39
39
|
box-shadow: none;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
border-radius: 0;
|
|
43
43
|
position: relative;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.select__optionsList_ljplh {
|
|
46
46
|
padding-top: var(--select-options-list-top-padding);
|
|
47
47
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
48
48
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
overflow: hidden;
|
|
52
52
|
will-change: transform;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.select__nativeSelect_ljplh {
|
|
55
55
|
opacity: 0;
|
|
56
56
|
overflow: hidden;
|
|
57
57
|
position: absolute;
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
z-index: 1;
|
|
67
67
|
}
|
|
68
|
-
.
|
|
68
|
+
.select__block_ljplh {
|
|
69
69
|
width: 100%;
|
|
70
70
|
}
|
|
71
71
|
/* width: max-content; fix for IE */
|
|
72
72
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
73
|
-
.
|
|
73
|
+
.select__component_ljplh {
|
|
74
74
|
float: left;
|
|
75
75
|
clear: left;
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-0cd464a6";
|
|
@@ -6,4 +6,4 @@ import '@juggle/resize-observer';
|
|
|
6
6
|
import '@alfalab/core-components-popover/modern';
|
|
7
7
|
import 'downshift';
|
|
8
8
|
import '../native-select/Component.js';
|
|
9
|
-
export { B as BaseSelect } from '../../Component-
|
|
9
|
+
export { B as BaseSelect } from '../../Component-0cd464a6.js';
|
|
@@ -17,7 +17,7 @@ import '@juggle/resize-observer';
|
|
|
17
17
|
import '@alfalab/core-components-popover/modern';
|
|
18
18
|
import 'downshift';
|
|
19
19
|
import '../native-select/Component.js';
|
|
20
|
-
import '../../Component-
|
|
20
|
+
import '../../Component-0cd464a6.js';
|
|
21
21
|
import '../../Component.js';
|
|
22
22
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
23
23
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
@@ -25,7 +25,7 @@ import '@alfalab/core-components-button/modern';
|
|
|
25
25
|
import '@alfalab/core-components-base-modal/modern';
|
|
26
26
|
import './options-list/Component.js';
|
|
27
27
|
import './checkmark/Component.js';
|
|
28
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
28
|
+
export { B as BaseSelectMobile } from '../../Component-fd3c59cb.js';
|
|
29
29
|
import 'react-virtual';
|
|
30
30
|
import '@alfalab/core-components-skeleton/modern';
|
|
31
|
-
import '../../intersection-observer-
|
|
31
|
+
import '../../intersection-observer-b1fa8ee2.js';
|