@alfalab/core-components-picker-button 7.11.4 → 8.1.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/{dist/esm/Component.d.ts → Component.d.ts} +3 -3
- package/{dist/Component.js → Component.js} +6 -6
- package/Component.mobile.d.ts +7 -0
- package/Component.mobile.js +35 -0
- package/Component.responsive.d.ts +26 -0
- package/Component.responsive.js +34 -0
- package/{dist → cssm}/Component.d.ts +3 -3
- package/{dist/cssm → cssm}/Component.js +5 -5
- package/cssm/Component.mobile.d.ts +7 -0
- package/cssm/Component.mobile.js +37 -0
- package/cssm/Component.responsive.d.ts +26 -0
- package/cssm/Component.responsive.js +37 -0
- package/{dist/cssm/field/index.d.ts → cssm/desktop.d.ts} +0 -0
- package/{dist/cssm/index.js → cssm/desktop.js} +3 -3
- package/{dist/cssm → cssm}/field/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/field/Component.js +1 -1
- package/{dist/cssm → cssm/field}/index.d.ts +0 -0
- package/{dist/cssm → cssm}/field/index.js +1 -1
- package/{dist/cssm → cssm}/field/index.module.css +0 -0
- package/cssm/index.d.ts +2 -0
- package/cssm/index.js +27 -0
- package/cssm/index.module.css +30 -0
- package/cssm/mobile.d.ts +1 -0
- package/cssm/mobile.js +23 -0
- package/{dist/cssm → cssm}/option/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/option/Component.js +1 -1
- package/{dist/cssm → cssm}/option/index.d.ts +0 -0
- package/{dist/cssm → cssm}/option/index.js +1 -1
- package/{dist/cssm → cssm}/option/index.module.css +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
- package/{dist → cssm}/typings-177c0b55.d.ts +2 -2
- package/{dist/cssm → cssm}/utils/index.d.ts +1 -1
- package/{dist/cssm → cssm}/utils/index.js +0 -0
- package/{dist/esm/field/index.d.ts → desktop.d.ts} +0 -0
- package/{dist/index.js → desktop.js} +3 -3
- package/{dist/modern → esm}/Component.d.ts +3 -3
- package/{dist/esm → esm}/Component.js +7 -7
- package/esm/Component.mobile.d.ts +7 -0
- package/esm/Component.mobile.js +27 -0
- package/esm/Component.responsive.d.ts +26 -0
- package/esm/Component.responsive.js +26 -0
- package/{dist/esm/index.d.ts → esm/desktop.d.ts} +0 -0
- package/{dist/esm/index.js → esm/desktop.js} +4 -4
- package/{dist/esm → esm}/field/Component.d.ts +0 -0
- package/{dist/esm → esm}/field/Component.js +3 -3
- package/{dist/modern → esm}/field/index.css +3 -3
- package/{dist/esm/option → esm/field}/index.d.ts +0 -0
- package/{dist/esm → esm}/field/index.js +2 -2
- package/esm/index.css +31 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +16 -0
- package/esm/mobile.d.ts +1 -0
- package/esm/mobile.js +13 -0
- package/{dist/esm → esm}/option/Component.d.ts +0 -0
- package/{dist/esm → esm}/option/Component.js +3 -3
- package/{dist/modern → esm}/option/index.css +4 -4
- package/{dist/field → esm/option}/index.d.ts +0 -0
- package/esm/option/index.js +4 -0
- package/{dist/esm/tslib.es6-bb92272d.d.ts → esm/tslib.es6-957acb9b.d.ts} +0 -0
- package/{dist/esm/tslib.es6-bb92272d.js → esm/tslib.es6-957acb9b.js} +0 -0
- package/{dist/cssm → esm}/typings-177c0b55.d.ts +2 -2
- package/{dist/modern → esm}/utils/index.d.ts +1 -1
- package/{dist/esm → esm}/utils/index.js +0 -0
- package/{dist/field → field}/Component.d.ts +0 -0
- package/{dist/field → field}/Component.js +2 -2
- package/{dist/field → field}/index.css +3 -3
- package/{dist → field}/index.d.ts +0 -0
- package/{dist/field → field}/index.js +1 -1
- package/index.css +31 -0
- package/index.d.ts +2 -0
- package/index.js +24 -0
- package/mobile.d.ts +1 -0
- package/mobile.js +21 -0
- package/{dist/cssm → modern}/Component.d.ts +3 -3
- package/{dist/modern → modern}/Component.js +6 -6
- package/modern/Component.mobile.d.ts +7 -0
- package/modern/Component.mobile.js +29 -0
- package/modern/Component.responsive.d.ts +26 -0
- package/modern/Component.responsive.js +24 -0
- package/{dist/modern/field/index.d.ts → modern/desktop.d.ts} +0 -0
- package/{dist/modern/index.js → modern/desktop.js} +3 -3
- package/{dist/modern → modern}/field/Component.d.ts +0 -0
- package/{dist/modern → modern}/field/Component.js +2 -2
- package/{dist/esm → modern}/field/index.css +3 -3
- package/{dist/modern → modern/field}/index.d.ts +0 -0
- package/{dist/modern → modern}/field/index.js +1 -1
- package/modern/index.css +31 -0
- package/modern/index.d.ts +2 -0
- package/modern/index.js +15 -0
- package/modern/mobile.d.ts +1 -0
- package/modern/mobile.js +12 -0
- package/{dist/modern → modern}/option/Component.d.ts +0 -0
- package/{dist/modern → modern}/option/Component.js +2 -2
- package/{dist/esm → modern}/option/index.css +4 -4
- package/{dist/modern → modern}/option/index.d.ts +0 -0
- package/{dist/modern → modern}/option/index.js +1 -1
- package/{dist/esm → modern}/typings-177c0b55.d.ts +2 -2
- package/{dist → modern}/utils/index.d.ts +1 -1
- package/{dist/modern → modern}/utils/index.js +0 -0
- package/{dist/option → option}/Component.d.ts +0 -0
- package/{dist/option → option}/Component.js +2 -2
- package/{dist/option → option}/index.css +4 -4
- package/{dist/option → option}/index.d.ts +0 -0
- package/{dist/option → option}/index.js +1 -1
- package/package.json +9 -11
- package/{dist/send-stats.js → send-stats.js} +0 -0
- package/{dist/tslib.es6-3795a7a3.d.ts → tslib.es6-0e59ec11.d.ts} +0 -0
- package/{dist/tslib.es6-3795a7a3.js → tslib.es6-0e59ec11.js} +0 -0
- package/{dist/modern/typings-177c0b55.d.ts → typings-177c0b55.d.ts} +2 -2
- package/{dist/esm/utils → utils}/index.d.ts +1 -1
- package/{dist/utils → utils}/index.js +0 -0
- package/CHANGELOG.md +0 -984
- package/dist/cssm/index.module.css +0 -30
- package/dist/esm/index.css +0 -31
- package/dist/esm/option/index.js +0 -4
- package/dist/index.css +0 -31
- package/dist/modern/index.css +0 -31
|
@@ -21,7 +21,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow'
|
|
|
21
21
|
*/
|
|
22
22
|
variant?: PickerButtonVariant;
|
|
23
23
|
};
|
|
24
|
-
declare const
|
|
24
|
+
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "className" | "fieldClassName" | "disabled" | "error" | "label" | "dataTestId" | "id" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "popperClassName" | "open" | "name" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & Pick<Partial<import("@alfalab/core-components-button").ComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>> | Partial<import("@alfalab/core-components-button").ComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>>, "leftAddons" | "rightAddons" | "view" | "loading"> & {
|
|
25
25
|
options: (OptionShape & {
|
|
26
26
|
/**
|
|
27
27
|
* Иконка, отображающаяся слева от текстового представления пункта
|
|
@@ -31,10 +31,10 @@ declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps
|
|
|
31
31
|
/**
|
|
32
32
|
* Размер кнопки
|
|
33
33
|
*/
|
|
34
|
-
size?: "s" | "
|
|
34
|
+
size?: "s" | "m" | "l" | "xl" | "xxs" | "xs" | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Тип кнопки
|
|
37
37
|
*/
|
|
38
38
|
variant?: "default" | "compact" | undefined;
|
|
39
39
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
40
|
-
export { PickerButtonSize, PickerButtonVariant, PickerButtonProps,
|
|
40
|
+
export { PickerButtonSize, PickerButtonVariant, PickerButtonProps, PickerButtonDesktop };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-0e59ec11.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var cn = require('classnames');
|
|
8
7
|
var coreComponentsSelect = require('@alfalab/core-components-select');
|
|
8
|
+
var cn = require('classnames');
|
|
9
9
|
require('@alfalab/core-components-button');
|
|
10
10
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
11
|
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
@@ -20,11 +20,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
21
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
22
22
|
|
|
23
|
-
var styles = {"container":"picker-
|
|
23
|
+
var styles = {"container":"picker-button__container_tajsv","optionsPopover":"picker-button__optionsPopover_tajsv","sideGap":"picker-button__sideGap_tajsv","optionsListContainer":"picker-button__optionsListContainer_tajsv","option":"picker-button__option_tajsv"};
|
|
24
24
|
require('./index.css')
|
|
25
25
|
|
|
26
26
|
var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
|
|
27
|
-
var
|
|
27
|
+
var PickerButtonDesktop = React.forwardRef(function (_a, ref) {
|
|
28
28
|
var _b;
|
|
29
29
|
var _c = _a.OptionsList, OptionsList = _c === void 0 ? coreComponentsSelect.OptionsList : _c, _d = _a.Optgroup, Optgroup = _d === void 0 ? coreComponentsSelect.Optgroup : _d, _e = _a.Option, Option = _e === void 0 ? option_Component.Option : _e, view = _a.view, loading = _a.loading, _f = _a.size, size = _f === void 0 ? 'm' : _f, _g = _a.variant, variant = _g === void 0 ? 'default' : _g, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, popperClassName = _a.popperClassName, optionsListClassName = _a.optionsListClassName, optionClassName = _a.optionClassName, restProps = tslib_es6.__rest(_a, ["OptionsList", "Optgroup", "Option", "view", "loading", "size", "variant", "className", "leftAddons", "rightAddons", "popperClassName", "optionsListClassName", "optionClassName"]);
|
|
30
30
|
var isSideGap = !!restProps.popoverPosition && SIDE_POSITIONS.includes(restProps.popoverPosition);
|
|
@@ -36,9 +36,9 @@ var PickerButton = React.forwardRef(function (_a, ref) {
|
|
|
36
36
|
buttonVariant: variant,
|
|
37
37
|
leftAddons: leftAddons,
|
|
38
38
|
rightAddons: rightAddons,
|
|
39
|
-
}, Optgroup: Optgroup, OptionsList: OptionsList, className: cn__default['default'](styles.container, className), popperClassName: cn__default['default'](styles.optionsPopover, popperClassName, (_b = {},
|
|
39
|
+
}, Optgroup: Optgroup, OptionsList: OptionsList, className: cn__default['default'](styles.container, className), popperClassName: cn__default['default']('cc-picker-button', styles.optionsPopover, popperClassName, (_b = {},
|
|
40
40
|
_b[styles.sideGap] = isSideGap,
|
|
41
41
|
_b)), optionsListClassName: cn__default['default'](styles.optionsListContainer, optionsListClassName), optionClassName: cn__default['default'](styles.option, optionClassName), selected: [], closeOnSelect: true })));
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
exports.
|
|
44
|
+
exports.PickerButtonDesktop = PickerButtonDesktop;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AdditionalMobileProps } from "@alfalab/core-components-select";
|
|
4
|
+
import { PickerButtonProps } from "./Component";
|
|
5
|
+
type PickerButtonMobileProps = Omit<PickerButtonProps, 'OptionsList' | 'Checkmark' | 'onScroll'> & AdditionalMobileProps;
|
|
6
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Pick<PickerButtonProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "label" | "leftAddons" | "rightAddons" | "dataTestId" | "id" | "onBlur" | "onChange" | "view" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "loading" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList" | "variant"> & AdditionalMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export { PickerButtonMobileProps, PickerButtonMobile };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-0e59ec11.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var coreComponentsSelect = require('@alfalab/core-components-select');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-button');
|
|
10
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/MoreMIcon');
|
|
13
|
+
require('@alfalab/icons-glyph/MoreSIcon');
|
|
14
|
+
require('./utils/index.js');
|
|
15
|
+
var field_Component = require('./field/Component.js');
|
|
16
|
+
var option_Component = require('./option/Component.js');
|
|
17
|
+
|
|
18
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
+
|
|
20
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
|
+
|
|
22
|
+
var PickerButtonMobile = React.forwardRef(function (_a, ref) {
|
|
23
|
+
var options = _a.options, label = _a.label, _b = _a.Option, Option = _b === void 0 ? option_Component.Option : _b, _c = _a.Optgroup, Optgroup = _c === void 0 ? coreComponentsSelect.Optgroup : _c, view = _a.view, loading = _a.loading, _d = _a.variant, variant = _d === void 0 ? 'default' : _d, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, size = _a.size, bottomSheetProps = _a.bottomSheetProps, restProps = tslib_es6.__rest(_a, ["options", "label", "Option", "Optgroup", "view", "loading", "variant", "leftAddons", "rightAddons", "size", "bottomSheetProps"]);
|
|
24
|
+
return (React__default['default'].createElement(coreComponentsSelect.SelectMobile, tslib_es6.__assign({}, restProps, { label: label, Option: Option, bottomSheetProps: tslib_es6.__assign({ title: label, stickyHeader: true }, bottomSheetProps), Field: field_Component.Field, Optgroup: Optgroup, size: size === 'm' ? 'm' : 's', closeOnSelect: true, fieldProps: {
|
|
25
|
+
view: view,
|
|
26
|
+
loading: loading,
|
|
27
|
+
/** size у select, button несовместимы */
|
|
28
|
+
buttonSize: size,
|
|
29
|
+
buttonVariant: variant,
|
|
30
|
+
leftAddons: leftAddons,
|
|
31
|
+
rightAddons: rightAddons,
|
|
32
|
+
}, ref: ref, options: options, selected: [] })));
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
exports.PickerButtonMobile = PickerButtonMobile;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AdditionalMobileProps } from "@alfalab/core-components-select";
|
|
4
|
+
import { PickerButtonProps as PickerButtonDesktopProps } from "./Component";
|
|
5
|
+
type PickerButtonMatchMedia = 'desktop' | 'mobile';
|
|
6
|
+
type PickerButtonProps = PickerButtonDesktopProps & AdditionalMobileProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
9
|
+
* @default 1024
|
|
10
|
+
*/
|
|
11
|
+
breakpoint?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const PickerButton: React.ForwardRefExoticComponent<Pick<import("@alfalab/core-components-select").BaseSelectProps, "block" | "className" | "fieldClassName" | "disabled" | "error" | "label" | "dataTestId" | "id" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "popperClassName" | "open" | "name" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & Pick<Partial<import("packages/button/src").ComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>> | Partial<import("packages/button/src").ComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>>, "leftAddons" | "rightAddons" | "view" | "loading"> & {
|
|
14
|
+
options: (import("@alfalab/core-components-select").OptionShape & {
|
|
15
|
+
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
16
|
+
})[];
|
|
17
|
+
size?: "s" | "m" | "l" | "xl" | "xxs" | "xs" | undefined;
|
|
18
|
+
variant?: "default" | "compact" | undefined;
|
|
19
|
+
} & AdditionalMobileProps & {
|
|
20
|
+
/**
|
|
21
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
22
|
+
* @default 1024
|
|
23
|
+
*/
|
|
24
|
+
breakpoint?: number | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export { PickerButtonMatchMedia, PickerButtonProps, PickerButton };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-0e59ec11.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
require('@alfalab/core-components-select');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-button');
|
|
10
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/MoreMIcon');
|
|
13
|
+
require('@alfalab/icons-glyph/MoreSIcon');
|
|
14
|
+
require('./utils/index.js');
|
|
15
|
+
require('./field/Component.js');
|
|
16
|
+
require('./option/Component.js');
|
|
17
|
+
var Component_mobile = require('./Component.mobile.js');
|
|
18
|
+
var hooks = require('@alfalab/hooks');
|
|
19
|
+
var Component = require('./Component.js');
|
|
20
|
+
|
|
21
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
|
+
|
|
23
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
24
|
+
|
|
25
|
+
var PickerButton = React.forwardRef(function (_a, ref) {
|
|
26
|
+
var OptionsList = _a.OptionsList, onScroll = _a.onScroll, footer = _a.footer, swipeable = _a.swipeable, bottomSheetProps = _a.bottomSheetProps, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib_es6.__rest(_a, ["OptionsList", "onScroll", "footer", "swipeable", "bottomSheetProps", "breakpoint"]);
|
|
27
|
+
var view = hooks.useMedia([
|
|
28
|
+
['mobile', "(max-width: " + (breakpoint - 1) + "px)"],
|
|
29
|
+
['desktop', "(min-width: " + breakpoint + "px)"],
|
|
30
|
+
], 'desktop')[0];
|
|
31
|
+
return view === 'desktop' ? (React__default['default'].createElement(Component.PickerButtonDesktop, tslib_es6.__assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React__default['default'].createElement(Component_mobile.PickerButtonMobile, tslib_es6.__assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
exports.PickerButton = PickerButton;
|
|
@@ -21,7 +21,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow'
|
|
|
21
21
|
*/
|
|
22
22
|
variant?: PickerButtonVariant;
|
|
23
23
|
};
|
|
24
|
-
declare const
|
|
24
|
+
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "className" | "fieldClassName" | "disabled" | "error" | "label" | "dataTestId" | "id" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "popperClassName" | "open" | "name" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & Pick<Partial<import("@alfalab/core-components-button").ComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>> | Partial<import("@alfalab/core-components-button").ComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>>, "leftAddons" | "rightAddons" | "view" | "loading"> & {
|
|
25
25
|
options: (OptionShape & {
|
|
26
26
|
/**
|
|
27
27
|
* Иконка, отображающаяся слева от текстового представления пункта
|
|
@@ -31,10 +31,10 @@ declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps
|
|
|
31
31
|
/**
|
|
32
32
|
* Размер кнопки
|
|
33
33
|
*/
|
|
34
|
-
size?: "s" | "
|
|
34
|
+
size?: "s" | "m" | "l" | "xl" | "xxs" | "xs" | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Тип кнопки
|
|
37
37
|
*/
|
|
38
38
|
variant?: "default" | "compact" | undefined;
|
|
39
39
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
40
|
-
export { PickerButtonSize, PickerButtonVariant, PickerButtonProps,
|
|
40
|
+
export { PickerButtonSize, PickerButtonVariant, PickerButtonProps, PickerButtonDesktop };
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('./tslib.es6-ce870b46.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var coreComponentsSelect = require('@alfalab/core-components-select/cssm');
|
|
7
8
|
var cn = require('classnames');
|
|
8
|
-
|
|
9
|
-
require('@alfalab/core-components-button/dist/cssm');
|
|
9
|
+
require('@alfalab/core-components-button/cssm');
|
|
10
10
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
11
|
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
12
|
require('@alfalab/icons-glyph/MoreMIcon');
|
|
@@ -25,7 +25,7 @@ var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
|
25
25
|
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
26
26
|
|
|
27
27
|
var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
|
|
28
|
-
var
|
|
28
|
+
var PickerButtonDesktop = React.forwardRef(function (_a, ref) {
|
|
29
29
|
var _b;
|
|
30
30
|
var _c = _a.OptionsList, OptionsList = _c === void 0 ? coreComponentsSelect.OptionsList : _c, _d = _a.Optgroup, Optgroup = _d === void 0 ? coreComponentsSelect.Optgroup : _d, _e = _a.Option, Option = _e === void 0 ? option_Component.Option : _e, view = _a.view, loading = _a.loading, _f = _a.size, size = _f === void 0 ? 'm' : _f, _g = _a.variant, variant = _g === void 0 ? 'default' : _g, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, popperClassName = _a.popperClassName, optionsListClassName = _a.optionsListClassName, optionClassName = _a.optionClassName, restProps = tslib_es6.__rest(_a, ["OptionsList", "Optgroup", "Option", "view", "loading", "size", "variant", "className", "leftAddons", "rightAddons", "popperClassName", "optionsListClassName", "optionClassName"]);
|
|
31
31
|
var isSideGap = !!restProps.popoverPosition && SIDE_POSITIONS.includes(restProps.popoverPosition);
|
|
@@ -37,9 +37,9 @@ var PickerButton = React.forwardRef(function (_a, ref) {
|
|
|
37
37
|
buttonVariant: variant,
|
|
38
38
|
leftAddons: leftAddons,
|
|
39
39
|
rightAddons: rightAddons,
|
|
40
|
-
}, Optgroup: Optgroup, OptionsList: OptionsList, className: cn__default['default'](styles__default['default'].container, className), popperClassName: cn__default['default'](styles__default['default'].optionsPopover, popperClassName, (_b = {},
|
|
40
|
+
}, Optgroup: Optgroup, OptionsList: OptionsList, className: cn__default['default'](styles__default['default'].container, className), popperClassName: cn__default['default']('cc-picker-button', styles__default['default'].optionsPopover, popperClassName, (_b = {},
|
|
41
41
|
_b[styles__default['default'].sideGap] = isSideGap,
|
|
42
42
|
_b)), optionsListClassName: cn__default['default'](styles__default['default'].optionsListContainer, optionsListClassName), optionClassName: cn__default['default'](styles__default['default'].option, optionClassName), selected: [], closeOnSelect: true })));
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
exports.
|
|
45
|
+
exports.PickerButtonDesktop = PickerButtonDesktop;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AdditionalMobileProps } from "@alfalab/core-components-select";
|
|
4
|
+
import { PickerButtonProps } from "./Component";
|
|
5
|
+
type PickerButtonMobileProps = Omit<PickerButtonProps, 'OptionsList' | 'Checkmark' | 'onScroll'> & AdditionalMobileProps;
|
|
6
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Pick<PickerButtonProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "label" | "leftAddons" | "rightAddons" | "dataTestId" | "id" | "onBlur" | "onChange" | "view" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "loading" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList" | "variant"> & AdditionalMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export { PickerButtonMobileProps, PickerButtonMobile };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-ce870b46.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var coreComponentsSelect = require('@alfalab/core-components-select/cssm');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-button/cssm');
|
|
10
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/MoreMIcon');
|
|
13
|
+
require('@alfalab/icons-glyph/MoreSIcon');
|
|
14
|
+
require('./utils/index.js');
|
|
15
|
+
require('./field/index.module.css');
|
|
16
|
+
var field_Component = require('./field/Component.js');
|
|
17
|
+
require('./option/index.module.css');
|
|
18
|
+
var option_Component = require('./option/Component.js');
|
|
19
|
+
|
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
|
+
|
|
22
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
+
|
|
24
|
+
var PickerButtonMobile = React.forwardRef(function (_a, ref) {
|
|
25
|
+
var options = _a.options, label = _a.label, _b = _a.Option, Option = _b === void 0 ? option_Component.Option : _b, _c = _a.Optgroup, Optgroup = _c === void 0 ? coreComponentsSelect.Optgroup : _c, view = _a.view, loading = _a.loading, _d = _a.variant, variant = _d === void 0 ? 'default' : _d, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, size = _a.size, bottomSheetProps = _a.bottomSheetProps, restProps = tslib_es6.__rest(_a, ["options", "label", "Option", "Optgroup", "view", "loading", "variant", "leftAddons", "rightAddons", "size", "bottomSheetProps"]);
|
|
26
|
+
return (React__default['default'].createElement(coreComponentsSelect.SelectMobile, tslib_es6.__assign({}, restProps, { label: label, Option: Option, bottomSheetProps: tslib_es6.__assign({ title: label, stickyHeader: true }, bottomSheetProps), Field: field_Component.Field, Optgroup: Optgroup, size: size === 'm' ? 'm' : 's', closeOnSelect: true, fieldProps: {
|
|
27
|
+
view: view,
|
|
28
|
+
loading: loading,
|
|
29
|
+
/** size у select, button несовместимы */
|
|
30
|
+
buttonSize: size,
|
|
31
|
+
buttonVariant: variant,
|
|
32
|
+
leftAddons: leftAddons,
|
|
33
|
+
rightAddons: rightAddons,
|
|
34
|
+
}, ref: ref, options: options, selected: [] })));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
exports.PickerButtonMobile = PickerButtonMobile;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AdditionalMobileProps } from "@alfalab/core-components-select";
|
|
4
|
+
import { PickerButtonProps as PickerButtonDesktopProps } from "./Component";
|
|
5
|
+
type PickerButtonMatchMedia = 'desktop' | 'mobile';
|
|
6
|
+
type PickerButtonProps = PickerButtonDesktopProps & AdditionalMobileProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
9
|
+
* @default 1024
|
|
10
|
+
*/
|
|
11
|
+
breakpoint?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const PickerButton: React.ForwardRefExoticComponent<Pick<import("@alfalab/core-components-select").BaseSelectProps, "block" | "className" | "fieldClassName" | "disabled" | "error" | "label" | "dataTestId" | "id" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "popperClassName" | "open" | "name" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & Pick<Partial<import("packages/button/src").ComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>> | Partial<import("packages/button/src").ComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>>, "leftAddons" | "rightAddons" | "view" | "loading"> & {
|
|
14
|
+
options: (import("@alfalab/core-components-select").OptionShape & {
|
|
15
|
+
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
16
|
+
})[];
|
|
17
|
+
size?: "s" | "m" | "l" | "xl" | "xxs" | "xs" | undefined;
|
|
18
|
+
variant?: "default" | "compact" | undefined;
|
|
19
|
+
} & AdditionalMobileProps & {
|
|
20
|
+
/**
|
|
21
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
22
|
+
* @default 1024
|
|
23
|
+
*/
|
|
24
|
+
breakpoint?: number | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export { PickerButtonMatchMedia, PickerButtonProps, PickerButton };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-ce870b46.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
require('@alfalab/core-components-select/cssm');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-button/cssm');
|
|
10
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/MoreMIcon');
|
|
13
|
+
require('@alfalab/icons-glyph/MoreSIcon');
|
|
14
|
+
require('./utils/index.js');
|
|
15
|
+
require('./field/index.module.css');
|
|
16
|
+
require('./field/Component.js');
|
|
17
|
+
require('./option/index.module.css');
|
|
18
|
+
require('./option/Component.js');
|
|
19
|
+
var Component_mobile = require('./Component.mobile.js');
|
|
20
|
+
var hooks = require('@alfalab/hooks');
|
|
21
|
+
require('./index.module.css');
|
|
22
|
+
var Component = require('./Component.js');
|
|
23
|
+
|
|
24
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
|
+
|
|
26
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
27
|
+
|
|
28
|
+
var PickerButton = React.forwardRef(function (_a, ref) {
|
|
29
|
+
var OptionsList = _a.OptionsList, onScroll = _a.onScroll, footer = _a.footer, swipeable = _a.swipeable, bottomSheetProps = _a.bottomSheetProps, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib_es6.__rest(_a, ["OptionsList", "onScroll", "footer", "swipeable", "bottomSheetProps", "breakpoint"]);
|
|
30
|
+
var view = hooks.useMedia([
|
|
31
|
+
['mobile', "(max-width: " + (breakpoint - 1) + "px)"],
|
|
32
|
+
['desktop', "(min-width: " + breakpoint + "px)"],
|
|
33
|
+
], 'desktop')[0];
|
|
34
|
+
return view === 'desktop' ? (React__default['default'].createElement(Component.PickerButtonDesktop, tslib_es6.__assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React__default['default'].createElement(Component_mobile.PickerButtonMobile, tslib_es6.__assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
exports.PickerButton = PickerButton;
|
|
File without changes
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('./tslib.es6-ce870b46.js');
|
|
6
6
|
require('react');
|
|
7
|
+
require('@alfalab/core-components-select/cssm');
|
|
7
8
|
require('classnames');
|
|
8
|
-
require('@alfalab/core-components-
|
|
9
|
-
require('@alfalab/core-components-button/dist/cssm');
|
|
9
|
+
require('@alfalab/core-components-button/cssm');
|
|
10
10
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
11
|
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
12
|
require('@alfalab/icons-glyph/MoreMIcon');
|
|
@@ -21,4 +21,4 @@ var Component = require('./Component.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.
|
|
24
|
+
exports.PickerButtonDesktop = Component.PickerButtonDesktop;
|
|
File without changes
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib_es6 = require('../tslib.es6-ce870b46.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
|
-
var coreComponentsButton = require('@alfalab/core-components-button/
|
|
8
|
+
var coreComponentsButton = require('@alfalab/core-components-button/cssm');
|
|
9
9
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
10
10
|
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
11
11
|
require('@alfalab/icons-glyph/MoreMIcon');
|
|
File without changes
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
require('../tslib.es6-ce870b46.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('@alfalab/core-components-button/
|
|
8
|
+
require('@alfalab/core-components-button/cssm');
|
|
9
9
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
10
10
|
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
11
11
|
require('@alfalab/icons-glyph/MoreMIcon');
|
|
File without changes
|
package/cssm/index.d.ts
ADDED
package/cssm/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./tslib.es6-ce870b46.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('@alfalab/core-components-select/cssm');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-button/cssm');
|
|
10
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/MoreMIcon');
|
|
13
|
+
require('@alfalab/icons-glyph/MoreSIcon');
|
|
14
|
+
require('./utils/index.js');
|
|
15
|
+
require('./field/index.module.css');
|
|
16
|
+
require('./field/Component.js');
|
|
17
|
+
require('./option/index.module.css');
|
|
18
|
+
require('./option/Component.js');
|
|
19
|
+
require('./Component.mobile.js');
|
|
20
|
+
require('@alfalab/hooks');
|
|
21
|
+
require('./index.module.css');
|
|
22
|
+
require('./Component.js');
|
|
23
|
+
var Component_responsive = require('./Component.responsive.js');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
exports.PickerButton = Component_responsive.PickerButton;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
|
|
3
|
+
/* Hard */
|
|
4
|
+
|
|
5
|
+
/* Up */
|
|
6
|
+
|
|
7
|
+
/* Hard up */
|
|
8
|
+
}
|
|
9
|
+
:root {
|
|
10
|
+
--gap-xs: 8px;
|
|
11
|
+
--gap-m: 16px;
|
|
12
|
+
}
|
|
13
|
+
:root {
|
|
14
|
+
--border-radius-s: 4px;
|
|
15
|
+
}
|
|
16
|
+
.container {
|
|
17
|
+
min-width: auto;
|
|
18
|
+
}
|
|
19
|
+
:global(.cc-picker-button).optionsPopover {
|
|
20
|
+
padding: var(--gap-xs) 0
|
|
21
|
+
}
|
|
22
|
+
:global(.cc-picker-button).optionsPopover.sideGap {
|
|
23
|
+
padding: 0 var(--gap-xs);
|
|
24
|
+
}
|
|
25
|
+
:global(.cc-picker-button) .optionsListContainer {
|
|
26
|
+
border-radius: var(--border-radius-s);
|
|
27
|
+
}
|
|
28
|
+
:global(.cc-picker-button) .option {
|
|
29
|
+
padding: 0 var(--gap-m);
|
|
30
|
+
}
|
package/cssm/mobile.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component.mobile";
|
package/cssm/mobile.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./tslib.es6-ce870b46.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('@alfalab/core-components-select/cssm');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-button/cssm');
|
|
10
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/MoreMIcon');
|
|
13
|
+
require('@alfalab/icons-glyph/MoreSIcon');
|
|
14
|
+
require('./utils/index.js');
|
|
15
|
+
require('./field/index.module.css');
|
|
16
|
+
require('./field/Component.js');
|
|
17
|
+
require('./option/index.module.css');
|
|
18
|
+
require('./option/Component.js');
|
|
19
|
+
var Component_mobile = require('./Component.mobile.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.PickerButtonMobile = Component_mobile.PickerButtonMobile;
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../tslib.es6-ce870b46.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var coreComponentsSelect = require('@alfalab/core-components-select/
|
|
7
|
+
var coreComponentsSelect = require('@alfalab/core-components-select/cssm');
|
|
8
8
|
var styles = require('./index.module.css');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../tslib.es6-ce870b46.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('@alfalab/core-components-select/
|
|
7
|
+
require('@alfalab/core-components-select/cssm');
|
|
8
8
|
require('./index.module.css');
|
|
9
9
|
var option_Component = require('./Component.js');
|
|
10
10
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -98,7 +98,7 @@ type PopoverProps = {
|
|
|
98
98
|
children?: ReactNode;
|
|
99
99
|
};
|
|
100
100
|
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
|
-
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "value" | "defaultValue" | "onChange" | "onClick" | "onMouseDown"> & {
|
|
101
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "value" | "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "enterKeyHint"> & {
|
|
102
102
|
/**
|
|
103
103
|
* Значение поля ввода
|
|
104
104
|
*/
|
|
@@ -214,7 +214,7 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" |
|
|
|
214
214
|
*/
|
|
215
215
|
dataTestId?: string;
|
|
216
216
|
};
|
|
217
|
-
declare const Input: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "
|
|
217
|
+
declare const Input: React.ForwardRefExoticComponent<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "disabled" | "children" | "defaultChecked" | "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" | "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" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "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" | "pattern" | "list" | "step" | "height" | "name" | "width" | "multiple" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
|
|
218
218
|
value?: string | undefined;
|
|
219
219
|
defaultValue?: string | undefined;
|
|
220
220
|
block?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FC, SVGProps } from 'react';
|
|
2
2
|
import { PickerButtonVariant } from "../index";
|
|
3
|
-
declare const getIcon: (variant: PickerButtonVariant, size: "s" | "
|
|
3
|
+
declare const getIcon: (variant: PickerButtonVariant, size: "s" | "m" | "l" | "xl" | "xxs" | "xs") => FC<SVGProps<SVGSVGElement>>;
|
|
4
4
|
export { getIcon };
|
|
File without changes
|
|
File without changes
|