@jamadd/react-native-template-ui 0.1.17 → 0.2.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/README.md +7 -7
- package/lib/commonjs/components/button/AnimatedPressable.js.map +1 -0
- package/lib/commonjs/components/{btn → button}/AnimatedThemedPressable.js +2 -2
- package/lib/commonjs/components/button/AnimatedThemedPressable.js.map +1 -0
- package/lib/commonjs/components/{btn/ThemedBtn.js → button/ThemedButton.js} +6 -6
- package/lib/commonjs/components/button/ThemedButton.js.map +1 -0
- package/lib/commonjs/components/{btn/ThemedIconBtn.js → button/ThemedIconButton.js} +5 -5
- package/lib/commonjs/components/button/ThemedIconButton.js.map +1 -0
- package/lib/commonjs/components/{btn/ThemedIconTextBtn.js → button/ThemedIconTextButton.js} +5 -5
- package/lib/commonjs/components/button/ThemedIconTextButton.js.map +1 -0
- package/lib/commonjs/components/{btn → button}/ThemedPressable.js +2 -2
- package/lib/commonjs/components/button/ThemedPressable.js.map +1 -0
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetHeader.js +6 -6
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetListView.js +4 -4
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptListItem.js +2 -2
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOptListItem.js.map +1 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOpts.js +4 -4
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetOpts.js.map +1 -1
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollView.js +4 -4
- package/lib/commonjs/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/commonjs/components/overlay/alert/Alert.js +16 -16
- package/lib/commonjs/components/overlay/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/overlay/alert/{AlertBtn.js → AlertButton.js} +15 -15
- package/lib/commonjs/components/overlay/alert/AlertButton.js.map +1 -0
- package/lib/commonjs/components/overlay/alert/{AlertBtns.js → AlertButtons.js} +19 -19
- package/lib/commonjs/components/overlay/alert/AlertButtons.js.map +1 -0
- package/lib/commonjs/components/overlay/alert/AlertWrap.js +4 -4
- package/lib/commonjs/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/commonjs/components/overlay/modal/ThemedModal.js +1 -1
- package/lib/commonjs/components/switch/ThemedSwitch.js +1 -1
- package/lib/commonjs/hooks/{btn.js → button.js} +2 -2
- package/lib/commonjs/hooks/button.js.map +1 -0
- package/lib/commonjs/hooks/switch.js +2 -2
- package/lib/commonjs/hooks/switch.js.map +1 -1
- package/lib/commonjs/index.js +23 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types/{btn.js → button.js} +1 -1
- package/lib/commonjs/types/{btn.js.map → button.js.map} +1 -1
- package/lib/commonjs/utils/button/const.js +17 -0
- package/lib/commonjs/utils/button/const.js.map +1 -0
- package/lib/commonjs/utils/overlay/const.js +6 -6
- package/lib/commonjs/utils/overlay/const.js.map +1 -1
- package/lib/commonjs/utils/theme/const.js +3 -3
- package/lib/commonjs/utils/theme/const.js.map +1 -1
- package/lib/module/components/button/AnimatedPressable.js.map +1 -0
- package/lib/module/components/{btn → button}/AnimatedThemedPressable.js +1 -1
- package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -0
- package/lib/module/components/{btn/ThemedBtn.js → button/ThemedButton.js} +6 -6
- package/lib/module/components/button/ThemedButton.js.map +1 -0
- package/lib/module/components/{btn/ThemedIconBtn.js → button/ThemedIconButton.js} +5 -5
- package/lib/module/components/button/ThemedIconButton.js.map +1 -0
- package/lib/module/components/{btn/ThemedIconTextBtn.js → button/ThemedIconTextButton.js} +5 -5
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -0
- package/lib/module/components/{btn → button}/ThemedPressable.js +1 -1
- package/lib/module/components/button/ThemedPressable.js.map +1 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +6 -6
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +4 -4
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptListItem.js +2 -2
- package/lib/module/components/overlay/actionSheet/ActionSheetOptListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOpts.js +4 -4
- package/lib/module/components/overlay/actionSheet/ActionSheetOpts.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +4 -4
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/alert/Alert.js +16 -16
- package/lib/module/components/overlay/alert/Alert.js.map +1 -1
- package/lib/module/components/overlay/alert/{AlertBtn.js → AlertButton.js} +16 -16
- package/lib/module/components/overlay/alert/AlertButton.js.map +1 -0
- package/lib/module/components/overlay/alert/{AlertBtns.js → AlertButtons.js} +19 -19
- package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -0
- package/lib/module/components/overlay/alert/AlertWrap.js +4 -4
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedModal.js +1 -1
- package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
- package/lib/module/components/switch/ThemedSwitch.js +1 -1
- package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
- package/lib/module/hooks/{btn.js → button.js} +2 -2
- package/lib/module/hooks/button.js.map +1 -0
- package/lib/module/hooks/switch.js +1 -1
- package/lib/module/hooks/switch.js.map +1 -1
- package/lib/module/index.js +8 -8
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/button.js +4 -0
- package/lib/module/types/{btn.js.map → button.js.map} +1 -1
- package/lib/module/utils/button/const.js +13 -0
- package/lib/module/utils/button/const.js.map +1 -0
- package/lib/module/utils/overlay/const.js +5 -5
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/theme/const.js +3 -3
- package/lib/module/utils/theme/const.js.map +1 -1
- package/lib/typescript/commonjs/src/components/button/AnimatedPressable.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/{btn → button}/AnimatedThemedPressable.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/button/AnimatedThemedPressable.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/ThemedButton.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/ThemedButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/ThemedIconButton.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/ThemedIconButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/ThemedIconTextButton.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/button/ThemedIconTextButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/{btn → button}/ThemedPressable.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/button/ThemedPressable.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertButton.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertButtons.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertButtons.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertWrap.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/text/Text.d.ts +38 -38
- package/lib/typescript/commonjs/src/components/view/AnimatedBox.d.ts +31 -31
- package/lib/typescript/commonjs/src/components/view/Box.d.ts +62 -62
- package/lib/typescript/commonjs/src/hooks/{btn.d.ts → button.d.ts} +42 -42
- package/lib/typescript/commonjs/src/hooks/{btn.d.ts.map → button.d.ts.map} +1 -1
- package/lib/typescript/commonjs/src/hooks/theme.d.ts +6 -6
- package/lib/typescript/commonjs/src/index.d.ts +8 -8
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/test/utils/func.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/{btn.d.ts → button.d.ts} +7 -7
- package/lib/typescript/commonjs/src/types/button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/overlay.d.ts +15 -15
- package/lib/typescript/commonjs/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/switch.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/switch.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/{btn → button}/const.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/button/const.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/overlay/const.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/overlay/func.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/theme/const.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/theme/const.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/theme/restyle.d.ts +13 -13
- package/lib/typescript/commonjs/src/utils/theme/restyle.d.ts.map +1 -1
- package/lib/typescript/module/src/components/button/AnimatedPressable.d.ts.map +1 -0
- package/lib/typescript/module/src/components/{btn → button}/AnimatedThemedPressable.d.ts +1 -1
- package/lib/typescript/module/src/components/button/AnimatedThemedPressable.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/ThemedButton.d.ts +5 -0
- package/lib/typescript/module/src/components/button/ThemedButton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/ThemedIconButton.d.ts +5 -0
- package/lib/typescript/module/src/components/button/ThemedIconButton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/ThemedIconTextButton.d.ts +5 -0
- package/lib/typescript/module/src/components/button/ThemedIconTextButton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/{btn → button}/ThemedPressable.d.ts +1 -1
- package/lib/typescript/module/src/components/button/ThemedPressable.d.ts.map +1 -0
- package/lib/typescript/module/src/components/overlay/alert/AlertButton.d.ts +5 -0
- package/lib/typescript/module/src/components/overlay/alert/AlertButton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/overlay/alert/AlertButtons.d.ts +5 -0
- package/lib/typescript/module/src/components/overlay/alert/AlertButtons.d.ts.map +1 -0
- package/lib/typescript/module/src/components/overlay/alert/AlertWrap.d.ts +1 -1
- package/lib/typescript/module/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/module/src/components/text/Text.d.ts +38 -38
- package/lib/typescript/module/src/components/view/AnimatedBox.d.ts +31 -31
- package/lib/typescript/module/src/components/view/Box.d.ts +62 -62
- package/lib/typescript/module/src/hooks/{btn.d.ts → button.d.ts} +42 -42
- package/lib/typescript/module/src/hooks/{btn.d.ts.map → button.d.ts.map} +1 -1
- package/lib/typescript/module/src/hooks/theme.d.ts +6 -6
- package/lib/typescript/module/src/index.d.ts +8 -8
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/test/utils/func.d.ts +2 -2
- package/lib/typescript/module/src/types/{btn.d.ts → button.d.ts} +7 -7
- package/lib/typescript/module/src/types/button.d.ts.map +1 -0
- package/lib/typescript/module/src/types/overlay.d.ts +15 -15
- package/lib/typescript/module/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/module/src/types/switch.d.ts +1 -1
- package/lib/typescript/module/src/types/switch.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/{btn → button}/const.d.ts +1 -1
- package/lib/typescript/module/src/utils/button/const.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/overlay/const.d.ts +1 -1
- package/lib/typescript/module/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/overlay/func.d.ts +1 -1
- package/lib/typescript/module/src/utils/overlay/func.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/theme/const.d.ts +3 -3
- package/lib/typescript/module/src/utils/theme/const.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/theme/restyle.d.ts +13 -13
- package/lib/typescript/module/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/commonjs/components/btn/AnimatedPressable.js.map +0 -1
- package/lib/commonjs/components/btn/AnimatedThemedPressable.js.map +0 -1
- package/lib/commonjs/components/btn/ThemedBtn.js.map +0 -1
- package/lib/commonjs/components/btn/ThemedIconBtn.js.map +0 -1
- package/lib/commonjs/components/btn/ThemedIconTextBtn.js.map +0 -1
- package/lib/commonjs/components/btn/ThemedPressable.js.map +0 -1
- package/lib/commonjs/components/overlay/alert/AlertBtn.js.map +0 -1
- package/lib/commonjs/components/overlay/alert/AlertBtns.js.map +0 -1
- package/lib/commonjs/hooks/btn.js.map +0 -1
- package/lib/commonjs/utils/btn/const.js +0 -17
- package/lib/commonjs/utils/btn/const.js.map +0 -1
- package/lib/module/components/btn/AnimatedPressable.js.map +0 -1
- package/lib/module/components/btn/AnimatedThemedPressable.js.map +0 -1
- package/lib/module/components/btn/ThemedBtn.js.map +0 -1
- package/lib/module/components/btn/ThemedIconBtn.js.map +0 -1
- package/lib/module/components/btn/ThemedIconTextBtn.js.map +0 -1
- package/lib/module/components/btn/ThemedPressable.js.map +0 -1
- package/lib/module/components/overlay/alert/AlertBtn.js.map +0 -1
- package/lib/module/components/overlay/alert/AlertBtns.js.map +0 -1
- package/lib/module/hooks/btn.js.map +0 -1
- package/lib/module/types/btn.js +0 -4
- package/lib/module/utils/btn/const.js +0 -13
- package/lib/module/utils/btn/const.js.map +0 -1
- package/lib/typescript/commonjs/src/components/btn/AnimatedPressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/btn/AnimatedThemedPressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/btn/ThemedBtn.d.ts +0 -5
- package/lib/typescript/commonjs/src/components/btn/ThemedBtn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/btn/ThemedIconBtn.d.ts +0 -5
- package/lib/typescript/commonjs/src/components/btn/ThemedIconBtn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/btn/ThemedIconTextBtn.d.ts +0 -5
- package/lib/typescript/commonjs/src/components/btn/ThemedIconTextBtn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/btn/ThemedPressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertBtn.d.ts +0 -5
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertBtn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertBtns.d.ts +0 -5
- package/lib/typescript/commonjs/src/components/overlay/alert/AlertBtns.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/btn.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/btn/const.d.ts.map +0 -1
- package/lib/typescript/module/src/components/btn/AnimatedPressable.d.ts.map +0 -1
- package/lib/typescript/module/src/components/btn/AnimatedThemedPressable.d.ts.map +0 -1
- package/lib/typescript/module/src/components/btn/ThemedBtn.d.ts +0 -5
- package/lib/typescript/module/src/components/btn/ThemedBtn.d.ts.map +0 -1
- package/lib/typescript/module/src/components/btn/ThemedIconBtn.d.ts +0 -5
- package/lib/typescript/module/src/components/btn/ThemedIconBtn.d.ts.map +0 -1
- package/lib/typescript/module/src/components/btn/ThemedIconTextBtn.d.ts +0 -5
- package/lib/typescript/module/src/components/btn/ThemedIconTextBtn.d.ts.map +0 -1
- package/lib/typescript/module/src/components/btn/ThemedPressable.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/alert/AlertBtn.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/alert/AlertBtn.d.ts.map +0 -1
- package/lib/typescript/module/src/components/overlay/alert/AlertBtns.d.ts +0 -5
- package/lib/typescript/module/src/components/overlay/alert/AlertBtns.d.ts.map +0 -1
- package/lib/typescript/module/src/types/btn.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/btn/const.d.ts.map +0 -1
- /package/lib/commonjs/components/{btn → button}/AnimatedPressable.js +0 -0
- /package/lib/module/components/{btn → button}/AnimatedPressable.js +0 -0
- /package/lib/typescript/commonjs/src/components/{btn → button}/AnimatedPressable.d.ts +0 -0
- /package/lib/typescript/module/src/components/{btn → button}/AnimatedPressable.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ViewStyle } from 'react-native';
|
|
2
|
-
import type { AnimatedThemedPressableProps, OnPressDelayConfig, PressableOnPress, ThemedPressableProps } from '../types/
|
|
3
|
-
import {
|
|
2
|
+
import type { AnimatedThemedPressableProps, OnPressDelayConfig, PressableOnPress, ThemedPressableProps } from '../types/button';
|
|
3
|
+
import { ButtonScaleRatio } from '../utils/button/const';
|
|
4
4
|
export declare function useDelayedOnPress(onPress: ThemedPressableProps['onPress'], onPressDelayConfig?: OnPressDelayConfig): PressableOnPress;
|
|
5
5
|
export declare function useThemedPressable({ onPress, onPressDelayConfig, ...props }: ThemedPressableProps | AnimatedThemedPressableProps, animated?: boolean): {
|
|
6
6
|
onPress: PressableOnPress;
|
|
@@ -113,8 +113,8 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
113
113
|
android_ripple?: import("react-native").PressableAndroidRippleConfig | null | undefined;
|
|
114
114
|
testOnly_pressed?: null | boolean | undefined | undefined;
|
|
115
115
|
unstable_pressDelay?: number | undefined | undefined;
|
|
116
|
-
scaleRatio?:
|
|
117
|
-
backgroundColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
116
|
+
scaleRatio?: ButtonScaleRatio | number;
|
|
117
|
+
backgroundColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
118
118
|
smallPhone: number;
|
|
119
119
|
phone: number;
|
|
120
120
|
smallTablet: number;
|
|
@@ -464,112 +464,112 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
464
464
|
tablet: number;
|
|
465
465
|
desktop: number;
|
|
466
466
|
}>;
|
|
467
|
-
borderColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
467
|
+
borderColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
468
468
|
smallPhone: number;
|
|
469
469
|
phone: number;
|
|
470
470
|
smallTablet: number;
|
|
471
471
|
tablet: number;
|
|
472
472
|
desktop: number;
|
|
473
473
|
}> | undefined;
|
|
474
|
-
borderTopColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
474
|
+
borderTopColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
475
475
|
smallPhone: number;
|
|
476
476
|
phone: number;
|
|
477
477
|
smallTablet: number;
|
|
478
478
|
tablet: number;
|
|
479
479
|
desktop: number;
|
|
480
480
|
}> | undefined;
|
|
481
|
-
borderRightColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
481
|
+
borderRightColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
482
482
|
smallPhone: number;
|
|
483
483
|
phone: number;
|
|
484
484
|
smallTablet: number;
|
|
485
485
|
tablet: number;
|
|
486
486
|
desktop: number;
|
|
487
487
|
}> | undefined;
|
|
488
|
-
borderLeftColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
488
|
+
borderLeftColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
489
489
|
smallPhone: number;
|
|
490
490
|
phone: number;
|
|
491
491
|
smallTablet: number;
|
|
492
492
|
tablet: number;
|
|
493
493
|
desktop: number;
|
|
494
494
|
}> | undefined;
|
|
495
|
-
borderBottomColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
495
|
+
borderBottomColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
496
496
|
smallPhone: number;
|
|
497
497
|
phone: number;
|
|
498
498
|
smallTablet: number;
|
|
499
499
|
tablet: number;
|
|
500
500
|
desktop: number;
|
|
501
501
|
}> | undefined;
|
|
502
|
-
borderStartColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
502
|
+
borderStartColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
503
503
|
smallPhone: number;
|
|
504
504
|
phone: number;
|
|
505
505
|
smallTablet: number;
|
|
506
506
|
tablet: number;
|
|
507
507
|
desktop: number;
|
|
508
508
|
}> | undefined;
|
|
509
|
-
borderEndColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
509
|
+
borderEndColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
510
510
|
smallPhone: number;
|
|
511
511
|
phone: number;
|
|
512
512
|
smallTablet: number;
|
|
513
513
|
tablet: number;
|
|
514
514
|
desktop: number;
|
|
515
515
|
}> | undefined;
|
|
516
|
-
borderRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
516
|
+
borderRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
517
517
|
smallPhone: number;
|
|
518
518
|
phone: number;
|
|
519
519
|
smallTablet: number;
|
|
520
520
|
tablet: number;
|
|
521
521
|
desktop: number;
|
|
522
522
|
}> | undefined;
|
|
523
|
-
borderBottomLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
523
|
+
borderBottomLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
524
524
|
smallPhone: number;
|
|
525
525
|
phone: number;
|
|
526
526
|
smallTablet: number;
|
|
527
527
|
tablet: number;
|
|
528
528
|
desktop: number;
|
|
529
529
|
}> | undefined;
|
|
530
|
-
borderBottomRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
530
|
+
borderBottomRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
531
531
|
smallPhone: number;
|
|
532
532
|
phone: number;
|
|
533
533
|
smallTablet: number;
|
|
534
534
|
tablet: number;
|
|
535
535
|
desktop: number;
|
|
536
536
|
}> | undefined;
|
|
537
|
-
borderTopLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
537
|
+
borderTopLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
538
538
|
smallPhone: number;
|
|
539
539
|
phone: number;
|
|
540
540
|
smallTablet: number;
|
|
541
541
|
tablet: number;
|
|
542
542
|
desktop: number;
|
|
543
543
|
}> | undefined;
|
|
544
|
-
borderTopRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
544
|
+
borderTopRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
545
545
|
smallPhone: number;
|
|
546
546
|
phone: number;
|
|
547
547
|
smallTablet: number;
|
|
548
548
|
tablet: number;
|
|
549
549
|
desktop: number;
|
|
550
550
|
}> | undefined;
|
|
551
|
-
borderBottomStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
551
|
+
borderBottomStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
552
552
|
smallPhone: number;
|
|
553
553
|
phone: number;
|
|
554
554
|
smallTablet: number;
|
|
555
555
|
tablet: number;
|
|
556
556
|
desktop: number;
|
|
557
557
|
}> | undefined;
|
|
558
|
-
borderBottomEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
558
|
+
borderBottomEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
559
559
|
smallPhone: number;
|
|
560
560
|
phone: number;
|
|
561
561
|
smallTablet: number;
|
|
562
562
|
tablet: number;
|
|
563
563
|
desktop: number;
|
|
564
564
|
}> | undefined;
|
|
565
|
-
borderTopStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
565
|
+
borderTopStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
566
566
|
smallPhone: number;
|
|
567
567
|
phone: number;
|
|
568
568
|
smallTablet: number;
|
|
569
569
|
tablet: number;
|
|
570
570
|
desktop: number;
|
|
571
571
|
}> | undefined;
|
|
572
|
-
borderTopEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
572
|
+
borderTopEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
573
573
|
smallPhone: number;
|
|
574
574
|
phone: number;
|
|
575
575
|
smallTablet: number;
|
|
@@ -607,7 +607,7 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
607
607
|
tablet: number;
|
|
608
608
|
desktop: number;
|
|
609
609
|
}>;
|
|
610
|
-
shadowColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
610
|
+
shadowColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
611
611
|
smallPhone: number;
|
|
612
612
|
phone: number;
|
|
613
613
|
smallTablet: number;
|
|
@@ -817,7 +817,7 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
817
817
|
tablet: number;
|
|
818
818
|
desktop: number;
|
|
819
819
|
}> | undefined;
|
|
820
|
-
bg?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
820
|
+
bg?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
821
821
|
smallPhone: number;
|
|
822
822
|
phone: number;
|
|
823
823
|
smallTablet: number;
|
|
@@ -1175,112 +1175,112 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
1175
1175
|
tablet: number;
|
|
1176
1176
|
desktop: number;
|
|
1177
1177
|
}>;
|
|
1178
|
-
borderColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1178
|
+
borderColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1179
1179
|
smallPhone: number;
|
|
1180
1180
|
phone: number;
|
|
1181
1181
|
smallTablet: number;
|
|
1182
1182
|
tablet: number;
|
|
1183
1183
|
desktop: number;
|
|
1184
1184
|
}> | undefined;
|
|
1185
|
-
borderTopColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1185
|
+
borderTopColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1186
1186
|
smallPhone: number;
|
|
1187
1187
|
phone: number;
|
|
1188
1188
|
smallTablet: number;
|
|
1189
1189
|
tablet: number;
|
|
1190
1190
|
desktop: number;
|
|
1191
1191
|
}> | undefined;
|
|
1192
|
-
borderRightColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1192
|
+
borderRightColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1193
1193
|
smallPhone: number;
|
|
1194
1194
|
phone: number;
|
|
1195
1195
|
smallTablet: number;
|
|
1196
1196
|
tablet: number;
|
|
1197
1197
|
desktop: number;
|
|
1198
1198
|
}> | undefined;
|
|
1199
|
-
borderLeftColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1199
|
+
borderLeftColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1200
1200
|
smallPhone: number;
|
|
1201
1201
|
phone: number;
|
|
1202
1202
|
smallTablet: number;
|
|
1203
1203
|
tablet: number;
|
|
1204
1204
|
desktop: number;
|
|
1205
1205
|
}> | undefined;
|
|
1206
|
-
borderBottomColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1206
|
+
borderBottomColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1207
1207
|
smallPhone: number;
|
|
1208
1208
|
phone: number;
|
|
1209
1209
|
smallTablet: number;
|
|
1210
1210
|
tablet: number;
|
|
1211
1211
|
desktop: number;
|
|
1212
1212
|
}> | undefined;
|
|
1213
|
-
borderStartColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1213
|
+
borderStartColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1214
1214
|
smallPhone: number;
|
|
1215
1215
|
phone: number;
|
|
1216
1216
|
smallTablet: number;
|
|
1217
1217
|
tablet: number;
|
|
1218
1218
|
desktop: number;
|
|
1219
1219
|
}> | undefined;
|
|
1220
|
-
borderEndColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1220
|
+
borderEndColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1221
1221
|
smallPhone: number;
|
|
1222
1222
|
phone: number;
|
|
1223
1223
|
smallTablet: number;
|
|
1224
1224
|
tablet: number;
|
|
1225
1225
|
desktop: number;
|
|
1226
1226
|
}> | undefined;
|
|
1227
|
-
borderRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1227
|
+
borderRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1228
1228
|
smallPhone: number;
|
|
1229
1229
|
phone: number;
|
|
1230
1230
|
smallTablet: number;
|
|
1231
1231
|
tablet: number;
|
|
1232
1232
|
desktop: number;
|
|
1233
1233
|
}> | undefined;
|
|
1234
|
-
borderBottomLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1234
|
+
borderBottomLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1235
1235
|
smallPhone: number;
|
|
1236
1236
|
phone: number;
|
|
1237
1237
|
smallTablet: number;
|
|
1238
1238
|
tablet: number;
|
|
1239
1239
|
desktop: number;
|
|
1240
1240
|
}> | undefined;
|
|
1241
|
-
borderBottomRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1241
|
+
borderBottomRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1242
1242
|
smallPhone: number;
|
|
1243
1243
|
phone: number;
|
|
1244
1244
|
smallTablet: number;
|
|
1245
1245
|
tablet: number;
|
|
1246
1246
|
desktop: number;
|
|
1247
1247
|
}> | undefined;
|
|
1248
|
-
borderTopLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1248
|
+
borderTopLeftRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1249
1249
|
smallPhone: number;
|
|
1250
1250
|
phone: number;
|
|
1251
1251
|
smallTablet: number;
|
|
1252
1252
|
tablet: number;
|
|
1253
1253
|
desktop: number;
|
|
1254
1254
|
}> | undefined;
|
|
1255
|
-
borderTopRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1255
|
+
borderTopRightRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1256
1256
|
smallPhone: number;
|
|
1257
1257
|
phone: number;
|
|
1258
1258
|
smallTablet: number;
|
|
1259
1259
|
tablet: number;
|
|
1260
1260
|
desktop: number;
|
|
1261
1261
|
}> | undefined;
|
|
1262
|
-
borderBottomStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1262
|
+
borderBottomStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1263
1263
|
smallPhone: number;
|
|
1264
1264
|
phone: number;
|
|
1265
1265
|
smallTablet: number;
|
|
1266
1266
|
tablet: number;
|
|
1267
1267
|
desktop: number;
|
|
1268
1268
|
}> | undefined;
|
|
1269
|
-
borderBottomEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1269
|
+
borderBottomEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1270
1270
|
smallPhone: number;
|
|
1271
1271
|
phone: number;
|
|
1272
1272
|
smallTablet: number;
|
|
1273
1273
|
tablet: number;
|
|
1274
1274
|
desktop: number;
|
|
1275
1275
|
}> | undefined;
|
|
1276
|
-
borderTopStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1276
|
+
borderTopStartRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1277
1277
|
smallPhone: number;
|
|
1278
1278
|
phone: number;
|
|
1279
1279
|
smallTablet: number;
|
|
1280
1280
|
tablet: number;
|
|
1281
1281
|
desktop: number;
|
|
1282
1282
|
}> | undefined;
|
|
1283
|
-
borderTopEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "
|
|
1283
|
+
borderTopEndRadius?: import("@shopify/restyle").ResponsiveValue<"s" | "m" | "l" | "round", {
|
|
1284
1284
|
smallPhone: number;
|
|
1285
1285
|
phone: number;
|
|
1286
1286
|
smallTablet: number;
|
|
@@ -1493,14 +1493,14 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
1493
1493
|
tablet: number;
|
|
1494
1494
|
desktop: number;
|
|
1495
1495
|
}> | undefined;
|
|
1496
|
-
backgroundColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1496
|
+
backgroundColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1497
1497
|
smallPhone: number;
|
|
1498
1498
|
phone: number;
|
|
1499
1499
|
smallTablet: number;
|
|
1500
1500
|
tablet: number;
|
|
1501
1501
|
desktop: number;
|
|
1502
1502
|
}> | undefined;
|
|
1503
|
-
bg?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1503
|
+
bg?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1504
1504
|
smallPhone: number;
|
|
1505
1505
|
phone: number;
|
|
1506
1506
|
smallTablet: number;
|
|
@@ -1579,7 +1579,7 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
1579
1579
|
accessibilityShowsLargeContentViewer?: boolean | undefined | undefined;
|
|
1580
1580
|
accessibilityLargeContentTitle?: string | undefined | undefined;
|
|
1581
1581
|
accessibilityRespondsToUserInteraction?: boolean | undefined | undefined;
|
|
1582
|
-
shadowColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "
|
|
1582
|
+
shadowColor?: import("@shopify/restyle").ResponsiveValue<"transparent" | "themePri" | "themeSec" | "themePriT" | "background" | "backgroundOverlay" | "text" | "textOverlay" | "textButton" | "border" | "separator" | "err", {
|
|
1583
1583
|
smallPhone: number;
|
|
1584
1584
|
phone: number;
|
|
1585
1585
|
smallTablet: number;
|
|
@@ -1644,4 +1644,4 @@ export declare function useThemedPressable({ onPress, onPressDelayConfig, ...pro
|
|
|
1644
1644
|
unstable_pressDelay?: number | undefined | undefined;
|
|
1645
1645
|
};
|
|
1646
1646
|
};
|
|
1647
|
-
//# sourceMappingURL=
|
|
1647
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/button.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAEhB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAoB,MAAM,uBAAuB,CAAC;AAI3E,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,EACxC,kBAAkB,CAAC,EAAE,kBAAkB,oBAqDxC;AAED,wBAAgB,kBAAkB,CAChC,EACE,OAAO,EACP,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,oBAAoB,GAAG,4BAA4B,EACtD,QAAQ,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCjB"}
|
|
@@ -11,7 +11,7 @@ export declare function useTheme(): {
|
|
|
11
11
|
backgroundOverlay: import("..").Palette;
|
|
12
12
|
text: import("..").Palette;
|
|
13
13
|
textOverlay: import("..").Palette;
|
|
14
|
-
|
|
14
|
+
textButton: import("..").Palette;
|
|
15
15
|
border: import("..").Palette;
|
|
16
16
|
separator: import("..").Palette;
|
|
17
17
|
err: import("..").Palette;
|
|
@@ -44,7 +44,7 @@ export declare function useTheme(): {
|
|
|
44
44
|
s: import("..").BorderRadius;
|
|
45
45
|
m: import("..").BorderRadius;
|
|
46
46
|
l: import("..").BorderRadius;
|
|
47
|
-
|
|
47
|
+
round: import("..").BorderRadius;
|
|
48
48
|
};
|
|
49
49
|
textVariants: {
|
|
50
50
|
textXSBold: {
|
|
@@ -118,7 +118,7 @@ export declare function useThemeColors(): {
|
|
|
118
118
|
backgroundOverlay: import("..").Palette;
|
|
119
119
|
text: import("..").Palette;
|
|
120
120
|
textOverlay: import("..").Palette;
|
|
121
|
-
|
|
121
|
+
textButton: import("..").Palette;
|
|
122
122
|
border: import("..").Palette;
|
|
123
123
|
separator: import("..").Palette;
|
|
124
124
|
err: import("..").Palette;
|
|
@@ -153,7 +153,7 @@ export declare function useThemeBorderRadii(): {
|
|
|
153
153
|
s: import("..").BorderRadius;
|
|
154
154
|
m: import("..").BorderRadius;
|
|
155
155
|
l: import("..").BorderRadius;
|
|
156
|
-
|
|
156
|
+
round: import("..").BorderRadius;
|
|
157
157
|
};
|
|
158
158
|
export declare function useThemeTextVariants(): {
|
|
159
159
|
textXSBold: {
|
|
@@ -228,7 +228,7 @@ export declare function useColorSchemeTheme(overrideColorScheme?: ColorSchemeNam
|
|
|
228
228
|
backgroundOverlay: import("..").Palette;
|
|
229
229
|
text: import("..").Palette;
|
|
230
230
|
textOverlay: import("..").Palette;
|
|
231
|
-
|
|
231
|
+
textButton: import("..").Palette;
|
|
232
232
|
border: import("..").Palette;
|
|
233
233
|
separator: import("..").Palette;
|
|
234
234
|
err: import("..").Palette;
|
|
@@ -261,7 +261,7 @@ export declare function useColorSchemeTheme(overrideColorScheme?: ColorSchemeNam
|
|
|
261
261
|
s: import("..").BorderRadius;
|
|
262
262
|
m: import("..").BorderRadius;
|
|
263
263
|
l: import("..").BorderRadius;
|
|
264
|
-
|
|
264
|
+
round: import("..").BorderRadius;
|
|
265
265
|
};
|
|
266
266
|
textVariants: {
|
|
267
267
|
textXSBold: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as AnimatedThemedPressable } from './components/
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as ThemedPressable } from './components/
|
|
1
|
+
export { default as AnimatedThemedPressable } from './components/button/AnimatedThemedPressable';
|
|
2
|
+
export { default as ThemedButton } from './components/button/ThemedButton';
|
|
3
|
+
export { default as ThemedIconButton } from './components/button/ThemedIconButton';
|
|
4
|
+
export { default as ThemedIconTextButton } from './components/button/ThemedIconTextButton';
|
|
5
|
+
export { default as ThemedPressable } from './components/button/ThemedPressable';
|
|
6
6
|
export { default as ThemedIcon } from './components/icon/ThemedIcon';
|
|
7
7
|
export { default as List } from './components/list/List';
|
|
8
8
|
export { default as ThemedLoading } from './components/loading/ThemedLoading';
|
|
@@ -23,7 +23,7 @@ export { default as AnimatedThemedView } from './components/view/AnimatedThemedV
|
|
|
23
23
|
export { default as ThemedScreenWrap } from './components/view/ThemedScreenWrap';
|
|
24
24
|
export { default as ThemedScrollView } from './components/view/ThemedScrollView';
|
|
25
25
|
export { default as ThemedView } from './components/view/ThemedView';
|
|
26
|
-
export * from './hooks/
|
|
26
|
+
export * from './hooks/button';
|
|
27
27
|
export * from './hooks/list';
|
|
28
28
|
export * from './hooks/overlay';
|
|
29
29
|
export * from './hooks/reanimated';
|
|
@@ -31,7 +31,7 @@ export * from './hooks/separator';
|
|
|
31
31
|
export * from './hooks/style';
|
|
32
32
|
export * from './hooks/theme';
|
|
33
33
|
export * from './hooks/view';
|
|
34
|
-
export * from './types/
|
|
34
|
+
export * from './types/button';
|
|
35
35
|
export * from './types/icon';
|
|
36
36
|
export * from './types/list';
|
|
37
37
|
export * from './types/loading';
|
|
@@ -45,7 +45,7 @@ export * from './types/switch';
|
|
|
45
45
|
export * from './types/text';
|
|
46
46
|
export * from './types/theme';
|
|
47
47
|
export * from './types/view';
|
|
48
|
-
export * from './utils/
|
|
48
|
+
export * from './utils/button/const';
|
|
49
49
|
export * from './utils/overlay/const';
|
|
50
50
|
export * from './utils/style/const';
|
|
51
51
|
export * from './utils/style/func';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AA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AAI,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAErE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAE7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAE7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare function getThemeColors(): Promise<{
|
|
|
7
7
|
backgroundOverlay: import("../..").Palette;
|
|
8
8
|
text: import("../..").Palette;
|
|
9
9
|
textOverlay: import("../..").Palette;
|
|
10
|
-
|
|
10
|
+
textButton: import("../..").Palette;
|
|
11
11
|
border: import("../..").Palette;
|
|
12
12
|
separator: import("../..").Palette;
|
|
13
13
|
err: import("../..").Palette;
|
|
@@ -40,7 +40,7 @@ export declare function getThemeBorderRadii(): Promise<{
|
|
|
40
40
|
s: import("../..").BorderRadius;
|
|
41
41
|
m: import("../..").BorderRadius;
|
|
42
42
|
l: import("../..").BorderRadius;
|
|
43
|
-
|
|
43
|
+
round: import("../..").BorderRadius;
|
|
44
44
|
}>;
|
|
45
45
|
export declare function getThemeTextVariants(): Promise<{
|
|
46
46
|
textXSBold: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { GestureResponderEvent, PressableProps as RNPressableProps, ViewStyle } from 'react-native';
|
|
3
3
|
import type { AnimatedStyle } from 'react-native-reanimated';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ButtonScaleRatio, OnPressDelayType } from '../utils/button/const';
|
|
5
5
|
import type { CustomThemedIconProps } from './icon';
|
|
6
6
|
import type { StyleOrStyleProp } from './style';
|
|
7
7
|
import type { CustomThemedTextProps, IconTextProps } from './text';
|
|
@@ -14,7 +14,7 @@ export type OnPressDelayConfig<T = OnPressDelayType> = {
|
|
|
14
14
|
wait: number;
|
|
15
15
|
};
|
|
16
16
|
export type PressableProps = Omit<RNPressableProps, 'style'> & {
|
|
17
|
-
scaleRatio?:
|
|
17
|
+
scaleRatio?: ButtonScaleRatio | number;
|
|
18
18
|
style?: StyleOrStyleProp<ViewStyle>;
|
|
19
19
|
onPressDelayConfig?: OnPressDelayConfig;
|
|
20
20
|
};
|
|
@@ -22,11 +22,11 @@ export type ThemedPressableProps = PressableProps & ThemeViewProps;
|
|
|
22
22
|
export type AnimatedThemedPressableProps = Omit<ThemedPressableProps, 'scaleRatio'> & {
|
|
23
23
|
style?: AnimatedStyle<ViewStyle>;
|
|
24
24
|
};
|
|
25
|
-
type
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
25
|
+
type ButtonProps = Omit<ThemedPressableProps, 'onPress' | 'children'> & Required<Pick<ThemedPressableProps, 'onPress'>>;
|
|
26
|
+
export type ThemedButtonProps = ButtonProps & CustomThemedTextProps;
|
|
27
|
+
export type ThemedIconButtonProps = ButtonProps & CustomThemedIconProps;
|
|
28
|
+
export type ThemedIconTextButtonProps = PropsWithChildren<ButtonProps & IconTextProps & {
|
|
29
29
|
iconTextProps?: ThemedViewProps;
|
|
30
30
|
}>;
|
|
31
31
|
export {};
|
|
32
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/types/button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,IAAI,gBAAgB,EAClC,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;AAEtE,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAEvD,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,gBAAgB,IAAI;IACrD,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG;IAC7D,UAAU,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAAC;IACvC,KAAK,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACpC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,cAAc,CAAC;AAEnE,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,oBAAoB,EACpB,YAAY,CACb,GAAG;IACF,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAClC,CAAC;AAEF,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,SAAS,GAAG,UAAU,CAAC,GACnE,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,qBAAqB,CAAC;AAEpE,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,qBAAqB,CAAC;AAExE,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CACvD,WAAW,GAAG,aAAa,GAAG;IAAE,aAAa,CAAC,EAAE,eAAe,CAAA;CAAE,CAClE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModalProps, ViewStyle } from 'react-native';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { AlertButtonType, OverlayDismissResultType, ToastDuration, ToastType } from '../utils/overlay/const';
|
|
3
|
+
import type { ThemedButtonProps } from './button';
|
|
4
4
|
import type { ListAnimatedRefObj, ListProps } from './list';
|
|
5
5
|
import type { CustomThemedLoadingProps } from './loading';
|
|
6
6
|
import type { CustomAnimation } from './reanimated';
|
|
@@ -18,7 +18,7 @@ export type OverlayOnDismiss<T> = (result: T) => void;
|
|
|
18
18
|
type OverlayDismissToastResult = OverlayDismissBaseResult & Pick<ThemedToastProps, 'type' | 'text' | 'duration'> & {
|
|
19
19
|
resultType: OverlayDismissResultType.Toast;
|
|
20
20
|
};
|
|
21
|
-
export type OverlayDismissAlertResult = OverlayDismissBaseResult & Pick<AlertProps, 'title' | 'desc'> & Pick<
|
|
21
|
+
export type OverlayDismissAlertResult = OverlayDismissBaseResult & Pick<AlertProps, 'title' | 'desc'> & Pick<AlertButtonProps, 'text' | 'type'> & {
|
|
22
22
|
resultType: OverlayDismissResultType.Alert;
|
|
23
23
|
};
|
|
24
24
|
export type ThemedToastProps = Omit<OverlayProps, 'onDismiss'> & Omit<AnimatedThemedViewProps, 'children'> & CustomThemedTextProps & Pick<InsetsStyleConfig, 'insetsPadding' | 'insetPaddingTop' | 'insetPaddingBottom' | 'insetPaddingLeft' | 'insetPaddingRight'> & {
|
|
@@ -30,7 +30,7 @@ export type ThemedModalProps = Partial<OverlayProps> & ThemedViewProps & {
|
|
|
30
30
|
modalProps?: ModalProps;
|
|
31
31
|
};
|
|
32
32
|
export type ThemedLoadingModalProps = Omit<ThemedModalProps, 'children'> & CustomThemedLoadingProps & Partial<CustomThemedTextProps>;
|
|
33
|
-
export type AlertContextVal = Partial<Pick<AlertProps, '
|
|
33
|
+
export type AlertContextVal = Partial<Pick<AlertProps, 'buttonProps'> & {
|
|
34
34
|
onDismiss: (result?: Partial<OverlayDismissAlertResult>) => void;
|
|
35
35
|
}>;
|
|
36
36
|
export type AlertProps = Omit<OverlayProps, 'onDismiss'> & {
|
|
@@ -41,16 +41,16 @@ export type AlertProps = Omit<OverlayProps, 'onDismiss'> & {
|
|
|
41
41
|
titleTextProps?: Omit<CustomThemedTextProps, 'text'>;
|
|
42
42
|
desc?: string;
|
|
43
43
|
descTextProps?: Omit<CustomThemedTextProps, 'text'>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
buttons?: AlertButtonProps[][];
|
|
45
|
+
buttonsWrapProps?: Omit<ThemedViewProps, 'children'>;
|
|
46
|
+
buttonProps?: Omit<ThemedButtonProps, 'onPress' | 'text'>;
|
|
47
47
|
onDismiss?: OverlayOnDismiss<OverlayDismissAlertResult>;
|
|
48
48
|
};
|
|
49
|
-
export type
|
|
50
|
-
export type
|
|
51
|
-
type?:
|
|
52
|
-
onPress?:
|
|
53
|
-
props?: Omit<
|
|
49
|
+
export type AlertButtonsProps = Pick<AlertProps, 'buttons' | 'buttonsWrapProps'>;
|
|
50
|
+
export type AlertButtonProps = Pick<ThemedButtonProps, 'text'> & {
|
|
51
|
+
type?: AlertButtonType;
|
|
52
|
+
onPress?: ThemedButtonProps['onPress'];
|
|
53
|
+
props?: Omit<ThemedButtonProps, 'onPress' | 'text'>;
|
|
54
54
|
};
|
|
55
55
|
export type ActionSheetProps = (Omit<OverlayProps, 'onDismiss'> & Omit<ActionSheetWrapProps, 'children'> & ActionSheetHeaderProps & {
|
|
56
56
|
title?: string;
|
|
@@ -90,14 +90,14 @@ export type ActionSheetHeaderProps = {
|
|
|
90
90
|
headerShowIcon?: boolean;
|
|
91
91
|
headerWrapProps?: Omit<ThemedViewProps, 'children'>;
|
|
92
92
|
headerTextProps?: Omit<ThemedTextProps, 'children'>;
|
|
93
|
-
|
|
93
|
+
headerIconButtonProps?: Omit<ThemedButtonProps, 'onPress'>;
|
|
94
94
|
};
|
|
95
95
|
export type ActionSheetOptListProps = Omit<ListProps<ActionSheetOpt>, 'ref' | 'data' | 'Item' | 'keyExtractor' | 'extraData'> & {
|
|
96
96
|
ref?: ActionSheetOptListRefObj;
|
|
97
97
|
};
|
|
98
|
-
export type ActionSheetOptListItemProps = Omit<
|
|
98
|
+
export type ActionSheetOptListItemProps = Omit<ThemedButtonProps, 'onPress' | 'text'>;
|
|
99
99
|
export type ActionSheetOptListRefObj = ListAnimatedRefObj<ActionSheetOpt>;
|
|
100
|
-
export type ActionSheetOpt = Partial<Pick<
|
|
100
|
+
export type ActionSheetOpt = Partial<Pick<ThemedButtonProps, 'onPress'>> & {
|
|
101
101
|
text: string;
|
|
102
102
|
props?: ActionSheetOptListItemProps;
|
|
103
103
|
};
|
|
@@ -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;AAE1D,OAAO,KAAK,EACV,
|
|
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;AAE1D,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;AAE1D,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,EACV,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,eAAe,EACf,eAAe,EAEhB,MAAM,QAAQ,CAAC;AAEhB,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,w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