@alfalab/core-components-custom-picker-button 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CustomButtonProps } from '@alfalab/core-components-custom-button';
3
3
  import { type AdditionalMobileProps, type BottomSheetSelectMobileProps } from '@alfalab/core-components-select/shared';
4
4
  import { type CustomPickerButtonDesktopProps } from './desktop';
5
- export declare type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
5
+ export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
6
  /**
7
7
  * Контрольная точка, с нее начинается desktop версия
8
8
  * @default 1024
@@ -23,14 +23,14 @@ export declare const CustomPickerButtonResponsive: React.ForwardRefExoticCompone
23
23
  * Контрольная точка, с нее начинается desktop версия
24
24
  * @default 1024
25
25
  */
26
- breakpoint?: number | undefined;
26
+ breakpoint?: number;
27
27
  /**
28
28
  * Версия, которая будет использоваться при серверном рендеринге
29
29
  */
30
- client?: "desktop" | "mobile" | undefined;
30
+ client?: "desktop" | "mobile";
31
31
  /**
32
32
  * Значение по-умолчанию для хука useMatchMedia
33
33
  * @deprecated Используйте client
34
34
  */
35
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
35
+ defaultMatchMediaValue?: boolean | (() => boolean);
36
36
  } & React.RefAttributes<HTMLInputElement>>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CustomButtonProps } from '@alfalab/core-components-custom-button/cssm';
3
3
  import { type AdditionalMobileProps, type BottomSheetSelectMobileProps } from '@alfalab/core-components-select/cssm/shared';
4
4
  import { type CustomPickerButtonDesktopProps } from './desktop';
5
- export declare type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
5
+ export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
6
  /**
7
7
  * Контрольная точка, с нее начинается desktop версия
8
8
  * @default 1024
@@ -23,14 +23,14 @@ export declare const CustomPickerButtonResponsive: React.ForwardRefExoticCompone
23
23
  * Контрольная точка, с нее начинается desktop версия
24
24
  * @default 1024
25
25
  */
26
- breakpoint?: number | undefined;
26
+ breakpoint?: number;
27
27
  /**
28
28
  * Версия, которая будет использоваться при серверном рендеринге
29
29
  */
30
- client?: "desktop" | "mobile" | undefined;
30
+ client?: "desktop" | "mobile";
31
31
  /**
32
32
  * Значение по-умолчанию для хука useMatchMedia
33
33
  * @deprecated Используйте client
34
34
  */
35
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
35
+ defaultMatchMediaValue?: boolean | (() => boolean);
36
36
  } & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/cssm';
3
3
  import { type PickerButtonDesktopProps } from '@alfalab/core-components-picker-button/cssm/desktop';
4
- export declare type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,8 +2,8 @@ import React, { type ComponentType, type SVGProps } from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/cssm';
3
3
  import { type PickerButtonSize, type PickerButtonVariant } from '@alfalab/core-components-picker-button/cssm/shared';
4
4
  import { type FieldProps as BaseFieldProps } from '@alfalab/core-components-select/cssm/shared';
5
- declare type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
- declare type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
5
+ type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
+ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
8
8
  buttonVariant?: PickerButtonVariant;
9
9
  showArrow?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/cssm';
3
3
  import { type PickerButtonMobileProps } from '@alfalab/core-components-picker-button/cssm/mobile';
4
- export declare type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button';
3
3
  import { type PickerButtonDesktopProps } from '@alfalab/core-components-picker-button/desktop';
4
- export declare type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CustomButtonProps } from '@alfalab/core-components-custom-button/esm';
3
3
  import { type AdditionalMobileProps, type BottomSheetSelectMobileProps } from '@alfalab/core-components-select/esm/shared';
4
4
  import { type CustomPickerButtonDesktopProps } from './desktop';
5
- export declare type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
5
+ export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
6
  /**
7
7
  * Контрольная точка, с нее начинается desktop версия
8
8
  * @default 1024
@@ -23,14 +23,14 @@ export declare const CustomPickerButtonResponsive: React.ForwardRefExoticCompone
23
23
  * Контрольная точка, с нее начинается desktop версия
24
24
  * @default 1024
25
25
  */
26
- breakpoint?: number | undefined;
26
+ breakpoint?: number;
27
27
  /**
28
28
  * Версия, которая будет использоваться при серверном рендеринге
29
29
  */
30
- client?: "desktop" | "mobile" | undefined;
30
+ client?: "desktop" | "mobile";
31
31
  /**
32
32
  * Значение по-умолчанию для хука useMatchMedia
33
33
  * @deprecated Используйте client
34
34
  */
35
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
35
+ defaultMatchMediaValue?: boolean | (() => boolean);
36
36
  } & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/esm';
3
3
  import { type PickerButtonDesktopProps } from '@alfalab/core-components-picker-button/esm/desktop';
4
- export declare type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,8 +2,8 @@ import React, { type ComponentType, type SVGProps } from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/esm';
3
3
  import { type PickerButtonSize, type PickerButtonVariant } from '@alfalab/core-components-picker-button/esm/shared';
4
4
  import { type FieldProps as BaseFieldProps } from '@alfalab/core-components-select/esm/shared';
5
- declare type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
- declare type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
5
+ type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
+ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
8
8
  buttonVariant?: PickerButtonVariant;
9
9
  showArrow?: boolean;
@@ -5,16 +5,16 @@
5
5
  :root {
6
6
  --arrow-transform: rotate(180deg);
7
7
  }
8
- .custom-picker-button__iconContainer_fsoyj {
8
+ .custom-picker-button__iconContainer_n8q59 {
9
9
  display: flex;
10
10
  transition: transform 0.15s ease-in-out;
11
11
  }
12
- .custom-picker-button__addonsContainer_fsoyj {
12
+ .custom-picker-button__addonsContainer_n8q59 {
13
13
  display: flex;
14
14
  }
15
- .custom-picker-button__addonsContainer_fsoyj.custom-picker-button__showControlIcon_fsoyj {
15
+ .custom-picker-button__addonsContainer_n8q59.custom-picker-button__showControlIcon_n8q59 {
16
16
  margin-right: var(--gap-4);
17
17
  }
18
- .custom-picker-button__open_fsoyj {
18
+ .custom-picker-button__open_n8q59 {
19
19
  transform: var(--arrow-transform);
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"iconContainer":"custom-picker-button__iconContainer_fsoyj","addonsContainer":"custom-picker-button__addonsContainer_fsoyj","showControlIcon":"custom-picker-button__showControlIcon_fsoyj","open":"custom-picker-button__open_fsoyj"};
3
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_n8q59","addonsContainer":"custom-picker-button__addonsContainer_n8q59","showControlIcon":"custom-picker-button__showControlIcon_n8q59","open":"custom-picker-button__open_n8q59"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.iconContainer {\n display: flex;\n transition: transform 0.15s ease-in-out;\n}\n\n.addonsContainer {\n display: flex;\n\n &.showControlIcon {\n margin-right: var(--gap-4);\n }\n}\n\n.open {\n transform: var(--arrow-transform);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,eAAe,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,MAAM,CAAC,kCAAkC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.iconContainer {\n display: flex;\n transition: transform 0.15s ease-in-out;\n}\n\n.addonsContainer {\n display: flex;\n\n &.showControlIcon {\n margin-right: var(--gap-4);\n }\n}\n\n.open {\n transform: var(--arrow-transform);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,eAAe,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,MAAM,CAAC,kCAAkC,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/esm';
3
3
  import { type PickerButtonMobileProps } from '@alfalab/core-components-picker-button/esm/mobile';
4
- export declare type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,8 +2,8 @@ import React, { type ComponentType, type SVGProps } from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button';
3
3
  import { type PickerButtonSize, type PickerButtonVariant } from '@alfalab/core-components-picker-button/shared';
4
4
  import { type FieldProps as BaseFieldProps } from '@alfalab/core-components-select/shared';
5
- declare type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
- declare type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
5
+ type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
+ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
8
8
  buttonVariant?: PickerButtonVariant;
9
9
  showArrow?: boolean;
package/field/index.css CHANGED
@@ -5,16 +5,16 @@
5
5
  :root {
6
6
  --arrow-transform: rotate(180deg);
7
7
  }
8
- .custom-picker-button__iconContainer_fsoyj {
8
+ .custom-picker-button__iconContainer_n8q59 {
9
9
  display: flex;
10
10
  transition: transform 0.15s ease-in-out;
11
11
  }
12
- .custom-picker-button__addonsContainer_fsoyj {
12
+ .custom-picker-button__addonsContainer_n8q59 {
13
13
  display: flex;
14
14
  }
15
- .custom-picker-button__addonsContainer_fsoyj.custom-picker-button__showControlIcon_fsoyj {
15
+ .custom-picker-button__addonsContainer_n8q59.custom-picker-button__showControlIcon_n8q59 {
16
16
  margin-right: var(--gap-4);
17
17
  }
18
- .custom-picker-button__open_fsoyj {
18
+ .custom-picker-button__open_n8q59 {
19
19
  transform: var(--arrow-transform);
20
20
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"iconContainer":"custom-picker-button__iconContainer_fsoyj","addonsContainer":"custom-picker-button__addonsContainer_fsoyj","showControlIcon":"custom-picker-button__showControlIcon_fsoyj","open":"custom-picker-button__open_fsoyj"};
5
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_n8q59","addonsContainer":"custom-picker-button__addonsContainer_n8q59","showControlIcon":"custom-picker-button__showControlIcon_n8q59","open":"custom-picker-button__open_n8q59"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.iconContainer {\n display: flex;\n transition: transform 0.15s ease-in-out;\n}\n\n.addonsContainer {\n display: flex;\n\n &.showControlIcon {\n margin-right: var(--gap-4);\n }\n}\n\n.open {\n transform: var(--arrow-transform);\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,eAAe,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,MAAM,CAAC,kCAAkC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.iconContainer {\n display: flex;\n transition: transform 0.15s ease-in-out;\n}\n\n.addonsContainer {\n display: flex;\n\n &.showControlIcon {\n margin-right: var(--gap-4);\n }\n}\n\n.open {\n transform: var(--arrow-transform);\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,eAAe,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,MAAM,CAAC,kCAAkC,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button';
3
3
  import { type PickerButtonMobileProps } from '@alfalab/core-components-picker-button/mobile';
4
- export declare type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CustomButtonProps } from '@alfalab/core-components-custom-button/modern';
3
3
  import { type AdditionalMobileProps, type BottomSheetSelectMobileProps } from '@alfalab/core-components-select/modern/shared';
4
4
  import { type CustomPickerButtonDesktopProps } from './desktop';
5
- export declare type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
5
+ export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
6
  /**
7
7
  * Контрольная точка, с нее начинается desktop версия
8
8
  * @default 1024
@@ -23,14 +23,14 @@ export declare const CustomPickerButtonResponsive: React.ForwardRefExoticCompone
23
23
  * Контрольная точка, с нее начинается desktop версия
24
24
  * @default 1024
25
25
  */
26
- breakpoint?: number | undefined;
26
+ breakpoint?: number;
27
27
  /**
28
28
  * Версия, которая будет использоваться при серверном рендеринге
29
29
  */
30
- client?: "desktop" | "mobile" | undefined;
30
+ client?: "desktop" | "mobile";
31
31
  /**
32
32
  * Значение по-умолчанию для хука useMatchMedia
33
33
  * @deprecated Используйте client
34
34
  */
35
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
35
+ defaultMatchMediaValue?: boolean | (() => boolean);
36
36
  } & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/modern';
3
3
  import { type PickerButtonDesktopProps } from '@alfalab/core-components-picker-button/modern/desktop';
4
- export declare type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,8 +2,8 @@ import React, { type ComponentType, type SVGProps } from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/modern';
3
3
  import { type PickerButtonSize, type PickerButtonVariant } from '@alfalab/core-components-picker-button/modern/shared';
4
4
  import { type FieldProps as BaseFieldProps } from '@alfalab/core-components-select/modern/shared';
5
- declare type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
- declare type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
5
+ type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
+ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
8
8
  buttonVariant?: PickerButtonVariant;
9
9
  showArrow?: boolean;
@@ -5,16 +5,16 @@
5
5
  :root {
6
6
  --arrow-transform: rotate(180deg);
7
7
  }
8
- .custom-picker-button__iconContainer_fsoyj {
8
+ .custom-picker-button__iconContainer_n8q59 {
9
9
  display: flex;
10
10
  transition: transform 0.15s ease-in-out;
11
11
  }
12
- .custom-picker-button__addonsContainer_fsoyj {
12
+ .custom-picker-button__addonsContainer_n8q59 {
13
13
  display: flex;
14
14
  }
15
- .custom-picker-button__addonsContainer_fsoyj.custom-picker-button__showControlIcon_fsoyj {
15
+ .custom-picker-button__addonsContainer_n8q59.custom-picker-button__showControlIcon_n8q59 {
16
16
  margin-right: var(--gap-4);
17
17
  }
18
- .custom-picker-button__open_fsoyj {
18
+ .custom-picker-button__open_n8q59 {
19
19
  transform: var(--arrow-transform);
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"iconContainer":"custom-picker-button__iconContainer_fsoyj","addonsContainer":"custom-picker-button__addonsContainer_fsoyj","showControlIcon":"custom-picker-button__showControlIcon_fsoyj","open":"custom-picker-button__open_fsoyj"};
3
+ const styles = {"iconContainer":"custom-picker-button__iconContainer_n8q59","addonsContainer":"custom-picker-button__addonsContainer_n8q59","showControlIcon":"custom-picker-button__showControlIcon_n8q59","open":"custom-picker-button__open_n8q59"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.iconContainer {\n display: flex;\n transition: transform 0.15s ease-in-out;\n}\n\n.addonsContainer {\n display: flex;\n\n &.showControlIcon {\n margin-right: var(--gap-4);\n }\n}\n\n.open {\n transform: var(--arrow-transform);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,eAAe,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,MAAM,CAAC,kCAAkC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.iconContainer {\n display: flex;\n transition: transform 0.15s ease-in-out;\n}\n\n.addonsContainer {\n display: flex;\n\n &.showControlIcon {\n margin-right: var(--gap-4);\n }\n}\n\n.open {\n transform: var(--arrow-transform);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,eAAe,CAAC,2CAA2C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,iBAAiB,CAAC,6CAA6C,CAAC,MAAM,CAAC,kCAAkC,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/modern';
3
3
  import { type PickerButtonMobileProps } from '@alfalab/core-components-picker-button/modern/mobile';
4
- export declare type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CustomButtonProps } from '@alfalab/core-components-custom-button/moderncssm';
3
3
  import { type AdditionalMobileProps, type BottomSheetSelectMobileProps } from '@alfalab/core-components-select/moderncssm/shared';
4
4
  import { type CustomPickerButtonDesktopProps } from './desktop';
5
- export declare type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
5
+ export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
6
  /**
7
7
  * Контрольная точка, с нее начинается desktop версия
8
8
  * @default 1024
@@ -23,14 +23,14 @@ export declare const CustomPickerButtonResponsive: React.ForwardRefExoticCompone
23
23
  * Контрольная точка, с нее начинается desktop версия
24
24
  * @default 1024
25
25
  */
26
- breakpoint?: number | undefined;
26
+ breakpoint?: number;
27
27
  /**
28
28
  * Версия, которая будет использоваться при серверном рендеринге
29
29
  */
30
- client?: "desktop" | "mobile" | undefined;
30
+ client?: "desktop" | "mobile";
31
31
  /**
32
32
  * Значение по-умолчанию для хука useMatchMedia
33
33
  * @deprecated Используйте client
34
34
  */
35
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
35
+ defaultMatchMediaValue?: boolean | (() => boolean);
36
36
  } & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/moderncssm';
3
3
  import { type PickerButtonDesktopProps } from '@alfalab/core-components-picker-button/moderncssm/desktop';
4
- export declare type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
@@ -2,8 +2,8 @@ import React, { type ComponentType, type SVGProps } from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/moderncssm';
3
3
  import { type PickerButtonSize, type PickerButtonVariant } from '@alfalab/core-components-picker-button/moderncssm/shared';
4
4
  import { type FieldProps as BaseFieldProps } from '@alfalab/core-components-select/moderncssm/shared';
5
- declare type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
- declare type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
5
+ type UselessProps = Partial<Pick<BaseFieldProps, 'selectedMultiple' | 'onClear' | 'FormControlComponent' | 'valueRenderer' | 'Arrow' | 'labelView' | 'toggleMenu' | 'setSelectedItems'>>;
6
+ type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & UselessProps & CustomButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
8
8
  buttonVariant?: PickerButtonVariant;
9
9
  showArrow?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type CustomButtonProps } from '@alfalab/core-components-custom-button/moderncssm';
3
3
  import { type PickerButtonMobileProps } from '@alfalab/core-components-picker-button/moderncssm/mobile';
4
- export declare type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
4
+ export type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
5
5
  export declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-custom-picker-button",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Custom picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,10 +10,10 @@
10
10
  "main": "index.js",
11
11
  "module": "./esm/index.js",
12
12
  "dependencies": {
13
- "@alfalab/core-components-custom-button": "^5.0.3",
14
- "@alfalab/core-components-mq": "^6.0.2",
15
- "@alfalab/core-components-picker-button": "^13.0.7",
16
- "@alfalab/core-components-select": "^19.1.0",
13
+ "@alfalab/core-components-custom-button": "^5.0.4",
14
+ "@alfalab/core-components-mq": "^6.0.3",
15
+ "@alfalab/core-components-picker-button": "^13.0.8",
16
+ "@alfalab/core-components-select": "^19.1.1",
17
17
  "classnames": "^2.5.1",
18
18
  "tslib": "^2.4.0"
19
19
  },
@@ -26,5 +26,5 @@
26
26
  "directory": "dist"
27
27
  },
28
28
  "themesVersion": "15.0.2",
29
- "varsVersion": "11.0.1"
29
+ "varsVersion": "11.0.2"
30
30
  }
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/no-typography-index.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  .iconContainer {
4
4
  display: flex;