@getauthui/core 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/{authui-user-button--QfXbaC8.js → authui-user-button-BSOjgJ6h.js} +43 -12
- package/dist/authui.cdn.js +43 -12
- package/dist/authui.cdn.mjs +43 -12
- package/dist/authui.js +2 -2
- package/dist/components/authui-modal.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/styles/base.d.ts.map +1 -1
- package/dist/styles/tokens.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
visibility: hidden;
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
|
-
<script type="module" src="https://unpkg.com/@getauthui/core@0.1.
|
|
18
|
+
<script type="module" src="https://unpkg.com/@getauthui/core@0.1.13"></script>
|
|
19
19
|
|
|
20
20
|
<authui-config
|
|
21
21
|
endpoint="https://cloud.appwrite.io/v1"
|
|
@@ -65,7 +65,7 @@ CDN:
|
|
|
65
65
|
visibility: hidden;
|
|
66
66
|
}
|
|
67
67
|
</style>
|
|
68
|
-
<script type="module" src="https://unpkg.com/@getauthui/core@0.1.
|
|
68
|
+
<script type="module" src="https://unpkg.com/@getauthui/core@0.1.13"></script>
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
The `<style>` keeps `<authui-show>` and the buttons hidden until the module defines them. See [`<authui-show>`](https://getauthui.appwrite.network/docs/components/show).
|
|
@@ -73,7 +73,7 @@ The `<style>` keeps `<authui-show>` and the buttons hidden until the module defi
|
|
|
73
73
|
The default CDN URL is an ESM module: it defines the elements but does **not** set `window.AuthUI`. For `AuthUI.init` / `AuthUI.on` from a classic script, use the IIFE build:
|
|
74
74
|
|
|
75
75
|
```html
|
|
76
|
-
<script src="https://unpkg.com/@getauthui/core@0.1.
|
|
76
|
+
<script src="https://unpkg.com/@getauthui/core@0.1.13/dist/authui.cdn.js"></script>
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
npm:
|
|
@@ -1508,9 +1508,10 @@ const vt = new Rt(), bt = {
|
|
|
1508
1508
|
--authui-accent-foreground: oklch(0.985 0 0);
|
|
1509
1509
|
--authui-destructive: oklch(0.396 0.141 25.723);
|
|
1510
1510
|
--authui-destructive-foreground: oklch(0.637 0.237 25.331);
|
|
1511
|
-
|
|
1512
|
-
--authui-
|
|
1513
|
-
--authui-
|
|
1511
|
+
/* Raised vs card (#1d1d21) for WCAG 1.4.11 (~3:1) UI contrast */
|
|
1512
|
+
--authui-border: #71717a;
|
|
1513
|
+
--authui-input: #71717a;
|
|
1514
|
+
--authui-ring: #a1a1aa;
|
|
1514
1515
|
--authui-success-foreground: #34d399;
|
|
1515
1516
|
--authui-warning-foreground: #fbbf24;
|
|
1516
1517
|
--authui-error-foreground: #f87171;
|
|
@@ -1727,7 +1728,8 @@ const vt = new Rt(), bt = {
|
|
|
1727
1728
|
}
|
|
1728
1729
|
.input {
|
|
1729
1730
|
font: inherit;
|
|
1730
|
-
|
|
1731
|
+
/* 16px avoids iOS Safari auto-zoom on focus */
|
|
1732
|
+
font-size: 16px;
|
|
1731
1733
|
height: 36px;
|
|
1732
1734
|
width: 100%;
|
|
1733
1735
|
min-width: 0;
|
|
@@ -1802,8 +1804,9 @@ const vt = new Rt(), bt = {
|
|
|
1802
1804
|
background: var(--authui-muted);
|
|
1803
1805
|
transition: background-color 120ms ease;
|
|
1804
1806
|
}
|
|
1807
|
+
/* destructive-foreground matches light destructive and stays visible on dark card */
|
|
1805
1808
|
.strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
1806
|
-
background: var(--authui-destructive);
|
|
1809
|
+
background: var(--authui-destructive-foreground);
|
|
1807
1810
|
}
|
|
1808
1811
|
.strength-meter[data-level="2"] span:nth-child(-n + 2) {
|
|
1809
1812
|
background: var(--authui-warning-foreground);
|
|
@@ -1819,6 +1822,19 @@ const vt = new Rt(), bt = {
|
|
|
1819
1822
|
color: var(--authui-muted-foreground);
|
|
1820
1823
|
margin: 0;
|
|
1821
1824
|
}
|
|
1825
|
+
:host([data-theme="dark"]) .strength-meter span {
|
|
1826
|
+
background: var(--authui-border);
|
|
1827
|
+
}
|
|
1828
|
+
:host([data-theme="dark"]) .strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
1829
|
+
background: var(--authui-destructive-foreground);
|
|
1830
|
+
}
|
|
1831
|
+
:host([data-theme="dark"]) .strength-meter[data-level="2"] span:nth-child(-n + 2),
|
|
1832
|
+
:host([data-theme="dark"]) .strength-meter[data-level="3"] span:nth-child(-n + 3) {
|
|
1833
|
+
background: var(--authui-warning-foreground);
|
|
1834
|
+
}
|
|
1835
|
+
:host([data-theme="dark"]) .strength-meter[data-level="4"] span {
|
|
1836
|
+
background: var(--authui-success);
|
|
1837
|
+
}
|
|
1822
1838
|
|
|
1823
1839
|
.btn.last-used {
|
|
1824
1840
|
border-color: var(--authui-brand);
|
|
@@ -1969,7 +1985,7 @@ const vt = new Rt(), bt = {
|
|
|
1969
1985
|
display: inline-flex;
|
|
1970
1986
|
align-items: center;
|
|
1971
1987
|
justify-content: flex-start;
|
|
1972
|
-
height:
|
|
1988
|
+
height: 44px;
|
|
1973
1989
|
width: fit-content;
|
|
1974
1990
|
max-width: 100%;
|
|
1975
1991
|
overflow-x: auto;
|
|
@@ -1980,6 +1996,14 @@ const vt = new Rt(), bt = {
|
|
|
1980
1996
|
gap: 2px;
|
|
1981
1997
|
scrollbar-width: none;
|
|
1982
1998
|
-webkit-overflow-scrolling: touch;
|
|
1999
|
+
/* Subtle right-edge fade as overflow cue at narrow widths */
|
|
2000
|
+
-webkit-mask-image: linear-gradient(
|
|
2001
|
+
to right,
|
|
2002
|
+
#000 0%,
|
|
2003
|
+
#000 calc(100% - 28px),
|
|
2004
|
+
transparent 100%
|
|
2005
|
+
);
|
|
2006
|
+
mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), transparent 100%);
|
|
1983
2007
|
}
|
|
1984
2008
|
:host([data-theme="dark"]) .tabs {
|
|
1985
2009
|
background: color-mix(in oklab, var(--authui-muted) 80%, transparent);
|
|
@@ -1990,8 +2014,9 @@ const vt = new Rt(), bt = {
|
|
|
1990
2014
|
justify-content: center;
|
|
1991
2015
|
gap: 6px;
|
|
1992
2016
|
height: 100%;
|
|
2017
|
+
min-height: 38px;
|
|
1993
2018
|
flex: 0 0 auto;
|
|
1994
|
-
padding:
|
|
2019
|
+
padding: 8px 12px;
|
|
1995
2020
|
border-radius: var(--authui-radius-md);
|
|
1996
2021
|
border: 1px solid transparent;
|
|
1997
2022
|
background: transparent;
|
|
@@ -5516,9 +5541,11 @@ I.styles = [
|
|
|
5516
5541
|
background: var(--authui-background);
|
|
5517
5542
|
color: var(--authui-foreground);
|
|
5518
5543
|
padding: 0;
|
|
5519
|
-
width: calc(100% - 2rem);
|
|
5544
|
+
width: calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
|
|
5520
5545
|
max-width: 440px;
|
|
5521
|
-
max-height: calc(
|
|
5546
|
+
max-height: calc(
|
|
5547
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
5548
|
+
);
|
|
5522
5549
|
box-shadow: var(--authui-shadow-lg);
|
|
5523
5550
|
overflow: hidden;
|
|
5524
5551
|
z-index: var(--authui-z);
|
|
@@ -5546,7 +5573,9 @@ I.styles = [
|
|
|
5546
5573
|
.frame {
|
|
5547
5574
|
display: flex;
|
|
5548
5575
|
flex-direction: column;
|
|
5549
|
-
max-height: calc(
|
|
5576
|
+
max-height: calc(
|
|
5577
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
5578
|
+
);
|
|
5550
5579
|
min-height: 0;
|
|
5551
5580
|
position: relative;
|
|
5552
5581
|
}
|
|
@@ -5555,11 +5584,13 @@ I.styles = [
|
|
|
5555
5584
|
display: flex;
|
|
5556
5585
|
justify-content: flex-end;
|
|
5557
5586
|
align-items: center;
|
|
5558
|
-
padding: 8px 8px 0
|
|
5587
|
+
padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 0
|
|
5588
|
+
max(8px, env(safe-area-inset-left, 0px));
|
|
5559
5589
|
background: var(--authui-background);
|
|
5560
5590
|
}
|
|
5561
5591
|
.body {
|
|
5562
|
-
padding: 4px 24px
|
|
5592
|
+
padding: 4px max(24px, env(safe-area-inset-right, 0px))
|
|
5593
|
+
max(28px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
|
|
5563
5594
|
overflow-y: auto;
|
|
5564
5595
|
flex: 1 1 auto;
|
|
5565
5596
|
min-height: 0;
|
package/dist/authui.cdn.js
CHANGED
|
@@ -74,9 +74,10 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
74
74
|
--authui-accent-foreground: oklch(0.985 0 0);
|
|
75
75
|
--authui-destructive: oklch(0.396 0.141 25.723);
|
|
76
76
|
--authui-destructive-foreground: oklch(0.637 0.237 25.331);
|
|
77
|
-
|
|
78
|
-
--authui-
|
|
79
|
-
--authui-
|
|
77
|
+
/* Raised vs card (#1d1d21) for WCAG 1.4.11 (~3:1) UI contrast */
|
|
78
|
+
--authui-border: #71717a;
|
|
79
|
+
--authui-input: #71717a;
|
|
80
|
+
--authui-ring: #a1a1aa;
|
|
80
81
|
--authui-success-foreground: #34d399;
|
|
81
82
|
--authui-warning-foreground: #fbbf24;
|
|
82
83
|
--authui-error-foreground: #f87171;
|
|
@@ -293,7 +294,8 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
293
294
|
}
|
|
294
295
|
.input {
|
|
295
296
|
font: inherit;
|
|
296
|
-
|
|
297
|
+
/* 16px avoids iOS Safari auto-zoom on focus */
|
|
298
|
+
font-size: 16px;
|
|
297
299
|
height: 36px;
|
|
298
300
|
width: 100%;
|
|
299
301
|
min-width: 0;
|
|
@@ -368,8 +370,9 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
368
370
|
background: var(--authui-muted);
|
|
369
371
|
transition: background-color 120ms ease;
|
|
370
372
|
}
|
|
373
|
+
/* destructive-foreground matches light destructive and stays visible on dark card */
|
|
371
374
|
.strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
372
|
-
background: var(--authui-destructive);
|
|
375
|
+
background: var(--authui-destructive-foreground);
|
|
373
376
|
}
|
|
374
377
|
.strength-meter[data-level="2"] span:nth-child(-n + 2) {
|
|
375
378
|
background: var(--authui-warning-foreground);
|
|
@@ -385,6 +388,19 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
385
388
|
color: var(--authui-muted-foreground);
|
|
386
389
|
margin: 0;
|
|
387
390
|
}
|
|
391
|
+
:host([data-theme="dark"]) .strength-meter span {
|
|
392
|
+
background: var(--authui-border);
|
|
393
|
+
}
|
|
394
|
+
:host([data-theme="dark"]) .strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
395
|
+
background: var(--authui-destructive-foreground);
|
|
396
|
+
}
|
|
397
|
+
:host([data-theme="dark"]) .strength-meter[data-level="2"] span:nth-child(-n + 2),
|
|
398
|
+
:host([data-theme="dark"]) .strength-meter[data-level="3"] span:nth-child(-n + 3) {
|
|
399
|
+
background: var(--authui-warning-foreground);
|
|
400
|
+
}
|
|
401
|
+
:host([data-theme="dark"]) .strength-meter[data-level="4"] span {
|
|
402
|
+
background: var(--authui-success);
|
|
403
|
+
}
|
|
388
404
|
|
|
389
405
|
.btn.last-used {
|
|
390
406
|
border-color: var(--authui-brand);
|
|
@@ -535,7 +551,7 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
535
551
|
display: inline-flex;
|
|
536
552
|
align-items: center;
|
|
537
553
|
justify-content: flex-start;
|
|
538
|
-
height:
|
|
554
|
+
height: 44px;
|
|
539
555
|
width: fit-content;
|
|
540
556
|
max-width: 100%;
|
|
541
557
|
overflow-x: auto;
|
|
@@ -546,6 +562,14 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
546
562
|
gap: 2px;
|
|
547
563
|
scrollbar-width: none;
|
|
548
564
|
-webkit-overflow-scrolling: touch;
|
|
565
|
+
/* Subtle right-edge fade as overflow cue at narrow widths */
|
|
566
|
+
-webkit-mask-image: linear-gradient(
|
|
567
|
+
to right,
|
|
568
|
+
#000 0%,
|
|
569
|
+
#000 calc(100% - 28px),
|
|
570
|
+
transparent 100%
|
|
571
|
+
);
|
|
572
|
+
mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), transparent 100%);
|
|
549
573
|
}
|
|
550
574
|
:host([data-theme="dark"]) .tabs {
|
|
551
575
|
background: color-mix(in oklab, var(--authui-muted) 80%, transparent);
|
|
@@ -556,8 +580,9 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
556
580
|
justify-content: center;
|
|
557
581
|
gap: 6px;
|
|
558
582
|
height: 100%;
|
|
583
|
+
min-height: 38px;
|
|
559
584
|
flex: 0 0 auto;
|
|
560
|
-
padding:
|
|
585
|
+
padding: 8px 12px;
|
|
561
586
|
border-radius: var(--authui-radius-md);
|
|
562
587
|
border: 1px solid transparent;
|
|
563
588
|
background: transparent;
|
|
@@ -2447,9 +2472,11 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
2447
2472
|
background: var(--authui-background);
|
|
2448
2473
|
color: var(--authui-foreground);
|
|
2449
2474
|
padding: 0;
|
|
2450
|
-
width: calc(100% - 2rem);
|
|
2475
|
+
width: calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
|
|
2451
2476
|
max-width: 440px;
|
|
2452
|
-
max-height: calc(
|
|
2477
|
+
max-height: calc(
|
|
2478
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
2479
|
+
);
|
|
2453
2480
|
box-shadow: var(--authui-shadow-lg);
|
|
2454
2481
|
overflow: hidden;
|
|
2455
2482
|
z-index: var(--authui-z);
|
|
@@ -2477,7 +2504,9 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
2477
2504
|
.frame {
|
|
2478
2505
|
display: flex;
|
|
2479
2506
|
flex-direction: column;
|
|
2480
|
-
max-height: calc(
|
|
2507
|
+
max-height: calc(
|
|
2508
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
2509
|
+
);
|
|
2481
2510
|
min-height: 0;
|
|
2482
2511
|
position: relative;
|
|
2483
2512
|
}
|
|
@@ -2486,11 +2515,13 @@ var AuthUI=(function(I){"use strict";var qe;const yt=globalThis,Rt=yt.ShadowRoot
|
|
|
2486
2515
|
display: flex;
|
|
2487
2516
|
justify-content: flex-end;
|
|
2488
2517
|
align-items: center;
|
|
2489
|
-
padding: 8px 8px 0
|
|
2518
|
+
padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 0
|
|
2519
|
+
max(8px, env(safe-area-inset-left, 0px));
|
|
2490
2520
|
background: var(--authui-background);
|
|
2491
2521
|
}
|
|
2492
2522
|
.body {
|
|
2493
|
-
padding: 4px 24px
|
|
2523
|
+
padding: 4px max(24px, env(safe-area-inset-right, 0px))
|
|
2524
|
+
max(28px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
|
|
2494
2525
|
overflow-y: auto;
|
|
2495
2526
|
flex: 1 1 auto;
|
|
2496
2527
|
min-height: 0;
|
package/dist/authui.cdn.mjs
CHANGED
|
@@ -7844,9 +7844,10 @@ const Ki = new mo(), Yi = {
|
|
|
7844
7844
|
--authui-accent-foreground: oklch(0.985 0 0);
|
|
7845
7845
|
--authui-destructive: oklch(0.396 0.141 25.723);
|
|
7846
7846
|
--authui-destructive-foreground: oklch(0.637 0.237 25.331);
|
|
7847
|
-
|
|
7848
|
-
--authui-
|
|
7849
|
-
--authui-
|
|
7847
|
+
/* Raised vs card (#1d1d21) for WCAG 1.4.11 (~3:1) UI contrast */
|
|
7848
|
+
--authui-border: #71717a;
|
|
7849
|
+
--authui-input: #71717a;
|
|
7850
|
+
--authui-ring: #a1a1aa;
|
|
7850
7851
|
--authui-success-foreground: #34d399;
|
|
7851
7852
|
--authui-warning-foreground: #fbbf24;
|
|
7852
7853
|
--authui-error-foreground: #f87171;
|
|
@@ -8063,7 +8064,8 @@ const Ki = new mo(), Yi = {
|
|
|
8063
8064
|
}
|
|
8064
8065
|
.input {
|
|
8065
8066
|
font: inherit;
|
|
8066
|
-
|
|
8067
|
+
/* 16px avoids iOS Safari auto-zoom on focus */
|
|
8068
|
+
font-size: 16px;
|
|
8067
8069
|
height: 36px;
|
|
8068
8070
|
width: 100%;
|
|
8069
8071
|
min-width: 0;
|
|
@@ -8138,8 +8140,9 @@ const Ki = new mo(), Yi = {
|
|
|
8138
8140
|
background: var(--authui-muted);
|
|
8139
8141
|
transition: background-color 120ms ease;
|
|
8140
8142
|
}
|
|
8143
|
+
/* destructive-foreground matches light destructive and stays visible on dark card */
|
|
8141
8144
|
.strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
8142
|
-
background: var(--authui-destructive);
|
|
8145
|
+
background: var(--authui-destructive-foreground);
|
|
8143
8146
|
}
|
|
8144
8147
|
.strength-meter[data-level="2"] span:nth-child(-n + 2) {
|
|
8145
8148
|
background: var(--authui-warning-foreground);
|
|
@@ -8155,6 +8158,19 @@ const Ki = new mo(), Yi = {
|
|
|
8155
8158
|
color: var(--authui-muted-foreground);
|
|
8156
8159
|
margin: 0;
|
|
8157
8160
|
}
|
|
8161
|
+
:host([data-theme="dark"]) .strength-meter span {
|
|
8162
|
+
background: var(--authui-border);
|
|
8163
|
+
}
|
|
8164
|
+
:host([data-theme="dark"]) .strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
8165
|
+
background: var(--authui-destructive-foreground);
|
|
8166
|
+
}
|
|
8167
|
+
:host([data-theme="dark"]) .strength-meter[data-level="2"] span:nth-child(-n + 2),
|
|
8168
|
+
:host([data-theme="dark"]) .strength-meter[data-level="3"] span:nth-child(-n + 3) {
|
|
8169
|
+
background: var(--authui-warning-foreground);
|
|
8170
|
+
}
|
|
8171
|
+
:host([data-theme="dark"]) .strength-meter[data-level="4"] span {
|
|
8172
|
+
background: var(--authui-success);
|
|
8173
|
+
}
|
|
8158
8174
|
|
|
8159
8175
|
.btn.last-used {
|
|
8160
8176
|
border-color: var(--authui-brand);
|
|
@@ -8305,7 +8321,7 @@ const Ki = new mo(), Yi = {
|
|
|
8305
8321
|
display: inline-flex;
|
|
8306
8322
|
align-items: center;
|
|
8307
8323
|
justify-content: flex-start;
|
|
8308
|
-
height:
|
|
8324
|
+
height: 44px;
|
|
8309
8325
|
width: fit-content;
|
|
8310
8326
|
max-width: 100%;
|
|
8311
8327
|
overflow-x: auto;
|
|
@@ -8316,6 +8332,14 @@ const Ki = new mo(), Yi = {
|
|
|
8316
8332
|
gap: 2px;
|
|
8317
8333
|
scrollbar-width: none;
|
|
8318
8334
|
-webkit-overflow-scrolling: touch;
|
|
8335
|
+
/* Subtle right-edge fade as overflow cue at narrow widths */
|
|
8336
|
+
-webkit-mask-image: linear-gradient(
|
|
8337
|
+
to right,
|
|
8338
|
+
#000 0%,
|
|
8339
|
+
#000 calc(100% - 28px),
|
|
8340
|
+
transparent 100%
|
|
8341
|
+
);
|
|
8342
|
+
mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), transparent 100%);
|
|
8319
8343
|
}
|
|
8320
8344
|
:host([data-theme="dark"]) .tabs {
|
|
8321
8345
|
background: color-mix(in oklab, var(--authui-muted) 80%, transparent);
|
|
@@ -8326,8 +8350,9 @@ const Ki = new mo(), Yi = {
|
|
|
8326
8350
|
justify-content: center;
|
|
8327
8351
|
gap: 6px;
|
|
8328
8352
|
height: 100%;
|
|
8353
|
+
min-height: 38px;
|
|
8329
8354
|
flex: 0 0 auto;
|
|
8330
|
-
padding:
|
|
8355
|
+
padding: 8px 12px;
|
|
8331
8356
|
border-radius: var(--authui-radius-md);
|
|
8332
8357
|
border: 1px solid transparent;
|
|
8333
8358
|
background: transparent;
|
|
@@ -11852,9 +11877,11 @@ Ee.styles = [
|
|
|
11852
11877
|
background: var(--authui-background);
|
|
11853
11878
|
color: var(--authui-foreground);
|
|
11854
11879
|
padding: 0;
|
|
11855
|
-
width: calc(100% - 2rem);
|
|
11880
|
+
width: calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
|
|
11856
11881
|
max-width: 440px;
|
|
11857
|
-
max-height: calc(
|
|
11882
|
+
max-height: calc(
|
|
11883
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
11884
|
+
);
|
|
11858
11885
|
box-shadow: var(--authui-shadow-lg);
|
|
11859
11886
|
overflow: hidden;
|
|
11860
11887
|
z-index: var(--authui-z);
|
|
@@ -11882,7 +11909,9 @@ Ee.styles = [
|
|
|
11882
11909
|
.frame {
|
|
11883
11910
|
display: flex;
|
|
11884
11911
|
flex-direction: column;
|
|
11885
|
-
max-height: calc(
|
|
11912
|
+
max-height: calc(
|
|
11913
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
11914
|
+
);
|
|
11886
11915
|
min-height: 0;
|
|
11887
11916
|
position: relative;
|
|
11888
11917
|
}
|
|
@@ -11891,11 +11920,13 @@ Ee.styles = [
|
|
|
11891
11920
|
display: flex;
|
|
11892
11921
|
justify-content: flex-end;
|
|
11893
11922
|
align-items: center;
|
|
11894
|
-
padding: 8px 8px 0
|
|
11923
|
+
padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 0
|
|
11924
|
+
max(8px, env(safe-area-inset-left, 0px));
|
|
11895
11925
|
background: var(--authui-background);
|
|
11896
11926
|
}
|
|
11897
11927
|
.body {
|
|
11898
|
-
padding: 4px 24px
|
|
11928
|
+
padding: 4px max(24px, env(safe-area-inset-right, 0px))
|
|
11929
|
+
max(28px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
|
|
11899
11930
|
overflow-y: auto;
|
|
11900
11931
|
flex: 1 1 auto;
|
|
11901
11932
|
min-height: 0;
|
package/dist/authui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as t, c as r, o } from "./authui-user-button
|
|
2
|
-
import { A as U, b as C, d as v, e as w, f as E, g as O, h as M, i as P, j as b, C as L, E as x, F as T, P as F, k as _, l as y, m as B, n as j, p as k, q, r as R, s as z, t as D, u as G, v as H, w as J, x as K, y as N } from "./authui-user-button
|
|
1
|
+
import { a as t, c as r, o } from "./authui-user-button-BSOjgJ6h.js";
|
|
2
|
+
import { A as U, b as C, d as v, e as w, f as E, g as O, h as M, i as P, j as b, C as L, E as x, F as T, P as F, k as _, l as y, m as B, n as j, p as k, q, r as R, s as z, t as D, u as G, v as H, w as J, x as K, y as N } from "./authui-user-button-BSOjgJ6h.js";
|
|
3
3
|
import * as l from "appwrite";
|
|
4
4
|
function s(e) {
|
|
5
5
|
return t.configure(e), I;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authui-modal.d.ts","sourceRoot":"","sources":["../../src/components/authui-modal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;;;GAIG;AACH,qBACa,WAAY,SAAQ,aAAa;IAC5C,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"authui-modal.d.ts","sourceRoot":"","sources":["../../src/components/authui-modal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;;;GAIG;AACH,qBACa,WAAY,SAAQ,aAAa;IAC5C,MAAM,CAAC,MAAM,4BA+FX;IAEF,4DAA4D;IAChB,IAAI,UAAS;IACzD,4BAA4B;IACA,IAAI,EAAE,UAAU,CAAa;IACzD;;;;OAIG;IAeH,cAAc,UAAQ;IAEb,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,SAAS,CAAS;IAClB,OAAO,CAAC,MAAM,CAAC,CAAoB;IACpC,OAAO,CAAC,MAAM,CAAC,CAAc;IAC7C,OAAO,CAAC,kBAAkB,CAA+B;IAEzD,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,WAAW,CAGjB;IAEF,OAAO,CAAC,YAAY,CAAqB;IAEzC,IAAI,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI;IAQ7B,IAAI,IAAI,IAAI;IAIZ,OAAO,CAAC,aAAa,CAUnB;IAEF,OAAO,CAAC,WAAW;IAenB,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAuCtD,OAAO,CAAC,SAAS,CAGf;IAEF,OAAO,CAAC,WAAW,CAGjB;IAEF,OAAO,CAAC,UAAU,CAEhB;IAEF,OAAO,CAAC,YAAY;IAcpB,SAAS,CAAC,MAAM;CA2CjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement as c, useState as o, useEffect as i, useRef as h, Fragment as a } from "react";
|
|
2
|
-
import { a as s, z as f, c as m, o as d } from "./authui-user-button
|
|
2
|
+
import { a as s, z as f, c as m, o as d } from "./authui-user-button-BSOjgJ6h.js";
|
|
3
3
|
function v() {
|
|
4
4
|
const [e, n] = o(() => s.getState());
|
|
5
5
|
return i(() => s.on("change", n), []), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/styles/base.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/styles/base.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,IAAI,yBAkgChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/styles/tokens.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/styles/tokens.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,MAAM,yBA+ElB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getauthui/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Drop-in authentication UI for Appwrite. One script tag, every sign-in method, MFA, sessions and account management as web components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/authui.js",
|