@alfalab/core-components-custom-picker-button 1.0.6 → 1.0.7

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.
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "./typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "./typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CheckmarkProps } from "./typings-5e1b8383";
3
- declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => JSX.Element;
4
+ declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => React.JSX.Element;
4
5
  export { BaseCheckmark };
@@ -4,7 +4,7 @@ import { FC, RefObject, ReactNode } from "react";
4
4
  import { NavigationBarProps } from "./index-e81c389f";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-fae20163";
7
+ import { BottomSheetProps } from "./types-3441be57";
8
8
  type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
9
9
  headerRef: RefObject<HTMLDivElement>;
10
10
  };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "./typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "./typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CheckmarkProps } from "./typings-5e1b8383";
3
- declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => JSX.Element;
4
+ declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => React.JSX.Element;
4
5
  export { BaseCheckmark };
@@ -4,7 +4,7 @@ import { FC, RefObject, ReactNode } from "react";
4
4
  import { NavigationBarProps } from "./index-e81c389f";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-fae20163";
7
+ import { BottomSheetProps } from "./types-3441be57";
8
8
  type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
9
9
  headerRef: RefObject<HTMLDivElement>;
10
10
  };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { PickerButtonSize, PickerButtonVariant } from "../index-2aef4eba";
4
5
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
@@ -7,5 +8,5 @@ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & Custom
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -20,7 +20,7 @@ type useSelectWithLoadingProps = {
20
20
  Option?: React.FC<OptionProps>;
21
21
  };
22
22
  declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
23
- Option: (props: OptionProps) => JSX.Element;
23
+ Option: (props: OptionProps) => React.JSX.Element;
24
24
  options: OptionShape[];
25
25
  } | null;
26
26
  type OptionsFetcherResponse = {
@@ -51,7 +51,7 @@ type useLazyLoadingProps = {
51
51
  };
52
52
  declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
53
53
  optionsProps: {
54
- Option: (props: OptionProps) => JSX.Element;
54
+ Option: (props: OptionProps) => React.JSX.Element;
55
55
  options: OptionShape[];
56
56
  optionsListProps: {
57
57
  ref: React.RefObject<HTMLDivElement>;
@@ -1,3 +1,3 @@
1
1
  export * from "./component-3885b0d7";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-fae20163";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-3441be57";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-b64479aa";
@@ -219,5 +219,21 @@ type BottomSheetProps = {
219
219
  * Вызывается после притягивания к одной из `magneticAreas`
220
220
  */
221
221
  onMagnetize?: (index: number) => void;
222
+ /**
223
+ * Содержимое bottom-sheet всегда в DOM
224
+ */
225
+ keepMounted?: boolean;
226
+ /**
227
+ * Отключает автоматический перевод фокуса на bottom-sheet при открытии
228
+ */
229
+ disableAutoFocus?: boolean;
230
+ /**
231
+ * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
232
+ */
233
+ disableRestoreFocus?: boolean;
234
+ /**
235
+ * Отключает вызов `onClose` при нажатии Escape
236
+ */
237
+ disableEscapeKeyDown?: boolean;
222
238
  };
223
239
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "./typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "./typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CheckmarkProps } from "./typings-5e1b8383";
3
- declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => JSX.Element;
4
+ declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => React.JSX.Element;
4
5
  export { BaseCheckmark };
@@ -4,7 +4,7 @@ import { FC, RefObject, ReactNode } from "react";
4
4
  import { NavigationBarProps } from "./index-e81c389f";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-fae20163";
7
+ import { BottomSheetProps } from "./types-3441be57";
8
8
  type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
9
9
  headerRef: RefObject<HTMLDivElement>;
10
10
  };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { PickerButtonSize, PickerButtonVariant } from "../index-2aef4eba";
4
5
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
@@ -7,5 +8,5 @@ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & Custom
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { CustomButton } from '@alfalab/core-components-custom-button/esm';
5
5
  import { getIcon } from '@alfalab/core-components-picker-button/esm';
6
6
 
7
- var styles = {"iconContainer":"custom-picker-button__iconContainer_tcwiq","addonsContainer":"custom-picker-button__addonsContainer_tcwiq","showControlIcon":"custom-picker-button__showControlIcon_tcwiq","open":"custom-picker-button__open_tcwiq"};
7
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_1otdn","addonsContainer":"custom-picker-button__addonsContainer_1otdn","showControlIcon":"custom-picker-button__showControlIcon_1otdn","open":"custom-picker-button__open_1otdn"};
8
8
  require('./index.css')
9
9
 
10
10
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: vp9ix */
1
+ /* hash: tncvo */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_tcwiq {
19
+ } .custom-picker-button__iconContainer_1otdn {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_tcwiq {
22
+ } .custom-picker-button__addonsContainer_1otdn {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_tcwiq.custom-picker-button__showControlIcon_tcwiq {
24
+ } .custom-picker-button__addonsContainer_1otdn.custom-picker-button__showControlIcon_1otdn {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_tcwiq {
26
+ } .custom-picker-button__open_1otdn {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -20,7 +20,7 @@ type useSelectWithLoadingProps = {
20
20
  Option?: React.FC<OptionProps>;
21
21
  };
22
22
  declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
23
- Option: (props: OptionProps) => JSX.Element;
23
+ Option: (props: OptionProps) => React.JSX.Element;
24
24
  options: OptionShape[];
25
25
  } | null;
26
26
  type OptionsFetcherResponse = {
@@ -51,7 +51,7 @@ type useLazyLoadingProps = {
51
51
  };
52
52
  declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
53
53
  optionsProps: {
54
- Option: (props: OptionProps) => JSX.Element;
54
+ Option: (props: OptionProps) => React.JSX.Element;
55
55
  options: OptionShape[];
56
56
  optionsListProps: {
57
57
  ref: React.RefObject<HTMLDivElement>;
@@ -1,3 +1,3 @@
1
1
  export * from "./component-3885b0d7";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-fae20163";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-3441be57";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-b64479aa";
@@ -219,5 +219,21 @@ type BottomSheetProps = {
219
219
  * Вызывается после притягивания к одной из `magneticAreas`
220
220
  */
221
221
  onMagnetize?: (index: number) => void;
222
+ /**
223
+ * Содержимое bottom-sheet всегда в DOM
224
+ */
225
+ keepMounted?: boolean;
226
+ /**
227
+ * Отключает автоматический перевод фокуса на bottom-sheet при открытии
228
+ */
229
+ disableAutoFocus?: boolean;
230
+ /**
231
+ * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
232
+ */
233
+ disableRestoreFocus?: boolean;
234
+ /**
235
+ * Отключает вызов `onClose` при нажатии Escape
236
+ */
237
+ disableEscapeKeyDown?: boolean;
222
238
  };
223
239
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { PickerButtonSize, PickerButtonVariant } from "../index-2aef4eba";
4
5
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
@@ -7,5 +8,5 @@ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & Custom
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"iconContainer":"custom-picker-button__iconContainer_tcwiq","addonsContainer":"custom-picker-button__addonsContainer_tcwiq","showControlIcon":"custom-picker-button__showControlIcon_tcwiq","open":"custom-picker-button__open_tcwiq"};
16
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_1otdn","addonsContainer":"custom-picker-button__addonsContainer_1otdn","showControlIcon":"custom-picker-button__showControlIcon_1otdn","open":"custom-picker-button__open_1otdn"};
17
17
  require('./index.css')
18
18
 
19
19
  var Field = function (_a) {
package/field/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: vp9ix */
1
+ /* hash: tncvo */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_tcwiq {
19
+ } .custom-picker-button__iconContainer_1otdn {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_tcwiq {
22
+ } .custom-picker-button__addonsContainer_1otdn {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_tcwiq.custom-picker-button__showControlIcon_tcwiq {
24
+ } .custom-picker-button__addonsContainer_1otdn.custom-picker-button__showControlIcon_1otdn {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_tcwiq {
26
+ } .custom-picker-button__open_1otdn {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -20,7 +20,7 @@ type useSelectWithLoadingProps = {
20
20
  Option?: React.FC<OptionProps>;
21
21
  };
22
22
  declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
23
- Option: (props: OptionProps) => JSX.Element;
23
+ Option: (props: OptionProps) => React.JSX.Element;
24
24
  options: OptionShape[];
25
25
  } | null;
26
26
  type OptionsFetcherResponse = {
@@ -51,7 +51,7 @@ type useLazyLoadingProps = {
51
51
  };
52
52
  declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
53
53
  optionsProps: {
54
- Option: (props: OptionProps) => JSX.Element;
54
+ Option: (props: OptionProps) => React.JSX.Element;
55
55
  options: OptionShape[];
56
56
  optionsListProps: {
57
57
  ref: React.RefObject<HTMLDivElement>;
@@ -1,3 +1,3 @@
1
1
  export * from "./component-3885b0d7";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-fae20163";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-3441be57";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-b64479aa";
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "./typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "./typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CheckmarkProps } from "./typings-5e1b8383";
3
- declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => JSX.Element;
4
+ declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => React.JSX.Element;
4
5
  export { BaseCheckmark };
@@ -4,7 +4,7 @@ import { FC, RefObject, ReactNode } from "react";
4
4
  import { NavigationBarProps } from "./index-e81c389f";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-fae20163";
7
+ import { BottomSheetProps } from "./types-3441be57";
8
8
  type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
9
9
  headerRef: RefObject<HTMLDivElement>;
10
10
  };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { PickerButtonSize, PickerButtonVariant } from "../index-2aef4eba";
4
5
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
@@ -7,5 +8,5 @@ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & Custom
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { CustomButton } from '@alfalab/core-components-custom-button/modern';
4
4
  import { getIcon } from '@alfalab/core-components-picker-button/modern';
5
5
 
6
- const styles = {"iconContainer":"custom-picker-button__iconContainer_tcwiq","addonsContainer":"custom-picker-button__addonsContainer_tcwiq","showControlIcon":"custom-picker-button__showControlIcon_tcwiq","open":"custom-picker-button__open_tcwiq"};
6
+ const styles = {"iconContainer":"custom-picker-button__iconContainer_1otdn","addonsContainer":"custom-picker-button__addonsContainer_1otdn","showControlIcon":"custom-picker-button__showControlIcon_1otdn","open":"custom-picker-button__open_1otdn"};
7
7
  require('./index.css')
8
8
 
9
9
  const Field = ({ buttonSize = 'm', buttonVariant = 'default', backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow = true, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: vp9ix */
1
+ /* hash: tncvo */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_tcwiq {
19
+ } .custom-picker-button__iconContainer_1otdn {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_tcwiq {
22
+ } .custom-picker-button__addonsContainer_1otdn {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_tcwiq.custom-picker-button__showControlIcon_tcwiq {
24
+ } .custom-picker-button__addonsContainer_1otdn.custom-picker-button__showControlIcon_1otdn {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_tcwiq {
26
+ } .custom-picker-button__open_1otdn {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -20,7 +20,7 @@ type useSelectWithLoadingProps = {
20
20
  Option?: React.FC<OptionProps>;
21
21
  };
22
22
  declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
23
- Option: (props: OptionProps) => JSX.Element;
23
+ Option: (props: OptionProps) => React.JSX.Element;
24
24
  options: OptionShape[];
25
25
  } | null;
26
26
  type OptionsFetcherResponse = {
@@ -51,7 +51,7 @@ type useLazyLoadingProps = {
51
51
  };
52
52
  declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
53
53
  optionsProps: {
54
- Option: (props: OptionProps) => JSX.Element;
54
+ Option: (props: OptionProps) => React.JSX.Element;
55
55
  options: OptionShape[];
56
56
  optionsListProps: {
57
57
  ref: React.RefObject<HTMLDivElement>;
@@ -1,3 +1,3 @@
1
1
  export * from "./component-3885b0d7";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-fae20163";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-3441be57";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-b64479aa";
@@ -219,5 +219,21 @@ type BottomSheetProps = {
219
219
  * Вызывается после притягивания к одной из `magneticAreas`
220
220
  */
221
221
  onMagnetize?: (index: number) => void;
222
+ /**
223
+ * Содержимое bottom-sheet всегда в DOM
224
+ */
225
+ keepMounted?: boolean;
226
+ /**
227
+ * Отключает автоматический перевод фокуса на bottom-sheet при открытии
228
+ */
229
+ disableAutoFocus?: boolean;
230
+ /**
231
+ * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
232
+ */
233
+ disableRestoreFocus?: boolean;
234
+ /**
235
+ * Отключает вызов `onClose` при нажатии Escape
236
+ */
237
+ disableEscapeKeyDown?: boolean;
222
238
  };
223
239
  export { BottomSheetTitleAlign, BottomSheetProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-custom-picker-button",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Custom picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-picker-button": "^10.3.29",
18
+ "@alfalab/core-components-picker-button": "^10.3.30",
19
19
  "@alfalab/core-components-custom-button": "^3.2.2",
20
20
  "@alfalab/core-components-mq": "^4.1.5",
21
21
  "classnames": "^2.3.1",
@@ -219,5 +219,21 @@ type BottomSheetProps = {
219
219
  * Вызывается после притягивания к одной из `magneticAreas`
220
220
  */
221
221
  onMagnetize?: (index: number) => void;
222
+ /**
223
+ * Содержимое bottom-sheet всегда в DOM
224
+ */
225
+ keepMounted?: boolean;
226
+ /**
227
+ * Отключает автоматический перевод фокуса на bottom-sheet при открытии
228
+ */
229
+ disableAutoFocus?: boolean;
230
+ /**
231
+ * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
232
+ */
233
+ disableRestoreFocus?: boolean;
234
+ /**
235
+ * Отключает вызов `onClose` при нажатии Escape
236
+ */
237
+ disableEscapeKeyDown?: boolean;
222
238
  };
223
239
  export { BottomSheetTitleAlign, BottomSheetProps };