@poly-x/react 0.1.0-alpha.6 → 0.1.0-alpha.8
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/dist/index.cjs +493 -2
- package/dist/index.d.cts +102 -1
- package/dist/index.d.mts +102 -1
- package/dist/index.mjs +495 -6
- package/dist/styles.css +78 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -339,6 +339,84 @@
|
|
|
339
339
|
opacity: 0.85;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
/* "Forgot password?" link under the sign-in password field. */
|
|
343
|
+
.polyx-signin__forgot {
|
|
344
|
+
display: flex;
|
|
345
|
+
justify-content: flex-end;
|
|
346
|
+
margin-top: -0.5rem;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* --- Recovery confirmation states (ForgotPassword / ResetPassword) ------- */
|
|
350
|
+
|
|
351
|
+
.polyx-signin__header--center {
|
|
352
|
+
align-items: center;
|
|
353
|
+
text-align: center;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.polyx-signin__status-icon {
|
|
357
|
+
display: inline-flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
justify-content: center;
|
|
360
|
+
width: 3rem;
|
|
361
|
+
height: 3rem;
|
|
362
|
+
margin-bottom: 0.25rem;
|
|
363
|
+
border-radius: 999px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.polyx-signin__status-icon svg {
|
|
367
|
+
width: 1.5rem;
|
|
368
|
+
height: 1.5rem;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.polyx-signin__status-icon--brand {
|
|
372
|
+
color: var(--polyx-brand);
|
|
373
|
+
background: color-mix(in srgb, var(--polyx-brand) 12%, transparent);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.polyx-signin__status-icon--danger {
|
|
377
|
+
color: var(--polyx-danger);
|
|
378
|
+
background: var(--polyx-danger-bg);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/* The entered email, emphasized inside the confirmation copy. */
|
|
382
|
+
.polyx-signin__email {
|
|
383
|
+
color: var(--polyx-fg);
|
|
384
|
+
font-weight: 600;
|
|
385
|
+
word-break: break-all;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* Secondary text-link actions under a confirmation screen — quieter than the CTA. */
|
|
389
|
+
.polyx-signin__actions {
|
|
390
|
+
display: flex;
|
|
391
|
+
flex-direction: column;
|
|
392
|
+
align-items: center;
|
|
393
|
+
gap: 0.75rem;
|
|
394
|
+
margin-top: 1.5rem;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.polyx-signin__link {
|
|
398
|
+
padding: 0;
|
|
399
|
+
font: inherit;
|
|
400
|
+
font-size: 0.875rem;
|
|
401
|
+
font-weight: 500;
|
|
402
|
+
color: var(--polyx-brand);
|
|
403
|
+
background: none;
|
|
404
|
+
border: none;
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
text-decoration: none;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.polyx-signin__link:hover {
|
|
410
|
+
color: var(--polyx-brand-hover);
|
|
411
|
+
text-decoration: underline;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.polyx-signin__link:focus-visible {
|
|
415
|
+
outline: none;
|
|
416
|
+
border-radius: 2px;
|
|
417
|
+
box-shadow: 0 0 0 3px var(--polyx-ring);
|
|
418
|
+
}
|
|
419
|
+
|
|
342
420
|
/* --- Workspace picker ---------------------------------------------------- */
|
|
343
421
|
|
|
344
422
|
.polyx-signin__tenants {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poly-x/react",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.8",
|
|
4
4
|
"description": "PolyX SDK for React SPAs - provider, hooks, drop-in auth UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"module": "./dist/index.mjs",
|
|
28
28
|
"types": "./dist/index.d.cts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@poly-x/core": "0.1.0-alpha.
|
|
30
|
+
"@poly-x/core": "0.1.0-alpha.8"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=18",
|