@myazahq/kyc-sdk-react-native 3.0.0 → 3.1.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/package.json +8 -7
- package/src/components/GlassIconButton.tsx +2 -5
- package/src/components/Icon.tsx +17 -14
- package/src/components/KycFlow.tsx +1 -0
- package/src/components/KycSheet.tsx +0 -1
- package/src/components/StepView.tsx +3 -0
- package/src/components/icons/glyphs.ts +35 -0
- package/src/components/icons/index.ts +3 -0
- package/src/components/icons/map.ts +165 -0
- package/src/components/icons/names.ts +86 -0
- package/src/components/stepHeaderMeta.tsx +15 -0
- package/src/config/stepOrder.ts +20 -5
- package/src/config/supportingDocuments.ts +131 -0
- package/src/config/theme.ts +29 -3
- package/src/config/workflowMerge.ts +13 -0
- package/src/lib/supportingDocumentsIntro.ts +35 -0
- package/src/screens/BusinessDocumentSlot.tsx +37 -8
- package/src/screens/SupportingDocumentCard.tsx +134 -0
- package/src/screens/SupportingDocumentsStep.tsx +203 -0
- package/src/screens/consent/model.ts +22 -5
- package/src/screens/liveness/CaptureRing.tsx +31 -17
- package/src/screens/supportingDocumentParts.tsx +126 -0
- package/src/screens/useBusinessDocumentAttach.ts +20 -9
- package/src/services/api-types.ts +3 -0
- package/src/services/deviceMetadata.ts +1 -1
- package/src/store/derive.ts +11 -0
- package/src/store/kycStore.ts +15 -0
- package/src/store/session.ts +18 -0
- package/src/store/state.ts +26 -0
- package/src/store/submit.ts +11 -0
- package/src/types/config.ts +10 -0
- package/src/types/workflow.ts +39 -0
- package/src/components/icon-map.ts +0 -176
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Info, BadgeCheck, BookUser, Building2, Stamp, Calendar, Camera, CameraOff, ChevronDown,
|
|
3
|
-
ChevronLeft, ChevronRight, Car, Check, CircleAlert, Contact, CreditCard, Fingerprint,
|
|
4
|
-
FileText, FlaskConical, IdCard, Image as ImageIcon, Landmark, Lightbulb, LocateFixed, MapPin,
|
|
5
|
-
MapPinHouse, MapPinCheck, MapPinned, Radar, BellRing, SlidersHorizontal, Minus, Globe, House,
|
|
6
|
-
Mail, Maximize2, Lock, MessageCircle, MessageSquare, Moon, MoveLeft, Nfc, Filter, Pencil,
|
|
7
|
-
PencilLine, Smartphone, RefreshCw, RefreshCcw, ScanFace, ScanLine, Search, Zap, ZapOff,
|
|
8
|
-
CircleDashed, CircleCheck, CircleHelp, CircleX, ShieldCheck, Sun, Timer, Upload, Plus,
|
|
9
|
-
UserRound, UserRoundPlus, Link2, Copy, Share2, UsersRound, VideoOff, Vote, X,
|
|
10
|
-
type LucideIcon
|
|
11
|
-
} from 'lucide-react-native';
|
|
12
|
-
|
|
13
|
-
// Centralised icon set — the SAME Lucide icons the Flutter SDK uses
|
|
14
|
-
// (`lucide_icons_flutter`) and the web SDK uses (`lucide-react`), so the
|
|
15
|
-
// glyphs are pixel-identical across all three platforms. The component that
|
|
16
|
-
// draws them is Icon.tsx (200-line split).
|
|
17
|
-
|
|
18
|
-
export type IconName =
|
|
19
|
-
// chrome
|
|
20
|
-
| 'close'
|
|
21
|
-
| 'back'
|
|
22
|
-
| 'moon'
|
|
23
|
-
| 'sun'
|
|
24
|
-
| 'check'
|
|
25
|
-
| 'lock'
|
|
26
|
-
| 'alert'
|
|
27
|
-
| 'flask'
|
|
28
|
-
| 'refresh'
|
|
29
|
-
| 'refresh-ccw'
|
|
30
|
-
| 'maximize'
|
|
31
|
-
| 'calendar'
|
|
32
|
-
| 'image'
|
|
33
|
-
| 'chevron-left'
|
|
34
|
-
| 'chevron-right'
|
|
35
|
-
| 'chevron-down'
|
|
36
|
-
// consent hero + process steps
|
|
37
|
-
| 'shield'
|
|
38
|
-
| 'badge-check'
|
|
39
|
-
| 'circle-dashed'
|
|
40
|
-
| 'circle-check'
|
|
41
|
-
| 'circle-help'
|
|
42
|
-
| 'circle-x'
|
|
43
|
-
| 'building-2'
|
|
44
|
-
| 'stamp'
|
|
45
|
-
| 'user'
|
|
46
|
-
| 'user-plus'
|
|
47
|
-
| 'plus'
|
|
48
|
-
| 'info'
|
|
49
|
-
| 'users'
|
|
50
|
-
| 'scan-line'
|
|
51
|
-
| 'scan-face'
|
|
52
|
-
| 'nfc'
|
|
53
|
-
| 'filter'
|
|
54
|
-
| 'pencil'
|
|
55
|
-
| 'pencil-line'
|
|
56
|
-
| 'search'
|
|
57
|
-
| 'zap'
|
|
58
|
-
| 'link'
|
|
59
|
-
| 'copy'
|
|
60
|
-
| 'share'
|
|
61
|
-
| 'zap-off'
|
|
62
|
-
| 'timer'
|
|
63
|
-
// id-type glyphs
|
|
64
|
-
| 'fingerprint'
|
|
65
|
-
| 'credit-card'
|
|
66
|
-
| 'globe'
|
|
67
|
-
| 'car'
|
|
68
|
-
| 'vote'
|
|
69
|
-
| 'file-text'
|
|
70
|
-
| 'house'
|
|
71
|
-
| 'landmark'
|
|
72
|
-
| 'id-card'
|
|
73
|
-
| 'contact'
|
|
74
|
-
| 'passport'
|
|
75
|
-
| 'camera'
|
|
76
|
-
| 'camera-off'
|
|
77
|
-
| 'video-off'
|
|
78
|
-
| 'upload'
|
|
79
|
-
| 'x'
|
|
80
|
-
// address collection (map picker + the presence milestone track)
|
|
81
|
-
| 'map-pin'
|
|
82
|
-
| 'map-pin-house'
|
|
83
|
-
| 'map-pin-check'
|
|
84
|
-
| 'map-pinned'
|
|
85
|
-
| 'radar'
|
|
86
|
-
| 'bell-ring'
|
|
87
|
-
| 'sliders'
|
|
88
|
-
| 'locate'
|
|
89
|
-
| 'minus'
|
|
90
|
-
| 'lightbulb'
|
|
91
|
-
// contact verification (OTP channels + step footer)
|
|
92
|
-
| 'mail'
|
|
93
|
-
| 'smartphone'
|
|
94
|
-
| 'message-square'
|
|
95
|
-
| 'message-circle';
|
|
96
|
-
|
|
97
|
-
// Maps each name to its Lucide component. Names mirror the Flutter SDK exactly:
|
|
98
|
-
// shieldCheck · badgeCheck · userRound · scanLine · scanFace · fingerprint ·
|
|
99
|
-
// creditCard · globe · car · vote · fileText (+ chrome: X / ArrowLeft /
|
|
100
|
-
// Moon / Sun / Check / Lock / CircleAlert / RefreshCw / Camera).
|
|
101
|
-
export const ICONS: Record<IconName, LucideIcon> = {
|
|
102
|
-
close: X,
|
|
103
|
-
back: MoveLeft, // longer-shaft left arrow, matching Flutter's keyboard_backspace
|
|
104
|
-
moon: Moon,
|
|
105
|
-
sun: Sun,
|
|
106
|
-
check: Check,
|
|
107
|
-
lock: Lock,
|
|
108
|
-
alert: CircleAlert,
|
|
109
|
-
// The environment banner's mark, shared with the web SDK (same lucide glyph)
|
|
110
|
-
// and mirrored by Flutter's Icons.science_outlined.
|
|
111
|
-
flask: FlaskConical,
|
|
112
|
-
refresh: RefreshCw,
|
|
113
|
-
'refresh-ccw': RefreshCcw,
|
|
114
|
-
maximize: Maximize2,
|
|
115
|
-
calendar: Calendar,
|
|
116
|
-
image: ImageIcon,
|
|
117
|
-
'chevron-left': ChevronLeft,
|
|
118
|
-
'chevron-right': ChevronRight,
|
|
119
|
-
'chevron-down': ChevronDown,
|
|
120
|
-
shield: ShieldCheck,
|
|
121
|
-
'badge-check': BadgeCheck,
|
|
122
|
-
'circle-dashed': CircleDashed,
|
|
123
|
-
'circle-check': CircleCheck,
|
|
124
|
-
'circle-help': CircleHelp,
|
|
125
|
-
'circle-x': CircleX,
|
|
126
|
-
'building-2': Building2,
|
|
127
|
-
stamp: Stamp,
|
|
128
|
-
user: UserRound,
|
|
129
|
-
info: Info,
|
|
130
|
-
'user-plus': UserRoundPlus,
|
|
131
|
-
plus: Plus,
|
|
132
|
-
link: Link2,
|
|
133
|
-
copy: Copy,
|
|
134
|
-
share: Share2,
|
|
135
|
-
users: UsersRound,
|
|
136
|
-
'scan-line': ScanLine,
|
|
137
|
-
'scan-face': ScanFace,
|
|
138
|
-
nfc: Nfc,
|
|
139
|
-
filter: Filter,
|
|
140
|
-
pencil: Pencil,
|
|
141
|
-
'pencil-line': PencilLine,
|
|
142
|
-
search: Search,
|
|
143
|
-
zap: Zap,
|
|
144
|
-
'zap-off': ZapOff,
|
|
145
|
-
timer: Timer,
|
|
146
|
-
fingerprint: Fingerprint,
|
|
147
|
-
'credit-card': CreditCard,
|
|
148
|
-
globe: Globe,
|
|
149
|
-
car: Car,
|
|
150
|
-
vote: Vote,
|
|
151
|
-
'file-text': FileText,
|
|
152
|
-
house: House,
|
|
153
|
-
landmark: Landmark,
|
|
154
|
-
'map-pin': MapPin,
|
|
155
|
-
'map-pin-house': MapPinHouse,
|
|
156
|
-
'map-pin-check': MapPinCheck,
|
|
157
|
-
'map-pinned': MapPinned,
|
|
158
|
-
radar: Radar,
|
|
159
|
-
'bell-ring': BellRing,
|
|
160
|
-
sliders: SlidersHorizontal,
|
|
161
|
-
locate: LocateFixed,
|
|
162
|
-
minus: Minus,
|
|
163
|
-
'id-card': IdCard,
|
|
164
|
-
contact: Contact,
|
|
165
|
-
passport: BookUser,
|
|
166
|
-
camera: Camera,
|
|
167
|
-
'camera-off': CameraOff,
|
|
168
|
-
'video-off': VideoOff,
|
|
169
|
-
upload: Upload,
|
|
170
|
-
x: X,
|
|
171
|
-
lightbulb: Lightbulb,
|
|
172
|
-
mail: Mail,
|
|
173
|
-
smartphone: Smartphone,
|
|
174
|
-
'message-square': MessageSquare,
|
|
175
|
-
'message-circle': MessageCircle,
|
|
176
|
-
};
|