@ornikar/kitt-universal 31.1.0 → 31.1.2-canary.31eec21cbe0c2b92255fb1fa14d83757a05ea8b0.0
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/CHANGELOG.md +20 -0
- package/dist/definitions/Button/Button.d.ts +5 -0
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonGauge.d.ts +9 -0
- package/dist/definitions/Button/ButtonGauge.d.ts.map +1 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +3 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLinkWebWrapper.web.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +81 -6
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +81 -6
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +82 -5
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +20 -2
- package/dist/index-node-22.17.cjs.web.js +83 -7
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +83 -6
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +20 -2
- package/dist/index-node-22.17.es.web.mjs +84 -8
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +84 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +84 -8
- package/dist/index.es.web.js.map +1 -1
- package/dist/styles.css +20 -2
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [31.1.2-canary.31eec21cbe0c2b92255fb1fa14d83757a05ea8b0.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@31.1.1...@ornikar/kitt-universal@31.1.2-canary.31eec21cbe0c2b92255fb1fa14d83757a05ea8b0.0) (2025-11-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **kitt-universal/Button:** add timer gauge option OSE-21414 ([#2771](https://github.com/ornikar/kitt/issues/2771)) ([c1f1e27](https://github.com/ornikar/kitt/commit/c1f1e27fe5dd78718338bab01178bca075c4ae07))
|
|
12
|
+
* remove linaria usage OSE-18326 ([31eec21](https://github.com/ornikar/kitt/commit/31eec21cbe0c2b92255fb1fa14d83757a05ea8b0))
|
|
13
|
+
* upgrade RTL [OSE-18110] ([#2769](https://github.com/ornikar/kitt/issues/2769)) ([56bcbe4](https://github.com/ornikar/kitt/commit/56bcbe4d1933bb4ae099f85b546790ba537d18f7))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [31.1.1](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@31.1.0...@ornikar/kitt-universal@31.1.1) (2025-11-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **kitt-universal:** update code to use isExpanded props without bug OSE-21576 ([#2766](https://github.com/ornikar/kitt/issues/2766)) ([7e5dc23](https://github.com/ornikar/kitt/commit/7e5dc23af00e53c46f70bc810b4c16f03ca3429b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [31.1.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@31.0.1...@ornikar/kitt-universal@31.1.0) (2025-11-21)
|
|
7
27
|
|
|
8
28
|
|
|
@@ -14,6 +14,11 @@ export interface ButtonProps extends Pick<PressableProps, 'onPress' | 'onFocus'
|
|
|
14
14
|
iconPosition?: IconPosition;
|
|
15
15
|
withBadge?: boolean;
|
|
16
16
|
badgeCount?: number;
|
|
17
|
+
timerAttrs?: {
|
|
18
|
+
duration: number;
|
|
19
|
+
running: boolean;
|
|
20
|
+
onEnded: () => void;
|
|
21
|
+
};
|
|
17
22
|
testID?: PressableProps['testID'];
|
|
18
23
|
href?: PressableProps['href'];
|
|
19
24
|
hrefAttrs?: PressableProps['hrefAttrs'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AAS5G,KAAK,YAAY,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC3F,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACzE,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,YAAY,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,MAAM,uOAoGlB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface ButtonGaugeProps {
|
|
3
|
+
duration: number;
|
|
4
|
+
running: boolean;
|
|
5
|
+
onEnded: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ButtonGauge({ duration, running, onEnded }: ButtonGaugeProps): ReactNode;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ButtonGauge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGauge.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonGauge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,gBAAgB,GAAG,SAAS,CAgFvF"}
|
|
@@ -27,6 +27,9 @@ export interface NavigationBottomSheetProps {
|
|
|
27
27
|
* Native only: maximum dynamic content size for the bottom sheet.
|
|
28
28
|
*/
|
|
29
29
|
maxDynamicContentSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Callback called when the bottom sheet is closed.
|
|
32
|
+
*/
|
|
30
33
|
onClose?: () => void;
|
|
31
34
|
}
|
|
32
35
|
export declare function NavigationBottomSheet({ children, hasScrollView, snapPoints, maxDynamicContentSize, isVisible, isExpanded, onClose, }: NavigationBottomSheetProps): ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/NavigationBottomSheet/NavigationBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"NavigationBottomSheet.d.ts","sourceRoot":"","sources":["../../../src/NavigationBottomSheet/NavigationBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,SAAS,EACT,UAAkB,EAClB,OAAO,GACR,EAAE,0BAA0B,GAAG,SAAS,CAgCxC;yBAxCe,qBAAqB;;;;;AA0CrC;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,cAAc;CAAG;AAC3E,iBAAS,2BAA2B,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gCAAgC,GAAG,SAAS,CAErG;AAED,MAAM,WAAW,8BAA+B,SAAQ,wBAAwB;CAAG;AAEnF,iBAAS,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,GAAG,SAAS,CAUnF;AAED,MAAM,WAAW,gCAAiC,SAAQ,0BAA0B;CAAG;AAEvF,iBAAS,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,GAAG,SAAS,CAEvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypographyLinkWebWrapper.web.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyLinkWebWrapper.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TypographyLinkWebWrapper.web.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyLinkWebWrapper.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAGhF,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,6BAA6B,GAAG,SAAS,CAM/G"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import React, { useContext, createContext, forwardRef, useMemo, cloneElement, useRef,
|
|
3
|
+
import React, { useContext, createContext, forwardRef, useMemo, cloneElement, useState, useRef, useCallback, useLayoutEffect, useEffect, Children, useReducer, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useBreakpointValue as useBreakpointValue$1, useSx, Text, Input, NativeBaseProvider, extendTheme, useMediaQuery } from 'native-base';
|
|
5
5
|
export { useClipboard, useContrastText, useMediaQuery, useSx, useToken } from 'native-base';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -3634,6 +3634,79 @@ function ButtonContent(_ref) {
|
|
|
3634
3634
|
});
|
|
3635
3635
|
}
|
|
3636
3636
|
|
|
3637
|
+
function ButtonGauge({
|
|
3638
|
+
duration,
|
|
3639
|
+
running,
|
|
3640
|
+
onEnded
|
|
3641
|
+
}) {
|
|
3642
|
+
const [translate, setTranslate] = useState(100);
|
|
3643
|
+
const startTimeRef = useRef(0);
|
|
3644
|
+
const pauseTimeRef = useRef(0);
|
|
3645
|
+
const rafRef = useRef(undefined);
|
|
3646
|
+
const distance = 100;
|
|
3647
|
+
const draw = useCallback(timestamp => {
|
|
3648
|
+
const timeElapsedSinceStart = timestamp - startTimeRef.current;
|
|
3649
|
+
// Since the time between frame is not reliable and regular, we have to
|
|
3650
|
+
// limit the progress to prevent overflows
|
|
3651
|
+
const safeProgress = Math.min(distance * timeElapsedSinceStart / duration, distance);
|
|
3652
|
+
setTranslate(safeProgress);
|
|
3653
|
+
if (safeProgress < distance) {
|
|
3654
|
+
if (!rafRef) return;
|
|
3655
|
+
rafRef.current = requestAnimationFrame(draw);
|
|
3656
|
+
return;
|
|
3657
|
+
}
|
|
3658
|
+
onEnded();
|
|
3659
|
+
if (rafRef.current) {
|
|
3660
|
+
cancelAnimationFrame(rafRef.current);
|
|
3661
|
+
}
|
|
3662
|
+
},
|
|
3663
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3664
|
+
[]);
|
|
3665
|
+
useLayoutEffect(() => {
|
|
3666
|
+
if (running) {
|
|
3667
|
+
// Resuming from pause
|
|
3668
|
+
if (pauseTimeRef.current > 0) {
|
|
3669
|
+
startTimeRef.current += global.performance.now() - pauseTimeRef.current;
|
|
3670
|
+
draw(global.performance.now());
|
|
3671
|
+
return;
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
// First launch
|
|
3675
|
+
startTimeRef.current = global.performance.now();
|
|
3676
|
+
draw(startTimeRef.current);
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
// On pause
|
|
3680
|
+
if (!running && rafRef.current) {
|
|
3681
|
+
pauseTimeRef.current = global.performance.now();
|
|
3682
|
+
cancelAnimationFrame(rafRef.current);
|
|
3683
|
+
}
|
|
3684
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3685
|
+
}, [running]);
|
|
3686
|
+
useEffect(() => {
|
|
3687
|
+
return () => {
|
|
3688
|
+
if (rafRef.current) {
|
|
3689
|
+
cancelAnimationFrame(rafRef.current);
|
|
3690
|
+
}
|
|
3691
|
+
};
|
|
3692
|
+
}, []);
|
|
3693
|
+
return /*#__PURE__*/jsx(View, {
|
|
3694
|
+
position: "absolute",
|
|
3695
|
+
left: 0,
|
|
3696
|
+
right: 0,
|
|
3697
|
+
top: 0,
|
|
3698
|
+
bottom: 0,
|
|
3699
|
+
overflow: "hidden",
|
|
3700
|
+
alignItems: "flex-end",
|
|
3701
|
+
borderRadius: "kitt.button.borderRadius",
|
|
3702
|
+
children: /*#__PURE__*/jsx(View, {
|
|
3703
|
+
width: `${translate}%`,
|
|
3704
|
+
height: "100%",
|
|
3705
|
+
backgroundColor: "kitt.palettes.deepPurple['white-alpha.20']"
|
|
3706
|
+
})
|
|
3707
|
+
});
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3637
3710
|
function ButtonPadding({
|
|
3638
3711
|
children,
|
|
3639
3712
|
size,
|
|
@@ -3724,6 +3797,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3724
3797
|
hrefAttrs,
|
|
3725
3798
|
withBadge,
|
|
3726
3799
|
badgeCount,
|
|
3800
|
+
timerAttrs,
|
|
3727
3801
|
accessibilityRole: _accessibilityRole = 'button',
|
|
3728
3802
|
innerSpacing: _innerSpacing = 'center',
|
|
3729
3803
|
isHoveredInternal,
|
|
@@ -3771,7 +3845,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3771
3845
|
isHovered,
|
|
3772
3846
|
isPressed,
|
|
3773
3847
|
isFocused
|
|
3774
|
-
}) => /*#__PURE__*/
|
|
3848
|
+
}) => /*#__PURE__*/jsxs(AnimatedContainer$2, {
|
|
3775
3849
|
animatedStyles: animatedStyles,
|
|
3776
3850
|
type: _type,
|
|
3777
3851
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -3781,7 +3855,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3781
3855
|
size: _size,
|
|
3782
3856
|
isIconOnly: isIconOnly,
|
|
3783
3857
|
isStretch: stretch,
|
|
3784
|
-
children: /*#__PURE__*/jsxs(ButtonPadding, {
|
|
3858
|
+
children: [timerAttrs ? /*#__PURE__*/jsx(ButtonGauge, _objectSpread({}, timerAttrs)) : null, /*#__PURE__*/jsxs(ButtonPadding, {
|
|
3785
3859
|
size: _size,
|
|
3786
3860
|
isIconOnly: isIconOnly,
|
|
3787
3861
|
children: [/*#__PURE__*/jsx(ButtonContent, {
|
|
@@ -3803,7 +3877,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3803
3877
|
isHovered: isHovered,
|
|
3804
3878
|
isPressed: isPressed
|
|
3805
3879
|
})]
|
|
3806
|
-
})
|
|
3880
|
+
})]
|
|
3807
3881
|
})
|
|
3808
3882
|
});
|
|
3809
3883
|
});
|
|
@@ -11701,7 +11775,7 @@ function NavigationBottomSheet({
|
|
|
11701
11775
|
snapPoints,
|
|
11702
11776
|
maxDynamicContentSize,
|
|
11703
11777
|
isVisible,
|
|
11704
|
-
isExpanded,
|
|
11778
|
+
isExpanded = false,
|
|
11705
11779
|
onClose
|
|
11706
11780
|
}) {
|
|
11707
11781
|
const bottomSheetRef = useBottomSheet();
|
|
@@ -11715,7 +11789,8 @@ function NavigationBottomSheet({
|
|
|
11715
11789
|
}
|
|
11716
11790
|
}, [bottomSheetRef, isVisible]);
|
|
11717
11791
|
useEffect(() => {
|
|
11718
|
-
if (isVisible
|
|
11792
|
+
if (!isVisible) return;
|
|
11793
|
+
if (isExpanded) {
|
|
11719
11794
|
var _bottomSheetRef$curre3;
|
|
11720
11795
|
(_bottomSheetRef$curre3 = bottomSheetRef.current) === null || _bottomSheetRef$curre3 === void 0 || _bottomSheetRef$curre3.expand();
|
|
11721
11796
|
} else {
|