@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.
Files changed (118) hide show
  1. package/{dist/esm/Component.d.ts → Component.d.ts} +3 -3
  2. package/{dist/Component.js → 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/{dist → cssm}/Component.d.ts +3 -3
  8. package/{dist/cssm → cssm}/Component.js +5 -5
  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/{dist/cssm/field/index.d.ts → cssm/desktop.d.ts} +0 -0
  14. package/{dist/cssm/index.js → cssm/desktop.js} +3 -3
  15. package/{dist/cssm → cssm}/field/Component.d.ts +0 -0
  16. package/{dist/cssm → cssm}/field/Component.js +1 -1
  17. package/{dist/cssm → cssm/field}/index.d.ts +0 -0
  18. package/{dist/cssm → cssm}/field/index.js +1 -1
  19. package/{dist/cssm → cssm}/field/index.module.css +0 -0
  20. package/cssm/index.d.ts +2 -0
  21. package/cssm/index.js +27 -0
  22. package/cssm/index.module.css +30 -0
  23. package/cssm/mobile.d.ts +1 -0
  24. package/cssm/mobile.js +23 -0
  25. package/{dist/cssm → cssm}/option/Component.d.ts +0 -0
  26. package/{dist/cssm → cssm}/option/Component.js +1 -1
  27. package/{dist/cssm → cssm}/option/index.d.ts +0 -0
  28. package/{dist/cssm → cssm}/option/index.js +1 -1
  29. package/{dist/cssm → cssm}/option/index.module.css +0 -0
  30. package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
  31. package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
  32. package/{dist → cssm}/typings-177c0b55.d.ts +2 -2
  33. package/{dist/cssm → cssm}/utils/index.d.ts +1 -1
  34. package/{dist/cssm → cssm}/utils/index.js +0 -0
  35. package/{dist/esm/field/index.d.ts → desktop.d.ts} +0 -0
  36. package/{dist/index.js → desktop.js} +3 -3
  37. package/{dist/modern → esm}/Component.d.ts +3 -3
  38. package/{dist/esm → esm}/Component.js +7 -7
  39. package/esm/Component.mobile.d.ts +7 -0
  40. package/esm/Component.mobile.js +27 -0
  41. package/esm/Component.responsive.d.ts +26 -0
  42. package/esm/Component.responsive.js +26 -0
  43. package/{dist/esm/index.d.ts → esm/desktop.d.ts} +0 -0
  44. package/{dist/esm/index.js → esm/desktop.js} +4 -4
  45. package/{dist/esm → esm}/field/Component.d.ts +0 -0
  46. package/{dist/esm → esm}/field/Component.js +3 -3
  47. package/{dist/modern → esm}/field/index.css +3 -3
  48. package/{dist/esm/option → esm/field}/index.d.ts +0 -0
  49. package/{dist/esm → esm}/field/index.js +2 -2
  50. package/esm/index.css +31 -0
  51. package/esm/index.d.ts +2 -0
  52. package/esm/index.js +16 -0
  53. package/esm/mobile.d.ts +1 -0
  54. package/esm/mobile.js +13 -0
  55. package/{dist/esm → esm}/option/Component.d.ts +0 -0
  56. package/{dist/esm → esm}/option/Component.js +3 -3
  57. package/{dist/modern → esm}/option/index.css +4 -4
  58. package/{dist/field → esm/option}/index.d.ts +0 -0
  59. package/esm/option/index.js +4 -0
  60. package/{dist/esm/tslib.es6-bb92272d.d.ts → esm/tslib.es6-957acb9b.d.ts} +0 -0
  61. package/{dist/esm/tslib.es6-bb92272d.js → esm/tslib.es6-957acb9b.js} +0 -0
  62. package/{dist/cssm → esm}/typings-177c0b55.d.ts +2 -2
  63. package/{dist/modern → esm}/utils/index.d.ts +1 -1
  64. package/{dist/esm → esm}/utils/index.js +0 -0
  65. package/{dist/field → field}/Component.d.ts +0 -0
  66. package/{dist/field → field}/Component.js +2 -2
  67. package/{dist/field → field}/index.css +3 -3
  68. package/{dist → field}/index.d.ts +0 -0
  69. package/{dist/field → field}/index.js +1 -1
  70. package/index.css +31 -0
  71. package/index.d.ts +2 -0
  72. package/index.js +24 -0
  73. package/mobile.d.ts +1 -0
  74. package/mobile.js +21 -0
  75. package/{dist/cssm → modern}/Component.d.ts +3 -3
  76. package/{dist/modern → modern}/Component.js +6 -6
  77. package/modern/Component.mobile.d.ts +7 -0
  78. package/modern/Component.mobile.js +29 -0
  79. package/modern/Component.responsive.d.ts +26 -0
  80. package/modern/Component.responsive.js +24 -0
  81. package/{dist/modern/field/index.d.ts → modern/desktop.d.ts} +0 -0
  82. package/{dist/modern/index.js → modern/desktop.js} +3 -3
  83. package/{dist/modern → modern}/field/Component.d.ts +0 -0
  84. package/{dist/modern → modern}/field/Component.js +2 -2
  85. package/{dist/esm → modern}/field/index.css +3 -3
  86. package/{dist/modern → modern/field}/index.d.ts +0 -0
  87. package/{dist/modern → modern}/field/index.js +1 -1
  88. package/modern/index.css +31 -0
  89. package/modern/index.d.ts +2 -0
  90. package/modern/index.js +15 -0
  91. package/modern/mobile.d.ts +1 -0
  92. package/modern/mobile.js +12 -0
  93. package/{dist/modern → modern}/option/Component.d.ts +0 -0
  94. package/{dist/modern → modern}/option/Component.js +2 -2
  95. package/{dist/esm → modern}/option/index.css +4 -4
  96. package/{dist/modern → modern}/option/index.d.ts +0 -0
  97. package/{dist/modern → modern}/option/index.js +1 -1
  98. package/{dist/esm → modern}/typings-177c0b55.d.ts +2 -2
  99. package/{dist → modern}/utils/index.d.ts +1 -1
  100. package/{dist/modern → modern}/utils/index.js +0 -0
  101. package/{dist/option → option}/Component.d.ts +0 -0
  102. package/{dist/option → option}/Component.js +2 -2
  103. package/{dist/option → option}/index.css +4 -4
  104. package/{dist/option → option}/index.d.ts +0 -0
  105. package/{dist/option → option}/index.js +1 -1
  106. package/package.json +9 -11
  107. package/{dist/send-stats.js → send-stats.js} +0 -0
  108. package/{dist/tslib.es6-3795a7a3.d.ts → tslib.es6-0e59ec11.d.ts} +0 -0
  109. package/{dist/tslib.es6-3795a7a3.js → tslib.es6-0e59ec11.js} +0 -0
  110. package/{dist/modern/typings-177c0b55.d.ts → typings-177c0b55.d.ts} +2 -2
  111. package/{dist/esm/utils → utils}/index.d.ts +1 -1
  112. package/{dist/utils → utils}/index.js +0 -0
  113. package/CHANGELOG.md +0 -984
  114. package/dist/cssm/index.module.css +0 -30
  115. package/dist/esm/index.css +0 -31
  116. package/dist/esm/option/index.js +0 -4
  117. package/dist/index.css +0 -31
  118. package/dist/modern/index.css +0 -31
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-3795a7a3.js');
5
+ require('./tslib.es6-0e59ec11.js');
6
6
  require('react');
7
- require('classnames');
8
7
  require('@alfalab/core-components-select');
8
+ require('classnames');
9
9
  require('@alfalab/core-components-button');
10
10
  require('@alfalab/icons-glyph/ChevronDownMIcon');
11
11
  require('@alfalab/icons-glyph/ChevronDownCompactSIcon');
@@ -18,4 +18,4 @@ var Component = require('./Component.js');
18
18
 
19
19
 
20
20
 
21
- exports.PickerButton = Component.PickerButton;
21
+ exports.PickerButtonDesktop = Component.PickerButtonDesktop;
@@ -21,7 +21,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow'
21
21
  */
22
22
  variant?: PickerButtonVariant;
23
23
  };
24
- declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "className" | "dataTestId" | "label" | "block" | "id" | "onBlur" | "onChange" | "onScroll" | "disabled" | "name" | "fieldClassName" | "error" | "preventFlip" | "popperClassName" | "open" | "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>>, "view" | "leftAddons" | "rightAddons" | "loading"> & {
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" | "xxs" | "xs" | "m" | "l" | "xl" | undefined;
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, PickerButton };
40
+ export { PickerButtonSize, PickerButtonVariant, PickerButtonProps, PickerButtonDesktop };
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-bb92272d.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-957acb9b.js';
2
2
  import React, { forwardRef } from 'react';
3
+ import { BaseSelect, OptionsList, Optgroup } from '@alfalab/core-components-select/esm';
3
4
  import cn from 'classnames';
4
- import { BaseSelect, OptionsList, Optgroup } from '@alfalab/core-components-select/dist/esm';
5
- import '@alfalab/core-components-button/dist/esm';
5
+ import '@alfalab/core-components-button/esm';
6
6
  import '@alfalab/icons-glyph/ChevronDownMIcon';
7
7
  import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
8
8
  import '@alfalab/icons-glyph/MoreMIcon';
@@ -11,11 +11,11 @@ import './utils/index.js';
11
11
  import { Field } from './field/Component.js';
12
12
  import { Option } from './option/Component.js';
13
13
 
14
- var styles = {"container":"picker-button__container_1p16k","optionsPopover":"picker-button__optionsPopover_1p16k","sideGap":"picker-button__sideGap_1p16k","optionsListContainer":"picker-button__optionsListContainer_1p16k","option":"picker-button__option_1p16k"};
14
+ 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"};
15
15
  require('./index.css')
16
16
 
17
17
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
18
- var PickerButton = forwardRef(function (_a, ref) {
18
+ var PickerButtonDesktop = forwardRef(function (_a, ref) {
19
19
  var _b;
20
20
  var _c = _a.OptionsList, OptionsList$1 = _c === void 0 ? OptionsList : _c, _d = _a.Optgroup, Optgroup$1 = _d === void 0 ? Optgroup : _d, _e = _a.Option, Option$1 = _e === void 0 ? 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 = __rest(_a, ["OptionsList", "Optgroup", "Option", "view", "loading", "size", "variant", "className", "leftAddons", "rightAddons", "popperClassName", "optionsListClassName", "optionClassName"]);
21
21
  var isSideGap = !!restProps.popoverPosition && SIDE_POSITIONS.includes(restProps.popoverPosition);
@@ -27,9 +27,9 @@ var PickerButton = forwardRef(function (_a, ref) {
27
27
  buttonVariant: variant,
28
28
  leftAddons: leftAddons,
29
29
  rightAddons: rightAddons,
30
- }, Optgroup: Optgroup$1, OptionsList: OptionsList$1, className: cn(styles.container, className), popperClassName: cn(styles.optionsPopover, popperClassName, (_b = {},
30
+ }, Optgroup: Optgroup$1, OptionsList: OptionsList$1, className: cn(styles.container, className), popperClassName: cn('cc-picker-button', styles.optionsPopover, popperClassName, (_b = {},
31
31
  _b[styles.sideGap] = isSideGap,
32
32
  _b)), optionsListClassName: cn(styles.optionsListContainer, optionsListClassName), optionClassName: cn(styles.option, optionClassName), selected: [], closeOnSelect: true })));
33
33
  });
34
34
 
35
- export { PickerButton };
35
+ export { 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,27 @@
1
+ import { _ as __rest, a as __assign } from './tslib.es6-957acb9b.js';
2
+ import React, { forwardRef } from 'react';
3
+ import { SelectMobile, Optgroup } from '@alfalab/core-components-select/esm';
4
+ import 'classnames';
5
+ import '@alfalab/core-components-button/esm';
6
+ import '@alfalab/icons-glyph/ChevronDownMIcon';
7
+ import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
8
+ import '@alfalab/icons-glyph/MoreMIcon';
9
+ import '@alfalab/icons-glyph/MoreSIcon';
10
+ import './utils/index.js';
11
+ import { Field } from './field/Component.js';
12
+ import { Option } from './option/Component.js';
13
+
14
+ var PickerButtonMobile = forwardRef(function (_a, ref) {
15
+ var options = _a.options, label = _a.label, _b = _a.Option, Option$1 = _b === void 0 ? Option : _b, _c = _a.Optgroup, Optgroup$1 = _c === void 0 ? 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 = __rest(_a, ["options", "label", "Option", "Optgroup", "view", "loading", "variant", "leftAddons", "rightAddons", "size", "bottomSheetProps"]);
16
+ return (React.createElement(SelectMobile, __assign({}, restProps, { label: label, Option: Option$1, bottomSheetProps: __assign({ title: label, stickyHeader: true }, bottomSheetProps), Field: Field, Optgroup: Optgroup$1, size: size === 'm' ? 'm' : 's', closeOnSelect: true, fieldProps: {
17
+ view: view,
18
+ loading: loading,
19
+ /** size у select, button несовместимы */
20
+ buttonSize: size,
21
+ buttonVariant: variant,
22
+ leftAddons: leftAddons,
23
+ rightAddons: rightAddons,
24
+ }, ref: ref, options: options, selected: [] })));
25
+ });
26
+
27
+ 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,26 @@
1
+ import { _ as __rest, a as __assign } from './tslib.es6-957acb9b.js';
2
+ import React, { forwardRef } from 'react';
3
+ import '@alfalab/core-components-select/esm';
4
+ import 'classnames';
5
+ import '@alfalab/core-components-button/esm';
6
+ import '@alfalab/icons-glyph/ChevronDownMIcon';
7
+ import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
8
+ import '@alfalab/icons-glyph/MoreMIcon';
9
+ import '@alfalab/icons-glyph/MoreSIcon';
10
+ import './utils/index.js';
11
+ import './field/Component.js';
12
+ import './option/Component.js';
13
+ import { PickerButtonMobile } from './Component.mobile.js';
14
+ import { useMedia } from '@alfalab/hooks';
15
+ import { PickerButtonDesktop } from './Component.js';
16
+
17
+ var PickerButton = forwardRef(function (_a, ref) {
18
+ 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 = __rest(_a, ["OptionsList", "onScroll", "footer", "swipeable", "bottomSheetProps", "breakpoint"]);
19
+ var view = useMedia([
20
+ ['mobile', "(max-width: " + (breakpoint - 1) + "px)"],
21
+ ['desktop', "(min-width: " + breakpoint + "px)"],
22
+ ], 'desktop')[0];
23
+ return view === 'desktop' ? (React.createElement(PickerButtonDesktop, __assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React.createElement(PickerButtonMobile, __assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
24
+ });
25
+
26
+ export { PickerButton };
File without changes
@@ -1,8 +1,8 @@
1
- import './tslib.es6-bb92272d.js';
1
+ import './tslib.es6-957acb9b.js';
2
2
  import 'react';
3
+ import '@alfalab/core-components-select/esm';
3
4
  import 'classnames';
4
- import '@alfalab/core-components-select/dist/esm';
5
- import '@alfalab/core-components-button/dist/esm';
5
+ import '@alfalab/core-components-button/esm';
6
6
  import '@alfalab/icons-glyph/ChevronDownMIcon';
7
7
  import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
8
8
  import '@alfalab/icons-glyph/MoreMIcon';
@@ -10,4 +10,4 @@ import '@alfalab/icons-glyph/MoreSIcon';
10
10
  import './utils/index.js';
11
11
  import './field/Component.js';
12
12
  import './option/Component.js';
13
- export { PickerButton } from './Component.js';
13
+ export { PickerButtonDesktop } from './Component.js';
File without changes
@@ -1,14 +1,14 @@
1
- import { _ as __rest, a as __assign } from '../tslib.es6-bb92272d.js';
1
+ import { _ as __rest, a as __assign } from '../tslib.es6-957acb9b.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
- import { Button } from '@alfalab/core-components-button/dist/esm';
4
+ import { Button } from '@alfalab/core-components-button/esm';
5
5
  import '@alfalab/icons-glyph/ChevronDownMIcon';
6
6
  import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
7
7
  import '@alfalab/icons-glyph/MoreMIcon';
8
8
  import '@alfalab/icons-glyph/MoreSIcon';
9
9
  import { getIcon } from '../utils/index.js';
10
10
 
11
- var styles = {"iconContainer":"picker-button__iconContainer_1phwl","open":"picker-button__open_1phwl"};
11
+ var styles = {"iconContainer":"picker-button__iconContainer_14az3","open":"picker-button__open_14az3"};
12
12
  require('./index.css')
13
13
 
14
14
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1hokc */
1
+ /* hash: qwilr */
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_14az3 {
14
14
  display: flex;
15
15
  transition: transform 0.15s ease-in-out;
16
16
  }
17
- .picker-button__open_1phwl {
17
+ .picker-button__open_14az3 {
18
18
  transform: var(--arrow-transform);
19
19
  }
File without changes
@@ -1,7 +1,7 @@
1
- import '../tslib.es6-bb92272d.js';
1
+ import '../tslib.es6-957acb9b.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import '@alfalab/core-components-button/dist/esm';
4
+ import '@alfalab/core-components-button/esm';
5
5
  import '@alfalab/icons-glyph/ChevronDownMIcon';
6
6
  import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
7
7
  import '@alfalab/icons-glyph/MoreMIcon';
package/esm/index.css ADDED
@@ -0,0 +1,31 @@
1
+ /* hash: 1p7td */
2
+ :root {
3
+
4
+ /* Hard */
5
+
6
+ /* Up */
7
+
8
+ /* Hard up */
9
+ }
10
+ :root {
11
+ --gap-xs: 8px;
12
+ --gap-m: 16px;
13
+ }
14
+ :root {
15
+ --border-radius-s: 4px;
16
+ }
17
+ .picker-button__container_tajsv {
18
+ min-width: auto;
19
+ }
20
+ .cc-picker-button.picker-button__optionsPopover_tajsv {
21
+ padding: var(--gap-xs) 0
22
+ }
23
+ .cc-picker-button.picker-button__optionsPopover_tajsv.picker-button__sideGap_tajsv {
24
+ padding: 0 var(--gap-xs);
25
+ }
26
+ .cc-picker-button .picker-button__optionsListContainer_tajsv {
27
+ border-radius: var(--border-radius-s);
28
+ }
29
+ .cc-picker-button .picker-button__option_tajsv {
30
+ padding: 0 var(--gap-m);
31
+ }
package/esm/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./Component.responsive";
2
+ export { PickerButtonProps, PickerButtonSize, PickerButtonVariant } from "./Component";
package/esm/index.js ADDED
@@ -0,0 +1,16 @@
1
+ import './tslib.es6-957acb9b.js';
2
+ import 'react';
3
+ import '@alfalab/core-components-select/esm';
4
+ import 'classnames';
5
+ import '@alfalab/core-components-button/esm';
6
+ import '@alfalab/icons-glyph/ChevronDownMIcon';
7
+ import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
8
+ import '@alfalab/icons-glyph/MoreMIcon';
9
+ import '@alfalab/icons-glyph/MoreSIcon';
10
+ import './utils/index.js';
11
+ import './field/Component.js';
12
+ import './option/Component.js';
13
+ import './Component.mobile.js';
14
+ import '@alfalab/hooks';
15
+ import './Component.js';
16
+ export { PickerButton } from './Component.responsive.js';
@@ -0,0 +1 @@
1
+ export * from "./Component.mobile";
package/esm/mobile.js ADDED
@@ -0,0 +1,13 @@
1
+ import './tslib.es6-957acb9b.js';
2
+ import 'react';
3
+ import '@alfalab/core-components-select/esm';
4
+ import 'classnames';
5
+ import '@alfalab/core-components-button/esm';
6
+ import '@alfalab/icons-glyph/ChevronDownMIcon';
7
+ import '@alfalab/icons-glyph/ChevronDownCompactSIcon';
8
+ import '@alfalab/icons-glyph/MoreMIcon';
9
+ import '@alfalab/icons-glyph/MoreSIcon';
10
+ import './utils/index.js';
11
+ import './field/Component.js';
12
+ import './option/Component.js';
13
+ export { PickerButtonMobile } from './Component.mobile.js';
File without changes
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign } from '../tslib.es6-bb92272d.js';
1
+ import { _ as __rest, a as __assign } from '../tslib.es6-957acb9b.js';
2
2
  import React from 'react';
3
- import { Option as Option$1 } from '@alfalab/core-components-select/dist/esm';
3
+ import { Option as Option$1 } from '@alfalab/core-components-select/esm';
4
4
 
5
- var styles = {"container":"picker-button__container_mxgs7","icon":"picker-button__icon_mxgs7","content":"picker-button__content_mxgs7"};
5
+ var styles = {"container":"picker-button__container_7gb49","icon":"picker-button__icon_7gb49","content":"picker-button__content_7gb49"};
6
6
  require('./index.css')
7
7
 
8
8
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1i6jn */
1
+ /* hash: s563t */
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_7gb49 {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  }
17
- .picker-button__icon_mxgs7 {
17
+ .picker-button__icon_7gb49 {
18
18
  display: flex;
19
19
  margin-right: var(--gap-s);
20
20
  }
21
- .picker-button__content_mxgs7 {
21
+ .picker-button__content_7gb49 {
22
22
  overflow: hidden;
23
23
  flex: 1;
24
24
  text-overflow: ellipsis;
File without changes
@@ -0,0 +1,4 @@
1
+ import '../tslib.es6-957acb9b.js';
2
+ import 'react';
3
+ import '@alfalab/core-components-select/esm';
4
+ export { Option } from './Component.js';
@@ -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 };
File without changes
File without changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-3795a7a3.js');
5
+ var tslib_es6 = require('../tslib.es6-0e59ec11.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsButton = require('@alfalab/core-components-button');
@@ -17,7 +17,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
19
19
 
20
- var styles = {"iconContainer":"picker-button__iconContainer_1phwl","open":"picker-button__open_1phwl"};
20
+ var styles = {"iconContainer":"picker-button__iconContainer_14az3","open":"picker-button__open_14az3"};
21
21
  require('./index.css')
22
22
 
23
23
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1hokc */
1
+ /* hash: qwilr */
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_14az3 {
14
14
  display: flex;
15
15
  transition: transform 0.15s ease-in-out;
16
16
  }
17
- .picker-button__open_1phwl {
17
+ .picker-button__open_14az3 {
18
18
  transform: var(--arrow-transform);
19
19
  }
File without changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-3795a7a3.js');
5
+ require('../tslib.es6-0e59ec11.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-button');
package/index.css ADDED
@@ -0,0 +1,31 @@
1
+ /* hash: 1p7td */
2
+ :root {
3
+
4
+ /* Hard */
5
+
6
+ /* Up */
7
+
8
+ /* Hard up */
9
+ }
10
+ :root {
11
+ --gap-xs: 8px;
12
+ --gap-m: 16px;
13
+ }
14
+ :root {
15
+ --border-radius-s: 4px;
16
+ }
17
+ .picker-button__container_tajsv {
18
+ min-width: auto;
19
+ }
20
+ .cc-picker-button.picker-button__optionsPopover_tajsv {
21
+ padding: var(--gap-xs) 0
22
+ }
23
+ .cc-picker-button.picker-button__optionsPopover_tajsv.picker-button__sideGap_tajsv {
24
+ padding: 0 var(--gap-xs);
25
+ }
26
+ .cc-picker-button .picker-button__optionsListContainer_tajsv {
27
+ border-radius: var(--border-radius-s);
28
+ }
29
+ .cc-picker-button .picker-button__option_tajsv {
30
+ padding: 0 var(--gap-m);
31
+ }
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./Component.responsive";
2
+ export { PickerButtonProps, PickerButtonSize, PickerButtonVariant } from "./Component";
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('./tslib.es6-0e59ec11.js');
6
+ 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
+ require('./Component.mobile.js');
18
+ require('@alfalab/hooks');
19
+ require('./Component.js');
20
+ var Component_responsive = require('./Component.responsive.js');
21
+
22
+
23
+
24
+ exports.PickerButton = Component_responsive.PickerButton;
package/mobile.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./Component.mobile";
package/mobile.js ADDED
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('./tslib.es6-0e59ec11.js');
6
+ 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
+
19
+
20
+
21
+ exports.PickerButtonMobile = Component_mobile.PickerButtonMobile;
@@ -21,7 +21,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow'
21
21
  */
22
22
  variant?: PickerButtonVariant;
23
23
  };
24
- declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "className" | "dataTestId" | "label" | "block" | "id" | "onBlur" | "onChange" | "onScroll" | "disabled" | "name" | "fieldClassName" | "error" | "preventFlip" | "popperClassName" | "open" | "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>>, "view" | "leftAddons" | "rightAddons" | "loading"> & {
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" | "xxs" | "xs" | "m" | "l" | "xl" | undefined;
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, PickerButton };
40
+ export { PickerButtonSize, PickerButtonVariant, PickerButtonProps, PickerButtonDesktop };