@jamadd/react-native-template-ui 0.8.6 → 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 +64 -19
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +1 -1
- 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 +87 -31
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +68 -27
- 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 +74 -31
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +71 -29
- 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 +178 -54
- package/lib/module/components/slider/ThemedSlider.web.js.map +1 -1
- 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/utils/reanimated/func.js +60 -10
- package/lib/module/utils/reanimated/func.js.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.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +3 -2
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/package.json +14 -14
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useResponsiveProp, useTheme as useRestyleTheme } from '@shopify/restyle';
|
|
4
5
|
import { useColorScheme } from 'react-native';
|
|
5
6
|
import { darkTheme, lightTheme } from "../utils/theme/const.js";
|
|
@@ -19,13 +20,21 @@ export function useThemeBreakpointValues(propValue) {
|
|
|
19
20
|
return useResponsiveProp(propValue);
|
|
20
21
|
}
|
|
21
22
|
export function useThemeBreakpoint() {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
const $ = _c(1);
|
|
24
|
+
let t0;
|
|
25
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26
|
+
t0 = {
|
|
27
|
+
smallPhone: "smallPhone",
|
|
28
|
+
phone: "phone",
|
|
29
|
+
smallTablet: "smallTablet",
|
|
30
|
+
tablet: "tablet",
|
|
31
|
+
desktop: "desktop"
|
|
32
|
+
};
|
|
33
|
+
$[0] = t0;
|
|
34
|
+
} else {
|
|
35
|
+
t0 = $[0];
|
|
36
|
+
}
|
|
37
|
+
const responsiveVal = t0;
|
|
29
38
|
return useThemeBreakpointValues(responsiveVal);
|
|
30
39
|
}
|
|
31
40
|
export function useThemeZIndices() {
|
|
@@ -39,7 +48,7 @@ export function useThemeTextVariants() {
|
|
|
39
48
|
}
|
|
40
49
|
export function useIsDarkColorScheme(overrideColorScheme) {
|
|
41
50
|
const colorScheme = useColorScheme();
|
|
42
|
-
return (overrideColorScheme ?? colorScheme) ===
|
|
51
|
+
return (overrideColorScheme ?? colorScheme) === "dark";
|
|
43
52
|
}
|
|
44
53
|
export function useColorSchemeTheme(overrideColorScheme) {
|
|
45
54
|
return useIsDarkColorScheme(overrideColorScheme) ? darkTheme : lightTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useResponsiveProp","useTheme","useRestyleTheme","useColorScheme","darkTheme","lightTheme","useThemeColors","colors","useThemeSpacing","spacing","useThemeBreakpoints","breakpoints","useThemeBreakpointValues","propValue","useThemeBreakpoint","
|
|
1
|
+
{"version":3,"names":["useResponsiveProp","useTheme","useRestyleTheme","useColorScheme","darkTheme","lightTheme","useThemeColors","colors","useThemeSpacing","spacing","useThemeBreakpoints","breakpoints","useThemeBreakpointValues","propValue","useThemeBreakpoint","$","_c","t0","Symbol","for","smallPhone","phone","smallTablet","tablet","desktop","responsiveVal","useThemeZIndices","zIndices","useThemeBorderRadii","borderRadii","useThemeTextVariants","textVariants","useIsDarkCol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C,CAAC,CAAA8B,YAAa;AAAA;AAGhC,OAAO,SAAAC,qBAAAC,mBAAA;EACL,MAAAC,WAAA,GAAoB/B,cAAc,CAAC,CAAC;EAAC,OAE9B,CAAC8B,mBAAkC,IAAlCC,WAAkC,MAAM,MAAM;AAAA;AAGxD,OAAO,SAAAC,oBAAAF,mBAAA;EAAA,OACED,oBAAoB,CAACC,mBAA4C,CAAC,GAAlE7B,SAAkE,GAAlEC,UAAkE;AAAA","ignoreList":[]}
|
package/lib/module/hooks/view.js
CHANGED
|
@@ -1,25 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useRestyle } from '@shopify/restyle';
|
|
4
5
|
import { useRef } from 'react';
|
|
5
6
|
import { animatedThemedViewRestyleFuncs } from "../utils/theme/restyle.js";
|
|
6
7
|
export function useViewRef() {
|
|
7
8
|
return useRef(null);
|
|
8
9
|
}
|
|
9
|
-
export function useAnimatedThemedView({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
export function useAnimatedThemedView(t0) {
|
|
11
|
+
const $ = _c(12);
|
|
12
|
+
let animatedStyle;
|
|
13
|
+
let props;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
({
|
|
16
|
+
animatedStyle,
|
|
17
|
+
...props
|
|
18
|
+
} = t0);
|
|
19
|
+
$[0] = t0;
|
|
20
|
+
$[1] = animatedStyle;
|
|
21
|
+
$[2] = props;
|
|
22
|
+
} else {
|
|
23
|
+
animatedStyle = $[1];
|
|
24
|
+
props = $[2];
|
|
25
|
+
}
|
|
26
|
+
const t1 = useRestyle(animatedThemedViewRestyleFuncs, props);
|
|
27
|
+
let restyle;
|
|
28
|
+
let style;
|
|
29
|
+
if ($[3] !== t1) {
|
|
30
|
+
({
|
|
31
|
+
style,
|
|
32
|
+
...restyle
|
|
33
|
+
} = t1);
|
|
34
|
+
$[3] = t1;
|
|
35
|
+
$[4] = restyle;
|
|
36
|
+
$[5] = style;
|
|
37
|
+
} else {
|
|
38
|
+
restyle = $[4];
|
|
39
|
+
style = $[5];
|
|
40
|
+
}
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[6] !== animatedStyle || $[7] !== style) {
|
|
43
|
+
t2 = [style, animatedStyle];
|
|
44
|
+
$[6] = animatedStyle;
|
|
45
|
+
$[7] = style;
|
|
46
|
+
$[8] = t2;
|
|
47
|
+
} else {
|
|
48
|
+
t2 = $[8];
|
|
49
|
+
}
|
|
50
|
+
let t3;
|
|
51
|
+
if ($[9] !== restyle || $[10] !== t2) {
|
|
52
|
+
t3 = {
|
|
53
|
+
...restyle,
|
|
54
|
+
style: t2,
|
|
55
|
+
accessible: true,
|
|
56
|
+
role: "group"
|
|
57
|
+
};
|
|
58
|
+
$[9] = restyle;
|
|
59
|
+
$[10] = t2;
|
|
60
|
+
$[11] = t3;
|
|
61
|
+
} else {
|
|
62
|
+
t3 = $[11];
|
|
63
|
+
}
|
|
64
|
+
const animatedThemedViewProps = t3;
|
|
23
65
|
return animatedThemedViewProps;
|
|
24
66
|
}
|
|
25
67
|
//# sourceMappingURL=view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useRestyle","useRef","animatedThemedViewRestyleFuncs","useViewRef","useAnimatedThemedView","animatedStyle","props","
|
|
1
|
+
{"version":3,"names":["useRestyle","useRef","animatedThemedViewRestyleFuncs","useViewRef","useAnimatedThemedView","t0","$","_c","animatedStyle","props","t1","restyle","style","t2","t3","accessible","role","animatedThemedViewProps"],"sourceRoot":"../../../src","sources":["hooks/view.ts"],"mappings":";;;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAAQ,OAAO;AAG9B,SAASC,8BAA8B,QAAQ,2BAAwB;A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IAAAP,CAAA,OAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EALD,MAAAW,uBAAA,GAAmDH,EAKlD;EAAC,OAEKG,uBAAuB;AAAA","ignoreList":[]}
|
|
@@ -4,20 +4,70 @@ import { withSpring, withTiming } from 'react-native-reanimated';
|
|
|
4
4
|
import { scheduleOnRN } from 'react-native-worklets';
|
|
5
5
|
|
|
6
6
|
/** @internal */
|
|
7
|
+
const _worklet_13505451669225_init_data = {
|
|
8
|
+
code: "function funcTs1(){const{cb,scheduleOnRN}=this.__closure;if(cb){scheduleOnRN(cb);}}",
|
|
9
|
+
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/utils/reanimated/func.ts",
|
|
10
|
+
sourceMap: "{\"version\":3,\"names\":[\"funcTs1\",\"cb\",\"scheduleOnRN\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/utils/reanimated/func.ts\"],\"mappings\":\"AAgBkC,SAAAA,OAAMA,CAAA,QAAAC,EAAA,CAAAC,YAAA,OAAAC,SAAA,CAClC,GAAIF,EAAE,CAAE,CACNC,YAAY,CAACD,EAAE,CAAC,CAClB,CACF\",\"ignoreList\":[]}"
|
|
11
|
+
};
|
|
7
12
|
export function updateSharedValWithTiming(sharedVal, toVal, userConfig, cb) {
|
|
8
|
-
sharedVal.set(withTiming(toVal, userConfig, (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
+
sharedVal.set(withTiming(toVal, userConfig, function funcTs1Factory({
|
|
14
|
+
_worklet_13505451669225_init_data,
|
|
15
|
+
cb,
|
|
16
|
+
scheduleOnRN
|
|
17
|
+
}) {
|
|
18
|
+
const _e = [new global.Error(), -3, -27];
|
|
19
|
+
const funcTs1 = function () {
|
|
20
|
+
if (cb) {
|
|
21
|
+
scheduleOnRN(cb);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
funcTs1.__closure = {
|
|
25
|
+
cb,
|
|
26
|
+
scheduleOnRN
|
|
27
|
+
};
|
|
28
|
+
funcTs1.__workletHash = 13505451669225;
|
|
29
|
+
funcTs1.__pluginVersion = "0.8.3";
|
|
30
|
+
funcTs1.__initData = _worklet_13505451669225_init_data;
|
|
31
|
+
funcTs1.__stackDetails = _e;
|
|
32
|
+
return funcTs1;
|
|
33
|
+
}({
|
|
34
|
+
_worklet_13505451669225_init_data,
|
|
35
|
+
cb,
|
|
36
|
+
scheduleOnRN
|
|
37
|
+
})));
|
|
13
38
|
}
|
|
14
39
|
|
|
15
40
|
/** @internal */
|
|
41
|
+
const _worklet_6658021221194_init_data = {
|
|
42
|
+
code: "function funcTs2(){const{cb,scheduleOnRN}=this.__closure;if(cb){scheduleOnRN(cb);}}",
|
|
43
|
+
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/utils/reanimated/func.ts",
|
|
44
|
+
sourceMap: "{\"version\":3,\"names\":[\"funcTs2\",\"cb\",\"scheduleOnRN\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/utils/reanimated/func.ts\"],\"mappings\":\"AAgCkC,SAAAA,OAAMA,CAAA,QAAAC,EAAA,CAAAC,YAAA,OAAAC,SAAA,CAClC,GAAIF,EAAE,CAAE,CACNC,YAAY,CAACD,EAAE,CAAC,CAClB,CACF\",\"ignoreList\":[]}"
|
|
45
|
+
};
|
|
16
46
|
export function updateSharedValWithSpring(sharedVal, toVal, userConfig, cb) {
|
|
17
|
-
sharedVal.set(withSpring(toVal, userConfig, (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
47
|
+
sharedVal.set(withSpring(toVal, userConfig, function funcTs2Factory({
|
|
48
|
+
_worklet_6658021221194_init_data,
|
|
49
|
+
cb,
|
|
50
|
+
scheduleOnRN
|
|
51
|
+
}) {
|
|
52
|
+
const _e = [new global.Error(), -3, -27];
|
|
53
|
+
const funcTs2 = function () {
|
|
54
|
+
if (cb) {
|
|
55
|
+
scheduleOnRN(cb);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
funcTs2.__closure = {
|
|
59
|
+
cb,
|
|
60
|
+
scheduleOnRN
|
|
61
|
+
};
|
|
62
|
+
funcTs2.__workletHash = 6658021221194;
|
|
63
|
+
funcTs2.__pluginVersion = "0.8.3";
|
|
64
|
+
funcTs2.__initData = _worklet_6658021221194_init_data;
|
|
65
|
+
funcTs2.__stackDetails = _e;
|
|
66
|
+
return funcTs2;
|
|
67
|
+
}({
|
|
68
|
+
_worklet_6658021221194_init_data,
|
|
69
|
+
cb,
|
|
70
|
+
scheduleOnRN
|
|
71
|
+
})));
|
|
22
72
|
}
|
|
23
73
|
//# sourceMappingURL=func.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["withSpring","withTiming","scheduleOnRN","updateSharedValWithTiming","sharedVal","toVal","userConfig","cb","set","updateSharedValWithSpring"],"sourceRoot":"../../../../src","sources":["utils/reanimated/func.ts"],"mappings":";;AAKA,SAASA,UAAU,EAAEC,UAAU,QAAQ,yBAAyB;AAChE,SAASC,YAAY,QAAQ,uBAAuB;;AAEpD;AACA,OAAO,SAASC,yBAAyBA,CACvCC,SAA8B,EAC9BC,KAAa,EACbC,UAA6B,EAC7BC,EAAe,EACf;EACAH,SAAS,CAACI,GAAG,
|
|
1
|
+
{"version":3,"names":["withSpring","withTiming","scheduleOnRN","_worklet_13505451669225_init_data","code","location","sourceMap","updateSharedValWithTiming","sharedVal","toVal","userConfig","cb","set","funcTs1Factory","_e","global","Error","funcTs1","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","_worklet_6658021221194_init_data","updateSharedValWithSpring","funcTs2Factory","funcTs2"],"sourceRoot":"../../../../src","sources":["utils/reanimated/func.ts"],"mappings":";;AAKA,SAASA,UAAU,EAAEC,UAAU,QAAQ,yBAAyB;AAChE,SAASC,YAAY,QAAQ,uBAAuB;;AAEpD;AAAA,MAAAC,iCAAA;EAAAC,IAAA;EAAAC,QAAA;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CAAAL,UAAA,GAAAE,gCAAA;IAAAG,OAAA,CAAAJ,cAAA,GAAAR,EAAA;IAAA,OAAAY,OAAA;EAAA,CAFc;IAAAH,gCAAA;IACxBZ,EAAE;IACJT;EAAY,EAEf,CACH,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
1
2
|
import type { SliderProps } from '../../types/slider';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
3
|
+
declare const Slider: FC<SliderProps>;
|
|
4
|
+
export default Slider;
|
|
4
5
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/Slider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAUpE,OAAO,KAAK,EAEV,WAAW,EAEZ,MAAM,oBAAoB,CAAC;AAU5B,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA6N3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedSlider.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/ThemedSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemedSlider.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/ThemedSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAe,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAYzE,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkFvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedSlider.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/ThemedSlider.web.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemedSlider.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/ThemedSlider.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAe,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAUzE,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkFvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ThemedSliderStepIndicatorProps } from '../../types/slider';
|
|
2
|
+
declare const ThemedSliderStepIndicator: FC<ThemedSliderStepIndicatorProps>;
|
|
3
|
+
export default ThemedSliderStepIndicator;
|
|
3
4
|
//# sourceMappingURL=ThemedSliderStepIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedSliderStepIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/ThemedSliderStepIndicator.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ThemedSliderStepIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/ThemedSliderStepIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAIzE,QAAA,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAcjE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamadd/react-native-template-ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "React Native Template UI is a collection of UI components designed by JaMa D&D.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"@eslint/js": "^10.0.1",
|
|
83
83
|
"@jamadd/react-native-template-icons": "^0.4.8",
|
|
84
84
|
"@jest/globals": "^30.0.0",
|
|
85
|
-
"@react-native/babel-preset": "0.85.
|
|
86
|
-
"@react-native/eslint-config": "^0.85.
|
|
87
|
-
"@react-native/jest-preset": "0.85.
|
|
85
|
+
"@react-native/babel-preset": "0.85.3",
|
|
86
|
+
"@react-native/eslint-config": "^0.85.3",
|
|
87
|
+
"@react-native/jest-preset": "0.85.3",
|
|
88
88
|
"@release-it/conventional-changelog": "^10.0.6",
|
|
89
89
|
"@shopify/flash-list": "^2.3.1",
|
|
90
90
|
"@shopify/restyle": "^2.4.5",
|
|
@@ -98,17 +98,16 @@
|
|
|
98
98
|
"eslint-config-prettier": "^10.1.8",
|
|
99
99
|
"eslint-plugin-ft-flow": "^3.0.11",
|
|
100
100
|
"eslint-plugin-prettier": "^5.5.5",
|
|
101
|
-
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
102
101
|
"eslint-plugin-testing-library": "^7.8.0",
|
|
103
102
|
"jest": "^30.3.0",
|
|
104
103
|
"prettier": "^3.8.1",
|
|
105
104
|
"react": "19.2.3",
|
|
106
|
-
"react-native": "0.85.
|
|
105
|
+
"react-native": "0.85.3",
|
|
107
106
|
"react-native-builder-bob": "^0.41.0",
|
|
108
|
-
"react-native-gesture-handler": "^2.31.
|
|
109
|
-
"react-native-reanimated": "^4.3.
|
|
107
|
+
"react-native-gesture-handler": "^2.31.2",
|
|
108
|
+
"react-native-reanimated": "^4.3.1",
|
|
110
109
|
"react-native-safe-area-context": "^5.7.0",
|
|
111
|
-
"react-native-worklets": "^0.8.
|
|
110
|
+
"react-native-worklets": "^0.8.3",
|
|
112
111
|
"react-test-renderer": "19.2.3",
|
|
113
112
|
"release-it": "^19.2.4",
|
|
114
113
|
"turbo": "^2.8.21",
|
|
@@ -119,11 +118,11 @@
|
|
|
119
118
|
"@shopify/flash-list": ">=2.3.1",
|
|
120
119
|
"@shopify/restyle": ">=2.4.5",
|
|
121
120
|
"react": ">=19.2.3",
|
|
122
|
-
"react-native": ">=0.85.
|
|
123
|
-
"react-native-gesture-handler": ">=2.31.
|
|
124
|
-
"react-native-reanimated": ">=4.3.
|
|
121
|
+
"react-native": ">=0.85.3",
|
|
122
|
+
"react-native-gesture-handler": ">=2.31.2",
|
|
123
|
+
"react-native-reanimated": ">=4.3.1",
|
|
125
124
|
"react-native-safe-area-context": ">=5.7.0",
|
|
126
|
-
"react-native-worklets": ">=0.8.
|
|
125
|
+
"react-native-worklets": ">=0.8.3"
|
|
127
126
|
},
|
|
128
127
|
"workspaces": [
|
|
129
128
|
"example"
|
|
@@ -136,7 +135,8 @@
|
|
|
136
135
|
[
|
|
137
136
|
"module",
|
|
138
137
|
{
|
|
139
|
-
"esm": true
|
|
138
|
+
"esm": true,
|
|
139
|
+
"configFile": true
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
142
|
[
|