@keyringnetwork/keyring-connect-sdk 3.2.0 → 4.1.0-alpha.2
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/core/VerificationSession.d.ts +62 -0
- package/dist/core/VerificationSession.js +404 -0
- package/dist/core/errors.d.ts +49 -0
- package/dist/core/errors.js +81 -0
- package/dist/core/htppClient.d.ts +17 -0
- package/dist/core/htppClient.js +160 -0
- package/dist/{main.d.ts → core/keyringConnectExtension.d.ts} +6 -4
- package/dist/{main.js → core/keyringConnectExtension.js} +33 -16
- package/dist/core/websocketClient.d.ts +23 -0
- package/dist/core/websocketClient.js +220 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/types/api.d.ts +24 -0
- package/dist/types/api.js +2 -0
- package/dist/types/core.d.ts +78 -0
- package/dist/types/core.js +2 -0
- package/dist/{types.d.ts → types/extension.d.ts} +2 -49
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +20 -0
- package/dist/types/websocket.d.ts +68 -0
- package/dist/types/websocket.js +3 -0
- package/dist/ui/UIManager.d.ts +52 -0
- package/dist/ui/UIManager.js +257 -0
- package/dist/ui/components/keyring-button.d.ts +12 -0
- package/dist/ui/components/keyring-button.js +140 -0
- package/dist/ui/components/keyring-text.d.ts +12 -0
- package/dist/ui/components/keyring-text.js +169 -0
- package/dist/ui/composites/keyring-complete-modal.d.ts +19 -0
- package/dist/ui/composites/keyring-complete-modal.js +200 -0
- package/dist/ui/composites/keyring-mobile-modal.d.ts +25 -0
- package/dist/ui/composites/keyring-mobile-modal.js +308 -0
- package/dist/ui/composites/keyring-qr-modal.d.ts +32 -0
- package/dist/ui/composites/keyring-qr-modal.js +464 -0
- package/dist/ui/composites/keyring-selection-modal.d.ts +25 -0
- package/dist/ui/composites/keyring-selection-modal.js +342 -0
- package/dist/ui/composites/keyring-terminated-modal.d.ts +14 -0
- package/dist/ui/composites/keyring-terminated-modal.js +121 -0
- package/dist/ui/icons/apple-icon.d.ts +4 -0
- package/dist/ui/icons/apple-icon.js +47 -0
- package/dist/ui/icons/check-circle.d.ts +4 -0
- package/dist/ui/icons/check-circle.js +35 -0
- package/dist/ui/icons/checkmark.d.ts +4 -0
- package/dist/ui/icons/checkmark.js +37 -0
- package/dist/ui/icons/close-circle.d.ts +4 -0
- package/dist/ui/icons/close-circle.js +35 -0
- package/dist/ui/icons/error-circle.d.ts +4 -0
- package/dist/ui/icons/error-circle.js +48 -0
- package/dist/ui/icons/extension-grid.d.ts +4 -0
- package/dist/ui/icons/extension-grid.js +79 -0
- package/dist/ui/icons/google-icon.d.ts +4 -0
- package/dist/ui/icons/google-icon.js +55 -0
- package/dist/ui/icons/gradient-donut.d.ts +8 -0
- package/dist/ui/icons/gradient-donut.js +85 -0
- package/dist/ui/icons/keyring.d.ts +4 -0
- package/dist/ui/icons/keyring.js +71 -0
- package/dist/ui/icons/mobile-grid.d.ts +4 -0
- package/dist/ui/icons/mobile-grid.js +68 -0
- package/dist/ui/icons/success.d.ts +4 -0
- package/dist/ui/icons/success.js +54 -0
- package/dist/utils/environment.d.ts +34 -0
- package/dist/utils/environment.js +67 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.js +40 -0
- package/dist/utils/platformUtils.d.ts +24 -0
- package/dist/utils/platformUtils.js +64 -0
- package/package.json +29 -14
- package/readme.md +57 -105
- /package/dist/{types.js → types/extension.js} +0 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.KeyringSelectionModal = void 0;
|
|
10
|
+
const lit_1 = require("lit");
|
|
11
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
12
|
+
require("../components/keyring-button");
|
|
13
|
+
require("../components/keyring-text");
|
|
14
|
+
require("../icons/check-circle");
|
|
15
|
+
require("../icons/close-circle");
|
|
16
|
+
require("../icons/extension-grid");
|
|
17
|
+
require("../icons/gradient-donut");
|
|
18
|
+
require("../icons/keyring");
|
|
19
|
+
require("../icons/mobile-grid");
|
|
20
|
+
let KeyringSelectionModal = class KeyringSelectionModal extends lit_1.LitElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.title = "Choose how to continue";
|
|
24
|
+
this.subtitle = "Select your preferred method to complete verification";
|
|
25
|
+
this.isExtensionInstalled = false;
|
|
26
|
+
this.extensionBtnText = "Continue with Extension";
|
|
27
|
+
this.mobileBtnText = "Continue with Mobile App";
|
|
28
|
+
this.mobileSelected = false;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
super.connectedCallback();
|
|
32
|
+
this.trapFocus();
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (0, lit_1.html) `
|
|
36
|
+
<div class="modal" @click=${this.stopPropagation}>
|
|
37
|
+
<div class="header">
|
|
38
|
+
<div class="header-title">
|
|
39
|
+
<keyring-text variant="text-2xl" weight="medium">${this.title}</keyring-text>
|
|
40
|
+
<keyring-text variant="text-sm" color="secondary">${this.subtitle}</keyring-text>
|
|
41
|
+
</div>
|
|
42
|
+
<button class="close-btn" @click=${this.handleCancel} aria-label="Close">
|
|
43
|
+
<svg
|
|
44
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
+
width="24"
|
|
46
|
+
height="24"
|
|
47
|
+
viewBox="0 0 24 24"
|
|
48
|
+
fill="none"
|
|
49
|
+
>
|
|
50
|
+
<path
|
|
51
|
+
d="M16.0391 6.54694C16.4296 6.15641 17.0626 6.15641 17.4531 6.54694C17.8436 6.93747 17.8436 7.5705 17.4531 7.961L13.4141 12.0001L17.4531 16.0391C17.8436 16.4297 17.8436 17.0627 17.4531 17.4532C17.0626 17.8437 16.4296 17.8436 16.0391 17.4532L12 13.4141L7.96094 17.4532C7.57044 17.8437 6.93741 17.8436 6.54688 17.4532C6.15635 17.0627 6.15635 16.4296 6.54688 16.0391L10.5859 12.0001L6.54688 7.961C6.15635 7.57047 6.15635 6.93746 6.54688 6.54694C6.9374 6.15641 7.57041 6.15641 7.96094 6.54694L12 10.586L16.0391 6.54694Z"
|
|
52
|
+
fill="#75849A"
|
|
53
|
+
/>
|
|
54
|
+
</svg>
|
|
55
|
+
</button>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<div class="content">
|
|
59
|
+
<div class="selection-buttons">
|
|
60
|
+
<button class="selection-btn extension-btn" @click=${this.handleExtensionSelect}>
|
|
61
|
+
<extension-grid-icon></extension-grid-icon>
|
|
62
|
+
<div class="btn-content">
|
|
63
|
+
<div class="title">
|
|
64
|
+
<keyring-text variant="text-base" weight="medium"
|
|
65
|
+
>${this.extensionBtnText}</keyring-text
|
|
66
|
+
>
|
|
67
|
+
<div
|
|
68
|
+
class=${`extension-status ${this.isExtensionInstalled ? "installed" : "not-installed"}`}
|
|
69
|
+
>
|
|
70
|
+
${this.isExtensionInstalled
|
|
71
|
+
? (0, lit_1.html) `<check-circle-icon
|
|
72
|
+
style="display: flex; align-items: center;"
|
|
73
|
+
></check-circle-icon>`
|
|
74
|
+
: (0, lit_1.html) `<close-circle-icon
|
|
75
|
+
style="display: flex; align-items: center;"
|
|
76
|
+
></close-circle-icon>`}
|
|
77
|
+
<keyring-text variant="xs" color="white">
|
|
78
|
+
${this.isExtensionInstalled ? "Installed" : "Not Installed"}
|
|
79
|
+
</keyring-text>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<keyring-text variant="text-sm" color="secondary"
|
|
83
|
+
>Use your browser extension</keyring-text
|
|
84
|
+
>
|
|
85
|
+
</div>
|
|
86
|
+
</button>
|
|
87
|
+
|
|
88
|
+
<button class="selection-btn mobile-btn" @click=${this.handleMobileSelect}>
|
|
89
|
+
<mobile-grid-icon></mobile-grid-icon>
|
|
90
|
+
<div class="btn-content">
|
|
91
|
+
<div class="title">
|
|
92
|
+
<keyring-text variant="text-base" weight="medium"
|
|
93
|
+
>${this.mobileBtnText}</keyring-text
|
|
94
|
+
>
|
|
95
|
+
${this.mobileSelected
|
|
96
|
+
? (0, lit_1.html) `<gradient-donut-icon spinning></gradient-donut-icon>`
|
|
97
|
+
: ""}
|
|
98
|
+
</div>
|
|
99
|
+
<keyring-text variant="text-sm" color="secondary"
|
|
100
|
+
>Scan QR code with your phone</keyring-text
|
|
101
|
+
>
|
|
102
|
+
</div>
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<div class="footer">
|
|
108
|
+
<div class="footer-content">
|
|
109
|
+
<div class="footer-branding">
|
|
110
|
+
<keyring-text variant="text-sm" color="secondary"
|
|
111
|
+
>Verification provided by</keyring-text
|
|
112
|
+
>
|
|
113
|
+
<keyring-icon></keyring-icon>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="footer-links">
|
|
116
|
+
<a href="https://www.keyring.network/terms" target="_blank" class="link">
|
|
117
|
+
<keyring-text variant="text-sm" color="secondary"
|
|
118
|
+
>Keyring Terms and Conditions</keyring-text
|
|
119
|
+
>
|
|
120
|
+
</a>
|
|
121
|
+
<a href="https://docs.keyring.network/docs" target="_blank" class="link">
|
|
122
|
+
<keyring-text variant="text-sm" color="secondary">Keyring Docs</keyring-text>
|
|
123
|
+
</a>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
`;
|
|
129
|
+
}
|
|
130
|
+
// Event handlers
|
|
131
|
+
handleCancel() {
|
|
132
|
+
this.dispatchEvent(new CustomEvent("cancel", { bubbles: true, composed: true }));
|
|
133
|
+
}
|
|
134
|
+
handleExtensionSelect() {
|
|
135
|
+
this.dispatchEvent(new CustomEvent("extension-selected", { bubbles: true, composed: true }));
|
|
136
|
+
}
|
|
137
|
+
handleMobileSelect() {
|
|
138
|
+
if (this.mobileSelected) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
this.mobileSelected = true;
|
|
142
|
+
this.dispatchEvent(new CustomEvent("mobile-selected", { bubbles: true, composed: true }));
|
|
143
|
+
}
|
|
144
|
+
stopPropagation(e) {
|
|
145
|
+
e.stopPropagation();
|
|
146
|
+
}
|
|
147
|
+
trapFocus() {
|
|
148
|
+
var _a;
|
|
149
|
+
// Simple focus trap implementation
|
|
150
|
+
const focusableElements = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button:not([style*="display: none"]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
151
|
+
if (focusableElements && focusableElements.length > 0) {
|
|
152
|
+
focusableElements[0].focus();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
exports.KeyringSelectionModal = KeyringSelectionModal;
|
|
157
|
+
KeyringSelectionModal.styles = (0, lit_1.css) `
|
|
158
|
+
:host {
|
|
159
|
+
position: fixed;
|
|
160
|
+
top: 0;
|
|
161
|
+
left: 0;
|
|
162
|
+
right: 0;
|
|
163
|
+
bottom: 0;
|
|
164
|
+
background-color: rgba(15, 40, 48, 0.45);
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
z-index: 10000;
|
|
169
|
+
font-family: Inter, "Segoe UI", Roboto, sans-serif;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.modal {
|
|
173
|
+
background: white;
|
|
174
|
+
border-radius: 20px;
|
|
175
|
+
display: flex;
|
|
176
|
+
gap: 24px;
|
|
177
|
+
padding: 24px 24px 32px 24px;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
align-items: center;
|
|
180
|
+
max-width: 524px;
|
|
181
|
+
width: 100%;
|
|
182
|
+
max-height: 90vh;
|
|
183
|
+
overflow-y: auto;
|
|
184
|
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.header {
|
|
188
|
+
display: flex;
|
|
189
|
+
justify-content: space-between;
|
|
190
|
+
align-items: flex-start;
|
|
191
|
+
width: 100%;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.header-title {
|
|
195
|
+
width: 100%;
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-direction: column;
|
|
198
|
+
gap: 16px;
|
|
199
|
+
align-items: start;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.close-btn {
|
|
203
|
+
background-color: transparent;
|
|
204
|
+
border: none;
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
padding: 4px;
|
|
207
|
+
border-radius: 8px;
|
|
208
|
+
transition: all 300ms ease-in-out;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.close-btn:hover {
|
|
212
|
+
background-color: #75849a1a;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.content {
|
|
216
|
+
width: 100%;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.selection-buttons {
|
|
220
|
+
display: flex;
|
|
221
|
+
flex-direction: column;
|
|
222
|
+
gap: 8px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.selection-btn {
|
|
226
|
+
display: flex;
|
|
227
|
+
gap: 12px;
|
|
228
|
+
align-items: center;
|
|
229
|
+
padding: 20px 16px;
|
|
230
|
+
border: 1px solid #e3e7ee;
|
|
231
|
+
border-radius: 12px;
|
|
232
|
+
background-color: transparent;
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
transition: all 300ms ease-in-out;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.btn-content {
|
|
238
|
+
flex: 1;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.btn-content .title {
|
|
242
|
+
display: flex;
|
|
243
|
+
gap: 8px;
|
|
244
|
+
align-items: center;
|
|
245
|
+
flex: 1;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.extension-status {
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
gap: 4px;
|
|
252
|
+
padding: 2px 8px 2px 4px;
|
|
253
|
+
border-radius: 100px;
|
|
254
|
+
min-height: 20px;
|
|
255
|
+
color: #fff;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.extension-status.installed {
|
|
259
|
+
background-color: #24af75;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.extension-status.not-installed {
|
|
263
|
+
background-color: #eb4577;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.extension-btn {
|
|
267
|
+
border-color: #a5eec7;
|
|
268
|
+
background-color: #f2fcf7;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.extension-btn:hover {
|
|
272
|
+
background-color: #e6f9ec;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.mobile-btn {
|
|
276
|
+
border-color: #e3e7ee;
|
|
277
|
+
background-color: #f3f5fa;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.mobile-btn:hover {
|
|
281
|
+
background-color: #e8edf5;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.footer {
|
|
285
|
+
width: 100%;
|
|
286
|
+
border-top: 1px solid rgba(15, 40, 48, 0.12);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.footer-content {
|
|
290
|
+
display: flex;
|
|
291
|
+
flex-direction: column;
|
|
292
|
+
gap: 12px;
|
|
293
|
+
margin-top: 24px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.footer-branding {
|
|
297
|
+
display: flex;
|
|
298
|
+
gap: 12px;
|
|
299
|
+
align-items: center;
|
|
300
|
+
justify-content: center;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.footer-links {
|
|
304
|
+
width: 100%;
|
|
305
|
+
display: flex;
|
|
306
|
+
gap: 24px;
|
|
307
|
+
align-items: center;
|
|
308
|
+
justify-content: center;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.footer-links a {
|
|
312
|
+
text-decoration: none;
|
|
313
|
+
color: inherit;
|
|
314
|
+
cursor: pointer;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.footer-links a:hover {
|
|
318
|
+
text-decoration: underline;
|
|
319
|
+
color: #75849a;
|
|
320
|
+
}
|
|
321
|
+
`;
|
|
322
|
+
__decorate([
|
|
323
|
+
(0, decorators_js_1.property)()
|
|
324
|
+
], KeyringSelectionModal.prototype, "title", void 0);
|
|
325
|
+
__decorate([
|
|
326
|
+
(0, decorators_js_1.property)()
|
|
327
|
+
], KeyringSelectionModal.prototype, "subtitle", void 0);
|
|
328
|
+
__decorate([
|
|
329
|
+
(0, decorators_js_1.property)()
|
|
330
|
+
], KeyringSelectionModal.prototype, "isExtensionInstalled", void 0);
|
|
331
|
+
__decorate([
|
|
332
|
+
(0, decorators_js_1.property)({ attribute: "extension-btn-text" })
|
|
333
|
+
], KeyringSelectionModal.prototype, "extensionBtnText", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
(0, decorators_js_1.property)({ attribute: "mobile-btn-text" })
|
|
336
|
+
], KeyringSelectionModal.prototype, "mobileBtnText", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
(0, decorators_js_1.state)()
|
|
339
|
+
], KeyringSelectionModal.prototype, "mobileSelected", void 0);
|
|
340
|
+
exports.KeyringSelectionModal = KeyringSelectionModal = __decorate([
|
|
341
|
+
(0, decorators_js_1.customElement)("keyring-selection-modal")
|
|
342
|
+
], KeyringSelectionModal);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../components/keyring-button";
|
|
3
|
+
import "../components/keyring-text";
|
|
4
|
+
import "../icons/error-circle";
|
|
5
|
+
export declare class KeyringTerminatedModal extends LitElement {
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle: string;
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
|
11
|
+
private handleClose;
|
|
12
|
+
private stopPropagation;
|
|
13
|
+
private trapFocus;
|
|
14
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.KeyringTerminatedModal = void 0;
|
|
10
|
+
const lit_1 = require("lit");
|
|
11
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
12
|
+
require("../components/keyring-button");
|
|
13
|
+
require("../components/keyring-text");
|
|
14
|
+
require("../icons/error-circle");
|
|
15
|
+
let KeyringTerminatedModal = class KeyringTerminatedModal extends lit_1.LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.title = "Session Terminated";
|
|
19
|
+
this.subtitle = "Your verification session has expired or is terminated. Please start a new session to continue.";
|
|
20
|
+
}
|
|
21
|
+
connectedCallback() {
|
|
22
|
+
super.connectedCallback();
|
|
23
|
+
this.trapFocus();
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (0, lit_1.html) `
|
|
27
|
+
<div class="modal" @click=${this.stopPropagation}>
|
|
28
|
+
<div class="content">
|
|
29
|
+
<error-circle-icon></error-circle-icon>
|
|
30
|
+
|
|
31
|
+
<div class="text-wrapper">
|
|
32
|
+
<keyring-text variant="text-3xl" weight="medium">${this.title}</keyring-text>
|
|
33
|
+
<keyring-text variant="text-sm" align="center">${this.subtitle}</keyring-text>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<keyring-button class="close-button" @click=${this.handleClose}>Close Session</keyring-button>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
// Event handlers
|
|
42
|
+
handleClose() {
|
|
43
|
+
this.dispatchEvent(new CustomEvent("close", { bubbles: true, composed: true }));
|
|
44
|
+
}
|
|
45
|
+
stopPropagation(e) {
|
|
46
|
+
e.stopPropagation();
|
|
47
|
+
}
|
|
48
|
+
trapFocus() {
|
|
49
|
+
var _a;
|
|
50
|
+
// Simple focus trap implementation
|
|
51
|
+
const focusableElements = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
52
|
+
if (focusableElements && focusableElements.length > 0) {
|
|
53
|
+
focusableElements[0].focus();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
exports.KeyringTerminatedModal = KeyringTerminatedModal;
|
|
58
|
+
KeyringTerminatedModal.styles = (0, lit_1.css) `
|
|
59
|
+
:host {
|
|
60
|
+
position: fixed;
|
|
61
|
+
top: 0;
|
|
62
|
+
left: 0;
|
|
63
|
+
right: 0;
|
|
64
|
+
bottom: 0;
|
|
65
|
+
background-color: rgba(15, 40, 48, 0.45);
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
z-index: 10000;
|
|
70
|
+
font-family: Inter, "Segoe UI", Roboto, sans-serif;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.modal {
|
|
74
|
+
background: white;
|
|
75
|
+
border-radius: 20px;
|
|
76
|
+
display: flex;
|
|
77
|
+
gap: 24px;
|
|
78
|
+
padding: 40px 24px 40px 24px;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
align-items: center;
|
|
81
|
+
max-width: 524px;
|
|
82
|
+
width: 100%;
|
|
83
|
+
max-height: 90vh;
|
|
84
|
+
overflow-y: auto;
|
|
85
|
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.content {
|
|
89
|
+
width: 100%;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
gap: 24px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.text-wrapper {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
gap: 12px;
|
|
103
|
+
width: 100%;
|
|
104
|
+
max-width: 400px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.close-button {
|
|
108
|
+
width: 100%;
|
|
109
|
+
max-width: 200px;
|
|
110
|
+
margin: 0 auto;
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, decorators_js_1.property)()
|
|
115
|
+
], KeyringTerminatedModal.prototype, "title", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, decorators_js_1.property)()
|
|
118
|
+
], KeyringTerminatedModal.prototype, "subtitle", void 0);
|
|
119
|
+
exports.KeyringTerminatedModal = KeyringTerminatedModal = __decorate([
|
|
120
|
+
(0, decorators_js_1.customElement)("keyring-terminated-modal")
|
|
121
|
+
], KeyringTerminatedModal);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AppleIcon = void 0;
|
|
10
|
+
const lit_1 = require("lit");
|
|
11
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
12
|
+
let AppleIcon = class AppleIcon extends lit_1.LitElement {
|
|
13
|
+
render() {
|
|
14
|
+
return (0, lit_1.html) `
|
|
15
|
+
<svg
|
|
16
|
+
width="120"
|
|
17
|
+
height="41"
|
|
18
|
+
viewBox="0 0 120 41"
|
|
19
|
+
fill="none"
|
|
20
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
+
>
|
|
22
|
+
<rect x="0.5" y="1" width="119" height="39" rx="5.5" fill="black" />
|
|
23
|
+
<rect x="0.5" y="1" width="119" height="39" rx="5.5" stroke="#A6A6A6" />
|
|
24
|
+
<path
|
|
25
|
+
d="M24.7045 21.2631C24.7166 20.3432 24.9669 19.4412 25.4321 18.6411C25.8972 17.841 26.5621 17.1688 27.3648 16.687C26.8548 15.9759 26.1821 15.3908 25.4 14.978C24.6178 14.5652 23.7479 14.3361 22.8592 14.309C20.9635 14.1147 19.1258 15.4164 18.1598 15.4164C17.1751 15.4164 15.6878 14.3282 14.0862 14.3604C13.0502 14.3931 12.0406 14.6872 11.1557 15.2141C10.2708 15.741 9.54075 16.4826 9.03674 17.3669C6.85352 21.0573 8.48201 26.4809 10.5734 29.464C11.6197 30.9247 12.8426 32.5563 14.4428 32.4985C16.0086 32.4351 16.5934 31.5237 18.4835 31.5237C20.3561 31.5237 20.9048 32.4985 22.5374 32.4617C24.2176 32.4351 25.2762 30.9945 26.2859 29.5199C27.0377 28.4791 27.6162 27.3288 28 26.1116C27.0238 25.7085 26.1908 25.0338 25.6048 24.1716C25.0187 23.3094 24.7056 22.2979 24.7045 21.2631Z"
|
|
26
|
+
fill="white"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d="M21.6201 12.3471C22.5362 11.2734 22.9875 9.89335 22.8782 8.5C21.4786 8.64352 20.1857 9.2966 19.2572 10.3291C18.8033 10.8335 18.4556 11.4203 18.234 12.056C18.0125 12.6917 17.9215 13.3638 17.9661 14.0338C18.6662 14.0408 19.3588 13.8927 19.9917 13.6005C20.6246 13.3084 21.1814 12.8798 21.6201 12.3471Z"
|
|
30
|
+
fill="white"
|
|
31
|
+
/>
|
|
32
|
+
<path
|
|
33
|
+
d="M36.791 9.00146H38.8608C40.6494 9.00146 41.5195 10.0649 41.5195 11.9941C41.5195 13.9233 40.6406 15 38.8608 15H36.791V9.00146ZM37.7886 9.84082V14.1606H38.751C39.9375 14.1606 40.4956 13.4443 40.4956 12.0073C40.4956 10.5615 39.9331 9.84082 38.751 9.84082H37.7886ZM44.6748 10.2759C45.8877 10.2759 46.7358 11.0625 46.7358 12.3677V12.9697C46.7358 14.3188 45.8877 15.0791 44.6748 15.0791C43.4443 15.0791 42.605 14.3276 42.605 12.9741V12.3721C42.605 11.1021 43.4575 10.2759 44.6748 10.2759ZM44.6792 11.0625C43.9849 11.0625 43.5894 11.6426 43.5894 12.4204V12.939C43.5894 13.7168 43.9585 14.2925 44.6792 14.2925C45.3911 14.2925 45.7559 13.7212 45.7559 12.939V12.4204C45.7559 11.6426 45.3735 11.0625 44.6792 11.0625ZM53.8989 10.355L52.6772 15H51.6841L50.7129 11.5723H50.6865L49.7329 15H48.7354L47.4609 10.355H48.5112L49.2583 13.897H49.3022L50.2383 10.355H51.1567L52.1191 13.897H52.1631L52.9233 10.355H53.8989ZM54.8657 15V10.355H55.8237V11.1899H55.8721C55.9907 10.8252 56.3291 10.2847 57.2695 10.2847C58.2056 10.2847 58.834 10.8032 58.834 11.8623V15H57.8584V12.1479C57.8584 11.4404 57.4893 11.1152 56.9399 11.1152C56.2192 11.1152 55.8413 11.6689 55.8413 12.4204V15H54.8657ZM60.3105 15V8.68506H61.2861V15H60.3105ZM64.6348 10.2759C65.8477 10.2759 66.6958 11.0625 66.6958 12.3677V12.9697C66.6958 14.3188 65.8477 15.0791 64.6348 15.0791C63.4043 15.0791 62.5649 14.3276 62.5649 12.9741V12.3721C62.5649 11.1021 63.4175 10.2759 64.6348 10.2759ZM64.6392 11.0625C63.9448 11.0625 63.5493 11.6426 63.5493 12.4204V12.939C63.5493 13.7168 63.9185 14.2925 64.6392 14.2925C65.3511 14.2925 65.7158 13.7212 65.7158 12.939V12.4204C65.7158 11.6426 65.3335 11.0625 64.6392 11.0625ZM69.2227 15.0703C68.3218 15.0703 67.7021 14.5166 67.7021 13.6509C67.7021 12.8291 68.2734 12.2754 69.3457 12.2754H70.519V11.8403C70.519 11.3086 70.1807 11.0581 69.6445 11.0581C69.1172 11.0581 68.8799 11.2778 68.8052 11.5854H67.8779C67.9351 10.8076 68.5195 10.2847 69.6753 10.2847C70.6685 10.2847 71.4902 10.6978 71.4902 11.8535V15H70.563V14.3979H70.519C70.3125 14.7539 69.9082 15.0703 69.2227 15.0703ZM69.5259 14.3145C70.0796 14.3145 70.519 13.9365 70.519 13.4312V12.9302H69.4995C68.9326 12.9302 68.6821 13.2158 68.6821 13.6025C68.6821 14.0859 69.0864 14.3145 69.5259 14.3145ZM74.4961 10.2935C75.1509 10.2935 75.6519 10.5835 75.832 11.0537H75.8804V8.68506H76.856V15H75.9067V14.2573H75.8584C75.7178 14.7275 75.1597 15.0615 74.4829 15.0615C73.415 15.0615 72.7207 14.3013 72.7207 13.0752V12.2798C72.7207 11.0537 73.4282 10.2935 74.4961 10.2935ZM74.7686 11.0933C74.1182 11.0933 73.7139 11.5767 73.7139 12.4204V12.9302C73.7139 13.7783 74.1226 14.2617 74.7905 14.2617C75.4497 14.2617 75.8804 13.7827 75.8804 12.9917V12.2886C75.8804 11.5723 75.4102 11.0933 74.7686 11.0933ZM82.2129 10.2759C83.4258 10.2759 84.2739 11.0625 84.2739 12.3677V12.9697C84.2739 14.3188 83.4258 15.0791 82.2129 15.0791C80.9824 15.0791 80.1431 14.3276 80.1431 12.9741V12.3721C80.1431 11.1021 80.9956 10.2759 82.2129 10.2759ZM82.2173 11.0625C81.5229 11.0625 81.1274 11.6426 81.1274 12.4204V12.939C81.1274 13.7168 81.4966 14.2925 82.2173 14.2925C82.9292 14.2925 83.2939 13.7212 83.2939 12.939V12.4204C83.2939 11.6426 82.9116 11.0625 82.2173 11.0625ZM85.5308 15V10.355H86.4888V11.1899H86.5371C86.6558 10.8252 86.9941 10.2847 87.9346 10.2847C88.8706 10.2847 89.499 10.8032 89.499 11.8623V15H88.5234V12.1479C88.5234 11.4404 88.1543 11.1152 87.605 11.1152C86.8843 11.1152 86.5063 11.6689 86.5063 12.4204V15H85.5308ZM93.2739 10.3857V9.22559H94.2275V10.3857H95.269V11.1504H94.2275V13.6157C94.2275 14.1211 94.4165 14.2617 94.9395 14.2617C95.0713 14.2617 95.2471 14.2529 95.3218 14.2441V14.9912C95.2427 15.0044 94.9175 15.0308 94.6978 15.0308C93.5684 15.0308 93.2607 14.6265 93.2607 13.6948V11.1504H92.5532V10.3857H93.2739ZM96.4995 15V8.68506H97.4707V11.1899H97.519C97.6201 10.8604 97.998 10.2847 98.9297 10.2847C99.835 10.2847 100.481 10.8076 100.481 11.8667V15H99.5098V12.1523C99.5098 11.4448 99.1187 11.1152 98.5649 11.1152C97.8662 11.1152 97.4707 11.6646 97.4707 12.4204V15H96.4995ZM103.755 15.0791C102.489 15.0791 101.703 14.3013 101.703 12.9917V12.3633C101.703 11.0449 102.564 10.2759 103.698 10.2759C104.862 10.2759 105.684 11.0845 105.684 12.3633V12.9082H102.669V13.1367C102.669 13.8047 103.065 14.2969 103.75 14.2969C104.26 14.2969 104.612 14.0552 104.678 13.7651H105.631C105.574 14.3013 105.007 15.0791 103.755 15.0791ZM102.669 12.271H104.73V12.2095C104.73 11.5107 104.322 11.0449 103.702 11.0449C103.083 11.0449 102.669 11.5107 102.669 12.2095V12.271Z"
|
|
34
|
+
fill="white"
|
|
35
|
+
/>
|
|
36
|
+
<path
|
|
37
|
+
d="M38.2061 31H36.1758L40.3066 19.0029H42.5391L46.6611 31H44.5518L43.4883 27.6777H39.2783L38.2061 31ZM41.4316 21.0771H41.3525L39.7266 26.1484H43.04L41.4316 21.0771ZM52.2644 31.1318C51.0603 31.1318 50.1462 30.5605 49.654 29.708H49.5837V34.085H47.6325V21.71H49.531V23.0723H49.6013C50.1111 22.1846 51.0603 21.5869 52.3083 21.5869C54.3913 21.5869 55.8767 23.1602 55.8767 25.9375V26.7637C55.8767 29.5234 54.4089 31.1318 52.2644 31.1318ZM51.8161 29.5234C53.0554 29.5234 53.8991 28.5303 53.8991 26.6582V26.0078C53.8991 24.2061 53.1081 23.1777 51.781 23.1777C50.4187 23.1777 49.5661 24.2852 49.5661 25.999V26.6582C49.5661 28.416 50.4275 29.5234 51.8161 29.5234ZM62.183 31.1318C60.9789 31.1318 60.0649 30.5605 59.5727 29.708H59.5024V34.085H57.5512V21.71H59.4496V23.0723H59.52C60.0297 22.1846 60.9789 21.5869 62.227 21.5869C64.31 21.5869 65.7954 23.1602 65.7954 25.9375V26.7637C65.7954 29.5234 64.3276 31.1318 62.183 31.1318ZM61.7348 29.5234C62.9741 29.5234 63.8178 28.5303 63.8178 26.6582V26.0078C63.8178 24.2061 63.0268 23.1777 61.6996 23.1777C60.3373 23.1777 59.4848 24.2852 59.4848 25.999V26.6582C59.4848 28.416 60.3461 29.5234 61.7348 29.5234ZM69.8387 27.6689H71.7899C71.8778 28.7061 72.7919 29.5938 74.4882 29.5938C76.0438 29.5938 76.9667 28.8643 76.9667 27.7305C76.9667 26.8164 76.3514 26.3242 75.0682 26.0166L73.0995 25.5244C71.5526 25.1641 70.1639 24.2412 70.1639 22.29C70.1639 19.9961 72.1679 18.7393 74.497 18.7393C76.8261 18.7393 78.7684 19.9961 78.8124 22.2373H76.8964C76.8085 21.2178 76.0262 20.374 74.4706 20.374C73.0995 20.374 72.1679 21.0244 72.1679 22.1406C72.1679 22.9229 72.7128 23.4854 73.829 23.7402L75.7889 24.2236C77.5907 24.6631 78.9618 25.5156 78.9618 27.5547C78.9618 29.9102 77.0546 31.2373 74.3387 31.2373C70.9989 31.2373 69.8827 29.2861 69.8387 27.6689ZM81.3395 21.71V19.4512H83.2555V21.71H85.066V23.2744H83.2555V28.2314C83.2555 29.2422 83.6334 29.5234 84.6793 29.5234C84.8463 29.5234 85.0045 29.5234 85.1188 29.5059V31C84.9605 31.0264 84.5914 31.0615 84.1959 31.0615C81.9371 31.0615 81.3131 30.2529 81.3131 28.3896V23.2744H80.0299V21.71H81.3395ZM90.3353 21.5518C93.0071 21.5518 94.4573 23.4326 94.4573 25.9639V26.7109C94.4573 29.3301 93.0159 31.1582 90.3353 31.1582C87.6546 31.1582 86.1956 29.3301 86.1956 26.7109V25.9639C86.1956 23.4414 87.6634 21.5518 90.3353 21.5518ZM90.3353 23.1162C88.8851 23.1162 88.1644 24.3027 88.1644 25.9902V26.7021C88.1644 28.3633 88.8763 29.585 90.3353 29.585C91.7943 29.585 92.4974 28.3721 92.4974 26.7021V25.9902C92.4974 24.2939 91.7855 23.1162 90.3353 23.1162ZM96.1055 31V21.71H98.0567V22.9316H98.127C98.3643 22.3516 99.0586 21.5781 100.351 21.5781C100.606 21.5781 100.825 21.5957 101.01 21.6309V23.3535C100.843 23.3096 100.5 23.2832 100.175 23.2832C98.6104 23.2832 98.083 24.25 98.083 25.498V31H96.1055ZM105.743 31.1582C103.256 31.1582 101.674 29.5146 101.674 26.7637V25.8232C101.674 23.2305 103.22 21.5518 105.664 21.5518C108.142 21.5518 109.636 23.292 109.636 25.9111V26.7988H103.598V27.0186C103.598 28.583 104.442 29.6201 105.769 29.6201C106.762 29.6201 107.439 29.1279 107.677 28.3281H109.531C109.25 29.8311 108.037 31.1582 105.743 31.1582ZM103.598 25.4365H107.729V25.4189C107.729 24.1006 106.912 23.0635 105.673 23.0635C104.416 23.0635 103.598 24.1006 103.598 25.4189V25.4365Z"
|
|
38
|
+
fill="white"
|
|
39
|
+
/>
|
|
40
|
+
</svg>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.AppleIcon = AppleIcon;
|
|
45
|
+
exports.AppleIcon = AppleIcon = __decorate([
|
|
46
|
+
(0, decorators_js_1.customElement)("apple-icon")
|
|
47
|
+
], AppleIcon);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CheckCircleIcon = void 0;
|
|
10
|
+
const lit_1 = require("lit");
|
|
11
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
12
|
+
let CheckCircleIcon = class CheckCircleIcon extends lit_1.LitElement {
|
|
13
|
+
render() {
|
|
14
|
+
return (0, lit_1.html) `
|
|
15
|
+
<svg
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
width="14"
|
|
18
|
+
height="13"
|
|
19
|
+
viewBox="0 0 14 13"
|
|
20
|
+
fill="none"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
fill-rule="evenodd"
|
|
24
|
+
clip-rule="evenodd"
|
|
25
|
+
d="M9.66135 5.31469L6.58268 8.39335C6.48468 8.49135 6.35735 8.54002 6.22935 8.54002C6.10068 8.54002 5.97335 8.49135 5.87535 8.39335L4.33602 6.85402C4.14068 6.65869 4.14068 6.34202 4.33602 6.14669C4.53135 5.95135 4.84735 5.95135 5.04268 6.14669L6.22935 7.33269L8.95402 4.60735C9.14935 4.41202 9.46602 4.41202 9.66135 4.60735C9.85668 4.80269 9.85668 5.11935 9.66135 5.31469ZM6.99935 0.166687C3.50735 0.166687 0.666016 3.00802 0.666016 6.50002C0.666016 9.99269 3.50735 12.8334 6.99935 12.8334C10.4913 12.8334 13.3327 9.99269 13.3327 6.50002C13.3327 3.00802 10.4913 0.166687 6.99935 0.166687Z"
|
|
26
|
+
fill="white"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.CheckCircleIcon = CheckCircleIcon;
|
|
33
|
+
exports.CheckCircleIcon = CheckCircleIcon = __decorate([
|
|
34
|
+
(0, decorators_js_1.customElement)("check-circle-icon")
|
|
35
|
+
], CheckCircleIcon);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CheckmarkIcon = void 0;
|
|
10
|
+
const lit_1 = require("lit");
|
|
11
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
12
|
+
let CheckmarkIcon = class CheckmarkIcon extends lit_1.LitElement {
|
|
13
|
+
render() {
|
|
14
|
+
return (0, lit_1.html) `
|
|
15
|
+
<svg
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
width="25"
|
|
18
|
+
height="25"
|
|
19
|
+
viewBox="0 0 25 25"
|
|
20
|
+
fill="none"
|
|
21
|
+
style="display: inline-block; vertical-align: text-top;"
|
|
22
|
+
>
|
|
23
|
+
<path
|
|
24
|
+
d="M18.0371 8.6933L10.4236 16.3068L6.96289 12.8461"
|
|
25
|
+
stroke="#21CDAE"
|
|
26
|
+
stroke-width="2"
|
|
27
|
+
stroke-linecap="round"
|
|
28
|
+
stroke-linejoin="round"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.CheckmarkIcon = CheckmarkIcon;
|
|
35
|
+
exports.CheckmarkIcon = CheckmarkIcon = __decorate([
|
|
36
|
+
(0, decorators_js_1.customElement)("checkmark-icon")
|
|
37
|
+
], CheckmarkIcon);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CloseCircleIcon = void 0;
|
|
10
|
+
const lit_1 = require("lit");
|
|
11
|
+
const decorators_js_1 = require("lit/decorators.js");
|
|
12
|
+
let CloseCircleIcon = class CloseCircleIcon extends lit_1.LitElement {
|
|
13
|
+
render() {
|
|
14
|
+
return (0, lit_1.html) `
|
|
15
|
+
<svg
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
width="14"
|
|
18
|
+
height="13"
|
|
19
|
+
viewBox="0 0 14 13"
|
|
20
|
+
fill="none"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
fill-rule="evenodd"
|
|
24
|
+
clip-rule="evenodd"
|
|
25
|
+
d="M6.99935 0.166687C3.50735 0.166687 0.666016 3.00802 0.666016 6.50002C0.666016 9.99269 3.50735 12.8334 6.99935 12.8334C10.4913 12.8334 13.3327 9.99269 13.3327 6.50002C13.3327 3.00802 10.4913 0.166687 6.99935 0.166687ZM9.52602 9.02669C9.72135 9.22202 9.72135 9.53869 9.52602 9.73402C9.42802 9.83202 9.30068 9.88069 9.17268 9.88069C9.04468 9.88069 8.91735 9.83202 8.81935 9.73402L6.99935 7.91402L5.17935 9.73402C5.08135 9.83202 4.95402 9.88069 4.82602 9.88069C4.69802 9.88069 4.57068 9.83202 4.47268 9.73402C4.27735 9.53869 4.27735 9.22202 4.47268 9.02669L6.29268 7.20669L4.47268 5.38669C4.27735 5.19135 4.27735 4.87469 4.47268 4.67935C4.66802 4.48402 4.98468 4.48402 5.18002 4.67935L6.99935 6.49935L8.81935 4.67935C9.01468 4.48402 9.33135 4.48402 9.52668 4.67935C9.72202 4.87469 9.72202 5.19135 9.52668 5.38669L7.70668 7.20669L9.52602 9.02669Z"
|
|
26
|
+
fill="white"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.CloseCircleIcon = CloseCircleIcon;
|
|
33
|
+
exports.CloseCircleIcon = CloseCircleIcon = __decorate([
|
|
34
|
+
(0, decorators_js_1.customElement)("close-circle-icon")
|
|
35
|
+
], CloseCircleIcon);
|