@alfalab/core-components-custom-picker-button 2.0.6 → 2.0.8
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/{esm/component-2abb571d.d.ts → component-1a4fbd11.d.ts} +1 -1
- package/{component-2abb571d.d.ts → cssm/component-1a4fbd11.d.ts} +1 -1
- package/cssm/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
- package/cssm/index-c76d6398.d.ts +1 -1
- package/cssm/index-f12ee135.d.ts +2 -2
- package/cssm/shared-4cd3936b.d.ts +1 -1
- package/cssm/{types-92653002.d.ts → types-e40becc7.d.ts} +9 -0
- package/{modern/component-2abb571d.d.ts → esm/component-1a4fbd11.d.ts} +1 -1
- package/esm/field/Component.js +1 -1
- package/esm/field/index.css +5 -5
- package/esm/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
- package/esm/index-c76d6398.d.ts +1 -1
- package/esm/index-f12ee135.d.ts +2 -2
- package/esm/shared-4cd3936b.d.ts +1 -1
- package/esm/{types-92653002.d.ts → types-e40becc7.d.ts} +9 -0
- package/field/Component.js +1 -1
- package/field/index.css +5 -5
- package/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
- package/index-c76d6398.d.ts +1 -1
- package/index-f12ee135.d.ts +2 -2
- package/{cssm/component-2abb571d.d.ts → modern/component-1a4fbd11.d.ts} +1 -1
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +5 -5
- package/modern/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
- package/modern/index-c76d6398.d.ts +1 -1
- package/modern/index-f12ee135.d.ts +2 -2
- package/modern/shared-4cd3936b.d.ts +1 -1
- package/modern/{types-92653002.d.ts → types-e40becc7.d.ts} +9 -0
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +1 -1
- package/{types-92653002.d.ts → types-e40becc7.d.ts} +9 -0
- /package/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
- /package/cssm/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
- /package/esm/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
- /package/modern/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-e40becc7";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-e40becc7";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
|
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
|
|
|
12
12
|
declare const inputUtils: {
|
|
13
13
|
disableUserInput: typeof disableUserInput;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Возвращает true, если значение равно null или undefined
|
|
17
|
+
*/
|
|
18
|
+
declare function isNil(value: unknown): boolean;
|
|
19
|
+
declare const fnUtils: {
|
|
20
|
+
isNil: typeof isNil;
|
|
21
|
+
};
|
|
22
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
|
package/cssm/index-c76d6398.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-1a4fbd11";
|
|
2
2
|
export type { NavigationBarProps } from "./types-83e2bd9e";
|
package/cssm/index-f12ee135.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./component-
|
|
2
|
-
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-
|
|
1
|
+
export * from "./component-1a4fbd11";
|
|
2
|
+
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
|
|
3
3
|
export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
|
|
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
57
|
reset: () => void;
|
|
58
58
|
};
|
|
59
59
|
export * from "./index-ebda875c";
|
|
60
|
-
export * from "./Component-
|
|
60
|
+
export * from "./Component-1a4fbd11";
|
|
61
61
|
export * from "./Component-dd8ca091";
|
|
62
62
|
export { useSelectWithLoading, useLazyLoading };
|
|
63
63
|
export * from "./hook-8abfea97";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
2
|
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
5
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
6
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -263,5 +264,13 @@ type BottomSheetProps = {
|
|
|
263
264
|
* Вызывается при изменении положения шторки
|
|
264
265
|
*/
|
|
265
266
|
onOffsetChange?: (offset: number, percent: number) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Вызывается в начале свайпа
|
|
269
|
+
*/
|
|
270
|
+
onSwipeStart?: (event: HandledEvents) => void;
|
|
271
|
+
/**
|
|
272
|
+
* Вызывается после окончания свайпа
|
|
273
|
+
*/
|
|
274
|
+
onSwipeEnd?: (event: HandledEvents | null) => void;
|
|
266
275
|
};
|
|
267
276
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-e40becc7";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
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_1b77l","addonsContainer":"custom-picker-button__addonsContainer_1b77l","showControlIcon":"custom-picker-button__showControlIcon_1b77l","open":"custom-picker-button__open_1b77l"};
|
|
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: uihgp */
|
|
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_1b77l {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_1b77l {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_1b77l.custom-picker-button__showControlIcon_1b77l {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_1b77l {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
|
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
|
|
|
12
12
|
declare const inputUtils: {
|
|
13
13
|
disableUserInput: typeof disableUserInput;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Возвращает true, если значение равно null или undefined
|
|
17
|
+
*/
|
|
18
|
+
declare function isNil(value: unknown): boolean;
|
|
19
|
+
declare const fnUtils: {
|
|
20
|
+
isNil: typeof isNil;
|
|
21
|
+
};
|
|
22
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
|
package/esm/index-c76d6398.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-1a4fbd11";
|
|
2
2
|
export type { NavigationBarProps } from "./types-83e2bd9e";
|
package/esm/index-f12ee135.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./component-
|
|
2
|
-
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-
|
|
1
|
+
export * from "./component-1a4fbd11";
|
|
2
|
+
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
|
|
3
3
|
export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
|
package/esm/shared-4cd3936b.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
57
|
reset: () => void;
|
|
58
58
|
};
|
|
59
59
|
export * from "./index-ebda875c";
|
|
60
|
-
export * from "./Component-
|
|
60
|
+
export * from "./Component-1a4fbd11";
|
|
61
61
|
export * from "./Component-dd8ca091";
|
|
62
62
|
export { useSelectWithLoading, useLazyLoading };
|
|
63
63
|
export * from "./hook-8abfea97";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
2
|
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
5
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
6
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -263,5 +264,13 @@ type BottomSheetProps = {
|
|
|
263
264
|
* Вызывается при изменении положения шторки
|
|
264
265
|
*/
|
|
265
266
|
onOffsetChange?: (offset: number, percent: number) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Вызывается в начале свайпа
|
|
269
|
+
*/
|
|
270
|
+
onSwipeStart?: (event: HandledEvents) => void;
|
|
271
|
+
/**
|
|
272
|
+
* Вызывается после окончания свайпа
|
|
273
|
+
*/
|
|
274
|
+
onSwipeEnd?: (event: HandledEvents | null) => void;
|
|
266
275
|
};
|
|
267
276
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
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_1b77l","addonsContainer":"custom-picker-button__addonsContainer_1b77l","showControlIcon":"custom-picker-button__showControlIcon_1b77l","open":"custom-picker-button__open_1b77l"};
|
|
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: uihgp */
|
|
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_1b77l {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_1b77l {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_1b77l.custom-picker-button__showControlIcon_1b77l {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_1b77l {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
|
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
|
|
|
12
12
|
declare const inputUtils: {
|
|
13
13
|
disableUserInput: typeof disableUserInput;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Возвращает true, если значение равно null или undefined
|
|
17
|
+
*/
|
|
18
|
+
declare function isNil(value: unknown): boolean;
|
|
19
|
+
declare const fnUtils: {
|
|
20
|
+
isNil: typeof isNil;
|
|
21
|
+
};
|
|
22
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
|
package/index-c76d6398.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-1a4fbd11";
|
|
2
2
|
export type { NavigationBarProps } from "./types-83e2bd9e";
|
package/index-f12ee135.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./component-
|
|
2
|
-
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-
|
|
1
|
+
export * from "./component-1a4fbd11";
|
|
2
|
+
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
|
|
3
3
|
export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
|
|
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
|
|
|
4
4
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
5
|
import { SwipeableHandlers } from "react-swipeable";
|
|
6
6
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-
|
|
7
|
+
import { BottomSheetProps } from "./types-e40becc7";
|
|
8
8
|
type FooterProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Контент футера
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { CustomButton } from '@alfalab/core-components-custom-button/modern';
|
|
4
4
|
import { getIcon } from '@alfalab/core-components-picker-button/modern/shared';
|
|
5
5
|
|
|
6
|
-
const styles = {"iconContainer":"custom-picker-
|
|
6
|
+
const styles = {"iconContainer":"custom-picker-button__iconContainer_1b77l","addonsContainer":"custom-picker-button__addonsContainer_1b77l","showControlIcon":"custom-picker-button__showControlIcon_1b77l","open":"custom-picker-button__open_1b77l"};
|
|
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: uihgp */
|
|
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_1b77l {
|
|
20
20
|
display: flex;
|
|
21
21
|
transition: transform 0.15s ease-in-out;
|
|
22
|
-
} .custom-picker-
|
|
22
|
+
} .custom-picker-button__addonsContainer_1b77l {
|
|
23
23
|
display: flex
|
|
24
|
-
} .custom-picker-
|
|
24
|
+
} .custom-picker-button__addonsContainer_1b77l.custom-picker-button__showControlIcon_1b77l {
|
|
25
25
|
margin-right: var(--gap-2xs);
|
|
26
|
-
} .custom-picker-
|
|
26
|
+
} .custom-picker-button__open_1b77l {
|
|
27
27
|
transform: var(--arrow-transform);
|
|
28
28
|
}
|
|
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
|
|
|
12
12
|
declare const inputUtils: {
|
|
13
13
|
disableUserInput: typeof disableUserInput;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Возвращает true, если значение равно null или undefined
|
|
17
|
+
*/
|
|
18
|
+
declare function isNil(value: unknown): boolean;
|
|
19
|
+
declare const fnUtils: {
|
|
20
|
+
isNil: typeof isNil;
|
|
21
|
+
};
|
|
22
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-1a4fbd11";
|
|
2
2
|
export type { NavigationBarProps } from "./types-83e2bd9e";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./component-
|
|
2
|
-
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-
|
|
1
|
+
export * from "./component-1a4fbd11";
|
|
2
|
+
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
|
|
3
3
|
export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
|
|
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
57
|
reset: () => void;
|
|
58
58
|
};
|
|
59
59
|
export * from "./index-ebda875c";
|
|
60
|
-
export * from "./Component-
|
|
60
|
+
export * from "./Component-1a4fbd11";
|
|
61
61
|
export * from "./Component-dd8ca091";
|
|
62
62
|
export { useSelectWithLoading, useLazyLoading };
|
|
63
63
|
export * from "./hook-8abfea97";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
2
|
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
5
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
6
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -263,5 +264,13 @@ type BottomSheetProps = {
|
|
|
263
264
|
* Вызывается при изменении положения шторки
|
|
264
265
|
*/
|
|
265
266
|
onOffsetChange?: (offset: number, percent: number) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Вызывается в начале свайпа
|
|
269
|
+
*/
|
|
270
|
+
onSwipeStart?: (event: HandledEvents) => void;
|
|
271
|
+
/**
|
|
272
|
+
* Вызывается после окончания свайпа
|
|
273
|
+
*/
|
|
274
|
+
onSwipeEnd?: (event: HandledEvents | null) => void;
|
|
266
275
|
};
|
|
267
276
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-custom-picker-button",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Custom picker button component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@alfalab/core-components-picker-button": "^11.1.
|
|
39
|
-
"@alfalab/core-components-custom-button": "^3.3.
|
|
38
|
+
"@alfalab/core-components-picker-button": "^11.1.3",
|
|
39
|
+
"@alfalab/core-components-custom-button": "^3.3.4",
|
|
40
40
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
41
|
-
"@alfalab/core-components-select": "^15.1.
|
|
41
|
+
"@alfalab/core-components-select": "^15.1.3",
|
|
42
42
|
"classnames": "^2.3.1",
|
|
43
43
|
"tslib": "^2.4.0"
|
|
44
44
|
}
|
package/shared-4cd3936b.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
57
57
|
reset: () => void;
|
|
58
58
|
};
|
|
59
59
|
export * from "./index-ebda875c";
|
|
60
|
-
export * from "./Component-
|
|
60
|
+
export * from "./Component-1a4fbd11";
|
|
61
61
|
export * from "./Component-dd8ca091";
|
|
62
62
|
export { useSelectWithLoading, useLazyLoading };
|
|
63
63
|
export * from "./hook-8abfea97";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
2
|
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { HandledEvents } from 'react-swipeable/es/types';
|
|
3
4
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
5
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
6
|
import { NavigationBarProps } from "./index-c76d6398";
|
|
@@ -263,5 +264,13 @@ type BottomSheetProps = {
|
|
|
263
264
|
* Вызывается при изменении положения шторки
|
|
264
265
|
*/
|
|
265
266
|
onOffsetChange?: (offset: number, percent: number) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Вызывается в начале свайпа
|
|
269
|
+
*/
|
|
270
|
+
onSwipeStart?: (event: HandledEvents) => void;
|
|
271
|
+
/**
|
|
272
|
+
* Вызывается после окончания свайпа
|
|
273
|
+
*/
|
|
274
|
+
onSwipeEnd?: (event: HandledEvents | null) => void;
|
|
266
275
|
};
|
|
267
276
|
export { BottomSheetTitleAlign, BottomSheetProps };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|