@sekyro/react 0.1.0-rc.15 → 0.1.0-rc.17
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 +57 -0
- package/dist/chunk-25KWDPLY.js +2 -0
- package/dist/chunk-55NNQK5P.js +2 -0
- package/dist/chunk-6I7GU4FS.js +2 -0
- package/dist/chunk-7MMT5M4E.js +2 -0
- package/dist/chunk-A6UYUVEG.js +2 -0
- package/dist/chunk-DY5WQVPE.js +2 -0
- package/dist/chunk-GUTF3SPK.js +2 -0
- package/dist/chunk-JT7YHK7F.js +2 -0
- package/dist/chunk-LPGHMDD4.js +2 -0
- package/dist/chunk-NV7HZJM4.js +2 -0
- package/dist/chunk-T3PAN4NN.js +2 -0
- package/dist/chunk-XTQARDSJ.js +2 -0
- package/dist/chunk-YVNQ3UUH.js +2 -0
- package/dist/{chunk-TLHEN5T3.js → chunk-Z7US4CLZ.js} +1 -1
- package/dist/document-capture-view-WDGHEAUI.js +2 -0
- package/dist/eid-view-HQLNWM6A.js +2 -0
- package/dist/email-otp-view-LCIDGNZT.js +2 -0
- package/dist/flow-views-K3HXMKPU.js +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/overlay-de-YQA44XTY.js +2 -0
- package/dist/overlay-es-6KRUPYG4.js +2 -0
- package/dist/overlay-pt-QEAE4TDI.js +2 -0
- package/dist/portrait-capture-view-I7I6FJQO.js +2 -0
- package/dist/portrait-review-view-A5HGZ7ZN.js +2 -0
- package/dist/{theme-qTwMxyZM.d.ts → theme-DuvMUYA9.d.cts} +8 -2
- package/dist/{theme-qTwMxyZM.d.cts → theme-DuvMUYA9.d.ts} +8 -2
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +79 -4
- package/dist/verification/index.d.ts +79 -4
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +210 -70
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-6EP4O2CE.js +0 -2
- package/dist/chunk-AIBCIUYT.js +0 -2
- package/dist/chunk-EZ5TVL6P.js +0 -2
- package/dist/chunk-H2KIOYQU.js +0 -2
- package/dist/chunk-IJE64ZEN.js +0 -2
- package/dist/chunk-JCCXPYU4.js +0 -2
- package/dist/chunk-PYAJMHZH.js +0 -2
- package/dist/chunk-TS3UFW5B.js +0 -2
- package/dist/chunk-UFAOAYQY.js +0 -2
- package/dist/chunk-VKSX4KC3.js +0 -2
- package/dist/chunk-YY76AMUA.js +0 -2
- package/dist/chunk-Z43XZ75N.js +0 -2
- package/dist/document-capture-view-6NADWNPQ.js +0 -2
- package/dist/eid-view-BKKVB5QT.js +0 -2
- package/dist/email-otp-view-56JMHX3M.js +0 -2
- package/dist/flow-views-7FMODRP7.js +0 -2
- package/dist/overlay-de-PSIG4NLI.js +0 -2
- package/dist/overlay-es-36OOIBXG.js +0 -2
- package/dist/overlay-pt-NWIPFF4D.js +0 -2
- package/dist/portrait-capture-view-JYTBBXFU.js +0 -2
package/dist/verification.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
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)`)
|
|
3
|
-
colours of its camera stages. Prepended to dist/verification.css by tsup. */
|
|
2
|
+
The flow-* type roles of the verification flow (`font: var(--sekyro-type-flow-title) var(--sekyro-font)`), the
|
|
3
|
+
colours of its camera stages, its component sizes and its page transition. Prepended to dist/verification.css by tsup. */
|
|
4
4
|
:root {
|
|
5
|
-
--sekyro-type-flow-hero: 600 34px
|
|
5
|
+
--sekyro-type-flow-hero: 600 28px/34px;
|
|
6
6
|
--sekyro-tracking-flow-hero: -0.015em;
|
|
7
|
-
--sekyro-type-flow-title: 600
|
|
7
|
+
--sekyro-type-flow-title: 600 24px/30px;
|
|
8
8
|
--sekyro-tracking-flow-title: -0.01em;
|
|
9
9
|
--sekyro-type-flow-camera: 600 24px/30px;
|
|
10
10
|
--sekyro-tracking-flow-camera: -0.01em;
|
|
@@ -25,6 +25,26 @@
|
|
|
25
25
|
--sekyro-color-on-stage: #ffffff;
|
|
26
26
|
--sekyro-color-on-camera-success: #00c897;
|
|
27
27
|
--sekyro-color-stage-warning: #ffab00;
|
|
28
|
+
--sekyro-size-button-height: 52px;
|
|
29
|
+
--sekyro-size-control-radius: 10px;
|
|
30
|
+
--sekyro-size-card-radius: 16px;
|
|
31
|
+
--sekyro-size-field-radius: 10px;
|
|
32
|
+
--sekyro-size-icon-tile: 56px;
|
|
33
|
+
--sekyro-size-icon-tile-radius: 16px;
|
|
34
|
+
--sekyro-size-header-tile: 40px;
|
|
35
|
+
--sekyro-size-choice-tile: 40px;
|
|
36
|
+
--sekyro-size-tile-radius: 10px;
|
|
37
|
+
--sekyro-size-result-disc: 64px;
|
|
38
|
+
--sekyro-size-result-ring: 8px;
|
|
39
|
+
--sekyro-size-progress-height: 4px;
|
|
40
|
+
--sekyro-size-focus-ring: 2px;
|
|
41
|
+
--sekyro-size-focus-ring-offset: 2px;
|
|
42
|
+
--sekyro-size-otp-box: 60px;
|
|
43
|
+
--sekyro-size-choice-min-height: 76px;
|
|
44
|
+
--sekyro-size-step-gap: 32px;
|
|
45
|
+
--sekyro-size-heading-gap: 12px;
|
|
46
|
+
--sekyro-motion-page: 320ms;
|
|
47
|
+
--sekyro-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
28
48
|
}
|
|
29
49
|
/* packages/sekyro-react/src/verification.css — @sekyro/react/verification.
|
|
30
50
|
Logical properties only; every color through a --sekyro-* variable (check-css). The type scale (--sekyro-type-flow-*)
|
|
@@ -85,6 +105,13 @@
|
|
|
85
105
|
--sekyro-gutter: 1.5rem;
|
|
86
106
|
--sekyro-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
|
|
87
107
|
--sekyro-ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
108
|
+
/* UX refresh 2026-11-05 (prototype): cards keep the brand's 16 px whatever the partner's control radius (a "full"
|
|
109
|
+
partner radius makes pill buttons, never pill cards); the tiles and the page motion on the prototype's values. */
|
|
110
|
+
--sekyro-radius-card: var(--sekyro-size-card-radius);
|
|
111
|
+
--sekyro-radius-tile: var(--sekyro-size-icon-tile-radius);
|
|
112
|
+
--sekyro-focus: var(--sekyro-size-focus-ring) solid var(--sekyro-color-ring);
|
|
113
|
+
/* The soft status roles where the flow sets none (<SekyroVerification> sets them from generated/brand-flow.ts). */
|
|
114
|
+
--sekyro-color-info-soft-fallback: color-mix(in srgb, var(--sekyro-color-brand) 9%, var(--sekyro-color-surface));
|
|
88
115
|
}
|
|
89
116
|
/* The flow paints its own surface, so a dark scheme reads on any host page. */
|
|
90
117
|
.sekyro-verification {
|
|
@@ -113,30 +140,42 @@
|
|
|
113
140
|
.sekyro-root [tabindex="-1"]:focus { outline: none; }
|
|
114
141
|
|
|
115
142
|
/* ── Shell: the partner bar, the thin step progress, the footer ───────── */
|
|
116
|
-
|
|
143
|
+
/* The prototype's header: a 40 px tile (logo or initials on brand-soft), the name on title-sm, the caption under it,
|
|
144
|
+
a line-subtle hairline across the whole flow. */
|
|
145
|
+
.sekyro-org {
|
|
146
|
+
display: flex; align-items: center; gap: 0.75rem; padding-block: 0.75rem;
|
|
147
|
+
margin-inline: calc(-1 * var(--sekyro-gutter)); padding-inline: var(--sekyro-gutter);
|
|
148
|
+
border-block-end: 1px solid var(--sekyro-color-line-subtle);
|
|
149
|
+
}
|
|
117
150
|
.sekyro-org__tile {
|
|
118
151
|
display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden;
|
|
119
|
-
inline-size:
|
|
152
|
+
inline-size: var(--sekyro-size-header-tile); block-size: var(--sekyro-size-header-tile); border-radius: var(--sekyro-size-tile-radius);
|
|
120
153
|
background: var(--sekyro-color-brand-soft); color: var(--sekyro-color-brand);
|
|
121
|
-
font: var(--sekyro-type-flow-
|
|
154
|
+
font: var(--sekyro-type-flow-label) var(--sekyro-font); font-weight: 700;
|
|
122
155
|
}
|
|
123
156
|
.sekyro-org__logo { inline-size: 100%; block-size: 100%; padding: 4px; object-fit: contain; box-sizing: border-box; }
|
|
124
157
|
.sekyro-org__text { flex: 1; min-inline-size: 0; }
|
|
125
|
-
|
|
158
|
+
/* plaintext: a Latin org name on an Arabic page is cut at its own end, not its start. */
|
|
159
|
+
.sekyro-org__name { margin: 0; font: var(--sekyro-type-flow-action) var(--sekyro-font); color: var(--sekyro-color-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; text-align: match-parent; }
|
|
126
160
|
/* 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
161
|
.sekyro-org__end { flex-shrink: 0; display: flex; align-items: center; }
|
|
128
162
|
.sekyro-org__close { flex-shrink: 0; margin-inline-end: -4px; }
|
|
129
|
-
|
|
163
|
+
/* The back disc before the tile; its chevron points to the start, so it turns round in Arabic. */
|
|
164
|
+
.sekyro-org__back { flex-shrink: 0; margin-inline-start: -4px; }
|
|
165
|
+
.sekyro-flow[dir="rtl"] .sekyro-org__back .sekyro-glyph { transform: scaleX(-1); }
|
|
166
|
+
/* A phone keeps room for the name: with a back disc the org tile steps aside (the name still says who asks). */
|
|
167
|
+
@media (max-width: 430px) { .sekyro-org__back + .sekyro-org__tile { display: none; } }
|
|
168
|
+
.sekyro-org__sub { margin: 0; font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
130
169
|
.sekyro-progress { margin: 0; }
|
|
131
170
|
.sekyro-progress__bars { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
132
|
-
.sekyro-progress__bar { position: relative; flex: 1; block-size:
|
|
171
|
+
.sekyro-progress__bar { position: relative; flex: 1; block-size: var(--sekyro-size-progress-height); overflow: hidden; border-radius: 9999px; background: var(--sekyro-color-line-subtle); }
|
|
133
172
|
.sekyro-progress__bar::before {
|
|
134
173
|
content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 0;
|
|
135
174
|
border-radius: inherit; background: var(--sekyro-color-brand); transition: inline-size 450ms var(--sekyro-ease);
|
|
136
175
|
}
|
|
137
176
|
.sekyro-progress__bar.is-done::before { inline-size: 100%; }
|
|
138
|
-
/* The current step is under way, not done:
|
|
139
|
-
.sekyro-progress__bar.is-current::before { inline-size:
|
|
177
|
+
/* The current step is under way, not done: the brand at 70 %. */
|
|
178
|
+
.sekyro-progress__bar.is-current::before { inline-size: 100%; background: color-mix(in srgb, var(--sekyro-color-brand) 70%, transparent); }
|
|
140
179
|
.sekyro-footer {
|
|
141
180
|
display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin: 0; padding-block: 1rem 0.5rem;
|
|
142
181
|
font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted);
|
|
@@ -146,16 +185,16 @@
|
|
|
146
185
|
focus ring of every control. */
|
|
147
186
|
a.sekyro-footer { text-decoration: none; border-radius: 0.25rem; }
|
|
148
187
|
a.sekyro-footer:hover { text-decoration: underline; text-underline-offset: 0.2em; }
|
|
149
|
-
a.sekyro-footer:focus-visible { outline:
|
|
188
|
+
a.sekyro-footer:focus-visible { outline: var(--sekyro-focus); outline-offset: 2px; }
|
|
150
189
|
.sekyro-glyph { inline-size: 1.25rem; block-size: 1.25rem; flex-shrink: 0; fill: none; }
|
|
151
190
|
|
|
152
191
|
/* ── Pages: one at a time, rising into place ───────────────────────────── */
|
|
153
192
|
.sekyro-page { display: flex; flex-direction: column; flex: 1; min-block-size: 0; transition: opacity 100ms ease-out; }
|
|
154
193
|
.sekyro-page.is-leaving { opacity: 0; pointer-events: none; }
|
|
155
|
-
.sekyro-page > * { animation: sekyro-rise
|
|
156
|
-
@keyframes sekyro-rise { from { opacity: 0; transform: translateY(
|
|
157
|
-
.sekyro-step { display: flex; flex-direction: column; flex: 1; gap:
|
|
158
|
-
.sekyro-heading { display: flex; flex-direction: column; gap:
|
|
194
|
+
.sekyro-page > * { animation: sekyro-rise var(--sekyro-motion-page) var(--sekyro-ease-out) 40ms both; }
|
|
195
|
+
@keyframes sekyro-rise { from { opacity: 0; transform: translateY(10px); } }
|
|
196
|
+
.sekyro-step { display: flex; flex-direction: column; flex: 1; gap: var(--sekyro-size-step-gap); padding-block-start: 1.5rem; }
|
|
197
|
+
.sekyro-heading { display: flex; flex-direction: column; gap: var(--sekyro-size-heading-gap); }
|
|
159
198
|
.sekyro-root .sekyro-heading > h2,
|
|
160
199
|
.sekyro-root .sekyro-heading > h1 {
|
|
161
200
|
margin: 0; font: var(--sekyro-type-flow-title) var(--sekyro-font-display); letter-spacing: var(--sekyro-tracking-flow-title);
|
|
@@ -168,54 +207,76 @@ a.sekyro-footer:focus-visible { outline: 3px solid var(--sekyro-color-ring); out
|
|
|
168
207
|
.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); }
|
|
169
208
|
.sekyro-root [lang="ar"] :is(h1, h2).sekyro-text-body { font-family: var(--sekyro-font-arabic); line-height: 1.4; }
|
|
170
209
|
|
|
171
|
-
/* The page's actions, pinned in the thumb zone; the consent
|
|
210
|
+
/* The page's actions, pinned in the thumb zone; the consent line under them (decision 1). */
|
|
172
211
|
.sekyro-actions {
|
|
173
212
|
position: sticky; inset-block-end: 0; z-index: 1;
|
|
174
213
|
display: flex; flex-direction: column; gap: 0.75rem; margin-block-start: auto; padding-block: 0.75rem 0.25rem;
|
|
175
214
|
background: var(--sekyro-color-surface);
|
|
176
|
-
|
|
177
215
|
}
|
|
216
|
+
/* The consent line: a caption, centred under the actions (or after a page without any). */
|
|
217
|
+
.sekyro-consent { margin: 0; padding-block: 0.25rem; }
|
|
218
|
+
.sekyro-consent__line { margin: 0; text-align: center; font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted); text-wrap: balance; }
|
|
219
|
+
.sekyro-root .sekyro-link.sekyro-link--inline { align-self: auto; min-block-size: 0; padding-block: 0.375rem; font: inherit; color: var(--sekyro-color-brand); text-decoration: underline; text-underline-offset: 0.2em; }
|
|
178
220
|
.sekyro-actions:empty { display: none; }
|
|
179
221
|
.sekyro-actions__group { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
180
222
|
.sekyro-actions__group > .sekyro-label { font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-fg-muted); margin: 0; }
|
|
181
223
|
|
|
182
|
-
/* Buttons:
|
|
224
|
+
/* Buttons (prototype): 52 px, the partner's control radius (10 px by default), the flow's action type. Primary is the
|
|
225
|
+
brand fill; secondary is outlined; ghost is a quiet brand text action; danger fills with the danger role. A disabled
|
|
226
|
+
primary is the brand at 40 %. */
|
|
183
227
|
.sekyro-root .sekyro-btn {
|
|
184
|
-
min-block-size:
|
|
228
|
+
min-block-size: var(--sekyro-size-button-height); gap: 0.5rem; padding-inline: 1.5rem; border-radius: var(--sekyro-radius);
|
|
185
229
|
font: var(--sekyro-type-flow-action) var(--sekyro-font); letter-spacing: var(--sekyro-tracking-flow-action);
|
|
186
|
-
transition: background-color 150ms, transform 250ms var(--sekyro-spring);
|
|
230
|
+
transition: background-color 150ms, border-color 150ms, transform 250ms var(--sekyro-spring);
|
|
187
231
|
}
|
|
232
|
+
.sekyro-root .sekyro-btn:focus-visible { outline: var(--sekyro-focus); outline-offset: 2px; }
|
|
188
233
|
.sekyro-root .sekyro-btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.97); }
|
|
189
234
|
.sekyro-root .sekyro-btn--primary:disabled {
|
|
190
235
|
opacity: 1;
|
|
191
236
|
background: color-mix(in srgb, var(--sekyro-color-brand) 40%, var(--sekyro-color-surface));
|
|
192
237
|
color: var(--sekyro-color-brand-fg);
|
|
193
238
|
}
|
|
194
|
-
.sekyro-root .sekyro-btn--
|
|
195
|
-
.sekyro-root .sekyro-btn--
|
|
239
|
+
.sekyro-root .sekyro-btn--secondary { border-color: var(--sekyro-color-line); background: var(--sekyro-color-surface); color: var(--sekyro-color-fg); }
|
|
240
|
+
.sekyro-root .sekyro-btn--secondary:hover { background: var(--sekyro-color-sunken); }
|
|
241
|
+
.sekyro-root .sekyro-btn--secondary:disabled { opacity: 1; color: var(--sekyro-color-fg-subtle); }
|
|
242
|
+
.sekyro-root .sekyro-btn--ghost { border-color: transparent; background: transparent; color: var(--sekyro-color-brand); }
|
|
243
|
+
.sekyro-root .sekyro-btn--ghost:hover { background: var(--sekyro-color-brand-soft); }
|
|
196
244
|
.sekyro-root .sekyro-btn--ghost:disabled { opacity: 1; color: var(--sekyro-color-fg-subtle); }
|
|
245
|
+
.sekyro-root .sekyro-btn--danger { border-color: transparent; background: var(--sekyro-color-danger); color: var(--sekyro-color-on-danger, var(--sekyro-color-surface)); }
|
|
246
|
+
.sekyro-root .sekyro-btn--danger:hover { background: color-mix(in srgb, var(--sekyro-color-danger) 90%, var(--sekyro-color-fg)); }
|
|
197
247
|
.sekyro-root .sekyro-btn[aria-busy="true"]::after {
|
|
198
248
|
content: ""; inline-size: 1rem; block-size: 1rem; border-radius: 50%;
|
|
199
249
|
border: 2px solid currentColor; border-inline-end-color: transparent; animation: sekyro-turn 0.9s linear infinite;
|
|
200
250
|
}
|
|
201
251
|
@keyframes sekyro-turn { to { transform: rotate(360deg); } }
|
|
252
|
+
/* A quiet text action (resend, change number, change document): the brand on the label type, a 44 px target. */
|
|
202
253
|
.sekyro-link {
|
|
203
254
|
align-self: flex-start; min-block-size: 44px; padding: 0; border: 0; background: none; cursor: pointer;
|
|
204
255
|
font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-brand);
|
|
205
256
|
}
|
|
257
|
+
.sekyro-link:disabled { cursor: default; color: var(--sekyro-color-fg-muted); }
|
|
206
258
|
.sekyro-links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
|
|
207
259
|
.sekyro-otp-expiry { margin-block-start: 4px; }
|
|
208
260
|
.sekyro-resend { align-self: center; padding-inline: 0.5rem; font: var(--sekyro-type-flow-label) var(--sekyro-font); }
|
|
209
261
|
.sekyro-resend:disabled { color: var(--sekyro-color-fg-muted); cursor: default; }
|
|
210
262
|
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; }
|
|
211
263
|
.sekyro-resend-row { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.5rem; }
|
|
212
|
-
.sekyro-
|
|
264
|
+
.sekyro-resend-row > .sekyro-resend { align-self: center; }
|
|
265
|
+
.sekyro-link:focus-visible, .sekyro-card:focus-visible, .sekyro-row-btn:focus-visible, .sekyro-reference:focus-visible { outline: var(--sekyro-focus); outline-offset: 2px; }
|
|
213
266
|
|
|
214
|
-
/* Notices: soft
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
267
|
+
/* Notices (as on the native SDKs): a soft tint, the tone's -fg text, the tone's icon at the start; no border. On a
|
|
268
|
+
partner page the soft surfaces come from the chosen standard status set (set by the flow). */
|
|
269
|
+
.sekyro-root .sekyro-notice {
|
|
270
|
+
border-color: transparent; border-radius: var(--sekyro-radius-card); padding: 0.875rem 1rem;
|
|
271
|
+
font: var(--sekyro-type-flow-label) var(--sekyro-font);
|
|
272
|
+
}
|
|
273
|
+
.sekyro-root .sekyro-notice:has(> .sekyro-notice__icon) { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
|
|
274
|
+
.sekyro-notice__icon { display: inline-grid; flex-shrink: 0; padding-block-start: 1px; }
|
|
275
|
+
.sekyro-notice__body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; min-inline-size: 0; }
|
|
276
|
+
.sekyro-root .sekyro-notice--info { background: var(--sekyro-color-info-soft, var(--sekyro-color-info-soft-fallback)); color: var(--sekyro-color-info-fg, var(--sekyro-color-fg)); }
|
|
277
|
+
.sekyro-root .sekyro-notice--warning { background: var(--sekyro-color-warning-soft, color-mix(in srgb, var(--sekyro-color-warning) 10%, var(--sekyro-color-surface))); color: var(--sekyro-color-warning-fg, var(--sekyro-color-fg)); }
|
|
278
|
+
.sekyro-root .sekyro-notice--danger { background: var(--sekyro-color-danger-soft, color-mix(in srgb, var(--sekyro-color-danger) 8%, var(--sekyro-color-surface))); color: var(--sekyro-color-danger-fg, var(--sekyro-color-fg)); }
|
|
279
|
+
.sekyro-root .sekyro-notice .sekyro-btn { align-self: flex-start; min-block-size: 44px; }
|
|
219
280
|
|
|
220
281
|
/* ── Fields: white with a hairline; a 2px ring on focus (red with an error) ── */
|
|
221
282
|
.sekyro-root .sekyro-label { font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
@@ -224,7 +285,8 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
224
285
|
.sekyro-root .sekyro-input {
|
|
225
286
|
min-block-size: 52px; padding-inline: 1rem;
|
|
226
287
|
border-color: var(--sekyro-color-line); border-radius: var(--sekyro-radius); background: var(--sekyro-color-surface);
|
|
227
|
-
|
|
288
|
+
/* The input role (17 px): iOS Safari zooms into any focused field under 16 px (the body role is 15 px). */
|
|
289
|
+
font: var(--sekyro-type-flow-input) var(--sekyro-font);
|
|
228
290
|
transition: border-color 150ms, box-shadow 150ms;
|
|
229
291
|
}
|
|
230
292
|
.sekyro-root .sekyro-input::placeholder, .sekyro-phone__input::placeholder { color: var(--sekyro-color-fg-subtle); }
|
|
@@ -249,7 +311,7 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
249
311
|
.sekyro-phone__country {
|
|
250
312
|
position: absolute; inset: 0; z-index: 1; inline-size: 100%; block-size: 100%; margin: 0; padding: 0;
|
|
251
313
|
border: 0; opacity: 0; appearance: none; cursor: pointer;
|
|
252
|
-
font: var(--sekyro-type-flow-
|
|
314
|
+
font: var(--sekyro-type-flow-input) var(--sekyro-font);
|
|
253
315
|
}
|
|
254
316
|
/* The chevron is drawn here so the JS bundle carries no extra icon; the tighter segment keeps nine digits in view at 320 px. */
|
|
255
317
|
.sekyro-phone:has(.sekyro-phone__country) { padding-inline-end: 0.5rem; }
|
|
@@ -278,8 +340,9 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
278
340
|
80% { transform: translateX(calc(-4px * var(--sekyro-inline-sign))); }
|
|
279
341
|
}
|
|
280
342
|
.sekyro-otp-box {
|
|
281
|
-
position: relative; display: grid; place-items: center; block-size:
|
|
282
|
-
|
|
343
|
+
position: relative; display: grid; place-items: center; block-size: var(--sekyro-size-otp-box);
|
|
344
|
+
/* The control radius, capped: a partner's pill radius would turn the boxes into circles. */
|
|
345
|
+
border: 1px solid var(--sekyro-color-line); border-radius: min(var(--sekyro-radius), var(--sekyro-size-card-radius)); background: var(--sekyro-color-surface);
|
|
283
346
|
font: var(--sekyro-type-flow-digit) var(--sekyro-font-display); font-variant-numeric: tabular-nums; color: var(--sekyro-color-fg);
|
|
284
347
|
transition: border-color 150ms, box-shadow 150ms;
|
|
285
348
|
}
|
|
@@ -302,26 +365,33 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
302
365
|
|
|
303
366
|
/* ── Choices: quiet cards with a radio that fills once chosen; tap rows ── */
|
|
304
367
|
.sekyro-choices { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
368
|
+
/* Choice cards (prototype): a 40 px icon tile (line-subtle, brand-soft once chosen), the label and caption, the radio;
|
|
369
|
+
the card radius is the brand's 16 px (never the partner's control radius); chosen = a brand border. */
|
|
305
370
|
.sekyro-card {
|
|
306
|
-
display: flex; align-items: center; gap:
|
|
307
|
-
border: 1px solid var(--sekyro-color-line); border-radius: var(--sekyro-radius); background: var(--sekyro-color-surface);
|
|
371
|
+
display: flex; align-items: center; gap: 0.875rem; inline-size: 100%; min-block-size: var(--sekyro-size-choice-min-height); padding-block: 0.75rem; padding-inline: 1rem;
|
|
372
|
+
border: 1px solid var(--sekyro-color-line); border-radius: var(--sekyro-radius-card); background: var(--sekyro-color-surface);
|
|
308
373
|
color: var(--sekyro-color-fg); font: inherit; text-align: start; cursor: pointer;
|
|
309
374
|
transition: border-color 150ms, background-color 150ms, box-shadow 150ms, transform 250ms var(--sekyro-spring);
|
|
310
375
|
}
|
|
311
376
|
.sekyro-card:active { transform: scale(0.98); }
|
|
312
377
|
.sekyro-card:disabled { cursor: default; }
|
|
313
|
-
.sekyro-
|
|
378
|
+
.sekyro-card__tile {
|
|
379
|
+
display: inline-grid; place-items: center; flex-shrink: 0; inline-size: var(--sekyro-size-choice-tile); block-size: var(--sekyro-size-choice-tile);
|
|
380
|
+
border-radius: var(--sekyro-size-tile-radius); background: var(--sekyro-color-line-subtle); color: var(--sekyro-color-fg-muted); transition: background-color 150ms, color 150ms;
|
|
381
|
+
}
|
|
382
|
+
.sekyro-card__tile > .sekyro-glyph { inline-size: 22px; block-size: 22px; }
|
|
383
|
+
.sekyro-card:hover:not(:disabled) { border-color: var(--sekyro-color-line-strong); }
|
|
314
384
|
.sekyro-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
|
|
315
385
|
.sekyro-card__title { font: var(--sekyro-type-flow-action) var(--sekyro-font); }
|
|
316
386
|
.sekyro-card__sub { font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
317
387
|
.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; }
|
|
318
388
|
.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; }
|
|
319
|
-
.sekyro-card[aria-pressed="true"] { border-color: var(--sekyro-color-brand); box-shadow: inset 0 0 0
|
|
320
|
-
.sekyro-card[aria-pressed="true"]
|
|
389
|
+
.sekyro-card[aria-pressed="true"] { border-color: var(--sekyro-color-line-brand, var(--sekyro-color-brand)); box-shadow: inset 0 0 0 1px var(--sekyro-color-line-brand, var(--sekyro-color-brand)); }
|
|
390
|
+
.sekyro-card[aria-pressed="true"] .sekyro-card__tile { background: var(--sekyro-color-brand-soft); color: var(--sekyro-color-brand); }
|
|
321
391
|
.sekyro-card[aria-pressed="true"] .sekyro-radio { border-color: var(--sekyro-color-brand); }
|
|
322
392
|
.sekyro-card[aria-pressed="true"] .sekyro-radio::after { transform: scale(1); opacity: 1; }
|
|
323
393
|
@media (prefers-reduced-motion: reduce) { .sekyro-card, .sekyro-radio::after { transition: none; } }
|
|
324
|
-
.sekyro-rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--sekyro-color-line-subtle); border-radius: var(--sekyro-radius); overflow: hidden; }
|
|
394
|
+
.sekyro-rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--sekyro-color-line-subtle); border-radius: var(--sekyro-radius-card); overflow: hidden; }
|
|
325
395
|
.sekyro-rows > li + li { border-block-start: 1px solid var(--sekyro-color-line-subtle); }
|
|
326
396
|
.sekyro-row-btn {
|
|
327
397
|
display: flex; align-items: center; gap: 0.75rem; inline-size: 100%; min-block-size: 52px; padding-inline: 1rem;
|
|
@@ -368,28 +438,74 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
368
438
|
.sekyro-mark__arc { stroke-dasharray: 0.22 0.78; animation: sekyro-arc 2.4s linear infinite; }
|
|
369
439
|
@keyframes sekyro-arc { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
|
|
370
440
|
|
|
371
|
-
/* ── The outcome:
|
|
441
|
+
/* ── The outcome (prototype): the approved disc in its ring, or a soft status tile; title-lg; the reference ── */
|
|
372
442
|
.sekyro-root .sekyro-result { display: flex; flex-direction: column; flex: 1; padding-block-start: 2rem; }
|
|
373
|
-
.sekyro-result__body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.
|
|
374
|
-
.sekyro-root .sekyro-result .sekyro-heading
|
|
375
|
-
|
|
376
|
-
.sekyro-outcome { inline-size:
|
|
377
|
-
.sekyro-
|
|
378
|
-
.sekyro-
|
|
379
|
-
.sekyro-outcome--rejected { --sekyro-tone: var(--sekyro-color-danger); }
|
|
380
|
-
.sekyro-outcome__ring {
|
|
381
|
-
fill: none; stroke: color-mix(in srgb, var(--sekyro-tone) 50%, transparent); stroke-width: 2; stroke-linecap: round;
|
|
382
|
-
stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; transform-box: fill-box;
|
|
383
|
-
animation: sekyro-draw 450ms ease-out forwards;
|
|
384
|
-
}
|
|
385
|
-
.sekyro-outcome--approved .sekyro-outcome__ring { stroke: var(--sekyro-color-stage-accent); }
|
|
386
|
-
.sekyro-outcome__disc { fill: var(--sekyro-tone); transform-origin: center; transform-box: fill-box; animation: sekyro-fill 380ms var(--sekyro-spring) 380ms both; }
|
|
443
|
+
.sekyro-result__body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; flex: 1; padding-block-end: 2rem; text-align: center; }
|
|
444
|
+
.sekyro-root .sekyro-result .sekyro-heading { align-items: center; }
|
|
445
|
+
/* The approved disc (64 px) in its soft ring (8 px each side). */
|
|
446
|
+
.sekyro-outcome { inline-size: calc(var(--sekyro-size-result-disc) + 2 * var(--sekyro-size-result-ring)); block-size: calc(var(--sekyro-size-result-disc) + 2 * var(--sekyro-size-result-ring)); }
|
|
447
|
+
.sekyro-outcome__ring { fill: var(--sekyro-color-success-soft, color-mix(in srgb, var(--sekyro-color-success) 14%, var(--sekyro-color-surface))); transform-origin: center; transform-box: fill-box; animation: sekyro-fill 380ms var(--sekyro-spring) both; }
|
|
448
|
+
.sekyro-outcome__disc { fill: var(--sekyro-color-success); transform-origin: center; transform-box: fill-box; animation: sekyro-fill 380ms var(--sekyro-spring) 120ms both; }
|
|
387
449
|
@keyframes sekyro-fill { from { opacity: 0; transform: scale(0.86); } }
|
|
388
450
|
.sekyro-outcome__glyph {
|
|
389
|
-
fill: none; stroke: var(--sekyro-color-
|
|
390
|
-
stroke-dasharray: 1; stroke-dashoffset: 1; animation: sekyro-draw 320ms ease-out
|
|
451
|
+
fill: none; stroke: var(--sekyro-color-on-success, var(--sekyro-color-surface)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
|
|
452
|
+
stroke-dasharray: 1; stroke-dashoffset: 1; animation: sekyro-draw 320ms ease-out 380ms forwards;
|
|
391
453
|
}
|
|
392
454
|
@keyframes sekyro-draw { to { stroke-dashoffset: 0; } }
|
|
455
|
+
.sekyro-outcome-tile { animation: sekyro-fill 380ms var(--sekyro-spring) both; }
|
|
456
|
+
|
|
457
|
+
/* ── The status block (prototype): a soft 56 px tile and its Solar icon, the title, the lines; centred ───── */
|
|
458
|
+
.sekyro-tile {
|
|
459
|
+
position: relative; display: inline-grid; place-items: center; flex-shrink: 0;
|
|
460
|
+
inline-size: var(--sekyro-size-icon-tile); block-size: var(--sekyro-size-icon-tile); border-radius: var(--sekyro-radius-tile);
|
|
461
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sekyro-color-fg) 5%, transparent);
|
|
462
|
+
}
|
|
463
|
+
.sekyro-tile > .sekyro-glyph { inline-size: 32px; block-size: 32px; }
|
|
464
|
+
.sekyro-tile--neutral { background: var(--sekyro-color-line-subtle); color: var(--sekyro-color-fg-muted); }
|
|
465
|
+
.sekyro-tile--brand { background: var(--sekyro-color-brand-soft); color: var(--sekyro-color-brand); }
|
|
466
|
+
.sekyro-tile--info { background: var(--sekyro-color-info-soft, var(--sekyro-color-info-soft-fallback)); color: var(--sekyro-color-info-fg, var(--sekyro-color-brand)); }
|
|
467
|
+
.sekyro-tile--warning { background: var(--sekyro-color-warning-soft, color-mix(in srgb, var(--sekyro-color-warning) 12%, var(--sekyro-color-surface))); color: var(--sekyro-color-warning-fg, var(--sekyro-color-warning)); }
|
|
468
|
+
.sekyro-tile--success { background: var(--sekyro-color-success-soft, color-mix(in srgb, var(--sekyro-color-success) 14%, var(--sekyro-color-surface))); color: var(--sekyro-color-success-fg, var(--sekyro-color-success)); }
|
|
469
|
+
/* Still working: the tile breathes (a soft halo of its own colour grows and fades). */
|
|
470
|
+
.sekyro-tile.is-busy { animation: sekyro-breathe 1.6s ease-in-out infinite; }
|
|
471
|
+
@keyframes sekyro-breathe {
|
|
472
|
+
0%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sekyro-color-fg) 5%, transparent), 0 0 0 0 var(--sekyro-color-brand-soft); }
|
|
473
|
+
50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sekyro-color-fg) 5%, transparent), 0 0 0 10px var(--sekyro-color-brand-soft); }
|
|
474
|
+
}
|
|
475
|
+
.sekyro-status__body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; flex: 1; padding-block: 1rem 2rem; text-align: center; }
|
|
476
|
+
.sekyro-root .sekyro-status__text { align-items: center; max-inline-size: 26rem; }
|
|
477
|
+
.sekyro-status__text .sekyro-notice { text-align: start; align-self: stretch; }
|
|
478
|
+
|
|
479
|
+
/* The loading page: quiet bars where the page will be. */
|
|
480
|
+
.sekyro-skeleton { display: flex; flex-direction: column; gap: 1rem; padding-block: 1.5rem; }
|
|
481
|
+
.sekyro-skeleton__bar { display: block; block-size: 1.25rem; inline-size: 100%; border-radius: 9999px; background: var(--sekyro-color-sunken); animation: sekyro-pulse 1.4s ease-in-out infinite; }
|
|
482
|
+
.sekyro-skeleton__bar.is-title { block-size: 2rem; inline-size: 80%; }
|
|
483
|
+
.sekyro-skeleton__bar.is-short { inline-size: 60%; }
|
|
484
|
+
.sekyro-skeleton__bar.is-block { block-size: 10rem; margin-block-start: 1.5rem; border-radius: var(--sekyro-radius-card); }
|
|
485
|
+
@keyframes sekyro-pulse { 50% { opacity: 0.55; } }
|
|
486
|
+
|
|
487
|
+
/* ── The modal (terms, leave): a bottom sheet on a phone, centred from 40rem ── */
|
|
488
|
+
.sekyro-dialog {
|
|
489
|
+
box-sizing: border-box; inline-size: 100%; max-inline-size: 100%; max-block-size: 88dvh; margin: auto auto 0; padding: 0; border: 0;
|
|
490
|
+
border-start-start-radius: 20px; border-start-end-radius: 20px; background: var(--sekyro-color-surface); color: var(--sekyro-color-fg);
|
|
491
|
+
font: var(--sekyro-type-flow-body) var(--sekyro-font); overflow: hidden;
|
|
492
|
+
}
|
|
493
|
+
.sekyro-dialog[open] { display: flex; animation: sekyro-sheet var(--sekyro-motion-page) var(--sekyro-ease-out) both; }
|
|
494
|
+
.sekyro-dialog::backdrop { background: color-mix(in srgb, var(--sekyro-color-stage) 55%, transparent); }
|
|
495
|
+
@keyframes sekyro-sheet { from { transform: translateY(24px); opacity: 0; } }
|
|
496
|
+
@media (min-width: 40rem) {
|
|
497
|
+
.sekyro-dialog { max-inline-size: 30rem; margin: auto; border-radius: 20px; }
|
|
498
|
+
}
|
|
499
|
+
.sekyro-dialog__panel { display: flex; flex-direction: column; inline-size: 100%; max-block-size: 88dvh; padding-block-end: max(1rem, env(safe-area-inset-bottom)); }
|
|
500
|
+
.sekyro-dialog__head { display: flex; align-items: center; gap: 0.75rem; padding-block: 1rem 0.5rem; padding-inline: 1.5rem 1rem; }
|
|
501
|
+
.sekyro-dialog__title { flex: 1; margin: 0; font: var(--sekyro-type-flow-title) var(--sekyro-font-display); letter-spacing: var(--sekyro-tracking-flow-title); text-wrap: balance; }
|
|
502
|
+
.sekyro-root [lang="ar"] .sekyro-dialog__title { font-family: var(--sekyro-font-arabic); line-height: 1.4; }
|
|
503
|
+
.sekyro-dialog__close { flex-shrink: 0; }
|
|
504
|
+
.sekyro-dialog__body { overflow-y: auto; padding-block: 0.25rem 1rem; padding-inline: 1.5rem; color: var(--sekyro-color-fg-muted); }
|
|
505
|
+
.sekyro-dialog__body p { margin: 0; }
|
|
506
|
+
.sekyro-dialog__actions { display: flex; flex-direction: column; gap: 0.75rem; padding-block-start: 0.5rem; padding-inline: 1.5rem; }
|
|
507
|
+
.sekyro-dialog .sekyro-disc:focus-visible { outline: var(--sekyro-focus); outline-offset: 2px; }
|
|
508
|
+
|
|
393
509
|
.sekyro-reference {
|
|
394
510
|
display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 44px; padding-inline: 0.75rem; border: 0; border-radius: 9999px; background: none;
|
|
395
511
|
font: var(--sekyro-type-flow-caption) var(--sekyro-font); font-variant-numeric: tabular-nums; color: var(--sekyro-color-fg-muted); cursor: pointer;
|
|
@@ -509,6 +625,22 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
509
625
|
background: color-mix(in srgb, var(--sekyro-color-stage) 88%, transparent); color: var(--sekyro-color-on-stage);
|
|
510
626
|
}
|
|
511
627
|
.sekyro-lm-error > p { margin: 0; }
|
|
628
|
+
/* Design 2026-11-04 §5: "Upload a photo instead" over the camera, under the tray (a glass pill). */
|
|
629
|
+
.sekyro-lm-upload {
|
|
630
|
+
align-self: center; min-block-size: 44px; padding-block: 0.5rem; padding-inline: 1.25rem; border: 0; border-radius: 999px; cursor: pointer;
|
|
631
|
+
font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-on-stage);
|
|
632
|
+
background: color-mix(in srgb, var(--sekyro-color-on-stage) 18%, transparent);
|
|
633
|
+
}
|
|
634
|
+
.sekyro-lm-upload:focus-visible { outline: 3px solid var(--sekyro-color-ring); outline-offset: 2px; }
|
|
635
|
+
/* Design 2026-11-04 §6.4: the original and the adjusted portrait side by side (the order follows the writing direction). */
|
|
636
|
+
.sekyro-portrait-pair { display: flex; flex-direction: row; gap: 0.75rem; }
|
|
637
|
+
.sekyro-portrait-pair__item { flex: 1 1 0; min-inline-size: 0; margin: 0; display: flex; flex-direction: column; gap: 0.375rem; }
|
|
638
|
+
.sekyro-portrait-pair__item > img {
|
|
639
|
+
inline-size: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: var(--sekyro-radius);
|
|
640
|
+
border: 1px solid var(--sekyro-color-line); background: var(--sekyro-color-surface);
|
|
641
|
+
}
|
|
642
|
+
.sekyro-portrait-pair__item > figcaption { text-align: center; }
|
|
643
|
+
.sekyro-portrait-fixes { margin: 0; padding-inline-start: 1.25rem; }
|
|
512
644
|
|
|
513
645
|
/* ── The face camera (face-camera.tsx): the oval cut from the ink, its ring of ticks and the running light ── */
|
|
514
646
|
.sekyro-fc-video { transform: scaleX(-1); }
|
|
@@ -567,8 +699,9 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
567
699
|
.sekyro-lm-read, .sekyro-lm-flip-card { animation: none; }
|
|
568
700
|
.sekyro-lm-flip-card { transform: rotateY(180deg); }
|
|
569
701
|
.sekyro-lm-read.is-repeating { transform: translateX(calc(var(--sekyro-guide-w) * 0.5 * var(--sekyro-inline-sign))); }
|
|
570
|
-
.sekyro-
|
|
571
|
-
.sekyro-outcome__disc { animation: none; }
|
|
702
|
+
.sekyro-outcome__glyph { animation: none; stroke-dashoffset: 0; }
|
|
703
|
+
.sekyro-outcome__ring, .sekyro-outcome__disc, .sekyro-outcome-tile, .sekyro-dialog[open], .sekyro-skeleton__bar, .sekyro-handoff__pulse { animation: none; }
|
|
704
|
+
.sekyro-tile.is-busy { animation: none; }
|
|
572
705
|
.sekyro-lm-brackets > path, .sekyro-progress__bar::before, .sekyro-root .sekyro-btn, .sekyro-card { transition: none; }
|
|
573
706
|
.sekyro-root .sekyro-btn:active, .sekyro-card:active { transform: none; }
|
|
574
707
|
.sekyro-lm-trace { animation: none; stroke-dashoffset: 0; }
|
|
@@ -583,17 +716,24 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
583
716
|
.sekyro-lm-mrz.is-valid { border-color: var(--sekyro-color-success); animation: none; }
|
|
584
717
|
@keyframes sekyro-lm-mrz-pulse { 50% { opacity: 0.55; } }
|
|
585
718
|
@media (prefers-reduced-motion: reduce) { .sekyro-lm-mrz { animation: none; } }
|
|
586
|
-
/*
|
|
587
|
-
.sekyro-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
.sekyro-
|
|
594
|
-
.sekyro-
|
|
719
|
+
/* The choice screens on the step's rhythm (the 0.1 drop-in keeps its own). */
|
|
720
|
+
.sekyro-flow .sekyro-choice { flex: 1; gap: var(--sekyro-size-step-gap); padding-block-start: 1.5rem; }
|
|
721
|
+
/* Flow model 2026-10-23: the identity summary, the handoff QR. */
|
|
722
|
+
.sekyro-summary__source {
|
|
723
|
+
display: inline-flex; align-self: flex-start; margin: 0; padding-block: 0.25rem; padding-inline: 0.625rem; border-radius: 9999px;
|
|
724
|
+
background: var(--sekyro-color-sunken); font: var(--sekyro-type-flow-caption) var(--sekyro-font); color: var(--sekyro-color-fg-muted);
|
|
725
|
+
}
|
|
726
|
+
.sekyro-handoff__waiting { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0; text-align: center; font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
727
|
+
.sekyro-handoff__pulse { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--sekyro-color-brand); animation: sekyro-pulse 1.4s ease-in-out infinite; }.sekyro-summary { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--sekyro-color-line-subtle); border-radius: var(--sekyro-radius-card); }
|
|
728
|
+
.sekyro-summary__portrait { inline-size: 5.5rem; block-size: 7rem; object-fit: cover; border-radius: 10px; }
|
|
729
|
+
.sekyro-summary__list { display: grid; gap: 0.75rem; margin: 0; flex: 1 1 12rem; }
|
|
595
730
|
.sekyro-summary__row { display: grid; gap: 0.125rem; }
|
|
596
|
-
.sekyro-summary__row
|
|
597
|
-
.sekyro-
|
|
731
|
+
.sekyro-summary__row dt { font: var(--sekyro-type-flow-caption) var(--sekyro-font); }
|
|
732
|
+
.sekyro-summary__row dd { margin: 0; color: var(--sekyro-color-fg); font: var(--sekyro-type-flow-action) var(--sekyro-font); font-variant-numeric: tabular-nums; }
|
|
733
|
+
.sekyro-qr { inline-size: 12rem; block-size: 12rem; align-self: center; padding: 0.75rem; border: 1px solid var(--sekyro-color-line-subtle); border-radius: var(--sekyro-radius-card); }
|
|
598
734
|
.sekyro-qr__bg { fill: var(--sekyro-color-surface); }
|
|
599
735
|
.sekyro-qr__fg { fill: var(--sekyro-color-fg); }
|
|
736
|
+
a.sekyro-btn { text-decoration: none; }
|
|
737
|
+
/* WhatsApp and SMS as equals: one row, two buttons of the same kind and width (Salem 2026-11-05). */
|
|
738
|
+
.sekyro-channel-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
|
|
739
|
+
.sekyro-channel-row > .sekyro-btn { padding-inline: 0.75rem; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/react",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.17",
|
|
4
4
|
"description": "Sekyro AI React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (ar/fr/en, RTL-safe, WCAG AAA defaults)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"strings:steps": "node scripts/gen-step-strings.mjs"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@sekyro/web": "^0.1.0-rc.
|
|
77
|
+
"@sekyro/web": "^0.1.0-rc.20 || ^0.2.0-rc.0",
|
|
78
78
|
"react": ">=18.2",
|
|
79
79
|
"react-dom": ">=18.2"
|
|
80
80
|
},
|
package/sbom.cdx.json
CHANGED
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"type": "application",
|
|
98
98
|
"name": "react",
|
|
99
99
|
"group": "@sekyro",
|
|
100
|
-
"version": "0.1.0-rc.
|
|
101
|
-
"bom-ref": "@sekyro/react@0.1.0-rc.
|
|
100
|
+
"version": "0.1.0-rc.17",
|
|
101
|
+
"bom-ref": "@sekyro/react@0.1.0-rc.17",
|
|
102
102
|
"description": "Sekyro AI React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (ar/fr/en, RTL-safe, WCAG AAA defaults)",
|
|
103
103
|
"licenses": [
|
|
104
104
|
{
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"purl": "pkg:npm/%40sekyro/react@0.1.0-rc.
|
|
111
|
+
"purl": "pkg:npm/%40sekyro/react@0.1.0-rc.17?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-react",
|
|
112
112
|
"externalReferences": [
|
|
113
113
|
{
|
|
114
114
|
"url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"components": [],
|
|
148
148
|
"dependencies": [
|
|
149
149
|
{
|
|
150
|
-
"ref": "@sekyro/react@0.1.0-rc.
|
|
150
|
+
"ref": "@sekyro/react@0.1.0-rc.17"
|
|
151
151
|
}
|
|
152
152
|
]
|
|
153
153
|
}
|
package/dist/chunk-6EP4O2CE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{u as c}from"./chunk-IJE64ZEN.js";import{a as n}from"./chunk-2KED7D2Q.js";import{createContext as d,useContext as m,useEffect as u,useRef as f,useState as x}from"react";import{jsx as i,jsxs as N}from"react/jsx-runtime";function h({id:e,title:t,lead:o}){let s=c();return N("div",{className:"sekyro-heading",children:[i("h2",{id:e,ref:s,tabIndex:-1,className:"sekyro-text-body",children:t}),o!==void 0?i("p",{className:"sekyro-text-muted",children:o}):null]})}n(h,"StepHeading");function R({children:e}){return i("div",{className:"sekyro-actions",children:e})}n(R,"StepActions");var w=d(void 0),v=d(()=>{});function C(e){let t=m(v);u(()=>(t(e),()=>t(!1)),[e,t])}n(C,"useImmersive");var g=100;function y({swapKey:e,className:t,children:o}){let[s,l]=x({key:e,node:o}),a=f(o);a.current=o;let r=s.key!==e;return u(()=>{if(!r)return;let p=setTimeout(()=>l({key:e,node:a.current}),g);return()=>clearTimeout(p)},[r,e]),i("div",{className:`${t}${r?" is-leaving":""}`,"aria-hidden":r||void 0,children:r?s.node:o},s.key)}n(y,"Swap");var b=n(({pageKey:e,children:t})=>i(y,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap");export{h as a,R as b,w as c,v as d,C as e,y as f,b as g};
|
package/dist/chunk-AIBCIUYT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{o as n,t as r}from"./chunk-IJE64ZEN.js";import{a as o}from"./chunk-2KED7D2Q.js";import{jsx as i}from"react/jsx-runtime";function a({tone:t,children:e}){return i(r,{tone:t,children:e})}o(a,"StepNotice");function f(t,e,p){return p?t.t("common.noAttemptsLeft"):n(t.strings,t.locale,e)}o(f,"attemptsLine");export{a,f as b};
|
package/dist/chunk-EZ5TVL6P.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as u}from"./chunk-2KED7D2Q.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as c,useRef as b,useState as p}from"react";import{jsx as r,jsxs as N}from"react/jsx-runtime";function I({id:l,value:e,onChange:m,length:n=6,describedBy:f,invalid:o}){let[g,i]=p(!1),[a,k]=p(0);c(()=>{o&&k(t=>t+1)},[o]);let d=b(null);c(()=>{let t=setTimeout(()=>d.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(t)},[]);let y=e.length<n?e.length:-1;return N("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[r("div",{className:`sekyro-otp-row${a>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:n},(t,s)=>r("span",{className:`sekyro-otp-box${s<e.length?" is-filled":""}${g&&s===y?" is-current":""}${o?" is-invalid":""}`,children:e[s]!==void 0?r("span",{className:"sekyro-otp-digit",children:e[s]},e[s]):null},s))},a),r("input",{ref:d,id:l,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":f,"aria-invalid":o||void 0,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:t=>m(h(t.target.value).replace(/\D/g,"").slice(0,n))})]})}u(I,"CodeInput");export{I as a};
|
package/dist/chunk-H2KIOYQU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var e={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق عبر هويتك الرقمية الوطنية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل الرمز من تطبيق الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز. اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك. اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات. تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا. أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"};var n={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your national eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter the code from your eID app","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired. Get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect. Check it and enter it again","reasons.eid_code_expired":"Your code has expired. Get a new code to continue","reasons.eid_locked":"Too many incorrect codes. eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now. Try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes. Enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"};var d={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID national","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Saisissez votre code {provider}","eid.codeTitleGeneric":"Saisissez le code de votre application eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré. Demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré. Demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects. La connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment. Réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"};export{e as a,n as b,d as c};
|