@alfalab/core-components-custom-picker-button 2.0.11 → 2.0.12

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 (47) hide show
  1. package/Component.desktop-785df74d.d.ts +1 -1
  2. package/Component.mobile-d7e9f69d.d.ts +1 -1
  3. package/component-72308007.d.ts +1 -1
  4. package/cssm/Component.desktop-785df74d.d.ts +1 -1
  5. package/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
  6. package/cssm/component-72308007.d.ts +1 -1
  7. package/cssm/index-c44170fe.d.ts +4 -9
  8. package/cssm/index-c76d6398.d.ts +1 -1
  9. package/cssm/index-f12ee135.d.ts +1 -1
  10. package/{esm/types-83e2bd9e.d.ts → cssm/types-1c79e231.d.ts} +1 -1
  11. package/cssm/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  12. package/esm/Component.desktop-785df74d.d.ts +1 -1
  13. package/esm/Component.mobile-d7e9f69d.d.ts +1 -1
  14. package/esm/component-72308007.d.ts +1 -1
  15. package/esm/field/Component.js +1 -1
  16. package/esm/field/index.css +5 -5
  17. package/esm/index-c44170fe.d.ts +4 -9
  18. package/esm/index-c76d6398.d.ts +1 -1
  19. package/esm/index-f12ee135.d.ts +1 -1
  20. package/{modern/types-83e2bd9e.d.ts → esm/types-1c79e231.d.ts} +1 -1
  21. package/esm/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  22. package/field/Component.js +1 -1
  23. package/field/index.css +5 -5
  24. package/index-c44170fe.d.ts +4 -9
  25. package/index-c76d6398.d.ts +1 -1
  26. package/index-f12ee135.d.ts +1 -1
  27. package/modern/Component.desktop-785df74d.d.ts +1 -1
  28. package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
  29. package/modern/component-72308007.d.ts +1 -1
  30. package/modern/field/Component.js +1 -1
  31. package/modern/field/index.css +5 -5
  32. package/modern/index-c44170fe.d.ts +4 -9
  33. package/modern/index-c76d6398.d.ts +1 -1
  34. package/modern/index-f12ee135.d.ts +1 -1
  35. package/{types-83e2bd9e.d.ts → modern/types-1c79e231.d.ts} +1 -1
  36. package/modern/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  37. package/package.json +3 -3
  38. package/{cssm/types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  39. package/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  40. package/Component.responsive-785df74d.d.ts +0 -26
  41. package/cssm/Component.responsive-785df74d.d.ts +0 -26
  42. package/esm/Component.responsive-785df74d.d.ts +0 -26
  43. package/modern/Component.responsive-785df74d.d.ts +0 -26
  44. /package/cssm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  45. /package/esm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  46. /package/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  47. /package/modern/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
1
  export * from "./Component-72308007";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
1
  export * from "./component-72308007";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -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/shared';
6
6
 
7
- var styles = {"iconContainer":"custom-picker-button__iconContainer_61kdr","addonsContainer":"custom-picker-button__addonsContainer_61kdr","showControlIcon":"custom-picker-button__showControlIcon_61kdr","open":"custom-picker-button__open_61kdr"};
7
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_7a879","addonsContainer":"custom-picker-button__addonsContainer_7a879","showControlIcon":"custom-picker-button__showControlIcon_7a879","open":"custom-picker-button__open_7a879"};
8
8
  require('./index.css')
9
9
 
10
10
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: bal48 */
1
+ /* hash: upmx5 */
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_61kdr {
19
+ } .custom-picker-button__iconContainer_7a879 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_61kdr {
22
+ } .custom-picker-button__addonsContainer_7a879 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_61kdr.custom-picker-button__showControlIcon_61kdr {
24
+ } .custom-picker-button__addonsContainer_7a879.custom-picker-button__showControlIcon_7a879 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_61kdr {
26
+ } .custom-picker-button__open_7a879 {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
1
  export * from "./Component-72308007";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
1
  export * from "./component-72308007";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -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_61kdr","addonsContainer":"custom-picker-button__addonsContainer_61kdr","showControlIcon":"custom-picker-button__showControlIcon_61kdr","open":"custom-picker-button__open_61kdr"};
16
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_7a879","addonsContainer":"custom-picker-button__addonsContainer_7a879","showControlIcon":"custom-picker-button__showControlIcon_7a879","open":"custom-picker-button__open_7a879"};
17
17
  require('./index.css')
18
18
 
19
19
  var Field = function (_a) {
package/field/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: bal48 */
1
+ /* hash: upmx5 */
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_61kdr {
19
+ } .custom-picker-button__iconContainer_7a879 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_61kdr {
22
+ } .custom-picker-button__addonsContainer_7a879 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_61kdr.custom-picker-button__showControlIcon_61kdr {
24
+ } .custom-picker-button__addonsContainer_7a879.custom-picker-button__showControlIcon_7a879 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_61kdr {
26
+ } .custom-picker-button__open_7a879 {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
1
  export * from "./Component-72308007";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
1
  export * from "./component-72308007";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -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/shared';
5
5
 
6
- const styles = {"iconContainer":"custom-picker-button__iconContainer_61kdr","addonsContainer":"custom-picker-button__addonsContainer_61kdr","showControlIcon":"custom-picker-button__showControlIcon_61kdr","open":"custom-picker-button__open_61kdr"};
6
+ const styles = {"iconContainer":"custom-picker-button__iconContainer_7a879","addonsContainer":"custom-picker-button__addonsContainer_7a879","showControlIcon":"custom-picker-button__showControlIcon_7a879","open":"custom-picker-button__open_7a879"};
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: bal48 */
1
+ /* hash: upmx5 */
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_61kdr {
19
+ } .custom-picker-button__iconContainer_7a879 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_61kdr {
22
+ } .custom-picker-button__addonsContainer_7a879 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_61kdr.custom-picker-button__showControlIcon_61kdr {
24
+ } .custom-picker-button__addonsContainer_7a879.custom-picker-button__showControlIcon_7a879 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_61kdr {
26
+ } .custom-picker-button__open_7a879 {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
1
  export * from "./Component-72308007";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
1
  export * from "./component-72308007";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-custom-picker-button",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Custom picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -35,10 +35,10 @@
35
35
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@alfalab/core-components-picker-button": "^11.1.6",
38
+ "@alfalab/core-components-picker-button": "^11.1.7",
39
39
  "@alfalab/core-components-custom-button": "^3.3.5",
40
40
  "@alfalab/core-components-mq": "^4.2.0",
41
- "@alfalab/core-components-select": "^15.1.6",
41
+ "@alfalab/core-components-select": "^15.2.0",
42
42
  "classnames": "^2.3.1",
43
43
  "tslib": "^2.4.0"
44
44
  }
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
4
- type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
- /**
6
- * Контрольная точка, с нее начинается desktop версия
7
- * @default 1024
8
- */
9
- breakpoint?: number;
10
- /**
11
- * Значение по-умолчанию для хука useMatchMedia
12
- */
13
- defaultMatchMediaValue?: boolean | (() => boolean);
14
- };
15
- declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
16
- /**
17
- * Контрольная точка, с нее начинается desktop версия
18
- * @default 1024
19
- */
20
- breakpoint?: number | undefined;
21
- /**
22
- * Значение по-умолчанию для хука useMatchMedia
23
- */
24
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
- } & React.RefAttributes<HTMLDivElement>>;
26
- export { FormControlProps, FormControl };
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
4
- type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
- /**
6
- * Контрольная точка, с нее начинается desktop версия
7
- * @default 1024
8
- */
9
- breakpoint?: number;
10
- /**
11
- * Значение по-умолчанию для хука useMatchMedia
12
- */
13
- defaultMatchMediaValue?: boolean | (() => boolean);
14
- };
15
- declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
16
- /**
17
- * Контрольная точка, с нее начинается desktop версия
18
- * @default 1024
19
- */
20
- breakpoint?: number | undefined;
21
- /**
22
- * Значение по-умолчанию для хука useMatchMedia
23
- */
24
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
- } & React.RefAttributes<HTMLDivElement>>;
26
- export { FormControlProps, FormControl };
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
4
- type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
- /**
6
- * Контрольная точка, с нее начинается desktop версия
7
- * @default 1024
8
- */
9
- breakpoint?: number;
10
- /**
11
- * Значение по-умолчанию для хука useMatchMedia
12
- */
13
- defaultMatchMediaValue?: boolean | (() => boolean);
14
- };
15
- declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
16
- /**
17
- * Контрольная точка, с нее начинается desktop версия
18
- * @default 1024
19
- */
20
- breakpoint?: number | undefined;
21
- /**
22
- * Значение по-умолчанию для хука useMatchMedia
23
- */
24
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
- } & React.RefAttributes<HTMLDivElement>>;
26
- export { FormControlProps, FormControl };
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
4
- type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
- /**
6
- * Контрольная точка, с нее начинается desktop версия
7
- * @default 1024
8
- */
9
- breakpoint?: number;
10
- /**
11
- * Значение по-умолчанию для хука useMatchMedia
12
- */
13
- defaultMatchMediaValue?: boolean | (() => boolean);
14
- };
15
- declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
16
- /**
17
- * Контрольная точка, с нее начинается desktop версия
18
- * @default 1024
19
- */
20
- breakpoint?: number | undefined;
21
- /**
22
- * Значение по-умолчанию для хука useMatchMedia
23
- */
24
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
- } & React.RefAttributes<HTMLDivElement>>;
26
- export { FormControlProps, FormControl };
File without changes