@jamadd/react-native-template-ui 0.20.13 → 0.21.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/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +15 -10
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +82 -60
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +33 -26
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +19 -8
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +24 -13
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +35 -28
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +33 -26
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +20 -9
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
- package/lib/module/hooks/overlay.js +125 -120
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/utils/overlay/const.js +1 -3
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/overlay/func.js +2 -2
- package/lib/module/utils/overlay/func.js.map +1 -1
- package/lib/module/utils/theme/const.js +3 -1
- package/lib/module/utils/theme/const.js.map +1 -1
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts +0 -12
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -8
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -10
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -10
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +0 -8
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +0 -8
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +0 -8
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +0 -13
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +0 -9
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/text/Text.d.ts +0 -2458
- package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -12
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/Box.d.ts +0 -2328
- package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +1 -45
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/switch.d.ts +1 -20
- package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/hooks/textInput.d.ts +1 -10
- package/lib/typescript/src/hooks/textInput.d.ts.map +1 -1
- package/lib/typescript/src/hooks/theme.d.ts +1 -0
- package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
- package/lib/typescript/src/test/utils/func.d.ts +1 -0
- package/lib/typescript/src/test/utils/func.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +1 -14
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +12 -79
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/textInput.d.ts +0 -1
- package/lib/typescript/src/types/textInput.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +1 -35
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts +0 -87
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/reanimated/func.d.ts +1 -5
- package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/style/const.d.ts +0 -9
- package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/switch/const.d.ts +1 -2
- package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/const.d.ts +3 -1
- package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/restyle.d.ts +2 -2399
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/Box.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/Box.tsx"],"names":[],"mappings":"AAWA,eAAe,GAAG,CAAC"}
|
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ListAnimatedRefObj, ListRef } from '../types/list.js';
|
|
3
|
-
import type { ActionSheetInternalContextVal, ActionSheetListViewProps, ActionSheetOptionListProps, ActionSheetOptions, ActionSheetScrollViewProps, OverlayDismissActionSheetResult, OverlayOnDismiss } from '../types/overlay.js';
|
|
4
|
-
import type { ScrollViewAnimatedRefObj } from '../types/view.js';
|
|
1
|
+
import type { ListRef } from '../types/list.js';
|
|
5
2
|
export declare function useToastContext(): import("../index.js").ToastContextVal;
|
|
6
|
-
/** @internal */
|
|
7
|
-
export declare function useAlertInternalContext(): Partial<Pick<import("../index.js").AlertProps, "buttonProps"> & {
|
|
8
|
-
onDismiss: (result?: Partial<import("../index.js").OverlayDismissAlertResult>) => void;
|
|
9
|
-
}>;
|
|
10
3
|
export declare function useAlertContext(): import("../index.js").AlertContextVal;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare function useActionSheetInternalContext(): Partial<ActionSheetInternalContextVal>;
|
|
13
4
|
export declare function useActionSheetContext(): import("../index.js").ActionSheetContextVal;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export declare function useActionSheetOnDismiss(force?: boolean): (text?: string) => void;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare function useActionSheetGesture(contentGesture?: boolean): import("react-native-gesture-handler").PanGesture;
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare function useActionSheetHeaderMinHeight(): number;
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare function useActionSheetContentGesture(): import("react-native-gesture-handler").ComposedGesture;
|
|
22
5
|
export declare function useActionSheetListViewAnimatedRef<T>(): import("react-native-reanimated").AnimatedRef<ListRef<T>>;
|
|
23
6
|
export declare function useActionSheetScrollViewAnimatedRef(): import("react-native-reanimated").AnimatedRef<((props: Omit<import("react-native").ScrollViewProps, keyof {
|
|
24
7
|
ref?: React.Ref<import("react-native").ScrollViewInstance> | undefined;
|
|
@@ -29,31 +12,4 @@ export declare function useActionSheetScrollViewAnimatedRef(): import("react-nat
|
|
|
29
12
|
horizontal: boolean;
|
|
30
13
|
} | null>;
|
|
31
14
|
}>>;
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare function useActionSheetListViewRefAndOffset<T>(refObj?: ListAnimatedRefObj<T>): {
|
|
34
|
-
listViewListAnimatedRefObj: ListAnimatedRefObj<T>;
|
|
35
|
-
contentOffsetSharedVal: import("react-native-reanimated").SharedValue<number>;
|
|
36
|
-
};
|
|
37
|
-
/** @internal */
|
|
38
|
-
export declare function useActionSheetScrollViewRefAndOffset(refObj?: ScrollViewAnimatedRefObj): {
|
|
39
|
-
scrollViewAnimatedRefObj: ScrollViewAnimatedRefObj;
|
|
40
|
-
contentOffsetSharedVal: import("react-native-reanimated").SharedValue<number>;
|
|
41
|
-
};
|
|
42
|
-
/** @internal */
|
|
43
|
-
export declare function useActionSheetOpts(title: string | undefined, expandable: boolean | undefined, expandableOnSnapToHeight: ((height: number) => void) | undefined, options: ActionSheetOptions, optionListProps: ActionSheetOptionListProps | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, maxHeight: number | undefined, animated: boolean | undefined, dismissible: boolean | undefined, visible?: boolean): ActionSheetInternalContextVal & {
|
|
44
|
-
actionSheetVisible: boolean;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare function useActionSheetOptItemSize({ insets, insetTop, insetBottom, insetLeft, insetRight, insetsPadding, insetPaddingTop, insetPaddingBottom, insetPaddingLeft, insetPaddingRight, }?: ActionSheetOptionListProps): {
|
|
48
|
-
itemSize: number;
|
|
49
|
-
insetsStyle: Pick<ViewStyle, 'paddingTop' | 'paddingBottom' | 'paddingLeft' | 'paddingRight'>;
|
|
50
|
-
};
|
|
51
|
-
/** @internal */
|
|
52
|
-
export declare function useActionSheetScrollView(title: string | undefined, expandable: boolean | undefined, expandableOnSnapToHeight: ((height: number) => void) | undefined, scrollViewProps: ActionSheetScrollViewProps['scrollViewProps'] | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, maxHeight: number | undefined, animated: boolean | undefined, dismissible: boolean | undefined, visible?: boolean): ActionSheetInternalContextVal & {
|
|
53
|
-
actionSheetVisible: boolean;
|
|
54
|
-
};
|
|
55
|
-
/** @internal */
|
|
56
|
-
export declare function useActionSheetListView(title: string | undefined, expandable: boolean | undefined, expandableOnSnapToHeight: ((height: number) => void) | undefined, listProps: ActionSheetListViewProps['listProps'] | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, maxHeight: number | undefined, animated: boolean | undefined, dismissible: boolean | undefined, visible?: boolean): ActionSheetInternalContextVal & {
|
|
57
|
-
actionSheetVisible: boolean;
|
|
58
|
-
};
|
|
59
15
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/overlay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/overlay.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAsB,OAAO,EAAE,MAAM,kBAAe,CAAC;AAyCjE,wBAAgB,eAAe,0CAE9B;AAOD,wBAAgB,eAAe,0CAE9B;AAOD,wBAAgB,qBAAqB,gDAEpC;AA+LD,wBAAgB,iCAAiC,CAAC,CAAC,+DAElD;AAED,wBAAgB,mCAAmC;OAuS2oS,CAAC;;OAAyD,CAAC;;;;;IArSxvS"}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ThemedSwitchProps } from '../types/switch.js';
|
|
3
|
-
import { BorderSize } from '../utils/theme/const.js';
|
|
4
|
-
/** @internal */
|
|
5
|
-
export declare function useThemedSwitch(onPress: ThemedSwitchProps['onPress'], enabled?: ThemedSwitchProps['enabled'], size?: ThemedSwitchProps['size'], animated?: ThemedSwitchProps['animated'], onPressDelayConfig?: ThemedSwitchProps['onPressDelayConfig'], customEnableAnimation?: ThemedSwitchProps['customEnableAnimation'], customDisableAnimation?: ThemedSwitchProps['customDisableAnimation'], customColors?: ThemedSwitchProps['customColors']): {
|
|
6
|
-
toggleSwitch: PressableOnPress;
|
|
7
|
-
trackAnimatedStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
8
|
-
width: number;
|
|
9
|
-
padding: import("../index.js").Spacing;
|
|
10
|
-
borderWidth: BorderSize;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
}>;
|
|
14
|
-
thumbAnimatedStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
transform: {
|
|
17
|
-
translateX: number;
|
|
18
|
-
}[];
|
|
19
|
-
}>;
|
|
20
|
-
};
|
|
1
|
+
export {};
|
|
21
2
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/switch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/hooks/switch.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/** @internal */
|
|
3
|
-
export declare function useThemedTextInput({ cursorColor, selectionHandleColor, underlineColorAndroid, placeholderTextColor, selectionColor, variant, ...props }: ThemedTextInputProps): {
|
|
4
|
-
cursorColor: import("../index.js").Palette;
|
|
5
|
-
selectionHandleColor: import("../index.js").Palette;
|
|
6
|
-
underlineColorAndroid: import("../index.js").Palette | undefined;
|
|
7
|
-
placeholderTextColor: import("../index.js").Palette;
|
|
8
|
-
selectionColor: import("../index.js").Palette;
|
|
9
|
-
restyle: Omit<ThemedTextInputProps, "variant" | keyof TextInputProps>;
|
|
10
|
-
};
|
|
1
|
+
import type { TextInputRefObj } from '../types/textInput.js';
|
|
11
2
|
export declare function useTextInputRef(): TextInputRefObj;
|
|
12
3
|
//# sourceMappingURL=textInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/textInput.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"textInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/textInput.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,uBAAoB,CAAC;AA6C5B,wBAAgB,eAAe,IAAI,eAAe,CAEjD"}
|
|
@@ -109,6 +109,7 @@ export declare function useColorSchemeTheme(overrideColorScheme?: ColorSchemeNam
|
|
|
109
109
|
border: import("../index.js").Palette;
|
|
110
110
|
separator: import("../index.js").Palette;
|
|
111
111
|
err: import("../index.js").Palette;
|
|
112
|
+
url: import("../index.js").Palette;
|
|
112
113
|
};
|
|
113
114
|
spacing: {
|
|
114
115
|
none: import("../index.js").Spacing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAgB,CAAC;AAG9D;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,KAAK,CAEhC;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,KAAK,CAAC,QAAQ,CAAC,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,KAAK,CAAC,SAAS,CAAC,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,SAAS,EAC1D,SAAS,EAAE,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,iBAGpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IASkB,gBAAgB,CACnE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,UAAU,CAAC,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC,cAAc,CAAC,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,mBAAmB,CAAC,EAAE,eAAe,WAIzE;AAED;;;;;;;GAOG;AACH,wBAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExE"}
|
|
@@ -13,6 +13,7 @@ export declare function getThemeColors(): Promise<{
|
|
|
13
13
|
border: import("../../index.js").Palette;
|
|
14
14
|
separator: import("../../index.js").Palette;
|
|
15
15
|
err: import("../../index.js").Palette;
|
|
16
|
+
url: import("../../index.js").Palette;
|
|
16
17
|
}>;
|
|
17
18
|
export declare function getThemeSpacing(): Promise<{
|
|
18
19
|
none: import("../../index.js").Spacing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/test/utils/func.ts"],"names":[],"mappings":"AAQA,wBAAsB,cAAc
|
|
1
|
+
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/test/utils/func.ts"],"names":[],"mappings":"AAQA,wBAAsB,cAAc;;;;;;;;;;;;;;;;GAEnC;AAED,wBAAsB,eAAe;;;;;;;;;;;GAEpC;AAED,wBAAsB,mBAAmB;;;;;;GAExC;AAED,wBAAsB,gBAAgB;;;;;GAErC;AAED,wBAAsB,mBAAmB;;;;;;GAExC;AAED,wBAAsB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEzC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,UAsBnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FlashListProps, FlashListRef, ListRenderItemInfo } from '@shopify/flash-list';
|
|
2
|
-
import type { ComponentType,
|
|
2
|
+
import type { ComponentType, RefObject } from 'react';
|
|
3
3
|
import type { ViewStyle } from 'react-native';
|
|
4
4
|
import type { AnimatedRef } from 'react-native-reanimated';
|
|
5
5
|
import type { ThemedSeparatorProps } from './separator.js';
|
|
@@ -98,19 +98,6 @@ export type ListItemSeparatorProps = Partial<Pick<ThemedSeparatorProps, 'size' |
|
|
|
98
98
|
/** Additional style props for the separator */
|
|
99
99
|
style: Omit<ThemedSeparatorProps, 'size' | 'vertical' | 'backgroundColor' | 'bg'>;
|
|
100
100
|
}>;
|
|
101
|
-
/**
|
|
102
|
-
* Component type for rendering separators between list items.
|
|
103
|
-
*
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
|
-
export type ListItemSeparatorComponent = FC<{
|
|
107
|
-
leadingItem?: {
|
|
108
|
-
type: string;
|
|
109
|
-
};
|
|
110
|
-
trailingItem?: {
|
|
111
|
-
type: string;
|
|
112
|
-
};
|
|
113
|
-
}>;
|
|
114
101
|
/**
|
|
115
102
|
* Props for custom cell renderer components.
|
|
116
103
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAM,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAa,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAS,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC;AAC3C,OAAO,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,CAAC;AAEJ;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IAChD,yCAAyC;IACzC,eAAe,EAAE,WAAW,CAAC;IAC7B,+CAA+C;IAC/C,KAAK,EAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC/C,CAAC;CACH,CACF,CAAC;AAYF;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC;IACrE,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { ResponsiveValue } from '@shopify/restyle';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ReactNode, RefObject } from 'react';
|
|
3
3
|
import type { ModalProps, ViewStyle } from 'react-native';
|
|
4
|
-
import type {
|
|
5
|
-
import type { AlertButtonType, OverlayDismissResultType, ToastDuration, ToastType } from '../utils/overlay/const.js';
|
|
4
|
+
import type { ActionSheetExpandableHeightRatio, AlertButtonType, OverlayDismissResultType, ToastDuration, ToastType } from '../utils/overlay/const.js';
|
|
6
5
|
import type { ThemedButtonProps, ThemedIconTextButtonProps, ThemedPressableProps } from './button.js';
|
|
7
6
|
import type { ListAnimatedRefObj, ListProps } from './list.js';
|
|
8
7
|
import type { CustomThemedLoadingProps } from './loading.js';
|
|
@@ -11,7 +10,7 @@ import type { CustomAnimation } from './reanimated.js';
|
|
|
11
10
|
import type { InsetsStyleConfig } from './style.js';
|
|
12
11
|
import type { CustomThemedTextProps, ThemedTextProps } from './text.js';
|
|
13
12
|
import type { ThemeBreakpoints } from './theme.js';
|
|
14
|
-
import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps
|
|
13
|
+
import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps } from './view.js';
|
|
15
14
|
/**
|
|
16
15
|
* Base props for overlay components.
|
|
17
16
|
*
|
|
@@ -54,16 +53,6 @@ type OverlayDismissToastResult = OverlayDismissBaseResult & Pick<ThemedToastProp
|
|
|
54
53
|
export type OverlayDismissAlertResult = OverlayDismissBaseResult & Pick<AlertProps, 'title' | 'description'> & Pick<AlertButtonProps, 'text' | 'type'> & {
|
|
55
54
|
resultType: OverlayDismissResultType.Alert;
|
|
56
55
|
};
|
|
57
|
-
/**
|
|
58
|
-
* Result type when an action sheet is dismissed.
|
|
59
|
-
*
|
|
60
|
-
* Contains action sheet-specific information including the selected option.
|
|
61
|
-
*
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
export type OverlayDismissActionSheetResult = OverlayDismissBaseResult & Pick<ActionSheetProps, 'title'> & Pick<ActionSheetOption, 'text'> & {
|
|
65
|
-
resultType: OverlayDismissResultType.ActionSheet;
|
|
66
|
-
};
|
|
67
56
|
export type OverlayDismissContextMenuResult = OverlayDismissBaseResult & Pick<ContextMenuOption, 'text'> & {
|
|
68
57
|
resultType: OverlayDismissResultType.ContextMenu;
|
|
69
58
|
};
|
|
@@ -242,16 +231,18 @@ export type AlertButtonProps = Pick<ThemedButtonProps, 'text'> & {
|
|
|
242
231
|
* </ActionSheet>
|
|
243
232
|
* ```
|
|
244
233
|
*/
|
|
245
|
-
export type ActionSheetProps = (Omit<OverlayProps, 'onDismiss'> & Omit<ActionSheetWrapProps, 'children'> & ActionSheetHeaderProps & {
|
|
234
|
+
export type ActionSheetProps = (Omit<OverlayProps, 'onDismiss'> & Omit<ActionSheetWrapProps, 'children'> & Omit<ActionSheetHeaderProps, 'headerTitle'> & {
|
|
246
235
|
/** Optional title text for the action sheet header */
|
|
247
236
|
title?: string;
|
|
248
237
|
/** Whether the action sheet can expand to full screen height */
|
|
249
238
|
expandable?: boolean;
|
|
239
|
+
expandableInitialHeightRatio?: ActionSheetExpandableHeightRatio;
|
|
250
240
|
expandableOnSnapToHeight?: (height: number) => void;
|
|
251
241
|
/** Callback invoked when the action sheet is dismissed */
|
|
252
242
|
onDismiss?: OverlayOnDismiss<OverlayDismissActionSheetResult>;
|
|
253
243
|
maxHeight?: number;
|
|
254
244
|
animated?: boolean;
|
|
245
|
+
contentGestureEnabled?: boolean;
|
|
255
246
|
}) & ({
|
|
256
247
|
/** Array of selectable options */
|
|
257
248
|
options: ActionSheetOptions;
|
|
@@ -294,12 +285,18 @@ export type ActionSheetWrapProps = PropsWithRequiredChildren<Pick<ModalProps, 'v
|
|
|
294
285
|
style?: ViewStyle;
|
|
295
286
|
};
|
|
296
287
|
}>;
|
|
288
|
+
export type ActionSheetHeaderRef = {
|
|
289
|
+
setTitle: SetState<string | undefined>;
|
|
290
|
+
};
|
|
297
291
|
/**
|
|
298
292
|
* Props for action sheet header configuration.
|
|
299
293
|
*
|
|
300
294
|
* Controls the appearance of the action sheet header including title and close icon.
|
|
301
295
|
*/
|
|
302
296
|
export type ActionSheetHeaderProps = {
|
|
297
|
+
headerRef?: RefObject<ActionSheetHeaderRef | null | undefined>;
|
|
298
|
+
/** Title text for the header */
|
|
299
|
+
headerTitle?: string;
|
|
303
300
|
/** Whether to show the close icon button in the header */
|
|
304
301
|
headerShowDismissIcon?: boolean;
|
|
305
302
|
/** Props for the header container wrapper */
|
|
@@ -310,42 +307,9 @@ export type ActionSheetHeaderProps = {
|
|
|
310
307
|
headerIconButtonProps?: Omit<ThemedButtonProps, 'onPress'>;
|
|
311
308
|
headerChildren?: ReactNode;
|
|
312
309
|
};
|
|
313
|
-
/**
|
|
314
|
-
* Context value for action sheet components.
|
|
315
|
-
*
|
|
316
|
-
* Provides shared state and methods for action sheet behavior including expand/collapse,
|
|
317
|
-
* scrolling, and dismiss handling.
|
|
318
|
-
*
|
|
319
|
-
* @internal
|
|
320
|
-
*/
|
|
321
|
-
export type ActionSheetInternalContextVal = Pick<ActionSheetProps, 'title' | 'expandable' | 'expandableOnSnapToHeight' | 'onDismiss' | 'maxHeight' | 'animated' | 'dismissible'> & {
|
|
322
|
-
/** Reference to the header view for layout calculations */
|
|
323
|
-
headerViewRef: ViewRefObj;
|
|
324
|
-
/** Reference to the scrollable content (either list or scroll view) */
|
|
325
|
-
contentAnimatedRefObj: ListAnimatedRefObj<any> | ScrollViewAnimatedRefObj;
|
|
326
|
-
/** Current height of the action sheet */
|
|
327
|
-
height: number;
|
|
328
|
-
/** Setter for updating the content height */
|
|
329
|
-
setContentHeight?: SetState<number>;
|
|
330
|
-
/** Shared value for Y-axis translation (pan gestures) */
|
|
331
|
-
translateYSharedVal: SharedValue<number>;
|
|
332
|
-
/** Shared value for the current height */
|
|
333
|
-
heightSharedVal: SharedValue<number>;
|
|
334
|
-
/** Shared value for the expandable full height */
|
|
335
|
-
expandableHeightSharedVal: SharedValue<number>;
|
|
336
|
-
/** Shared value for tracking content scroll offset */
|
|
337
|
-
contentOffsetSharedVal: SharedValue<number>;
|
|
338
|
-
};
|
|
339
|
-
/** @internal */
|
|
340
310
|
export type ActionSheetContextVal = {
|
|
341
311
|
setActionSheet: SetState<ActionSheetProps | undefined>;
|
|
342
312
|
};
|
|
343
|
-
/**
|
|
344
|
-
* Action sheet props variant with required options array.
|
|
345
|
-
*
|
|
346
|
-
* @internal
|
|
347
|
-
*/
|
|
348
|
-
export type ActionSheetOptionsProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'options'>>;
|
|
349
313
|
/**
|
|
350
314
|
* Props for the action sheet options list component.
|
|
351
315
|
*
|
|
@@ -365,17 +329,6 @@ export type ActionSheetOptionListItemProps = Omit<ThemedButtonProps, 'onPress' |
|
|
|
365
329
|
* Reference type for action sheet option list.
|
|
366
330
|
*/
|
|
367
331
|
export type ActionSheetOptionListRefObj = ListAnimatedRefObj<ActionSheetOption>;
|
|
368
|
-
/**
|
|
369
|
-
* Extra data passed to action sheet option list items.
|
|
370
|
-
*
|
|
371
|
-
* @internal
|
|
372
|
-
*/
|
|
373
|
-
export type ActionSheetOptionListExtraData = {
|
|
374
|
-
/** Props applied to each option item */
|
|
375
|
-
optionListItemProps?: ActionSheetOptionListItemProps;
|
|
376
|
-
/** Callback to dismiss the action sheet with selected option text */
|
|
377
|
-
onDismiss: (text?: string) => void;
|
|
378
|
-
};
|
|
379
332
|
/**
|
|
380
333
|
* Configuration for a single action sheet option.
|
|
381
334
|
*
|
|
@@ -400,24 +353,6 @@ export type ActionSheetOption = Partial<Pick<ThemedButtonProps, 'onPress'>> & {
|
|
|
400
353
|
* Array of action sheet options.
|
|
401
354
|
*/
|
|
402
355
|
export type ActionSheetOptions = ActionSheetOption[];
|
|
403
|
-
/**
|
|
404
|
-
* Action sheet props variant with required children.
|
|
405
|
-
*
|
|
406
|
-
* @internal
|
|
407
|
-
*/
|
|
408
|
-
export type ActionSheetScrollViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'children'>>;
|
|
409
|
-
/**
|
|
410
|
-
* Action sheet props variant with required list props.
|
|
411
|
-
*
|
|
412
|
-
* @internal
|
|
413
|
-
*/
|
|
414
|
-
export type ActionSheetListViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'listProps'>>;
|
|
415
|
-
/**
|
|
416
|
-
* Reference type for action sheet list view.
|
|
417
|
-
*
|
|
418
|
-
* @internal
|
|
419
|
-
*/
|
|
420
|
-
export type ActionSheetListViewListRefObj = ListAnimatedRefObj<any>;
|
|
421
356
|
export type ContextMenuProps = PropsWithRequiredChildren<{
|
|
422
357
|
options: ContextMenuOptions;
|
|
423
358
|
optionListProps?: ContextMenuOptionListProps;
|
|
@@ -432,8 +367,6 @@ export type ContextMenuOptionListProps = Pick<ContextMenuProps, 'options' | 'opt
|
|
|
432
367
|
};
|
|
433
368
|
export type ContextMenuOptionListItemProps = Omit<ContextMenuOption, 'onPress' | 'text' | 'iconName'>;
|
|
434
369
|
export type ContextMenuOptionListRefObj = ListAnimatedRefObj<ContextMenuOption>;
|
|
435
|
-
/** @internal */
|
|
436
|
-
export type ContextMenuOptionListExtraData = Pick<ContextMenuProps, 'optionListItemProps'> & Pick<ContextMenuOptionListProps, 'onItemPress'>;
|
|
437
370
|
export type ContextMenuOption = ThemedButtonProps | ThemedIconTextButtonProps;
|
|
438
371
|
export type ContextMenuOptions = ContextMenuOption[];
|
|
439
372
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/types/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/types/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EACV,gCAAgC,EAChC,eAAe,EACf,wBAAwB,EACxB,aAAa,EACb,SAAS,EACV,MAAM,2BAAwB,CAAC;AAChC,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,aAAU,CAAC;AAClB,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,WAAQ,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAS,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAc,C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,EAAE,gBAAgB,CAAC,+BAA+B,CAAC,CAAC;IAC9D,cAAc,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;IACzE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,gBAAgB,EAChB,SAAS,GAAG,iBAAiB,GAAG,qBAAqB,CACtD,GAAG;IAAE,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAAC;AAE5C,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,iBAAiB,EACjB,SAAS,GAAG,MAAM,GAAG,UAAU,CAChC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;AAShF,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,yBAAyB,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,EAAE,CAAC"}
|
|
@@ -4,7 +4,6 @@ import type { ThemedTextProps } from './text.js';
|
|
|
4
4
|
import type { ThemeColors } from './theme.js';
|
|
5
5
|
import type { ThemedViewProps } from './view.js';
|
|
6
6
|
export type TextInputRefObj = RefObject<TextInputInstance | null>;
|
|
7
|
-
/** @internal */
|
|
8
7
|
export type TextInputProps = {
|
|
9
8
|
cursorColor?: ThemeColors;
|
|
10
9
|
selectionHandleColor?: ThemeColors;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textInput.d.ts","sourceRoot":"","sources":["../../../../src/types/textInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,cAAc,IAAI,gBAAgB,EAClC,iBAAi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AAE,eAAe,CAAC;CACvB,CAAC"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { IconSize } from '@jamadd/react-native-template-icons';
|
|
2
|
-
import type { ActionSheetContextVal, ActionSheetInternalContextVal, AlertContextVal, ToastContextVal } from '../../types/overlay.js';
|
|
3
|
-
import type { ThemeSpacing, ThemeTextVariants } from '../../types/theme.js';
|
|
4
|
-
/** @internal */
|
|
5
|
-
export declare const overlayMaxWidthPercent = "80%";
|
|
6
1
|
/**
|
|
7
2
|
* Types of overlay components that can be dismissed.
|
|
8
3
|
* Used to identify which overlay component triggered a dismiss result.
|
|
@@ -29,8 +24,6 @@ export declare enum OverlayDismissResultType {
|
|
|
29
24
|
* Used as the dismiss result text when no custom text is provided.
|
|
30
25
|
*/
|
|
31
26
|
export declare const overlayDismissResultDefaultText = "cancelByUser";
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare const ToastContext: import("react").Context<ToastContextVal>;
|
|
34
27
|
/**
|
|
35
28
|
* Position types for toast notifications.
|
|
36
29
|
* Determines where on the screen a toast will appear.
|
|
@@ -74,12 +67,6 @@ export declare enum ToastDuration {
|
|
|
74
67
|
/** Long duration - 5 seconds */
|
|
75
68
|
Long = 5000
|
|
76
69
|
}
|
|
77
|
-
/** @internal */
|
|
78
|
-
export declare const AlertInternalContext: import("react").Context<Partial<Pick<import("../../index.js").AlertProps, "buttonProps"> & {
|
|
79
|
-
onDismiss: (result?: Partial<import("../../index.js").OverlayDismissAlertResult>) => void;
|
|
80
|
-
}>>;
|
|
81
|
-
/** @internal */
|
|
82
|
-
export declare const AlertContext: import("react").Context<AlertContextVal>;
|
|
83
70
|
/**
|
|
84
71
|
* Visual styles for alert dialog buttons.
|
|
85
72
|
* Determines the appearance and emphasis level of buttons in alert dialogs.
|
|
@@ -102,30 +89,9 @@ export declare enum AlertButtonType {
|
|
|
102
89
|
/** Destructive action button - warning appearance (typically red) */
|
|
103
90
|
Destructive = "destructive"
|
|
104
91
|
}
|
|
105
|
-
/** @internal */
|
|
106
|
-
export declare const ActionSheetInternalContext: import("react").Context<Partial<ActionSheetInternalContextVal>>;
|
|
107
|
-
/** @internal */
|
|
108
|
-
export declare const ActionSheetContext: import("react").Context<ActionSheetContextVal>;
|
|
109
|
-
/** @internal */
|
|
110
|
-
export declare const actionSheetOpenDuration = 300;
|
|
111
|
-
/** @internal */
|
|
112
|
-
export declare const actionSheetSnapDuration = 300;
|
|
113
|
-
/** @internal */
|
|
114
|
-
export declare const actionSheetDismissDuration = 150;
|
|
115
|
-
/** @internal */
|
|
116
|
-
export declare const actionSheetMaxHeightRatio = 0.6;
|
|
117
|
-
/** @internal */
|
|
118
92
|
export declare enum ActionSheetExpandableHeightRatio {
|
|
119
93
|
Top = 0.9,
|
|
120
94
|
Middle = 0.6,
|
|
121
|
-
Bottom = 0.
|
|
95
|
+
Bottom = 0.4
|
|
122
96
|
}
|
|
123
|
-
/** @internal */
|
|
124
|
-
export declare const actionSheetHeaderIconSize: IconSize;
|
|
125
|
-
/** @internal */
|
|
126
|
-
export declare const actionSheetHeaderPaddingKey: ThemeSpacing;
|
|
127
|
-
/** @internal */
|
|
128
|
-
export declare const actionSheetOptionListItemPaddingKey: ThemeSpacing;
|
|
129
|
-
/** @internal */
|
|
130
|
-
export declare const actionSheetOptionListItemTextVariant: ThemeTextVariants;
|
|
131
97
|
//# sourceMappingURL=const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;GAWG;AACH,oBAAY,wBAAwB;IAClC,iCAAiC;IACjC,KAAK,UAAU;IACf,2BAA2B;IAC3B,KAAK,UAAU;IACf,2BAA2B;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAO9D;;;;;;;;;;;GAWG;AACH,oBAAY,SAAS;IACnB,2BAA2B;IAC3B,GAAG,QAAQ;IACX,sBAAsB;IACtB,OAAO,YAAY;IACnB,uBAAuB;IACvB,QAAQ,aAAa;IACrB,8BAA8B;IAC9B,MAAM,WAAW;IACjB,yBAAyB;IACzB,UAAU,eAAe;IACzB,0BAA0B;IAC1B,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;GAUG;AACH,oBAAY,aAAa;IACvB,iCAAiC;IACjC,KAAK,OAAO;IACZ,gCAAgC;IAChC,IAAI,OAAO;CACZ;AAUD;;;;;;;;;;;;;GAaG;AACH,oBAAY,eAAe;IACzB,oDAAoD;IACpD,OAAO,YAAY;IACnB,kDAAkD;IAClD,SAAS,cAAc;IACvB,qEAAqE;IACrE,WAAW,gBAAgB;CAC5B;AAwBD,oBAAY,gCAAgC;IAC1C,GAAG,MAAM;IACT,MAAM,MAAM;IACZ,MAAM,MAAM;CACb"}
|
|
@@ -1,91 +1,4 @@
|
|
|
1
1
|
export declare function getToastContext(): import("../../index.js").ToastContextVal;
|
|
2
2
|
export declare function getAlertContext(): import("../../index.js").AlertContextVal;
|
|
3
|
-
/** @internal */
|
|
4
|
-
export declare function getActionSheetInternalContext(): Partial<import("../../index.js").ActionSheetInternalContextVal>;
|
|
5
3
|
export declare function getActionSheetContext(): import("../../index.js").ActionSheetContextVal;
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
* Calculates the maximum height for an action sheet.
|
|
9
|
-
*
|
|
10
|
-
* @param expandable - Whether the action sheet is expandable (supports multiple height positions)
|
|
11
|
-
* @returns The maximum height in pixels
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const maxHeight = getActionSheetMaxHeight(true);
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare function getActionSheetMaxHeight(expandable?: boolean, maxHeight?: number): number;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* Constrains an action sheet height to not exceed the maximum allowed height.
|
|
22
|
-
*
|
|
23
|
-
* @param height - The desired height in pixels
|
|
24
|
-
* @returns The constrained height in pixels, capped at maximum
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* const constrainedHeight = getActionSheetHeight(800);
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare function getActionSheetHeight(height: number, maxHeight?: number): number;
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
* Gets the maximum height for an expandable action sheet.
|
|
35
|
-
*
|
|
36
|
-
* @returns The maximum expandable height in pixels (90% of screen height)
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* const expandableHeight = getActionSheetExpandableHeight();
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
export declare function getActionSheetExpandableHeight(maxHeight?: number): number;
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
* Gets the initial height for an expandable action sheet when first shown.
|
|
47
|
-
*
|
|
48
|
-
* @returns The initial height in pixels (60% of screen height)
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```tsx
|
|
52
|
-
* const initialHeight = getActionSheetExpandableInitHeight();
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare function getActionSheetExpandableInitialHeight(maxHeight?: number): number;
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* Calculates the snap height for a non-expandable action sheet after user drag gesture ends.
|
|
59
|
-
* Determines whether the sheet should dismiss or snap back to its original height.
|
|
60
|
-
*
|
|
61
|
-
* @param height - The original height of the action sheet in pixels
|
|
62
|
-
* @param currentHeight - The current height after user drag in pixels
|
|
63
|
-
* @param forceDismiss - Whether to force dismissal regardless of current height
|
|
64
|
-
* @param dismissible - Whether the action sheet is dismissible (default: true)
|
|
65
|
-
* @returns The target snap height - either the original height (dismissed) or 0 (visible)
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```tsx
|
|
69
|
-
* const snapHeight = getActionSheetSnapHeight(400, 200, false, true);
|
|
70
|
-
* // Returns 400 to dismiss if dragged past threshold
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
export declare function getActionSheetSnapHeight(height: number, currentHeight: number, forceDismiss: boolean, dismissible?: boolean): number;
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* Calculates the snap height for an expandable action sheet after user drag gesture ends.
|
|
77
|
-
* Determines which height position (top/middle/bottom) the sheet should snap to, or if it should dismiss.
|
|
78
|
-
*
|
|
79
|
-
* @param currentHeight - The current height after user drag in pixels
|
|
80
|
-
* @param forceDismiss - Whether to force dismissal regardless of current height
|
|
81
|
-
* @param dismissible - Whether the action sheet is dismissible (default: true)
|
|
82
|
-
* @returns The target snap height - 0 for dismissed, or one of the defined snap positions (90%/60%/30% of screen)
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```tsx
|
|
86
|
-
* const snapHeight = getActionSheetExpandableSnapHeight(500, false, true);
|
|
87
|
-
* // Returns closest snap position based on current height
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
export declare function getActionSheetExpandableSnapHeight(currentHeight: number, forceDismiss: boolean, maxHeight?: number, dismissible?: boolean): number;
|
|
91
4
|
//# sourceMappingURL=func.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"AAWA,wBAAgB,eAAe,6CAE9B;AAED,wBAAgB,eAAe,6CAE9B;
|
|
1
|
+
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"AAWA,wBAAgB,eAAe,6CAE9B;AAED,wBAAgB,eAAe,6CAE9B;AAOD,wBAAgB,qBAAqB,mDAEpC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/** @internal */
|
|
3
|
-
export declare function updateSharedValWithTiming(sharedVal: SharedValue<number>, toVal: number, userConfig?: WithTimingConfig, cb?: () => void): void;
|
|
4
|
-
/** @internal */
|
|
5
|
-
export declare function updateSharedValWithSpring(sharedVal: SharedValue<number>, toVal: number, userConfig?: WithSpringConfig, cb?: () => void): void;
|
|
1
|
+
export {};
|
|
6
2
|
//# sourceMappingURL=func.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/reanimated/func.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/reanimated/func.ts"],"names":[],"mappings":""}
|