@sekyro/react 0.1.0-rc.5 → 0.1.0-rc.6
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 +105 -0
- package/LICENSE +25 -16
- package/README.md +36 -4
- package/dist/chunk-3MBJZSJL.js +2 -0
- package/dist/chunk-4INDRENU.js +2 -0
- package/dist/chunk-4RUZQW5T.js +2 -0
- package/dist/chunk-63NUMQST.js +2 -0
- package/dist/chunk-65JA6YKG.js +2 -0
- package/dist/chunk-ADMDZLPM.js +2 -0
- package/dist/chunk-AMOZXMUP.js +2 -0
- package/dist/chunk-BENNJ4GV.js +2 -0
- package/dist/chunk-BJJZ4MO5.js +2 -0
- package/dist/chunk-BRA6F56P.js +2 -0
- package/dist/chunk-JAUZKPQO.js +2 -0
- package/dist/chunk-P2LX7BBE.js +2 -0
- package/dist/chunk-Q232JYNO.js +2 -0
- package/dist/chunk-YUNPD6ZB.js +2 -0
- package/dist/document-capture-view-SKFDM4AQ.js +2 -0
- package/dist/eid-view-WIK6KUTY.js +2 -0
- package/dist/email-otp-view-TYSBCGUY.js +2 -0
- package/dist/flow-views-PCBR5GYS.js +2 -0
- package/dist/fonts/Cairo-OFL.txt +93 -0
- package/dist/fonts/Geist-OFL.txt +93 -0
- package/dist/fonts/Inter-OFL.txt +93 -0
- package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
- package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
- package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
- package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
- package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -437
- package/dist/index.d.ts +5 -437
- package/dist/index.js +1 -1
- package/dist/portrait-capture-view-HYOEOAF4.js +2 -0
- package/dist/theme-BpOuzcWh.d.cts +456 -0
- package/dist/theme-BpOuzcWh.d.ts +456 -0
- package/dist/verification/index.cjs +2 -0
- package/dist/verification/index.d.cts +524 -0
- package/dist/verification/index.d.ts +524 -0
- package/dist/verification/index.js +2 -0
- package/dist/verification.css +560 -0
- package/package.json +20 -6
- package/sbom.cdx.json +5 -5
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
/* GENERATED by packages/sekyro-brand/scripts/build.mjs from tokens/tokens.json — do not edit.
|
|
2
|
+
The flow-* type roles of the verification flow (`font: var(--sekyro-type-flow-title) var(--sekyro-font)`) and the
|
|
3
|
+
colours of its camera stages. Prepended to dist/verification.css by tsup. */
|
|
4
|
+
:root {
|
|
5
|
+
--sekyro-type-flow-hero: 600 34px/40px;
|
|
6
|
+
--sekyro-tracking-flow-hero: -0.015em;
|
|
7
|
+
--sekyro-type-flow-title: 600 28px/34px;
|
|
8
|
+
--sekyro-tracking-flow-title: -0.01em;
|
|
9
|
+
--sekyro-type-flow-camera: 600 24px/30px;
|
|
10
|
+
--sekyro-tracking-flow-camera: -0.01em;
|
|
11
|
+
--sekyro-type-flow-body: 400 17px/24px;
|
|
12
|
+
--sekyro-tracking-flow-body: -0.006em;
|
|
13
|
+
--sekyro-type-flow-action: 600 17px/22px;
|
|
14
|
+
--sekyro-tracking-flow-action: -0.006em;
|
|
15
|
+
--sekyro-type-flow-label: 500 15px/20px;
|
|
16
|
+
--sekyro-tracking-flow-label: 0;
|
|
17
|
+
--sekyro-type-flow-input: 500 22px/28px;
|
|
18
|
+
--sekyro-tracking-flow-input: 0;
|
|
19
|
+
--sekyro-type-flow-digit: 600 28px/34px;
|
|
20
|
+
--sekyro-tracking-flow-digit: 0;
|
|
21
|
+
--sekyro-type-flow-caption: 400 13px/18px;
|
|
22
|
+
--sekyro-tracking-flow-caption: 0;
|
|
23
|
+
--sekyro-color-stage: #051a2e;
|
|
24
|
+
--sekyro-color-stage-accent: #69dfef;
|
|
25
|
+
--sekyro-color-on-stage: #ffffff;
|
|
26
|
+
--sekyro-color-on-camera-success: #00c897;
|
|
27
|
+
--sekyro-color-stage-warning: #ffab00;
|
|
28
|
+
}
|
|
29
|
+
/* packages/sekyro-react/src/verification.css — @sekyro/react/verification.
|
|
30
|
+
Logical properties only; every color through a --sekyro-* variable (check-css). The type scale (--sekyro-type-flow-*)
|
|
31
|
+
and the camera colours (--sekyro-color-stage*) are generated from packages/sekyro-brand into generated/brand.css,
|
|
32
|
+
which tsup prepends to dist/verification.css. The flow is the native SDKs' design (sekyro-mobile/ios SekyroUI, the
|
|
33
|
+
2026-10-23 premium redesign): one heading per page, quiet secondary text, white fields with hairlines, one large
|
|
34
|
+
action in the thumb zone, a full-bleed camera under ink. */
|
|
35
|
+
|
|
36
|
+
/* ── The SDK's faces (as on the native SDKs): Inter 400/500/600, Geist 600/700 for titles of 22 px and more,
|
|
37
|
+
Cairo 400/600/700 for Arabic (Latin-1 included). Static subset instances of the OFL variable fonts (renamed
|
|
38
|
+
"Sekyro …", see fonts/*-OFL.txt), woff2, built from sekyro-mobile/ios/Sources/SekyroUI/Resources/fonts with
|
|
39
|
+
fontTools. Separate assets (a bundler emits them next to this stylesheet), loaded only for the text that needs them
|
|
40
|
+
(unicode-range) and never blocking it (swap). ─────────────────────────────────────────────────────────────── */
|
|
41
|
+
@font-face { font-family: "Sekyro Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/SekyroInter-Regular.woff2") format("woff2"); unicode-range: U+0000-017F, U+02BB-02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF; }
|
|
42
|
+
@font-face { font-family: "Sekyro Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/SekyroInter-Medium.woff2") format("woff2"); unicode-range: U+0000-017F, U+02BB-02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF; }
|
|
43
|
+
@font-face { font-family: "Sekyro Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/SekyroInter-SemiBold.woff2") format("woff2"); unicode-range: U+0000-017F, U+02BB-02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF; }
|
|
44
|
+
@font-face { font-family: "Sekyro Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/SekyroGeist-SemiBold.woff2") format("woff2"); unicode-range: U+0000-017F, U+02BB-02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF; }
|
|
45
|
+
@font-face { font-family: "Sekyro Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/SekyroGeist-Bold.woff2") format("woff2"); unicode-range: U+0000-017F, U+02BB-02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2713, U+FEFF; }
|
|
46
|
+
@font-face { font-family: "Sekyro Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/SekyroCairo-Regular.woff2") format("woff2"); unicode-range: U+0020-00FF, U+0600-06FF, U+2013-2026, U+FB50-FDFF, U+FE70-FEFC; }
|
|
47
|
+
@font-face { font-family: "Sekyro Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/SekyroCairo-SemiBold.woff2") format("woff2"); unicode-range: U+0020-00FF, U+0600-06FF, U+2013-2026, U+FB50-FDFF, U+FE70-FEFC; }
|
|
48
|
+
@font-face { font-family: "Sekyro Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/SekyroCairo-Bold.woff2") format("woff2"); unicode-range: U+0020-00FF, U+0600-06FF, U+2013-2026, U+FB50-FDFF, U+FE70-FEFC; }
|
|
49
|
+
|
|
50
|
+
/* ── Generic step parts (also used outside <SekyroVerification>) ─────────── */
|
|
51
|
+
.sekyro-field { display: flex; flex-direction: column; gap: 0.5rem; }
|
|
52
|
+
.sekyro-label { font-weight: 600; color: var(--sekyro-color-fg); }
|
|
53
|
+
.sekyro-help { color: var(--sekyro-color-fg-muted); font-size: 0.875rem; }
|
|
54
|
+
.sekyro-help.is-danger { color: var(--sekyro-color-danger); }
|
|
55
|
+
.sekyro-input {
|
|
56
|
+
min-block-size: 48px;
|
|
57
|
+
padding-block: 0.625rem;
|
|
58
|
+
padding-inline: 0.875rem;
|
|
59
|
+
border: 1px solid var(--sekyro-color-fg-muted);
|
|
60
|
+
border-radius: var(--sekyro-radius);
|
|
61
|
+
background: var(--sekyro-color-surface);
|
|
62
|
+
color: var(--sekyro-color-fg);
|
|
63
|
+
font: inherit;
|
|
64
|
+
font-size: 1rem;
|
|
65
|
+
}
|
|
66
|
+
.sekyro-input:focus-visible { outline: 3px solid var(--sekyro-color-ring); outline-offset: 2px; }
|
|
67
|
+
.sekyro-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
68
|
+
.sekyro-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
|
|
69
|
+
.sekyro-center { text-align: center; }
|
|
70
|
+
.sekyro-result { text-align: start; }
|
|
71
|
+
|
|
72
|
+
/* ── The flow's surface ────────────────────────────────────────────────── */
|
|
73
|
+
/* Arabic: Cairo (Latin-1 included), Inter after it for the rest of the Latin text. */
|
|
74
|
+
:root { --sekyro-font-arabic: "Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }
|
|
75
|
+
.sekyro-root {
|
|
76
|
+
/* Shades derived from the (possibly partner) theme on THIS element, so a partner brand recolours them too. */
|
|
77
|
+
--sekyro-color-brand-soft: color-mix(in srgb, var(--sekyro-color-brand) 9%, var(--sekyro-color-surface));
|
|
78
|
+
--sekyro-color-line: color-mix(in srgb, var(--sekyro-color-fg) 22%, var(--sekyro-color-surface));
|
|
79
|
+
--sekyro-color-line-strong: color-mix(in srgb, var(--sekyro-color-fg) 50%, var(--sekyro-color-surface));
|
|
80
|
+
--sekyro-color-line-subtle: color-mix(in srgb, var(--sekyro-color-fg) 11%, var(--sekyro-color-surface));
|
|
81
|
+
--sekyro-color-sunken: color-mix(in srgb, var(--sekyro-color-fg) 6%, var(--sekyro-color-surface));
|
|
82
|
+
--sekyro-color-fg-subtle: color-mix(in srgb, var(--sekyro-color-fg-muted) 80%, var(--sekyro-color-surface));
|
|
83
|
+
/* Titles of 22 px and more: Geist while the font is Sekyro's (set on the flow), else the theme's font. */
|
|
84
|
+
--sekyro-font-display: var(--sekyro-font);
|
|
85
|
+
--sekyro-gutter: 1.5rem;
|
|
86
|
+
--sekyro-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
|
|
87
|
+
--sekyro-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
88
|
+
}
|
|
89
|
+
/* The flow paints its own surface, so a dark scheme reads on any host page. */
|
|
90
|
+
.sekyro-verification {
|
|
91
|
+
display: flex; flex-direction: column; background: var(--sekyro-color-surface); color-scheme: light;
|
|
92
|
+
/* No double-tap zoom on the flow's taps (pinch zoom stays: it is the host's and the person's). */
|
|
93
|
+
touch-action: manipulation;
|
|
94
|
+
}
|
|
95
|
+
.sekyro-verification--dark { color-scheme: dark; }
|
|
96
|
+
.sekyro-flow {
|
|
97
|
+
--sekyro-inline-sign: 1;
|
|
98
|
+
display: flex; flex-direction: column; flex: 1; gap: 0.75rem;
|
|
99
|
+
padding-inline: var(--sekyro-gutter);
|
|
100
|
+
font: var(--sekyro-type-flow-body) var(--sekyro-font);
|
|
101
|
+
letter-spacing: var(--sekyro-tracking-flow-body);
|
|
102
|
+
font-optical-sizing: auto;
|
|
103
|
+
}
|
|
104
|
+
.sekyro-flow[dir="rtl"] { --sekyro-inline-sign: -1; }
|
|
105
|
+
.sekyro-verification.is-immersive { background: var(--sekyro-color-stage); }
|
|
106
|
+
.sekyro-verification.is-immersive .sekyro-flow { gap: 0; }
|
|
107
|
+
/* Sizes are outer sizes (a 52px field is 52px with its padding and border), as in the native kits. */
|
|
108
|
+
.sekyro-root :is(.sekyro-input, .sekyro-btn, .sekyro-card, .sekyro-phone, .sekyro-otp-box, .sekyro-org__tile, .sekyro-glass) { box-sizing: border-box; }
|
|
109
|
+
/* Arabic: Cairo first, tracking reset (joined letters must not part), taller lines for its marks. */
|
|
110
|
+
.sekyro-root [lang="ar"] { font-family: var(--sekyro-font-arabic); }
|
|
111
|
+
.sekyro-root [lang="ar"] * { letter-spacing: 0 !important; }
|
|
112
|
+
/* A step title takes focus on mount so screen readers announce it; it is not a control, so it draws no ring. */
|
|
113
|
+
.sekyro-root [tabindex="-1"]:focus { outline: none; }
|
|
114
|
+
|
|
115
|
+
/* ── Shell: the partner bar, the thin step progress, the footer ───────── */
|
|
116
|
+
.sekyro-org { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.75rem 0.25rem; }
|
|
117
|
+
.sekyro-org__tile {
|
|
118
|
+
display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden;
|
|
119
|
+
inline-size: 2.25rem; block-size: 2.25rem; border-radius: 10px;
|
|
120
|
+
background: var(--sekyro-color-brand-soft); color: var(--sekyro-color-brand);
|
|
121
|
+
font: var(--sekyro-type-flow-caption) var(--sekyro-font); font-weight: 600;
|
|
122
|
+
}
|
|
123
|
+
.sekyro-org__logo { inline-size: 100%; block-size: 100%; padding: 4px; object-fit: contain; box-sizing: border-box; }
|
|
124
|
+
.sekyro-org__text { flex: 1; min-inline-size: 0; }
|
|
125
|
+
.sekyro-org__name { margin: 0; font: 600 0.9375rem/1.25rem var(--sekyro-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
126
|
+
/* The close: a 36 px sunken disc in a 44 px target, its disc on the gutter (mirrored in Arabic by the flex row). */
|
|
127
|
+
.sekyro-org__end { flex-shrink: 0; display: flex; align-items: center; }
|
|
128
|
+
.sekyro-org__close { flex-shrink: 0; margin-inline-end: -4px; }
|
|
129
|
+
.sekyro-org__sub { margin: 0; font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
130
|
+
.sekyro-progress { margin: 0; }
|
|
131
|
+
.sekyro-progress__bars { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
132
|
+
.sekyro-progress__bar { position: relative; flex: 1; block-size: 3px; overflow: hidden; border-radius: 9999px; background: var(--sekyro-color-line-subtle); }
|
|
133
|
+
.sekyro-progress__bar::before {
|
|
134
|
+
content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 0;
|
|
135
|
+
border-radius: inherit; background: var(--sekyro-color-brand); transition: inline-size 450ms var(--sekyro-ease);
|
|
136
|
+
}
|
|
137
|
+
.sekyro-progress__bar.is-done::before { inline-size: 100%; }
|
|
138
|
+
/* The current step is under way, not done: partly filled. */
|
|
139
|
+
.sekyro-progress__bar.is-current::before { inline-size: 40%; }
|
|
140
|
+
.sekyro-footer {
|
|
141
|
+
display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin: 0; padding-block: 1rem 0.5rem;
|
|
142
|
+
font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted);
|
|
143
|
+
}
|
|
144
|
+
.sekyro-footer .sekyro-glyph { inline-size: 0.75rem; block-size: 0.75rem; }
|
|
145
|
+
.sekyro-glyph { inline-size: 1.25rem; block-size: 1.25rem; flex-shrink: 0; fill: none; }
|
|
146
|
+
|
|
147
|
+
/* ── Pages: one at a time, rising into place ───────────────────────────── */
|
|
148
|
+
.sekyro-page { display: flex; flex-direction: column; flex: 1; min-block-size: 0; transition: opacity 100ms ease-out; }
|
|
149
|
+
.sekyro-page.is-leaving { opacity: 0; pointer-events: none; }
|
|
150
|
+
.sekyro-page > * { animation: sekyro-rise 500ms var(--sekyro-ease) 40ms both; }
|
|
151
|
+
@keyframes sekyro-rise { from { opacity: 0; transform: translateY(14px); } }
|
|
152
|
+
.sekyro-step { display: flex; flex-direction: column; flex: 1; gap: 2rem; padding-block-start: 1.5rem; }
|
|
153
|
+
.sekyro-heading { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
154
|
+
.sekyro-root .sekyro-heading > h2,
|
|
155
|
+
.sekyro-root .sekyro-heading > h1 {
|
|
156
|
+
margin: 0; font: var(--sekyro-type-flow-title) var(--sekyro-font-display); letter-spacing: var(--sekyro-tracking-flow-title);
|
|
157
|
+
color: var(--sekyro-color-fg); text-wrap: balance;
|
|
158
|
+
}
|
|
159
|
+
.sekyro-root .sekyro-heading > p { margin: 0; font: var(--sekyro-type-flow-body) var(--sekyro-font); letter-spacing: var(--sekyro-tracking-flow-body); color: var(--sekyro-color-fg-muted); }
|
|
160
|
+
.sekyro-root [lang="ar"] .sekyro-heading > :is(h1, h2) { font-family: var(--sekyro-font-arabic); line-height: 1.4; }
|
|
161
|
+
.sekyro-root [lang="ar"] .sekyro-heading > p { font-family: var(--sekyro-font-arabic); line-height: 1.6; }
|
|
162
|
+
/* Other titles in the flow (processing, unsupported, the 0.1 method screen) on the same scale. */
|
|
163
|
+
.sekyro-root :is(h1, h2).sekyro-text-body { font: var(--sekyro-type-flow-title) var(--sekyro-font-display); letter-spacing: var(--sekyro-tracking-flow-title); }
|
|
164
|
+
.sekyro-root [lang="ar"] :is(h1, h2).sekyro-text-body { font-family: var(--sekyro-font-arabic); line-height: 1.4; }
|
|
165
|
+
|
|
166
|
+
/* The page's actions, pinned in the thumb zone; the consent fine print over them. */
|
|
167
|
+
.sekyro-actions {
|
|
168
|
+
position: sticky; inset-block-end: 0; z-index: 1;
|
|
169
|
+
display: flex; flex-direction: column; gap: 0.75rem; margin-block-start: auto; padding-block: 0.75rem 0.25rem;
|
|
170
|
+
background: var(--sekyro-color-surface);
|
|
171
|
+
|
|
172
|
+
}
|
|
173
|
+
.sekyro-actions:empty { display: none; }
|
|
174
|
+
.sekyro-actions__group { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
175
|
+
.sekyro-actions__group > .sekyro-label { font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-fg-muted); margin: 0; }
|
|
176
|
+
|
|
177
|
+
/* Buttons: 52px, the flow's action type; secondary on the sunken surface; a disabled primary is the brand at 40 %. */
|
|
178
|
+
.sekyro-root .sekyro-btn {
|
|
179
|
+
min-block-size: 52px; gap: 0.5rem; padding-inline: 1.5rem; border-radius: var(--sekyro-radius);
|
|
180
|
+
font: var(--sekyro-type-flow-action) var(--sekyro-font); letter-spacing: var(--sekyro-tracking-flow-action);
|
|
181
|
+
transition: background-color 150ms, transform 250ms var(--sekyro-spring);
|
|
182
|
+
}
|
|
183
|
+
.sekyro-root .sekyro-btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.97); }
|
|
184
|
+
.sekyro-root .sekyro-btn--primary:disabled {
|
|
185
|
+
opacity: 1;
|
|
186
|
+
background: color-mix(in srgb, var(--sekyro-color-brand) 40%, var(--sekyro-color-surface));
|
|
187
|
+
color: var(--sekyro-color-brand-fg);
|
|
188
|
+
}
|
|
189
|
+
.sekyro-root .sekyro-btn--ghost { border-color: transparent; background: var(--sekyro-color-sunken); color: var(--sekyro-color-fg); }
|
|
190
|
+
.sekyro-root .sekyro-btn--ghost:hover { background: var(--sekyro-color-line-subtle); }
|
|
191
|
+
.sekyro-root .sekyro-btn--ghost:disabled { opacity: 1; color: var(--sekyro-color-fg-subtle); }
|
|
192
|
+
.sekyro-root .sekyro-btn[aria-busy="true"]::after {
|
|
193
|
+
content: ""; inline-size: 1rem; block-size: 1rem; border-radius: 50%;
|
|
194
|
+
border: 2px solid currentColor; border-inline-end-color: transparent; animation: sekyro-turn 0.9s linear infinite;
|
|
195
|
+
}
|
|
196
|
+
@keyframes sekyro-turn { to { transform: rotate(360deg); } }
|
|
197
|
+
.sekyro-link {
|
|
198
|
+
align-self: flex-start; min-block-size: 44px; padding: 0; border: 0; background: none; cursor: pointer;
|
|
199
|
+
font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-brand);
|
|
200
|
+
}
|
|
201
|
+
.sekyro-links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
|
|
202
|
+
.sekyro-otp-expiry { margin-block-start: 4px; }
|
|
203
|
+
.sekyro-resend { align-self: center; padding-inline: 0.5rem; font: var(--sekyro-type-flow-label) var(--sekyro-font); }
|
|
204
|
+
.sekyro-resend:disabled { color: var(--sekyro-color-fg-muted); cursor: default; }
|
|
205
|
+
p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; margin: 0; color: var(--sekyro-color-fg-muted); font-variant-numeric: tabular-nums; }
|
|
206
|
+
.sekyro-resend-row { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.5rem; }
|
|
207
|
+
.sekyro-link:focus-visible, .sekyro-card:focus-visible, .sekyro-row-btn:focus-visible, .sekyro-reference:focus-visible { outline: 3px solid var(--sekyro-color-ring); outline-offset: 2px; }
|
|
208
|
+
|
|
209
|
+
/* Notices: soft tinted blocks, no heavy border. */
|
|
210
|
+
.sekyro-root .sekyro-notice { border-color: transparent; border-radius: var(--sekyro-radius); font: var(--sekyro-type-flow-label) var(--sekyro-font); }
|
|
211
|
+
|
|
212
|
+
/* ── Fields: white with a hairline; a 2px ring on focus (red with an error) ── */
|
|
213
|
+
.sekyro-root .sekyro-label { font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
214
|
+
.sekyro-root .sekyro-help { font: var(--sekyro-type-flow-caption) var(--sekyro-font); }
|
|
215
|
+
.sekyro-root .sekyro-help.is-danger { color: var(--sekyro-color-danger); }
|
|
216
|
+
.sekyro-root .sekyro-input {
|
|
217
|
+
min-block-size: 52px; padding-inline: 1rem;
|
|
218
|
+
border-color: var(--sekyro-color-line); border-radius: var(--sekyro-radius); background: var(--sekyro-color-surface);
|
|
219
|
+
font: var(--sekyro-type-flow-body) var(--sekyro-font);
|
|
220
|
+
transition: border-color 150ms, box-shadow 150ms;
|
|
221
|
+
}
|
|
222
|
+
.sekyro-root .sekyro-input::placeholder, .sekyro-phone__input::placeholder { color: var(--sekyro-color-fg-subtle); }
|
|
223
|
+
.sekyro-root .sekyro-input:focus-visible,
|
|
224
|
+
.sekyro-phone:focus-within {
|
|
225
|
+
outline: none; border-color: var(--sekyro-color-ring); box-shadow: inset 0 0 0 1px var(--sekyro-color-ring);
|
|
226
|
+
}
|
|
227
|
+
.sekyro-root .sekyro-input[aria-invalid="true"] { border-color: var(--sekyro-color-danger); box-shadow: inset 0 0 0 1px var(--sekyro-color-danger); }
|
|
228
|
+
.sekyro-root .sekyro-input--number { font: var(--sekyro-type-flow-input) var(--sekyro-font-display); font-variant-numeric: tabular-nums; direction: ltr; }
|
|
229
|
+
/* The phone: 🇲🇷 +222 as a fixed segment, then the national number large and tabular. */
|
|
230
|
+
.sekyro-phone {
|
|
231
|
+
display: flex; align-items: center; gap: 0.75rem; min-block-size: 60px; padding-inline: 1rem;
|
|
232
|
+
border: 1px solid var(--sekyro-color-line); border-radius: var(--sekyro-radius); background: var(--sekyro-color-surface);
|
|
233
|
+
font: var(--sekyro-type-flow-input) var(--sekyro-font-display); font-variant-numeric: tabular-nums;
|
|
234
|
+
transition: border-color 150ms, box-shadow 150ms; cursor: text;
|
|
235
|
+
}
|
|
236
|
+
.sekyro-phone__dial { display: inline-flex; align-items: center; gap: 6px; padding-inline-end: 0.75rem; border-inline-end: 1px solid var(--sekyro-color-line); color: var(--sekyro-color-fg); }
|
|
237
|
+
.sekyro-phone__flag { font-size: 1.25rem; line-height: 1; }
|
|
238
|
+
.sekyro-phone__input {
|
|
239
|
+
flex: 1; min-inline-size: 0; padding: 0; border: 0; outline: none; background: transparent;
|
|
240
|
+
font: inherit; font-variant-numeric: tabular-nums; color: var(--sekyro-color-fg); caret-color: var(--sekyro-color-brand);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* The one-time code: full-width boxes over ONE input (paste and autofill land in it). */
|
|
244
|
+
.sekyro-otp-boxes { position: relative; }
|
|
245
|
+
.sekyro-otp-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
|
|
246
|
+
.sekyro-otp-row.is-shaking { animation: sekyro-shake 400ms linear; }
|
|
247
|
+
@keyframes sekyro-shake {
|
|
248
|
+
20% { transform: translateX(calc(8px * var(--sekyro-inline-sign))); }
|
|
249
|
+
40% { transform: translateX(calc(-8px * var(--sekyro-inline-sign))); }
|
|
250
|
+
60% { transform: translateX(calc(6px * var(--sekyro-inline-sign))); }
|
|
251
|
+
80% { transform: translateX(calc(-4px * var(--sekyro-inline-sign))); }
|
|
252
|
+
}
|
|
253
|
+
.sekyro-otp-box {
|
|
254
|
+
position: relative; display: grid; place-items: center; block-size: 60px;
|
|
255
|
+
border: 1px solid var(--sekyro-color-line); border-radius: 12px; background: var(--sekyro-color-surface);
|
|
256
|
+
font: var(--sekyro-type-flow-digit) var(--sekyro-font-display); font-variant-numeric: tabular-nums; color: var(--sekyro-color-fg);
|
|
257
|
+
transition: border-color 150ms, box-shadow 150ms;
|
|
258
|
+
}
|
|
259
|
+
.sekyro-otp-box.is-filled { border-color: var(--sekyro-color-line-strong); }
|
|
260
|
+
.sekyro-otp-box.is-current { border-color: var(--sekyro-color-ring); box-shadow: inset 0 0 0 1px var(--sekyro-color-ring); }
|
|
261
|
+
.sekyro-otp-box.is-current:empty::after {
|
|
262
|
+
content: ""; inline-size: 2px; block-size: 26px; background: var(--sekyro-color-brand); animation: sekyro-caret 1.06s steps(1) infinite;
|
|
263
|
+
}
|
|
264
|
+
@keyframes sekyro-caret { 50% { opacity: 0; } }
|
|
265
|
+
.sekyro-otp-box.is-invalid { border-color: var(--sekyro-color-danger); box-shadow: inset 0 0 0 1px var(--sekyro-color-danger); }
|
|
266
|
+
.sekyro-otp-digit { animation: sekyro-pop 280ms var(--sekyro-spring) both; }
|
|
267
|
+
@keyframes sekyro-pop { from { opacity: 0; transform: scale(0.6); } }
|
|
268
|
+
.sekyro-otp-boxes .sekyro-input--code {
|
|
269
|
+
position: absolute; inset: 0; inline-size: 100%; block-size: 100%; min-block-size: 0;
|
|
270
|
+
padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; letter-spacing: 0;
|
|
271
|
+
/* Invisible, but 16px: iOS Safari zooms the page into any focused field whose text is smaller. */
|
|
272
|
+
font-size: 16px;
|
|
273
|
+
}
|
|
274
|
+
.sekyro-otp-boxes .sekyro-input--code:focus-visible { outline: none; box-shadow: none; }
|
|
275
|
+
|
|
276
|
+
/* ── Choices: quiet cards with a radio that fills once chosen; tap rows ── */
|
|
277
|
+
.sekyro-choices { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
278
|
+
.sekyro-card {
|
|
279
|
+
display: flex; align-items: center; gap: 1rem; inline-size: 100%; min-block-size: 72px; padding-inline: 1.25rem;
|
|
280
|
+
border: 1px solid var(--sekyro-color-line); border-radius: var(--sekyro-radius); background: var(--sekyro-color-surface);
|
|
281
|
+
color: var(--sekyro-color-fg); font: inherit; text-align: start; cursor: pointer;
|
|
282
|
+
transition: border-color 150ms, background-color 150ms, box-shadow 150ms, transform 250ms var(--sekyro-spring);
|
|
283
|
+
}
|
|
284
|
+
.sekyro-card:active { transform: scale(0.98); }
|
|
285
|
+
.sekyro-card:disabled { cursor: default; }
|
|
286
|
+
.sekyro-card > .sekyro-glyph { inline-size: 26px; block-size: 26px; }
|
|
287
|
+
.sekyro-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
|
|
288
|
+
.sekyro-card__title { font: var(--sekyro-type-flow-action) var(--sekyro-font); }
|
|
289
|
+
.sekyro-card__sub { font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
290
|
+
.sekyro-radio { position: relative; flex-shrink: 0; inline-size: 22px; block-size: 22px; border-radius: 50%; border: 1.5px solid var(--sekyro-color-fg-subtle); box-sizing: border-box; }
|
|
291
|
+
.sekyro-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--sekyro-color-brand); transform: scale(0.2); opacity: 0; transition: transform 300ms var(--sekyro-spring), opacity 150ms; }
|
|
292
|
+
.sekyro-card[aria-pressed="true"] { border-color: var(--sekyro-color-brand); box-shadow: inset 0 0 0 0.5px var(--sekyro-color-brand); background: var(--sekyro-color-brand-soft); }
|
|
293
|
+
.sekyro-card[aria-pressed="true"] > .sekyro-glyph { color: var(--sekyro-color-brand); }
|
|
294
|
+
.sekyro-card[aria-pressed="true"] .sekyro-radio { border-color: var(--sekyro-color-brand); }
|
|
295
|
+
.sekyro-card[aria-pressed="true"] .sekyro-radio::after { transform: scale(1); opacity: 1; }
|
|
296
|
+
.sekyro-rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--sekyro-color-line-subtle); border-radius: var(--sekyro-radius); overflow: hidden; }
|
|
297
|
+
.sekyro-rows > li + li { border-block-start: 1px solid var(--sekyro-color-line-subtle); }
|
|
298
|
+
.sekyro-row-btn {
|
|
299
|
+
display: flex; align-items: center; gap: 0.75rem; inline-size: 100%; min-block-size: 52px; padding-inline: 1rem;
|
|
300
|
+
border: 0; background: var(--sekyro-color-surface); color: var(--sekyro-color-fg); font: inherit; text-align: start; cursor: pointer;
|
|
301
|
+
}
|
|
302
|
+
.sekyro-row-btn:active { background: var(--sekyro-color-sunken); }
|
|
303
|
+
.sekyro-row-btn::after {
|
|
304
|
+
content: ""; margin-inline-start: auto; inline-size: 7px; block-size: 7px;
|
|
305
|
+
border-block-start: 1.5px solid var(--sekyro-color-fg-subtle); border-inline-end: 1.5px solid var(--sekyro-color-fg-subtle);
|
|
306
|
+
transform: rotate(calc(45deg * var(--sekyro-inline-sign)));
|
|
307
|
+
}
|
|
308
|
+
.sekyro-row-btn__flag { font-size: 1.375rem; line-height: 1; }
|
|
309
|
+
|
|
310
|
+
/* A small label over a group (the ICAO tips' "For your ID photo:"). */
|
|
311
|
+
.sekyro-section-label { margin: 0; font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
312
|
+
|
|
313
|
+
/* Tips: a line icon, then the words, unboxed. */
|
|
314
|
+
.sekyro-tiprows { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
|
|
315
|
+
.sekyro-tiprows > li { display: flex; align-items: center; gap: 1rem; }
|
|
316
|
+
.sekyro-tiprows .sekyro-glyph { inline-size: 22px; block-size: 22px; color: var(--sekyro-color-fg-muted); }
|
|
317
|
+
|
|
318
|
+
.sekyro-disc {
|
|
319
|
+
display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 4px; border: 0; border-radius: 50%;
|
|
320
|
+
background: var(--sekyro-color-sunken); background-clip: content-box; color: var(--sekyro-color-fg); cursor: pointer;
|
|
321
|
+
}
|
|
322
|
+
.sekyro-disc .sekyro-glyph { inline-size: 18px; block-size: 18px; }
|
|
323
|
+
|
|
324
|
+
/* ── The camera intros' marks: line geometry of what the camera will do ── */
|
|
325
|
+
.sekyro-mark { display: block; margin-inline: auto; overflow: visible; }
|
|
326
|
+
.sekyro-mark--card { inline-size: min(100%, 15.75rem); margin-block: 0.75rem; }
|
|
327
|
+
.sekyro-mark--face { inline-size: 10.5rem; }
|
|
328
|
+
.sekyro-mark__card { fill: var(--sekyro-color-surface); stroke: var(--sekyro-color-line); stroke-width: 1; }
|
|
329
|
+
.sekyro-mark__photo { fill: var(--sekyro-color-sunken); }
|
|
330
|
+
.sekyro-mark__text { fill: var(--sekyro-color-line-subtle); }
|
|
331
|
+
.sekyro-mark__brackets { fill: none; stroke: var(--sekyro-color-brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
|
|
332
|
+
.sekyro-mark__beam { fill: var(--sekyro-color-stage-accent); filter: drop-shadow(0 0 3px var(--sekyro-color-stage-accent)); }
|
|
333
|
+
/* The card does not mirror in Arabic (a physical card reads left to right): the line crosses it left to right. */
|
|
334
|
+
.sekyro-mark__read { animation: sekyro-mark-read 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s infinite; }
|
|
335
|
+
@keyframes sekyro-mark-read { from { transform: translate(0, 0); } 70%, to { transform: translate(var(--sekyro-read-w), 0); } }
|
|
336
|
+
.sekyro-mark__line { stroke: var(--sekyro-color-line); stroke-width: 1; }
|
|
337
|
+
.sekyro-mark__face { fill: none; stroke: var(--sekyro-color-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
338
|
+
.sekyro-mark__ticks { fill: none; stroke: var(--sekyro-color-line); stroke-width: 10; stroke-dasharray: 0.26 0.74; }
|
|
339
|
+
.sekyro-mark__ticks--light { stroke: var(--sekyro-color-stage-accent); }
|
|
340
|
+
.sekyro-mark__arc { stroke-dasharray: 0.22 0.78; animation: sekyro-arc 2.4s linear infinite; }
|
|
341
|
+
@keyframes sekyro-arc { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
|
|
342
|
+
|
|
343
|
+
/* ── The outcome: its mark drawn in light, the title, the reference ──── */
|
|
344
|
+
.sekyro-root .sekyro-result { display: flex; flex-direction: column; flex: 1; padding-block-start: 2rem; }
|
|
345
|
+
.sekyro-result__body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; flex: 1; padding-block-end: 2rem; text-align: center; }
|
|
346
|
+
.sekyro-root .sekyro-result .sekyro-heading > h2 { font: var(--sekyro-type-flow-hero) var(--sekyro-font-display); letter-spacing: var(--sekyro-tracking-flow-hero); }
|
|
347
|
+
.sekyro-root [lang="ar"] .sekyro-result .sekyro-heading > h2 { font-family: var(--sekyro-font-arabic); line-height: 1.35; }
|
|
348
|
+
.sekyro-outcome { inline-size: 136px; block-size: 136px; --sekyro-tone: var(--sekyro-color-success); }
|
|
349
|
+
.sekyro-outcome--review { --sekyro-tone: var(--sekyro-color-warning); }
|
|
350
|
+
.sekyro-outcome--expired { --sekyro-tone: var(--sekyro-color-fg-muted); }
|
|
351
|
+
.sekyro-outcome--rejected { --sekyro-tone: var(--sekyro-color-danger); }
|
|
352
|
+
.sekyro-outcome__ring {
|
|
353
|
+
fill: none; stroke: color-mix(in srgb, var(--sekyro-tone) 50%, transparent); stroke-width: 2; stroke-linecap: round;
|
|
354
|
+
stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; transform-box: fill-box;
|
|
355
|
+
animation: sekyro-draw 450ms ease-out forwards;
|
|
356
|
+
}
|
|
357
|
+
.sekyro-outcome--approved .sekyro-outcome__ring { stroke: var(--sekyro-color-stage-accent); }
|
|
358
|
+
.sekyro-outcome__disc { fill: var(--sekyro-tone); transform-origin: center; transform-box: fill-box; animation: sekyro-fill 380ms var(--sekyro-spring) 380ms both; }
|
|
359
|
+
@keyframes sekyro-fill { from { opacity: 0; transform: scale(0.86); } }
|
|
360
|
+
.sekyro-outcome__glyph {
|
|
361
|
+
fill: none; stroke: var(--sekyro-color-brand-fg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
|
|
362
|
+
stroke-dasharray: 1; stroke-dashoffset: 1; animation: sekyro-draw 320ms ease-out 620ms forwards;
|
|
363
|
+
}
|
|
364
|
+
@keyframes sekyro-draw { to { stroke-dashoffset: 0; } }
|
|
365
|
+
.sekyro-reference {
|
|
366
|
+
display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 44px; padding-inline: 0.75rem; border: 0; border-radius: 9999px; background: none;
|
|
367
|
+
font: var(--sekyro-type-flow-caption) var(--sekyro-font); font-variant-numeric: tabular-nums; color: var(--sekyro-color-fg-muted); cursor: pointer;
|
|
368
|
+
}
|
|
369
|
+
.sekyro-reference > bdi { color: var(--sekyro-color-fg); }
|
|
370
|
+
.sekyro-reference > .sekyro-glyph { inline-size: 16px; block-size: 16px; }
|
|
371
|
+
.sekyro-reference.is-copied > span { color: var(--sekyro-color-success); }
|
|
372
|
+
|
|
373
|
+
/* ── Lumière: the document camera, edge to edge ────────────────────────── */
|
|
374
|
+
.sekyro-lm { margin-inline: calc(-1 * var(--sekyro-gutter)); }
|
|
375
|
+
.sekyro-lm-stage {
|
|
376
|
+
position: relative; overflow: hidden; block-size: 100svh; min-block-size: 32rem;
|
|
377
|
+
background: var(--sekyro-color-stage); color: var(--sekyro-color-on-stage);
|
|
378
|
+
}
|
|
379
|
+
/* A wide screen keeps a phone-shaped camera, centred. */
|
|
380
|
+
@media (min-width: 40rem) { .sekyro-lm-stage { block-size: min(100svh, 52rem); max-inline-size: 28rem; margin-inline: auto; border-radius: 16px; } }
|
|
381
|
+
.sekyro-lm-video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: filter 250ms ease-out; }
|
|
382
|
+
/* While the photos are read: a light blur (about a third of a full system blur), the scene still recognisable. */
|
|
383
|
+
.sekyro-lm-stage.is-reading .sekyro-lm-video { filter: blur(6px) brightness(0.92); }
|
|
384
|
+
/* The camera's view when the last photo was taken, lightly blurred behind the card being read. */
|
|
385
|
+
.sekyro-lm-scene { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; filter: blur(4px) brightness(0.92); animation: sekyro-fade 250ms ease-out both; }
|
|
386
|
+
.sekyro-lm-frozen { position: absolute; object-fit: cover; animation: sekyro-fade 250ms ease-out both; }
|
|
387
|
+
@keyframes sekyro-fade { from { opacity: 0; } }
|
|
388
|
+
.sekyro-lm-overlay { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
|
|
389
|
+
.sekyro-lm-ink { stop-color: var(--sekyro-color-stage); }
|
|
390
|
+
.sekyro-lm-scrim { fill: var(--sekyro-color-stage); fill-opacity: 0.6; }
|
|
391
|
+
.sekyro-lm-brackets > path {
|
|
392
|
+
fill: none; stroke: var(--sekyro-color-on-stage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
|
|
393
|
+
transition: transform 450ms cubic-bezier(0.2, 0.9, 0.3, 1);
|
|
394
|
+
}
|
|
395
|
+
.sekyro-lm-brackets { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--sekyro-color-stage) 40%, transparent)); }
|
|
396
|
+
.sekyro-lm-brackets.is-coaching > path { stroke: var(--sekyro-color-stage-warning); }
|
|
397
|
+
.sekyro-lm-brackets.is-locked > path { stroke: var(--sekyro-color-on-camera-success); }
|
|
398
|
+
.sekyro-lm-brackets.is-locked { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--sekyro-color-on-camera-success) 55%, transparent)); }
|
|
399
|
+
.sekyro-lm-trace { fill: none; stroke: var(--sekyro-color-on-camera-success); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sekyro-draw linear forwards; }
|
|
400
|
+
/* The Lumière signature: one precise aqua line crossing the card (in the reading direction). */
|
|
401
|
+
.sekyro-lm-slot { position: absolute; overflow: hidden; pointer-events: none; }
|
|
402
|
+
.sekyro-lm-read {
|
|
403
|
+
position: absolute; inset-block: 0; inset-inline-start: -6px; inline-size: 12px; mix-blend-mode: screen;
|
|
404
|
+
animation: sekyro-lm-read 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
405
|
+
}
|
|
406
|
+
.sekyro-lm-read::after {
|
|
407
|
+
content: ""; position: absolute; inset-block: 0; inset-inline-start: 5px; inline-size: 2px;
|
|
408
|
+
background: var(--sekyro-color-stage-accent); box-shadow: 0 0 5px var(--sekyro-color-stage-accent);
|
|
409
|
+
}
|
|
410
|
+
.sekyro-lm-read.is-repeating { animation: sekyro-lm-read 1.3s ease-in-out infinite alternate; }
|
|
411
|
+
@keyframes sekyro-lm-read { from { transform: translateX(0); } to { transform: translateX(calc(var(--sekyro-guide-w) * var(--sekyro-inline-sign))); } }
|
|
412
|
+
/* The camera's one instruction, large and white over the ink, above the card; one line at a time. */
|
|
413
|
+
.sekyro-lm-instruction { position: absolute; inset-inline: 6%; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; transform: translateY(-50%); }
|
|
414
|
+
.sekyro-lm-instruction > div { display: grid; }
|
|
415
|
+
.sekyro-lm-line {
|
|
416
|
+
font: var(--sekyro-type-flow-camera) var(--sekyro-font-display); letter-spacing: var(--sekyro-tracking-flow-camera);
|
|
417
|
+
color: var(--sekyro-color-on-stage); text-shadow: 0 2px 8px color-mix(in srgb, var(--sekyro-color-stage) 50%, transparent);
|
|
418
|
+
text-wrap: balance; animation: sekyro-line-in 250ms ease-out 0ms both; transition: opacity 100ms ease-out;
|
|
419
|
+
}
|
|
420
|
+
.sekyro-root [lang="ar"] .sekyro-lm-line { font-family: var(--sekyro-font-arabic); line-height: 1.4; }
|
|
421
|
+
.sekyro-lm-line.is-leaving { opacity: 0; }
|
|
422
|
+
@keyframes sekyro-line-in { from { opacity: 0; transform: translateY(4px); } }
|
|
423
|
+
.sekyro-lm-attempts { margin: 0; font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: color-mix(in srgb, var(--sekyro-color-on-stage) 80%, transparent); }
|
|
424
|
+
.sekyro-lm-under { position: absolute; inset-inline: 0; display: flex; justify-content: center; margin: 0; pointer-events: none; }
|
|
425
|
+
.sekyro-lm-note { align-items: center; gap: 0.75rem; font: var(--sekyro-type-flow-label) var(--sekyro-font); color: color-mix(in srgb, var(--sekyro-color-on-stage) 85%, transparent); animation: sekyro-fade 250ms ease-out 100ms both; }
|
|
426
|
+
.sekyro-lm-spinner {
|
|
427
|
+
inline-size: 20px; block-size: 20px; border-radius: 50%; box-sizing: border-box;
|
|
428
|
+
border: 2.5px solid var(--sekyro-color-stage-accent); border-block-start-color: transparent; animation: sekyro-turn 0.9s linear infinite;
|
|
429
|
+
}
|
|
430
|
+
/* "Turn the card": a small card turning over under the slot (front: portrait and lines; back: the code lines). */
|
|
431
|
+
/* A physical card: it reads left to right in Arabic too. */
|
|
432
|
+
.sekyro-lm-flip { direction: ltr; perspective: 400px; animation: sekyro-fade 250ms ease-out both; }
|
|
433
|
+
.sekyro-lm-flip-card { position: relative; inline-size: 64px; transform-style: preserve-3d; animation: sekyro-flip 0.9s ease-in-out 0.3s infinite alternate; }
|
|
434
|
+
.sekyro-lm-flip.is-toFront .sekyro-lm-flip-card { animation-direction: alternate-reverse; }
|
|
435
|
+
.sekyro-lm-flip-card { --sekyro-cue: color-mix(in srgb, var(--sekyro-color-on-stage) 85%, transparent); }
|
|
436
|
+
.sekyro-lm-flip-front, .sekyro-lm-flip-back {
|
|
437
|
+
position: absolute; inset: 0; border: 1.75px solid var(--sekyro-cue); border-radius: 6px; backface-visibility: hidden;
|
|
438
|
+
}
|
|
439
|
+
.sekyro-lm-flip-front::before { content: ""; position: absolute; inset-block-start: 7px; inset-inline-start: 7px; inline-size: 13px; block-size: 17px; border-radius: 2px; border: 1.5px solid var(--sekyro-cue); box-sizing: border-box; }
|
|
440
|
+
.sekyro-lm-flip-front::after { content: ""; position: absolute; inset-block-start: 9px; inset-inline: 26px 9px; block-size: 2px; border-radius: 2px; background: var(--sekyro-cue); box-shadow: 0 6px 0 var(--sekyro-cue), 0 12px 0 var(--sekyro-cue); }
|
|
441
|
+
.sekyro-lm-flip-back { transform: rotateY(180deg); }
|
|
442
|
+
.sekyro-lm-flip-back::after { content: ""; position: absolute; inset-block-end: 9px; inset-inline: 8px; block-size: 2px; border-radius: 2px; background: var(--sekyro-cue); box-shadow: 0 -6px 0 var(--sekyro-cue); }
|
|
443
|
+
@keyframes sekyro-flip { to { transform: rotateY(180deg); } }
|
|
444
|
+
/* Frosted controls, the manual shutter and the faces tray. */
|
|
445
|
+
.sekyro-lm-controls {
|
|
446
|
+
position: absolute; inset: 0; display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; pointer-events: none;
|
|
447
|
+
padding-block: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-bottom)); padding-inline: 1.25rem;
|
|
448
|
+
}
|
|
449
|
+
.sekyro-lm-controls > * { pointer-events: auto; }
|
|
450
|
+
.sekyro-lm-bar { display: flex; justify-content: space-between; margin-block-end: auto; }
|
|
451
|
+
.sekyro-glass {
|
|
452
|
+
display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
|
|
453
|
+
background: color-mix(in srgb, var(--sekyro-color-on-stage) 18%, transparent); color: var(--sekyro-color-on-stage);
|
|
454
|
+
-webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
|
|
455
|
+
}
|
|
456
|
+
.sekyro-glass.is-on { background: var(--sekyro-color-on-stage); color: var(--sekyro-color-stage); }
|
|
457
|
+
.sekyro-glass:focus-visible, .sekyro-shutter:focus-visible { outline: 3px solid var(--sekyro-color-on-stage); outline-offset: 2px; }
|
|
458
|
+
.sekyro-shutter {
|
|
459
|
+
align-self: center; inline-size: 74px; block-size: 74px; border: 3px solid color-mix(in srgb, var(--sekyro-color-on-stage) 90%, transparent);
|
|
460
|
+
border-radius: 50%; background: var(--sekyro-color-on-stage) content-box; padding: 4px; cursor: pointer; box-sizing: border-box;
|
|
461
|
+
animation: sekyro-fill 350ms var(--sekyro-spring) both;
|
|
462
|
+
}
|
|
463
|
+
.sekyro-lm-tray { display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
|
|
464
|
+
.sekyro-lm-tray > li {
|
|
465
|
+
display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
|
|
466
|
+
font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: color-mix(in srgb, var(--sekyro-color-on-stage) 62%, transparent);
|
|
467
|
+
}
|
|
468
|
+
.sekyro-lm-tray > li.is-done { color: var(--sekyro-color-on-stage); }
|
|
469
|
+
.sekyro-lm-thumb {
|
|
470
|
+
position: relative; inline-size: 58px; block-size: 37px; border-radius: 6px; box-sizing: border-box;
|
|
471
|
+
border: 1.5px solid var(--sekyro-color-on-camera-success); background: color-mix(in srgb, var(--sekyro-color-on-stage) 12%, transparent);
|
|
472
|
+
animation: sekyro-fill 400ms var(--sekyro-spring) both;
|
|
473
|
+
}
|
|
474
|
+
.sekyro-lm-thumb > img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 4.5px; }
|
|
475
|
+
.sekyro-lm-check {
|
|
476
|
+
position: absolute; inset-block-start: -6px; inset-inline-end: -6px; inline-size: 18px; block-size: 18px; border-radius: 50%;
|
|
477
|
+
background: var(--sekyro-color-on-camera-success); fill: none; stroke: var(--sekyro-color-on-stage); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
|
|
478
|
+
}
|
|
479
|
+
.sekyro-lm-error {
|
|
480
|
+
display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; border-radius: 16px;
|
|
481
|
+
background: color-mix(in srgb, var(--sekyro-color-stage) 88%, transparent); color: var(--sekyro-color-on-stage);
|
|
482
|
+
}
|
|
483
|
+
.sekyro-lm-error > p { margin: 0; }
|
|
484
|
+
|
|
485
|
+
/* ── The face camera (face-camera.tsx): the oval cut from the ink, its ring of ticks and the running light ── */
|
|
486
|
+
.sekyro-fc-video { transform: scaleX(-1); }
|
|
487
|
+
.sekyro-fc-still { animation: sekyro-fade 250ms ease-out both; }
|
|
488
|
+
.sekyro-fc-scrim { fill: var(--sekyro-color-stage); fill-opacity: 0.82; }
|
|
489
|
+
.sekyro-fc-rim { fill: none; stroke: color-mix(in srgb, var(--sekyro-color-on-stage) 35%, transparent); stroke-width: 1.5; }
|
|
490
|
+
.sekyro-fc-ticks { fill: none; stroke: color-mix(in srgb, var(--sekyro-color-on-stage) 28%, transparent); stroke-width: 3; stroke-linecap: round; }
|
|
491
|
+
.sekyro-fc-ticks.is-done { stroke: var(--sekyro-color-on-camera-success); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--sekyro-color-on-camera-success) 60%, transparent)); }
|
|
492
|
+
.sekyro-fc-ticks.is-light { stroke: var(--sekyro-color-stage-accent); }
|
|
493
|
+
.sekyro-fc-fade { stop-color: var(--sekyro-color-on-stage); }
|
|
494
|
+
.sekyro-fc-sweep { animation: sekyro-turn 2.2s linear infinite; }
|
|
495
|
+
.sekyro-fc-panel {
|
|
496
|
+
display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; border-radius: 16px;
|
|
497
|
+
background: var(--sekyro-color-surface); color: var(--sekyro-color-fg);
|
|
498
|
+
}
|
|
499
|
+
.sekyro-fc-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; margin: 0; padding: 0; list-style: none; }
|
|
500
|
+
.sekyro-fc-checks > li {
|
|
501
|
+
display: flex; align-items: center; gap: 0.375rem;
|
|
502
|
+
font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: color-mix(in srgb, var(--sekyro-color-on-stage) 70%, transparent);
|
|
503
|
+
}
|
|
504
|
+
.sekyro-fc-checks > li.is-met { color: var(--sekyro-color-on-stage); }
|
|
505
|
+
.sekyro-fc-mark {
|
|
506
|
+
display: inline-grid; place-items: center; inline-size: 16px; block-size: 16px; border-radius: 50%; box-sizing: border-box;
|
|
507
|
+
border: 1.5px solid currentColor;
|
|
508
|
+
}
|
|
509
|
+
.sekyro-fc-mark > svg { inline-size: 14px; block-size: 14px; fill: none; stroke: transparent; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
510
|
+
.sekyro-fc-checks > li.is-met .sekyro-fc-mark { border-color: var(--sekyro-color-on-camera-success); background: var(--sekyro-color-on-camera-success); }
|
|
511
|
+
.sekyro-fc-checks > li.is-met .sekyro-fc-mark > svg { stroke: var(--sekyro-color-stage); }
|
|
512
|
+
|
|
513
|
+
/* The face capture (the 0.1 stage) inside the flow: the instruction on the flow's camera scale. */
|
|
514
|
+
.sekyro-verification .sekyro-stage__guidance-text { font: var(--sekyro-type-flow-camera) var(--sekyro-font-display); letter-spacing: var(--sekyro-tracking-flow-camera); }
|
|
515
|
+
.sekyro-root [lang="ar"] .sekyro-stage__guidance-text { font-family: var(--sekyro-font-arabic); }
|
|
516
|
+
|
|
517
|
+
/* Over the camera, the scrim is the Sekyro navy and captions are white, in light and dark alike: inside a stage,
|
|
518
|
+
* the `fg` (scrim) and `surface` (caption) tokens the 0.1 stage rules paint with are remapped. */
|
|
519
|
+
.sekyro-verification .sekyro-stage {
|
|
520
|
+
--sekyro-color-fg: var(--sekyro-color-stage);
|
|
521
|
+
--sekyro-color-surface: var(--sekyro-color-on-stage);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@media (prefers-reduced-motion: reduce) {
|
|
525
|
+
.sekyro-fc-sweep, .sekyro-fc-still, .sekyro-page > *, .sekyro-otp-digit, .sekyro-otp-row.is-shaking, .sekyro-lm-line, .sekyro-lm-thumb, .sekyro-shutter { animation: none; }
|
|
526
|
+
.sekyro-mark__read { animation: none; transform: translate(calc(var(--sekyro-read-w) * 0.62), 0); }
|
|
527
|
+
.sekyro-mark__arc { animation: none; stroke-dashoffset: 0.45; }
|
|
528
|
+
.sekyro-lm-read, .sekyro-lm-flip-card { animation: none; }
|
|
529
|
+
.sekyro-lm-flip-card { transform: rotateY(180deg); }
|
|
530
|
+
.sekyro-lm-read.is-repeating { transform: translateX(calc(var(--sekyro-guide-w) * 0.5 * var(--sekyro-inline-sign))); }
|
|
531
|
+
.sekyro-outcome__ring, .sekyro-outcome__glyph { animation: none; stroke-dashoffset: 0; }
|
|
532
|
+
.sekyro-outcome__disc { animation: none; }
|
|
533
|
+
.sekyro-lm-brackets > path, .sekyro-progress__bar::before, .sekyro-root .sekyro-btn, .sekyro-card { transition: none; }
|
|
534
|
+
.sekyro-root .sekyro-btn:active, .sekyro-card:active { transform: none; }
|
|
535
|
+
.sekyro-lm-trace { animation: none; stroke-dashoffset: 0; }
|
|
536
|
+
}
|
|
537
|
+
/* A masked number or address stays on one line, left to right. */
|
|
538
|
+
.sekyro-root bdi.sekyro-mono { white-space: nowrap; font-family: inherit; font-variant-numeric: tabular-nums; }
|
|
539
|
+
|
|
540
|
+
/* Web live MRZ (plan Task 10): the band the on-device reader watches, at the bottom of the guide. Decorative — the
|
|
541
|
+
polite pill carries the state; the pulse stops under reduced motion. */
|
|
542
|
+
.sekyro-lm-mrz { position: absolute; inset-inline: 9%; inset-block-end: 22%; block-size: 22%; border: 2px solid var(--sekyro-color-brand); border-radius: 6px; background: color-mix(in srgb, var(--sekyro-color-brand) 12%, transparent); animation: sekyro-lm-mrz-pulse 1.4s ease-in-out infinite; pointer-events: none; }
|
|
543
|
+
.sekyro-lm-mrz.is-page { inset-block-end: 18%; block-size: 16%; }
|
|
544
|
+
.sekyro-lm-mrz.is-valid { border-color: var(--sekyro-color-success); animation: none; }
|
|
545
|
+
@keyframes sekyro-lm-mrz-pulse { 50% { opacity: 0.55; } }
|
|
546
|
+
@media (prefers-reduced-motion: reduce) { .sekyro-lm-mrz { animation: none; } }
|
|
547
|
+
/* Flow model 2026-10-23: the one-line consent link, the section progress, the identity summary, the handoff QR. */
|
|
548
|
+
.sekyro-link {
|
|
549
|
+
display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--sekyro-color-brand);
|
|
550
|
+
text-decoration: underline; cursor: pointer; min-block-size: 24px;
|
|
551
|
+
}
|
|
552
|
+
.sekyro-link:focus-visible { outline: 3px solid var(--sekyro-color-ring); outline-offset: 2px; }
|
|
553
|
+
.sekyro-summary { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
|
|
554
|
+
.sekyro-summary__portrait { inline-size: 6rem; block-size: 8rem; object-fit: cover; border-radius: calc(var(--sekyro-radius) / 2); }
|
|
555
|
+
.sekyro-summary__list { display: grid; gap: 0.5rem; margin: 0; flex: 1 1 14rem; }
|
|
556
|
+
.sekyro-summary__row { display: grid; gap: 0.125rem; }
|
|
557
|
+
.sekyro-summary__row dd { margin: 0; color: var(--sekyro-color-fg); }
|
|
558
|
+
.sekyro-qr { inline-size: 12rem; block-size: 12rem; align-self: center; }
|
|
559
|
+
.sekyro-qr__bg { fill: var(--sekyro-color-surface); }
|
|
560
|
+
.sekyro-qr__fg { fill: var(--sekyro-color-fg); }
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/react",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.6",
|
|
4
4
|
"description": "Sekyro AI React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (ar/fr/en, RTL-safe, WCAG AAA defaults)",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/IBTIKAR-Technologies/ibtikar-identity.git",
|
|
@@ -42,6 +42,17 @@
|
|
|
42
42
|
"default": "./dist/index.cjs"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
+
"./verification": {
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./dist/verification/index.d.ts",
|
|
48
|
+
"default": "./dist/verification/index.js"
|
|
49
|
+
},
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/verification/index.d.cts",
|
|
52
|
+
"default": "./dist/verification/index.cjs"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"./verification.css": "./dist/verification.css",
|
|
45
56
|
"./styles.css": "./dist/styles.css",
|
|
46
57
|
"./package.json": "./package.json"
|
|
47
58
|
},
|
|
@@ -54,15 +65,16 @@
|
|
|
54
65
|
],
|
|
55
66
|
"scripts": {
|
|
56
67
|
"build": "tsup",
|
|
57
|
-
"test": "node scripts/check-css.mjs && vitest run",
|
|
68
|
+
"test": "node scripts/check-css.mjs && node scripts/gen-step-strings.mjs --check && vitest run",
|
|
58
69
|
"size": "node scripts/check-size.mjs",
|
|
59
70
|
"voice:texts": "node --experimental-strip-types scripts/export-voice-texts.mts",
|
|
60
71
|
"typecheck": "tsc --noEmit",
|
|
61
|
-
"api:report": "api-extractor run --local",
|
|
62
|
-
"api:check": "api-extractor run"
|
|
72
|
+
"api:report": "api-extractor run --local && api-extractor run --local -c api-extractor.verification.json",
|
|
73
|
+
"api:check": "api-extractor run && api-extractor run -c api-extractor.verification.json",
|
|
74
|
+
"strings:steps": "node scripts/gen-step-strings.mjs"
|
|
63
75
|
},
|
|
64
76
|
"peerDependencies": {
|
|
65
|
-
"@sekyro/web": "^0.1.0-rc.
|
|
77
|
+
"@sekyro/web": "^0.1.0-rc.8 || ^0.2.0-rc.0",
|
|
66
78
|
"react": ">=18.2",
|
|
67
79
|
"react-dom": ">=18.2"
|
|
68
80
|
},
|
|
@@ -73,11 +85,13 @@
|
|
|
73
85
|
"@testing-library/react": "^16",
|
|
74
86
|
"@types/jest-axe": "^3.5",
|
|
75
87
|
"@types/node": "^22",
|
|
88
|
+
"@types/qrcode": "1.5.5",
|
|
76
89
|
"@types/react": "^19",
|
|
77
90
|
"@types/react-dom": "^19",
|
|
78
91
|
"@vitejs/plugin-react": "^4",
|
|
79
92
|
"jest-axe": "^10",
|
|
80
93
|
"jsdom": "^25",
|
|
94
|
+
"qrcode": "1.5.4",
|
|
81
95
|
"react": "19.2.0",
|
|
82
96
|
"react-dom": "19.2.0",
|
|
83
97
|
"tsup": "^8",
|