@alfalab/core-components-custom-picker-button 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/Component.responsive.d.ts +3 -2
  2. package/Component.responsive.js +3 -3
  3. package/cssm/Component.responsive.d.ts +3 -2
  4. package/cssm/Component.responsive.js +3 -3
  5. package/cssm/{Component.desktop.js → desktop/Component.desktop.js} +2 -2
  6. package/cssm/desktop/index.d.ts +1 -1
  7. package/cssm/desktop/index.js +2 -2
  8. package/cssm/index.js +2 -2
  9. package/cssm/{Component.mobile.js → mobile/Component.mobile.js} +2 -2
  10. package/cssm/mobile/index.d.ts +1 -1
  11. package/cssm/mobile/index.js +2 -2
  12. package/{Component.desktop.js → desktop/Component.desktop.js} +1 -1
  13. package/desktop/index.d.ts +1 -1
  14. package/desktop/index.js +2 -2
  15. package/esm/Component.responsive.d.ts +3 -2
  16. package/esm/Component.responsive.js +2 -2
  17. package/esm/{Component.desktop.js → desktop/Component.desktop.js} +1 -1
  18. package/esm/desktop/index.d.ts +1 -1
  19. package/esm/desktop/index.js +1 -1
  20. package/esm/field/Component.js +1 -1
  21. package/esm/field/index.css +5 -5
  22. package/esm/index.js +2 -2
  23. package/esm/{Component.mobile.js → mobile/Component.mobile.js} +1 -1
  24. package/esm/mobile/index.d.ts +1 -1
  25. package/esm/mobile/index.js +1 -1
  26. package/field/Component.js +1 -1
  27. package/field/index.css +5 -5
  28. package/index.js +2 -2
  29. package/{Component.mobile.js → mobile/Component.mobile.js} +1 -1
  30. package/mobile/index.d.ts +1 -1
  31. package/mobile/index.js +2 -2
  32. package/modern/Component.responsive.d.ts +3 -2
  33. package/modern/Component.responsive.js +2 -2
  34. package/modern/{Component.desktop.js → desktop/Component.desktop.js} +1 -1
  35. package/modern/desktop/index.d.ts +1 -1
  36. package/modern/desktop/index.js +1 -1
  37. package/modern/field/Component.js +1 -1
  38. package/modern/field/index.css +5 -5
  39. package/modern/index.js +2 -2
  40. package/modern/{Component.mobile.js → mobile/Component.mobile.js} +1 -1
  41. package/modern/mobile/index.d.ts +1 -1
  42. package/modern/mobile/index.js +1 -1
  43. package/package.json +4 -4
  44. package/src/Component.responsive.tsx +4 -2
  45. package/src/{Component.desktop.tsx → desktop/Component.desktop.tsx} +1 -1
  46. package/src/desktop/index.ts +1 -1
  47. package/src/{Component.mobile.tsx → mobile/Component.mobile.tsx} +1 -1
  48. package/src/mobile/index.ts +1 -1
  49. /package/{Component.desktop.d.ts → cssm/desktop/Component.desktop.d.ts} +0 -0
  50. /package/{Component.mobile.d.ts → cssm/mobile/Component.mobile.d.ts} +0 -0
  51. /package/{cssm → desktop}/Component.desktop.d.ts +0 -0
  52. /package/esm/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +0 -0
  53. /package/{cssm → esm/mobile}/Component.mobile.d.ts +0 -0
  54. /package/{esm → mobile}/Component.mobile.d.ts +0 -0
  55. /package/modern/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +0 -0
  56. /package/modern/{Component.mobile.d.ts → mobile/Component.mobile.d.ts} +0 -0
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
+ import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
4
- import { CustomPickerButtonDesktopProps } from "./Component.desktop";
5
+ import { CustomPickerButtonDesktopProps } from "./desktop/index";
5
6
  type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
7
  /**
7
8
  * Контрольная точка, с нее начинается desktop версия
@@ -9,7 +10,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
9
10
  */
10
11
  breakpoint?: number;
11
12
  };
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 & {
13
+ declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
13
14
  /**
14
15
  * Контрольная точка, с нее начинается desktop версия
15
16
  * @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');
8
- var Component_desktop = require('./Component.desktop.js');
9
- var Component_mobile = require('./Component.mobile.js');
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(Component_desktop.CustomPickerButtonDesktop, tslib.__assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React__default.default.createElement(Component_mobile.CustomPickerButtonMobile, tslib.__assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
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,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
+ import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
4
- import { CustomPickerButtonDesktopProps } from "./Component.desktop";
5
+ import { CustomPickerButtonDesktopProps } from "./desktop/index";
5
6
  type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
7
  /**
7
8
  * Контрольная точка, с нее начинается desktop версия
@@ -9,7 +10,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
9
10
  */
10
11
  breakpoint?: number;
11
12
  };
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 & {
13
+ declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
13
14
  /**
14
15
  * Контрольная точка, с нее начинается desktop версия
15
16
  * @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 Component_desktop = require('./Component.desktop.js');
9
- var Component_mobile = require('./Component.mobile.js');
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(Component_desktop.CustomPickerButtonDesktop, tslib.__assign({ ref: ref, OptionsList: OptionsList, onScroll: onScroll }, restProps))) : (React__default.default.createElement(Component_mobile.CustomPickerButtonMobile, tslib.__assign({ ref: ref, footer: footer, swipeable: swipeable, bottomSheetProps: bottomSheetProps }, restProps)));
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('./field/Component.js');
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('./field/index.module.css');
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
 
@@ -1,2 +1,2 @@
1
- export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "../Component.desktop";
1
+ export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "./Component.desktop";
2
2
  export {};
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Component_desktop = require('../Component.desktop.js');
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 = Component_desktop.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('./field/Component.js');
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('./field/index.module.css');
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
 
@@ -1,2 +1,2 @@
1
- export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "../Component.mobile";
1
+ export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "./Component.mobile";
2
2
  export {};
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Component_mobile = require('../Component.mobile.js');
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 = Component_mobile.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('./field/Component.js');
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');
@@ -1,2 +1,2 @@
1
- export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "../Component.desktop";
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 Component_desktop = require('../Component.desktop.js');
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 = Component_desktop.CustomPickerButtonDesktop;
16
+ exports.CustomPickerButtonDesktop = desktop_Component_desktop.CustomPickerButtonDesktop;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
+ import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
4
- import { CustomPickerButtonDesktopProps } from "./Component.desktop";
5
+ import { CustomPickerButtonDesktopProps } from "./desktop/index";
5
6
  type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
7
  /**
7
8
  * Контрольная точка, с нее начинается desktop версия
@@ -9,7 +10,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
9
10
  */
10
11
  breakpoint?: number;
11
12
  };
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 & {
13
+ declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
13
14
  /**
14
15
  * Контрольная точка, с нее начинается desktop версия
15
16
  * @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 './field/Component.js';
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';
@@ -1,2 +1,2 @@
1
- export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "../Component.desktop";
1
+ export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "./Component.desktop";
2
2
  export {};
@@ -1,4 +1,4 @@
1
- export { CustomPickerButtonDesktop } from '../Component.desktop.js';
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';
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { CustomButton } from '@alfalab/core-components-custom-button/esm';
5
5
  import { getIcon } from '@alfalab/core-components-picker-button/esm/shared';
6
6
 
7
- var styles = {"iconContainer":"custom-picker-button__iconContainer_4jfde","addonsContainer":"custom-picker-button__addonsContainer_4jfde","showControlIcon":"custom-picker-button__showControlIcon_4jfde","open":"custom-picker-button__open_4jfde"};
7
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_1p862","addonsContainer":"custom-picker-button__addonsContainer_1p862","showControlIcon":"custom-picker-button__showControlIcon_1p862","open":"custom-picker-button__open_1p862"};
8
8
  require('./index.css')
9
9
 
10
10
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1z0c7 */
1
+ /* hash: 1tyfp */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_4jfde {
19
+ } .custom-picker-button__iconContainer_1p862 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_4jfde {
22
+ } .custom-picker-button__addonsContainer_1p862 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_4jfde.custom-picker-button__showControlIcon_4jfde {
24
+ } .custom-picker-button__addonsContainer_1p862.custom-picker-button__showControlIcon_1p862 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_4jfde {
26
+ } .custom-picker-button__open_1p862 {
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 './field/Component.js';
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';
@@ -1,2 +1,2 @@
1
- export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "../Component.mobile";
1
+ export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "./Component.mobile";
2
2
  export {};
@@ -1,4 +1,4 @@
1
- export { CustomPickerButtonMobile } from '../Component.mobile.js';
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';
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"iconContainer":"custom-picker-button__iconContainer_4jfde","addonsContainer":"custom-picker-button__addonsContainer_4jfde","showControlIcon":"custom-picker-button__showControlIcon_4jfde","open":"custom-picker-button__open_4jfde"};
16
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_1p862","addonsContainer":"custom-picker-button__addonsContainer_1p862","showControlIcon":"custom-picker-button__showControlIcon_1p862","open":"custom-picker-button__open_1p862"};
17
17
  require('./index.css')
18
18
 
19
19
  var Field = function (_a) {
package/field/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1z0c7 */
1
+ /* hash: 1tyfp */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_4jfde {
19
+ } .custom-picker-button__iconContainer_1p862 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_4jfde {
22
+ } .custom-picker-button__addonsContainer_1p862 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_4jfde.custom-picker-button__showControlIcon_4jfde {
24
+ } .custom-picker-button__addonsContainer_1p862.custom-picker-button__showControlIcon_1p862 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_4jfde {
26
+ } .custom-picker-button__open_1p862 {
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('./field/Component.js');
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 "../Component.mobile";
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 Component_mobile = require('../Component.mobile.js');
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 = Component_mobile.CustomPickerButtonMobile;
16
+ exports.CustomPickerButtonMobile = mobile_Component_mobile.CustomPickerButtonMobile;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
+ import { CustomButtonProps } from "@alfalab/core-components-custom-button";
3
4
  import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
4
- import { CustomPickerButtonDesktopProps } from "./Component.desktop";
5
+ import { CustomPickerButtonDesktopProps } from "./desktop/index";
5
6
  type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & AdditionalMobileProps & BottomSheetSelectMobileProps & {
6
7
  /**
7
8
  * Контрольная точка, с нее начинается desktop версия
@@ -9,7 +10,7 @@ type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps & Additi
9
10
  */
10
11
  breakpoint?: number;
11
12
  };
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 & {
13
+ declare const CustomPickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-picker-button/desktop").PickerButtonDesktopProps, "view" | "colors"> & Pick<CustomButtonProps, "backgroundColor" | "contentColor" | "stateType"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
13
14
  /**
14
15
  * Контрольная точка, с нее начинается desktop версия
15
16
  * @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 './field/Component.js';
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 "../Component.desktop";
1
+ export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from "./Component.desktop";
2
2
  export {};
@@ -1,4 +1,4 @@
1
- export { CustomPickerButtonDesktop } from '../Component.desktop.js';
1
+ export { CustomPickerButtonDesktop } from './Component.desktop.js';
2
2
  import 'react';
3
3
  import '@alfalab/core-components-picker-button/modern/desktop';
4
4
  import '../field/Component.js';
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { CustomButton } from '@alfalab/core-components-custom-button/modern';
4
4
  import { getIcon } from '@alfalab/core-components-picker-button/modern/shared';
5
5
 
6
- const styles = {"iconContainer":"custom-picker-button__iconContainer_4jfde","addonsContainer":"custom-picker-button__addonsContainer_4jfde","showControlIcon":"custom-picker-button__showControlIcon_4jfde","open":"custom-picker-button__open_4jfde"};
6
+ const styles = {"iconContainer":"custom-picker-button__iconContainer_1p862","addonsContainer":"custom-picker-button__addonsContainer_1p862","showControlIcon":"custom-picker-button__showControlIcon_1p862","open":"custom-picker-button__open_1p862"};
7
7
  require('./index.css')
8
8
 
9
9
  const Field = ({ buttonSize = 'm', buttonVariant = 'default', backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow = true, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1z0c7 */
1
+ /* hash: 1tyfp */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_4jfde {
19
+ } .custom-picker-button__iconContainer_1p862 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_4jfde {
22
+ } .custom-picker-button__addonsContainer_1p862 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_4jfde.custom-picker-button__showControlIcon_4jfde {
24
+ } .custom-picker-button__addonsContainer_1p862.custom-picker-button__showControlIcon_1p862 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_4jfde {
26
+ } .custom-picker-button__open_1p862 {
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 './field/Component.js';
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 { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "../Component.mobile";
1
+ export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from "./Component.mobile";
2
2
  export {};
@@ -1,4 +1,4 @@
1
- export { CustomPickerButtonMobile } from '../Component.mobile.js';
1
+ export { CustomPickerButtonMobile } from './Component.mobile.js';
2
2
  import 'react';
3
3
  import '@alfalab/core-components-picker-button/modern/mobile';
4
4
  import '../field/Component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-custom-picker-button",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
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.2",
19
- "@alfalab/core-components-custom-button": "^3.3.9",
18
+ "@alfalab/core-components-picker-button": "^11.4.0",
19
+ "@alfalab/core-components-custom-button": "^3.4.0",
20
20
  "@alfalab/core-components-mq": "^4.2.0",
21
- "@alfalab/core-components-select": "^16.0.2",
21
+ "@alfalab/core-components-select": "^17.0.0",
22
22
  "classnames": "^2.3.1",
23
23
  "tslib": "^2.4.0"
24
24
  }
@@ -1,13 +1,15 @@
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';
3
5
  import { useMatchMedia } from '@alfalab/core-components-mq';
4
6
  import type {
5
7
  AdditionalMobileProps,
6
8
  BottomSheetSelectMobileProps,
7
9
  } from '@alfalab/core-components-select/shared';
8
10
 
9
- import { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from './Component.desktop';
10
- import { CustomPickerButtonMobile } from './Component.mobile';
11
+ import { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from './desktop';
12
+ import { CustomPickerButtonMobile } from './mobile';
11
13
 
12
14
  export type CustomPickerButtonResponsiveProps = CustomPickerButtonDesktopProps &
13
15
  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 './field';
9
+ import { Field as DefaultField } from '../field';
10
10
 
11
11
  const DEFAULT_BUTTON_COLOR = '#FF45C3';
12
12
  const DEFAULT_CONTENT_COLOR = 'white';
@@ -1 +1 @@
1
- export { CustomPickerButtonDesktop, CustomPickerButtonDesktopProps } from '../Component.desktop';
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 './field';
9
+ import { Field as DefaultField } from '../field';
10
10
 
11
11
  const DEFAULT_BUTTON_COLOR = '#FF45C3';
12
12
  const DEFAULT_CONTENT_COLOR = 'white';
@@ -1 +1 @@
1
- export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from '../Component.mobile';
1
+ export { CustomPickerButtonMobile, CustomPickerButtonMobileProps } from './Component.mobile';
File without changes
File without changes
File without changes