@jamadd/react-native-template-ui 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/accordion/ThemedAccordion.js +80 -88
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -1
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts +6 -0
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +8 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +9 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +9 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +9 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +9 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +10 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +9 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +9 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +10 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +9 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +8 -0
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +8 -0
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +8 -0
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +13 -0
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +9 -0
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/text/Text.d.ts +2026 -0
- package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts +8 -0
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/Box.d.ts +2076 -0
- package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +27 -0
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/switch.d.ts +20 -1
- package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +14 -1
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +74 -1
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +33 -0
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/reanimated/func.d.ts +5 -1
- package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/switch/const.d.ts +2 -1
- package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/theme/restyle.d.ts +2093 -1
- 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":"AAIA;;;;GAIG;AACH,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqB,CAAC;AAE/B,eAAe,GAAG,CAAC"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { ScrollView } from 'react-native';
|
|
2
2
|
import type { ListAnimatedRefObj, ListRef } from '../types/list';
|
|
3
|
+
import type { ActionSheetContextVal, ActionSheetListViewProps, ActionSheetOptionListProps, ActionSheetOptions, ActionSheetScrollViewProps, OverlayDismissActionSheetResult, OverlayOnDismiss } from '../types/overlay';
|
|
3
4
|
import type { ScrollViewAnimatedRefObj } from '../types/view';
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare function useActionSheetContext(): Partial<ActionSheetContextVal>;
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare function useActionSheetOnDismiss(force?: boolean): (text?: string) => void;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare function useActionSheetGesture(contentGesture?: boolean): import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare function useActionSheetHeaderMinHeight(): number;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare function useActionSheetContentGesture(): import("react-native-gesture-handler/lib/typescript/handlers/gestures/gestureComposition").SimultaneousGesture;
|
|
4
15
|
export declare function useActionSheetListViewAnimatedRef<T>(): import("react-native-reanimated").AnimatedRef<ListRef<T>>;
|
|
5
16
|
export declare function useActionSheetScrollViewAnimatedRef(): import("react-native-reanimated").AnimatedRef<ScrollView>;
|
|
6
17
|
/** @interal */
|
|
@@ -13,4 +24,20 @@ export declare function useActionSheetScrollViewRefAndOffset(refObj?: ScrollView
|
|
|
13
24
|
scrollViewAnimatedRefObj: ScrollViewAnimatedRefObj;
|
|
14
25
|
contentOffsetSharedVal: import("react-native-reanimated").SharedValue<number>;
|
|
15
26
|
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare function useActionSheetVisible(visible?: boolean): {
|
|
29
|
+
actionSheetVisible: boolean;
|
|
30
|
+
setActionSheetVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
31
|
+
};
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare function useActionSheetOpts(title: string | undefined, expandable: boolean | undefined, options: ActionSheetOptions, optionListProps: ActionSheetOptionListProps | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, dismissable: boolean | undefined, actionSheetVisible: boolean): ActionSheetContextVal;
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare function useActionSheetOptItemSize({ insets, insetTop, insetBottom, insetLeft, insetRight, insetsPadding, insetPaddingTop, insetPaddingBottom, insetPaddingLeft, insetPaddingRight, }?: ActionSheetOptionListProps): {
|
|
36
|
+
itemSize: number;
|
|
37
|
+
insetsStyle: Pick<import("react-native").ViewStyle, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft">;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare function useActionSheetScrollView(title: string | undefined, expandable: boolean | undefined, scrollViewProps: ActionSheetScrollViewProps['scrollViewProps'] | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, dismissable: boolean | undefined, actionSheetVisible: boolean): ActionSheetContextVal;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare function useActionSheetListView(title: string | undefined, expandable: boolean | undefined, listProps: ActionSheetListViewProps['listProps'] | undefined, onDismiss: OverlayOnDismiss<OverlayDismissActionSheetResult> | undefined, dismissable: boolean | undefined, actionSheetVisible: boolean): ActionSheetContextVal;
|
|
16
43
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/overlay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/overlay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EAExB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AA0B9D,gBAAgB;AAChB,wBAAgB,qBAAqB,mCAEpC;AAiDD,gBAAgB;AAChB,wBAAgB,uBAAuB,CAAC,KAAK,UAAO,2BAyDnD;AAED,gBAAgB;AAChB,wBAAgB,qBAAqB,CAAC,cAAc,GAAE,OAAe,iGA0BpE;AAED,gBAAgB;AAChB,wBAAgB,6BAA6B,WAO5C;AAED,gBAAgB;AAChB,wBAAgB,4BAA4B,mHAW3C;AAED,wBAAgB,iCAAiC,CAAC,CAAC,+DAElD;AAED,wBAAgB,m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,EAAE,gBAAgB,CAAC,+BAA+B,CAAC,GAAG,SAAS,EACxE,WAAW,EAAE,OAAO,GAAG,SAAS,EAChC,kBAAkB,EAAE,OAAO,yBA+C5B"}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PressableOnPress } from '../types/button';
|
|
2
|
+
import type { ThemedSwitchProps } from '../types/switch';
|
|
3
|
+
import { BorderSize } from '../utils/theme/const';
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare function useThemedSwitch(onPress: ThemedSwitchProps['onPress'], enabled?: ThemedSwitchProps['enabled'], size?: ThemedSwitchProps['size'], 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("..").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
|
+
};
|
|
2
21
|
//# 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":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAc,MAAM,sBAAsB,CAAC;AAK9D,gBAAgB;AAChB,wBAAgB,eAAe,CAC7B,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,EACrC,OAAO,GAAE,iBAAiB,CAAC,SAAS,CAAS,EAC7C,IAAI,GAAE,iBAAiB,CAAC,MAAM,CAAgB,EAC9C,kBAAkB,CAAC,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,EAC5D,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,uBAAuB,CAAC,EAClE,sBAAsB,CAAC,EAAE,iBAAiB,CAAC,wBAAwB,CAAC,EACpE,YAAY,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;EA6FjD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FlashListProps, FlashListRef, ListRenderItemInfo } from '@shopify/flash-list';
|
|
2
|
-
import type { ComponentType, RefObject } from 'react';
|
|
2
|
+
import type { ComponentType, FC, 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';
|
|
@@ -98,6 +98,19 @@ 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
|
+
}>;
|
|
101
114
|
/**
|
|
102
115
|
* Props for custom cell renderer components.
|
|
103
116
|
*
|
|
@@ -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,EAAE,EAAE,EAAE,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,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEzD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM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,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACjC,CAAC,CAAC;AAEH;;;;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,12 +1,14 @@
|
|
|
1
1
|
import type { ModalProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
2
3
|
import type { AlertButtonType, OverlayDismissResultType, ToastDuration, ToastType } from '../utils/overlay/const';
|
|
3
4
|
import type { ThemedButtonProps } from './button';
|
|
4
5
|
import type { ListAnimatedRefObj, ListProps } from './list';
|
|
5
6
|
import type { CustomThemedLoadingProps } from './loading';
|
|
7
|
+
import type { SetState } from './react';
|
|
6
8
|
import type { CustomAnimation } from './reanimated';
|
|
7
9
|
import type { InsetsStyleConfig } from './style';
|
|
8
10
|
import type { CustomThemedTextProps, ThemedTextProps } from './text';
|
|
9
|
-
import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps } from './view';
|
|
11
|
+
import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps, ViewRefObj } from './view';
|
|
10
12
|
/**
|
|
11
13
|
* Base props for overlay components.
|
|
12
14
|
*
|
|
@@ -49,6 +51,16 @@ type OverlayDismissToastResult = OverlayDismissBaseResult & Pick<ThemedToastProp
|
|
|
49
51
|
export type OverlayDismissAlertResult = OverlayDismissBaseResult & Pick<AlertProps, 'title' | 'description'> & Pick<AlertButtonProps, 'text' | 'type'> & {
|
|
50
52
|
resultType: OverlayDismissResultType.Alert;
|
|
51
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Result type when an action sheet is dismissed.
|
|
56
|
+
*
|
|
57
|
+
* Contains action sheet-specific information including the selected option.
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export type OverlayDismissActionSheetResult = OverlayDismissBaseResult & Pick<ActionSheetProps, 'title'> & Pick<ActionSheetOption, 'text'> & {
|
|
62
|
+
resultType: OverlayDismissResultType.ActionSheet;
|
|
63
|
+
};
|
|
52
64
|
/**
|
|
53
65
|
* Props for themed toast notification component.
|
|
54
66
|
*
|
|
@@ -281,6 +293,38 @@ export type ActionSheetHeaderProps = {
|
|
|
281
293
|
/** Props for the header close icon button */
|
|
282
294
|
headerIconButtonProps?: Omit<ThemedButtonProps, 'onPress'>;
|
|
283
295
|
};
|
|
296
|
+
/**
|
|
297
|
+
* Context value for action sheet components.
|
|
298
|
+
*
|
|
299
|
+
* Provides shared state and methods for action sheet behavior including expand/collapse,
|
|
300
|
+
* scrolling, and dismiss handling.
|
|
301
|
+
*
|
|
302
|
+
* @internal
|
|
303
|
+
*/
|
|
304
|
+
export type ActionSheetContextVal = Pick<ActionSheetProps, 'title' | 'expandable' | 'onDismiss' | 'dismissable'> & {
|
|
305
|
+
/** Reference to the header view for layout calculations */
|
|
306
|
+
headerViewRef: ViewRefObj;
|
|
307
|
+
/** Reference to the scrollable content (either list or scroll view) */
|
|
308
|
+
contentAnimatedRefObj: ListAnimatedRefObj<any> | ScrollViewAnimatedRefObj;
|
|
309
|
+
/** Current height of the action sheet */
|
|
310
|
+
height: number;
|
|
311
|
+
/** Setter for updating the content height */
|
|
312
|
+
setContentHeight?: SetState<number>;
|
|
313
|
+
/** Shared value for Y-axis translation (pan gestures) */
|
|
314
|
+
translateYSharedVal: SharedValue<number>;
|
|
315
|
+
/** Shared value for the current height */
|
|
316
|
+
heightSharedVal: SharedValue<number>;
|
|
317
|
+
/** Shared value for the expandable full height */
|
|
318
|
+
expandableHeightSharedVal: SharedValue<number>;
|
|
319
|
+
/** Shared value for tracking content scroll offset */
|
|
320
|
+
contentOffsetSharedVal: SharedValue<number>;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Action sheet props variant with required options array.
|
|
324
|
+
*
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
export type ActionSheetOptionsProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'options'>>;
|
|
284
328
|
/**
|
|
285
329
|
* Props for the action sheet options list component.
|
|
286
330
|
*
|
|
@@ -300,6 +344,17 @@ export type ActionSheetOptionListItemProps = Omit<ThemedButtonProps, 'onPress' |
|
|
|
300
344
|
* Reference type for action sheet option list.
|
|
301
345
|
*/
|
|
302
346
|
export type ActionSheetOptionListRefObj = ListAnimatedRefObj<ActionSheetOption>;
|
|
347
|
+
/**
|
|
348
|
+
* Extra data passed to action sheet option list items.
|
|
349
|
+
*
|
|
350
|
+
* @internal
|
|
351
|
+
*/
|
|
352
|
+
export type ActionSheetOptionListExtraData = {
|
|
353
|
+
/** Props applied to each option item */
|
|
354
|
+
optionListItemProps?: ActionSheetOptionListItemProps;
|
|
355
|
+
/** Callback to dismiss the action sheet with selected option text */
|
|
356
|
+
onDismiss: (text?: string) => void;
|
|
357
|
+
};
|
|
303
358
|
/**
|
|
304
359
|
* Configuration for a single action sheet option.
|
|
305
360
|
*
|
|
@@ -324,5 +379,23 @@ export type ActionSheetOption = Partial<Pick<ThemedButtonProps, 'onPress'>> & {
|
|
|
324
379
|
* Array of action sheet options.
|
|
325
380
|
*/
|
|
326
381
|
export type ActionSheetOptions = ActionSheetOption[];
|
|
382
|
+
/**
|
|
383
|
+
* Action sheet props variant with required children.
|
|
384
|
+
*
|
|
385
|
+
* @internal
|
|
386
|
+
*/
|
|
387
|
+
export type ActionSheetScrollViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'children'>>;
|
|
388
|
+
/**
|
|
389
|
+
* Action sheet props variant with required list props.
|
|
390
|
+
*
|
|
391
|
+
* @internal
|
|
392
|
+
*/
|
|
393
|
+
export type ActionSheetListViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'listProps'>>;
|
|
394
|
+
/**
|
|
395
|
+
* Reference type for action sheet list view.
|
|
396
|
+
*
|
|
397
|
+
* @internal
|
|
398
|
+
*/
|
|
399
|
+
export type ActionSheetListViewListRefObj = ListAnimatedRefObj<any>;
|
|
327
400
|
export {};
|
|
328
401
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/types/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/types/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,aAAa,EACb,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,KAAK,EAC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H,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { IconSize } from '@jamadd/react-native-template-icons';
|
|
2
|
+
import type { ActionSheetContextVal } from '../../types/overlay';
|
|
3
|
+
import type { ThemeSpacing, ThemeTextVariants } from '../../types/theme';
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare const overlayMaxWidthPercent = "80%";
|
|
1
6
|
/**
|
|
2
7
|
* Types of overlay components that can be dismissed.
|
|
3
8
|
* Used to identify which overlay component triggered a dismiss result.
|
|
@@ -66,6 +71,10 @@ export declare enum ToastDuration {
|
|
|
66
71
|
/** Long duration - 5 seconds */
|
|
67
72
|
Long = 5000
|
|
68
73
|
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const AlertContext: import("react").Context<Partial<Pick<import("../..").AlertProps, "buttonProps"> & {
|
|
76
|
+
onDismiss: (result?: Partial<import("../..").OverlayDismissAlertResult>) => void;
|
|
77
|
+
}>>;
|
|
69
78
|
/**
|
|
70
79
|
* Visual styles for alert dialog buttons.
|
|
71
80
|
* Determines the appearance and emphasis level of buttons in alert dialogs.
|
|
@@ -88,4 +97,28 @@ export declare enum AlertButtonType {
|
|
|
88
97
|
/** Destructive action button - warning appearance (typically red) */
|
|
89
98
|
Destructive = "destructive"
|
|
90
99
|
}
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const ActionSheetContext: import("react").Context<Partial<ActionSheetContextVal>>;
|
|
102
|
+
/** @internal */
|
|
103
|
+
export declare const actionSheetOpenDuration = 300;
|
|
104
|
+
/** @internal */
|
|
105
|
+
export declare const actionSheetSnapDuration = 300;
|
|
106
|
+
/** @internal */
|
|
107
|
+
export declare const actionSheetDismissDuration = 150;
|
|
108
|
+
/** @internal */
|
|
109
|
+
export declare const actionSheetMaxHeightRatio = 0.6;
|
|
110
|
+
/** @internal */
|
|
111
|
+
export declare enum ActionSheetExpandableHeightRatio {
|
|
112
|
+
Top = 0.9,
|
|
113
|
+
Middle = 0.6,
|
|
114
|
+
Bottom = 0.3
|
|
115
|
+
}
|
|
116
|
+
/** @internal */
|
|
117
|
+
export declare const actionSheetHeaderIconSize: IconSize;
|
|
118
|
+
/** @internal */
|
|
119
|
+
export declare const actionSheetHeaderPadding: ThemeSpacing;
|
|
120
|
+
/** @internal */
|
|
121
|
+
export declare const actionSheetOptionListItemPadding: ThemeSpacing;
|
|
122
|
+
/** @internal */
|
|
123
|
+
export declare const actionSheetOptionListItemTextVariant: ThemeTextVariants;
|
|
91
124
|
//# 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":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C;;;;;;;;;;;GAWG;AACH,oBAAY,wBAAwB;IAClC,iCAAiC;IACjC,KAAK,UAAU;IACf,2BAA2B;IAC3B,KAAK,UAAU;IACf,2BAA2B;IAC3B,WAAW,gBAAgB;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D;;;;;;;;;;;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;AAED,gBAAgB;AAChB,eAAO,MAAM,YAAY;sBA4Dk5C,CAAC;GA5D92C,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,oBAAY,eAAe;IACzB,oDAAoD;IACpD,OAAO,YAAY;IACnB,kDAAkD;IAClD,SAAS,cAAc;IACvB,qEAAqE;IACrE,WAAW,gBAAgB;CAC5B;AAED,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,yDAE9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,gBAAgB;AAChB,oBAAY,gCAAgC;IAC1C,GAAG,MAAM;IACT,MAAM,MAAM;IACZ,MAAM,MAAM;CACb;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,QAAqB,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,YAAkB,CAAC;AAE1D,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,YAAkB,CAAC;AAElE,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,iBAA2B,CAAC"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SharedValue, WithSpringConfig, WithTimingConfig } from 'react-native-reanimated';
|
|
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;
|
|
2
6
|
//# 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":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAIjC,gBAAgB;AAChB,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,gBAAgB,EAC7B,EAAE,CAAC,EAAE,MAAM,IAAI,QAShB;AAED,gBAAgB;AAChB,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,gBAAgB,EAC7B,EAAE,CAAC,EAAE,MAAM,IAAI,QAShB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/switch/const.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/switch/const.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC"}
|