@alfalab/core-components-custom-picker-button 2.0.15 → 2.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.
- package/Component.desktop.d.ts +1 -1
- package/Component.mobile.d.ts +1 -9
- package/Component.responsive.d.ts +4 -7
- package/cssm/Component.desktop.d.ts +1 -1
- package/cssm/Component.mobile.d.ts +1 -1
- package/cssm/Component.responsive.d.ts +4 -7
- package/cssm/{desktop.d.ts → desktop/index.d.ts} +1 -1
- package/cssm/{desktop.js → desktop/index.js} +3 -3
- package/cssm/field/Component.d.ts +2 -1
- package/{esm/mobile.d.ts → cssm/mobile/index.d.ts} +1 -1
- package/cssm/{mobile.js → mobile/index.js} +3 -3
- package/{desktop.d.ts → desktop/index.d.ts} +1 -1
- package/{desktop.js → desktop/index.js} +2 -2
- package/desktop/package.json +3 -0
- package/esm/Component.desktop.d.ts +1 -1
- package/esm/Component.mobile.d.ts +1 -1
- package/esm/Component.responsive.d.ts +4 -7
- package/esm/{desktop.d.ts → desktop/index.d.ts} +1 -1
- package/esm/{desktop.js → desktop/index.js} +2 -2
- package/esm/field/Component.d.ts +2 -1
- package/esm/field/Component.js +1 -1
- package/esm/field/index.css +5 -5
- package/{mobile.d.ts → esm/mobile/index.d.ts} +1 -1
- package/esm/{mobile.js → mobile/index.js} +2 -2
- package/field/Component.d.ts +2 -1
- package/field/Component.js +1 -1
- package/field/index.css +5 -5
- package/{cssm/mobile.d.ts → mobile/index.d.ts} +1 -1
- package/{mobile.js → mobile/index.js} +2 -2
- package/mobile/package.json +3 -0
- package/modern/Component.desktop.d.ts +1 -1
- package/modern/Component.mobile.d.ts +1 -1
- package/modern/Component.responsive.d.ts +4 -7
- package/modern/{desktop.d.ts → desktop/index.d.ts} +1 -1
- package/modern/{desktop.js → desktop/index.js} +2 -2
- package/modern/field/Component.d.ts +2 -1
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +5 -5
- package/modern/{mobile.d.ts → mobile/index.d.ts} +1 -1
- package/modern/{mobile.js → mobile/index.js} +2 -2
- package/package.json +4 -4
- package/src/Component.responsive.tsx +6 -8
- package/src/{desktop.ts → desktop/index.ts} +1 -1
- package/src/desktop/package.json +3 -0
- package/src/{mobile.ts → mobile/index.ts} +1 -1
- package/src/mobile/package.json +3 -0
- package/Component-0f4b9bed.d.ts +0 -5
- package/Component-10db897e.d.ts +0 -296
- package/Component-4cd3936b.d.ts +0 -12
- package/Component-72dda473.d.ts +0 -53
- package/Component-aed0af6e.d.ts +0 -11
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -101
- package/Component-f12ee135.d.ts +0 -72
- package/Component.desktop-0aa4e915.d.ts +0 -5
- package/Component.desktop-4cd3936b.d.ts +0 -49
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.mobile-16b1285a.d.ts +0 -5
- package/Component.mobile-96988a65.d.ts +0 -6
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.mobile-f1f15074.d.ts +0 -34
- package/Component.mobile-f28cbba0.d.ts +0 -41
- package/Component.responsive-0aa4e915.d.ts +0 -5
- package/Component.responsive-d7e9f69d.d.ts +0 -26
- package/Context-bdb4c6b9.d.ts +0 -4
- package/ResponsiveContext-baf4875b.d.ts +0 -5
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/Component-0f4b9bed.d.ts +0 -22
- package/cssm/Component-10db897e.d.ts +0 -72
- package/cssm/Component-4cd3936b.d.ts +0 -12
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-72dda473.d.ts +0 -53
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-8b2c2707.d.ts +0 -12
- package/cssm/Component-bdb4c6b9.d.ts +0 -12
- package/cssm/Component-c76d6398.d.ts +0 -5
- package/cssm/Component-ebda875c.d.ts +0 -12
- package/cssm/Component.desktop-0aa4e915.d.ts +0 -5
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.mobile-16b1285a.d.ts +0 -5
- package/cssm/Component.mobile-d446ae02.d.ts +0 -23
- package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/cssm/Component.mobile-f1f15074.d.ts +0 -34
- package/cssm/Component.mobile-f28cbba0.d.ts +0 -41
- package/cssm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/cssm/Context-bdb4c6b9.d.ts +0 -4
- package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/cssm/component-10db897e.d.ts +0 -44
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/cssm/desktop-89f0cb07.d.ts +0 -2
- package/cssm/desktop-d446ae02.d.ts +0 -39
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/index-10db897e.d.ts +0 -50
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-72dda473.d.ts +0 -12
- package/cssm/index-8b2c2707.d.ts +0 -6
- package/cssm/index-bdb4c6b9.d.ts +0 -2
- package/cssm/index-c44170fe.d.ts +0 -18
- package/cssm/index-c76d6398.d.ts +0 -2
- package/cssm/index-df3978fd.d.ts +0 -4
- package/cssm/index-ebda875c.d.ts +0 -37
- package/cssm/index-f12ee135.d.ts +0 -3
- package/cssm/mobile-89f0cb07.d.ts +0 -2
- package/cssm/mobile-d7e9f69d.d.ts +0 -2
- package/cssm/shared-4cd3936b.d.ts +0 -66
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-1c79e231.d.ts +0 -113
- package/cssm/types-4480ac4f.d.ts +0 -3
- package/cssm/types-67a2d8af.d.ts +0 -276
- package/cssm/typings-0f4b9bed.d.ts +0 -576
- package/cssm/typings-89f0cb07.d.ts +0 -93
- package/cssm/typings-bdb4c6b9.d.ts +0 -52
- package/cssm/useSkeleton-ebda875c.d.ts +0 -12
- package/cssm/utils-0f4b9bed.d.ts +0 -41
- package/cssm/utils-1574ad8b.d.ts +0 -29
- package/cssm/utils-49cc3c24.d.ts +0 -8
- package/desktop-69921c40.d.ts +0 -2
- package/desktop-d446ae02.d.ts +0 -2
- package/esm/Component-0f4b9bed.d.ts +0 -22
- package/esm/Component-10db897e.d.ts +0 -72
- package/esm/Component-4cd3936b.d.ts +0 -12
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-72dda473.d.ts +0 -53
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-8b2c2707.d.ts +0 -12
- package/esm/Component-bdb4c6b9.d.ts +0 -12
- package/esm/Component-c76d6398.d.ts +0 -5
- package/esm/Component-ebda875c.d.ts +0 -12
- package/esm/Component.desktop-0aa4e915.d.ts +0 -5
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.mobile-16b1285a.d.ts +0 -5
- package/esm/Component.mobile-d446ae02.d.ts +0 -23
- package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/esm/Component.mobile-f1f15074.d.ts +0 -34
- package/esm/Component.mobile-f28cbba0.d.ts +0 -41
- package/esm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/esm/Context-bdb4c6b9.d.ts +0 -4
- package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/esm/component-10db897e.d.ts +0 -44
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/esm/desktop-89f0cb07.d.ts +0 -2
- package/esm/desktop-d446ae02.d.ts +0 -39
- package/esm/hook-8abfea97.d.ts +0 -90
- package/esm/index-10db897e.d.ts +0 -50
- package/esm/index-136acbb1.d.ts +0 -28
- package/esm/index-72dda473.d.ts +0 -12
- package/esm/index-8b2c2707.d.ts +0 -6
- package/esm/index-bdb4c6b9.d.ts +0 -2
- package/esm/index-c44170fe.d.ts +0 -18
- package/esm/index-c76d6398.d.ts +0 -2
- package/esm/index-df3978fd.d.ts +0 -4
- package/esm/index-ebda875c.d.ts +0 -37
- package/esm/index-f12ee135.d.ts +0 -3
- package/esm/mobile-89f0cb07.d.ts +0 -2
- package/esm/mobile-d7e9f69d.d.ts +0 -2
- package/esm/shared-4cd3936b.d.ts +0 -66
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-1c79e231.d.ts +0 -113
- package/esm/types-4480ac4f.d.ts +0 -3
- package/esm/types-67a2d8af.d.ts +0 -276
- package/esm/typings-0f4b9bed.d.ts +0 -576
- package/esm/typings-89f0cb07.d.ts +0 -93
- package/esm/typings-bdb4c6b9.d.ts +0 -52
- package/esm/useSkeleton-ebda875c.d.ts +0 -12
- package/esm/utils-0f4b9bed.d.ts +0 -41
- package/esm/utils-1574ad8b.d.ts +0 -29
- package/esm/utils-49cc3c24.d.ts +0 -8
- package/hook-8abfea97.d.ts +0 -90
- package/hook-ebda875c.d.ts +0 -48
- package/index-10db897e.d.ts +0 -50
- package/index-136acbb1.d.ts +0 -28
- package/index-72dda473.d.ts +0 -12
- package/index-89f0cb07.d.ts +0 -2
- package/index-bdb4c6b9.d.ts +0 -180
- package/index-c44170fe.d.ts +0 -3
- package/index-c76d6398.d.ts +0 -2
- package/index-df3978fd.d.ts +0 -4
- package/index-ebda875c.d.ts +0 -219
- package/index-f12ee135.d.ts +0 -324
- package/mobile-96988a65.d.ts +0 -2
- package/modern/Component-0f4b9bed.d.ts +0 -22
- package/modern/Component-10db897e.d.ts +0 -72
- package/modern/Component-4cd3936b.d.ts +0 -12
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-72dda473.d.ts +0 -53
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-8b2c2707.d.ts +0 -12
- package/modern/Component-bdb4c6b9.d.ts +0 -12
- package/modern/Component-c76d6398.d.ts +0 -5
- package/modern/Component-ebda875c.d.ts +0 -12
- package/modern/Component.desktop-0aa4e915.d.ts +0 -5
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.mobile-16b1285a.d.ts +0 -5
- package/modern/Component.mobile-d446ae02.d.ts +0 -23
- package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
- package/modern/Component.mobile-f1f15074.d.ts +0 -34
- package/modern/Component.mobile-f28cbba0.d.ts +0 -41
- package/modern/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/modern/Context-bdb4c6b9.d.ts +0 -4
- package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
- package/modern/component-10db897e.d.ts +0 -44
- package/modern/consts-f777ba1a.d.ts +0 -2
- package/modern/desktop-89f0cb07.d.ts +0 -2
- package/modern/desktop-d446ae02.d.ts +0 -39
- package/modern/hook-8abfea97.d.ts +0 -90
- package/modern/index-10db897e.d.ts +0 -50
- package/modern/index-136acbb1.d.ts +0 -28
- package/modern/index-72dda473.d.ts +0 -12
- package/modern/index-8b2c2707.d.ts +0 -6
- package/modern/index-bdb4c6b9.d.ts +0 -2
- package/modern/index-c44170fe.d.ts +0 -18
- package/modern/index-c76d6398.d.ts +0 -2
- package/modern/index-df3978fd.d.ts +0 -4
- package/modern/index-ebda875c.d.ts +0 -37
- package/modern/index-f12ee135.d.ts +0 -3
- package/modern/mobile-89f0cb07.d.ts +0 -2
- package/modern/mobile-d7e9f69d.d.ts +0 -2
- package/modern/shared-4cd3936b.d.ts +0 -66
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-1c79e231.d.ts +0 -113
- package/modern/types-4480ac4f.d.ts +0 -3
- package/modern/types-67a2d8af.d.ts +0 -276
- package/modern/typings-0f4b9bed.d.ts +0 -576
- package/modern/typings-89f0cb07.d.ts +0 -93
- package/modern/typings-bdb4c6b9.d.ts +0 -52
- package/modern/useSkeleton-ebda875c.d.ts +0 -12
- package/modern/utils-0f4b9bed.d.ts +0 -41
- package/modern/utils-1574ad8b.d.ts +0 -29
- package/modern/utils-49cc3c24.d.ts +0 -8
- package/shared-4cd3936b.d.ts +0 -7
- package/types-1b036d4b.d.ts +0 -13
- package/types-1c79e231.d.ts +0 -113
- package/types-4480ac4f.d.ts +0 -3
- package/typings-0f4b9bed.d.ts +0 -576
- package/typings-89f0cb07.d.ts +0 -93
- package/typings-bdb4c6b9.d.ts +0 -52
- package/useSkeleton-1b036d4b.d.ts +0 -12
- package/utils-0f4b9bed.d.ts +0 -41
package/Component.desktop.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonDesktopProps } from "
|
|
4
|
+
import { PickerButtonDesktopProps } from "@alfalab/core-components-picker-button/desktop";
|
|
5
5
|
type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
6
6
|
declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export { CustomPickerButtonDesktopProps, CustomPickerButtonDesktop };
|
package/Component.mobile.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import {
|
|
5
|
-
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
6
|
-
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, "OptionsList" | "Checkmark" | "onScroll"> & AdditionalMobileProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
9
|
-
* @default 1024
|
|
10
|
-
*/
|
|
11
|
-
breakpoint?: number;
|
|
12
|
-
};
|
|
4
|
+
import { PickerButtonMobileProps } from "@alfalab/core-components-picker-button/mobile";
|
|
13
5
|
type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
14
6
|
declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
15
7
|
export { CustomPickerButtonMobileProps, CustomPickerButtonMobile };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
5
|
-
import { AdditionalMobileProps } from "./shared-4cd3936b";
|
|
3
|
+
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
6
4
|
import { CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
7
|
-
type
|
|
8
|
-
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & {
|
|
5
|
+
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
9
6
|
/**
|
|
10
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
11
8
|
* @default 1024
|
|
12
9
|
*/
|
|
13
10
|
breakpoint?: number;
|
|
14
11
|
};
|
|
15
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & {
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/Component.desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
16
13
|
/**
|
|
17
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
18
15
|
* @default 1024
|
|
19
16
|
*/
|
|
20
17
|
breakpoint?: number | undefined;
|
|
21
18
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
-
export {
|
|
19
|
+
export { CustomPickerButtonResponsiveProps, CustomPickerButtonResponsive };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonDesktopProps } from "
|
|
4
|
+
import { PickerButtonDesktopProps } from "@alfalab/core-components-picker-button/desktop";
|
|
5
5
|
type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
6
6
|
declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export { CustomPickerButtonDesktopProps, CustomPickerButtonDesktop };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonMobileProps } from "
|
|
4
|
+
import { PickerButtonMobileProps } from "@alfalab/core-components-picker-button/mobile";
|
|
5
5
|
type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
6
6
|
declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export { CustomPickerButtonMobileProps, CustomPickerButtonMobile };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
5
|
-
import { AdditionalMobileProps } from "./shared-4cd3936b";
|
|
3
|
+
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
6
4
|
import { CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
7
|
-
type
|
|
8
|
-
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & {
|
|
5
|
+
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
9
6
|
/**
|
|
10
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
11
8
|
* @default 1024
|
|
12
9
|
*/
|
|
13
10
|
breakpoint?: number;
|
|
14
11
|
};
|
|
15
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & {
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/Component.desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
16
13
|
/**
|
|
17
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
18
15
|
* @default 1024
|
|
19
16
|
*/
|
|
20
17
|
breakpoint?: number | undefined;
|
|
21
18
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
-
export {
|
|
19
|
+
export { CustomPickerButtonResponsiveProps, CustomPickerButtonResponsive };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "../Component.desktop";
|
|
2
2
|
export {};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/cssm/desktop');
|
|
9
|
-
require('
|
|
9
|
+
require('../field/Component.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@alfalab/core-components-custom-button/cssm');
|
|
12
12
|
require('@alfalab/core-components-picker-button/cssm/shared');
|
|
13
|
-
require('
|
|
13
|
+
require('../field/index.module.css');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import {
|
|
4
|
+
import { PickerButtonSize, PickerButtonVariant } from "@alfalab/core-components-picker-button/shared";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "@alfalab/core-components-select/shared";
|
|
5
6
|
type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & CustomButtonProps & {
|
|
6
7
|
buttonSize?: PickerButtonSize;
|
|
7
8
|
buttonVariant?: PickerButtonVariant;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "../Component.mobile";
|
|
2
2
|
export {};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_mobile = require('
|
|
5
|
+
var Component_mobile = require('../Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/cssm/mobile');
|
|
9
|
-
require('
|
|
9
|
+
require('../field/Component.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@alfalab/core-components-custom-button/cssm');
|
|
12
12
|
require('@alfalab/core-components-picker-button/cssm/shared');
|
|
13
|
-
require('
|
|
13
|
+
require('../field/index.module.css');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "../Component.desktop";
|
|
2
2
|
export {};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/desktop');
|
|
9
|
-
require('
|
|
9
|
+
require('../field/Component.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@alfalab/core-components-custom-button');
|
|
12
12
|
require('@alfalab/core-components-picker-button/shared');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonDesktopProps } from "
|
|
4
|
+
import { PickerButtonDesktopProps } from "@alfalab/core-components-picker-button/desktop";
|
|
5
5
|
type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
6
6
|
declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export { CustomPickerButtonDesktopProps, CustomPickerButtonDesktop };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonMobileProps } from "
|
|
4
|
+
import { PickerButtonMobileProps } from "@alfalab/core-components-picker-button/mobile";
|
|
5
5
|
type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
6
6
|
declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export { CustomPickerButtonMobileProps, CustomPickerButtonMobile };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
5
|
-
import { AdditionalMobileProps } from "./shared-4cd3936b";
|
|
3
|
+
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
6
4
|
import { CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
7
|
-
type
|
|
8
|
-
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & {
|
|
5
|
+
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
9
6
|
/**
|
|
10
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
11
8
|
* @default 1024
|
|
12
9
|
*/
|
|
13
10
|
breakpoint?: number;
|
|
14
11
|
};
|
|
15
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & {
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/Component.desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
16
13
|
/**
|
|
17
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
18
15
|
* @default 1024
|
|
19
16
|
*/
|
|
20
17
|
breakpoint?: number | undefined;
|
|
21
18
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
-
export {
|
|
19
|
+
export { CustomPickerButtonResponsiveProps, CustomPickerButtonResponsive };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "../Component.desktop";
|
|
2
2
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop } from '
|
|
1
|
+
export { CustomPickerButtonDesktop } from '../Component.desktop.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
5
|
-
import '
|
|
5
|
+
import '../field/Component.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '@alfalab/core-components-custom-button/esm';
|
|
8
8
|
import '@alfalab/core-components-picker-button/esm/shared';
|
package/esm/field/Component.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import {
|
|
4
|
+
import { PickerButtonSize, PickerButtonVariant } from "@alfalab/core-components-picker-button/shared";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "@alfalab/core-components-select/shared";
|
|
5
6
|
type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & CustomButtonProps & {
|
|
6
7
|
buttonSize?: PickerButtonSize;
|
|
7
8
|
buttonVariant?: PickerButtonVariant;
|
package/esm/field/Component.js
CHANGED
|
@@ -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-
|
|
7
|
+
var styles = {"iconContainer":"custom-picker-button__iconContainer_1gdpb","addonsContainer":"custom-picker-button__addonsContainer_1gdpb","showControlIcon":"custom-picker-button__showControlIcon_1gdpb","open":"custom-picker-button__open_1gdpb"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Field = function (_a) {
|
package/esm/field/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 6ye9u */
|
|
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-
|
|
19
|
+
} .custom-picker-button__iconContainer_1gdpb {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_1gdpb {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_1gdpb.custom-picker-button__showControlIcon_1gdpb {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_1gdpb {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "../Component.mobile";
|
|
2
2
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile } from '
|
|
1
|
+
export { CustomPickerButtonMobile } from '../Component.mobile.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@alfalab/core-components-picker-button/esm/mobile';
|
|
5
|
-
import '
|
|
5
|
+
import '../field/Component.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '@alfalab/core-components-custom-button/esm';
|
|
8
8
|
import '@alfalab/core-components-picker-button/esm/shared';
|
package/field/Component.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import {
|
|
4
|
+
import { PickerButtonSize, PickerButtonVariant } from "@alfalab/core-components-picker-button/shared";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "@alfalab/core-components-select/shared";
|
|
5
6
|
type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & CustomButtonProps & {
|
|
6
7
|
buttonSize?: PickerButtonSize;
|
|
7
8
|
buttonVariant?: PickerButtonVariant;
|
package/field/Component.js
CHANGED
|
@@ -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-
|
|
16
|
+
var styles = {"iconContainer":"custom-picker-button__iconContainer_1gdpb","addonsContainer":"custom-picker-button__addonsContainer_1gdpb","showControlIcon":"custom-picker-button__showControlIcon_1gdpb","open":"custom-picker-button__open_1gdpb"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var Field = function (_a) {
|
package/field/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 6ye9u */
|
|
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-
|
|
19
|
+
} .custom-picker-button__iconContainer_1gdpb {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_1gdpb {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_1gdpb.custom-picker-button__showControlIcon_1gdpb {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_1gdpb {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "../Component.mobile";
|
|
2
2
|
export {};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_mobile = require('
|
|
5
|
+
var Component_mobile = require('../Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/mobile');
|
|
9
|
-
require('
|
|
9
|
+
require('../field/Component.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@alfalab/core-components-custom-button');
|
|
12
12
|
require('@alfalab/core-components-picker-button/shared');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonDesktopProps } from "
|
|
4
|
+
import { PickerButtonDesktopProps } from "@alfalab/core-components-picker-button/desktop";
|
|
5
5
|
type CustomPickerButtonDesktopProps = Omit<PickerButtonDesktopProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
6
6
|
declare const CustomPickerButtonDesktop: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export { CustomPickerButtonDesktopProps, CustomPickerButtonDesktop };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import { PickerButtonMobileProps } from "
|
|
4
|
+
import { PickerButtonMobileProps } from "@alfalab/core-components-picker-button/mobile";
|
|
5
5
|
type CustomPickerButtonMobileProps = Omit<PickerButtonMobileProps, 'view' | 'colors'> & Pick<CustomButtonProps, 'backgroundColor' | 'contentColor' | 'stateType'>;
|
|
6
6
|
declare const CustomPickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonMobileProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
export { CustomPickerButtonMobileProps, CustomPickerButtonMobile };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { PickerButtonDesktopProps } from "./desktop-d446ae02";
|
|
5
|
-
import { AdditionalMobileProps } from "./shared-4cd3936b";
|
|
3
|
+
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
6
4
|
import { CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
7
|
-
type
|
|
8
|
-
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & {
|
|
5
|
+
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
9
6
|
/**
|
|
10
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
11
8
|
* @default 1024
|
|
12
9
|
*/
|
|
13
10
|
breakpoint?: number;
|
|
14
11
|
};
|
|
15
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & {
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/Component.desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
16
13
|
/**
|
|
17
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
18
15
|
* @default 1024
|
|
19
16
|
*/
|
|
20
17
|
breakpoint?: number | undefined;
|
|
21
18
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
-
export {
|
|
19
|
+
export { CustomPickerButtonResponsiveProps, CustomPickerButtonResponsive };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "../Component.desktop";
|
|
2
2
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop } from '
|
|
1
|
+
export { CustomPickerButtonDesktop } from '../Component.desktop.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
4
|
-
import '
|
|
4
|
+
import '../field/Component.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-custom-button/modern';
|
|
7
7
|
import '@alfalab/core-components-picker-button/modern/shared';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CustomButtonProps } from "@alfalab/core-components-custom-button";
|
|
4
|
-
import {
|
|
4
|
+
import { PickerButtonSize, PickerButtonVariant } from "@alfalab/core-components-picker-button/shared";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "@alfalab/core-components-select/shared";
|
|
5
6
|
type FieldProps = Pick<BaseFieldProps, 'open' | 'label' | 'innerProps'> & CustomButtonProps & {
|
|
6
7
|
buttonSize?: PickerButtonSize;
|
|
7
8
|
buttonVariant?: PickerButtonVariant;
|
|
@@ -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-
|
|
6
|
+
const styles = {"iconContainer":"custom-picker-button__iconContainer_1gdpb","addonsContainer":"custom-picker-button__addonsContainer_1gdpb","showControlIcon":"custom-picker-button__showControlIcon_1gdpb","open":"custom-picker-button__open_1gdpb"};
|
|
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 }) => {
|
package/modern/field/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 6ye9u */
|
|
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-
|
|
19
|
+
} .custom-picker-button__iconContainer_1gdpb {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_1gdpb {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_1gdpb.custom-picker-button__showControlIcon_1gdpb {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_1gdpb {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "../Component.mobile";
|
|
2
2
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile } from '
|
|
1
|
+
export { CustomPickerButtonMobile } from '../Component.mobile.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-picker-button/modern/mobile';
|
|
4
|
-
import '
|
|
4
|
+
import '../field/Component.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-custom-button/modern';
|
|
7
7
|
import '@alfalab/core-components-picker-button/modern/shared';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-custom-picker-button",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Custom picker button component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-picker-button": "^11.
|
|
19
|
-
"@alfalab/core-components-custom-button": "^3.3.
|
|
18
|
+
"@alfalab/core-components-picker-button": "^11.3.0",
|
|
19
|
+
"@alfalab/core-components-custom-button": "^3.3.8",
|
|
20
20
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
21
|
-
"@alfalab/core-components-select": "^
|
|
21
|
+
"@alfalab/core-components-select": "^16.0.0",
|
|
22
22
|
"classnames": "^2.3.1",
|
|
23
23
|
"tslib": "^2.4.0"
|
|
24
24
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4
|
-
import { CustomButtonProps } from '@alfalab/core-components-custom-button';
|
|
5
3
|
import { useMatchMedia } from '@alfalab/core-components-mq';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import type {
|
|
5
|
+
AdditionalMobileProps,
|
|
6
|
+
BottomSheetSelectMobileProps,
|
|
7
|
+
} from '@alfalab/core-components-select/shared';
|
|
9
8
|
|
|
10
9
|
import { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from './Component.desktop';
|
|
11
10
|
import { CustomPickerButtonMobile } from './Component.mobile';
|
|
12
11
|
|
|
13
|
-
export type PickerButtonMatchMedia = 'desktop' | 'mobile';
|
|
14
|
-
|
|
15
12
|
export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps &
|
|
16
|
-
AdditionalMobileProps &
|
|
13
|
+
AdditionalMobileProps &
|
|
14
|
+
BottomSheetSelectMobileProps & {
|
|
17
15
|
/**
|
|
18
16
|
* Контрольная точка, с нее начинается desktop версия
|
|
19
17
|
* @default 1024
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from '
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from '../Component.desktop';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from '
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from '../Component.mobile';
|