@kiosinc/commons-rn 0.1.13 → 0.1.15
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/commonjs/auth/screens/LoginScreen.js +8 -2
- package/lib/commonjs/auth/screens/LoginScreen.js.map +1 -1
- package/lib/commonjs/auth/screens/ResetPassword.js +8 -1
- package/lib/commonjs/auth/screens/ResetPassword.js.map +1 -1
- package/lib/commonjs/auth/screens/ResetPasswordInstructionsSent.js +6 -1
- package/lib/commonjs/auth/screens/ResetPasswordInstructionsSent.js.map +1 -1
- package/lib/commonjs/auth/screens/SignUp.js +8 -3
- package/lib/commonjs/auth/screens/SignUp.js.map +1 -1
- package/lib/commonjs/auth/screens/SignUpPassword.js +8 -1
- package/lib/commonjs/auth/screens/SignUpPassword.js.map +1 -1
- package/lib/commonjs/auth/screens/VerifyPhoneNumber.js +8 -1
- package/lib/commonjs/auth/screens/VerifyPhoneNumber.js.map +1 -1
- package/lib/commonjs/components/Switch.js +19 -0
- package/lib/commonjs/components/Switch.js.map +1 -0
- package/lib/commonjs/components/TouchableRipple.js +23 -0
- package/lib/commonjs/components/TouchableRipple.js.map +1 -0
- package/lib/commonjs/components/index.js +14 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/theme/index.js +2 -1
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/module/auth/screens/LoginScreen.js +8 -2
- package/lib/module/auth/screens/LoginScreen.js.map +1 -1
- package/lib/module/auth/screens/ResetPassword.js +8 -1
- package/lib/module/auth/screens/ResetPassword.js.map +1 -1
- package/lib/module/auth/screens/ResetPasswordInstructionsSent.js +6 -1
- package/lib/module/auth/screens/ResetPasswordInstructionsSent.js.map +1 -1
- package/lib/module/auth/screens/SignUp.js +8 -3
- package/lib/module/auth/screens/SignUp.js.map +1 -1
- package/lib/module/auth/screens/SignUpPassword.js +8 -1
- package/lib/module/auth/screens/SignUpPassword.js.map +1 -1
- package/lib/module/auth/screens/VerifyPhoneNumber.js +8 -1
- package/lib/module/auth/screens/VerifyPhoneNumber.js.map +1 -1
- package/lib/module/components/Switch.js +11 -0
- package/lib/module/components/Switch.js.map +1 -0
- package/lib/module/components/TouchableRipple.js +15 -0
- package/lib/module/components/TouchableRipple.js.map +1 -0
- package/lib/module/components/index.js +2 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants/index.js +1 -1
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/theme/index.js +2 -1
- package/lib/module/theme/index.js.map +1 -1
- package/lib/typescript/src/auth/screens/LoginScreen.d.ts.map +1 -1
- package/lib/typescript/src/auth/screens/ResetPassword.d.ts.map +1 -1
- package/lib/typescript/src/auth/screens/ResetPasswordInstructionsSent.d.ts.map +1 -1
- package/lib/typescript/src/auth/screens/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/auth/screens/SignUpPassword.d.ts.map +1 -1
- package/lib/typescript/src/auth/screens/VerifyPhoneNumber.d.ts.map +1 -1
- package/lib/typescript/src/components/Switch.d.ts +9 -0
- package/lib/typescript/src/components/Switch.d.ts.map +1 -0
- package/lib/typescript/src/components/TouchableRipple.d.ts +9 -0
- package/lib/typescript/src/components/TouchableRipple.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +2 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/index.d.ts +1 -1
- package/lib/typescript/src/constants/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +2 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/auth/screens/LoginScreen.tsx +6 -2
- package/src/auth/screens/ResetPassword.tsx +5 -1
- package/src/auth/screens/ResetPasswordInstructionsSent.tsx +6 -1
- package/src/auth/screens/SignUp.tsx +6 -2
- package/src/auth/screens/SignUpPassword.tsx +5 -1
- package/src/auth/screens/VerifyPhoneNumber.tsx +5 -1
- package/src/components/Switch.tsx +47 -0
- package/src/components/TouchableRipple.tsx +62 -0
- package/src/components/index.ts +2 -0
- package/src/constants/index.ts +1 -1
- package/src/theme/index.ts +1 -0
|
@@ -43,7 +43,14 @@ export const SignUpPassword = ({
|
|
|
43
43
|
return /*#__PURE__*/React.createElement(ParentView, {
|
|
44
44
|
justifyContent: "center",
|
|
45
45
|
px: "16"
|
|
46
|
-
}, /*#__PURE__*/React.createElement(KeyboardAvoidingView,
|
|
46
|
+
}, /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
47
|
+
alignSelf: "center",
|
|
48
|
+
justifyContent: 'center',
|
|
49
|
+
width: {
|
|
50
|
+
phone: '100%',
|
|
51
|
+
tablet: 372
|
|
52
|
+
}
|
|
53
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
47
54
|
alignItems: "center"
|
|
48
55
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
49
56
|
textAlign: "center",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ParentView","Text","View","Button","KeyboardAvoidingView","TextInput","React","useTranslation","Controller","useForm","yupResolver","passwordVerificationSchema","useAuthentication","SignUpPassword","route","params","t","useVerifyPhoneNumber","mutate","verifyPhoneNumber","isLoading","isVerifyingPhoneNumber","passwordExpectations","handleSubmit","control","formState","errors","isSubmitted","criteriaMode","resolver","defaultValues","password","onSubmit","data","createElement","justifyContent","px","alignItems","textAlign","variant","render","field","onChange","onBlur","value","passwordErrors","Object","values","types","flat","mt","error","message","my","secureTextEntry","mode","autoComplete","onChangeText","label","pt","map","expectation","index","didExpectationFoundInErrors","includes","flexDirection","key","color","name","loading","onPress"],"sourceRoot":"../../../../src","sources":["auth/screens/SignUpPassword.tsx"],"mappings":"AAAA,SACEA,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,MAAM,EACNC,oBAAoB,EACpBC,SAAS,QACJ,kBAAkB;AAEzB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAA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A,CAAC9B,oBAAoB,
|
|
1
|
+
{"version":3,"names":["ParentView","Text","View","Button","KeyboardAvoidingView","TextInput","React","useTranslation","Controller","useForm","yupResolver","passwordVerificationSchema","useAuthentication","SignUpPassword","route","params","t","useVerifyPhoneNumber","mutate","verifyPhoneNumber","isLoading","isVerifyingPhoneNumber","passwordExpectations","handleSubmit","control","formState","errors","isSubmitted","criteriaMode","resolver","defaultValues","password","onSubmit","data","createElement","justifyContent","px","alignSelf","width","phone","tablet","alignItems","textAlign","variant","render","field","onChange","onBlur","value","passwordErrors","Object","values","types","flat","mt","error","message","my","secureTextEntry","mode","autoComplete","onChangeText","label","pt","map","expectation","index","didExpectationFoundInErrors","includes","flexDirection","key","color","name","loading","onPress"],"sourceRoot":"../../../../src","sources":["auth/screens/SignUpPassword.tsx"],"mappings":"AAAA,SACEA,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,MAAM,EACNC,oBAAoB,EACpBC,SAAS,QACJ,kBAAkB;AAEzB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,iBAAiB;AACrD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,0BAA0B,QAAQ,cAAc;AACzD,SAASC,iBAAiB,QAAQ,4BAA4B;AAU9D,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAAEC;AAAM,CAAC,KAAK;EAC1E,MAAMC,MAAM,GAAGD,KAAK,CAACC,MAAM;EAC3B,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAEU;EAAqB,CAAC,GAAGL,iBAAiB,CAAC,CAAC;EACpD,MAAM;IAAEM,MAAM,EAAEC,iBAAiB;IAAEC,SAAS,EAAEC;EAAuB,CAAC,GACpEJ,oBAAoB,CAAC,CAAC;EACxB,MAAMK,oBAAoB,GAAG,CAC3BN,CAAC,CAAC,0BAA0B,CAAC,EAC7BA,CAAC,C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EpD,sBAAuB;IAChCsC,IAAI,EAAC,WAAW;IAChBe,OAAO,EAAEnD,YAAY,CAACS,QAAQ;EAAE,GAE/BhB,CAAC,CAAC,UAAU,CACP,CACY,CACZ,CAAC;AAEjB,CAAC"}
|
|
@@ -42,7 +42,14 @@ export const VerifyPhoneNumberScreen = ({
|
|
|
42
42
|
return /*#__PURE__*/React.createElement(ParentView, {
|
|
43
43
|
justifyContent: "center",
|
|
44
44
|
px: "16"
|
|
45
|
-
}, /*#__PURE__*/React.createElement(KeyboardAvoidingView,
|
|
45
|
+
}, /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
46
|
+
alignSelf: "center",
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
width: {
|
|
49
|
+
phone: '100%',
|
|
50
|
+
tablet: 372
|
|
51
|
+
}
|
|
52
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
46
53
|
alignItems: "center"
|
|
47
54
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
48
55
|
pb: "8",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ParentView","Text","View","Button","LinkButton","OtpInputs","KeyboardAvoidingView","React","useTranslation","Controller","useForm","yupResolver","verificationValidationSchema","useAuthentication","VerifyPhoneNumberScreen","route","params","t","useSignUp","useVerifyPhoneNumber","mutate","signUp","isLoading","isSigningUp","resendCode","isResendingCode","handleSubmit","control","resolver","defaultValues","code","onSubmit","data","createElement","justifyContent","px","alignItems","pb","textAlign","variant","color","render","field","onChange","value","handleChange","numberOfInputs","name","mt","disabled","loading","mode","onPress"],"sourceRoot":"../../../../src","sources":["auth/screens/VerifyPhoneNumber.tsx"],"mappings":"AAAA,SACEA,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,MAAM,EACNC,UAAU,EACVC,SAAS,EACTC,oBAAoB,QACf,kBAAkB;AAEzB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,iBAAiB;AACrD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,4BAA4B,QAAQ,cAAc;AAC3D,SAASC,iBAAiB,QAAQ,4BAA4B;AAU9D,OAAO,MAAMC,uBAEZ,GAAGA,CAAC;EAAEC;AAAM,CAAC,KAAK;EACjB,MAAMC,MAAM,GAAGD,KAAK,CAACC,MAAM;EAC3B,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAEU,SAAS;IAAEC;EAAqB,CAAC,GAAGN,iBAAiB,CAAC,CAAC;EAE/D,MAAM;IAAEO,MAAM,EAAEC,MAAM;IAAEC,SAAS,EAAEC;EAAY,CAAC,GAAGL,SAAS,CAAC,CAAC;EAC9D,MAAM;IAAEE,MAAM,EAAEI,UAAU;IAAEF,SAAS,EAAEG;EAAgB,CAAC,GACtDN,oBAAoB,CAAC,CAAC;EAExB,MAAM;IAAEO,YAAY;IAAEC;EAAQ,CAAC,GAAGjB,OAAO,CAAW;IAClDkB,QAAQ,EAAEjB,WAAW,CAACC,4BAA4B,CAAC;IACnDiB,aAAa,EAAE;MACbC,IAAI,EAAE;IACR;EACF,CAAC,CAAC;EAEF,MAAMC,QAAQ,GAAIC,IAAc,IAAK;IACnCX,MAAM,CAAC;MAAEL,MAAM;MAAEc,IAAI,EAAEE,IAAI,CAACF;IAAK,CAAQ,CAAC;EAC5C,CAAC;EAED,oBACEvB,KAAA,CAAA0B,aAAA,CAACjC,UAAU;IAACkC,cAAc,EAAC,QAAQ;IAACC,EAAE,EAAC;EAAI,gBACzC5B,KAAA,CAAA0B,aAAA,CAAC3B,oBAAoB,
|
|
1
|
+
{"version":3,"names":["ParentView","Text","View","Button","LinkButton","OtpInputs","KeyboardAvoidingView","React","useTranslation","Controller","useForm","yupResolver","verificationValidationSchema","useAuthentication","VerifyPhoneNumberScreen","route","params","t","useSignUp","useVerifyPhoneNumber","mutate","signUp","isLoading","isSigningUp","resendCode","isResendingCode","handleSubmit","control","resolver","defaultValues","code","onSubmit","data","createElement","justifyContent","px","alignSelf","width","phone","tablet","alignItems","pb","textAlign","variant","color","render","field","onChange","value","handleChange","numberOfInputs","name","mt","disabled","loading","mode","onPress"],"sourceRoot":"../../../../src","sources":["auth/screens/VerifyPhoneNumber.tsx"],"mappings":"AAAA,SACEA,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,MAAM,EACNC,UAAU,EACVC,SAAS,EACTC,oBAAoB,QACf,kBAAkB;AAEzB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,iBAAiB;AACrD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,4BAA4B,QAAQ,cAAc;AAC3D,SAASC,iBAAiB,QAAQ,4BAA4B;AAU9D,OAAO,MAAMC,uBAEZ,GAAGA,CAAC;EAAEC;AAAM,CAAC,KAAK;EACjB,MAAMC,MAAM,GAAGD,KAAK,CAACC,MAAM;EAC3B,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAEU,SAAS;IAAEC;EAAqB,CAAC,GAAGN,iBAAiB,CAAC,CAAC;EAE/D,MAAM;IAAEO,MAAM,EAAEC,MAAM;IAAEC,SAAS,EAAEC;EAAY,CAAC,GAAGL,SAAS,CAAC,CAAC;EAC9D,MAAM;IAAEE,MAAM,EAAEI,UAAU;IAAEF,SAAS,EAAEG;EAAgB,CAAC,GACtDN,oBAAoB,CAAC,CAAC;EAExB,MAAM;IAAEO,YAAY;IAAEC;EAAQ,CAAC,GAAGjB,OAAO,CAAW;IAClDkB,QAAQ,EAAEjB,WAAW,CAACC,4BAA4B,CAAC;IACnDiB,aAAa,EAAE;MACbC,IAAI,EAAE;IACR;EACF,CAAC,CAAC;EAEF,MAAMC,QAAQ,GAAIC,IAAc,IAAK;IACnCX,MAAM,CAAC;MAAEL,MAAM;MAAEc,IAAI,EAAEE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,IAAI,EAAC,WAAW;IAChBC,OAAO,EAAE9B,YAAY,CAACK,QAAQ;EAAE,GAE/Bd,CAAC,CAAC,UAAU,CACP,CAAC,eACTV,KAAA,CAAA0B,aAAA,CAAC7B,UAAU;IACTiD,QAAQ,EAAE5B,eAAe,IAAIF,WAAY;IACzC+B,OAAO,EAAE7B,eAAgB;IACzB2B,EAAE,EAAC,IAAI;IACPG,IAAI,EAAC,MAAM;IACXC,OAAO,EAAEA,CAAA,KAAM;MACbhC,UAAU,CAACR,MAAa,CAAC;IAC3B;EAAE,GAEDC,CAAC,CAAC,2BAA2B,CACpB,CACQ,CACZ,CAAC;AAEjB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Switch as S } from 'react-native-paper';
|
|
3
|
+
import { useRestyle, spacing, border, backgroundColor, backgroundColorShorthand, composeRestyleFunctions, spacingShorthand, layout, position } from '@shopify/restyle';
|
|
4
|
+
const restyleFunctions = composeRestyleFunctions([spacing, spacingShorthand, layout, position, border, backgroundColor, backgroundColorShorthand]);
|
|
5
|
+
export const Switch = ({
|
|
6
|
+
...rest
|
|
7
|
+
}) => {
|
|
8
|
+
const props = useRestyle(restyleFunctions, rest);
|
|
9
|
+
return /*#__PURE__*/React.createElement(S, props);
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=Switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Switch","S","useRestyle","spacing","border","backgroundColor","backgroundColorShorthand","composeRestyleFunctions","spacingShorthand","layout","position","restyleFunctions","rest","props","createElement"],"sourceRoot":"../../../src","sources":["components/Switch.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,CAAC,QAA0B,oBAAoB;AAClE,SACEC,UAAU,EACVC,OAAO,EACPC,MAAM,EACNC,eAAe,EACfC,wBAAwB,EAIxBC,uBAAuB,EAIvBC,gBAAgB,EAChBC,MAAM,EACNC,QAAQ,QAEH,kBAAkB;AAWzB,MAAMC,gBAAgB,GAAGJ,uBAAuB,CAA0B,CACxEJ,OAAO,EACPK,gBAAgB,EAChBC,MAAM,EACNC,QAAQ,EACRN,MAAM,EACNC,eAAe,EACfC,wBAAwB,CACzB,CAAC;AAIF,OAAO,MAAMN,MAAM,GAAGA,CAAC;EAAE,GAAGY;AAAY,CAAC,KAAK;EAC5C,MAAMC,KAAK,GAAGX,UAAU,CAACS,gBAAgB,EAASC,IAAW,CAAC;EAE9D,oBAAOb,KAAA,CAAAe,aAAA,CAACb,CAAC,EAAMY,KAAkB,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TouchableRipple as TR } from 'react-native-paper';
|
|
4
|
+
import { useRestyle, spacing, border, backgroundColor, backgroundColorShorthand, composeRestyleFunctions, spacingShorthand, layout, position, shadow, opacity } from '@shopify/restyle';
|
|
5
|
+
const restyleFunctions = composeRestyleFunctions([spacing, spacingShorthand, layout, position, shadow, opacity, border, backgroundColor, backgroundColorShorthand]);
|
|
6
|
+
export const TouchableRipple = ({
|
|
7
|
+
children,
|
|
8
|
+
...rest
|
|
9
|
+
}) => {
|
|
10
|
+
const props = useRestyle(restyleFunctions, rest);
|
|
11
|
+
return /*#__PURE__*/React.createElement(TR, _extends({
|
|
12
|
+
borderless: true
|
|
13
|
+
}, props), children);
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=TouchableRipple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TouchableRipple","TR","useRestyle","spacing","border","backgroundColor","backgroundColorShorthand","composeRestyleFunctions","spacingShorthand","layout","position","shadow","opacity","restyleFunctions","children","rest","props","createElement","_extends","borderless"],"sourceRoot":"../../../src","sources":["components/TouchableRipple.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,eAAe,IAAIC,EAAE,QAEhB,oBAAoB;AAC3B,SACEC,UAAU,EACVC,OAAO,EACPC,MAAM,EACNC,eAAe,EACfC,wBAAwB,EAIxBC,uBAAuB,EAIvBC,gBAAgB,EAChBC,MAAM,EACNC,QAAQ,EAGRC,MAAM,EACNC,OAAO,QAEF,kBAAkB;AAazB,MAAMC,gBAAgB,GAAGN,uBAAuB,CAA0B,CACxEJ,OAAO,EACPK,gBAAgB,EAChBC,MAAM,EACNC,QAAQ,EACRC,MAAM,EACNC,OAAO,EACPR,MAAM,EACNC,eAAe,EACfC,wBAAwB,CACzB,CAAC;AAIF,OAAO,MAAMN,eAAe,GAAGA,CAAC;EAAEc,QAAQ;EAAE,GAAGC;AAAY,CAAC,KAAK;EAC/D,MAAMC,KAAK,GAAGd,UAAU,CAACW,gBAAgB,EAAEE,IAAI,CAAC;EAEhD,oBACEhB,KAAA,CAAAkB,aAAA,CAAChB,EAAE,EAAAiB,QAAA;IAACC,UAAU;EAAA,GAAKH,KAAK,GACrBF,QACC,CAAC;AAET,CAAC"}
|
|
@@ -17,9 +17,11 @@ export { Searchbar } from './Searchbar';
|
|
|
17
17
|
export { SelectionDialog } from './SelectionDialog';
|
|
18
18
|
export { Snackbar } from './Snackbar';
|
|
19
19
|
export { Surface } from './Surface';
|
|
20
|
+
export { Switch } from './Switch';
|
|
20
21
|
export { Text } from './Text';
|
|
21
22
|
export { TextInput } from './TextInput';
|
|
22
23
|
export { ToggleButton } from './ToggleButton';
|
|
24
|
+
export { TouchableRipple } from './TouchableRipple';
|
|
23
25
|
export { Video } from './Video';
|
|
24
26
|
export { View } from './View';
|
|
25
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Alert","Badge","BottomSheet","Button","Card","Divider","FAB","Header","IconButton","Image","KeyboardAvoidingView","LineLoader","LinkButton","OtpInputs","ParentView","Searchbar","SelectionDialog","Snackbar","Surface","Text","TextInput","ToggleButton","Video","View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,KAAK,QAAQ,SAAS;AAC/B,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,GAAG,QAAQ,OAAO;AAC3B,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,IAAI,QAAQ,QAAQ"}
|
|
1
|
+
{"version":3,"names":["Alert","Badge","BottomSheet","Button","Card","Divider","FAB","Header","IconButton","Image","KeyboardAvoidingView","LineLoader","LinkButton","OtpInputs","ParentView","Searchbar","SelectionDialog","Snackbar","Surface","Switch","Text","TextInput","ToggleButton","TouchableRipple","Video","View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,KAAK,QAAQ,SAAS;AAC/B,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,GAAG,QAAQ,OAAO;AAC3B,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,IAAI,QAAQ,QAAQ"}
|
|
@@ -3,5 +3,5 @@ export const MMKV_KEYS = {
|
|
|
3
3
|
BUSINESS_ID: 'BUSINESS_ID'
|
|
4
4
|
};
|
|
5
5
|
export const PRIVACY_POLICY = 'https://www.kios.cloud/privacy-policy';
|
|
6
|
-
export const TERMS_OF_SERVICE = 'https://www.kios.cloud/
|
|
6
|
+
export const TERMS_OF_SERVICE = 'https://www.kios.cloud/terms-of-service';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EMAIL_REGEX","MMKV_KEYS","BUSINESS_ID","PRIVACY_POLICY","TERMS_OF_SERVICE"],"sourceRoot":"../../../src","sources":["constants/index.ts"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GACtB,4LAA4L;AAE9L,OAAO,MAAMC,SAAS,GAAG;EACvBC,WAAW,EAAE;AACf,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG,uCAAuC;AACrE,OAAO,MAAMC,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"names":["EMAIL_REGEX","MMKV_KEYS","BUSINESS_ID","PRIVACY_POLICY","TERMS_OF_SERVICE"],"sourceRoot":"../../../src","sources":["constants/index.ts"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GACtB,4LAA4L;AAE9L,OAAO,MAAMC,SAAS,GAAG;EACvBC,WAAW,EAAE;AACf,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG,uCAAuC;AACrE,OAAO,MAAMC,gBAAgB,GAAG,yCAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createTheme","CustomLightTheme","typescale","units","Array","fill","forEach","_","index","generateRestyleComponentsTheme","theme","elevation","colors","transparent","textVariants","spacing","breakpoints","phone","zIndices","borderRadii","dummyTheme"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":"AAAA,SAASA,WAAW,QAAQ,kBAAkB;AAC9C,SAASC,gBAAgB,QAAQ,SAAS;AAC1C,SAASC,SAAS,QAAQ,UAAU;AAGpC,MAAMC,KAA6B,GAAG,CAAC,CAAC;AAExC,IAAIC,KAAK,CAAC,IAAI,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,CAACC,CAAC,EAAEC,KAAK,KAAK;EAC5CL,KAAK,CAACK,KAAK,GAAG,EAAE,CAAC,GAAGA,KAAK;AAC3B,CAAC,CAAC;AAEF,OAAO,MAAMC,8BAA8B,GAAGA,CAAC;EAC7CC;AAGF,CAAC,KAAK;EACJ;EACA;EACA,IAAI;IAAEC,SAAS;IAAE,GAAGC;EAAO,CAAC,GAAG;IAAE,GAAGF,KAAK,CAACE;EAAO,CAAC;EAClD,OAAOZ,WAAW,CAAC;IACjBY,MAAM,EAAE;MACNC,WAAW,EAAE,aAAa;MAC1B,GAAGD;IACL,CAAC;IACDE,YAAY,EAAEZ,SAAS;IACvBa,OAAO,EAAEZ,KAAK;IACda,WAAW,EAAE;MACXC,KAAK,EAAE;
|
|
1
|
+
{"version":3,"names":["createTheme","CustomLightTheme","typescale","units","Array","fill","forEach","_","index","generateRestyleComponentsTheme","theme","elevation","colors","transparent","textVariants","spacing","breakpoints","phone","tablet","zIndices","borderRadii","dummyTheme"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":"AAAA,SAASA,WAAW,QAAQ,kBAAkB;AAC9C,SAASC,gBAAgB,QAAQ,SAAS;AAC1C,SAASC,SAAS,QAAQ,UAAU;AAGpC,MAAMC,KAA6B,GAAG,CAAC,CAAC;AAExC,IAAIC,KAAK,CAAC,IAAI,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,CAACC,CAAC,EAAEC,KAAK,KAAK;EAC5CL,KAAK,CAACK,KAAK,GAAG,EAAE,CAAC,GAAGA,KAAK;AAC3B,CAAC,CAAC;AAEF,OAAO,MAAMC,8BAA8B,GAAGA,CAAC;EAC7CC;AAGF,CAAC,KAAK;EACJ;EACA;EACA,IAAI;IAAEC,SAAS;IAAE,GAAGC;EAAO,CAAC,GAAG;IAAE,GAAGF,KAAK,CAACE;EAAO,CAAC;EAClD,OAAOZ,WAAW,CAAC;IACjBY,MAAM,EAAE;MACNC,WAAW,EAAE,aAAa;MAC1B,GAAGD;IACL,CAAC;IACDE,YAAY,EAAEZ,SAAS;IACvBa,OAAO,EAAEZ,KAAK;IACda,WAAW,EAAE;MACXC,KAAK,EAAE,CAAC;MACRC,MAAM,EAAE;IACV,CAAC;IACDC,QAAQ,EAAEhB,KAAK;IACfiB,WAAW,EAAEjB;EACf,CAAC,CAAC;AACJ,CAAC;AACD,MAAMkB,UAAU,GAAGZ,8BAA8B,CAAC;EAChDC,KAAK,EAAET;AACT,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginScreen.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/LoginScreen.tsx"],"names":[],"mappings":";AA2BA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"LoginScreen.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/LoginScreen.tsx"],"names":[],"mappings":";AA2BA,eAAO,MAAM,WAAW,mBA+HvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/ResetPassword.tsx"],"names":[],"mappings":";AAoBA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/ResetPassword.tsx"],"names":[],"mappings":";AAoBA,eAAO,MAAM,mBAAmB,mBAmE/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordInstructionsSent.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/ResetPasswordInstructionsSent.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,iCAAiC,GAAG;IACvC,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,8BAA8B,CAAC,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CACjD,iCAAiC,
|
|
1
|
+
{"version":3,"file":"ResetPasswordInstructionsSent.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/ResetPasswordInstructionsSent.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,iCAAiC,GAAG;IACvC,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,8BAA8B,CAAC,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CACjD,iCAAiC,CAsBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/SignUp.tsx"],"names":[],"mappings":";AAmBA,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/SignUp.tsx"],"names":[],"mappings":";AAmBA,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,mBA+IxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUpPassword.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/SignUpPassword.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SignUpPassword.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/SignUpPassword.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuGxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/VerifyPhoneNumber.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAC5C,4BAA4B,
|
|
1
|
+
{"version":3,"file":"VerifyPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../src/auth/screens/VerifyPhoneNumber.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAC5C,4BAA4B,CA6E7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type SwitchProps } from 'react-native-paper';
|
|
3
|
+
import { type SpacingProps, type BorderProps, type BackgroundColorProps, type SpacingShorthandProps, type LayoutProps, type PositionProps, type BackgroundColorShorthandProps } from '@shopify/restyle';
|
|
4
|
+
import { type ThemeType } from '../theme';
|
|
5
|
+
type RestyleProps = SpacingProps<ThemeType> & SpacingShorthandProps<ThemeType> & LayoutProps<ThemeType> & PositionProps<ThemeType> & BorderProps<ThemeType> & BackgroundColorProps<ThemeType> & BackgroundColorShorthandProps<ThemeType>;
|
|
6
|
+
type Props = RestyleProps & SwitchProps;
|
|
7
|
+
export declare const Switch: ({ ...rest }: Props) => JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch.tsx"],"names":[],"mappings":";AACA,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAML,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAEzB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,aAAa,EAIlB,KAAK,6BAA6B,EACnC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,KAAK,YAAY,GAAG,YAAY,CAAC,SAAS,CAAC,GACzC,qBAAqB,CAAC,SAAS,CAAC,GAChC,WAAW,CAAC,SAAS,CAAC,GACtB,aAAa,CAAC,SAAS,CAAC,GACxB,WAAW,CAAC,SAAS,CAAC,GACtB,oBAAoB,CAAC,SAAS,CAAC,GAC/B,6BAA6B,CAAC,SAAS,CAAC,CAAC;AAY3C,KAAK,KAAK,GAAG,YAAY,GAAG,WAAW,CAAC;AAExC,eAAO,MAAM,MAAM,gBAAiB,KAAK,gBAIxC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type TouchableRippleProps } from 'react-native-paper';
|
|
3
|
+
import { type SpacingProps, type BorderProps, type BackgroundColorProps, type SpacingShorthandProps, type LayoutProps, type PositionProps, type BackgroundColorShorthandProps, type ShadowProps, type OpacityProps } from '@shopify/restyle';
|
|
4
|
+
import { type ThemeType } from '../theme';
|
|
5
|
+
type RestyleProps = SpacingProps<ThemeType> & SpacingShorthandProps<ThemeType> & LayoutProps<ThemeType> & PositionProps<ThemeType> & ShadowProps<ThemeType> & OpacityProps<ThemeType> & BorderProps<ThemeType> & BackgroundColorProps<ThemeType> & BackgroundColorShorthandProps<ThemeType>;
|
|
6
|
+
type Props = RestyleProps & TouchableRippleProps;
|
|
7
|
+
export declare const TouchableRipple: ({ children, ...rest }: Props) => JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=TouchableRipple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TouchableRipple.d.ts","sourceRoot":"","sources":["../../../../src/components/TouchableRipple.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAML,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAEzB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,aAAa,EAIlB,KAAK,6BAA6B,EAClC,KAAK,WAAW,EAGhB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,KAAK,YAAY,GAAG,YAAY,CAAC,SAAS,CAAC,GACzC,qBAAqB,CAAC,SAAS,CAAC,GAChC,WAAW,CAAC,SAAS,CAAC,GACtB,aAAa,CAAC,SAAS,CAAC,GACxB,WAAW,CAAC,SAAS,CAAC,GACtB,YAAY,CAAC,SAAS,CAAC,GACvB,WAAW,CAAC,SAAS,CAAC,GACtB,oBAAoB,CAAC,SAAS,CAAC,GAC/B,6BAA6B,CAAC,SAAS,CAAC,CAAC;AAc3C,KAAK,KAAK,GAAG,YAAY,GAAG,oBAAoB,CAAC;AAEjD,eAAO,MAAM,eAAe,0BAA2B,KAAK,gBAQ3D,CAAC"}
|
|
@@ -17,9 +17,11 @@ export { Searchbar } from './Searchbar';
|
|
|
17
17
|
export { SelectionDialog } from './SelectionDialog';
|
|
18
18
|
export { Snackbar } from './Snackbar';
|
|
19
19
|
export { Surface } from './Surface';
|
|
20
|
+
export { Switch } from './Switch';
|
|
20
21
|
export { Text } from './Text';
|
|
21
22
|
export { TextInput } from './TextInput';
|
|
22
23
|
export { ToggleButton } from './ToggleButton';
|
|
24
|
+
export { TouchableRipple } from './TouchableRipple';
|
|
23
25
|
export { Video } from './Video';
|
|
24
26
|
export { View } from './View';
|
|
25
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACx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S,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -3,5 +3,5 @@ export declare const MMKV_KEYS: {
|
|
|
3
3
|
BUSINESS_ID: string;
|
|
4
4
|
};
|
|
5
5
|
export declare const PRIVACY_POLICY = "https://www.kios.cloud/privacy-policy";
|
|
6
|
-
export declare const TERMS_OF_SERVICE = "https://www.kios.cloud/
|
|
6
|
+
export declare const TERMS_OF_SERVICE = "https://www.kios.cloud/terms-of-service";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QACsK,CAAC;AAE/L,eAAO,MAAM,SAAS;;CAErB,CAAC;AAEF,eAAO,MAAM,cAAc,0CAA0C,CAAC;AACtE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QACsK,CAAC;AAE/L,eAAO,MAAM,SAAS;;CAErB,CAAC;AAEF,eAAO,MAAM,cAAc,0CAA0C,CAAC;AACtE,eAAO,MAAM,gBAAgB,4CAA4C,CAAC"}
|
|
@@ -136,6 +136,7 @@ export declare const generateRestyleComponentsTheme: ({ theme, }: {
|
|
|
136
136
|
spacing: Record<string, number>;
|
|
137
137
|
breakpoints: {
|
|
138
138
|
phone: number;
|
|
139
|
+
tablet: number;
|
|
139
140
|
};
|
|
140
141
|
zIndices: Record<string, number>;
|
|
141
142
|
borderRadii: Record<string, number>;
|
|
@@ -275,6 +276,7 @@ declare const dummyTheme: {
|
|
|
275
276
|
spacing: Record<string, number>;
|
|
276
277
|
breakpoints: {
|
|
277
278
|
phone: number;
|
|
279
|
+
tablet: number;
|
|
278
280
|
};
|
|
279
281
|
zIndices: Record<string, number>;
|
|
280
282
|
borderRadii: Record<string, number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAQnD,eAAO,MAAM,8BAA8B;WAGlC,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAQnD,eAAO,MAAM,8BAA8B;WAGlC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBhB,CAAC;AACF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEd,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiosinc/commons-rn",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "Common Code",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -189,6 +189,7 @@
|
|
|
189
189
|
"react-i18next": "^13.5.0",
|
|
190
190
|
"react-native-config": "^1.5.1",
|
|
191
191
|
"react-native-paper": "^5.11.1",
|
|
192
|
+
"react-native-size-matters": "^0.4.2",
|
|
192
193
|
"react-native-video": "^5.2.1",
|
|
193
194
|
"yup": "^1.3.2"
|
|
194
195
|
}
|
|
@@ -63,8 +63,12 @@ export const LoginScreen = () => {
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
return (
|
|
66
|
-
<ParentView px="16">
|
|
67
|
-
<KeyboardAvoidingView
|
|
66
|
+
<ParentView px="16" flex={1} justifyContent="center">
|
|
67
|
+
<KeyboardAvoidingView
|
|
68
|
+
alignSelf="center"
|
|
69
|
+
justifyContent={'center'}
|
|
70
|
+
width={{ phone: '100%', tablet: 372 }}
|
|
71
|
+
>
|
|
68
72
|
<View alignItems="center">
|
|
69
73
|
<AppLogo />
|
|
70
74
|
<Text py="48" variant="titleLarge">
|
|
@@ -41,7 +41,11 @@ export const ResetPasswordScreen = () => {
|
|
|
41
41
|
|
|
42
42
|
return (
|
|
43
43
|
<ParentView justifyContent="center" px="16">
|
|
44
|
-
<KeyboardAvoidingView
|
|
44
|
+
<KeyboardAvoidingView
|
|
45
|
+
alignSelf="center"
|
|
46
|
+
justifyContent={'center'}
|
|
47
|
+
width={{ phone: '100%', tablet: 372 }}
|
|
48
|
+
>
|
|
45
49
|
<View alignItems="center">
|
|
46
50
|
<Text py="48" textAlign="center" variant="titleLarge">
|
|
47
51
|
{t('authentication.enterYour')}
|
|
@@ -18,7 +18,12 @@ export const ResetPasswordInstructionSent: React.FC<
|
|
|
18
18
|
const navigation = useNavigation<NavigationProp<RootStackType>>();
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<ParentView
|
|
21
|
+
<ParentView
|
|
22
|
+
alignSelf={'center'}
|
|
23
|
+
justifyContent="center"
|
|
24
|
+
px="16"
|
|
25
|
+
width={{ phone: '100%', tablet: 372 }}
|
|
26
|
+
>
|
|
22
27
|
<Text py="48" textAlign="center" variant="titleLarge">
|
|
23
28
|
{t('authentication.resetPasswordInstructionSent', {
|
|
24
29
|
email: route.params?.email,
|
|
@@ -50,8 +50,12 @@ export const SignUpScreen = () => {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
return (
|
|
53
|
-
<ParentView px="16">
|
|
54
|
-
<KeyboardAvoidingView
|
|
53
|
+
<ParentView px="16" justifyContent="center">
|
|
54
|
+
<KeyboardAvoidingView
|
|
55
|
+
alignSelf="center"
|
|
56
|
+
justifyContent={'center'}
|
|
57
|
+
width={{ phone: '100%', tablet: 372 }}
|
|
58
|
+
>
|
|
55
59
|
<View alignItems="center">
|
|
56
60
|
<Text pb="40" variant="titleLarge">
|
|
57
61
|
{t('authentication.createAccountTitle')}
|
|
@@ -57,7 +57,11 @@ export const SignUpPassword: React.FC<SignUpPasswordProps> = ({ route }) => {
|
|
|
57
57
|
|
|
58
58
|
return (
|
|
59
59
|
<ParentView justifyContent="center" px="16">
|
|
60
|
-
<KeyboardAvoidingView
|
|
60
|
+
<KeyboardAvoidingView
|
|
61
|
+
alignSelf="center"
|
|
62
|
+
justifyContent={'center'}
|
|
63
|
+
width={{ phone: '100%', tablet: 372 }}
|
|
64
|
+
>
|
|
61
65
|
<View alignItems="center">
|
|
62
66
|
<Text textAlign="center" variant="titleLarge">
|
|
63
67
|
{t('authentication.createPassword')}
|
|
@@ -47,7 +47,11 @@ export const VerifyPhoneNumberScreen: React.FC<
|
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
49
|
<ParentView justifyContent="center" px="16">
|
|
50
|
-
<KeyboardAvoidingView
|
|
50
|
+
<KeyboardAvoidingView
|
|
51
|
+
alignSelf="center"
|
|
52
|
+
justifyContent={'center'}
|
|
53
|
+
width={{ phone: '100%', tablet: 372 }}
|
|
54
|
+
>
|
|
51
55
|
<View alignItems="center">
|
|
52
56
|
<Text pb="8" textAlign="center" variant="titleLarge">
|
|
53
57
|
{t('authentication.verifyYourNumber')}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Switch as S, type SwitchProps } from 'react-native-paper';
|
|
3
|
+
import {
|
|
4
|
+
useRestyle,
|
|
5
|
+
spacing,
|
|
6
|
+
border,
|
|
7
|
+
backgroundColor,
|
|
8
|
+
backgroundColorShorthand,
|
|
9
|
+
type SpacingProps,
|
|
10
|
+
type BorderProps,
|
|
11
|
+
type BackgroundColorProps,
|
|
12
|
+
composeRestyleFunctions,
|
|
13
|
+
type SpacingShorthandProps,
|
|
14
|
+
type LayoutProps,
|
|
15
|
+
type PositionProps,
|
|
16
|
+
spacingShorthand,
|
|
17
|
+
layout,
|
|
18
|
+
position,
|
|
19
|
+
type BackgroundColorShorthandProps,
|
|
20
|
+
} from '@shopify/restyle';
|
|
21
|
+
import { type ThemeType } from '../theme';
|
|
22
|
+
|
|
23
|
+
type RestyleProps = SpacingProps<ThemeType> &
|
|
24
|
+
SpacingShorthandProps<ThemeType> &
|
|
25
|
+
LayoutProps<ThemeType> &
|
|
26
|
+
PositionProps<ThemeType> &
|
|
27
|
+
BorderProps<ThemeType> &
|
|
28
|
+
BackgroundColorProps<ThemeType> &
|
|
29
|
+
BackgroundColorShorthandProps<ThemeType>;
|
|
30
|
+
|
|
31
|
+
const restyleFunctions = composeRestyleFunctions<ThemeType, RestyleProps>([
|
|
32
|
+
spacing,
|
|
33
|
+
spacingShorthand,
|
|
34
|
+
layout,
|
|
35
|
+
position,
|
|
36
|
+
border,
|
|
37
|
+
backgroundColor,
|
|
38
|
+
backgroundColorShorthand,
|
|
39
|
+
]);
|
|
40
|
+
|
|
41
|
+
type Props = RestyleProps & SwitchProps;
|
|
42
|
+
|
|
43
|
+
export const Switch = ({ ...rest }: Props) => {
|
|
44
|
+
const props = useRestyle(restyleFunctions as any, rest as any);
|
|
45
|
+
|
|
46
|
+
return <S {...(props as Props)} />;
|
|
47
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
TouchableRipple as TR,
|
|
4
|
+
type TouchableRippleProps,
|
|
5
|
+
} from 'react-native-paper';
|
|
6
|
+
import {
|
|
7
|
+
useRestyle,
|
|
8
|
+
spacing,
|
|
9
|
+
border,
|
|
10
|
+
backgroundColor,
|
|
11
|
+
backgroundColorShorthand,
|
|
12
|
+
type SpacingProps,
|
|
13
|
+
type BorderProps,
|
|
14
|
+
type BackgroundColorProps,
|
|
15
|
+
composeRestyleFunctions,
|
|
16
|
+
type SpacingShorthandProps,
|
|
17
|
+
type LayoutProps,
|
|
18
|
+
type PositionProps,
|
|
19
|
+
spacingShorthand,
|
|
20
|
+
layout,
|
|
21
|
+
position,
|
|
22
|
+
type BackgroundColorShorthandProps,
|
|
23
|
+
type ShadowProps,
|
|
24
|
+
shadow,
|
|
25
|
+
opacity,
|
|
26
|
+
type OpacityProps,
|
|
27
|
+
} from '@shopify/restyle';
|
|
28
|
+
import { type ThemeType } from '../theme';
|
|
29
|
+
|
|
30
|
+
type RestyleProps = SpacingProps<ThemeType> &
|
|
31
|
+
SpacingShorthandProps<ThemeType> &
|
|
32
|
+
LayoutProps<ThemeType> &
|
|
33
|
+
PositionProps<ThemeType> &
|
|
34
|
+
ShadowProps<ThemeType> &
|
|
35
|
+
OpacityProps<ThemeType> &
|
|
36
|
+
BorderProps<ThemeType> &
|
|
37
|
+
BackgroundColorProps<ThemeType> &
|
|
38
|
+
BackgroundColorShorthandProps<ThemeType>;
|
|
39
|
+
|
|
40
|
+
const restyleFunctions = composeRestyleFunctions<ThemeType, RestyleProps>([
|
|
41
|
+
spacing,
|
|
42
|
+
spacingShorthand,
|
|
43
|
+
layout,
|
|
44
|
+
position,
|
|
45
|
+
shadow,
|
|
46
|
+
opacity,
|
|
47
|
+
border,
|
|
48
|
+
backgroundColor,
|
|
49
|
+
backgroundColorShorthand,
|
|
50
|
+
]);
|
|
51
|
+
|
|
52
|
+
type Props = RestyleProps & TouchableRippleProps;
|
|
53
|
+
|
|
54
|
+
export const TouchableRipple = ({ children, ...rest }: Props) => {
|
|
55
|
+
const props = useRestyle(restyleFunctions, rest);
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<TR borderless {...props}>
|
|
59
|
+
{children}
|
|
60
|
+
</TR>
|
|
61
|
+
);
|
|
62
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -17,8 +17,10 @@ export { Searchbar } from './Searchbar';
|
|
|
17
17
|
export { SelectionDialog } from './SelectionDialog';
|
|
18
18
|
export { Snackbar } from './Snackbar';
|
|
19
19
|
export { Surface } from './Surface';
|
|
20
|
+
export { Switch } from './Switch';
|
|
20
21
|
export { Text } from './Text';
|
|
21
22
|
export { TextInput } from './TextInput';
|
|
22
23
|
export { ToggleButton } from './ToggleButton';
|
|
24
|
+
export { TouchableRipple } from './TouchableRipple';
|
|
23
25
|
export { Video } from './Video';
|
|
24
26
|
export { View } from './View';
|
package/src/constants/index.ts
CHANGED