@alfalab/core-components-select 12.4.4 → 12.4.5
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-25ab7a4d.d.ts → Component-c69f1ea3.d.ts} +0 -0
- package/{Component-25ab7a4d.js → Component-c69f1ea3.js} +5 -5
- package/{Component-7ccc463d.d.ts → Component-cea98219.d.ts} +0 -0
- package/{Component-7ccc463d.js → Component-cea98219.js} +2 -2
- package/Component.js +2 -2
- 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 +10 -10
- 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 +10 -10
- 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 +8 -8
- package/components/option/Component.js +2 -2
- package/components/option/index.css +21 -21
- package/components/option/index.js +1 -1
- package/components/options-list/Component.js +2 -2
- package/components/options-list/index.css +7 -7
- 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 +13 -13
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/components/base-select-mobile/options-list/index.module.css +1 -1
- package/cssm/components/field/index.module.css +1 -1
- package/cssm/components/optgroup/index.module.css +2 -2
- package/cssm/components/option/index.module.css +1 -1
- package/cssm/components/options-list/index.module.css +1 -1
- package/cssm/components/virtual-options-list/index.module.css +1 -1
- package/esm/{Component-a9999e5b.d.ts → Component-b135f1da.d.ts} +0 -0
- package/esm/{Component-a9999e5b.js → Component-b135f1da.js} +5 -5
- package/esm/{Component-ce589cfd.d.ts → Component-f64db2d7.d.ts} +0 -0
- package/esm/{Component-ce589cfd.js → Component-f64db2d7.js} +2 -2
- package/esm/Component.js +2 -2
- 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 +10 -10
- 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 +10 -10
- 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 +8 -8
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +21 -21
- package/esm/components/option/index.js +1 -1
- package/esm/components/options-list/Component.js +2 -2
- package/esm/components/options-list/index.css +7 -7
- 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 +13 -13
- package/esm/components/virtual-options-list/index.js +1 -1
- package/esm/index.js +4 -4
- package/esm/{intersection-observer-b21e6c1a.d.ts → intersection-observer-de1d912c.d.ts} +0 -0
- package/esm/{intersection-observer-b21e6c1a.js → intersection-observer-de1d912c.js} +0 -0
- package/esm/presets/index.js +4 -4
- package/esm/presets/useLazyLoading/hook.js +3 -3
- 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.js +2 -2
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/{tslib.es6-d5f18aca.d.ts → tslib.es6-158a6254.d.ts} +0 -0
- package/esm/{tslib.es6-d5f18aca.js → tslib.es6-158a6254.js} +0 -0
- package/index.js +4 -4
- package/{intersection-observer-50136c19.d.ts → intersection-observer-feafe20b.d.ts} +0 -0
- package/{intersection-observer-50136c19.js → intersection-observer-feafe20b.js} +0 -0
- package/modern/{Component-81ab0c4c.d.ts → Component-771a748c.d.ts} +3 -3
- package/modern/{Component-81ab0c4c.js → Component-771a748c.js} +4 -4
- package/modern/Component-afce40e0.d.ts +1 -1
- package/modern/{Component-2ee07b9a.d.ts → Component-bb0f0dd7.d.ts} +0 -0
- package/modern/{Component-2ee07b9a.js → Component-bb0f0dd7.js} +1 -1
- package/modern/Component.d.ts +1 -1
- package/modern/Component.js +1 -1
- 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 +10 -10
- 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 +10 -10
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +8 -8
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +21 -21
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +7 -7
- 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 +13 -13
- package/modern/index.js +3 -3
- package/modern/{intersection-observer-b21e6c1a.d.ts → intersection-observer-de1d912c.d.ts} +0 -0
- package/modern/{intersection-observer-b21e6c1a.js → intersection-observer-de1d912c.js} +0 -0
- package/modern/presets/index.js +3 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/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.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/package.json +7 -7
- package/presets/index.js +4 -4
- package/presets/useLazyLoading/hook.js +3 -3
- 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.js +2 -2
- package/presets/useSelectWithLoading/index.css +2 -2
- /package/{tslib.es6-ea38d37f.d.ts → tslib.es6-734e065a.d.ts} +0 -0
- /package/{tslib.es6-ea38d37f.js → tslib.es6-734e065a.js} +0 -0
|
@@ -21,7 +21,7 @@ type AdditionalMobileProps = {
|
|
|
21
21
|
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
22
22
|
};
|
|
23
23
|
type SelectMobileProps = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "onScroll"> & AdditionalMobileProps;
|
|
24
|
-
declare const SelectMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "
|
|
24
|
+
declare const SelectMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "label" | "preventFlip" | "popperClassName" | "className" | "open" | "dataTestId" | "name" | "options" | "size" | "block" | "multiple" | "disabled" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "fieldClassName" | "error" | "hint" | "labelView" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Arrow" | "Field" | "Option" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList" | "optionGroupClassName"> & AdditionalMobileProps & React.RefAttributes<unknown>>;
|
|
25
25
|
type SelectMobileProps$0 = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "onScroll"> & {
|
|
26
26
|
/**
|
|
27
27
|
* Футер
|
|
@@ -42,7 +42,7 @@ type SelectMobileProps$0 = Omit<BaseSelectProps, "OptionsList" | "Checkmark" | "
|
|
|
42
42
|
*/
|
|
43
43
|
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
44
44
|
};
|
|
45
|
-
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "
|
|
45
|
+
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "label" | "preventFlip" | "popperClassName" | "className" | "open" | "dataTestId" | "name" | "options" | "size" | "block" | "multiple" | "disabled" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "fieldClassName" | "error" | "hint" | "labelView" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Arrow" | "Field" | "Option" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList" | "optionGroupClassName"> & {
|
|
46
46
|
footer?: React.ReactNode;
|
|
47
47
|
swipeable?: boolean | undefined;
|
|
48
48
|
isBottomSheet?: boolean | undefined;
|
|
@@ -110,5 +110,5 @@ declare const ContentMobile: FC<ContentMobileProps>;
|
|
|
110
110
|
type FooterMobileProps = FooterProps;
|
|
111
111
|
declare const FooterMobile: FC<FooterMobileProps>;
|
|
112
112
|
type SelectModalMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll'>;
|
|
113
|
-
declare const SelectModalMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "
|
|
113
|
+
declare const SelectModalMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "label" | "preventFlip" | "popperClassName" | "className" | "open" | "dataTestId" | "name" | "options" | "size" | "block" | "multiple" | "disabled" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "fieldClassName" | "error" | "hint" | "labelView" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Arrow" | "Field" | "Option" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList" | "optionGroupClassName"> & React.RefAttributes<unknown>>;
|
|
114
114
|
export { AdditionalMobileProps, 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-bb0f0dd7.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-de1d912c.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_ixsq3","withBorder":"select__withBorder_ixsq3"};
|
|
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_1ofme","popoverInner":"select__popoverInner_1ofme","sheet":"select__sheet_1ofme","sheetContent":"select__sheetContent_1ofme","sheetContainer":"select__sheetContainer_1ofme","block":"select__block_1ofme","option":"select__option_1ofme","optionGroup":"select__optionGroup_1ofme"};
|
|
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, labelView, 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) => {
|
|
@@ -39,7 +39,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
39
39
|
className?: string | undefined;
|
|
40
40
|
dataTestId?: string | undefined;
|
|
41
41
|
colors?: "default" | "inverted" | undefined;
|
|
42
|
-
} & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
42
|
+
} & Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "value" | "form" | "slot" | "style" | "title" | "dir" | "className" | "name" | "hidden" | "color" | "disabled" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & Pick<Partial<import("@alfalab/core-components-button").AnchorButtonProps> | Partial<import("@alfalab/core-components-button").NativeButtonProps>, "href" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
43
43
|
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
44
44
|
/**
|
|
45
45
|
* Дополнительный класс
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"select__component_kkbdr","popoverInner":"select__popoverInner_kkbdr","optionsList":"select__optionsList_kkbdr","nativeSelect":"select__nativeSelect_kkbdr","block":"select__block_kkbdr"};
|
|
17
17
|
require('./components/base-select/index.css')
|
|
18
18
|
|
|
19
19
|
const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
|
package/modern/Component.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ type SelectProps = Omit<BaseSelectProps, 'fieldProps'> & {
|
|
|
86
86
|
*/
|
|
87
87
|
fieldProps?: FormControlProps & Record<string, unknown>;
|
|
88
88
|
};
|
|
89
|
-
declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "
|
|
89
|
+
declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "label" | "preventFlip" | "popperClassName" | "className" | "open" | "dataTestId" | "name" | "options" | "size" | "block" | "multiple" | "disabled" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "fieldClassName" | "error" | "hint" | "labelView" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "Arrow" | "Field" | "OptionsList" | "Option" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList" | "optionGroupClassName"> & {
|
|
90
90
|
/**
|
|
91
91
|
* Пропсы, которые будут прокинуты в компонент поля
|
|
92
92
|
*/
|
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-bb0f0dd7.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
|
|
|
@@ -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_1w29n","open":"select__open_1w29n"};
|
|
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: ogx2g */
|
|
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_1w29n {
|
|
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_1w29n {
|
|
36
36
|
transform: var(--arrow-transform);
|
|
37
37
|
}
|
|
@@ -7,4 +7,4 @@ import '@juggle/resize-observer';
|
|
|
7
7
|
import '@alfalab/core-components-popover/modern';
|
|
8
8
|
import 'downshift';
|
|
9
9
|
import '../native-select/Component.js';
|
|
10
|
-
export { B as BaseSelect } from '../../Component-
|
|
10
|
+
export { B as BaseSelect } from '../../Component-bb0f0dd7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ut5mb */
|
|
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_kkbdr {
|
|
32
32
|
width: max-content;
|
|
33
33
|
position: relative;
|
|
34
34
|
outline: 0;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__popoverInner_kkbdr {
|
|
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_kkbdr {
|
|
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_kkbdr {
|
|
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_kkbdr {
|
|
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_kkbdr {
|
|
74
74
|
float: left;
|
|
75
75
|
clear: left;
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-bb0f0dd7";
|
|
@@ -7,4 +7,4 @@ import '@juggle/resize-observer';
|
|
|
7
7
|
import '@alfalab/core-components-popover/modern';
|
|
8
8
|
import 'downshift';
|
|
9
9
|
import '../native-select/Component.js';
|
|
10
|
-
export { B as BaseSelect } from '../../Component-
|
|
10
|
+
export { B as BaseSelect } from '../../Component-bb0f0dd7.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-bb0f0dd7.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-771a748c.js';
|
|
29
29
|
import 'react-virtual';
|
|
30
30
|
import '@alfalab/core-components-skeleton/modern';
|
|
31
|
-
import '../../intersection-observer-
|
|
31
|
+
import '../../intersection-observer-de1d912c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"checkmark":"
|
|
4
|
+
var styles = {"checkmark":"select__checkmark_1c224","selected":"select__selected_1c224"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Checkmark = ({ selected, className }) => (React.createElement("span", { className: cn(styles.checkmark, className, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nczud */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/* optgroup */
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.select__checkmark_1c224 {
|
|
22
22
|
flex-shrink: 0;
|
|
23
23
|
display: flex;
|
|
24
24
|
align-items: center;
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
height: 24px;
|
|
30
30
|
opacity: 0
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.select__checkmark_1c224:first-child {
|
|
33
33
|
display: none;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__checkmark_1c224.select__selected_1c224 {
|
|
36
36
|
opacity: 1;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1dwa4 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.select__component_1ofme {
|
|
28
28
|
width: max-content;
|
|
29
29
|
position: relative;
|
|
30
30
|
outline: 0;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.select__popoverInner_1ofme {
|
|
33
33
|
padding-top: var(--select-options-list-offset);
|
|
34
34
|
padding-bottom: var(--select-options-list-offset);
|
|
35
35
|
box-shadow: none;
|
|
@@ -38,31 +38,31 @@
|
|
|
38
38
|
border-radius: 0;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.select__sheet_1ofme {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.select__sheetContent_1ofme {
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.select__sheetContainer_1ofme {
|
|
48
48
|
padding: 0;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.select__block_1ofme {
|
|
51
51
|
width: 100%;
|
|
52
52
|
}
|
|
53
53
|
/* width: max-content; fix for IE */
|
|
54
54
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
55
|
-
.
|
|
55
|
+
.select__component_1ofme {
|
|
56
56
|
float: left;
|
|
57
57
|
clear: left;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.select__option_1ofme {
|
|
61
61
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.select__option_1ofme:before {
|
|
64
64
|
display: none;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.select__optionGroup_1ofme {
|
|
67
67
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
68
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-771a748c";
|
|
@@ -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-bb0f0dd7.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-771a748c.js';
|
|
29
29
|
import 'react-virtual';
|
|
30
30
|
import '@alfalab/core-components-skeleton/modern';
|
|
31
|
-
import '../../intersection-observer-
|
|
31
|
+
import '../../intersection-observer-de1d912c.js';
|
|
@@ -5,7 +5,7 @@ import { Optgroup } from '../../optgroup/Component.js';
|
|
|
5
5
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
6
6
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
7
7
|
|
|
8
|
-
var styles = {"optionsList":"
|
|
8
|
+
var styles = {"optionsList":"select__optionsList_1yoqn","emptyPlaceholder":"select__emptyPlaceholder_1yoqn","l":"select__l_1yoqn","xl":"select__xl_1yoqn","footer":"select__footer_1yoqn","footerButton":"select__footerButton_1yoqn","highlighted":"select__highlighted_1yoqn"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const createCounter = () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1304o */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
5
|
-
--color-light-text-secondary:
|
|
5
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
6
6
|
}
|
|
7
7
|
:root {
|
|
8
8
|
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
33
33
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__optionsList_1yoqn {
|
|
36
36
|
width: 100%;
|
|
37
37
|
outline: none;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__emptyPlaceholder_1yoqn {
|
|
41
41
|
padding: var(--gap-m) var(--gap-s);
|
|
42
42
|
color: var(--select-options-list-empty-placeholder-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
45
|
-
.
|
|
44
|
+
.select__l_1yoqn .select__emptyPlaceholder_1yoqn,
|
|
45
|
+
.select__xl_1yoqn .select__emptyPlaceholder_1yoqn {
|
|
46
46
|
padding: var(--gap-xl) var(--gap-m);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.select__footer_1yoqn {
|
|
49
49
|
display: flex;
|
|
50
50
|
justify-content: space-between;
|
|
51
51
|
position: sticky;
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
background-color: var(--color-light-bg-primary);
|
|
54
54
|
bottom: 0
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.select__footer_1yoqn .select__footerButton_1yoqn:first-of-type {
|
|
57
57
|
margin-right: var(--gap-m);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.select__footerButton_1yoqn {
|
|
60
60
|
width: 50%;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.select__highlighted_1yoqn {
|
|
63
63
|
border-top: var(--select-mobile-footer-border-top);
|
|
64
64
|
background-color: var(--select-mobile-footer-background-color);
|
|
65
65
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"checkmark":"
|
|
5
|
+
var styles = {"checkmark":"select__checkmark_1o15z","single":"select__single_1o15z","selected":"select__selected_1o15z","before":"select__before_1o15z","multiple":"select__multiple_1o15z","after":"select__after_1o15z"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Checkmark = ({ selected, disabled = false, className, multiple, position = 'before', }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qx5a */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
|
|
36
36
|
/* optgroup */
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.select__checkmark_1o15z {
|
|
39
39
|
flex-shrink: 0;
|
|
40
40
|
margin: var(--select-checkmark-margin);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.select__single_1o15z {
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
45
|
justify-content: center;
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
width: var(--select-checkmark-size);
|
|
51
51
|
height: var(--select-checkmark-size)
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.select__single_1o15z.select__selected_1o15z {
|
|
54
54
|
opacity: 1;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.select__before_1o15z {
|
|
57
57
|
display: var(--select-checkmark-before-display)
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.select__before_1o15z.select__multiple_1o15z {
|
|
60
60
|
margin-right: var(--gap-s);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.select__after_1o15z {
|
|
63
63
|
display: var(--select-checkmark-after-display);
|
|
64
64
|
}
|
|
@@ -4,7 +4,7 @@ import { useFocus } from '@alfalab/hooks';
|
|
|
4
4
|
import { FormControl } from '@alfalab/core-components-form-control/modern';
|
|
5
5
|
import { joinOptions } from '../../utils.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"
|
|
7
|
+
var styles = {"component":"select__component_1lq7a","field":"select__field_1lq7a","disabled":"select__disabled_1lq7a","arrow":"select__arrow_1lq7a","placeholder":"select__placeholder_1lq7a","contentWrapper":"select__contentWrapper_1lq7a","value":"select__value_1lq7a","focusVisible":"select__focusVisible_1lq7a"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Field = ({ size = 'm', open, multiple, error, hint, disabled, label, labelView = 'inner', placeholder, selectedMultiple = [], selected, rightAddons, valueRenderer = joinOptions, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, ...restProps }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: idp7g */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
|
-
--color-light-text-secondary:
|
|
4
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
5
5
|
}
|
|
6
6
|
:root {
|
|
7
7
|
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.select__component_1lq7a {
|
|
30
30
|
width: 100%;
|
|
31
31
|
outline: none;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.select__field_1lq7a:not(.select__disabled_1lq7a) {
|
|
34
34
|
cursor: pointer
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__field_1lq7a:not(.select__disabled_1lq7a):hover .select__arrow_1lq7a {
|
|
37
37
|
opacity: var(--select-arrow-hover-opacity);
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.select__disabled_1lq7a {
|
|
40
40
|
cursor: var(--disabled-cursor);
|
|
41
41
|
}
|
|
42
42
|
/* TODO: Заюзать переменные из инпута */
|
|
43
|
-
.
|
|
43
|
+
.select__placeholder_1lq7a {
|
|
44
44
|
color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.select__contentWrapper_1lq7a {
|
|
47
47
|
font-size: 16px;
|
|
48
48
|
line-height: 20px;
|
|
49
49
|
font-weight: 400;
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
width: 100%;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.select__value_1lq7a {
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
text-overflow: ellipsis;
|
|
59
59
|
text-align: left;
|
|
60
60
|
}
|
|
61
|
-
.
|
|
61
|
+
.select__focusVisible_1lq7a {
|
|
62
62
|
outline: 2px solid var(--focus-color);
|
|
63
63
|
outline-offset: 2px;
|
|
64
64
|
}
|
|
@@ -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
|
-
export { B as BaseSelect } from '../Component-
|
|
20
|
+
export { B as BaseSelect } from '../Component-bb0f0dd7.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,8 +25,8 @@ import '@alfalab/core-components-button/modern';
|
|
|
25
25
|
import '@alfalab/core-components-base-modal/modern';
|
|
26
26
|
import './base-select-mobile/options-list/Component.js';
|
|
27
27
|
import './base-select-mobile/checkmark/Component.js';
|
|
28
|
-
export { S as SelectMobile, a as SelectModalMobile } from '../Component-
|
|
28
|
+
export { S as SelectMobile, a as SelectModalMobile } from '../Component-771a748c.js';
|
|
29
29
|
import 'react-virtual';
|
|
30
30
|
export { VirtualOptionsList } from './virtual-options-list/Component.js';
|
|
31
31
|
import '@alfalab/core-components-skeleton/modern';
|
|
32
|
-
import '../intersection-observer-
|
|
32
|
+
import '../intersection-observer-de1d912c.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_3iu2c","label":"select__label_3iu2c","l":"select__l_3iu2c","xl":"select__xl_3iu2c"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Optgroup = ({ children, className, label, size = 's' }) => (React.createElement(React.Fragment, null,
|