@alfalab/core-components-custom-picker-button 2.1.3 → 2.1.4
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.responsive.d.ts +2 -2
- package/Component.responsive.js +3 -3
- package/cssm/Component.responsive.d.ts +2 -2
- package/cssm/Component.responsive.js +3 -3
- package/cssm/{Component.desktop.js → desktop/Component.desktop.js} +2 -2
- package/cssm/desktop/index.d.ts +1 -1
- package/cssm/desktop/index.js +2 -2
- package/cssm/index.js +2 -2
- package/cssm/{Component.mobile.js → mobile/Component.mobile.js} +2 -2
- package/cssm/mobile/index.d.ts +1 -1
- package/cssm/mobile/index.js +2 -2
- package/{Component.desktop.js → desktop/Component.desktop.js} +1 -1
- package/desktop/index.d.ts +1 -1
- package/desktop/index.js +2 -2
- package/esm/Component.responsive.d.ts +2 -2
- package/esm/Component.responsive.js +2 -2
- package/esm/{Component.desktop.js → desktop/Component.desktop.js} +1 -1
- package/esm/desktop/index.d.ts +1 -1
- package/esm/desktop/index.js +1 -1
- package/esm/field/Component.js +1 -1
- package/esm/field/index.css +5 -5
- package/esm/index.js +2 -2
- package/esm/{Component.mobile.js → mobile/Component.mobile.js} +1 -1
- package/esm/mobile/index.d.ts +1 -1
- package/esm/mobile/index.js +1 -1
- package/field/Component.js +1 -1
- package/field/index.css +5 -5
- package/index.js +2 -2
- package/{Component.mobile.js → mobile/Component.mobile.js} +1 -1
- package/mobile/index.d.ts +1 -1
- package/mobile/index.js +2 -2
- package/modern/Component.responsive.d.ts +2 -2
- package/modern/Component.responsive.js +2 -2
- package/modern/{Component.desktop.js → desktop/Component.desktop.js} +1 -1
- package/modern/desktop/index.d.ts +1 -1
- package/modern/desktop/index.js +1 -1
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +5 -5
- package/modern/index.js +2 -2
- package/modern/{Component.mobile.js → mobile/Component.mobile.js} +1 -1
- package/modern/mobile/index.d.ts +1 -1
- package/modern/mobile/index.js +1 -1
- package/package.json +4 -4
- package/src/Component.responsive.tsx +2 -2
- package/src/{Component.desktop.tsx → desktop/Component.desktop.tsx} +1 -1
- package/src/desktop/index.ts +1 -1
- package/src/{Component.mobile.tsx → mobile/Component.mobile.tsx} +1 -1
- package/src/mobile/index.ts +1 -1
- /package/{Component.desktop.d.ts → cssm/desktop/Component.desktop.d.ts} +0 -0
- /package/{Component.mobile.d.ts → cssm/mobile/Component.mobile.d.ts} +0 -0
- /package/{cssm → desktop}/Component.desktop.d.ts +0 -0
- /package/esm/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +0 -0
- /package/{cssm → esm/mobile}/Component.mobile.d.ts +0 -0
- /package/{esm → mobile}/Component.mobile.d.ts +0 -0
- /package/modern/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +0 -0
- /package/modern/{Component.mobile.d.ts → mobile/Component.mobile.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
4
|
-
import { CustomPickerButtonDesktopProps } from "./
|
|
4
|
+
import { CustomPickerButtonDesktopProps } from "./desktop/index";
|
|
5
5
|
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
6
6
|
/**
|
|
7
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
@@ -9,7 +9,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
|
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
13
13
|
/**
|
|
14
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
15
15
|
* @default 1024
|
package/Component.responsive.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var coreComponentsMq = require('@alfalab/core-components-mq');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var desktop_Component_desktop = require('./desktop/Component.desktop.js');
|
|
9
|
+
var mobile_Component_mobile = require('./mobile/Component.mobile.js');
|
|
10
10
|
require('@alfalab/core-components-picker-button/desktop');
|
|
11
11
|
require('./field/Component.js');
|
|
12
12
|
require('classnames');
|
|
@@ -22,7 +22,7 @@ var CustomPickerButtonResponsive = React.forwardRef(function (_a, ref) {
|
|
|
22
22
|
var OptionsList = _a.OptionsList, onScroll = _a.onScroll, footer = _a.footer, swipeable = _a.swipeable, bottomSheetProps = _a.bottomSheetProps, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["OptionsList", "onScroll", "footer", "swipeable", "bottomSheetProps", "breakpoint"]);
|
|
23
23
|
var query = "(min-width: ".concat(breakpoint, "px)");
|
|
24
24
|
var isDesktop = coreComponentsMq.useMatchMedia(query)[0];
|
|
25
|
-
return isDesktop ? (React__default.default.createElement(
|
|
25
|
+
return isDesktop ? (React__default.default.createElement(desktop_Component_desktop.CustomPickerButtonDesktop, tslib.__assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React__default.default.createElement(mobile_Component_mobile.CustomPickerButtonMobile, tslib.__assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
exports.CustomPickerButtonResponsive = CustomPickerButtonResponsive;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
4
|
-
import { CustomPickerButtonDesktopProps } from "./
|
|
4
|
+
import { CustomPickerButtonDesktopProps } from "./desktop/index";
|
|
5
5
|
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
6
6
|
/**
|
|
7
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
@@ -9,7 +9,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
|
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
13
13
|
/**
|
|
14
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
15
15
|
* @default 1024
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var coreComponentsMq = require('@alfalab/core-components-mq/cssm');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var desktop_Component_desktop = require('./desktop/Component.desktop.js');
|
|
9
|
+
var mobile_Component_mobile = require('./mobile/Component.mobile.js');
|
|
10
10
|
require('@alfalab/core-components-picker-button/cssm/desktop');
|
|
11
11
|
require('./field/Component.js');
|
|
12
12
|
require('classnames');
|
|
@@ -23,7 +23,7 @@ var CustomPickerButtonResponsive = React.forwardRef(function (_a, ref) {
|
|
|
23
23
|
var OptionsList = _a.OptionsList, onScroll = _a.onScroll, footer = _a.footer, swipeable = _a.swipeable, bottomSheetProps = _a.bottomSheetProps, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["OptionsList", "onScroll", "footer", "swipeable", "bottomSheetProps", "breakpoint"]);
|
|
24
24
|
var query = "(min-width: ".concat(breakpoint, "px)");
|
|
25
25
|
var isDesktop = coreComponentsMq.useMatchMedia(query)[0];
|
|
26
|
-
return isDesktop ? (React__default.default.createElement(
|
|
26
|
+
return isDesktop ? (React__default.default.createElement(desktop_Component_desktop.CustomPickerButtonDesktop, tslib.__assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React__default.default.createElement(mobile_Component_mobile.CustomPickerButtonMobile, tslib.__assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
exports.CustomPickerButtonResponsive = CustomPickerButtonResponsive;
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var desktop = require('@alfalab/core-components-picker-button/cssm/desktop');
|
|
8
|
-
var field_Component = require('
|
|
8
|
+
var field_Component = require('../field/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-custom-button/cssm');
|
|
11
11
|
require('@alfalab/core-components-picker-button/cssm/shared');
|
|
12
|
-
require('
|
|
12
|
+
require('../field/index.module.css');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
15
|
|
package/cssm/desktop/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
2
2
|
export {};
|
package/cssm/desktop/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var desktop_Component_desktop = require('./Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/cssm/desktop');
|
|
@@ -14,4 +14,4 @@ require('../field/index.module.css');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.CustomPickerButtonDesktop =
|
|
17
|
+
exports.CustomPickerButtonDesktop = desktop_Component_desktop.CustomPickerButtonDesktop;
|
package/cssm/index.js
CHANGED
|
@@ -6,14 +6,14 @@ var Component_responsive = require('./Component.responsive.js');
|
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-mq/cssm');
|
|
9
|
-
require('./Component.desktop.js');
|
|
9
|
+
require('./desktop/Component.desktop.js');
|
|
10
10
|
require('@alfalab/core-components-picker-button/cssm/desktop');
|
|
11
11
|
require('./field/Component.js');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@alfalab/core-components-custom-button/cssm');
|
|
14
14
|
require('@alfalab/core-components-picker-button/cssm/shared');
|
|
15
15
|
require('./field/index.module.css');
|
|
16
|
-
require('./Component.mobile.js');
|
|
16
|
+
require('./mobile/Component.mobile.js');
|
|
17
17
|
require('@alfalab/core-components-picker-button/cssm/mobile');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var mobile = require('@alfalab/core-components-picker-button/cssm/mobile');
|
|
8
|
-
var field_Component = require('
|
|
8
|
+
var field_Component = require('../field/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-custom-button/cssm');
|
|
11
11
|
require('@alfalab/core-components-picker-button/cssm/shared');
|
|
12
|
-
require('
|
|
12
|
+
require('../field/index.module.css');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
15
|
|
package/cssm/mobile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "./Component.mobile";
|
|
2
2
|
export {};
|
package/cssm/mobile/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var mobile_Component_mobile = require('./Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/cssm/mobile');
|
|
@@ -14,4 +14,4 @@ require('../field/index.module.css');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.CustomPickerButtonMobile =
|
|
17
|
+
exports.CustomPickerButtonMobile = mobile_Component_mobile.CustomPickerButtonMobile;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var desktop = require('@alfalab/core-components-picker-button/desktop');
|
|
8
|
-
var field_Component = require('
|
|
8
|
+
var field_Component = require('../field/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-custom-button');
|
|
11
11
|
require('@alfalab/core-components-picker-button/shared');
|
package/desktop/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
2
2
|
export {};
|
package/desktop/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var desktop_Component_desktop = require('./Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/desktop');
|
|
@@ -13,4 +13,4 @@ require('@alfalab/core-components-picker-button/shared');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.CustomPickerButtonDesktop =
|
|
16
|
+
exports.CustomPickerButtonDesktop = desktop_Component_desktop.CustomPickerButtonDesktop;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
4
|
-
import { CustomPickerButtonDesktopProps } from "./
|
|
4
|
+
import { CustomPickerButtonDesktopProps } from "./desktop/index";
|
|
5
5
|
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
6
6
|
/**
|
|
7
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
@@ -9,7 +9,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
|
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
13
13
|
/**
|
|
14
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
15
15
|
* @default 1024
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { useMatchMedia } from '@alfalab/core-components-mq/esm';
|
|
4
|
-
import { CustomPickerButtonDesktop } from './Component.desktop.js';
|
|
5
|
-
import { CustomPickerButtonMobile } from './Component.mobile.js';
|
|
4
|
+
import { CustomPickerButtonDesktop } from './desktop/Component.desktop.js';
|
|
5
|
+
import { CustomPickerButtonMobile } from './mobile/Component.mobile.js';
|
|
6
6
|
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
7
7
|
import './field/Component.js';
|
|
8
8
|
import 'classnames';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { PickerButtonDesktop } from '@alfalab/core-components-picker-button/esm/desktop';
|
|
4
|
-
import { Field } from '
|
|
4
|
+
import { Field } from '../field/Component.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-custom-button/esm';
|
|
7
7
|
import '@alfalab/core-components-picker-button/esm/shared';
|
package/esm/desktop/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
2
2
|
export {};
|
package/esm/desktop/index.js
CHANGED
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_da8sq","addonsContainer":"custom-picker-button__addonsContainer_da8sq","showControlIcon":"custom-picker-button__showControlIcon_da8sq","open":"custom-picker-button__open_da8sq"};
|
|
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: 7f9cf */
|
|
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_da8sq {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_da8sq {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_da8sq.custom-picker-button__showControlIcon_da8sq {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_da8sq {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
package/esm/index.js
CHANGED
|
@@ -2,11 +2,11 @@ export { CustomPickerButtonResponsive as CustomPickerButton } from './Component.
|
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@alfalab/core-components-mq/esm';
|
|
5
|
-
import './Component.desktop.js';
|
|
5
|
+
import './desktop/Component.desktop.js';
|
|
6
6
|
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
7
7
|
import './field/Component.js';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '@alfalab/core-components-custom-button/esm';
|
|
10
10
|
import '@alfalab/core-components-picker-button/esm/shared';
|
|
11
|
-
import './Component.mobile.js';
|
|
11
|
+
import './mobile/Component.mobile.js';
|
|
12
12
|
import '@alfalab/core-components-picker-button/esm/mobile';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { PickerButtonMobile } from '@alfalab/core-components-picker-button/esm/mobile';
|
|
4
|
-
import { Field } from '
|
|
4
|
+
import { Field } from '../field/Component.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-custom-button/esm';
|
|
7
7
|
import '@alfalab/core-components-picker-button/esm/shared';
|
package/esm/mobile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "./Component.mobile";
|
|
2
2
|
export {};
|
package/esm/mobile/index.js
CHANGED
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_da8sq","addonsContainer":"custom-picker-button__addonsContainer_da8sq","showControlIcon":"custom-picker-button__showControlIcon_da8sq","open":"custom-picker-button__open_da8sq"};
|
|
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: 7f9cf */
|
|
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_da8sq {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_da8sq {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_da8sq.custom-picker-button__showControlIcon_da8sq {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_da8sq {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
package/index.js
CHANGED
|
@@ -6,13 +6,13 @@ var Component_responsive = require('./Component.responsive.js');
|
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-mq');
|
|
9
|
-
require('./Component.desktop.js');
|
|
9
|
+
require('./desktop/Component.desktop.js');
|
|
10
10
|
require('@alfalab/core-components-picker-button/desktop');
|
|
11
11
|
require('./field/Component.js');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@alfalab/core-components-custom-button');
|
|
14
14
|
require('@alfalab/core-components-picker-button/shared');
|
|
15
|
-
require('./Component.mobile.js');
|
|
15
|
+
require('./mobile/Component.mobile.js');
|
|
16
16
|
require('@alfalab/core-components-picker-button/mobile');
|
|
17
17
|
|
|
18
18
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var mobile = require('@alfalab/core-components-picker-button/mobile');
|
|
8
|
-
var field_Component = require('
|
|
8
|
+
var field_Component = require('../field/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-custom-button');
|
|
11
11
|
require('@alfalab/core-components-picker-button/shared');
|
package/mobile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "./Component.mobile";
|
|
2
2
|
export {};
|
package/mobile/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var mobile_Component_mobile = require('./Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-picker-button/mobile');
|
|
@@ -13,4 +13,4 @@ require('@alfalab/core-components-picker-button/shared');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.CustomPickerButtonMobile =
|
|
16
|
+
exports.CustomPickerButtonMobile = mobile_Component_mobile.CustomPickerButtonMobile;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
4
|
-
import { CustomPickerButtonDesktopProps } from "./
|
|
4
|
+
import { CustomPickerButtonDesktopProps } from "./desktop/index";
|
|
5
5
|
type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
6
6
|
/**
|
|
7
7
|
* Контрольная точка, с нее начинается desktop версия
|
|
@@ -9,7 +9,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
|
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/
|
|
12
|
+
declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/src/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<import("packages/custom-button").CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
13
13
|
/**
|
|
14
14
|
* Контрольная точка, с нее начинается desktop версия
|
|
15
15
|
* @default 1024
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { useMatchMedia } from '@alfalab/core-components-mq/modern';
|
|
3
|
-
import { CustomPickerButtonDesktop } from './Component.desktop.js';
|
|
4
|
-
import { CustomPickerButtonMobile } from './Component.mobile.js';
|
|
3
|
+
import { CustomPickerButtonDesktop } from './desktop/Component.desktop.js';
|
|
4
|
+
import { CustomPickerButtonMobile } from './mobile/Component.mobile.js';
|
|
5
5
|
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import './field/Component.js';
|
|
7
7
|
import 'classnames';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { PickerButtonDesktop } from '@alfalab/core-components-picker-button/modern/desktop';
|
|
3
|
-
import { Field } from '
|
|
3
|
+
import { Field } from '../field/Component.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-custom-button/modern';
|
|
6
6
|
import '@alfalab/core-components-picker-button/modern/shared';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "./Component.desktop";
|
|
2
2
|
export {};
|
package/modern/desktop/index.js
CHANGED
|
@@ -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_da8sq","addonsContainer":"custom-picker-button__addonsContainer_da8sq","showControlIcon":"custom-picker-button__showControlIcon_da8sq","open":"custom-picker-button__open_da8sq"};
|
|
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: 7f9cf */
|
|
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_da8sq {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_da8sq {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_da8sq.custom-picker-button__showControlIcon_da8sq {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_da8sq {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
package/modern/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { CustomPickerButtonResponsive as CustomPickerButton } from './Component.responsive.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-mq/modern';
|
|
4
|
-
import './Component.desktop.js';
|
|
4
|
+
import './desktop/Component.desktop.js';
|
|
5
5
|
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import './field/Component.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@alfalab/core-components-custom-button/modern';
|
|
9
9
|
import '@alfalab/core-components-picker-button/modern/shared';
|
|
10
|
-
import './Component.mobile.js';
|
|
10
|
+
import './mobile/Component.mobile.js';
|
|
11
11
|
import '@alfalab/core-components-picker-button/modern/mobile';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { PickerButtonMobile } from '@alfalab/core-components-picker-button/modern/mobile';
|
|
3
|
-
import { Field } from '
|
|
3
|
+
import { Field } from '../field/Component.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-custom-button/modern';
|
|
6
6
|
import '@alfalab/core-components-picker-button/modern/shared';
|
package/modern/mobile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "./Component.mobile";
|
|
2
2
|
export {};
|
package/modern/mobile/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-custom-picker-button",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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.3.
|
|
19
|
-
"@alfalab/core-components-custom-button": "^3.3.
|
|
18
|
+
"@alfalab/core-components-picker-button": "^11.3.3",
|
|
19
|
+
"@alfalab/core-components-custom-button": "^3.3.10",
|
|
20
20
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
21
|
-
"@alfalab/core-components-select": "^16.0.
|
|
21
|
+
"@alfalab/core-components-select": "^16.0.3",
|
|
22
22
|
"classnames": "^2.3.1",
|
|
23
23
|
"tslib": "^2.4.0"
|
|
24
24
|
}
|
|
@@ -6,8 +6,8 @@ import type {
|
|
|
6
6
|
BottomSheetSelectMobileProps,
|
|
7
7
|
} from '@alfalab/core-components-select/shared';
|
|
8
8
|
|
|
9
|
-
import { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from './
|
|
10
|
-
import { CustomPickerButtonMobile } from './
|
|
9
|
+
import { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from './desktop';
|
|
10
|
+
import { CustomPickerButtonMobile } from './mobile';
|
|
11
11
|
|
|
12
12
|
export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps &
|
|
13
13
|
AdditionalMobileProps &
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
PickerButtonDesktopProps,
|
|
7
7
|
} from '@alfalab/core-components-picker-button/desktop';
|
|
8
8
|
|
|
9
|
-
import { Field as DefaultField } from '
|
|
9
|
+
import { Field as DefaultField } from '../field';
|
|
10
10
|
|
|
11
11
|
const DEFAULT_BUTTON_COLOR = '#FF45C3';
|
|
12
12
|
const DEFAULT_CONTENT_COLOR = 'white';
|
package/src/desktop/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from '
|
|
1
|
+
export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from './Component.desktop';
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
PickerButtonMobileProps,
|
|
7
7
|
} from '@alfalab/core-components-picker-button/mobile';
|
|
8
8
|
|
|
9
|
-
import { Field as DefaultField } from '
|
|
9
|
+
import { Field as DefaultField } from '../field';
|
|
10
10
|
|
|
11
11
|
const DEFAULT_BUTTON_COLOR = '#FF45C3';
|
|
12
12
|
const DEFAULT_CONTENT_COLOR = 'white';
|
package/src/mobile/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from '
|
|
1
|
+
export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from './Component.mobile';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|