@core_super_app/ui 0.0.1
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/LICENSE +20 -0
- package/README.md +37 -0
- package/Ui.podspec +20 -0
- package/android/build.gradle +67 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/core/ui/UiModule.kt +15 -0
- package/android/src/main/java/com/core/ui/UiPackage.kt +31 -0
- package/ios/Ui.h +5 -0
- package/ios/Ui.mm +21 -0
- package/lib/module/assets/images/icons/remove.png +0 -0
- package/lib/module/components/BaseView.js +45 -0
- package/lib/module/components/BaseView.js.map +1 -0
- package/lib/module/components/BasicButton.js +57 -0
- package/lib/module/components/BasicButton.js.map +1 -0
- package/lib/module/components/Header.js +140 -0
- package/lib/module/components/Header.js.map +1 -0
- package/lib/module/components/LoadingOverlay.js +32 -0
- package/lib/module/components/LoadingOverlay.js.map +1 -0
- package/lib/module/components/TextWrapper.js +34 -0
- package/lib/module/components/TextWrapper.js.map +1 -0
- package/lib/module/components/index.js +9 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/input/BasicInput.js +237 -0
- package/lib/module/components/input/BasicInput.js.map +1 -0
- package/lib/module/components/input/index.js +4 -0
- package/lib/module/components/input/index.js.map +1 -0
- package/lib/module/constants/image.js +6 -0
- package/lib/module/constants/image.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/BaseView.d.ts +11 -0
- package/lib/typescript/src/components/BaseView.d.ts.map +1 -0
- package/lib/typescript/src/components/BasicButton.d.ts +16 -0
- package/lib/typescript/src/components/BasicButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Header.d.ts +18 -0
- package/lib/typescript/src/components/Header.d.ts.map +1 -0
- package/lib/typescript/src/components/LoadingOverlay.d.ts +7 -0
- package/lib/typescript/src/components/LoadingOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/TextWrapper.d.ts +14 -0
- package/lib/typescript/src/components/TextWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +7 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/input/BasicInput.d.ts +49 -0
- package/lib/typescript/src/components/input/BasicInput.d.ts.map +1 -0
- package/lib/typescript/src/components/input/index.d.ts +2 -0
- package/lib/typescript/src/components/input/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/image.d.ts +3 -0
- package/lib/typescript/src/constants/image.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +170 -0
- package/src/assets/images/icons/remove.png +0 -0
- package/src/components/BaseView.tsx +56 -0
- package/src/components/BasicButton.tsx +70 -0
- package/src/components/Header.tsx +171 -0
- package/src/components/LoadingOverlay.tsx +32 -0
- package/src/components/TextWrapper.tsx +49 -0
- package/src/components/index.ts +6 -0
- package/src/components/input/BasicInput.tsx +360 -0
- package/src/components/input/index.ts +1 -0
- package/src/constants/image.ts +5 -0
- package/src/index.tsx +2 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState, useRef, useEffect, forwardRef, useImperativeHandle } from 'react';
|
|
4
|
+
import { View, StyleSheet, TouchableOpacity, TextInput, Pressable, Image } from 'react-native';
|
|
5
|
+
import Animated, { useAnimatedStyle, withTiming, Easing, useSharedValue } from 'react-native-reanimated';
|
|
6
|
+
import TextWrapper from "../TextWrapper.js";
|
|
7
|
+
import { Icon } from "../../constants/image.js";
|
|
8
|
+
import { scaleFont, scaleHeight, scaleWidth } from '@core_super_app/utils/dimension';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const labelAniConfig = {
|
|
11
|
+
duration: 100,
|
|
12
|
+
easing: Easing.linear
|
|
13
|
+
};
|
|
14
|
+
const BasicInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
15
|
+
const {
|
|
16
|
+
width = '100%',
|
|
17
|
+
containerStyle,
|
|
18
|
+
renderLeftIcon,
|
|
19
|
+
label,
|
|
20
|
+
inputProps,
|
|
21
|
+
value,
|
|
22
|
+
isFocus,
|
|
23
|
+
onChange,
|
|
24
|
+
onSubmitEditing,
|
|
25
|
+
onBlur,
|
|
26
|
+
onFocus,
|
|
27
|
+
showClearButton,
|
|
28
|
+
placeholder,
|
|
29
|
+
readOnly = false,
|
|
30
|
+
renderRightIcon,
|
|
31
|
+
onPressRightIcon,
|
|
32
|
+
onInputPress,
|
|
33
|
+
labelStyle,
|
|
34
|
+
onEndEditing,
|
|
35
|
+
placeholderTextColor = '#868F97',
|
|
36
|
+
isError = false,
|
|
37
|
+
maxLength,
|
|
38
|
+
required,
|
|
39
|
+
disabled,
|
|
40
|
+
showLimitCount = false,
|
|
41
|
+
inputStyle,
|
|
42
|
+
autoComplete = 'off',
|
|
43
|
+
autoCorrect = false,
|
|
44
|
+
importantForAutofill = 'no',
|
|
45
|
+
height = scaleHeight(6.5),
|
|
46
|
+
labelTopPosition = 0,
|
|
47
|
+
labelFocusColor,
|
|
48
|
+
replaceRegex,
|
|
49
|
+
accessibilityLabel = "input",
|
|
50
|
+
uniqueIdForBasicInput
|
|
51
|
+
} = props;
|
|
52
|
+
const [currChar, setCurrChar] = useState(0);
|
|
53
|
+
const [focus, setFocus] = useState(isFocus || false);
|
|
54
|
+
const calculatedValues = useSharedValue({
|
|
55
|
+
topBlur: (height - scaleHeight(1.8)) / 2 - scaleFont(16) / 2
|
|
56
|
+
});
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (showLimitCount) {
|
|
59
|
+
setCurrChar(value?.length || 0);
|
|
60
|
+
}
|
|
61
|
+
}, [value, showLimitCount]);
|
|
62
|
+
useImperativeHandle(ref, () => ({
|
|
63
|
+
focus: () => {
|
|
64
|
+
setFocus(true);
|
|
65
|
+
inputRef.current?.focus();
|
|
66
|
+
},
|
|
67
|
+
blur: () => {
|
|
68
|
+
setFocus(false);
|
|
69
|
+
inputRef.current?.blur();
|
|
70
|
+
}
|
|
71
|
+
}), []);
|
|
72
|
+
const inputRef = useRef(null);
|
|
73
|
+
const labelAni = useAnimatedStyle(() => {
|
|
74
|
+
return {
|
|
75
|
+
top: withTiming(focus || value || label && placeholder ? labelTopPosition : calculatedValues.value.topBlur, labelAniConfig),
|
|
76
|
+
color: focus || value || label && placeholder ? labelFocusColor || '#212B36' : '#868F97'
|
|
77
|
+
};
|
|
78
|
+
}, [value, focus, label, placeholder, labelFocusColor]);
|
|
79
|
+
const handleBlur = e => {
|
|
80
|
+
setFocus(false);
|
|
81
|
+
if (onBlur) {
|
|
82
|
+
onBlur(e);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const handleFocus = e => {
|
|
86
|
+
setFocus(true);
|
|
87
|
+
if (onFocus) {
|
|
88
|
+
onFocus(e);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const handleChangeText = text => {
|
|
92
|
+
let newText = text;
|
|
93
|
+
if (newText && replaceRegex) {
|
|
94
|
+
newText = newText.replace(replaceRegex, '');
|
|
95
|
+
}
|
|
96
|
+
if (onChange) {
|
|
97
|
+
onChange(newText);
|
|
98
|
+
}
|
|
99
|
+
if (showLimitCount) {
|
|
100
|
+
setCurrChar(newText?.length);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
104
|
+
style: [styles.inputContainer, containerStyle, isError && styles.borderError, disabled && styles.containerDisabled, {
|
|
105
|
+
height: height,
|
|
106
|
+
width
|
|
107
|
+
}],
|
|
108
|
+
disabled: !onInputPress || disabled,
|
|
109
|
+
onPress: onInputPress,
|
|
110
|
+
children: [renderLeftIcon && /*#__PURE__*/_jsx(View, {
|
|
111
|
+
style: styles.iconContainerLeft,
|
|
112
|
+
children: renderLeftIcon
|
|
113
|
+
}), /*#__PURE__*/_jsxs(Pressable, {
|
|
114
|
+
style: styles.innerInputContainer,
|
|
115
|
+
onPress: () => inputRef.current?.focus(),
|
|
116
|
+
disabled: (!label || readOnly) && !!onInputPress,
|
|
117
|
+
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
118
|
+
accessible: true,
|
|
119
|
+
accessibilityLabel: accessibilityLabel,
|
|
120
|
+
testID: uniqueIdForBasicInput,
|
|
121
|
+
autoComplete: autoComplete,
|
|
122
|
+
autoCorrect: autoCorrect,
|
|
123
|
+
importantForAutofill: importantForAutofill,
|
|
124
|
+
allowFontScaling: false,
|
|
125
|
+
editable: !readOnly,
|
|
126
|
+
ref: inputRef,
|
|
127
|
+
value: value,
|
|
128
|
+
style: [styles.inputStyleCommon, inputStyle, label && styles.inputShrink],
|
|
129
|
+
onChangeText: handleChangeText,
|
|
130
|
+
onFocus: handleFocus,
|
|
131
|
+
onBlur: handleBlur,
|
|
132
|
+
onSubmitEditing: onSubmitEditing,
|
|
133
|
+
readOnly: readOnly,
|
|
134
|
+
onEndEditing: onEndEditing,
|
|
135
|
+
onPress: () => {
|
|
136
|
+
if (readOnly && onInputPress) {
|
|
137
|
+
onInputPress();
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
placeholderTextColor: placeholderTextColor,
|
|
141
|
+
...inputProps
|
|
142
|
+
}), label && /*#__PURE__*/_jsxs(Animated.Text, {
|
|
143
|
+
numberOfLines: 1,
|
|
144
|
+
ellipsizeMode: "tail",
|
|
145
|
+
allowFontScaling: false,
|
|
146
|
+
style: [styles.label, labelAni, labelStyle],
|
|
147
|
+
children: [label, required && /*#__PURE__*/_jsx(TextWrapper, {
|
|
148
|
+
style: styles.requireMark,
|
|
149
|
+
children: ' *'
|
|
150
|
+
}), showLimitCount && value && /*#__PURE__*/_jsx(TextWrapper, {
|
|
151
|
+
children: ` (${currChar}/${maxLength})`
|
|
152
|
+
})]
|
|
153
|
+
})]
|
|
154
|
+
}), showClearButton && value && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
155
|
+
style: styles.iconContainerRight,
|
|
156
|
+
onPress: () => handleChangeText(''),
|
|
157
|
+
disabled: !value,
|
|
158
|
+
children: /*#__PURE__*/_jsx(Image, {
|
|
159
|
+
style: styles.iconRemove,
|
|
160
|
+
source: Icon.remove,
|
|
161
|
+
resizeMode: "contain",
|
|
162
|
+
tintColor: "#A1AAB2"
|
|
163
|
+
})
|
|
164
|
+
}), renderRightIcon && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
165
|
+
style: styles.iconContainerRight,
|
|
166
|
+
onPress: onPressRightIcon,
|
|
167
|
+
disabled: !!onInputPress,
|
|
168
|
+
children: renderRightIcon
|
|
169
|
+
})]
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
const styles = StyleSheet.create({
|
|
173
|
+
inputContainer: {
|
|
174
|
+
borderRadius: 12,
|
|
175
|
+
backgroundColor: 'white',
|
|
176
|
+
paddingHorizontal: scaleWidth(4.3),
|
|
177
|
+
paddingVertical: scaleHeight(0.9),
|
|
178
|
+
flexDirection: 'row',
|
|
179
|
+
alignItems: 'center',
|
|
180
|
+
marginVertical: scaleHeight(1),
|
|
181
|
+
borderWidth: 1,
|
|
182
|
+
borderColor: '#DDE4EE'
|
|
183
|
+
},
|
|
184
|
+
iconContainerLeft: {
|
|
185
|
+
height: scaleHeight(6),
|
|
186
|
+
justifyContent: 'center',
|
|
187
|
+
alignItems: 'center',
|
|
188
|
+
marginLeft: scaleWidth(12)
|
|
189
|
+
},
|
|
190
|
+
iconContainerRight: {
|
|
191
|
+
height: scaleHeight(6),
|
|
192
|
+
justifyContent: 'center',
|
|
193
|
+
alignItems: 'center',
|
|
194
|
+
marginLeft: scaleWidth(12)
|
|
195
|
+
},
|
|
196
|
+
innerInputContainer: {
|
|
197
|
+
flex: 1,
|
|
198
|
+
height: '100%',
|
|
199
|
+
justifyContent: 'flex-end',
|
|
200
|
+
position: 'relative'
|
|
201
|
+
},
|
|
202
|
+
inputStyleCommon: {
|
|
203
|
+
width: '100%',
|
|
204
|
+
height: '100%',
|
|
205
|
+
color: '#ffffff',
|
|
206
|
+
padding: 0,
|
|
207
|
+
fontSize: scaleFont(14)
|
|
208
|
+
},
|
|
209
|
+
label: {
|
|
210
|
+
color: '#9DA4AE',
|
|
211
|
+
position: 'absolute',
|
|
212
|
+
left: 0,
|
|
213
|
+
fontSize: scaleFont(12),
|
|
214
|
+
lineHeight: scaleFont(16)
|
|
215
|
+
},
|
|
216
|
+
containerDisabled: {
|
|
217
|
+
borderColor: '#DAE0E7',
|
|
218
|
+
borderWidth: 0,
|
|
219
|
+
backgroundColor: '#DAE0E7',
|
|
220
|
+
opacity: 0.9
|
|
221
|
+
},
|
|
222
|
+
iconRemove: {
|
|
223
|
+
width: scaleFont(16),
|
|
224
|
+
height: scaleFont(16)
|
|
225
|
+
},
|
|
226
|
+
borderError: {
|
|
227
|
+
borderColor: '#DA2128'
|
|
228
|
+
},
|
|
229
|
+
requireMark: {
|
|
230
|
+
color: '#DA2128'
|
|
231
|
+
},
|
|
232
|
+
inputShrink: {
|
|
233
|
+
height: '54%'
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
export default BasicInput;
|
|
237
|
+
//# sourceMappingURL=BasicInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","useRef","useEffect","forwardRef","useImperativeHandle","View","StyleSheet","TouchableOpacity","TextInput","Pressable","Image","Animated","useAnimatedStyle","withTiming","Easing","useSharedValue","TextWrapper","Icon","scaleFont","scaleHeight","scaleWidth","jsx","_jsx","jsxs","_jsxs","labelAniConfig","duration","easing","linear","BasicInput","props","ref","width","containerStyle","renderLeftIcon","label","inputProps","value","isFocus","onChange","onSubmitEditing","onBlur","onFocus","showClearButton","placeholder","readOnly","renderRightIcon","onPressRightIcon","onInputPress","labelStyle","onEndEditing","placeholderTextColor","isError","maxLength","required","disabled","showLimitCount","inputStyle","autoComplete","autoCorrect","importantForAutofill","height","labelTopPosition","labelFocusColor","replaceRegex","accessibilityLabel","uniqueIdForBasicInput","currChar","setCurrChar","focus","setFocus","calculatedValues","topBlur","length","inputRef","current","blur","labelAni","top","color","handleBlur","e","handleFocus","handleChangeText","text","newText","replace","style","styles","inputContainer","borderError","containerDisabled","onPress","children","iconContainerLeft","innerInputContainer","accessible","testID","allowFontScaling","editable","inputStyleCommon","inputShrink","onChangeText","Text","numberOfLines","ellipsizeMode","requireMark","iconContainerRight","iconRemove","source","remove","resizeMode","tintColor","create","borderRadius","backgroundColor","paddingHorizontal","paddingVertical","flexDirection","alignItems","marginVertical","borderWidth","borderColor","justifyContent","marginLeft","flex","position","padding","fontSize","left","lineHeight","opacity"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/input/BasicInput.tsx"],"mappings":";;AAAA,SACEA,QAAQ,EACRC,MAAM,EACNC,SAAS,EACTC,UAAU,EACVC,mBAAmB,QAGd,OAAO;AACd,SACEC,IAAI,EACJC,UAAU,EACVC,gBAAgB,EAChBC,SAAS,EACTC,SAAS,EACTC,KAAK,QACA,cAAc;AACrB,OAAOC,QAAQ,IACbC,gBAAgB,EAChBC,UAAU,EACVC,MAAM,EACNC,cAAc,QACT,yBAAyB;AAChC,OAAOC,WAAW,MAAM,mBAAgB;AAcxC,SAASC,IAAI,QAAQ,0BAAuB;AAC5C,SAASC,SAAS,EAAEC,WAAW,EAAEC,UAAU,QAAQ,iCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAoDrF,MAAMC,cAAc,GAAG;EACrBC,QAAQ,EAAE,GAAG;EACbC,MAAM,EAAEb,MAAM,CAACc;AACjB,CAAC;AAED,MAAMC,UAAU,gBAAG1B,UAAU,CAC3B,CAAC2B,KAAK,EAAEC,GAAG,KAAK;EACd,MAAM;IACJC,KAAK,GAAG,MAAM;IACdC,cAAc;IACdC,cAAc;IACdC,KAAK;IACLC,UAAU;IACVC,KAAK;IACLC,OAAO;IACPC,QAAQ;IACRC,eAAe;IAC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U;IACpBG,IAAI,EAAE,CAAC;IACPD,QAAQ,EAAE9G,SAAS,CAAC,EAAE,CAAC;IACvBgH,UAAU,EAAEhH,SAAS,CAAC,EAAE;EAC1B,CAAC;EACDyE,iBAAiB,EAAE;IACjB+B,WAAW,EAAE,SAAS;IACtBD,WAAW,EAAE,CAAC;IACdN,eAAe,EAAE,SAAS;IAC1BgB,OAAO,EAAE;EACX,CAAC;EACDvB,UAAU,EAAE;IAAE5E,KAAK,EAAEd,SAAS,CAAC,EAAE,CAAC;IAAE2C,MAAM,EAAE3C,SAAS,CAAC,EAAE;EAAE,CAAC;EAC3DwE,WAAW,EAAE;IAAEgC,WAAW,EAAE;EAAU,CAAC;EACvChB,WAAW,EAAE;IACX3B,KAAK,EAAE;EACT,CAAC;EACDsB,WAAW,EAAE;IAAExC,MAAM,EAAE;EAAM;AAC/B,CAAC,CAAC;AAEF,eAAehC,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/input/index.ts"],"mappings":";;AAAA,cAAc,iBAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Icon","remove","require"],"sourceRoot":"..\\..\\..\\src","sources":["constants/image.ts"],"mappings":";;AAEA,OAAO,MAAMA,IAAiC,GAAG;EAC7CC,MAAM,EAAEC,OAAO,CAAC,mCAAmC;AACvD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ImageSrc"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;AAAA,cAAc,uBAAc;AAC5B,OAAO,KAAKA,QAAQ,MAAM,sBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HeaderProps } from './Header';
|
|
2
|
+
import type { LoadingOverlayProps } from './LoadingOverlay';
|
|
3
|
+
import type { ImageSourcePropType } from 'react-native';
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
5
|
+
type BaseViewProps = {
|
|
6
|
+
background?: ImageSourcePropType;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
} & HeaderProps & LoadingOverlayProps;
|
|
9
|
+
declare const BaseView: (props: BaseViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BaseView;
|
|
11
|
+
//# sourceMappingURL=BaseView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseView.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseView.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,aAAa,GAAG;IACnB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,WAAW,GACb,mBAAmB,CAAC;AAEtB,QAAA,MAAM,QAAQ,GAAI,OAAO,aAAa,4CA4BrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ViewStyle, type TextStyle } from 'react-native';
|
|
2
|
+
import { type TextWrapperProps } from './TextWrapper';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
import type { StyleProp } from 'react-native';
|
|
5
|
+
type Props = {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
colors?: string[];
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
textStyle?: StyleProp<TextStyle>;
|
|
13
|
+
} & TextWrapperProps;
|
|
14
|
+
declare const BasicButton: ({ children, onPress, disabled, colors, style, textStyle, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default BasicButton;
|
|
16
|
+
//# sourceMappingURL=BasicButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BasicButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAoB,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAG7C,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAClC,GAAG,gBAAgB,CAAC;AAErB,QAAA,MAAM,WAAW,GAAI,4DAOlB,KAAK,4CAoBP,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ColorValue, ImageSourcePropType, TextStyle } from 'react-native';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export type HeaderProps = {
|
|
4
|
+
disabledBackHandler?: boolean;
|
|
5
|
+
leftIcon?: ImageSourcePropType;
|
|
6
|
+
back?: boolean;
|
|
7
|
+
onPressLeftIcon?: () => void;
|
|
8
|
+
title?: string;
|
|
9
|
+
rightView?: ReactNode;
|
|
10
|
+
isNotBackAfterPressLeft?: boolean;
|
|
11
|
+
subTitle?: string;
|
|
12
|
+
titleMaxLines?: number;
|
|
13
|
+
titleStyle?: TextStyle;
|
|
14
|
+
backColor?: ColorValue;
|
|
15
|
+
};
|
|
16
|
+
export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Header;
|
|
18
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Header.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,WAAW,GAAG;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,4CA2FxC,CAAC;AAEF,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type LoadingOverlayProps = {
|
|
2
|
+
indicatorColor?: string;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const LoadingOverlay: ({ indicatorColor, isLoading }: LoadingOverlayProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export default LoadingOverlay;
|
|
7
|
+
//# sourceMappingURL=LoadingOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/LoadingOverlay.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,+BAAuC,mBAAmB,mDAQjF,CAAC;AAEF,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GestureResponderEvent, StyleProp, TextStyle } from 'react-native';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export type TextWrapperProps = {
|
|
4
|
+
testID?: string;
|
|
5
|
+
accessibilityLabel?: string;
|
|
6
|
+
onPress?: (e: GestureResponderEvent) => void;
|
|
7
|
+
numberOfLines?: number;
|
|
8
|
+
ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip';
|
|
9
|
+
style?: StyleProp<TextStyle>;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const TextWrapper: (props: TextWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default TextWrapper;
|
|
14
|
+
//# sourceMappingURL=TextWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/TextWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACpD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAyB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import type { BlurEvent, FocusEvent, TextInputEndEditingEvent, KeyboardTypeOptions, DimensionValue, SubmitBehavior, TextInputProps, ColorValue, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
type dynamicLabelInputProps = {
|
|
4
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
5
|
+
renderLeftIcon?: JSX.Element;
|
|
6
|
+
label?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
uniqueIdForBasicInput?: string;
|
|
9
|
+
isFocus?: boolean;
|
|
10
|
+
onChange?: (text: string) => void;
|
|
11
|
+
onSubmitEditing?: ((e: TextInputEndEditingEvent) => void) | undefined;
|
|
12
|
+
onBlur?: ((e: BlurEvent) => void) | undefined;
|
|
13
|
+
onFocus?: ((e: FocusEvent) => void) | undefined;
|
|
14
|
+
showClearButton?: boolean;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
contextMenuHidden?: boolean;
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
renderRightIcon?: JSX.Element;
|
|
19
|
+
onPressRightIcon?: () => void;
|
|
20
|
+
onInputPress?: () => void;
|
|
21
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
22
|
+
onEndEditing?: (e: TextInputEndEditingEvent) => void;
|
|
23
|
+
placeholderTextColor?: ColorValue;
|
|
24
|
+
isError?: boolean;
|
|
25
|
+
maxLength?: number;
|
|
26
|
+
submitBehavior?: SubmitBehavior;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
showLimitCount?: boolean;
|
|
30
|
+
inputStyle?: StyleProp<TextStyle>;
|
|
31
|
+
width?: DimensionValue;
|
|
32
|
+
autoComplete?: 'off';
|
|
33
|
+
autoCorrect?: boolean;
|
|
34
|
+
importantForAutofill?: 'no';
|
|
35
|
+
keyboardType?: KeyboardTypeOptions;
|
|
36
|
+
height?: number;
|
|
37
|
+
labelTopPosition?: number;
|
|
38
|
+
labelFocusColor?: string;
|
|
39
|
+
replaceRegex?: RegExp;
|
|
40
|
+
accessibilityLabel?: string;
|
|
41
|
+
inputProps?: TextInputProps;
|
|
42
|
+
};
|
|
43
|
+
type inputRefDef = {
|
|
44
|
+
focus: () => void;
|
|
45
|
+
blur: () => void;
|
|
46
|
+
};
|
|
47
|
+
declare const BasicInput: import("react").ForwardRefExoticComponent<dynamicLabelInputProps & import("react").RefAttributes<inputRefDef>>;
|
|
48
|
+
export default BasicInput;
|
|
49
|
+
//# sourceMappingURL=BasicInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/BasicInput.tsx"],"names":[],"mappings":"AAAA,OA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AC;IACrD,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B,CAAC;AAMF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAOF,QAAA,MAAM,UAAU,gHA4Mf,CAAC;AA4DF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/constants/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAE5C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@core_super_app/ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Define common components for project",
|
|
5
|
+
"main": "./lib/module/index.js",
|
|
6
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"source": "./src/index.tsx",
|
|
10
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
11
|
+
"default": "./lib/module/index.js"
|
|
12
|
+
},
|
|
13
|
+
".components": {
|
|
14
|
+
"source": "./src/components/index.tsx",
|
|
15
|
+
"types": "./lib/typescript/src/components/index.d.ts",
|
|
16
|
+
"default": "./lib/module/components/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"src",
|
|
22
|
+
"lib",
|
|
23
|
+
"android",
|
|
24
|
+
"ios",
|
|
25
|
+
"cpp",
|
|
26
|
+
"*.podspec",
|
|
27
|
+
"react-native.config.js",
|
|
28
|
+
"!ios/build",
|
|
29
|
+
"!android/build",
|
|
30
|
+
"!android/gradle",
|
|
31
|
+
"!android/gradlew",
|
|
32
|
+
"!android/gradlew.bat",
|
|
33
|
+
"!android/local.properties",
|
|
34
|
+
"!**/__tests__",
|
|
35
|
+
"!**/__fixtures__",
|
|
36
|
+
"!**/__mocks__",
|
|
37
|
+
"!**/.*"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"example": "yarn workspace @core/ui-example",
|
|
41
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
42
|
+
"prepare": "bob build",
|
|
43
|
+
"typecheck": "tsc",
|
|
44
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
45
|
+
"test": "jest",
|
|
46
|
+
"release": "release-it --only-version"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"react-native",
|
|
50
|
+
"ios",
|
|
51
|
+
"android"
|
|
52
|
+
],
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/HienNguyen0205/core-ui.git"
|
|
56
|
+
},
|
|
57
|
+
"author": "HienNC2 <Hienqt0205@gmail.com> (https://github.com/HienNguyen0205)",
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/HienNguyen0205/core-ui/issues"
|
|
61
|
+
},
|
|
62
|
+
"homepage": "https://github.com/HienNguyen0205/core-ui#readme",
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@core_super_app/utils": "0.0.5"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
71
|
+
"@eslint/compat": "^1.3.2",
|
|
72
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
73
|
+
"@eslint/js": "^9.35.0",
|
|
74
|
+
"@react-native/babel-preset": "0.84.1",
|
|
75
|
+
"@react-native/eslint-config": "0.84.1",
|
|
76
|
+
"@release-it/conventional-changelog": "^10.0.1",
|
|
77
|
+
"@types/jest": "^29.5.14",
|
|
78
|
+
"@types/react": "^19.2.0",
|
|
79
|
+
"commitlint": "^19.8.1",
|
|
80
|
+
"del-cli": "^6.0.0",
|
|
81
|
+
"eslint": "^8.57.1",
|
|
82
|
+
"eslint-config-prettier": "^10.1.8",
|
|
83
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
84
|
+
"jest": "^29.7.0",
|
|
85
|
+
"lefthook": "^2.0.3",
|
|
86
|
+
"prettier": "^3.8.1",
|
|
87
|
+
"react": "19.2.3",
|
|
88
|
+
"react-native": "0.84.1",
|
|
89
|
+
"react-native-builder-bob": "^0.40.13",
|
|
90
|
+
"release-it": "^19.0.4",
|
|
91
|
+
"turbo": "^2.5.6",
|
|
92
|
+
"typescript": "^5.9.2"
|
|
93
|
+
},
|
|
94
|
+
"packageManager": "yarn@4.11.0",
|
|
95
|
+
"react-native-builder-bob": {
|
|
96
|
+
"source": "src",
|
|
97
|
+
"output": "lib",
|
|
98
|
+
"targets": [
|
|
99
|
+
[
|
|
100
|
+
"module",
|
|
101
|
+
{
|
|
102
|
+
"esm": true
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"typescript",
|
|
107
|
+
{
|
|
108
|
+
"project": "tsconfig.build.json"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"codegenConfig": {
|
|
114
|
+
"name": "UiSpec",
|
|
115
|
+
"type": "modules",
|
|
116
|
+
"jsSrcsDir": "src",
|
|
117
|
+
"android": {
|
|
118
|
+
"javaPackageName": "com.core.ui"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"prettier": {
|
|
122
|
+
"quoteProps": "consistent",
|
|
123
|
+
"singleQuote": true,
|
|
124
|
+
"tabWidth": 2,
|
|
125
|
+
"trailingComma": "es5",
|
|
126
|
+
"useTabs": false
|
|
127
|
+
},
|
|
128
|
+
"jest": {
|
|
129
|
+
"preset": "react-native",
|
|
130
|
+
"modulePathIgnorePatterns": [
|
|
131
|
+
"<rootDir>/example/node_modules",
|
|
132
|
+
"<rootDir>/lib/"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"commitlint": {
|
|
136
|
+
"extends": [
|
|
137
|
+
"@commitlint/config-conventional"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"release-it": {
|
|
141
|
+
"git": {
|
|
142
|
+
"commitMessage": "chore: release ${version}",
|
|
143
|
+
"tagName": "v${version}"
|
|
144
|
+
},
|
|
145
|
+
"npm": {
|
|
146
|
+
"publish": true
|
|
147
|
+
},
|
|
148
|
+
"github": {
|
|
149
|
+
"release": true
|
|
150
|
+
},
|
|
151
|
+
"plugins": {
|
|
152
|
+
"@release-it/conventional-changelog": {
|
|
153
|
+
"preset": {
|
|
154
|
+
"name": "angular"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"create-react-native-library": {
|
|
160
|
+
"type": "turbo-module",
|
|
161
|
+
"languages": "kotlin-objc",
|
|
162
|
+
"tools": [
|
|
163
|
+
"eslint",
|
|
164
|
+
"jest",
|
|
165
|
+
"lefthook",
|
|
166
|
+
"release-it"
|
|
167
|
+
],
|
|
168
|
+
"version": "0.57.2"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
Binary file
|