app-expo-cli 1.1.1 → 1.1.3

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.
Files changed (40) hide show
  1. package/.github/workflows/npm-publish.yml +31 -0
  2. package/README.md +11 -1
  3. package/package.json +1 -1
  4. package/template/src/redux/api-config/baseApi.ts +1 -1
  5. package/template/src/lib/DateTimePicker/DateTimePicker.tsx +0 -63
  6. package/template/src/lib/Empty/EmptyCard.tsx +0 -67
  7. package/template/src/lib/Error/GlobalErrorBoundary.tsx +0 -111
  8. package/template/src/lib/animate/AniImage.tsx +0 -32
  9. package/template/src/lib/backHeader/BackButton.tsx +0 -62
  10. package/template/src/lib/backHeader/BackWithCoponent.tsx +0 -112
  11. package/template/src/lib/backHeader/BackWithHeader.tsx +0 -46
  12. package/template/src/lib/backHeader/BackWithTitle.tsx +0 -53
  13. package/template/src/lib/buttons/IButton.tsx +0 -69
  14. package/template/src/lib/buttons/IwtButton.tsx +0 -199
  15. package/template/src/lib/buttons/Or.tsx +0 -27
  16. package/template/src/lib/buttons/SimpleButton.tsx +0 -45
  17. package/template/src/lib/buttons/TButton.tsx +0 -70
  18. package/template/src/lib/cards/Card.tsx +0 -175
  19. package/template/src/lib/cards/OptionSelect.tsx +0 -44
  20. package/template/src/lib/cards/SearchCard.tsx +0 -35
  21. package/template/src/lib/editor/TextEditor.tsx +0 -81
  22. package/template/src/lib/expend/ExpendComponent.tsx +0 -36
  23. package/template/src/lib/imageViewer/ImageViwer.tsx +0 -332
  24. package/template/src/lib/imageZoomer/ImageZoomer.tsx +0 -104
  25. package/template/src/lib/inputs/CheckBox.tsx +0 -86
  26. package/template/src/lib/inputs/InputText.tsx +0 -232
  27. package/template/src/lib/loader/GLoading.tsx +0 -26
  28. package/template/src/lib/loading/MLoading.tsx +0 -14
  29. package/template/src/lib/loading/SLoading.tsx +0 -14
  30. package/template/src/lib/modals/ActionModal.tsx +0 -97
  31. package/template/src/lib/modals/BottomModal.tsx +0 -224
  32. package/template/src/lib/modals/ConfrimationModal.tsx +0 -116
  33. package/template/src/lib/modals/DateModal.tsx +0 -152
  34. package/template/src/lib/modals/NormalModal.tsx +0 -73
  35. package/template/src/lib/modals/SideModal.tsx +0 -57
  36. package/template/src/lib/modals/Toaster.tsx +0 -256
  37. package/template/src/lib/payment/PaymentCardForD.tsx +0 -47
  38. package/template/src/lib/progressBar/ProgressBar.tsx +0 -64
  39. package/template/src/lib/tailwind.js +0 -9
  40. package/template/src/lib/ui/Avatar.tsx +0 -55
@@ -1,64 +0,0 @@
1
- import Svg, { Circle } from "react-native-svg";
2
-
3
- import React from "react";
4
- import { View } from "react-native";
5
- // CircularProgressBar.js
6
- import tw from "@/src/lib/tailwind"; // Assuming you use tailwind-react-native-classnames
7
-
8
- interface CircularProgressBarProps {
9
- size?: number;
10
- strokeWidth?: number;
11
- progress?: number;
12
- bgColor?: string;
13
- progressColor?: string;
14
- children?: React.ReactNode;
15
- }
16
-
17
- const CircularProgressBar = ({
18
- size = 130,
19
- strokeWidth = 10,
20
- progress = 75, // The progress percentage (0-100)
21
- bgColor = "#AFAFAF",
22
- progressColor = "#FF6D00",
23
- children,
24
- }: CircularProgressBarProps) => {
25
- // 1. Calculations
26
- const radius = (size - strokeWidth) / 2;
27
- const circumference = 2 * Math.PI * radius;
28
- const strokeDashoffset = circumference - (circumference * progress) / 100;
29
-
30
- return (
31
- <View style={tw`justify-center items-center`}>
32
- <Svg width={size} height={size}>
33
- {/* Background Circle */}
34
- <Circle
35
- stroke={bgColor}
36
- fill="none"
37
- cx={size / 2}
38
- cy={size / 2}
39
- r={radius}
40
- strokeWidth={strokeWidth}
41
- />
42
-
43
- {/* Progress Circle */}
44
- <Circle
45
- stroke={progressColor}
46
- fill="none"
47
- cx={size / 2}
48
- cy={size / 2}
49
- r={radius}
50
- strokeWidth={strokeWidth}
51
- strokeDasharray={circumference}
52
- strokeDashoffset={strokeDashoffset}
53
- strokeLinecap="round"
54
- transform={`rotate(-90 ${size / 2} ${size / 2})`} // Start from the top
55
- />
56
- </Svg>
57
-
58
- {/* Optional: Render content in the center */}
59
- <View style={tw`absolute`}>{children}</View>
60
- </View>
61
- );
62
- };
63
-
64
- export default CircularProgressBar;
@@ -1,9 +0,0 @@
1
- // lib/tailwind.js
2
-
3
- import { create } from "twrnc";
4
-
5
- // create the customized version...
6
- const tw = create(require(`@/tailwind.config`)); // <- your path may differ
7
-
8
- // ... and then this becomes the main function your app uses
9
- export default tw;
@@ -1,55 +0,0 @@
1
- import { Image, View } from "react-native";
2
-
3
- import React from "react";
4
- import tw from "../tailwind";
5
-
6
- interface IAvatar {
7
- source: { uri: string };
8
- name?: string;
9
- size?: number;
10
- containerStyle?: any;
11
- imageStyle?: any;
12
- }
13
-
14
- const Avatar = ({
15
- source,
16
- size = 30,
17
- containerStyle,
18
- imageStyle,
19
- name,
20
- }: IAvatar) => {
21
- return (
22
- <View style={containerStyle}>
23
- {name && (
24
- <Image
25
- style={[
26
- tw`rounded-full`,
27
- {
28
- height: size,
29
- width: size,
30
- },
31
- imageStyle,
32
- ]}
33
- source={{
34
- uri: `https://ui-avatars.com/api/?background=random&name=${name}&bold=true`,
35
- }}
36
- />
37
- )}
38
- {source && (
39
- <Image
40
- style={[
41
- tw`rounded-full`,
42
- {
43
- height: size,
44
- width: size,
45
- },
46
- imageStyle,
47
- ]}
48
- source={source}
49
- />
50
- )}
51
- </View>
52
- );
53
- };
54
-
55
- export default Avatar;