react-native-phone-country-input 1.0.0
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/README.md +477 -0
- package/lib/commonjs/CountrySelector/CountrySelector.js +74 -0
- package/lib/commonjs/CountrySelector/CountrySelector.js.map +1 -0
- package/lib/commonjs/CountrySelector/CountrySelectorModal.js +267 -0
- package/lib/commonjs/CountrySelector/CountrySelectorModal.js.map +1 -0
- package/lib/commonjs/Keyboard/Keyboard.js +316 -0
- package/lib/commonjs/Keyboard/Keyboard.js.map +1 -0
- package/lib/commonjs/Keyboard/KeyboardToolbar.js +70 -0
- package/lib/commonjs/Keyboard/KeyboardToolbar.js.map +1 -0
- package/lib/commonjs/Keyboard/KeypadButton.js +66 -0
- package/lib/commonjs/Keyboard/KeypadButton.js.map +1 -0
- package/lib/commonjs/Keyboard/KeypadButtonContainer.js +65 -0
- package/lib/commonjs/Keyboard/KeypadButtonContainer.js.map +1 -0
- package/lib/commonjs/Keyboard/KeypadRow.js +34 -0
- package/lib/commonjs/Keyboard/KeypadRow.js.map +1 -0
- package/lib/commonjs/PhoneCountryInput/PhoneCountryInput.js +86 -0
- package/lib/commonjs/PhoneCountryInput/PhoneCountryInput.js.map +1 -0
- package/lib/commonjs/PhoneNumberField.js +36 -0
- package/lib/commonjs/PhoneNumberField.js.map +1 -0
- package/lib/commonjs/Styling/Colors.js +197 -0
- package/lib/commonjs/Styling/Colors.js.map +1 -0
- package/lib/commonjs/Styling/Sizing.js +111 -0
- package/lib/commonjs/Styling/Sizing.js.map +1 -0
- package/lib/commonjs/consts/KEYBOARD_LAYOUT.js +45 -0
- package/lib/commonjs/consts/KEYBOARD_LAYOUT.js.map +1 -0
- package/lib/commonjs/consts/regions.js +1503 -0
- package/lib/commonjs/consts/regions.js.map +1 -0
- package/lib/commonjs/enum/CountryIds.js +264 -0
- package/lib/commonjs/enum/CountryIds.js.map +1 -0
- package/lib/commonjs/hooks/UsePhoneFieldState.js +237 -0
- package/lib/commonjs/hooks/UsePhoneFieldState.js.map +1 -0
- package/lib/commonjs/index.js +56 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/characterDeletion.js +20 -0
- package/lib/commonjs/utils/characterDeletion.js.map +1 -0
- package/lib/commonjs/utils/characterInsert.js +20 -0
- package/lib/commonjs/utils/characterInsert.js.map +1 -0
- package/lib/commonjs/utils/fromMaskedNumberToUnmaskedSelection.js +14 -0
- package/lib/commonjs/utils/fromMaskedNumberToUnmaskedSelection.js.map +1 -0
- package/lib/commonjs/utils/fromUnmaskedToMaskedPosition.js +20 -0
- package/lib/commonjs/utils/fromUnmaskedToMaskedPosition.js.map +1 -0
- package/lib/commonjs/utils/generateCountryCodeList.js +23 -0
- package/lib/commonjs/utils/generateCountryCodeList.js.map +1 -0
- package/lib/commonjs/utils/getDefaultRegion.js +33 -0
- package/lib/commonjs/utils/getDefaultRegion.js.map +1 -0
- package/lib/commonjs/utils/maskToPhoneNumber.js +23 -0
- package/lib/commonjs/utils/maskToPhoneNumber.js.map +1 -0
- package/lib/commonjs/utils/matchCountryCode.js +27 -0
- package/lib/commonjs/utils/matchCountryCode.js.map +1 -0
- package/lib/module/CountrySelector/CountrySelector.js +70 -0
- package/lib/module/CountrySelector/CountrySelector.js.map +1 -0
- package/lib/module/CountrySelector/CountrySelectorModal.js +262 -0
- package/lib/module/CountrySelector/CountrySelectorModal.js.map +1 -0
- package/lib/module/Keyboard/Keyboard.js +310 -0
- package/lib/module/Keyboard/Keyboard.js.map +1 -0
- package/lib/module/Keyboard/KeyboardToolbar.js +65 -0
- package/lib/module/Keyboard/KeyboardToolbar.js.map +1 -0
- package/lib/module/Keyboard/KeypadButton.js +61 -0
- package/lib/module/Keyboard/KeypadButton.js.map +1 -0
- package/lib/module/Keyboard/KeypadButtonContainer.js +59 -0
- package/lib/module/Keyboard/KeypadButtonContainer.js.map +1 -0
- package/lib/module/Keyboard/KeypadRow.js +30 -0
- package/lib/module/Keyboard/KeypadRow.js.map +1 -0
- package/lib/module/PhoneCountryInput/PhoneCountryInput.js +80 -0
- package/lib/module/PhoneCountryInput/PhoneCountryInput.js.map +1 -0
- package/lib/module/PhoneNumberField.js +31 -0
- package/lib/module/PhoneNumberField.js.map +1 -0
- package/lib/module/Styling/Colors.js +193 -0
- package/lib/module/Styling/Colors.js.map +1 -0
- package/lib/module/Styling/Sizing.js +107 -0
- package/lib/module/Styling/Sizing.js.map +1 -0
- package/lib/module/consts/KEYBOARD_LAYOUT.js +41 -0
- package/lib/module/consts/KEYBOARD_LAYOUT.js.map +1 -0
- package/lib/module/consts/regions.js +1498 -0
- package/lib/module/consts/regions.js.map +1 -0
- package/lib/module/enum/CountryIds.js +260 -0
- package/lib/module/enum/CountryIds.js.map +1 -0
- package/lib/module/hooks/UsePhoneFieldState.js +232 -0
- package/lib/module/hooks/UsePhoneFieldState.js.map +1 -0
- package/lib/module/index.js +16 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/utils/characterDeletion.js +16 -0
- package/lib/module/utils/characterDeletion.js.map +1 -0
- package/lib/module/utils/characterInsert.js +16 -0
- package/lib/module/utils/characterInsert.js.map +1 -0
- package/lib/module/utils/fromMaskedNumberToUnmaskedSelection.js +10 -0
- package/lib/module/utils/fromMaskedNumberToUnmaskedSelection.js.map +1 -0
- package/lib/module/utils/fromUnmaskedToMaskedPosition.js +16 -0
- package/lib/module/utils/fromUnmaskedToMaskedPosition.js.map +1 -0
- package/lib/module/utils/generateCountryCodeList.js +19 -0
- package/lib/module/utils/generateCountryCodeList.js.map +1 -0
- package/lib/module/utils/getDefaultRegion.js +28 -0
- package/lib/module/utils/getDefaultRegion.js.map +1 -0
- package/lib/module/utils/maskToPhoneNumber.js +19 -0
- package/lib/module/utils/maskToPhoneNumber.js.map +1 -0
- package/lib/module/utils/matchCountryCode.js +23 -0
- package/lib/module/utils/matchCountryCode.js.map +1 -0
- package/lib/typescript/CountrySelector/CountrySelector.d.ts +19 -0
- package/lib/typescript/CountrySelector/CountrySelector.d.ts.map +1 -0
- package/lib/typescript/CountrySelector/CountrySelectorModal.d.ts +12 -0
- package/lib/typescript/CountrySelector/CountrySelectorModal.d.ts.map +1 -0
- package/lib/typescript/Keyboard/Keyboard.d.ts +25 -0
- package/lib/typescript/Keyboard/Keyboard.d.ts.map +1 -0
- package/lib/typescript/Keyboard/KeyboardToolbar.d.ts +9 -0
- package/lib/typescript/Keyboard/KeyboardToolbar.d.ts.map +1 -0
- package/lib/typescript/Keyboard/KeypadButton.d.ts +10 -0
- package/lib/typescript/Keyboard/KeypadButton.d.ts.map +1 -0
- package/lib/typescript/Keyboard/KeypadButtonContainer.d.ts +12 -0
- package/lib/typescript/Keyboard/KeypadButtonContainer.d.ts.map +1 -0
- package/lib/typescript/Keyboard/KeypadRow.d.ts +9 -0
- package/lib/typescript/Keyboard/KeypadRow.d.ts.map +1 -0
- package/lib/typescript/PhoneCountryInput/PhoneCountryInput.d.ts +16 -0
- package/lib/typescript/PhoneCountryInput/PhoneCountryInput.d.ts.map +1 -0
- package/lib/typescript/PhoneNumberField.d.ts +17 -0
- package/lib/typescript/PhoneNumberField.d.ts.map +1 -0
- package/lib/typescript/Styling/Colors.d.ts +189 -0
- package/lib/typescript/Styling/Colors.d.ts.map +1 -0
- package/lib/typescript/Styling/Sizing.d.ts +214 -0
- package/lib/typescript/Styling/Sizing.d.ts.map +1 -0
- package/lib/typescript/consts/KEYBOARD_LAYOUT.d.ts +18 -0
- package/lib/typescript/consts/KEYBOARD_LAYOUT.d.ts.map +1 -0
- package/lib/typescript/consts/regions.d.ts +10 -0
- package/lib/typescript/consts/regions.d.ts.map +1 -0
- package/lib/typescript/enum/CountryIds.d.ts +249 -0
- package/lib/typescript/enum/CountryIds.d.ts.map +1 -0
- package/lib/typescript/hooks/UsePhoneFieldState.d.ts +34 -0
- package/lib/typescript/hooks/UsePhoneFieldState.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +15 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/utils/characterDeletion.d.ts +3 -0
- package/lib/typescript/utils/characterDeletion.d.ts.map +1 -0
- package/lib/typescript/utils/characterInsert.d.ts +3 -0
- package/lib/typescript/utils/characterInsert.d.ts.map +1 -0
- package/lib/typescript/utils/fromMaskedNumberToUnmaskedSelection.d.ts +2 -0
- package/lib/typescript/utils/fromMaskedNumberToUnmaskedSelection.d.ts.map +1 -0
- package/lib/typescript/utils/fromUnmaskedToMaskedPosition.d.ts +2 -0
- package/lib/typescript/utils/fromUnmaskedToMaskedPosition.d.ts.map +1 -0
- package/lib/typescript/utils/generateCountryCodeList.d.ts +3 -0
- package/lib/typescript/utils/generateCountryCodeList.d.ts.map +1 -0
- package/lib/typescript/utils/getDefaultRegion.d.ts +4 -0
- package/lib/typescript/utils/getDefaultRegion.d.ts.map +1 -0
- package/lib/typescript/utils/maskToPhoneNumber.d.ts +2 -0
- package/lib/typescript/utils/maskToPhoneNumber.d.ts.map +1 -0
- package/lib/typescript/utils/matchCountryCode.d.ts +3 -0
- package/lib/typescript/utils/matchCountryCode.d.ts.map +1 -0
- package/package.json +92 -0
- package/src/CountrySelector/CountrySelector.tsx +77 -0
- package/src/CountrySelector/CountrySelectorModal.tsx +280 -0
- package/src/Keyboard/Keyboard.tsx +322 -0
- package/src/Keyboard/KeyboardToolbar.tsx +53 -0
- package/src/Keyboard/KeypadButton.tsx +58 -0
- package/src/Keyboard/KeypadButtonContainer.tsx +67 -0
- package/src/Keyboard/KeypadRow.tsx +29 -0
- package/src/PhoneCountryInput/PhoneCountryInput.tsx +98 -0
- package/src/PhoneNumberField.tsx +46 -0
- package/src/Styling/Colors.ts +206 -0
- package/src/Styling/Sizing.ts +110 -0
- package/src/consts/KEYBOARD_LAYOUT.ts +34 -0
- package/src/consts/regions.ts +268 -0
- package/src/enum/CountryIds.ts +256 -0
- package/src/hooks/UsePhoneFieldState.tsx +268 -0
- package/src/index.ts +27 -0
- package/src/utils/characterDeletion.ts +16 -0
- package/src/utils/characterInsert.ts +20 -0
- package/src/utils/fromMaskedNumberToUnmaskedSelection.ts +10 -0
- package/src/utils/fromUnmaskedToMaskedPosition.ts +13 -0
- package/src/utils/generateCountryCodeList.ts +22 -0
- package/src/utils/getDefaultRegion.ts +30 -0
- package/src/utils/maskToPhoneNumber.ts +30 -0
- package/src/utils/matchCountryCode.ts +23 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useEffect } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { spacing } from '../Styling/Sizing';
|
|
6
|
+
import { PhoneNumberField } from '../PhoneNumberField';
|
|
7
|
+
import { CountrySelector } from '../CountrySelector/CountrySelector';
|
|
8
|
+
import { usePhoneFieldState } from '../hooks/UsePhoneFieldState';
|
|
9
|
+
import Keyboard from '../Keyboard/Keyboard';
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
export function PhoneCountryInput({
|
|
12
|
+
underlineButton,
|
|
13
|
+
underlineModal,
|
|
14
|
+
underlinePasteErrorModal,
|
|
15
|
+
underlineCopySuccessModal,
|
|
16
|
+
style,
|
|
17
|
+
allowedCountryCodes,
|
|
18
|
+
disallowedCountryCodes,
|
|
19
|
+
onOutcomeChange,
|
|
20
|
+
...props
|
|
21
|
+
}) {
|
|
22
|
+
const {
|
|
23
|
+
filteredCountryCodes,
|
|
24
|
+
outcome,
|
|
25
|
+
onChangeText,
|
|
26
|
+
onChangeFlag,
|
|
27
|
+
onKeyPress,
|
|
28
|
+
phoneNumber,
|
|
29
|
+
onCopy,
|
|
30
|
+
onPaste,
|
|
31
|
+
isKeyboardOpen,
|
|
32
|
+
openKeyboard,
|
|
33
|
+
closeKeyboard,
|
|
34
|
+
isCountrySelectorOpen,
|
|
35
|
+
openCountrySelector,
|
|
36
|
+
closeCountrySelector,
|
|
37
|
+
onTextSelection,
|
|
38
|
+
cursorPosition
|
|
39
|
+
} = usePhoneFieldState({
|
|
40
|
+
allowedCountryCodes,
|
|
41
|
+
disallowedCountryCodes
|
|
42
|
+
});
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
onOutcomeChange(outcome);
|
|
45
|
+
}, [onOutcomeChange, outcome]);
|
|
46
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
47
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
48
|
+
style: [{
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
gap: spacing[1]
|
|
51
|
+
}, style],
|
|
52
|
+
children: [/*#__PURE__*/_jsx(CountrySelector, {
|
|
53
|
+
value: outcome?.countryDetails ?? null,
|
|
54
|
+
onSelectCountry: onChangeFlag,
|
|
55
|
+
underlineButton: underlineButton,
|
|
56
|
+
underlineModal: underlineModal,
|
|
57
|
+
filtedredCountryCodes: filteredCountryCodes,
|
|
58
|
+
isOpen: isCountrySelectorOpen,
|
|
59
|
+
onOpenChange: open => open ? openCountrySelector() : closeCountrySelector()
|
|
60
|
+
}), /*#__PURE__*/_jsx(PhoneNumberField, {
|
|
61
|
+
...props,
|
|
62
|
+
value: phoneNumber,
|
|
63
|
+
onChangeText: onChangeText,
|
|
64
|
+
onOpen: openKeyboard,
|
|
65
|
+
onTextSelection: onTextSelection,
|
|
66
|
+
selection: cursorPosition
|
|
67
|
+
})]
|
|
68
|
+
}), /*#__PURE__*/_jsx(Keyboard, {
|
|
69
|
+
onKeyPress: onKeyPress,
|
|
70
|
+
value: phoneNumber,
|
|
71
|
+
onCopy: onCopy,
|
|
72
|
+
onPaste: onPaste,
|
|
73
|
+
isOpen: isKeyboardOpen,
|
|
74
|
+
onClose: closeKeyboard,
|
|
75
|
+
underlinePasteErrorModal: underlinePasteErrorModal,
|
|
76
|
+
underlineCopySuccessModal: underlineCopySuccessModal
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=PhoneCountryInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","View","spacing","PhoneNumberField","CountrySelector","usePhoneFieldState","Keyboard","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","PhoneCountryInput","underlineButton","underlineModal","underlinePasteErrorModal","underlineCopySuccessModal","style","allowedCountryCodes","disallowedCountryCodes","onOutcomeChange","props","filteredCountryCodes","outcome","onChangeText","onChangeFlag","onKeyPress","phoneNumber","onCopy","onPaste","isKeyboardOpen","openKeyboard","closeKeyboard","isCountrySelectorOpen","openCountrySelector","closeCountrySelector","onTextSelection","cursorPosition","children","flexDirection","gap","value","countryDetails","onSelectCountry","filtedredCountryCodes","isOpen","onOpenChange","open","onOpen","selection","onClose"],"sourceRoot":"../../../src","sources":["PhoneCountryInput/PhoneCountryInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAA0B,cAAc;AACrD,SAASC,OAAO,QAAQ,mBAAmB;AAC3C,SAA4BC,gBAAgB,QAA+B,qBAAqB;AAChG,SAASC,eAAe,QAAQ,oCAAoC;AACpE,SAASC,kBAAkB,QAAQ,6BAA6B;AAGhE,OAAOC,QAAQ,MAAuD,sBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAY7F,OAAO,SAASC,iBAAiBA,CAAC;EAChCC,eAAe;EACfC,cAAc;EACdC,wBAAwB;EACxBC,yBAAyB;EACzBC,KAAK;EACLC,mBAAmB;EACnBC,sBAAsB;EACtBC,eAAe;EACf,GAAGC;AACmB,CAAC,EAAE;EACzB,MAAM;IACJC,oBAAoB;IACpBC,OAAO;IACPC,YAAY;IACZC,YAAY;IACZC,UAAU;IACVC,WAAW;IACXC,MAAM;IACNC,OAAO;IACPC,cAAc;IACdC,YAAY;IACZC,aAAa;IACbC,qBAAqB;IACrBC,mBAAmB;IAC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,CACtD,CAAC;EAAA,CACF,CAAC;AAEP","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useMemo } from 'react';
|
|
4
|
+
import { TextInput } from 'react-native';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export function PhoneNumberField(props) {
|
|
7
|
+
const {
|
|
8
|
+
underlineInput,
|
|
9
|
+
onOpen,
|
|
10
|
+
onTextSelection,
|
|
11
|
+
...textInputProps
|
|
12
|
+
} = props;
|
|
13
|
+
const Input = useMemo(() => {
|
|
14
|
+
if (!underlineInput) {
|
|
15
|
+
return TextInput;
|
|
16
|
+
}
|
|
17
|
+
return underlineInput;
|
|
18
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19
|
+
}, [underlineInput, props.selection]);
|
|
20
|
+
return /*#__PURE__*/_jsx(Input, {
|
|
21
|
+
...textInputProps,
|
|
22
|
+
value: '+' + props.value,
|
|
23
|
+
showSoftInputOnFocus: false,
|
|
24
|
+
onPressIn: onOpen,
|
|
25
|
+
onSelectionChange: onTextSelection,
|
|
26
|
+
style: [props.style, {
|
|
27
|
+
zIndex: 1
|
|
28
|
+
}]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=PhoneNumberField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","TextInput","jsx","_jsx","PhoneNumberField","props","underlineInput","onOpen","onTextSelection","textInputProps","Input","selection","value","showSoftInputOnFocus","onPressIn","onSelectionChange","style","zIndex"],"sourceRoot":"../../src","sources":["PhoneNumberField.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAA+BC,SAAS,QAA2C,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAkBlG,OAAO,SAASC,gBAAgBA,CAACC,KAA4B,EAAE;EAC7D,MAAM;IAAEC,cAAc;IAAEC,MAAM;IAAEC,eAAe;IAAE,GAAGC;EAAe,CAAC,GAAGJ,KAAK;EAE5E,MAAMK,KAAK,GAAGV,OAAO,CAAC,MAAmE;IACvF,IAAI,CAACM,cAAc,EAAE;MACnB,OAAOL,SAAS;IAClB;IACA,OAAOK,cAAc;IACrB;EACF,CAAC,EAAE,CAACA,cAAc,EAAED,KAAK,CAACM,SAAS,CAAC,CAAC;EAErC,oBACER,IAAA,CAACO,KAAK;IAAA,GACAD,cAAc;IAClBG,KAAK,EAAE,GAAG,GAAGP,KAAK,CAACO,KAAM;IACzBC,oBAAoB,EAAE,KAAM;IAC5BC,SAAS,EAAEP,MAAO;IAClBQ,iBAAiB,EAAEP,eAAgB;IACnCQ,KAAK,EAAE,CACLX,KAAK,CAACW,KAAK,EACX;MACEC,MAAM,EAAE;IACV,CAAC;EACD,CACH,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Tailwind v3 color palette for React Native styles.
|
|
4
|
+
// Use via: import { colors } from './Colors'
|
|
5
|
+
|
|
6
|
+
export const colors = {
|
|
7
|
+
transparent: 'transparent',
|
|
8
|
+
black: '#000000',
|
|
9
|
+
white: '#ffffff',
|
|
10
|
+
slate: {
|
|
11
|
+
50: '#f8fafc',
|
|
12
|
+
100: '#f1f5f9',
|
|
13
|
+
200: '#e2e8f0',
|
|
14
|
+
300: '#cbd5e1',
|
|
15
|
+
400: '#94a3b8',
|
|
16
|
+
500: '#64748b',
|
|
17
|
+
600: '#475569',
|
|
18
|
+
700: '#334155',
|
|
19
|
+
800: '#1e293b',
|
|
20
|
+
900: '#0f172a',
|
|
21
|
+
950: '#020617'
|
|
22
|
+
},
|
|
23
|
+
gray: {
|
|
24
|
+
50: '#f9fafb',
|
|
25
|
+
100: '#f3f4f6',
|
|
26
|
+
200: '#e5e7eb',
|
|
27
|
+
300: '#d1d5db',
|
|
28
|
+
400: '#9ca3af',
|
|
29
|
+
500: '#6b7280',
|
|
30
|
+
600: '#4b5563',
|
|
31
|
+
700: '#374151',
|
|
32
|
+
800: '#1f2937',
|
|
33
|
+
900: '#111827',
|
|
34
|
+
950: '#030712'
|
|
35
|
+
},
|
|
36
|
+
zinc: {
|
|
37
|
+
50: '#fafafa',
|
|
38
|
+
100: '#f4f4f5',
|
|
39
|
+
200: '#e4e4e7',
|
|
40
|
+
300: '#d4d4d8',
|
|
41
|
+
400: '#a1a1aa',
|
|
42
|
+
500: '#71717a',
|
|
43
|
+
600: '#52525b',
|
|
44
|
+
700: '#3f3f46',
|
|
45
|
+
800: '#27272a',
|
|
46
|
+
900: '#18181b',
|
|
47
|
+
950: '#09090b'
|
|
48
|
+
},
|
|
49
|
+
red: {
|
|
50
|
+
50: '#fef2f2',
|
|
51
|
+
100: '#fee2e2',
|
|
52
|
+
200: '#fecaca',
|
|
53
|
+
300: '#fca5a5',
|
|
54
|
+
400: '#f87171',
|
|
55
|
+
500: '#ef4444',
|
|
56
|
+
600: '#dc2626',
|
|
57
|
+
700: '#b91c1c',
|
|
58
|
+
800: '#991b1b',
|
|
59
|
+
900: '#7f1d1d',
|
|
60
|
+
950: '#450a0a'
|
|
61
|
+
},
|
|
62
|
+
orange: {
|
|
63
|
+
50: '#fff7ed',
|
|
64
|
+
100: '#ffedd5',
|
|
65
|
+
200: '#fed7aa',
|
|
66
|
+
300: '#fdba74',
|
|
67
|
+
400: '#fb923c',
|
|
68
|
+
500: '#f97316',
|
|
69
|
+
600: '#ea580c',
|
|
70
|
+
700: '#c2410c',
|
|
71
|
+
800: '#9a3412',
|
|
72
|
+
900: '#7c2d12',
|
|
73
|
+
950: '#431407'
|
|
74
|
+
},
|
|
75
|
+
amber: {
|
|
76
|
+
50: '#fffbeb',
|
|
77
|
+
100: '#fef3c7',
|
|
78
|
+
200: '#fde68a',
|
|
79
|
+
300: '#fcd34d',
|
|
80
|
+
400: '#fbbf24',
|
|
81
|
+
500: '#f59e0b',
|
|
82
|
+
600: '#d97706',
|
|
83
|
+
700: '#b45309',
|
|
84
|
+
800: '#92400e',
|
|
85
|
+
900: '#78350f',
|
|
86
|
+
950: '#451a03'
|
|
87
|
+
},
|
|
88
|
+
yellow: {
|
|
89
|
+
50: '#fefce8',
|
|
90
|
+
100: '#fef9c3',
|
|
91
|
+
200: '#fef08a',
|
|
92
|
+
300: '#fde047',
|
|
93
|
+
400: '#facc15',
|
|
94
|
+
500: '#eab308',
|
|
95
|
+
600: '#ca8a04',
|
|
96
|
+
700: '#a16207',
|
|
97
|
+
800: '#854d0e',
|
|
98
|
+
900: '#713f12',
|
|
99
|
+
950: '#422006'
|
|
100
|
+
},
|
|
101
|
+
green: {
|
|
102
|
+
50: '#f0fdf4',
|
|
103
|
+
100: '#dcfce7',
|
|
104
|
+
200: '#bbf7d0',
|
|
105
|
+
300: '#86efac',
|
|
106
|
+
400: '#4ade80',
|
|
107
|
+
500: '#22c55e',
|
|
108
|
+
600: '#16a34a',
|
|
109
|
+
700: '#15803d',
|
|
110
|
+
800: '#166534',
|
|
111
|
+
900: '#14532d',
|
|
112
|
+
950: '#052e16'
|
|
113
|
+
},
|
|
114
|
+
teal: {
|
|
115
|
+
50: '#f0fdfa',
|
|
116
|
+
100: '#ccfbf1',
|
|
117
|
+
200: '#99f6e4',
|
|
118
|
+
300: '#5eead4',
|
|
119
|
+
400: '#2dd4bf',
|
|
120
|
+
500: '#14b8a6',
|
|
121
|
+
600: '#0d9488',
|
|
122
|
+
700: '#0f766e',
|
|
123
|
+
800: '#115e59',
|
|
124
|
+
900: '#134e4a',
|
|
125
|
+
950: '#042f2e'
|
|
126
|
+
},
|
|
127
|
+
blue: {
|
|
128
|
+
50: '#eff6ff',
|
|
129
|
+
100: '#dbeafe',
|
|
130
|
+
200: '#bfdbfe',
|
|
131
|
+
300: '#93c5fd',
|
|
132
|
+
400: '#60a5fa',
|
|
133
|
+
500: '#3b82f6',
|
|
134
|
+
600: '#2563eb',
|
|
135
|
+
700: '#1d4ed8',
|
|
136
|
+
800: '#1e40af',
|
|
137
|
+
900: '#1e3a8a',
|
|
138
|
+
950: '#172554'
|
|
139
|
+
},
|
|
140
|
+
indigo: {
|
|
141
|
+
50: '#eef2ff',
|
|
142
|
+
100: '#e0e7ff',
|
|
143
|
+
200: '#c7d2fe',
|
|
144
|
+
300: '#a5b4fc',
|
|
145
|
+
400: '#818cf8',
|
|
146
|
+
500: '#6366f1',
|
|
147
|
+
600: '#4f46e5',
|
|
148
|
+
700: '#4338ca',
|
|
149
|
+
800: '#3730a3',
|
|
150
|
+
900: '#312e81',
|
|
151
|
+
950: '#1e1b4b'
|
|
152
|
+
},
|
|
153
|
+
violet: {
|
|
154
|
+
50: '#f5f3ff',
|
|
155
|
+
100: '#ede9fe',
|
|
156
|
+
200: '#ddd6fe',
|
|
157
|
+
300: '#c4b5fd',
|
|
158
|
+
400: '#a78bfa',
|
|
159
|
+
500: '#8b5cf6',
|
|
160
|
+
600: '#7c3aed',
|
|
161
|
+
700: '#6d28d9',
|
|
162
|
+
800: '#5b21b6',
|
|
163
|
+
900: '#4c1d95',
|
|
164
|
+
950: '#2e1065'
|
|
165
|
+
},
|
|
166
|
+
pink: {
|
|
167
|
+
50: '#fdf2f8',
|
|
168
|
+
100: '#fce7f3',
|
|
169
|
+
200: '#fbcfe8',
|
|
170
|
+
300: '#f9a8d4',
|
|
171
|
+
400: '#f472b6',
|
|
172
|
+
500: '#ec4899',
|
|
173
|
+
600: '#db2777',
|
|
174
|
+
700: '#be185d',
|
|
175
|
+
800: '#9d174d',
|
|
176
|
+
900: '#831843',
|
|
177
|
+
950: '#500724'
|
|
178
|
+
},
|
|
179
|
+
rose: {
|
|
180
|
+
50: '#fff1f2',
|
|
181
|
+
100: '#ffe4e6',
|
|
182
|
+
200: '#fecdd3',
|
|
183
|
+
300: '#fda4af',
|
|
184
|
+
400: '#fb7185',
|
|
185
|
+
500: '#f43f5e',
|
|
186
|
+
600: '#e11d48',
|
|
187
|
+
700: '#be123c',
|
|
188
|
+
800: '#9f1239',
|
|
189
|
+
900: '#881337',
|
|
190
|
+
950: '#4c0519'
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
//# sourceMappingURL=Colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["colors","transparent","black","white","slate","gray","zinc","red","orange","amber","yellow","green","teal","blue","indigo","violet","pink","rose"],"sourceRoot":"../../../src","sources":["Styling/Colors.ts"],"mappings":";;AAAA;AACA;;AAEA,OAAO,MAAMA,MAAM,GAAG;EACpBC,WAAW,EAAE,aAAa;EAC1BC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAEhBC,KAAK,EAAE;IACL,EAAE,EAAG,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EAEDC,IAAI,EAAE;IACJ,EAAE,EAAG,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EAEDC,IAAI,EAAE;IACJ,EAAE,EAAG,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EAC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ACd,GAAG,EAAE;EACP,CAAC;EAEDC,IAAI,EAAE;IACJ,EAAE,EAAG,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EAEDC,IAAI,EAAE;IACJ,EAAE,EAAG,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP;AACF,CAAU","ignoreList":[]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Tailwind-based sizing scale for React Native styles.
|
|
4
|
+
//
|
|
5
|
+
export const SIDE_SCREEN_PADDING = 16;
|
|
6
|
+
// All values are numbers (px). Use via: import { spacing, fontSize, radius } from './Sizing'
|
|
7
|
+
export const spacing = {
|
|
8
|
+
px: 1,
|
|
9
|
+
0: 0,
|
|
10
|
+
0.5: 2,
|
|
11
|
+
1: 4,
|
|
12
|
+
1.5: 6,
|
|
13
|
+
2: 8,
|
|
14
|
+
2.5: 10,
|
|
15
|
+
3: 12,
|
|
16
|
+
3.5: 14,
|
|
17
|
+
4: 16,
|
|
18
|
+
5: 20,
|
|
19
|
+
6: 24,
|
|
20
|
+
7: 28,
|
|
21
|
+
8: 32,
|
|
22
|
+
9: 36,
|
|
23
|
+
10: 40,
|
|
24
|
+
11: 44,
|
|
25
|
+
12: 48,
|
|
26
|
+
14: 56,
|
|
27
|
+
16: 64,
|
|
28
|
+
20: 80,
|
|
29
|
+
24: 96,
|
|
30
|
+
28: 112,
|
|
31
|
+
32: 128,
|
|
32
|
+
36: 144,
|
|
33
|
+
40: 160,
|
|
34
|
+
44: 176,
|
|
35
|
+
48: 192,
|
|
36
|
+
52: 208,
|
|
37
|
+
56: 224,
|
|
38
|
+
60: 240,
|
|
39
|
+
64: 256,
|
|
40
|
+
72: 288,
|
|
41
|
+
80: 320,
|
|
42
|
+
96: 384
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// Aliases — use these for gap/padding/margin to match Tailwind intent
|
|
46
|
+
export const gap = spacing;
|
|
47
|
+
export const padding = spacing;
|
|
48
|
+
export const margin = spacing;
|
|
49
|
+
export const fontSize = {
|
|
50
|
+
xs: 12,
|
|
51
|
+
sm: 14,
|
|
52
|
+
base: 16,
|
|
53
|
+
lg: 18,
|
|
54
|
+
xl: 20,
|
|
55
|
+
'2xl': 24,
|
|
56
|
+
'3xl': 30,
|
|
57
|
+
'4xl': 36,
|
|
58
|
+
'5xl': 48,
|
|
59
|
+
'6xl': 60,
|
|
60
|
+
'7xl': 72,
|
|
61
|
+
'8xl': 96,
|
|
62
|
+
'9xl': 128
|
|
63
|
+
};
|
|
64
|
+
export const lineHeight = {
|
|
65
|
+
xs: 16,
|
|
66
|
+
sm: 20,
|
|
67
|
+
base: 24,
|
|
68
|
+
lg: 28,
|
|
69
|
+
xl: 28,
|
|
70
|
+
'2xl': 32,
|
|
71
|
+
'3xl': 36,
|
|
72
|
+
'4xl': 40,
|
|
73
|
+
'5xl': 48,
|
|
74
|
+
'6xl': 60,
|
|
75
|
+
'7xl': 72,
|
|
76
|
+
'8xl': 96,
|
|
77
|
+
'9xl': 128
|
|
78
|
+
};
|
|
79
|
+
export const radius = {
|
|
80
|
+
none: 0,
|
|
81
|
+
sm: 2,
|
|
82
|
+
DEFAULT: 4,
|
|
83
|
+
md: 6,
|
|
84
|
+
lg: 8,
|
|
85
|
+
xl: 12,
|
|
86
|
+
'2xl': 16,
|
|
87
|
+
'3xl': 24,
|
|
88
|
+
full: 9999
|
|
89
|
+
};
|
|
90
|
+
export const borderWidth = {
|
|
91
|
+
0: 0,
|
|
92
|
+
DEFAULT: 1,
|
|
93
|
+
2: 2,
|
|
94
|
+
4: 4,
|
|
95
|
+
8: 8
|
|
96
|
+
};
|
|
97
|
+
export const borders = borderWidth;
|
|
98
|
+
export const iconSize = {
|
|
99
|
+
xs: 12,
|
|
100
|
+
sm: 16,
|
|
101
|
+
md: 20,
|
|
102
|
+
lg: 24,
|
|
103
|
+
xl: 32,
|
|
104
|
+
'2xl': 40,
|
|
105
|
+
'3xl': 48
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=Sizing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SIDE_SCREEN_PADDING","spacing","px","gap","padding","margin","fontSize","xs","sm","base","lg","xl","lineHeight","radius","none","DEFAULT","md","full","borderWidth","borders","iconSize"],"sourceRoot":"../../../src","sources":["Styling/Sizing.ts"],"mappings":";;AAAA;AACA;AACA,OAAO,MAAMA,mBAAmB,GAAG,EAAE;AACrC;AACA,OAAO,MAAMC,OAAO,GAAG;EACrBC,EAAE,EAAE,CAAC;EACL,CAAC,EAAE,CAAC;EACJ,GAAG,EAAE,CAAC;EACN,CAAC,EAAE,CAAC;EACJ,GAAG,EAAE,CAAC;EACN,CAAC,EAAE,CAAC;EACJ,GAAG,EAAE,EAAE;EACP,CAAC,EAAE,EAAE;EACL,GAAG,EAAE,EAAE;EACP,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,EAAE,EAAE,EAAE;EACN,EAAE,EAAE,EAAE;EACN,EAAE,EAAE,EAAE;EACN,EAAE,EAAE,EAAE;EACN,EAAE,EAAE,EAAE;EACN,EAAE,EAAE,EAAE;EACN,EAAE,EAAE,EAAE;EACN,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;EACLN,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACTM,IAAI,EAAE;AACR,CAAU;AAEV,OAAO,MAAMC,WAAW,GAAG;EACzB,CAAC,EAAE,CAAC;EACJH,OAAO,EAAE,CAAC;EACV,CAAC,EAAE,CAAC;EACJ,CAAC,EAAE,CAAC;EACJ,CAAC,EAAE;AACL,CAAU;AAEV,OAAO,MAAMI,OAAO,GAAGD,WAAW;AAElC,OAAO,MAAME,QAAQ,GAAG;EACtBb,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNQ,EAAE,EAAE,EAAE;EACNN,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAU","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { spacing } from '../Styling/Sizing';
|
|
4
|
+
export const BACK_BUTTON = '<-';
|
|
5
|
+
export const GLOBE_BUTTON = '__';
|
|
6
|
+
export const CLEAR_BUTTON = 'clear';
|
|
7
|
+
export const GAP = spacing[1];
|
|
8
|
+
export const KEYBOARD_LAYOUT = [[{
|
|
9
|
+
main: '1'
|
|
10
|
+
}, {
|
|
11
|
+
main: '2',
|
|
12
|
+
subtext: 'ABC'
|
|
13
|
+
}, {
|
|
14
|
+
main: '3',
|
|
15
|
+
subtext: 'DEF'
|
|
16
|
+
}], [{
|
|
17
|
+
main: '4',
|
|
18
|
+
subtext: 'GHI'
|
|
19
|
+
}, {
|
|
20
|
+
main: '5',
|
|
21
|
+
subtext: 'JKL'
|
|
22
|
+
}, {
|
|
23
|
+
main: '6',
|
|
24
|
+
subtext: 'MNO'
|
|
25
|
+
}], [{
|
|
26
|
+
main: '7',
|
|
27
|
+
subtext: 'PQRS'
|
|
28
|
+
}, {
|
|
29
|
+
main: '8',
|
|
30
|
+
subtext: 'TUV'
|
|
31
|
+
}, {
|
|
32
|
+
main: '9',
|
|
33
|
+
subtext: 'WXYZ'
|
|
34
|
+
}], [{
|
|
35
|
+
main: GLOBE_BUTTON
|
|
36
|
+
}, {
|
|
37
|
+
main: '0'
|
|
38
|
+
}, {
|
|
39
|
+
main: BACK_BUTTON
|
|
40
|
+
}]];
|
|
41
|
+
//# sourceMappingURL=KEYBOARD_LAYOUT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["spacing","BACK_BUTTON","GLOBE_BUTTON","CLEAR_BUTTON","GAP","KEYBOARD_LAYOUT","main","subtext"],"sourceRoot":"../../../src","sources":["consts/KEYBOARD_LAYOUT.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,mBAAmB;AAe3C,OAAO,MAAMC,WAAW,GAAG,IAAI;AAC/B,OAAO,MAAMC,YAAY,GAAG,IAAI;AAChC,OAAO,MAAMC,YAAY,GAAG,OAAO;AACnC,OAAO,MAAMC,GAAG,GAAGJ,OAAO,CAAC,CAAC,CAAC;AAE7B,OAAO,MAAMK,eAAkC,GAAG,CAChD,CAAC;EAAEC,IAAI,EAAE;AAAI,CAAC,EAAE;EAAEA,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAM,CAAC,EAAE;EAAED,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAM,CAAC,CAAC,EAC7E,CACE;EAAED,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAM,CAAC,EAC7B;EAAED,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAM,CAAC,EAC7B;EAAED,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAM,CAAC,CAC9B,EACD,CACE;EAAED,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAO,CAAC,EAC9B;EAAED,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAM,CAAC,EAC7B;EAAED,IAAI,EAAE,GAAG;EAAEC,OAAO,EAAE;AAAO,CAAC,CAC/B,EACD,CAAC;EAAED,IAAI,EAAEJ;AAAa,CAAC,EAAE;EAAEI,IAAI,EAAE;AAAI,CAAC,EAAE;EAAEA,IAAI,EAAEL;AAAY,CAAC,CAAC,CAC/D","ignoreList":[]}
|