@pelican-identity/react 2.0.37 → 2.0.39

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.mjs CHANGED
@@ -5,10 +5,12 @@ import { PelicanAuthentication } from '@pelican-identity/auth-core';
5
5
  // src/components/PelicanAuth.tsx
6
6
  var PelicanButton = ({
7
7
  authType,
8
- text
8
+ text,
9
+ type
9
10
  }) => {
10
- return /* @__PURE__ */ jsxs(Fragment, { children: [
11
- /* @__PURE__ */ jsx("style", { children: `
11
+ if (type === "idle") {
12
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
13
+ /* @__PURE__ */ jsx("style", { children: `
12
14
  .pelican-auth-btn-wrapper * {
13
15
  box-sizing: border-box;
14
16
  cursor: pointer !important;
@@ -22,10 +24,12 @@ var PelicanButton = ({
22
24
  justify-content: center !important;
23
25
  gap: 0.35rem !important;
24
26
  padding: 0.3rem 0.5rem !important;
25
- border-radius: 16px !important;
27
+ border-radius: 18px !important;
26
28
  cursor: pointer !important;
27
29
  background-color: #2b2b2b !important;
28
30
  border: 1px solid #353535 !important;
31
+ height: 36px !important;
32
+
29
33
 
30
34
  }
31
35
 
@@ -44,32 +48,99 @@ var PelicanButton = ({
44
48
  padding: 0 !important;
45
49
  }
46
50
  ` }),
47
- /* @__PURE__ */ jsx("div", { className: "pelican-auth-btn-wrapper", children: /* @__PURE__ */ jsxs("div", { className: "pelican-auth-btn", children: [
48
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
49
- "svg",
50
- {
51
- width: "28",
52
- height: "28",
53
- viewBox: "0 0 100 100",
54
- fill: "none",
55
- xmlns: "http://www.w3.org/2000/svg",
56
- role: "img",
57
- "aria-label": "Pelican logo",
58
- children: [
59
- /* @__PURE__ */ jsx("rect", { width: "100", height: "100", rx: "32", fill: "#121212" }),
60
- /* @__PURE__ */ jsx(
51
+ /* @__PURE__ */ jsx("div", { className: "pelican-auth-btn-wrapper", children: /* @__PURE__ */ jsxs("div", { className: "pelican-auth-btn", children: [
52
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
53
+ "svg",
54
+ {
55
+ width: "28",
56
+ height: "28",
57
+ viewBox: "0 0 100 100",
58
+ fill: "none",
59
+ xmlns: "http://www.w3.org/2000/svg",
60
+ role: "img",
61
+ "aria-label": "Pelican logo",
62
+ children: [
63
+ /* @__PURE__ */ jsx("rect", { width: "100", height: "100", rx: "32" }),
64
+ /* @__PURE__ */ jsx(
65
+ "path",
66
+ {
67
+ d: "M56.5511 56.8089C56.5705 55.5878 57.5734 54.0696 58.7917 53.4254C60.0572 52.7596 61.0322 53.2324 61.0193 54.5099C60.9978 55.744 59.9754 57.2947 58.7572 57.9346C57.539 58.5744 56.5296 58.0777 56.5511 56.8089ZM70.0957 49.6364C70.2081 49.5555 70.2954 49.4442 70.3475 49.3154C70.369 48.6278 70.3626 47.9555 70.3626 47.2354C68.4083 48.5172 66.5142 49.7665 64.6202 51.0158V53.2389L65.1174 52.9114C66.7725 51.8183 68.4341 50.7338 70.0957 49.6364ZM69.7147 58.5592C68.4463 60.5076 66.7916 62.1705 64.8548 63.4436C63.1329 64.6039 61.4778 65.222 59.9389 65.1787C58.359 65.1375 57.2893 64.3957 56.6695 62.9686C57.2678 62.448 57.8059 61.9665 58.344 61.4937C58.5418 61.8163 58.7688 62.1198 59.022 62.4003C60.0572 63.3828 61.5488 63.3134 63.3546 62.4762C63.5698 62.3743 63.77 62.2593 63.9809 62.1401C64.8419 61.6607 65.2874 61.1033 65.5069 60.123C65.6834 59.3053 65.7932 58.5158 65.9374 57.7068C66.1135 56.6524 66.4412 55.6295 66.9102 54.6704C67.4634 53.5512 68.2382 52.7184 69.2412 52.3085C70.1323 51.9528 70.7048 52.2065 70.9911 52.8854C71.6432 54.4687 71.0965 56.425 69.7147 58.5592ZM69.3273 54.5923C69.2714 54.434 69.1013 54.2691 68.9528 54.3168C68.8043 54.3646 68.5632 54.6877 68.4341 54.9068C68.2881 55.1536 68.1759 55.4192 68.1005 55.6963C67.8293 56.8913 67.5775 58.082 67.3106 59.2641C67.356 59.263 67.4013 59.2586 67.4462 59.2511C68.1303 58.4928 68.6892 57.6287 69.1013 56.6918C69.4349 55.8741 69.5038 55.1757 69.3273 54.5923ZM80.7949 39.7072V60.2726C80.7942 62.6299 80.1786 64.9455 79.0098 66.9874C77.841 69.0293 76.1601 70.7257 74.1356 71.9066L56.4607 82.1785C54.4328 83.3608 52.1313 83.9834 49.7885 83.9834C47.4456 83.9834 45.1441 83.3608 43.1162 82.1785L25.4671 71.9001C23.4402 70.7208 21.7567 69.0251 20.5856 66.9831C19.4145 64.9411 18.7969 62.6246 18.7949 60.2661V39.7007C18.7969 37.3422 19.4145 35.0257 20.5856 32.9837C21.7567 30.9417 23.4402 29.246 25.4671 28.0667L43.1378 17.7883C45.1657 16.606 47.4671 15.9834 49.81 15.9834C52.1529 15.9834 54.4543 16.606 56.4822 17.7883L74.1356 28.0667C76.1601 29.2476 77.841 30.944 79.0098 32.9859C80.1786 35.0278 80.7942 37.3434 80.7949 39.7007V39.7072ZM77.8333 47.6887C77.8333 42.3077 73.5007 40.2624 68.1629 43.134L52.9287 51.2956C51.6739 51.9679 50.6602 53.5382 50.6602 54.8005V77.5956C50.6602 78.8644 51.6739 79.3307 52.9287 78.6649L58.5936 75.6284C59.1636 75.3055 59.6456 74.8458 59.997 74.2902C60.3517 73.7796 60.5547 73.1777 60.5824 72.5551C60.5824 71.9435 61.0731 71.1887 61.6779 70.8655L64.4975 69.3473C65.0291 69.0653 65.5414 68.7769 66.0299 68.4797L68.1629 67.3411C73.5007 64.4716 77.8333 57.7979 77.8333 52.4082V47.6887Z",
68
+ fill: "#D9EB1B"
69
+ }
70
+ )
71
+ ]
72
+ }
73
+ ) }),
74
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", { children: text || /* @__PURE__ */ jsx("span", { children: authType === "login" ? "Login with Pelican" : authType === "signup" ? "Signup with Pelican" : authType === "id-verification" ? "Verify with Pelican" : "Authenticate with Pelican" }) }) })
75
+ ] }) })
76
+ ] });
77
+ } else {
78
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
79
+ /* @__PURE__ */ jsx("style", { children: `
80
+ .pelican-auth-btn-wrapper * {
81
+ box-sizing: border-box;
82
+ cursor: pointer !important;
83
+ }
84
+
85
+ .pelican-auth-btn-wrapper .pelican-auth-btn {
86
+ all: initial;
87
+ display: flex !important;
88
+ flex-direction: row !important;
89
+ align-items: center !important;
90
+ justify-content: center !important;
91
+ gap: 0.35rem !important;
92
+ padding: 0.3rem 0.6rem !important;
93
+ border-radius: 18px !important;
94
+ cursor: pointer !important;
95
+ background-color: #f8f8f8ff !important;
96
+ height: 30px !important;
97
+ margin: 8px 0 !important;
98
+ width: fit-content !important;
99
+ }
100
+
101
+ .pelican-auth-btn-wrapper .pelican-auth-btn:hover {
102
+ cursor: pointer !important;
103
+ }
104
+
105
+ .pelican-auth-btn-wrapper .pelican-auth-btn p {
106
+ all: initial;
107
+ font-size: 14px !important;
108
+ font-weight: 500 !important;
109
+ color: #111827 !important;
110
+ font-family: Onest, system-ui, -apple-system, sans-serif !important;
111
+ margin: 0 !important;
112
+ padding: 0 !important;
113
+ }
114
+ ` }),
115
+ /* @__PURE__ */ jsx("div", { className: "pelican-auth-btn-wrapper", children: /* @__PURE__ */ jsxs("div", { className: "pelican-auth-btn", children: [
116
+ /* @__PURE__ */ jsx(
117
+ "svg",
118
+ {
119
+ fill: "#111827",
120
+ stroke: "#111827",
121
+ viewBox: "0 0 24 24",
122
+ role: "img",
123
+ "aria-label": "close icon",
124
+ height: "16",
125
+ width: "16",
126
+ children: /* @__PURE__ */ jsx(
61
127
  "path",
62
128
  {
63
- d: "M56.5511 56.8089C56.5705 55.5878 57.5734 54.0696 58.7917 53.4254C60.0572 52.7596 61.0322 53.2324 61.0193 54.5099C60.9978 55.744 59.9754 57.2947 58.7572 57.9346C57.539 58.5744 56.5296 58.0777 56.5511 56.8089ZM70.0957 49.6364C70.2081 49.5555 70.2954 49.4442 70.3475 49.3154C70.369 48.6278 70.3626 47.9555 70.3626 47.2354C68.4083 48.5172 66.5142 49.7665 64.6202 51.0158V53.2389L65.1174 52.9114C66.7725 51.8183 68.4341 50.7338 70.0957 49.6364ZM69.7147 58.5592C68.4463 60.5076 66.7916 62.1705 64.8548 63.4436C63.1329 64.6039 61.4778 65.222 59.9389 65.1787C58.359 65.1375 57.2893 64.3957 56.6695 62.9686C57.2678 62.448 57.8059 61.9665 58.344 61.4937C58.5418 61.8163 58.7688 62.1198 59.022 62.4003C60.0572 63.3828 61.5488 63.3134 63.3546 62.4762C63.5698 62.3743 63.77 62.2593 63.9809 62.1401C64.8419 61.6607 65.2874 61.1033 65.5069 60.123C65.6834 59.3053 65.7932 58.5158 65.9374 57.7068C66.1135 56.6524 66.4412 55.6295 66.9102 54.6704C67.4634 53.5512 68.2382 52.7184 69.2412 52.3085C70.1323 51.9528 70.7048 52.2065 70.9911 52.8854C71.6432 54.4687 71.0965 56.425 69.7147 58.5592ZM69.3273 54.5923C69.2714 54.434 69.1013 54.2691 68.9528 54.3168C68.8043 54.3646 68.5632 54.6877 68.4341 54.9068C68.2881 55.1536 68.1759 55.4192 68.1005 55.6963C67.8293 56.8913 67.5775 58.082 67.3106 59.2641C67.356 59.263 67.4013 59.2586 67.4462 59.2511C68.1303 58.4928 68.6892 57.6287 69.1013 56.6918C69.4349 55.8741 69.5038 55.1757 69.3273 54.5923ZM80.7949 39.7072V60.2726C80.7942 62.6299 80.1786 64.9455 79.0098 66.9874C77.841 69.0293 76.1601 70.7257 74.1356 71.9066L56.4607 82.1785C54.4328 83.3608 52.1313 83.9834 49.7885 83.9834C47.4456 83.9834 45.1441 83.3608 43.1162 82.1785L25.4671 71.9001C23.4402 70.7208 21.7567 69.0251 20.5856 66.9831C19.4145 64.9411 18.7969 62.6246 18.7949 60.2661V39.7007C18.7969 37.3422 19.4145 35.0257 20.5856 32.9837C21.7567 30.9417 23.4402 29.246 25.4671 28.0667L43.1378 17.7883C45.1657 16.606 47.4671 15.9834 49.81 15.9834C52.1529 15.9834 54.4543 16.606 56.4822 17.7883L74.1356 28.0667C76.1601 29.2476 77.841 30.944 79.0098 32.9859C80.1786 35.0278 80.7942 37.3434 80.7949 39.7007V39.7072ZM77.8333 47.6887C77.8333 42.3077 73.5007 40.2624 68.1629 43.134L52.9287 51.2956C51.6739 51.9679 50.6602 53.5382 50.6602 54.8005V77.5956C50.6602 78.8644 51.6739 79.3307 52.9287 78.6649L58.5936 75.6284C59.1636 75.3055 59.6456 74.8458 59.997 74.2902C60.3517 73.7796 60.5547 73.1777 60.5824 72.5551C60.5824 71.9435 61.0731 71.1887 61.6779 70.8655L64.4975 69.3473C65.0291 69.0653 65.5414 68.7769 66.0299 68.4797L68.1629 67.3411C73.5007 64.4716 77.8333 57.7979 77.8333 52.4082V47.6887Z",
64
- fill: "#D9EB1B"
129
+ strokeLinecap: "round",
130
+ strokeLinejoin: "round",
131
+ strokeWidth: 3,
132
+ d: "M6 18L18 6M6 6l12 12",
133
+ fill: "#e94e4eff",
134
+ stroke: "#e94e4eff",
135
+ color: "#e94e4eff"
65
136
  }
66
137
  )
67
- ]
68
- }
69
- ) }),
70
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", { children: text || /* @__PURE__ */ jsx("span", { children: authType === "login" ? "Login with Pelican" : authType === "signup" ? "Signup with Pelican" : authType === "id-verification" ? "Verify with Pelican" : "Authenticate with Pelican" }) }) })
71
- ] }) })
72
- ] });
138
+ }
139
+ ),
140
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", { children: "cancel" }) })
141
+ ] }) })
142
+ ] });
143
+ }
73
144
  };
74
145
  var PelicanButton_default = PelicanButton;
75
146
  var usePelicanAuth = (config) => {
@@ -145,7 +216,6 @@ var StoreIcons = () => {
145
216
  alignItems: "center",
146
217
  borderRadius: "1.2rem",
147
218
  gap: "0.3rem",
148
- padding: "0.7rem 1rem",
149
219
  height: "1.4rem"
150
220
  },
151
221
  children: [
@@ -158,7 +228,7 @@ var StoreIcons = () => {
158
228
  color: "#585858",
159
229
  fontFamily: "Onest, system-ui, Avenir, Helvetica, Arial, sans-serif"
160
230
  },
161
- children: "Get vault mobile app \u2192"
231
+ children: "Get the app"
162
232
  }
163
233
  ) }),
164
234
  /* @__PURE__ */ jsx(
@@ -176,8 +246,8 @@ var StoreIcons = () => {
176
246
  justifyContent: "center",
177
247
  gap: "0.4rem",
178
248
  cursor: "pointer",
179
- height: "28px",
180
- width: "28px",
249
+ height: "32px",
250
+ width: "32px",
181
251
  borderRadius: "0.7rem",
182
252
  transition: "all 0.2s ease-in-out",
183
253
  border: "1px solid #e5e7eb"
@@ -208,8 +278,8 @@ var StoreIcons = () => {
208
278
  justifyContent: "center",
209
279
  gap: "0.4rem",
210
280
  cursor: "pointer",
211
- height: "28px",
212
- width: "28px",
281
+ height: "32px",
282
+ width: "32px",
213
283
  borderRadius: "0.7rem",
214
284
  transition: "all 0.2s ease-in-out",
215
285
  border: "1px solid #e5e7eb"
@@ -346,15 +416,15 @@ var PelicanAuth = (config) => {
346
416
  padding: 1rem;
347
417
  margin-top: 0.3rem;
348
418
  position: relative;
419
+ border-radius: 10px;
349
420
  animation: fadeUp 0.5s ease-out;
350
421
  background-color: #f9fafb;
351
- border-radius: 2.5rem;
352
422
  display: flex;
353
423
  flex-direction: column;
354
424
  justify-content: space-between;
355
425
  align-items: center;
356
426
  gap: 1rem;
357
- min-height: 320px;
427
+ min-height: 300px;
358
428
  }
359
429
  .js-auth-container {
360
430
  width: 300px;
@@ -369,7 +439,7 @@ var PelicanAuth = (config) => {
369
439
  justify-content: space-between;
370
440
  align-items: center;
371
441
  gap: 1rem;
372
- min-height: 320px;
442
+ min-height: 300px;
373
443
  }
374
444
 
375
445
  .pelican-modal-close-btn {
@@ -453,6 +523,9 @@ var PelicanAuth = (config) => {
453
523
  flex-direction: column;
454
524
  gap: 0.7rem;
455
525
  width: 253px;
526
+ background-color: #ffffff;
527
+ border-radius: 10px;
528
+ padding: 0 0 1rem 0;
456
529
  }
457
530
 
458
531
  .logo-container {
@@ -465,13 +538,13 @@ var PelicanAuth = (config) => {
465
538
  display: inline-block;
466
539
  padding: 0.7rem 1.25rem;
467
540
  background-color: #101010ff;
468
- width: fit-content;
541
+ width: 70%;
469
542
  align-self: center;
470
543
 
471
- border-radius: 28px;
544
+ border-radius: 18px;
472
545
  color: #fff;
473
546
  font-weight: 500;
474
- font-size: 1rem;
547
+ font-size: 0.8rem;
475
548
  text-decoration: none;
476
549
  transition: background-color 0.2s;
477
550
  font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
@@ -534,14 +607,14 @@ opacity: 0.8;
534
607
  margin-top: 1rem;
535
608
  display: inline-block;
536
609
  padding: 0.7rem 1.25rem;
537
- background-color: #101010ff;
610
+ background-color: #ffffff;
538
611
  width: fit-content;
539
612
  align-self: center;
540
-
613
+ border: 1px solid #e2e2e2ff;
541
614
  border-radius: 28px;
542
- color: #fff;
615
+ color: #101010ff;
543
616
  font-weight: 500;
544
- font-size: 0.8rem;
617
+ font-size: 0.7rem;
545
618
  text-decoration: none;
546
619
  transition: background-color 0.2s;
547
620
  font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
@@ -592,11 +665,16 @@ opacity: 0.9;
592
665
 
593
666
  .scan-btn {
594
667
  all: unset;
595
- font-size: 0.8rem;
668
+ font-size: 0.7rem;
596
669
  color: #626262ff;
597
- font-weight: 600;
670
+ background-color: #fafafaff;
671
+ padding: 0.5rem 1.5rem;
672
+ border-radius: 1.3rem;
673
+ font-weight: 500;
598
674
  cursor: pointer;
599
675
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
676
+ width: fit-content;
677
+ align-self: center;
600
678
  }
601
679
  .error-wrapper {
602
680
  display: flex;
@@ -686,9 +764,9 @@ opacity: 0.9;
686
764
  width: "100%",
687
765
  justifyContent: "space-between",
688
766
  alignItems: "center",
689
- maxWidth: "520px"
767
+ maxWidth: "300px"
690
768
  },
691
- children: !config.continuousMode && /* @__PURE__ */ jsxs(
769
+ children: !config.continuousMode && /* @__PURE__ */ jsx(
692
770
  "div",
693
771
  {
694
772
  style: {
@@ -697,71 +775,35 @@ opacity: 0.9;
697
775
  justifyContent: "space-between",
698
776
  alignItems: "center"
699
777
  },
700
- children: [
701
- /* @__PURE__ */ jsx(
702
- "button",
703
- {
704
- type: "button",
705
- style: {
706
- border: "none",
707
- background: "transparent",
708
- cursor: "pointer"
709
- },
710
- onClick: () => {
711
- start();
712
- },
713
- disabled: config.continuousMode,
714
- children: config.buttonComponent ? config.buttonComponent : /* @__PURE__ */ jsx(
715
- PelicanButton_default,
716
- {
717
- authType: config.authType,
718
- text: config.buttonText
719
- }
720
- )
721
- }
722
- ),
723
- state !== "idle" && /* @__PURE__ */ jsx(
724
- "button",
725
- {
726
- onClick: () => {
778
+ children: state === "idle" && /* @__PURE__ */ jsx(
779
+ "button",
780
+ {
781
+ type: "button",
782
+ style: {
783
+ border: "none",
784
+ background: "transparent",
785
+ cursor: "pointer",
786
+ width: "100%",
787
+ alignSelf: "center"
788
+ },
789
+ onClick: () => {
790
+ if (state !== "idle") {
727
791
  stop();
728
792
  config.onClose?.();
729
- },
730
- className: "pelican-modal-close-btn",
731
- "aria-label": "Close",
732
- type: "button",
733
- style: {
734
- border: "none !important",
735
- padding: "0.3rem !important",
736
- cursor: "pointer !important"
737
- },
738
- children: /* @__PURE__ */ jsx(
739
- "svg",
740
- {
741
- fill: "#fff",
742
- stroke: "#fff",
743
- viewBox: "0 0 24 24",
744
- role: "img",
745
- "aria-label": "close icon",
746
- children: /* @__PURE__ */ jsx(
747
- "path",
748
- {
749
- strokeLinecap: "round",
750
- strokeLinejoin: "round",
751
- strokeWidth: 3,
752
- d: "M6 18L18 6M6 6l12 12",
753
- height: "24",
754
- width: "24",
755
- fill: "#fff",
756
- stroke: "#fff",
757
- color: "#fff"
758
- }
759
- )
760
- }
761
- )
762
- }
763
- )
764
- ]
793
+ } else {
794
+ start();
795
+ }
796
+ },
797
+ children: config.buttonComponent ? config.buttonComponent : /* @__PURE__ */ jsx(
798
+ PelicanButton_default,
799
+ {
800
+ authType: config.authType,
801
+ text: config.buttonText,
802
+ type: "idle"
803
+ }
804
+ )
805
+ }
806
+ )
765
807
  }
766
808
  )
767
809
  }
@@ -774,7 +816,7 @@ opacity: 0.9;
774
816
  display: "flex",
775
817
  justifyContent: "center",
776
818
  alignItems: "center",
777
- maxWidth: "520px"
819
+ maxWidth: "300px"
778
820
  },
779
821
  children: state !== "idle" && /* @__PURE__ */ jsxs("div", { className: "auth-container", children: [
780
822
  successMessage && /* @__PURE__ */ jsxs(
@@ -823,62 +865,19 @@ opacity: 0.9;
823
865
  style: { width: "54px", height: "54px" }
824
866
  }
825
867
  ) }),
826
- /* @__PURE__ */ jsx("a", { href: deeplink, className: "open-app-link", children: "Open Pelican Vault" }),
868
+ /* @__PURE__ */ jsx("a", { href: deeplink, className: "open-app-link", children: "Launch Pelican Vault" }),
827
869
  /* @__PURE__ */ jsxs("p", { className: "helper-text", children: [
828
- "Open the app to",
870
+ "open app to",
829
871
  " ",
830
872
  config.authType === "login" ? "login" : config.authType === "signup" ? "signup" : config.authType === "id-verification" ? "verify identity" : "authenticate"
831
873
  ] }),
832
- /* @__PURE__ */ jsxs(
833
- "div",
834
- {
835
- style: {
836
- display: "flex",
837
- alignItems: "center",
838
- gap: "0.5rem"
839
- },
840
- children: [
841
- /* @__PURE__ */ jsx(
842
- "div",
843
- {
844
- style: {
845
- width: "100%",
846
- height: "1px",
847
- backgroundColor: "#e2e2e2ff"
848
- }
849
- }
850
- ),
851
- /* @__PURE__ */ jsx(
852
- "p",
853
- {
854
- style: {
855
- fontSize: "0.8rem",
856
- fontFamily: "system-ui, Avenir, Helvetica, Arial, sans-serif",
857
- color: "#a8a8a8ff"
858
- },
859
- children: "Or"
860
- }
861
- ),
862
- /* @__PURE__ */ jsx(
863
- "div",
864
- {
865
- style: {
866
- width: "100%",
867
- height: "1px",
868
- backgroundColor: "#e2e2e2ff"
869
- }
870
- }
871
- )
872
- ]
873
- }
874
- ),
875
874
  /* @__PURE__ */ jsx(
876
875
  "button",
877
876
  {
878
877
  type: "button",
879
878
  className: "scan-btn",
880
879
  onClick: useQrInstead,
881
- children: "Use QR Code"
880
+ children: "or scan QR code"
882
881
  }
883
882
  )
884
883
  ] }) : config.forceQRCode && qr && state === "awaiting-pair" || !config.forceQRCode && qr && state === "awaiting-pair" ? /* @__PURE__ */ jsx("div", { className: "qr-container", children: /* @__PURE__ */ jsxs("div", { className: "qr-wrapper", children: [
@@ -891,19 +890,54 @@ opacity: 0.9;
891
890
  }
892
891
  ),
893
892
  !qr && /* @__PURE__ */ jsx("span", { className: "loader" })
894
- ] }) }) : /* @__PURE__ */ jsx("div", { className: "loader-container", children: /* @__PURE__ */ jsx("span", { className: "loader" }) }),
895
- state === "awaiting-pair" && /* @__PURE__ */ jsx(
896
- "button",
893
+ ] }) }) : /* @__PURE__ */ jsx("div", { className: "loader-container", children: /* @__PURE__ */ jsx("span", { className: "loader" }) })
894
+ ] }) }),
895
+ /* @__PURE__ */ jsx(StoreIcons_default, {}),
896
+ state === "awaiting-pair" && /* @__PURE__ */ jsx(
897
+ "button",
898
+ {
899
+ type: "button",
900
+ className: "web-auth-btn",
901
+ onClick: useWebAuth,
902
+ children: "Use web vault instead"
903
+ }
904
+ )
905
+ ] })
906
+ }
907
+ ),
908
+ state !== "idle" && /* @__PURE__ */ jsx(
909
+ "div",
910
+ {
911
+ style: {
912
+ width: "300px",
913
+ display: "flex",
914
+ justifyContent: "center",
915
+ alignItems: "center"
916
+ },
917
+ children: /* @__PURE__ */ jsx(
918
+ "button",
919
+ {
920
+ type: "button",
921
+ style: {
922
+ border: "none",
923
+ background: "transparent",
924
+ cursor: "pointer",
925
+ alignSelf: "center"
926
+ },
927
+ onClick: () => {
928
+ stop();
929
+ config.onClose?.();
930
+ },
931
+ children: /* @__PURE__ */ jsx(
932
+ PelicanButton_default,
897
933
  {
898
- type: "button",
899
- className: "web-auth-btn",
900
- onClick: useWebAuth,
901
- children: "Use browser vault instead"
934
+ authType: config.authType,
935
+ text: `Cancel`,
936
+ type: "cancel"
902
937
  }
903
938
  )
904
- ] }) }),
905
- /* @__PURE__ */ jsx(StoreIcons_default, {})
906
- ] })
939
+ }
940
+ )
907
941
  }
908
942
  )
909
943
  ] })