@jamadd/react-native-template-ui 0.8.5 → 0.8.7
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/button/AnimatedThemedPressable.js +13 -3
- package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
- package/lib/module/components/button/ThemedButton.js +84 -23
- package/lib/module/components/button/ThemedButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconButton.js +62 -16
- package/lib/module/components/button/ThemedIconButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconTextButton.js +118 -29
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
- package/lib/module/components/button/ThemedPressable.js +13 -3
- package/lib/module/components/button/ThemedPressable.js.map +1 -1
- package/lib/module/components/icon/ThemedIcon.js +56 -15
- package/lib/module/components/icon/ThemedIcon.js.map +1 -1
- package/lib/module/components/list/List.js +131 -39
- package/lib/module/components/list/List.js.map +1 -1
- package/lib/module/components/loading/ThemedLoading.js +50 -13
- package/lib/module/components/loading/ThemedLoading.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.js +64 -19
- package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +76 -0
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +1 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +19 -8
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +87 -31
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +113 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +1 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +69 -28
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +39 -14
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +58 -25
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +45 -21
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +75 -32
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +72 -30
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +45 -18
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +152 -36
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/alert/Alert.js +142 -51
- package/lib/module/components/overlay/alert/Alert.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButton.js +62 -26
- package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButtons.js +58 -23
- package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertContent.js +76 -17
- package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertWrap.js +125 -43
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js +96 -21
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedModal.js +76 -23
- package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
- package/lib/module/components/overlay/toast/ThemedToast.js +339 -90
- package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
- package/lib/module/components/provider/GestureProvider.js +15 -3
- package/lib/module/components/provider/GestureProvider.js.map +1 -1
- package/lib/module/components/provider/InsetsProvider.js +15 -3
- package/lib/module/components/provider/InsetsProvider.js.map +1 -1
- package/lib/module/components/provider/ReactNativeTemplateProviders.js +23 -11
- package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
- package/lib/module/components/provider/ThemeProvider.js +15 -3
- package/lib/module/components/provider/ThemeProvider.js.map +1 -1
- package/lib/module/components/separator/ThemedSeparator.js +53 -14
- package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
- package/lib/module/components/slider/Slider.js +625 -137
- package/lib/module/components/slider/Slider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.js +178 -54
- package/lib/module/components/slider/ThemedSlider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.web.js +206 -0
- package/lib/module/components/slider/ThemedSlider.web.js.map +1 -0
- package/lib/module/components/slider/ThemedSliderStepIndicator.js +40 -15
- package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
- package/lib/module/components/switch/ThemedSwitch.js +81 -21
- package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
- package/lib/module/components/text/ThemedIconText.js +124 -35
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/components/text/ThemedText.js +15 -3
- package/lib/module/components/text/ThemedText.js.map +1 -1
- package/lib/module/components/view/AnimatedThemedView.js +42 -11
- package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.js +144 -39
- package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.web.js +111 -32
- package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
- package/lib/module/components/view/ThemedScrollView.js +126 -38
- package/lib/module/components/view/ThemedScrollView.js.map +1 -1
- package/lib/module/components/view/ThemedView.js +33 -10
- package/lib/module/components/view/ThemedView.js.map +1 -1
- package/lib/module/hooks/button.js +263 -84
- package/lib/module/hooks/button.js.map +1 -1
- package/lib/module/hooks/list.js +50 -10
- package/lib/module/hooks/list.js.map +1 -1
- package/lib/module/hooks/overlay.js +575 -187
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/hooks/react.js +90 -27
- package/lib/module/hooks/react.js.map +1 -1
- package/lib/module/hooks/reanimated.js.map +1 -1
- package/lib/module/hooks/style.js +43 -18
- package/lib/module/hooks/style.js.map +1 -1
- package/lib/module/hooks/switch.js +182 -43
- package/lib/module/hooks/switch.js.map +1 -1
- package/lib/module/hooks/theme.js +17 -8
- package/lib/module/hooks/theme.js.map +1 -1
- package/lib/module/hooks/view.js +56 -14
- package/lib/module/hooks/view.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/reanimated/func.js +60 -10
- package/lib/module/utils/reanimated/func.js.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +5 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +4 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/Slider.d.ts +3 -2
- package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +5 -0
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +1 -0
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +3 -2
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -2
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +0 -27
- 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/types/list.d.ts +1 -10
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +1 -31
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +0 -33
- package/lib/typescript/src/utils/overlay/const.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/switch/const.d.ts +1 -2
- package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
- package/package.json +14 -15
- package/src/components/button/AnimatedPressable.tsx +0 -7
- package/src/components/button/AnimatedThemedPressable.tsx +0 -12
- package/src/components/button/ThemedButton.tsx +0 -45
- package/src/components/button/ThemedIconButton.tsx +0 -33
- package/src/components/button/ThemedIconTextButton.tsx +0 -56
- package/src/components/button/ThemedPressable.tsx +0 -12
- package/src/components/icon/ThemedIcon.tsx +0 -31
- package/src/components/list/List.tsx +0 -55
- package/src/components/loading/ThemedLoading.tsx +0 -29
- package/src/components/overlay/actionSheet/ActionSheet.tsx +0 -31
- package/src/components/overlay/actionSheet/ActionSheetContentGesture.tsx +0 -15
- package/src/components/overlay/actionSheet/ActionSheetHeader.tsx +0 -72
- package/src/components/overlay/actionSheet/ActionSheetListView.tsx +0 -54
- package/src/components/overlay/actionSheet/ActionSheetListViewContent.tsx +0 -32
- package/src/components/overlay/actionSheet/ActionSheetOptionList.tsx +0 -51
- package/src/components/overlay/actionSheet/ActionSheetOptionListItem.tsx +0 -43
- package/src/components/overlay/actionSheet/ActionSheetOptions.tsx +0 -61
- package/src/components/overlay/actionSheet/ActionSheetScrollView.tsx +0 -57
- package/src/components/overlay/actionSheet/ActionSheetScrollViewContent.tsx +0 -38
- package/src/components/overlay/actionSheet/ActionSheetWrap.tsx +0 -75
- package/src/components/overlay/alert/Alert.tsx +0 -86
- package/src/components/overlay/alert/AlertButton.tsx +0 -41
- package/src/components/overlay/alert/AlertButtons.tsx +0 -32
- package/src/components/overlay/alert/AlertContent.tsx +0 -60
- package/src/components/overlay/alert/AlertWrap.tsx +0 -93
- package/src/components/overlay/modal/ThemedLoadingModal.tsx +0 -47
- package/src/components/overlay/modal/ThemedModal.tsx +0 -42
- package/src/components/overlay/toast/ThemedToast.tsx +0 -160
- package/src/components/provider/GestureProvider.tsx +0 -9
- package/src/components/provider/InsetsProvider.tsx +0 -11
- package/src/components/provider/ReactNativeTemplateProviders.tsx +0 -20
- package/src/components/provider/ThemeProvider.tsx +0 -8
- package/src/components/separator/ThemedSeparator.tsx +0 -24
- package/src/components/slider/Slider.tsx +0 -229
- package/src/components/slider/ThemedSlider.tsx +0 -103
- package/src/components/slider/ThemedSliderStepIndicator.tsx +0 -24
- package/src/components/switch/ThemedSwitch.tsx +0 -49
- package/src/components/text/Text.tsx +0 -7
- package/src/components/text/ThemedIconText.tsx +0 -58
- package/src/components/text/ThemedText.tsx +0 -7
- package/src/components/view/AnimatedThemedView.tsx +0 -18
- package/src/components/view/AnimatedView.tsx +0 -7
- package/src/components/view/Box.tsx +0 -7
- package/src/components/view/ThemedScreenWrap.tsx +0 -48
- package/src/components/view/ThemedScreenWrap.web.tsx +0 -41
- package/src/components/view/ThemedScrollView.tsx +0 -54
- package/src/components/view/ThemedView.tsx +0 -19
- package/src/hooks/button.ts +0 -152
- package/src/hooks/list.ts +0 -42
- package/src/hooks/overlay.ts +0 -471
- package/src/hooks/react.ts +0 -34
- package/src/hooks/reanimated.ts +0 -6
- package/src/hooks/separator.ts +0 -29
- package/src/hooks/style.ts +0 -79
- package/src/hooks/switch.ts +0 -119
- package/src/hooks/theme.ts +0 -65
- package/src/hooks/view.ts +0 -28
- package/src/index.ts +0 -59
- package/src/test/utils/const.ts +0 -9
- package/src/test/utils/func.ts +0 -55
- package/src/test/utils/testingLib.tsx +0 -17
- package/src/types/button.ts +0 -50
- package/src/types/global.d.ts +0 -5
- package/src/types/icon.ts +0 -21
- package/src/types/list.ts +0 -61
- package/src/types/loading.ts +0 -14
- package/src/types/overlay.ts +0 -216
- package/src/types/provider.ts +0 -6
- package/src/types/react.ts +0 -8
- package/src/types/reanimated.ts +0 -11
- package/src/types/separator.ts +0 -28
- package/src/types/slider.ts +0 -59
- package/src/types/style.ts +0 -26
- package/src/types/switch.ts +0 -31
- package/src/types/text.ts +0 -25
- package/src/types/theme.ts +0 -39
- package/src/types/view.ts +0 -58
- package/src/utils/button/const.ts +0 -10
- package/src/utils/overlay/const.ts +0 -77
- package/src/utils/overlay/func.ts +0 -107
- package/src/utils/reanimated/func.ts +0 -39
- package/src/utils/slider/const.ts +0 -23
- package/src/utils/style/const.ts +0 -4
- package/src/utils/style/func.ts +0 -37
- package/src/utils/switch/const.ts +0 -2
- package/src/utils/theme/const.ts +0 -189
- package/src/utils/theme/restyle.ts +0 -87
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useAnimatedThemedPressable } from "../../hooks/button.js";
|
|
4
5
|
import AnimatedPressable from "./AnimatedPressable.js";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const AnimatedThemedPressable = props => {
|
|
8
|
+
const $ = _c(2);
|
|
7
9
|
const animatedThemedPressableProps = useAnimatedThemedPressable(props);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== animatedThemedPressableProps) {
|
|
12
|
+
t0 = /*#__PURE__*/_jsx(AnimatedPressable, {
|
|
13
|
+
...animatedThemedPressableProps
|
|
14
|
+
});
|
|
15
|
+
$[0] = animatedThemedPressableProps;
|
|
16
|
+
$[1] = t0;
|
|
17
|
+
} else {
|
|
18
|
+
t0 = $[1];
|
|
19
|
+
}
|
|
20
|
+
return t0;
|
|
11
21
|
};
|
|
12
22
|
export default AnimatedThemedPressable;
|
|
13
23
|
//# sourceMappingURL=AnimatedThemedPressable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedThemedPressable","AnimatedPressable","jsx","_jsx","AnimatedThemedPressable","props","animatedThemedPressableProps"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedThemedPressable.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["useAnimatedThemedPressable","AnimatedPressable","jsx","_jsx","AnimatedThemedPressable","props","$","_c","animatedThemedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedThemedPressable.tsx"],"mappings":";;;AACA,SAASA,0BAA0B,QAAQ,uBAAoB;AAE/D,OAAOC,iBAAiB,MAAM,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,uBAAyD,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAChE,MAAAC,4BAAA,GAAqCR,0BAA0B,CAACK,KAAK,CAAC;EAAC,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,4BAAA;IAEhEC,EAAA,gBAAAN,IAAA,CAACF,iBAAiB;MAAA,GAAKO;IAA4B,CAAG,CAAC;IAAAF,CAAA,MAAAE,4BAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAAvDG,EAAuD;AAAA,CAC/D;AAED,eAAeL,uBAAuB","ignoreList":[]}
|
|
@@ -1,30 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { ButtonScaleRatio } from "../../utils/button/const.js";
|
|
4
5
|
import ThemedText from "../text/ThemedText.js";
|
|
5
6
|
import ThemedPressable from "./ThemedPressable.js";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const ThemedButton =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
const ThemedButton = t0 => {
|
|
9
|
+
const $ = _c(23);
|
|
10
|
+
let children;
|
|
11
|
+
let props;
|
|
12
|
+
let t1;
|
|
13
|
+
let text;
|
|
14
|
+
let textFontSize;
|
|
15
|
+
let textFontWeight;
|
|
16
|
+
let textProps;
|
|
17
|
+
let textStyle;
|
|
18
|
+
let textVariant;
|
|
19
|
+
if ($[0] !== t0) {
|
|
20
|
+
({
|
|
21
|
+
text,
|
|
22
|
+
textVariant,
|
|
23
|
+
textFontSize,
|
|
24
|
+
textFontWeight,
|
|
25
|
+
textColor: t1,
|
|
26
|
+
textStyle,
|
|
27
|
+
textProps,
|
|
28
|
+
children,
|
|
29
|
+
...props
|
|
30
|
+
} = t0);
|
|
31
|
+
$[0] = t0;
|
|
32
|
+
$[1] = children;
|
|
33
|
+
$[2] = props;
|
|
34
|
+
$[3] = t1;
|
|
35
|
+
$[4] = text;
|
|
36
|
+
$[5] = textFontSize;
|
|
37
|
+
$[6] = textFontWeight;
|
|
38
|
+
$[7] = textProps;
|
|
39
|
+
$[8] = textStyle;
|
|
40
|
+
$[9] = textVariant;
|
|
41
|
+
} else {
|
|
42
|
+
children = $[1];
|
|
43
|
+
props = $[2];
|
|
44
|
+
t1 = $[3];
|
|
45
|
+
text = $[4];
|
|
46
|
+
textFontSize = $[5];
|
|
47
|
+
textFontWeight = $[6];
|
|
48
|
+
textProps = $[7];
|
|
49
|
+
textStyle = $[8];
|
|
50
|
+
textVariant = $[9];
|
|
51
|
+
}
|
|
52
|
+
const textColor = t1 === undefined ? "textButton" : t1;
|
|
53
|
+
const t2 = children ? "space-between" : "center";
|
|
54
|
+
let t3;
|
|
55
|
+
if ($[10] !== text || $[11] !== textColor || $[12] !== textFontSize || $[13] !== textFontWeight || $[14] !== textProps || $[15] !== textStyle || $[16] !== textVariant) {
|
|
56
|
+
t3 = /*#__PURE__*/_jsx(ThemedText, {
|
|
28
57
|
numberOfLines: 1,
|
|
29
58
|
variant: textVariant,
|
|
30
59
|
fontSize: textFontSize,
|
|
@@ -33,8 +62,40 @@ const ThemedButton = ({
|
|
|
33
62
|
style: textStyle,
|
|
34
63
|
...textProps,
|
|
35
64
|
children: text
|
|
36
|
-
})
|
|
37
|
-
|
|
65
|
+
});
|
|
66
|
+
$[10] = text;
|
|
67
|
+
$[11] = textColor;
|
|
68
|
+
$[12] = textFontSize;
|
|
69
|
+
$[13] = textFontWeight;
|
|
70
|
+
$[14] = textProps;
|
|
71
|
+
$[15] = textStyle;
|
|
72
|
+
$[16] = textVariant;
|
|
73
|
+
$[17] = t3;
|
|
74
|
+
} else {
|
|
75
|
+
t3 = $[17];
|
|
76
|
+
}
|
|
77
|
+
let t4;
|
|
78
|
+
if ($[18] !== children || $[19] !== props || $[20] !== t2 || $[21] !== t3) {
|
|
79
|
+
t4 = /*#__PURE__*/_jsxs(ThemedPressable, {
|
|
80
|
+
scaleRatio: ButtonScaleRatio.Rectangle,
|
|
81
|
+
flexDirection: "row",
|
|
82
|
+
alignItems: "center",
|
|
83
|
+
justifyContent: t2,
|
|
84
|
+
paddingVertical: "s",
|
|
85
|
+
paddingHorizontal: "m",
|
|
86
|
+
backgroundColor: "themePri",
|
|
87
|
+
...props,
|
|
88
|
+
children: [t3, children]
|
|
89
|
+
});
|
|
90
|
+
$[18] = children;
|
|
91
|
+
$[19] = props;
|
|
92
|
+
$[20] = t2;
|
|
93
|
+
$[21] = t3;
|
|
94
|
+
$[22] = t4;
|
|
95
|
+
} else {
|
|
96
|
+
t4 = $[22];
|
|
97
|
+
}
|
|
98
|
+
return t4;
|
|
38
99
|
};
|
|
39
100
|
export default ThemedButton;
|
|
40
101
|
//# sourceMappingURL=ThemedButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonScaleRatio","ThemedText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedButton","
|
|
1
|
+
{"version":3,"names":["ButtonScaleRatio","ThemedText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedButton","t0","$","_c","children","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","numberOfLines","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/button/ThemedButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,YAAmC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,cAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,WAAA;EAAA,IAAAV,CAAA,QAAAD,EAAA;IAAC;MAAAM,IAAA;MAAAK,WAAA;MAAAJ,YAAA;MAAAC,cAAA;MAAAI,SAAA,EAAAP,EAAA;MAAAK,SAAA;MAAAD,SAAA;MAAAN,QAAA;MAAA,GAAAC;IAAA,IAAAJ,EAU5C;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,QAAA;IAAAF,CAAA,MAAAG,KAAA;IAAAH,CAAA,MAAAI,EAAA;IAAAJ,CAAA,MAAAK,IAAA;IAAAL,CAAA,MAAAM,YAAA;IAAAN,CAAA,MAAAO,cAAA;IAAAP,CAAA,MAAAQ,SAAA;IAAAR,CAAA,MAAAS,SAAA;IAAAT,CAAA,MAAAU,WAAA;EAAA;IAAA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fE,EAAA,gBAAAnB,KAAA,CAACJ,eAAe;MACFwB,UAA0B,EAA1B1B,gBAAgB,CAAA2B,SAAU;MACvBC,aAAK,EAAL,KAAK;MACRC,UAAQ,EAAR,QAAQ;MACJC,cAAqC,EAArCR,EAAqC;MACpCS,eAAG,EAAH,GAAG;MACDC,iBAAG,EAAH,GAAG;MACLC,eAAU,EAAV,UAAU;MAAA,GACvBrB,KAAK;MAAAD,QAAA,GAETY,EAUa,EACZZ,QAAQ;IAAA,CACM,CAAC;IAAAF,CAAA,OAAAE,QAAA;IAAAF,CAAA,OAAAG,KAAA;IAAAH,CAAA,OAAAa,EAAA;IAAAb,CAAA,OAAAc,EAAA;IAAAd,CAAA,OAAAgB,EAAA;EAAA;IAAAA,EAAA,GAAAhB,CAAA;EAAA;EAAA,OAtBlBgB,EAsBkB;AAAA,CAErB;AAED,eAAelB,YAAY","ignoreList":[]}
|
|
@@ -1,30 +1,76 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { ButtonScaleRatio } from "../../utils/button/const.js";
|
|
4
5
|
import ThemedIcon from "../icon/ThemedIcon.js";
|
|
5
6
|
import ThemedPressable from "./ThemedPressable.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
const ThemedIconButton =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
const ThemedIconButton = t0 => {
|
|
9
|
+
const $ = _c(16);
|
|
10
|
+
let iconColor;
|
|
11
|
+
let iconName;
|
|
12
|
+
let iconProps;
|
|
13
|
+
let iconSize;
|
|
14
|
+
let iconStyle;
|
|
15
|
+
let props;
|
|
16
|
+
if ($[0] !== t0) {
|
|
17
|
+
({
|
|
18
|
+
iconName,
|
|
19
|
+
iconSize,
|
|
20
|
+
iconColor,
|
|
21
|
+
iconStyle,
|
|
22
|
+
iconProps,
|
|
23
|
+
...props
|
|
24
|
+
} = t0);
|
|
25
|
+
$[0] = t0;
|
|
26
|
+
$[1] = iconColor;
|
|
27
|
+
$[2] = iconName;
|
|
28
|
+
$[3] = iconProps;
|
|
29
|
+
$[4] = iconSize;
|
|
30
|
+
$[5] = iconStyle;
|
|
31
|
+
$[6] = props;
|
|
32
|
+
} else {
|
|
33
|
+
iconColor = $[1];
|
|
34
|
+
iconName = $[2];
|
|
35
|
+
iconProps = $[3];
|
|
36
|
+
iconSize = $[4];
|
|
37
|
+
iconStyle = $[5];
|
|
38
|
+
props = $[6];
|
|
39
|
+
}
|
|
40
|
+
let t1;
|
|
41
|
+
if ($[7] !== iconColor || $[8] !== iconName || $[9] !== iconProps || $[10] !== iconSize || $[11] !== iconStyle) {
|
|
42
|
+
t1 = /*#__PURE__*/_jsx(ThemedIcon, {
|
|
21
43
|
name: iconName,
|
|
22
44
|
size: iconSize,
|
|
23
45
|
color: iconColor,
|
|
24
46
|
style: iconStyle,
|
|
25
47
|
...iconProps
|
|
26
|
-
})
|
|
27
|
-
|
|
48
|
+
});
|
|
49
|
+
$[7] = iconColor;
|
|
50
|
+
$[8] = iconName;
|
|
51
|
+
$[9] = iconProps;
|
|
52
|
+
$[10] = iconSize;
|
|
53
|
+
$[11] = iconStyle;
|
|
54
|
+
$[12] = t1;
|
|
55
|
+
} else {
|
|
56
|
+
t1 = $[12];
|
|
57
|
+
}
|
|
58
|
+
let t2;
|
|
59
|
+
if ($[13] !== props || $[14] !== t1) {
|
|
60
|
+
t2 = /*#__PURE__*/_jsx(ThemedPressable, {
|
|
61
|
+
scaleRatio: ButtonScaleRatio.Square,
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
padding: "s",
|
|
64
|
+
...props,
|
|
65
|
+
children: t1
|
|
66
|
+
});
|
|
67
|
+
$[13] = props;
|
|
68
|
+
$[14] = t1;
|
|
69
|
+
$[15] = t2;
|
|
70
|
+
} else {
|
|
71
|
+
t2 = $[15];
|
|
72
|
+
}
|
|
73
|
+
return t2;
|
|
28
74
|
};
|
|
29
75
|
export default ThemedIconButton;
|
|
30
76
|
//# sourceMappingURL=ThemedIconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonScaleRatio","ThemedIcon","ThemedPressable","jsx","_jsx","ThemedIconButton","
|
|
1
|
+
{"version":3,"names":["ButtonScaleRatio","ThemedIcon","ThemedPressable","jsx","_jsx","ThemedIconButton","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","t2","scaleRatio","Square","alignItems","padding","children"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,gBAA2C,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,KAAA;EAAA,IAAAP,CAAA,QAAAD,EAAA;IAAC;MAAAI,QAAA;MAAAE,QAAA;MAAAH,SAAA;MAAAI,SAAA;MAAAF,SAAA;MAAA,GAAAG;IAAA,IAAAR,EAOpD;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,SAAA;IAAAF,CAAA,MAAAG,QAAA;IAAAH,CAAA,MAAAI,SAAA;IAAAJ,CAAA,MAAAK,QAAA;IAAAL,CAAA,MAAAM,SAAA;IAAAN,CAAA,MAAAO,KAAA;EAAA;IAAAL,SAAA,GAAAF,CAAA;IAAAG,QAAA,GAAAH,CAAA;IAAAI,SAAA,GAAAJ,CAAA;IAAAK,QAAA,GAAAL,CAAA;IAAAM,SAAA,GAAAN,CAAA;IAAAO,KAAA,GAAAP,CAAA;EAAA;EAAA,IAAAQ,EAAA;EAAA,IAAAR,CAAA,QAAAE,SAAA,IAAAF,CAAA,QAAAG,QAAA,IAAAH,CAAA,QAAAI,SAAA,IAAAJ,CAAA,SAAAK,QAAA,IAAAL,CAAA,SAAAM,SAAA;IAQKE,EAAA,gBAAAX,IAAA,CAACH,UAAU;MACHS,IAAQ,EAARA,QAAQ;MACRE,IAAQ,EAARA,QAAQ;MACPH,KAAS,EAATA,SAAS;MACTI,KAAS,EAATA,SAAS;MAAA,GACZF;IAAS,CACd,CAAC;IAAAJ,CAAA,MAAAE,SAAA;IAAAF,CAAA,MAAAG,QAAA;IAAAH,CAAA,MAAAI,SAAA;IAAAJ,CAAA,OAAAK,QAAA;IAAAL,CAAA,OAAAM,SAAA;IAAAN,CAAA,OAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAAA,IAAAS,EAAA;EAAA,IAAAT,CAAA,SAAAO,KAAA,IAAAP,CAAA,SAAAQ,EAAA;IAZJC,EAAA,gBAAAZ,IAAA,CAACF,eAAe;MACFe,UAAuB,EAAvBjB,gBAAgB,CAAAkB,MAAO;MACvBC,UAAQ,EAAR,QAAQ;MACXC,OAAG,EAAH,GAAG;MAAA,GACRN,KAAK;MAAAO,QAAA,EAETN;IAME,CACa,CAAC;IAAAR,CAAA,OAAAO,KAAA;IAAAP,CAAA,OAAAQ,EAAA;IAAAR,CAAA,OAAAS,EAAA;EAAA;IAAAA,EAAA,GAAAT,CAAA;EAAA;EAAA,OAblBS,EAakB;AAAA,CAErB;AAED,eAAeX,gBAAgB","ignoreList":[]}
|
|
@@ -1,36 +1,87 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { ButtonScaleRatio } from "../../utils/button/const.js";
|
|
4
5
|
import ThemedIconText from "../text/ThemedIconText.js";
|
|
5
6
|
import ThemedPressable from "./ThemedPressable.js";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const ThemedIconTextButton =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
8
|
+
const ThemedIconTextButton = t0 => {
|
|
9
|
+
const $ = _c(37);
|
|
10
|
+
let children;
|
|
11
|
+
let flip;
|
|
12
|
+
let iconColor;
|
|
13
|
+
let iconName;
|
|
14
|
+
let iconProps;
|
|
15
|
+
let iconSize;
|
|
16
|
+
let iconStyle;
|
|
17
|
+
let iconTextProps;
|
|
18
|
+
let props;
|
|
19
|
+
let t1;
|
|
20
|
+
let text;
|
|
21
|
+
let textFontSize;
|
|
22
|
+
let textFontWeight;
|
|
23
|
+
let textProps;
|
|
24
|
+
let textStyle;
|
|
25
|
+
let textVariant;
|
|
26
|
+
if ($[0] !== t0) {
|
|
27
|
+
({
|
|
28
|
+
flip,
|
|
29
|
+
iconTextProps,
|
|
30
|
+
iconName,
|
|
31
|
+
iconSize,
|
|
32
|
+
iconColor,
|
|
33
|
+
iconStyle,
|
|
34
|
+
iconProps,
|
|
35
|
+
text,
|
|
36
|
+
textVariant,
|
|
37
|
+
textFontSize,
|
|
38
|
+
textFontWeight,
|
|
39
|
+
textColor: t1,
|
|
40
|
+
textStyle,
|
|
41
|
+
textProps,
|
|
42
|
+
children,
|
|
43
|
+
...props
|
|
44
|
+
} = t0);
|
|
45
|
+
$[0] = t0;
|
|
46
|
+
$[1] = children;
|
|
47
|
+
$[2] = flip;
|
|
48
|
+
$[3] = iconColor;
|
|
49
|
+
$[4] = iconName;
|
|
50
|
+
$[5] = iconProps;
|
|
51
|
+
$[6] = iconSize;
|
|
52
|
+
$[7] = iconStyle;
|
|
53
|
+
$[8] = iconTextProps;
|
|
54
|
+
$[9] = props;
|
|
55
|
+
$[10] = t1;
|
|
56
|
+
$[11] = text;
|
|
57
|
+
$[12] = textFontSize;
|
|
58
|
+
$[13] = textFontWeight;
|
|
59
|
+
$[14] = textProps;
|
|
60
|
+
$[15] = textStyle;
|
|
61
|
+
$[16] = textVariant;
|
|
62
|
+
} else {
|
|
63
|
+
children = $[1];
|
|
64
|
+
flip = $[2];
|
|
65
|
+
iconColor = $[3];
|
|
66
|
+
iconName = $[4];
|
|
67
|
+
iconProps = $[5];
|
|
68
|
+
iconSize = $[6];
|
|
69
|
+
iconStyle = $[7];
|
|
70
|
+
iconTextProps = $[8];
|
|
71
|
+
props = $[9];
|
|
72
|
+
t1 = $[10];
|
|
73
|
+
text = $[11];
|
|
74
|
+
textFontSize = $[12];
|
|
75
|
+
textFontWeight = $[13];
|
|
76
|
+
textProps = $[14];
|
|
77
|
+
textStyle = $[15];
|
|
78
|
+
textVariant = $[16];
|
|
79
|
+
}
|
|
80
|
+
const textColor = t1 === undefined ? "themePri" : t1;
|
|
81
|
+
const t2 = children ? "space-between" : "center";
|
|
82
|
+
let t3;
|
|
83
|
+
if ($[17] !== flip || $[18] !== iconColor || $[19] !== iconName || $[20] !== iconProps || $[21] !== iconSize || $[22] !== iconStyle || $[23] !== iconTextProps || $[24] !== text || $[25] !== textColor || $[26] !== textFontSize || $[27] !== textFontWeight || $[28] !== textProps || $[29] !== textStyle || $[30] !== textVariant) {
|
|
84
|
+
t3 = /*#__PURE__*/_jsx(ThemedIconText, {
|
|
34
85
|
iconName: iconName,
|
|
35
86
|
iconSize: iconSize,
|
|
36
87
|
iconColor: iconColor,
|
|
@@ -45,8 +96,46 @@ const ThemedIconTextButton = ({
|
|
|
45
96
|
textProps: textProps,
|
|
46
97
|
flip: flip,
|
|
47
98
|
...iconTextProps
|
|
48
|
-
})
|
|
49
|
-
|
|
99
|
+
});
|
|
100
|
+
$[17] = flip;
|
|
101
|
+
$[18] = iconColor;
|
|
102
|
+
$[19] = iconName;
|
|
103
|
+
$[20] = iconProps;
|
|
104
|
+
$[21] = iconSize;
|
|
105
|
+
$[22] = iconStyle;
|
|
106
|
+
$[23] = iconTextProps;
|
|
107
|
+
$[24] = text;
|
|
108
|
+
$[25] = textColor;
|
|
109
|
+
$[26] = textFontSize;
|
|
110
|
+
$[27] = textFontWeight;
|
|
111
|
+
$[28] = textProps;
|
|
112
|
+
$[29] = textStyle;
|
|
113
|
+
$[30] = textVariant;
|
|
114
|
+
$[31] = t3;
|
|
115
|
+
} else {
|
|
116
|
+
t3 = $[31];
|
|
117
|
+
}
|
|
118
|
+
let t4;
|
|
119
|
+
if ($[32] !== children || $[33] !== props || $[34] !== t2 || $[35] !== t3) {
|
|
120
|
+
t4 = /*#__PURE__*/_jsxs(ThemedPressable, {
|
|
121
|
+
scaleRatio: ButtonScaleRatio.Rectangle,
|
|
122
|
+
flexDirection: "row",
|
|
123
|
+
alignItems: "center",
|
|
124
|
+
justifyContent: t2,
|
|
125
|
+
paddingVertical: "s",
|
|
126
|
+
paddingHorizontal: "m",
|
|
127
|
+
...props,
|
|
128
|
+
children: [t3, children]
|
|
129
|
+
});
|
|
130
|
+
$[32] = children;
|
|
131
|
+
$[33] = props;
|
|
132
|
+
$[34] = t2;
|
|
133
|
+
$[35] = t3;
|
|
134
|
+
$[36] = t4;
|
|
135
|
+
} else {
|
|
136
|
+
t4 = $[36];
|
|
137
|
+
}
|
|
138
|
+
return t4;
|
|
50
139
|
};
|
|
51
140
|
export default ThemedIconTextButton;
|
|
52
141
|
//# sourceMappingURL=ThemedIconTextButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonScaleRatio","ThemedIconText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedIconTextButton","flip","
|
|
1
|
+
{"version":3,"names":["ButtonScaleRatio","ThemedIconText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedIconTextButton","t0","$","_c","children","flip","iconColor","iconName","iconProps","iconSize","iconStyle","iconTextProps","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconTextButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,oBAAmD,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,aAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,cAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,WAAA;EAAA,IAAAjB,CAAA,QAAAD,EAAA;IAAC;MAAAI,IAAA;MAAAM,aAAA;MAAAJ,QAAA;MAAAE,QAAA;MAAAH,SAAA;MAAAI,SAAA;MAAAF,SAAA;MAAAM,IAAA;MAAAK,WAAA;MAAAJ,YAAA;MAAAC,cAAA;MAAAI,SAAA,EAAAP,EAAA;MAAAK,SAAA;MAAAD,SAAA;MAAAb,QAAA;MAAA,GAAAQ;IAAA,IAAAX,EAiB5D;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,QA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iC,SAAU;MACvBC,aAAK,EAAL,KAAK;MACRC,UAAQ,EAAR,QAAQ;MACJC,cAAqC,EAArCP,EAAqC;MACpCQ,eAAG,EAAH,GAAG;MACDC,iBAAG,EAAH,GAAG;MAAA,GAClBnB,KAAK;MAAAR,QAAA,GAETmB,EAeE,EACDnB,QAAQ;IAAA,CACM,CAAC;IAAAF,CAAA,OAAAE,QAAA;IAAAF,CAAA,OAAAU,KAAA;IAAAV,CAAA,OAAAoB,EAAA;IAAApB,CAAA,OAAAqB,EAAA;IAAArB,CAAA,OAAAsB,EAAA;EAAA;IAAAA,EAAA,GAAAtB,CAAA;EAAA;EAAA,OA1BlBsB,EA0BkB;AAAA,CAErB;AAED,eAAexB,oBAAoB","ignoreList":[]}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { Pressable } from 'react-native';
|
|
4
5
|
import { useThemedPressable } from "../../hooks/button.js";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const ThemedPressable = props => {
|
|
8
|
+
const $ = _c(2);
|
|
7
9
|
const themedPressableProps = useThemedPressable(props);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== themedPressableProps) {
|
|
12
|
+
t0 = /*#__PURE__*/_jsx(Pressable, {
|
|
13
|
+
...themedPressableProps
|
|
14
|
+
});
|
|
15
|
+
$[0] = themedPressableProps;
|
|
16
|
+
$[1] = t0;
|
|
17
|
+
} else {
|
|
18
|
+
t0 = $[1];
|
|
19
|
+
}
|
|
20
|
+
return t0;
|
|
11
21
|
};
|
|
12
22
|
export default ThemedPressable;
|
|
13
23
|
//# sourceMappingURL=ThemedPressable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Pressable","useThemedPressable","jsx","_jsx","ThemedPressable","props","themedPressableProps"],"sourceRoot":"../../../../src","sources":["components/button/ThemedPressable.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["Pressable","useThemedPressable","jsx","_jsx","ThemedPressable","props","$","_c","themedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/ThemedPressable.tsx"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGxD,MAAMC,eAAyC,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAChD,MAAAC,oBAAA,GAA6BP,kBAAkB,CAACI,KAAK,CAAC;EAAC,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,oBAAA;IAEhDC,EAAA,gBAAAN,IAAA,CAACH,SAAS;MAAA,GAAKQ;IAAoB,CAAG,CAAC;IAAAF,CAAA,MAAAE,oBAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAAvCG,EAAuC;AAAA,CAC/C;AAED,eAAeL,eAAe","ignoreList":[]}
|
|
@@ -1,25 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import Icon, { IconSize } from '@jamadd/react-native-template-icons';
|
|
4
5
|
import { useRestyle } from '@shopify/restyle';
|
|
5
6
|
import { themedIconColorRestyleFuncs, themedIconRestyleFuncs } from "../../utils/theme/restyle.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
const ThemedIcon =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const ThemedIcon = t0 => {
|
|
9
|
+
const $ = _c(12);
|
|
10
|
+
let name;
|
|
11
|
+
let props;
|
|
12
|
+
let t1;
|
|
13
|
+
let t2;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
({
|
|
16
|
+
name,
|
|
17
|
+
size: t1,
|
|
18
|
+
color: t2,
|
|
19
|
+
...props
|
|
20
|
+
} = t0);
|
|
21
|
+
$[0] = t0;
|
|
22
|
+
$[1] = name;
|
|
23
|
+
$[2] = props;
|
|
24
|
+
$[3] = t1;
|
|
25
|
+
$[4] = t2;
|
|
26
|
+
} else {
|
|
27
|
+
name = $[1];
|
|
28
|
+
props = $[2];
|
|
29
|
+
t1 = $[3];
|
|
30
|
+
t2 = $[4];
|
|
31
|
+
}
|
|
32
|
+
const size = t1 === undefined ? IconSize.M : t1;
|
|
33
|
+
const color = t2 === undefined ? "themePri" : t2;
|
|
13
34
|
const restyle = useRestyle(themedIconRestyleFuncs, props);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
35
|
+
let t3;
|
|
36
|
+
if ($[5] !== color) {
|
|
37
|
+
t3 = {
|
|
38
|
+
color
|
|
39
|
+
};
|
|
40
|
+
$[5] = color;
|
|
41
|
+
$[6] = t3;
|
|
42
|
+
} else {
|
|
43
|
+
t3 = $[6];
|
|
44
|
+
}
|
|
45
|
+
const colorRestyle = useRestyle(themedIconColorRestyleFuncs, t3);
|
|
46
|
+
const t4 = colorRestyle.style[0]?.color;
|
|
47
|
+
let t5;
|
|
48
|
+
if ($[7] !== name || $[8] !== restyle || $[9] !== size || $[10] !== t4) {
|
|
49
|
+
t5 = /*#__PURE__*/_jsx(Icon, {
|
|
50
|
+
name: name,
|
|
51
|
+
size: size,
|
|
52
|
+
color: t4,
|
|
53
|
+
...restyle
|
|
54
|
+
});
|
|
55
|
+
$[7] = name;
|
|
56
|
+
$[8] = restyle;
|
|
57
|
+
$[9] = size;
|
|
58
|
+
$[10] = t4;
|
|
59
|
+
$[11] = t5;
|
|
60
|
+
} else {
|
|
61
|
+
t5 = $[11];
|
|
62
|
+
}
|
|
63
|
+
return t5;
|
|
23
64
|
};
|
|
24
65
|
export default ThemedIcon;
|
|
25
66
|
//# sourceMappingURL=ThemedIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Icon","IconSize","useRestyle","themedIconColorRestyleFuncs","themedIconRestyleFuncs","jsx","_jsx","ThemedIcon","name","
|
|
1
|
+
{"version":3,"names":["Icon","IconSize","useRestyle","themedIconColorRestyleFuncs","themedIconRestyleFuncs","jsx","_jsx","ThemedIcon","t0","$","_c","name","props","t1","t2","size","color","undefined","M","restyle","t3","colorRestyle","t4","style","t5"],"sourceRoot":"../../../../src","sources":["components/icon/ThemedIcon.tsx"],"mappings":";;;AAAA,OAAOA,IAAI,IAAIC,QAAQ,QAAQ,qCAAqC;AACpE,SAASC,UAAU,QAAQ,kBAAkB;AAG7C,SACEC,2BAA2B,EAC3BC,sBAAsB,QACjB,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,MAAMC,UAA+B,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAL,CAAA,QAAAD,EAAA;IAAC;MAAAG,IAAA;MAAAI,IAAA,EAAAF,EAAA;MAAAG,KAAA,EAAAF,EAAA;MAAA,GAAAF;IAAA,IAAAJ,EAKxC;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,IAAA;IAAAF,CAAA,MAAAG,KAAA;IAAAH,CAAA,MAAAI,EAAA;IAAAJ,CAAA,MAAAK,EAAA;EAAA;IAAAH,IAAA,GAAAF,CAAA;IAAAG,KAAA,GAAAH,CAAA;IAAAI,EAAA,GAAAJ,CAAA;IAAAK,EAAA,GAAAL,CAAA;EAAA;EAHC,MAAAM,IAAA,GAAAF,EAAiB,KAAjBI,SAAiB,GAAVhB,QAAQ,CAAAiB,CAAE,GAAjBL,EAAiB;EACjB,MAAAG,KAAA,GAAAF,EAAkB,KAAl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