@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.
Files changed (81) hide show
  1. package/Component.d.ts +3 -3
  2. package/Component.js +6 -6
  3. package/Component.mobile.d.ts +7 -0
  4. package/Component.mobile.js +35 -0
  5. package/Component.responsive.d.ts +26 -0
  6. package/Component.responsive.js +34 -0
  7. package/cssm/Component.d.ts +3 -3
  8. package/cssm/Component.js +4 -4
  9. package/cssm/Component.mobile.d.ts +7 -0
  10. package/cssm/Component.mobile.js +37 -0
  11. package/cssm/Component.responsive.d.ts +26 -0
  12. package/cssm/Component.responsive.js +37 -0
  13. package/cssm/desktop.d.ts +1 -0
  14. package/cssm/desktop.js +24 -0
  15. package/cssm/index.d.ts +2 -1
  16. package/cssm/index.js +6 -3
  17. package/cssm/index.module.css +11 -11
  18. package/cssm/mobile.d.ts +1 -0
  19. package/cssm/mobile.js +23 -0
  20. package/cssm/typings-177c0b55.d.ts +2 -2
  21. package/cssm/utils/index.d.ts +1 -1
  22. package/desktop.d.ts +1 -0
  23. package/desktop.js +21 -0
  24. package/esm/Component.d.ts +3 -3
  25. package/esm/Component.js +6 -6
  26. package/esm/Component.mobile.d.ts +7 -0
  27. package/esm/Component.mobile.js +27 -0
  28. package/esm/Component.responsive.d.ts +26 -0
  29. package/esm/Component.responsive.js +26 -0
  30. package/esm/desktop.d.ts +1 -0
  31. package/esm/desktop.js +13 -0
  32. package/esm/field/Component.js +2 -2
  33. package/esm/field/index.css +3 -3
  34. package/esm/field/index.js +1 -1
  35. package/esm/index.css +13 -13
  36. package/esm/index.d.ts +2 -1
  37. package/esm/index.js +6 -3
  38. package/esm/mobile.d.ts +1 -0
  39. package/esm/mobile.js +13 -0
  40. package/esm/option/Component.js +2 -2
  41. package/esm/option/index.css +4 -4
  42. package/esm/option/index.js +1 -1
  43. package/esm/{tslib.es6-610a82e0.d.ts → tslib.es6-c6d57aed.d.ts} +0 -0
  44. package/esm/{tslib.es6-610a82e0.js → tslib.es6-c6d57aed.js} +0 -0
  45. package/esm/typings-177c0b55.d.ts +2 -2
  46. package/esm/utils/index.d.ts +1 -1
  47. package/field/Component.js +2 -2
  48. package/field/index.css +3 -3
  49. package/field/index.js +1 -1
  50. package/index.css +13 -13
  51. package/index.d.ts +2 -1
  52. package/index.js +7 -4
  53. package/mobile.d.ts +1 -0
  54. package/mobile.js +21 -0
  55. package/modern/Component.d.ts +3 -3
  56. package/modern/Component.js +5 -5
  57. package/modern/Component.mobile.d.ts +7 -0
  58. package/modern/Component.mobile.js +29 -0
  59. package/modern/Component.responsive.d.ts +26 -0
  60. package/modern/Component.responsive.js +24 -0
  61. package/modern/desktop.d.ts +1 -0
  62. package/modern/desktop.js +12 -0
  63. package/modern/field/Component.js +1 -1
  64. package/modern/field/index.css +3 -3
  65. package/modern/index.css +13 -13
  66. package/modern/index.d.ts +2 -1
  67. package/modern/index.js +5 -2
  68. package/modern/mobile.d.ts +1 -0
  69. package/modern/mobile.js +12 -0
  70. package/modern/option/Component.js +1 -1
  71. package/modern/option/index.css +4 -4
  72. package/modern/typings-177c0b55.d.ts +2 -2
  73. package/modern/utils/index.d.ts +1 -1
  74. package/option/Component.js +2 -2
  75. package/option/index.css +4 -4
  76. package/option/index.js +1 -1
  77. package/package.json +3 -3
  78. package/{tslib.es6-282b4668.d.ts → tslib.es6-93a71d26.d.ts} +0 -0
  79. package/{tslib.es6-282b4668.js → tslib.es6-93a71d26.js} +0 -0
  80. package/typings-177c0b55.d.ts +2 -2
  81. 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-button__iconContainer_1phwl","open":"picker-button__open_1phwl"};
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 }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1wam6 */
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-button__iconContainer_1phwl {
13
+ .picker-button__iconContainer_4qmwi {
14
14
  display: flex;
15
15
  transition: transform 0.15s ease-in-out;
16
16
  }
17
- .picker-button__open_1phwl {
17
+ .picker-button__open_4qmwi {
18
18
  transform: var(--arrow-transform);
19
19
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1llwg */
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-button__container_1p16k {
17
+ .picker-button__container_1e9sz {
18
18
  min-width: auto;
19
19
  }
20
- .picker-button__optionsPopover_1p16k {
21
- padding: var(--gap-xs) 0
22
- }
23
- .picker-button__optionsPopover_1p16k.picker-button__sideGap_1p16k {
24
- padding: 0 var(--gap-xs);
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
- export { PickerButton } from './Component.js';
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";
@@ -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-button__container_mxgs7","icon":"picker-button__icon_mxgs7","content":"picker-button__content_mxgs7"};
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 }) => {
@@ -1,4 +1,4 @@
1
- /* hash: wy4os */
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-button__container_mxgs7 {
13
+ .picker-button__container_sfkaj {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  }
17
- .picker-button__icon_mxgs7 {
17
+ .picker-button__icon_sfkaj {
18
18
  display: flex;
19
19
  margin-right: var(--gap-s);
20
20
  }
21
- .picker-button__content_mxgs7 {
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" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "height" | "width" | "multiple" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
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" | "xxs" | "xs" | "m" | "l" | "xl") => FC<SVGProps<SVGSVGElement>>;
3
+ declare const getIcon: (variant: PickerButtonVariant, size: "s" | "m" | "l" | "xl" | "xxs" | "xs") => FC<SVGProps<SVGSVGElement>>;
4
4
  export { getIcon };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-282b4668.js');
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-button__container_mxgs7","icon":"picker-button__icon_mxgs7","content":"picker-button__content_mxgs7"};
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: wy4os */
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-button__container_mxgs7 {
13
+ .picker-button__container_sfkaj {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  }
17
- .picker-button__icon_mxgs7 {
17
+ .picker-button__icon_sfkaj {
18
18
  display: flex;
19
19
  margin-right: var(--gap-s);
20
20
  }
21
- .picker-button__content_mxgs7 {
21
+ .picker-button__content_sfkaj {
22
22
  overflow: hidden;
23
23
  flex: 1;
24
24
  text-overflow: ellipsis;
package/option/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-282b4668.js');
5
+ require('../tslib.es6-93a71d26.js');
6
6
  require('react');
7
7
  require('@alfalab/core-components-select');
8
8
  var option_Component = require('./Component.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-picker-button",
3
- "version": "8.0.0",
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.0",
22
- "@alfalab/core-components-select": "^12.0.0",
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
@@ -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" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "height" | "width" | "multiple" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
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" | "xxs" | "xs" | "m" | "l" | "xl") => FC<SVGProps<SVGSVGElement>>;
3
+ declare const getIcon: (variant: PickerButtonVariant, size: "s" | "m" | "l" | "xl" | "xxs" | "xs") => FC<SVGProps<SVGSVGElement>>;
4
4
  export { getIcon };