@velion-la/onboarding-sdk-react-native 1.4.0-beta.2 → 1.4.0-beta.4
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/CHANGELOG.md +6 -1
- package/README.md +22 -1
- package/lib/commonjs/camera/AddressSearchBar.js +9 -7
- package/lib/commonjs/camera/AddressSearchBar.js.map +1 -1
- package/lib/commonjs/camera/DocumentCapture.js +7 -6
- package/lib/commonjs/camera/DocumentCapture.js.map +1 -1
- package/lib/commonjs/camera/LivenessCamera.js +6 -5
- package/lib/commonjs/camera/LivenessCamera.js.map +1 -1
- package/lib/commonjs/camera/MapAddressPicker.js +2 -1
- package/lib/commonjs/camera/MapAddressPicker.js.map +1 -1
- package/lib/commonjs/index.js +6 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/steps/AddressInfoStep.js +4 -3
- package/lib/commonjs/steps/AddressInfoStep.js.map +1 -1
- package/lib/commonjs/steps/DocumentsOcrStep.js +4 -3
- package/lib/commonjs/steps/DocumentsOcrStep.js.map +1 -1
- package/lib/commonjs/steps/EconomicActivityStep.js +3 -2
- package/lib/commonjs/steps/EconomicActivityStep.js.map +1 -1
- package/lib/commonjs/steps/EmailOtpStep.js +2 -1
- package/lib/commonjs/steps/EmailOtpStep.js.map +1 -1
- package/lib/commonjs/steps/FaceMatchStep.js +3 -2
- package/lib/commonjs/steps/FaceMatchStep.js.map +1 -1
- package/lib/commonjs/steps/LivenessMatchStep.js +3 -2
- package/lib/commonjs/steps/LivenessMatchStep.js.map +1 -1
- package/lib/commonjs/steps/PhoneOtpStep.js +2 -1
- package/lib/commonjs/steps/PhoneOtpStep.js.map +1 -1
- package/lib/commonjs/steps/TermsAndConditionsStep.js +3 -2
- package/lib/commonjs/steps/TermsAndConditionsStep.js.map +1 -1
- package/lib/commonjs/transport/api.js +1 -0
- package/lib/commonjs/transport/api.js.map +1 -1
- package/lib/commonjs/types/index.js +7 -6
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/ui/StepShell.js +3 -2
- package/lib/commonjs/ui/StepShell.js.map +1 -1
- package/lib/commonjs/ui/VelionOnboardingScreen.js +5 -4
- package/lib/commonjs/ui/VelionOnboardingScreen.js.map +1 -1
- package/lib/commonjs/ui/icons/StepIcon.js +2 -2
- package/lib/commonjs/ui/icons/StepIcon.js.map +1 -1
- package/lib/commonjs/ui/overlays/AnalyzingOverlay.js +3 -2
- package/lib/commonjs/ui/overlays/AnalyzingOverlay.js.map +1 -1
- package/lib/commonjs/ui/overlays/LoadingOverlay.js +2 -1
- package/lib/commonjs/ui/overlays/LoadingOverlay.js.map +1 -1
- package/lib/commonjs/ui/overlays/RetryDialog.js +4 -3
- package/lib/commonjs/ui/overlays/RetryDialog.js.map +1 -1
- package/lib/commonjs/ui/primitives/BackButton.js +2 -1
- package/lib/commonjs/ui/primitives/BackButton.js.map +1 -1
- package/lib/commonjs/ui/primitives/Banner.js +3 -2
- package/lib/commonjs/ui/primitives/Banner.js.map +1 -1
- package/lib/commonjs/ui/primitives/Button.js +8 -5
- package/lib/commonjs/ui/primitives/Button.js.map +1 -1
- package/lib/commonjs/ui/primitives/Checkbox.js +5 -4
- package/lib/commonjs/ui/primitives/Checkbox.js.map +1 -1
- package/lib/commonjs/ui/primitives/CountrySelect.js +16 -13
- package/lib/commonjs/ui/primitives/CountrySelect.js.map +1 -1
- package/lib/commonjs/ui/primitives/DatePicker.js +4 -3
- package/lib/commonjs/ui/primitives/DatePicker.js.map +1 -1
- package/lib/commonjs/ui/primitives/Input.js +9 -7
- package/lib/commonjs/ui/primitives/Input.js.map +1 -1
- package/lib/commonjs/ui/primitives/SearchableSingleSelectList.js +8 -6
- package/lib/commonjs/ui/primitives/SearchableSingleSelectList.js.map +1 -1
- package/lib/commonjs/ui/primitives/Select.js +11 -9
- package/lib/commonjs/ui/primitives/Select.js.map +1 -1
- package/lib/commonjs/ui/primitives/Text.js +67 -0
- package/lib/commonjs/ui/primitives/Text.js.map +1 -0
- package/lib/commonjs/ui/primitives/index.js +13 -0
- package/lib/commonjs/ui/primitives/index.js.map +1 -1
- package/lib/commonjs/ui/theme/ThemeProvider.js +14 -1
- package/lib/commonjs/ui/theme/ThemeProvider.js.map +1 -1
- package/lib/commonjs/ui/theme/fontLoader.js +77 -0
- package/lib/commonjs/ui/theme/fontLoader.js.map +1 -0
- package/lib/commonjs/ui/theme/fonts.js +200 -0
- package/lib/commonjs/ui/theme/fonts.js.map +1 -0
- package/lib/commonjs/ui/theme/index.js +31 -0
- package/lib/commonjs/ui/theme/index.js.map +1 -1
- package/lib/commonjs/ui/theme/tokens.js +32 -9
- package/lib/commonjs/ui/theme/tokens.js.map +1 -1
- package/lib/module/camera/AddressSearchBar.js +5 -3
- package/lib/module/camera/AddressSearchBar.js.map +1 -1
- package/lib/module/camera/DocumentCapture.js +2 -1
- package/lib/module/camera/DocumentCapture.js.map +1 -1
- package/lib/module/camera/LivenessCamera.js +2 -1
- package/lib/module/camera/LivenessCamera.js.map +1 -1
- package/lib/module/camera/MapAddressPicker.js +2 -1
- package/lib/module/camera/MapAddressPicker.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/steps/AddressInfoStep.js +2 -1
- package/lib/module/steps/AddressInfoStep.js.map +1 -1
- package/lib/module/steps/DocumentsOcrStep.js +2 -1
- package/lib/module/steps/DocumentsOcrStep.js.map +1 -1
- package/lib/module/steps/EconomicActivityStep.js +2 -1
- package/lib/module/steps/EconomicActivityStep.js.map +1 -1
- package/lib/module/steps/EmailOtpStep.js +2 -1
- package/lib/module/steps/EmailOtpStep.js.map +1 -1
- package/lib/module/steps/FaceMatchStep.js +2 -1
- package/lib/module/steps/FaceMatchStep.js.map +1 -1
- package/lib/module/steps/LivenessMatchStep.js +2 -1
- package/lib/module/steps/LivenessMatchStep.js.map +1 -1
- package/lib/module/steps/PhoneOtpStep.js +2 -1
- package/lib/module/steps/PhoneOtpStep.js.map +1 -1
- package/lib/module/steps/TermsAndConditionsStep.js +2 -1
- package/lib/module/steps/TermsAndConditionsStep.js.map +1 -1
- package/lib/module/transport/api.js +1 -0
- package/lib/module/transport/api.js.map +1 -1
- package/lib/module/types/index.js +7 -6
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/ui/StepShell.js +2 -1
- package/lib/module/ui/StepShell.js.map +1 -1
- package/lib/module/ui/VelionOnboardingScreen.js +2 -1
- package/lib/module/ui/VelionOnboardingScreen.js.map +1 -1
- package/lib/module/ui/icons/StepIcon.js +1 -1
- package/lib/module/ui/icons/StepIcon.js.map +1 -1
- package/lib/module/ui/overlays/AnalyzingOverlay.js +2 -1
- package/lib/module/ui/overlays/AnalyzingOverlay.js.map +1 -1
- package/lib/module/ui/overlays/LoadingOverlay.js +2 -1
- package/lib/module/ui/overlays/LoadingOverlay.js.map +1 -1
- package/lib/module/ui/overlays/RetryDialog.js +2 -1
- package/lib/module/ui/overlays/RetryDialog.js.map +1 -1
- package/lib/module/ui/primitives/BackButton.js +2 -1
- package/lib/module/ui/primitives/BackButton.js.map +1 -1
- package/lib/module/ui/primitives/Banner.js +2 -1
- package/lib/module/ui/primitives/Banner.js.map +1 -1
- package/lib/module/ui/primitives/Button.js +7 -4
- package/lib/module/ui/primitives/Button.js.map +1 -1
- package/lib/module/ui/primitives/Checkbox.js +2 -1
- package/lib/module/ui/primitives/Checkbox.js.map +1 -1
- package/lib/module/ui/primitives/CountrySelect.js +8 -5
- package/lib/module/ui/primitives/CountrySelect.js.map +1 -1
- package/lib/module/ui/primitives/DatePicker.js +2 -1
- package/lib/module/ui/primitives/DatePicker.js.map +1 -1
- package/lib/module/ui/primitives/Input.js +6 -4
- package/lib/module/ui/primitives/Input.js.map +1 -1
- package/lib/module/ui/primitives/SearchableSingleSelectList.js +5 -3
- package/lib/module/ui/primitives/SearchableSingleSelectList.js.map +1 -1
- package/lib/module/ui/primitives/Select.js +5 -3
- package/lib/module/ui/primitives/Select.js.map +1 -1
- package/lib/module/ui/primitives/Text.js +65 -0
- package/lib/module/ui/primitives/Text.js.map +1 -0
- package/lib/module/ui/primitives/index.js +1 -0
- package/lib/module/ui/primitives/index.js.map +1 -1
- package/lib/module/ui/theme/ThemeProvider.js +13 -1
- package/lib/module/ui/theme/ThemeProvider.js.map +1 -1
- package/lib/module/ui/theme/fontLoader.js +70 -0
- package/lib/module/ui/theme/fontLoader.js.map +1 -0
- package/lib/module/ui/theme/fonts.js +191 -0
- package/lib/module/ui/theme/fonts.js.map +1 -0
- package/lib/module/ui/theme/index.js +3 -2
- package/lib/module/ui/theme/index.js.map +1 -1
- package/lib/module/ui/theme/tokens.js +31 -9
- package/lib/module/ui/theme/tokens.js.map +1 -1
- package/lib/typescript/camera/AddressSearchBar.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/steps/AddressInfoStep.d.ts.map +1 -1
- package/lib/typescript/steps/EconomicActivityStep.d.ts.map +1 -1
- package/lib/typescript/steps/EmailOtpStep.d.ts.map +1 -1
- package/lib/typescript/steps/FaceMatchStep.d.ts.map +1 -1
- package/lib/typescript/steps/LivenessMatchStep.d.ts.map +1 -1
- package/lib/typescript/steps/PhoneOtpStep.d.ts.map +1 -1
- package/lib/typescript/steps/TermsAndConditionsStep.d.ts.map +1 -1
- package/lib/typescript/transport/api.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +35 -7
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/ui/StepShell.d.ts.map +1 -1
- package/lib/typescript/ui/VelionOnboardingScreen.d.ts.map +1 -1
- package/lib/typescript/ui/overlays/LoadingOverlay.d.ts.map +1 -1
- package/lib/typescript/ui/overlays/RetryDialog.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/BackButton.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/Banner.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/Button.d.ts +2 -1
- package/lib/typescript/ui/primitives/Button.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/Checkbox.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/CountrySelect.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/DatePicker.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/Input.d.ts +3 -3
- package/lib/typescript/ui/primitives/Input.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/SearchableSingleSelectList.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/Select.d.ts.map +1 -1
- package/lib/typescript/ui/primitives/Text.d.ts +19 -0
- package/lib/typescript/ui/primitives/Text.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/index.d.ts +1 -0
- package/lib/typescript/ui/primitives/index.d.ts.map +1 -1
- package/lib/typescript/ui/theme/ThemeProvider.d.ts +7 -0
- package/lib/typescript/ui/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/ui/theme/fontLoader.d.ts +28 -0
- package/lib/typescript/ui/theme/fontLoader.d.ts.map +1 -0
- package/lib/typescript/ui/theme/fonts.d.ts +157 -0
- package/lib/typescript/ui/theme/fonts.d.ts.map +1 -0
- package/lib/typescript/ui/theme/index.d.ts +3 -2
- package/lib/typescript/ui/theme/index.d.ts.map +1 -1
- package/lib/typescript/ui/theme/tokens.d.ts +25 -2
- package/lib/typescript/ui/theme/tokens.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/camera/AddressSearchBar.tsx +3 -4
- package/src/camera/DocumentCapture.tsx +1 -1
- package/src/camera/LivenessCamera.tsx +1 -1
- package/src/camera/MapAddressPicker.tsx +1 -1
- package/src/index.ts +2 -0
- package/src/steps/AddressInfoStep.tsx +6 -1
- package/src/steps/DocumentsOcrStep.tsx +1 -1
- package/src/steps/EconomicActivityStep.tsx +6 -1
- package/src/steps/EmailOtpStep.tsx +6 -1
- package/src/steps/FaceMatchStep.tsx +6 -1
- package/src/steps/LivenessMatchStep.tsx +7 -1
- package/src/steps/PhoneOtpStep.tsx +6 -1
- package/src/steps/TermsAndConditionsStep.tsx +7 -1
- package/src/transport/api.ts +1 -0
- package/src/types/index.ts +35 -7
- package/src/ui/StepShell.tsx +6 -1
- package/src/ui/VelionOnboardingScreen.tsx +5 -1
- package/src/ui/icons/StepIcon.tsx +1 -1
- package/src/ui/overlays/AnalyzingOverlay.tsx +1 -1
- package/src/ui/overlays/LoadingOverlay.tsx +7 -1
- package/src/ui/overlays/RetryDialog.tsx +5 -1
- package/src/ui/primitives/BackButton.tsx +5 -1
- package/src/ui/primitives/Banner.tsx +5 -1
- package/src/ui/primitives/Button.tsx +5 -4
- package/src/ui/primitives/Checkbox.tsx +5 -1
- package/src/ui/primitives/CountrySelect.tsx +5 -6
- package/src/ui/primitives/DatePicker.tsx +7 -1
- package/src/ui/primitives/Input.tsx +6 -6
- package/src/ui/primitives/SearchableSingleSelectList.tsx +3 -4
- package/src/ui/primitives/Select.tsx +3 -3
- package/src/ui/primitives/Text.tsx +66 -0
- package/src/ui/primitives/index.ts +1 -0
- package/src/ui/theme/ThemeProvider.tsx +15 -2
- package/src/ui/theme/fontLoader.ts +92 -0
- package/src/ui/theme/fonts.ts +220 -0
- package/src/ui/theme/index.ts +9 -0
- package/src/ui/theme/tokens.ts +44 -6
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* - Secondary: filled with `secondaryColor`.
|
|
7
7
|
* - Ghost: transparent with border + text in `textColor`.
|
|
8
8
|
*
|
|
9
|
-
* 44 px
|
|
9
|
+
* Min height from `theme.buttonHeight` (44 px by default, the Apple HIG /
|
|
10
|
+
* WCAG 2.5.5 tap target). Disabled state dims at 0.45
|
|
10
11
|
* opacity (matches `.vl-btn:disabled`).
|
|
11
12
|
*/
|
|
12
13
|
import { type GestureResponderEvent, type StyleProp, type ViewStyle } from 'react-native';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Button.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAKL,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,OAAO,EACP,OAAmB,EACnB,QAAgB,EAChB,OAAe,EACf,SAAgB,EAChB,KAAK,EACL,kBAAkB,EAClB,MAAM,GACP,EAAE,WAAW,+BAuCb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uEAAuE;IACvE,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,QAAQ,EACR,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,OAAkB,EAClB,MAAM,GACP,EAAE,aAAa,+BA6Df"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CountrySelect.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/CountrySelect.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"CountrySelect.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/CountrySelect.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAStB,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,wFAAwF;IACxF,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;CACnD;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,MAAa,EACb,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,QAAgB,EAChB,cAAc,GACf,EAAE,kBAAkB,+BAqMpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/DatePicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/DatePicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACrC;AA2CD,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,OAAc,EACd,OAAkC,EAClC,cAAc,EACd,WAAgC,GACjC,EAAE,eAAe,+BA2HjB"}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* Themed text input with optional inline error message.
|
|
3
3
|
*
|
|
4
4
|
* Matches `.vl-hbi__input` semantics:
|
|
5
|
-
* - 44 px
|
|
5
|
+
* - Min height from `theme.inputHeight` (44 px by default, the tap target).
|
|
6
6
|
* - Border switches to `errorColor` and a subtle ring when `errorMessage` is set.
|
|
7
7
|
* - Pairs an externally controlled label rendered above (see `<Field>` helper).
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { type StyleProp, type TextInput as RNTextInput, type TextInputProps, type ViewStyle } from 'react-native';
|
|
10
10
|
export interface InputProps extends Omit<TextInputProps, 'style'> {
|
|
11
11
|
label?: string;
|
|
12
12
|
errorMessage?: string | null;
|
|
13
13
|
required?: boolean;
|
|
14
14
|
containerStyle?: StyleProp<ViewStyle>;
|
|
15
15
|
}
|
|
16
|
-
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<
|
|
16
|
+
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<RNTextInput>>;
|
|
17
17
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAGL,SAAS,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,IAAI,WAAW,EAC7B,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,KAAK,oGAuDhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchableSingleSelectList.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/SearchableSingleSelectList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"SearchableSingleSelectList.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/SearchableSingleSelectList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC3C,mEAAmE;IACnE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;CAC1C;AAED,wBAAgB,0BAA0B,CAAC,EACzC,KAAK,EACL,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,QAAgB,EAChB,KAAK,GACN,EAAE,+BAA+B,+BA0FjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Select.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Select.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,QAAgB,EAChB,cAAc,GACf,EAAE,WAAW,+BAyIb"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Themed `Text` and `TextInput` (OSDKR-45).
|
|
3
|
+
*
|
|
4
|
+
* Drop-in replacements for the React Native components that render with the
|
|
5
|
+
* theme's catalog font. Every SDK text goes through them — a test fails if a
|
|
6
|
+
* file imports `Text` or `TextInput` from `react-native` directly — so the
|
|
7
|
+
* font configured in `VelionTheme.fontFamily` reaches all of them.
|
|
8
|
+
*
|
|
9
|
+
* The face is picked from the text's own `fontWeight`, or from the enclosing
|
|
10
|
+
* `Text`'s when a nested one sets none (React Native inherits the weight, but
|
|
11
|
+
* a nested text names its own face, so the weight has to travel with it).
|
|
12
|
+
* With no catalog font
|
|
13
|
+
* loaded (or outside a `ThemeProvider`) they behave exactly like the React
|
|
14
|
+
* Native components.
|
|
15
|
+
*/
|
|
16
|
+
import { Text as RNText, TextInput as RNTextInput, type TextInputProps, type TextProps } from 'react-native';
|
|
17
|
+
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<RNText>>;
|
|
18
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<TextInputProps & import("react").RefAttributes<RNTextInput>>;
|
|
19
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/Text.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,IAAI,IAAI,MAAM,EACd,SAAS,IAAI,WAAW,EACxB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAOtB,eAAO,MAAM,IAAI,8FAmBf,CAAC;AAEH,eAAO,MAAM,SAAS,wGAcrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,GAC1B,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,GAC1B,MAAM,8BAA8B,CAAC"}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* - `ThemeProvider` resolves tokens from `VelionConfig.theme` + colorMode and
|
|
5
5
|
* exposes them to descendants.
|
|
6
6
|
* - `useTheme()` returns the active `ResolvedTheme`.
|
|
7
|
+
* - The catalog font named by `fontFamily` is loaded here (`useCatalogFont`)
|
|
8
|
+
* and exposed as `theme.fontId` once it is usable.
|
|
7
9
|
* - `useReducedMotion()` honours the OS-level `prefers-reduced-motion` flag —
|
|
8
10
|
* components disable animations when true.
|
|
9
11
|
*/
|
|
@@ -19,5 +21,10 @@ export interface ThemeProviderProps {
|
|
|
19
21
|
}
|
|
20
22
|
export declare function ThemeProvider({ themeOverrides, colorMode, children, }: ThemeProviderProps): React.JSX.Element;
|
|
21
23
|
export declare function useTheme(): ResolvedTheme;
|
|
24
|
+
/**
|
|
25
|
+
* Like `useTheme`, but `null` outside a `ThemeProvider` instead of throwing.
|
|
26
|
+
* For primitives that must also render where no provider is mounted.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOptionalTheme(): ResolvedTheme | null;
|
|
22
29
|
export declare function useReducedMotion(): boolean;
|
|
23
30
|
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EAMZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAU5D,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,cAAc,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,SAAkB,EAClB,QAAQ,GACT,EAAE,kBAAkB,qBAwBpB;AAED,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,GAAG,IAAI,CAEvD;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAG1C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Loads the theme's catalog font with `expo-font` (OSDKR-45).
|
|
3
|
+
*
|
|
4
|
+
* `useCatalogFont` returns the catalog id only once every face is registered,
|
|
5
|
+
* so `ThemeProvider` never hands texts a family the platform does not have.
|
|
6
|
+
* Until then — and for good if the download fails — texts use the system font.
|
|
7
|
+
*/
|
|
8
|
+
import { type VelionCatalogFontId } from './fonts';
|
|
9
|
+
/** The slice of `expo-font` the loader uses; injectable for tests. */
|
|
10
|
+
export interface FontApi {
|
|
11
|
+
isLoaded(fontFamily: string): boolean;
|
|
12
|
+
loadAsync(fontMap: Record<string, string>): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
/** True when every face of the font is already registered. */
|
|
15
|
+
export declare function isCatalogFontLoaded(fontId: VelionCatalogFontId, api?: FontApi): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Registers every face of the font. Resolves `true` when they are all usable
|
|
18
|
+
* and `false` when the download failed; it never rejects, because a missing
|
|
19
|
+
* font must not break the flow.
|
|
20
|
+
*/
|
|
21
|
+
export declare function loadCatalogFont(fontId: VelionCatalogFontId, api?: FontApi): Promise<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves `fontFamily` against the catalog and loads it. Returns the id once
|
|
24
|
+
* the font is usable, `null` while it loads, when it failed, or when the value
|
|
25
|
+
* is not a catalog font.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useCatalogFont(fontFamily: string | undefined): VelionCatalogFontId | null;
|
|
28
|
+
//# sourceMappingURL=fontLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fontLoader.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/fontLoader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,SAAS,CAAC;AAEjB,sEAAsE;AACtE,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IACtC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3D;AAOD,8DAA8D;AAC9D,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,GAAE,OAAqB,GACzB,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,GAAE,OAAqB,GACzB,OAAO,CAAC,OAAO,CAAC,CAYlB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,GAC7B,mBAAmB,GAAG,IAAI,CA0B5B"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Closed font catalog for `VelionTheme.fontFamily` (OSDKR-45).
|
|
3
|
+
*
|
|
4
|
+
* The theme names a font by id; the SDK maps that id to the font files it
|
|
5
|
+
* downloads with `expo-font`. A URL never comes from configuration (R-B12 of
|
|
6
|
+
* the web-onboarding design): an id outside the catalog renders with the
|
|
7
|
+
* system font. The ids and the catalog must stay in sync with the web SDK
|
|
8
|
+
* (OSDKW-39), so a workflow looks the same on web and mobile.
|
|
9
|
+
*
|
|
10
|
+
* Each family ships four static faces (400 / 500 / 600 / 700) — the weights
|
|
11
|
+
* the SDK's text styles use. Lighter weights resolve to 400 and heavier ones
|
|
12
|
+
* to 700. The files are the Google Fonts TTF instances (iOS and Android do not
|
|
13
|
+
* load WOFF2); the URLs are immutable and versioned by Google.
|
|
14
|
+
*
|
|
15
|
+
* This module has no React Native imports so it can be unit-tested in Node.
|
|
16
|
+
*/
|
|
17
|
+
/** Weight slots the catalog ships a face for. */
|
|
18
|
+
export type FontWeightSlot = 400 | 500 | 600 | 700;
|
|
19
|
+
declare const CATALOG: {
|
|
20
|
+
readonly inter: {
|
|
21
|
+
readonly displayName: "Inter";
|
|
22
|
+
readonly faces: {
|
|
23
|
+
readonly 400: "https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf";
|
|
24
|
+
readonly 500: "https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf";
|
|
25
|
+
readonly 600: "https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf";
|
|
26
|
+
readonly 700: "https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly roboto: {
|
|
30
|
+
readonly displayName: "Roboto";
|
|
31
|
+
readonly faces: {
|
|
32
|
+
readonly 400: "https://fonts.gstatic.com/s/roboto/v51/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbWmT.ttf";
|
|
33
|
+
readonly 500: "https://fonts.gstatic.com/s/roboto/v51/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWub2bWmT.ttf";
|
|
34
|
+
readonly 600: "https://fonts.gstatic.com/s/roboto/v51/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYaammT.ttf";
|
|
35
|
+
readonly 700: "https://fonts.gstatic.com/s/roboto/v51/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYjammT.ttf";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly 'open-sans': {
|
|
39
|
+
readonly displayName: "Open Sans";
|
|
40
|
+
readonly faces: {
|
|
41
|
+
readonly 400: "https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0C4n.ttf";
|
|
42
|
+
readonly 500: "https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjr0C4n.ttf";
|
|
43
|
+
readonly 600: "https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsgH1y4n.ttf";
|
|
44
|
+
readonly 700: "https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1y4n.ttf";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly montserrat: {
|
|
48
|
+
readonly displayName: "Montserrat";
|
|
49
|
+
readonly faces: {
|
|
50
|
+
readonly 400: "https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf";
|
|
51
|
+
readonly 500: "https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Ew-.ttf";
|
|
52
|
+
readonly 600: "https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf";
|
|
53
|
+
readonly 700: "https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly poppins: {
|
|
57
|
+
readonly displayName: "Poppins";
|
|
58
|
+
readonly faces: {
|
|
59
|
+
readonly 400: "https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrFJA.ttf";
|
|
60
|
+
readonly 500: "https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLGT9V1s.ttf";
|
|
61
|
+
readonly 600: "https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6V1s.ttf";
|
|
62
|
+
readonly 700: "https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLCz7V1s.ttf";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly nunito: {
|
|
66
|
+
readonly displayName: "Nunito";
|
|
67
|
+
readonly faces: {
|
|
68
|
+
readonly 400: "https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2di8HDLshRTM.ttf";
|
|
69
|
+
readonly 500: "https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhRTM.ttf";
|
|
70
|
+
readonly 600: "https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2di8HDGUmRTM.ttf";
|
|
71
|
+
readonly 700: "https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2di8HDFwmRTM.ttf";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly 'source-sans-3': {
|
|
75
|
+
readonly displayName: "Source Sans 3";
|
|
76
|
+
readonly faces: {
|
|
77
|
+
readonly 400: "https://fonts.gstatic.com/s/sourcesans3/v20/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Ky461EN.ttf";
|
|
78
|
+
readonly 500: "https://fonts.gstatic.com/s/sourcesans3/v20/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8KyK61EN.ttf";
|
|
79
|
+
readonly 600: "https://fonts.gstatic.com/s/sourcesans3/v20/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Kxm7FEN.ttf";
|
|
80
|
+
readonly 700: "https://fonts.gstatic.com/s/sourcesans3/v20/nwpBtKy2OAdR1K-IwhWudF-R9QMylBJAV3Bo8Kxf7FEN.ttf";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly 'work-sans': {
|
|
84
|
+
readonly displayName: "Work Sans";
|
|
85
|
+
readonly faces: {
|
|
86
|
+
readonly 400: "https://fonts.gstatic.com/s/worksans/v24/QGY_z_wNahGAdqQ43RhVcIgYT2Xz5u32K0nXNig.ttf";
|
|
87
|
+
readonly 500: "https://fonts.gstatic.com/s/worksans/v24/QGY_z_wNahGAdqQ43RhVcIgYT2Xz5u32K3vXNig.ttf";
|
|
88
|
+
readonly 600: "https://fonts.gstatic.com/s/worksans/v24/QGY_z_wNahGAdqQ43RhVcIgYT2Xz5u32K5fQNig.ttf";
|
|
89
|
+
readonly 700: "https://fonts.gstatic.com/s/worksans/v24/QGY_z_wNahGAdqQ43RhVcIgYT2Xz5u32K67QNig.ttf";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly 'ibm-plex-sans': {
|
|
93
|
+
readonly displayName: "IBM Plex Sans";
|
|
94
|
+
readonly faces: {
|
|
95
|
+
readonly 400: "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6llzAA.ttf";
|
|
96
|
+
readonly 500: "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD2FlzAA.ttf";
|
|
97
|
+
readonly 600: "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDNF5zAA.ttf";
|
|
98
|
+
readonly 700: "https://fonts.gstatic.com/s/ibmplexsans/v23/zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDDV5zAA.ttf";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly 'dm-sans': {
|
|
102
|
+
readonly displayName: "DM Sans";
|
|
103
|
+
readonly faces: {
|
|
104
|
+
readonly 400: "https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTg.ttf";
|
|
105
|
+
readonly 500: "https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTg.ttf";
|
|
106
|
+
readonly 600: "https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTg.ttf";
|
|
107
|
+
readonly 700: "https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTg.ttf";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
/** Id of a font in the catalog. */
|
|
112
|
+
export type VelionCatalogFontId = keyof typeof CATALOG;
|
|
113
|
+
/**
|
|
114
|
+
* Accepted values of `VelionTheme.fontFamily`: a catalog id, or `'system'`
|
|
115
|
+
* (the platform font, the default).
|
|
116
|
+
*/
|
|
117
|
+
export type VelionFontId = 'system' | VelionCatalogFontId;
|
|
118
|
+
/** Every accepted font id, `'system'` first. */
|
|
119
|
+
export declare const VELION_FONT_IDS: readonly VelionFontId[];
|
|
120
|
+
/**
|
|
121
|
+
* Resolves the `fontFamily` theme value to a catalog id, or `null` for the
|
|
122
|
+
* system font.
|
|
123
|
+
*
|
|
124
|
+
* Tolerates the CSS-style values the web theme used to take: only the first
|
|
125
|
+
* family of a comma-separated stack counts, quotes and case are ignored, and
|
|
126
|
+
* the Google Fonts name works as well as the id (`'Open Sans'` and
|
|
127
|
+
* `'"Open Sans", sans-serif'` both give `open-sans`). Anything else gives
|
|
128
|
+
* `null`.
|
|
129
|
+
*/
|
|
130
|
+
export declare function resolveFontId(value: string | null | undefined): VelionCatalogFontId | null;
|
|
131
|
+
/**
|
|
132
|
+
* Maps a React Native `fontWeight` to the face that renders it. Numeric
|
|
133
|
+
* weights round to the nearest slot (ties go up); `'bold'` is 700 and anything
|
|
134
|
+
* unrecognised, `'normal'` included, is 400.
|
|
135
|
+
*/
|
|
136
|
+
export declare function weightSlot(fontWeight: unknown): FontWeightSlot;
|
|
137
|
+
/**
|
|
138
|
+
* Name the face is registered under with `expo-font`. Prefixed so it cannot
|
|
139
|
+
* collide with a font the host app loads itself.
|
|
140
|
+
*/
|
|
141
|
+
export declare function fontFaceName(fontId: VelionCatalogFontId, weight: FontWeightSlot): string;
|
|
142
|
+
/** The `{ faceName: url }` map to hand to `expo-font`'s `loadAsync`. */
|
|
143
|
+
export declare function fontSources(fontId: VelionCatalogFontId): Record<string, string>;
|
|
144
|
+
/**
|
|
145
|
+
* Style that makes a text render with the loaded catalog font.
|
|
146
|
+
*
|
|
147
|
+
* Returns `undefined` when there is no font to apply, so the text keeps the
|
|
148
|
+
* system font. `fontWeight` is set to the slot of the face picked: on iOS the
|
|
149
|
+
* face is looked up by family and weight, so a mismatched weight would pick
|
|
150
|
+
* another face; on Android it stops a synthetic bold on top of a bold face.
|
|
151
|
+
*/
|
|
152
|
+
export declare function fontStyleFor(fontId: VelionCatalogFontId | null, fontWeight: unknown): {
|
|
153
|
+
fontFamily: string;
|
|
154
|
+
fontWeight: `${FontWeightSlot}`;
|
|
155
|
+
} | undefined;
|
|
156
|
+
export {};
|
|
157
|
+
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,iDAAiD;AACjD,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AASnD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FuC,CAAC;AAErD,mCAAmC;AACnC,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,OAAO,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE1D,gDAAgD;AAChD,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAGlD,CAAC;AAIF;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,mBAAmB,GAAG,IAAI,CAY5B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,OAAO,GAAG,cAAc,CAQ9D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,cAAc,GACrB,MAAM,CAER;AAED,wEAAwE;AACxE,wBAAgB,WAAW,CACzB,MAAM,EAAE,mBAAmB,GAC1B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,mBAAmB,GAAG,IAAI,EAClC,UAAU,EAAE,OAAO,GAClB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,GAAG,cAAc,EAAE,CAAA;CAAE,GAAG,SAAS,CAOrE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { ThemeProvider, useTheme, useReducedMotion, type ThemeProviderProps, } from './ThemeProvider';
|
|
2
|
-
export { LIGHT_TOKENS, DARK_TOKENS, getDefaultThemeTokens, resolveTheme, mixHex, withAlpha, isHexDark, type ResolvedTheme, type ThemeTokenSet, } from './tokens';
|
|
1
|
+
export { ThemeProvider, useTheme, useOptionalTheme, useReducedMotion, type ThemeProviderProps, } from './ThemeProvider';
|
|
2
|
+
export { LIGHT_TOKENS, DARK_TOKENS, getDefaultThemeTokens, resolveTheme, mixHex, withAlpha, isHexDark, DEFAULT_CONTROL_HEIGHT_PX, type ResolvedTheme, type ThemeTokenSet, } from './tokens';
|
|
3
|
+
export { VELION_FONT_IDS, resolveFontId, fontStyleFor, type VelionFontId, type VelionCatalogFontId, } from './fonts';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,KAAK,kBAAkB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,MAAM,EACN,SAAS,EACT,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,kBAAkB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,MAAM,EACN,SAAS,EACT,SAAS,EACT,yBAAyB,EACzB,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,mBAAmB,GACzB,MAAM,SAAS,CAAC"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* pairing). Consumer overrides from `VelionConfig.theme` are layered on top.
|
|
9
9
|
*/
|
|
10
10
|
import type { VelionTheme } from '../../types';
|
|
11
|
+
import type { VelionCatalogFontId } from './fonts';
|
|
11
12
|
/** Tonal token set. Shape matches `VelionTheme` (all required, no undefineds). */
|
|
12
13
|
export type ThemeTokenSet = Required<VelionTheme>;
|
|
13
14
|
/**
|
|
@@ -20,12 +21,29 @@ export interface ResolvedTheme extends ThemeTokenSet {
|
|
|
20
21
|
effectiveMode: 'light' | 'dark';
|
|
21
22
|
/** The numeric pixel value parsed from `borderRadius` (the SDK-wide default). */
|
|
22
23
|
borderRadiusPx: number;
|
|
24
|
+
/** Minimum height of inputs and selects, parsed from `inputHeight`. */
|
|
25
|
+
inputHeightPx: number;
|
|
26
|
+
/** Minimum height of buttons, parsed from `buttonHeight`. */
|
|
27
|
+
buttonHeightPx: number;
|
|
28
|
+
/**
|
|
29
|
+
* Catalog font every text renders with, or `null` for the system font.
|
|
30
|
+
* Set only once the font files are loaded, so a text never names a face the
|
|
31
|
+
* platform does not have yet.
|
|
32
|
+
*/
|
|
33
|
+
fontId: VelionCatalogFontId | null;
|
|
23
34
|
}
|
|
35
|
+
/** Default for `inputHeight` and `buttonHeight`: the 44 px tap target. */
|
|
36
|
+
export declare const DEFAULT_CONTROL_HEIGHT_PX = 44;
|
|
24
37
|
export declare const LIGHT_TOKENS: ThemeTokenSet;
|
|
25
38
|
export declare const DARK_TOKENS: ThemeTokenSet;
|
|
26
39
|
export declare function getDefaultThemeTokens(colorMode?: 'light' | 'dark'): ThemeTokenSet;
|
|
27
|
-
/**
|
|
28
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Layers consumer overrides on top of the base tokens for the requested mode.
|
|
42
|
+
*
|
|
43
|
+
* `loadedFontId` is the catalog font whose files are already loaded (see
|
|
44
|
+
* `ThemeProvider`); until then texts keep the system font.
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolveTheme(theme: VelionTheme | undefined, colorMode: 'light' | 'dark', loadedFontId?: VelionCatalogFontId | null): ResolvedTheme;
|
|
29
47
|
/** WCAG relative-luminance check. Returns false on unparsable input. */
|
|
30
48
|
export declare function isHexDark(hex: string): boolean;
|
|
31
49
|
/**
|
|
@@ -39,4 +57,9 @@ export declare function mixHex(a: string, b: string, ratioOfA: number): string;
|
|
|
39
57
|
* borders / fills that should not blend with the host background.
|
|
40
58
|
*/
|
|
41
59
|
export declare function withAlpha(hex: string, alpha: number): string;
|
|
60
|
+
/**
|
|
61
|
+
* Parses a `'12px'` theme length. A bare number (`'12'`) is read as pixels;
|
|
62
|
+
* anything else — other units, garbage, a missing value — gives `fallback`.
|
|
63
|
+
*/
|
|
64
|
+
export declare function parsePx(value: string | undefined, fallback: number): number;
|
|
42
65
|
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/ui/theme/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,kFAAkF;AAClF,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,8EAA8E;IAC9E,aAAa,EAAE,OAAO,GAAG,MAAM,CAAC;IAChC,iFAAiF;IACjF,cAAc,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,aAAa,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACpC;AAED,0EAA0E;AAC1E,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,eAAO,MAAM,YAAY,EAAE,aAiB1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,aAiBzB,CAAC;AAEF,wBAAgB,qBAAqB,CACnC,SAAS,GAAE,OAAO,GAAG,MAAgB,GACpC,aAAa,CAEf;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,WAAW,GAAG,SAAS,EAC9B,SAAS,EAAE,OAAO,GAAG,MAAM,EAC3B,YAAY,GAAE,mBAAmB,GAAG,IAAW,GAC9C,aAAa,CAoBf;AAED,wEAAwE;AACxE,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAY9C;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CASrE;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAK5D;AA2BD;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAQ3E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velion-la/onboarding-sdk-react-native",
|
|
3
|
-
"version": "1.4.0-beta.
|
|
3
|
+
"version": "1.4.0-beta.4",
|
|
4
4
|
"description": "Native React Native SDK for the Velion Onboarding (KYC) flow: ID document OCR, passive + active liveness, device fingerprint, OTP verification, address picker, and personal / legal information forms.",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"expo-crypto": "~57.0.4",
|
|
72
72
|
"expo-device": "~57.0.2",
|
|
73
73
|
"expo-file-system": "~57.0.6",
|
|
74
|
+
"expo-font": "~57.0.4",
|
|
74
75
|
"expo-image-manipulator": "~57.0.21",
|
|
75
76
|
"expo-keep-awake": "~57.0.1",
|
|
76
77
|
"expo-location": "~57.0.22",
|
|
@@ -28,10 +28,9 @@ import {
|
|
|
28
28
|
Pressable,
|
|
29
29
|
ScrollView,
|
|
30
30
|
StyleSheet,
|
|
31
|
-
Text,
|
|
32
|
-
TextInput,
|
|
33
31
|
View,
|
|
34
32
|
} from 'react-native';
|
|
33
|
+
import { Text, TextInput } from '../ui/primitives/Text';
|
|
35
34
|
import * as Location from 'expo-location';
|
|
36
35
|
import { useTheme } from '../ui/theme';
|
|
37
36
|
import { log } from '../utils/log';
|
|
@@ -180,6 +179,7 @@ export function AddressSearchBar({
|
|
|
180
179
|
<View
|
|
181
180
|
style={[
|
|
182
181
|
styles.inputWrap,
|
|
182
|
+
{ minHeight: theme.inputHeightPx },
|
|
183
183
|
{
|
|
184
184
|
backgroundColor: theme.backgroundColor,
|
|
185
185
|
borderColor: theme.borderColor,
|
|
@@ -301,7 +301,6 @@ const styles = StyleSheet.create({
|
|
|
301
301
|
inputWrap: {
|
|
302
302
|
flexDirection: 'row',
|
|
303
303
|
alignItems: 'center',
|
|
304
|
-
minHeight: 44,
|
|
305
304
|
paddingHorizontal: 14,
|
|
306
305
|
borderWidth: 1,
|
|
307
306
|
// Float over the map — sombra propia para que se "levante" sin
|
|
@@ -314,7 +313,7 @@ const styles = StyleSheet.create({
|
|
|
314
313
|
},
|
|
315
314
|
input: {
|
|
316
315
|
flex: 1,
|
|
317
|
-
paddingVertical:
|
|
316
|
+
paddingVertical: 8,
|
|
318
317
|
fontSize: 15,
|
|
319
318
|
},
|
|
320
319
|
clearBtn: {
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
ActivityIndicator,
|
|
31
31
|
Pressable,
|
|
32
32
|
StyleSheet,
|
|
33
|
-
Text,
|
|
34
33
|
useWindowDimensions,
|
|
35
34
|
View,
|
|
36
35
|
} from 'react-native';
|
|
36
|
+
import { Text } from '../ui/primitives/Text';
|
|
37
37
|
import Svg, { Defs, Mask, Rect } from 'react-native-svg';
|
|
38
38
|
import {
|
|
39
39
|
Camera,
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
Easing,
|
|
40
40
|
Platform,
|
|
41
41
|
StyleSheet,
|
|
42
|
-
Text,
|
|
43
42
|
useWindowDimensions,
|
|
44
43
|
View,
|
|
45
44
|
} from 'react-native';
|
|
45
|
+
import { Text } from '../ui/primitives/Text';
|
|
46
46
|
import Svg, { Defs, Ellipse, Mask, Rect } from 'react-native-svg';
|
|
47
47
|
import {
|
|
48
48
|
Camera,
|
|
@@ -34,9 +34,9 @@ import {
|
|
|
34
34
|
Keyboard,
|
|
35
35
|
Platform,
|
|
36
36
|
StyleSheet,
|
|
37
|
-
Text,
|
|
38
37
|
View,
|
|
39
38
|
} from 'react-native';
|
|
39
|
+
import { Text } from '../ui/primitives/Text';
|
|
40
40
|
import * as Location from 'expo-location';
|
|
41
41
|
import { Button } from '../ui/primitives/Button';
|
|
42
42
|
import { Banner } from '../ui/primitives/Banner';
|
package/src/index.ts
CHANGED
|
@@ -28,7 +28,12 @@ import {
|
|
|
28
28
|
type Dispatch,
|
|
29
29
|
type SetStateAction,
|
|
30
30
|
} from 'react';
|
|
31
|
-
import {
|
|
31
|
+
import {
|
|
32
|
+
Platform,
|
|
33
|
+
StyleSheet,
|
|
34
|
+
View,
|
|
35
|
+
} from 'react-native';
|
|
36
|
+
import { Text } from '../ui/primitives/Text';
|
|
32
37
|
import {
|
|
33
38
|
SdkErrorCode,
|
|
34
39
|
type AddressInfoPayload,
|
|
@@ -18,7 +18,12 @@
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
import { useCallback, useMemo, useState } from 'react';
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
Keyboard,
|
|
23
|
+
StyleSheet,
|
|
24
|
+
View,
|
|
25
|
+
} from 'react-native';
|
|
26
|
+
import { Text } from '../ui/primitives/Text';
|
|
22
27
|
import {
|
|
23
28
|
SdkErrorCode,
|
|
24
29
|
type EconomicActivitySelectionPayload,
|
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { useCallback, useState } from 'react';
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
Pressable,
|
|
15
|
+
StyleSheet,
|
|
16
|
+
View,
|
|
17
|
+
} from 'react-native';
|
|
18
|
+
import { Text } from '../ui/primitives/Text';
|
|
14
19
|
import { SdkErrorCode, type SdkError } from '../types';
|
|
15
20
|
import { Banner } from '../ui/primitives/Banner';
|
|
16
21
|
import { Button } from '../ui/primitives/Button';
|
|
@@ -14,7 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
import { useEffect, useRef } from 'react';
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
ActivityIndicator,
|
|
19
|
+
StyleSheet,
|
|
20
|
+
View,
|
|
21
|
+
} from 'react-native';
|
|
22
|
+
import { Text } from '../ui/primitives/Text';
|
|
18
23
|
import {
|
|
19
24
|
SdkErrorCode,
|
|
20
25
|
type OnboardingDtoResponse,
|
|
@@ -15,7 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
Image,
|
|
20
|
+
ScrollView,
|
|
21
|
+
StyleSheet,
|
|
22
|
+
View,
|
|
23
|
+
} from 'react-native';
|
|
24
|
+
import { Text } from '../ui/primitives/Text';
|
|
19
25
|
// `expo-file-system` v19's `File` class wraps a `file://` path with a Blob-
|
|
20
26
|
// compatible API (`arrayBuffer`, `size`, `delete`). We read the recorded mp4
|
|
21
27
|
// to bytes in JS and PUT them with the global `fetch`. For the typical
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useCallback, useState } from 'react';
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
Pressable,
|
|
13
|
+
StyleSheet,
|
|
14
|
+
View,
|
|
15
|
+
} from 'react-native';
|
|
16
|
+
import { Text } from '../ui/primitives/Text';
|
|
12
17
|
import { SdkErrorCode, type SdkError } from '../types';
|
|
13
18
|
import { Banner } from '../ui/primitives/Banner';
|
|
14
19
|
import { Button } from '../ui/primitives/Button';
|