@alfalab/core-components-picker-button 8.0.0 → 8.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/Component.d.ts +3 -3
- package/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/cssm/Component.d.ts +3 -3
- package/cssm/Component.js +4 -4
- 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/cssm/desktop.d.ts +1 -0
- package/cssm/desktop.js +24 -0
- package/cssm/index.d.ts +2 -1
- package/cssm/index.js +6 -3
- package/cssm/index.module.css +11 -11
- package/cssm/mobile.d.ts +1 -0
- package/cssm/mobile.js +23 -0
- package/cssm/typings-177c0b55.d.ts +2 -2
- package/cssm/utils/index.d.ts +1 -1
- package/desktop.d.ts +1 -0
- package/desktop.js +21 -0
- package/esm/Component.d.ts +3 -3
- package/esm/Component.js +6 -6
- 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/esm/desktop.d.ts +1 -0
- package/esm/desktop.js +13 -0
- package/esm/field/Component.js +2 -2
- package/esm/field/index.css +3 -3
- package/esm/field/index.js +1 -1
- package/esm/index.css +13 -13
- package/esm/index.d.ts +2 -1
- package/esm/index.js +6 -3
- package/esm/mobile.d.ts +1 -0
- package/esm/mobile.js +13 -0
- package/esm/option/Component.js +2 -2
- package/esm/option/index.css +4 -4
- package/esm/option/index.js +1 -1
- package/esm/{tslib.es6-610a82e0.d.ts → tslib.es6-c6d57aed.d.ts} +0 -0
- package/esm/{tslib.es6-610a82e0.js → tslib.es6-c6d57aed.js} +0 -0
- package/esm/typings-177c0b55.d.ts +2 -2
- package/esm/utils/index.d.ts +1 -1
- package/field/Component.js +2 -2
- package/field/index.css +3 -3
- package/field/index.js +1 -1
- package/index.css +13 -13
- package/index.d.ts +2 -1
- package/index.js +7 -4
- package/mobile.d.ts +1 -0
- package/mobile.js +21 -0
- package/modern/Component.d.ts +3 -3
- package/modern/Component.js +5 -5
- 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/modern/desktop.d.ts +1 -0
- package/modern/desktop.js +12 -0
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +3 -3
- package/modern/index.css +13 -13
- package/modern/index.d.ts +2 -1
- package/modern/index.js +5 -2
- package/modern/mobile.d.ts +1 -0
- package/modern/mobile.js +12 -0
- package/modern/option/Component.js +1 -1
- package/modern/option/index.css +4 -4
- package/modern/typings-177c0b55.d.ts +2 -2
- package/modern/utils/index.d.ts +1 -1
- package/option/Component.js +2 -2
- package/option/index.css +4 -4
- package/option/index.js +1 -1
- package/package.json +3 -3
- package/{tslib.es6-282b4668.d.ts → tslib.es6-93a71d26.d.ts} +0 -0
- package/{tslib.es6-282b4668.js → tslib.es6-93a71d26.js} +0 -0
- package/typings-177c0b55.d.ts +2 -2
- package/utils/index.d.ts +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Optgroup, SelectMobile } from '@alfalab/core-components-select/modern';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/core-components-button/modern';
|
|
5
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
+
import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
|
|
7
|
+
import '@alfalab/icons-glyph/MoreMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/MoreSIcon';
|
|
9
|
+
import './utils/index.js';
|
|
10
|
+
import { Field } from './field/Component.js';
|
|
11
|
+
import { Option } from './option/Component.js';
|
|
12
|
+
|
|
13
|
+
const PickerButtonMobile = forwardRef(({ options, label, Option: Option$1 = Option, Optgroup: Optgroup$1 = Optgroup, view, loading, variant = 'default', leftAddons, rightAddons, size, bottomSheetProps, ...restProps }, ref) => {
|
|
14
|
+
return (React.createElement(SelectMobile, Object.assign({}, restProps, { label: label, Option: Option$1, bottomSheetProps: {
|
|
15
|
+
title: label,
|
|
16
|
+
stickyHeader: true,
|
|
17
|
+
...bottomSheetProps,
|
|
18
|
+
}, Field: Field, Optgroup: Optgroup$1, size: size === 'm' ? 'm' : 's', closeOnSelect: true, fieldProps: {
|
|
19
|
+
view,
|
|
20
|
+
loading,
|
|
21
|
+
/** size у select, button несовместимы */
|
|
22
|
+
buttonSize: size,
|
|
23
|
+
buttonVariant: variant,
|
|
24
|
+
leftAddons,
|
|
25
|
+
rightAddons,
|
|
26
|
+
}, ref: ref, options: options, selected: [] })));
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export { 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,24 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import '@alfalab/core-components-select/modern';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/core-components-button/modern';
|
|
5
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
+
import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
|
|
7
|
+
import '@alfalab/icons-glyph/MoreMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/MoreSIcon';
|
|
9
|
+
import './utils/index.js';
|
|
10
|
+
import './field/Component.js';
|
|
11
|
+
import './option/Component.js';
|
|
12
|
+
import { PickerButtonMobile } from './Component.mobile.js';
|
|
13
|
+
import { useMedia } from '@alfalab/hooks';
|
|
14
|
+
import { PickerButtonDesktop } from './Component.js';
|
|
15
|
+
|
|
16
|
+
const PickerButton = forwardRef(({ OptionsList, onScroll, footer, swipeable, bottomSheetProps, breakpoint = 1024, ...restProps }, ref) => {
|
|
17
|
+
const [view] = useMedia([
|
|
18
|
+
['mobile', `(max-width: ${breakpoint - 1}px)`],
|
|
19
|
+
['desktop', `(min-width: ${breakpoint}px)`],
|
|
20
|
+
], 'desktop');
|
|
21
|
+
return view === 'desktop' ? (React.createElement(PickerButtonDesktop, Object.assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React.createElement(PickerButtonMobile, Object.assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { PickerButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@alfalab/core-components-select/modern';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/core-components-button/modern';
|
|
5
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
+
import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
|
|
7
|
+
import '@alfalab/icons-glyph/MoreMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/MoreSIcon';
|
|
9
|
+
import './utils/index.js';
|
|
10
|
+
import './field/Component.js';
|
|
11
|
+
import './option/Component.js';
|
|
12
|
+
export { PickerButtonDesktop } from './Component.js';
|
|
@@ -7,7 +7,7 @@ import '@alfalab/icons-glyph/MoreMIcon';
|
|
|
7
7
|
import '@alfalab/icons-glyph/MoreSIcon';
|
|
8
8
|
import { getIcon } from '../utils/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"iconContainer":"picker-
|
|
10
|
+
var styles = {"iconContainer":"picker-button__iconContainer_4qmwi","open":"picker-button__open_4qmwi"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const Field = ({ buttonSize = 'm', buttonVariant = 'default', view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, valueRenderer, ...restProps }) => {
|
package/modern/field/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: plvcm */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--arrow-transform: rotate(180deg);
|
|
12
12
|
}
|
|
13
|
-
.picker-
|
|
13
|
+
.picker-button__iconContainer_4qmwi {
|
|
14
14
|
display: flex;
|
|
15
15
|
transition: transform 0.15s ease-in-out;
|
|
16
16
|
}
|
|
17
|
-
.picker-
|
|
17
|
+
.picker-button__open_4qmwi {
|
|
18
18
|
transform: var(--arrow-transform);
|
|
19
19
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qigm */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
--border-radius-s: 4px;
|
|
16
16
|
}
|
|
17
|
-
.picker-
|
|
17
|
+
.picker-button__container_1e9sz {
|
|
18
18
|
min-width: auto;
|
|
19
19
|
}
|
|
20
|
-
.picker-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
.picker-
|
|
24
|
-
|
|
20
|
+
.cc-picker-button.picker-button__optionsPopover_1e9sz {
|
|
21
|
+
padding: var(--gap-xs) 0
|
|
22
|
+
}
|
|
23
|
+
.cc-picker-button.picker-button__optionsPopover_1e9sz.picker-button__sideGap_1e9sz {
|
|
24
|
+
padding: 0 var(--gap-xs);
|
|
25
|
+
}
|
|
26
|
+
.cc-picker-button .picker-button__optionsListContainer_1e9sz {
|
|
27
|
+
border-radius: var(--border-radius-s);
|
|
28
|
+
}
|
|
29
|
+
.cc-picker-button .picker-button__option_1e9sz {
|
|
30
|
+
padding: 0 var(--gap-m);
|
|
25
31
|
}
|
|
26
|
-
.picker-button__optionsListContainer_1p16k {
|
|
27
|
-
border-radius: var(--border-radius-s);
|
|
28
|
-
}
|
|
29
|
-
.picker-button__option_1p16k {
|
|
30
|
-
padding: 0 var(--gap-m);
|
|
31
|
-
}
|
package/modern/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from "./Component";
|
|
1
|
+
export * from "./Component.responsive";
|
|
2
|
+
export { PickerButtonProps, PickerButtonSize, PickerButtonVariant } from "./Component";
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import 'classnames';
|
|
3
2
|
import '@alfalab/core-components-select/modern';
|
|
3
|
+
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-button/modern';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
6
|
import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
|
|
@@ -9,4 +9,7 @@ import '@alfalab/icons-glyph/MoreSIcon';
|
|
|
9
9
|
import './utils/index.js';
|
|
10
10
|
import './field/Component.js';
|
|
11
11
|
import './option/Component.js';
|
|
12
|
-
|
|
12
|
+
import './Component.mobile.js';
|
|
13
|
+
import '@alfalab/hooks';
|
|
14
|
+
import './Component.js';
|
|
15
|
+
export { PickerButton } from './Component.responsive.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component.mobile";
|
package/modern/mobile.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@alfalab/core-components-select/modern';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/core-components-button/modern';
|
|
5
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
+
import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
|
|
7
|
+
import '@alfalab/icons-glyph/MoreMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/MoreSIcon';
|
|
9
|
+
import './utils/index.js';
|
|
10
|
+
import './field/Component.js';
|
|
11
|
+
import './option/Component.js';
|
|
12
|
+
export { PickerButtonMobile } from './Component.mobile.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Option as Option$1 } from '@alfalab/core-components-select/modern';
|
|
3
3
|
|
|
4
|
-
var styles = {"container":"picker-
|
|
4
|
+
var styles = {"container":"picker-button__container_sfkaj","icon":"picker-button__icon_sfkaj","content":"picker-button__content_sfkaj"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Option = ({ option, children, ...restProps }) => {
|
package/modern/option/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tftcy */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-s: 12px;
|
|
12
12
|
}
|
|
13
|
-
.picker-
|
|
13
|
+
.picker-button__container_sfkaj {
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
-
.picker-
|
|
17
|
+
.picker-button__icon_sfkaj {
|
|
18
18
|
display: flex;
|
|
19
19
|
margin-right: var(--gap-s);
|
|
20
20
|
}
|
|
21
|
-
.picker-
|
|
21
|
+
.picker-button__content_sfkaj {
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
flex: 1;
|
|
24
24
|
text-overflow: ellipsis;
|
|
@@ -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;
|
package/modern/utils/index.d.ts
CHANGED
|
@@ -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 };
|
package/option/Component.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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-93a71d26.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var coreComponentsSelect = require('@alfalab/core-components-select');
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
|
|
13
|
-
var styles = {"container":"picker-
|
|
13
|
+
var styles = {"container":"picker-button__container_sfkaj","icon":"picker-button__icon_sfkaj","content":"picker-button__content_sfkaj"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var Option = function (_a) {
|
package/option/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tftcy */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-s: 12px;
|
|
12
12
|
}
|
|
13
|
-
.picker-
|
|
13
|
+
.picker-button__container_sfkaj {
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
-
.picker-
|
|
17
|
+
.picker-button__icon_sfkaj {
|
|
18
18
|
display: flex;
|
|
19
19
|
margin-right: var(--gap-s);
|
|
20
20
|
}
|
|
21
|
-
.picker-
|
|
21
|
+
.picker-button__content_sfkaj {
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
flex: 1;
|
|
24
24
|
text-overflow: ellipsis;
|
package/option/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-picker-button",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "Picker button component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@alfalab/core-components-button": "^6.0.
|
|
22
|
-
"@alfalab/core-components-select": "^12.
|
|
21
|
+
"@alfalab/core-components-button": "^6.0.1",
|
|
22
|
+
"@alfalab/core-components-select": "^12.1.1",
|
|
23
23
|
"@alfalab/icons-classic": "^1.76.0",
|
|
24
24
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
25
25
|
"classnames": "^2.3.1"
|
|
File without changes
|
|
File without changes
|
package/typings-177c0b55.d.ts
CHANGED
|
@@ -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;
|
package/utils/index.d.ts
CHANGED
|
@@ -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 };
|