@popgrids/ui 0.0.1 → 0.0.4

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 CHANGED
@@ -1,2015 +1,2 @@
1
- "use strict";var B=Object.defineProperty;var i0=Object.getOwnPropertyDescriptor;var Ap=Object.getOwnPropertyNames;var yp=Object.getPrototypeOf,Fp=Object.prototype.hasOwnProperty;var $p=Reflect.get;var qp=(n,e)=>{for(var t in e)B(n,t,{get:e[t],enumerable:!0})},Lp=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let h of Ap(e))!Fp.call(n,h)&&h!==t&&B(n,h,{get:()=>e[h],enumerable:!(i=i0(e,h))||i.enumerable});return n};var Ip=n=>Lp(B({},"__esModule",{value:!0}),n),p=(n,e,t,i)=>{for(var h=i>1?void 0:i?i0(e,t):e,k=n.length-1,M;k>=0;k--)(M=n[k])&&(h=(i?M(e,t,h):M(h))||h);return i&&h&&B(e,t,h),h};var o=(n,e,t)=>$p(yp(n),t,e);var zp={};qp(zp,{PopButton:()=>a,PopButtonLink:()=>f0,PopButtonVertical:()=>s,PopCodeInputField:()=>G0,PopCommentAvatar:()=>L0,PopCommentIcon:()=>Y0,PopElement:()=>z0,PopFocusIndicator:()=>K0,PopFormInputSimple:()=>T0,PopIcon:()=>pp,PopLoader:()=>Pp,PopLogo:()=>hp,PopSum:()=>dp,PopTimestampCountdown:()=>up,PopToast:()=>wp,colors:()=>_,sampleColor:()=>p0});module.exports=Ip(zp);var J=require("lit"),b=require("lit/decorators.js"),S=require("lit/directives/class-map.js"),Z=require("lit/directives/if-defined.js");var c0=require("lit");var o0=require("@popgrids/theme/lit"),l0=require("lit"),n0=[o0.themeStyles,l0.css`
2
- :host {
3
- box-sizing: border-box;
4
- }
5
-
6
- :host *,
7
- :host *::before,
8
- :host *::after {
9
- box-sizing: border-box;
10
- }
11
-
12
- [hidden] {
13
- display: none !important;
14
- }
15
-
16
- .sr-only {
17
- position: absolute;
18
- width: 1px;
19
- height: 1px;
20
- padding: 0;
21
- margin: -1px;
22
- overflow: hidden;
23
- clip: rect(0, 0, 0, 0);
24
- white-space: nowrap;
25
- border-width: 0;
26
- }
27
- `];var R=!1;function h0(){if(R)return;if(document.querySelector('link[href="https://rsms.me/inter/inter.css"]')){R=!0;return}let e=document.createElement("link");e.rel="stylesheet",e.href="https://rsms.me/inter/inter.css",document.head.appendChild(e),R=!0}var s0=require("lit"),x0=s0.css`
28
- :host {
29
- box-sizing: border-box;
30
- margin: 0;
31
- padding: 0;
32
- line-height: 1.5;
33
- color: var(--color-text-text-default, #000);
34
- font-family:
35
- var(--font-sans),
36
- -apple-system,
37
- BlinkMacSystemFont,
38
- "Segoe UI",
39
- Roboto,
40
- Helvetica,
41
- Arial,
42
- sans-serif;
43
- font-size: var(--text-base);
44
- line-height: var(--text-base--line-height);
45
- font-feature-settings: var(--font--feature-settings);
46
- font-variation-settings: var(--font--variation-settings);
47
- -moz-osx-font-smoothing: grayscale;
48
- -webkit-font-smoothing: antialiased;
49
- }
50
-
51
- h1,
52
- h2,
53
- h3,
54
- h4,
55
- h5,
56
- h6,
57
- p {
58
- margin: 0;
59
- font-size: inherit;
60
- font-weight: inherit;
61
- }
62
-
63
- ul,
64
- ol {
65
- list-style: none;
66
- padding: 0;
67
- margin: 0;
68
- }
69
-
70
- button,
71
- input,
72
- select,
73
- textarea {
74
- font-family: inherit;
75
- font-size: 100%;
76
- margin: 0;
77
- padding: 0;
78
- border: none;
79
- background: transparent;
80
- }
81
-
82
- a {
83
- color: inherit;
84
- text-decoration: none;
85
- }
86
-
87
- img,
88
- svg {
89
- max-width: 100%;
90
- display: block;
91
- }
92
- `;var P=class extends c0.LitElement{emit(e,t,i={bubbles:!0,composed:!0}){let h=new CustomEvent(e,{detail:t,...i});return this.dispatchEvent(h),h}constructor(){super(),h0()}};P.styles=[x0,n0];var H0=require("lit"),d0=H0.css`
93
- :host {
94
- display: inline-block;
95
- vertical-align: middle;
96
- }
97
-
98
- .button-link {
99
- display: inline-flex;
100
- align-items: center;
101
- gap: var(--button-link-gap, var(--spacing-xs));
102
- font-family: var(--font-sans);
103
- font-weight: var(--font-weight-medium);
104
- text-decoration: none;
105
- border: none;
106
- padding: 0;
107
- background: transparent;
108
- border-radius: var(--radius-sm);
109
- cursor: pointer;
110
- transition: all 0.2s ease-in-out;
111
- }
112
-
113
- .button-link:focus {
114
- outline: none;
115
- }
116
-
117
- .content {
118
- display: inline-flex;
119
- align-items: center;
120
- }
121
-
122
- .icon {
123
- display: inline-flex;
124
- align-items: center;
125
- justify-content: center;
126
- }
127
-
128
- /* Size Variants */
129
- .size-sm {
130
- font-size: var(--text-sm);
131
- line-height: var(--text-sm--line-height);
132
- letter-spacing: -0.6153846016296973%;
133
- }
134
-
135
- .size-md {
136
- font-size: var(--text-base);
137
- line-height: var(--text-base--line-height);
138
- }
139
-
140
- .size-lg {
141
- font-size: var(--text-lg);
142
- line-height: var(--text-lg--line-height);
143
- }
144
-
145
- /* Theme & Primary/Secondary Variants */
146
- .theme-default.primary {
147
- color: var(--color-text-text-default);
148
- }
149
-
150
- .theme-default.secondary {
151
- color: var(--color-text-text-default-dim-light);
152
- }
153
-
154
- .theme-white.primary,
155
- .theme-white.secondary {
156
- color: var(--color-text-text-white);
157
- }
158
-
159
- .theme-black.primary,
160
- .theme-black.secondary {
161
- color: var(--color-text-text-black);
162
- }
163
-
164
- /* States */
165
- /* Hover States */
166
- .theme-default:hover:not(:disabled) {
167
- background-color: var(--color-surface-alpha-alpha-default-10);
168
- box-shadow: 0 0 0 4px var(--color-surface-alpha-alpha-default-10);
169
- }
170
-
171
- .theme-white:hover:not(:disabled) {
172
- background-color: var(--color-surface-alpha-alpha-white-ghost);
173
- box-shadow: 0 0 0 4px var(--color-surface-alpha-alpha-white-ghost);
174
- }
175
-
176
- .theme-black:hover:not(:disabled) {
177
- background-color: var(--color-surface-alpha-alpha-default-10);
178
- box-shadow: 0 0 0 4px var(--color-surface-alpha-alpha-default-10);
179
- }
180
-
181
- /* Active/Pressed States */
182
- .button-link:active:not(:disabled) {
183
- transform: scale(0.98);
184
- }
185
-
186
- /* Focus States */
187
- .theme-default:focus-visible:not(:disabled),
188
- .theme-white:focus-visible:not(:disabled),
189
- .theme-black:focus-visible:not(:disabled) {
190
- background-color: var(--color-surface-buttons-conditional-bg-focus);
191
- color: var(--color-text-text-white);
192
- box-shadow: 0 0 0 4px var(--color-border-conditional-border-focus);
193
- outline: none;
194
- }
195
-
196
- /* Disabled States */
197
- .button-link:disabled,
198
- .button-link.disabled {
199
- color: var(--color-text-text-disabled);
200
- cursor: not-allowed;
201
- pointer-events: none;
202
- }
203
-
204
- /* Ensure WCAG contrast for focused state on each theme */
205
- .theme-default:focus-visible:not(:disabled) .icon ::slotted(*),
206
- .theme-white:focus-visible:not(:disabled) .icon ::slotted(*),
207
- .theme-black:focus-visible:not(:disabled) .icon ::slotted(*) {
208
- stroke: var(--color-text-text-white);
209
- }
210
-
211
- /* Size-specific adjustments for hover and focus shadow */
212
- .size-sm:hover:not(:disabled) {
213
- box-shadow: 0 0 0 2px var(--color-surface-alpha-alpha-default-10);
214
- }
215
-
216
- .size-sm:focus-visible:not(:disabled) {
217
- box-shadow: 0 0 0 2px var(--color-border-conditional-border-focus);
218
- }
219
-
220
- .size-md:hover:not(:disabled) {
221
- box-shadow: 0 0 0 3px var(--color-surface-alpha-alpha-default-10);
222
- }
223
-
224
- .size-md:focus-visible:not(:disabled) {
225
- box-shadow: 0 0 0 3px var(--color-border-conditional-border-focus);
226
- }
227
-
228
- .size-lg:hover:not(:disabled) {
229
- box-shadow: 0 0 0 4px var(--color-surface-alpha-alpha-default-10);
230
- }
231
-
232
- .size-lg:focus-visible:not(:disabled) {
233
- box-shadow: 0 0 0 4px var(--color-border-conditional-border-focus);
234
- }
235
- `;var x=class extends P{constructor(){super(...arguments);this.size="md";this.primary=!1;this.theme="default";this.disabled=!1;this.href="";this.target="_self";this.rel="";this.type="button";this.id=""}handleClick(t){if(this.disabled){t.preventDefault();return}this.emit("pop-button-link-click",{originalEvent:t})}handleKeyDown(t){this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.emit("pop-button-link-click",{originalEvent:t}))}render(){let t={"button-link":!0,[`size-${this.size}`]:!0,[`theme-${this.theme}`]:!0,primary:this.primary,secondary:!this.primary,disabled:this.disabled},i=J.html`
236
- <span part="content" class="content">
237
- <slot></slot>
238
- </span>
239
- <span part="icon" class="icon">
240
- <slot name="icon"></slot>
241
- </span>
242
- `;if(this.href&&!this.disabled){let h=this.rel||(this.target==="_blank"?"noopener noreferrer":void 0);return J.html`
243
- <a
244
- class=${(0,S.classMap)(t)}
245
- part="base"
246
- href=${this.href}
247
- target=${this.target}
248
- rel=${(0,Z.ifDefined)(h)}
249
- id=${(0,Z.ifDefined)(this.id||void 0)}
250
- aria-disabled="false"
251
- @click=${this.handleClick}
252
- @keydown=${this.handleKeyDown}
253
- >
254
- ${i}
255
- </a>
256
- `}return J.html`
257
- <button
258
- class=${(0,S.classMap)(t)}
259
- part="base"
260
- ?disabled=${this.disabled}
261
- type=${this.type}
262
- id=${(0,Z.ifDefined)(this.id||void 0)}
263
- aria-disabled=${this.disabled?"true":"false"}
264
- @click=${this.handleClick}
265
- @keydown=${this.handleKeyDown}
266
- >
267
- ${i}
268
- </button>
269
- `}};x.styles=[o(x,x,"styles"),d0],p([(0,b.property)({type:String,reflect:!0})],x.prototype,"size",2),p([(0,b.property)({type:Boolean,reflect:!0})],x.prototype,"primary",2),p([(0,b.property)({type:String,reflect:!0})],x.prototype,"theme",2),p([(0,b.property)({type:Boolean,reflect:!0})],x.prototype,"disabled",2),p([(0,b.property)({type:String})],x.prototype,"href",2),p([(0,b.property)({type:String})],x.prototype,"target",2),p([(0,b.property)({type:String})],x.prototype,"rel",2),p([(0,b.property)({type:String})],x.prototype,"type",2),p([(0,b.property)({type:String})],x.prototype,"id",2),x=p([(0,b.customElement)("pop-button-link")],x);var f0=x;var K=require("lit"),m=require("lit/decorators.js"),U=require("lit/directives/class-map.js");var v0=require("lit"),g0=v0.css`
270
- :host {
271
- display: inline-block;
272
- }
273
-
274
- .button-vertical {
275
- --button-vertical-background: var(--color-surface-buttons-secondary-bg-blank-resting, transparent);
276
- --button-vertical-background-hover: var(--color-surface-buttons-secondary-bg-blank-hover, rgba(0, 0, 0, 0.05));
277
- --button-vertical-background-active: var(--color-surface-buttons-secondary-bg-blank-resting, transparent);
278
- --button-vertical-background-focus: var(--color-surface-buttons-secondary-bg-blank-resting, transparent);
279
- --button-vertical-color: var(--color-text-text-default, #111827);
280
-
281
- align-items: center;
282
- background: var(--button-vertical-background);
283
- border-radius: var(--border-radius-sm, 6px);
284
- color: var(--button-vertical-color);
285
- display: inline-flex;
286
- font-size: var(--font-size-sm, 14px);
287
- font-weight: var(--font-weight-medium, 500);
288
- gap: var(--spacing-0-5, 0.125rem);
289
- isolation: isolate;
290
- min-width: 120px;
291
- padding: var(--spacing-2, 0.5rem) var(--spacing-2-5, 0.625rem) var(--spacing-2, 0.5rem) var(--spacing-2, 0.5rem);
292
- position: relative;
293
- border: none;
294
- cursor: pointer;
295
- width: 100%;
296
- text-decoration: none;
297
- }
298
-
299
- @media (hover: hover) and (pointer: fine) {
300
- .button-vertical:not(:disabled):hover {
301
- background: var(--button-vertical-background-hover);
302
- }
303
- }
304
-
305
- .button-vertical:active {
306
- background: var(--button-vertical-background-active);
307
- }
308
-
309
- .button-vertical:focus-visible {
310
- background: var(--button-vertical-background-focus);
311
- box-shadow: 0px 0px 0px 3px var(--color-blue-dark-600, #1e40af);
312
- outline: none;
313
- }
314
-
315
- .button-vertical--mini {
316
- justify-content: center;
317
- min-width: 40px;
318
- width: 40px;
319
- padding: var(--spacing-2, 0.5rem);
320
- }
321
-
322
- .button-vertical--mini .button-vertical__label {
323
- display: none;
324
- }
325
-
326
- .button-vertical--mini .button-vertical__leading {
327
- margin-right: 0;
328
- }
329
-
330
- .button-vertical--mini .button-vertical__trailing {
331
- position: absolute;
332
- right: -8px;
333
- top: 9px;
334
- }
335
-
336
- .button-vertical--current {
337
- --button-vertical-background: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
338
- --button-vertical-background-hover: var(--color-surface-buttons-primary-bg-brand-hover, #1e40af);
339
- --button-vertical-background-active: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
340
- --button-vertical-background-focus: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
341
- --button-vertical-color: var(--color-text-text-reversed, #ffffff);
342
- }
343
-
344
- .button-vertical__label {
345
- align-items: center;
346
- flex: 1 0 0;
347
- gap: var(--spacing-1-5, 0.375rem);
348
- line-height: var(--line-height-5, 1.375);
349
- overflow: hidden;
350
- text-align: left;
351
- text-overflow: ellipsis;
352
- white-space: nowrap;
353
- }
354
-
355
- .button-vertical--loading {
356
- cursor: not-allowed;
357
- pointer-events: none;
358
- }
359
-
360
- .button-vertical--loading .button-vertical__label,
361
- .button-vertical--loading .button-vertical__leading,
362
- .button-vertical--loading .button-vertical__trailing {
363
- visibility: hidden;
364
- }
365
-
366
- .button-vertical--loading .button-vertical__loader {
367
- display: flex;
368
- visibility: visible;
369
- }
370
-
371
- .button-vertical__leading {
372
- margin-right: 4px;
373
- }
374
-
375
- .button-vertical__loader {
376
- align-items: center;
377
- inset: 0;
378
- justify-content: center;
379
- position: absolute;
380
- visibility: hidden;
381
- }
382
-
383
- .button-vertical__loader-spinner {
384
- width: 20px;
385
- height: 20px;
386
- border-radius: 50%;
387
- border: 2px solid var(--button-vertical-color);
388
- border-top-color: transparent;
389
- animation: spin 1s linear infinite;
390
- }
391
-
392
- @keyframes spin {
393
- from {
394
- transform: rotate(0deg);
395
- }
396
- to {
397
- transform: rotate(360deg);
398
- }
399
- }
400
-
401
- .button-vertical:disabled {
402
- background: var(--color-surface-alpha-alpha-default-disabled-8, rgba(0, 0, 0, 0.08));
403
- color: var(--color-text-text-disabled, #9ca3af);
404
- cursor: not-allowed;
405
- }
406
- `;var s=class extends P{constructor(){super(...arguments);this.loading=!1;this.mini=!1;this.current=!1;this.variant="avatar";this.disabled=!1;this.loaderTheme="default";this.loaderVariant="spinner";this.type="button"}get buttonClasses(){return{"button-vertical":!0,"button-vertical--loading":this.loading,"button-vertical--mini":this.mini,"button-vertical--current":this.current,[`button-vertical--variant-${this.variant}`]:!0}}render(){let t=K.html`
407
- <span part="loader" class="button-vertical__loader">
408
- <div class="button-vertical__loader-spinner"></div>
409
- </span>
410
-
411
- <slot name="leading" part="leading" class="button-vertical__leading"></slot>
412
-
413
- <span part="label" class="button-vertical__label">
414
- <slot></slot>
415
- </span>
416
-
417
- <slot name="trailing" part="trailing" class="button-vertical__trailing"></slot>
418
- `;return this.href?K.html`
419
- <a
420
- part="base"
421
- class=${(0,U.classMap)(this.buttonClasses)}
422
- ?disabled=${this.disabled||this.loading}
423
- href=${this.href}
424
- aria-busy=${this.loading?"true":"false"}
425
- >
426
- ${t}
427
- </a>
428
- `:K.html`
429
- <button
430
- part="base"
431
- class=${(0,U.classMap)(this.buttonClasses)}
432
- ?disabled=${this.disabled||this.loading}
433
- type=${this.type}
434
- aria-busy=${this.loading?"true":"false"}
435
- >
436
- ${t}
437
- </button>
438
- `}};s.styles=[o(s,s,"styles"),g0],p([(0,m.property)({type:Boolean,reflect:!0})],s.prototype,"loading",2),p([(0,m.property)({type:Boolean,reflect:!0})],s.prototype,"mini",2),p([(0,m.property)({type:Boolean,reflect:!0})],s.prototype,"current",2),p([(0,m.property)({type:String,reflect:!0})],s.prototype,"variant",2),p([(0,m.property)({type:Boolean,reflect:!0})],s.prototype,"disabled",2),p([(0,m.property)({type:String})],s.prototype,"loaderTheme",2),p([(0,m.property)({type:String})],s.prototype,"loaderVariant",2),p([(0,m.property)({type:String})],s.prototype,"type",2),p([(0,m.property)({type:String})],s.prototype,"href",2),s=p([(0,m.customElement)("pop-button-vertical")],s);var E=require("lit"),c=require("lit/decorators.js"),O=require("lit/directives/class-map.js");var X0=require("lit"),u0=X0.css`
439
- :host {
440
- display: inline-block;
441
- }
442
-
443
- .button {
444
- /* Default variables */
445
- --bg-resting: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
446
- --bg-hover: var(--color-surface-buttons-primary-bg-brand-hover, #1e40af);
447
- --bg-active: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
448
- --bg-focused: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
449
- --backdrop-filter-blur-resting: 0px;
450
- --backdrop-filter-blur-hover: 0px;
451
- --backdrop-filter-blur-active: 0px;
452
- --backdrop-filter-blur-focused: 0px;
453
- --color-resting: var(--color-text-text-reversed, #ffffff);
454
- --color-hover: var(--color-text-text-reversed, #ffffff);
455
- --color-active: var(--color-text-text-reversed, #ffffff);
456
- --color-focused: var(--color-text-text-reversed, #ffffff);
457
- --font-size: var(--text-base, 16px);
458
- --line-height: var(--text-base--line-height, 1.5);
459
- --ring-resting: none;
460
- --ring-hover: none;
461
- --ring-active: none;
462
- --ring-focused: none;
463
-
464
- /* Button styles */
465
- align-items: center;
466
- background: var(--bg-resting);
467
- backdrop-filter: blur(var(--backdrop-filter-blur-resting));
468
- border-radius: var(--border-radius-sm, 4px);
469
- box-shadow: var(--ring-resting, none);
470
- color: var(--color-resting);
471
- display: inline-flex;
472
- font-size: var(--font-size);
473
- font-weight: var(--font-weight-medium, 500);
474
- justify-content: center;
475
- line-height: var(--line-height);
476
- position: relative;
477
- border: none;
478
- text-decoration: none;
479
- cursor: pointer;
480
- width: 100%;
481
- }
482
-
483
- /* Disabled state */
484
- .button:disabled,
485
- .button--disabled {
486
- backdrop-filter: blur(8px);
487
- background: var(--color-surface-alpha-alpha-default-disabled-8, rgba(0, 0, 0, 0.08));
488
- box-shadow: none;
489
- color: var(--color-text-text-disabled, #9ca3af);
490
- cursor: not-allowed;
491
- }
492
-
493
- /* Hover state */
494
- .button:not(:disabled):hover {
495
- backdrop-filter: blur(var(--backdrop-filter-blur-hover));
496
- background: var(--bg-hover);
497
- box-shadow: var(--ring-hover, none);
498
- color: var(--color-hover);
499
- }
500
-
501
- /* Active state */
502
- .button:not(:disabled):active {
503
- backdrop-filter: blur(var(--backdrop-filter-blur-active));
504
- background: var(--bg-active);
505
- box-shadow: var(--ring-active, none);
506
- color: var(--color-active);
507
- }
508
-
509
- /* Focus states */
510
- .button:focus {
511
- outline: none;
512
- }
513
-
514
- .button:focus-visible {
515
- backdrop-filter: blur(var(--backdrop-filter-blur-focused));
516
- background: var(--bg-focused);
517
- box-shadow: var(--ring-focused);
518
- color: var(--color-focused);
519
- outline: 3px solid var(--color-blue-dark-600, #1e40af);
520
- outline-offset: 0px;
521
- }
522
-
523
- /* Alignment */
524
- .button--align-left {
525
- justify-content: flex-start;
526
- }
527
-
528
- .button--align-left .button__label {
529
- margin-right: auto;
530
- overflow: hidden;
531
- text-overflow: ellipsis;
532
- }
533
-
534
- /* Collapsed state */
535
- .button--collapsed .button__label,
536
- .button--collapsed .button__trailing {
537
- display: none;
538
- }
539
-
540
- /* Loading state */
541
- .button--loading {
542
- cursor: not-allowed;
543
- pointer-events: none;
544
- }
545
-
546
- .button--loading .button__label,
547
- .button--loading .button__leading,
548
- .button--loading .button__trailing {
549
- visibility: hidden;
550
- }
551
-
552
- .button--loading .button__loader {
553
- display: flex;
554
- opacity: 1;
555
- }
556
-
557
- /* Rounded variation */
558
- .button--rounded {
559
- border-radius: var(--border-radius-full, 9999px);
560
- }
561
-
562
- /* Size variations */
563
- .button--size-md {
564
- --font-size: var(--text-sm, 14px);
565
- --line-height: var(--text-sm--line-height, 1.375);
566
- gap: var(--spacing-sm, 0.375rem);
567
- min-height: 40px;
568
- }
569
-
570
- .button--size-md:not(.button--collapsed) {
571
- padding: 0 var(--spacing-3, 0.75rem);
572
- }
573
-
574
- .button--size-md.button--highlight {
575
- --font-size: var(--text-base, 16px);
576
- --line-height: var(--text-base--line-height, 1.5);
577
- }
578
-
579
- .button--size-md.button--collapsed {
580
- min-width: 40px;
581
- padding: 0;
582
- }
583
-
584
- .button--size-md.button--rounded:not(.button--collapsed) {
585
- padding: 0 var(--spacing-4, 1rem);
586
- }
587
-
588
- .button--size-lg {
589
- --font-size: var(--text-lg, 18px);
590
- --line-height: var(--line-height-7, 1.75);
591
- gap: var(--spacing-2, 0.5rem);
592
- min-height: 54px;
593
- padding: 0 var(--spacing-5, 1.25rem);
594
- }
595
-
596
- .button--size-lg.button--collapsed {
597
- min-width: 54px;
598
- padding: 0;
599
- }
600
-
601
- .button--size-sm {
602
- --font-size: var(--text-xs, 12px);
603
- --line-height: var(--text-sm--line-height, 1.25);
604
- gap: var(--spacing-1, 0.25rem);
605
- min-height: 32px;
606
- padding: 0 var(--spacing-2, 0.5rem);
607
- }
608
-
609
- .button--size-sm.button--collapsed {
610
- min-width: 32px;
611
- padding: 0;
612
- }
613
-
614
- /* Button parts */
615
- .button__label {
616
- white-space: nowrap;
617
- }
618
-
619
- .button__loader {
620
- align-items: center;
621
- display: none;
622
- inset: 0;
623
- justify-content: center;
624
- opacity: 0;
625
- position: absolute;
626
- transition-duration: 0.2s;
627
- transition-property: opacity, display;
628
- }
629
-
630
- .button__loader-spinner {
631
- width: 20px;
632
- height: 20px;
633
- border-radius: 50%;
634
- border: 2px solid var(--color-text-text-reversed, #ffffff);
635
- border-top-color: transparent;
636
- animation: spin 1s linear infinite;
637
- }
638
-
639
- @keyframes spin {
640
- from {
641
- transform: rotate(0deg);
642
- }
643
- to {
644
- transform: rotate(360deg);
645
- }
646
- }
647
-
648
- /* Theme: Brand */
649
- /* Primary variant */
650
- .button--theme-brand.button--variant-primary {
651
- --bg-resting: var(--color-surface-buttons-secondary-bg-light-resting, #f9fafb);
652
- --bg-hover: var(--color-surface-buttons-secondary-bg-light-hover, #f3f4f6);
653
- --bg-active: var(--color-surface-buttons-secondary-bg-light-resting, #f9fafb);
654
- --bg-focused: var(--color-surface-buttons-secondary-bg-light-resting, #f9fafb);
655
- --color-resting: var(--color-text-text-default, #111827);
656
- --color-hover: var(--color-text-text-default, #111827);
657
- --color-active: var(--color-text-text-default, #111827);
658
- --color-focused: var(--color-text-text-default, #111827);
659
- }
660
-
661
- .button--theme-brand.button--variant-primary.button--current {
662
- --bg-resting: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
663
- --bg-hover: var(--color-surface-buttons-primary-bg-brand-hover, #1e40af);
664
- --bg-active: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
665
- --bg-focused: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
666
- --color-resting: var(--color-text-text-reversed, #ffffff);
667
- --color-hover: var(--color-text-text-reversed, #ffffff);
668
- --color-active: var(--color-text-text-reversed, #ffffff);
669
- --color-focused: var(--color-text-text-reversed, #ffffff);
670
- }
671
-
672
- .button--theme-brand.button--variant-primary.button--current.button--outline {
673
- --backdrop-filter-blur-resting: 8px;
674
- --backdrop-filter-blur-hover: 0px;
675
- --backdrop-filter-blur-active: 0px;
676
- --backdrop-filter-blur-focused: 8px;
677
- --bg-resting: var(--color-surface-alpha-alpha-reversed-ghost, rgba(255, 255, 255, 0.1));
678
- --bg-hover: var(--color-surface-buttons-primary-bg-brand-hover, #1e40af);
679
- --bg-active: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
680
- --bg-focused: var(--color-surface-alpha-alpha-reversed-ghost, rgba(255, 255, 255, 0.1));
681
- --color-resting: var(--color-text-text-default, #111827);
682
- --color-hover: var(--color-text-text-reversed, #ffffff);
683
- --color-active: var(--color-text-text-reversed, #ffffff);
684
- --color-focused: var(--color-text-text-default, #111827);
685
- --ring-resting: 0px 0px 0px 1px var(--color-border-border-reversed, #ffffff);
686
- --ring-hover: none;
687
- --ring-active: none;
688
- }
689
-
690
- .button--theme-brand.button--variant-primary.button--outline {
691
- --backdrop-filter-blur-resting: 8px;
692
- --backdrop-filter-blur-hover: 8px;
693
- --backdrop-filter-blur-active: 0px;
694
- --backdrop-filter-blur-focused: 8px;
695
- --bg-resting: var(--color-surface-alpha-alpha-reversed-ghost, rgba(255, 255, 255, 0.1));
696
- --bg-active: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
697
- --bg-focused: var(--color-surface-alpha-alpha-reversed-ghost, rgba(255, 255, 255, 0.1));
698
- --ring-resting: 0px 0px 0px 1px var(--color-border-border-reversed, #ffffff);
699
- --ring-hover: none;
700
- --ring-active: none;
701
- }
702
-
703
- /* Secondary variant */
704
- .button--theme-brand.button--variant-secondary {
705
- --backdrop-filter-blur-resting: 8px;
706
- --backdrop-filter-blur-hover: 8px;
707
- --backdrop-filter-blur-active: 0;
708
- --backdrop-filter-blur-focused: 8px;
709
- --bg-resting: var(--color-surface-buttons-secondary-bg-light-resting, #f9fafb);
710
- --bg-hover: var(--color-surface-buttons-secondary-bg-light-hover, #f3f4f6);
711
- --bg-active: var(--color-surface-buttons-secondary-bg-light-resting, #f9fafb);
712
- --bg-focused: var(--color-surface-buttons-secondary-bg-light-resting, #f9fafb);
713
- --color-resting: var(--color-text-text-default, #111827);
714
- --color-hover: var(--color-text-text-default, #111827);
715
- --color-active: var(--color-text-text-default, #111827);
716
- --color-focused: var(--color-text-text-default, #111827);
717
- --ring-resting: none;
718
- --ring-hover: 0px 0px 0px 1px var(--color-border-border-default, #d1d5db);
719
- --ring-active: none;
720
- }
721
-
722
- .button--theme-brand.button--variant-secondary.button--outline {
723
- --backdrop-filter-blur-resting: 8px;
724
- --backdrop-filter-blur-hover: 8px;
725
- --backdrop-filter-blur-active: 0px;
726
- --backdrop-filter-blur-focused: 8px;
727
- --bg-resting: var(--color-surface-alpha-alpha-reversed-ghost, rgba(255, 255, 255, 0.1));
728
- --bg-hover: var(--color-surface-alpha-alpha-reversed-ghost, rgba(255, 255, 255, 0.1));
729
- --bg-active: var(--color-surface-buttons-primary-bg-brand-resting, #2563eb);
730
- --bg-focused: var(--color-surface-alpha-alpha-reversed-ghost, rgba(255, 255, 255, 0.1));
731
- --color-resting: var(--color-text-text-default, #111827);
732
- --color-hover: var(--color-text-text-default, #111827);
733
- --color-active: var(--color-text-text-reversed, #ffffff);
734
- --color-focused: var(--color-text-text-default, #111827);
735
- --ring-hover: 0px 0px 0px 1px var(--color-border-border-reversed, #ffffff);
736
- --ring-active: none;
737
- }
738
-
739
- /* Tertiary variant */
740
- .button--theme-brand.button--variant-tertiary {
741
- --backdrop-filter-blur-resting: 8px;
742
- --backdrop-filter-blur-hover: 8px;
743
- --backdrop-filter-blur-active: 0px;
744
- --backdrop-filter-blur-focused: 0px;
745
- --bg-resting: var(--color-surface-buttons-secondary-bg-blank-resting, transparent);
746
- --bg-hover: var(--color-surface-buttons-secondary-bg-blank-hover, rgba(0, 0, 0, 0.05));
747
- --bg-active: var(--color-surface-buttons-secondary-bg-blank-resting, transparent);
748
- --bg-focused: var(--color-surface-buttons-secondary-bg-blank-resting, transparent);
749
- --color-resting: var(--color-text-text-default, #111827);
750
- --color-hover: var(--color-text-text-default, #111827);
751
- --color-active: var(--color-text-text-default, #111827);
752
- --color-focused: var(--color-text-text-default, #111827);
753
- }
754
-
755
- /* Theme: Glass */
756
- .button--theme-glass.button--variant-secondary.button--outline {
757
- --backdrop-filter-blur-resting: 8px;
758
- --backdrop-filter-blur-hover: 8px;
759
- --backdrop-filter-blur-active: 8px;
760
- --backdrop-filter-blur-focused: 8px;
761
- --bg-resting: var(--color-surface-alpha-alpha-default-ghost, rgba(0, 0, 0, 0.1));
762
- --bg-hover: var(--color-surface-alpha-alpha-default-ghost, rgba(0, 0, 0, 0.1));
763
- --bg-active: var(--color-surface-alpha-alpha-default-ghost, rgba(0, 0, 0, 0.1));
764
- --bg-focused: var(--color-surface-alpha-alpha-default-ghost, rgba(0, 0, 0, 0.1));
765
- --color-resting: var(--color-text-text-reversed, #ffffff);
766
- --color-hover: var(--color-text-text-reversed, #ffffff);
767
- --color-active: var(--color-text-text-reversed, #ffffff);
768
- --color-focused: var(--color-text-text-reversed, #ffffff);
769
- --ring-resting: none;
770
- --ring-hover: 0px 0px 0px 1px var(--color-border-border-default, #d1d5db);
771
- --ring-active: none;
772
- }
773
-
774
- .button--theme-glass.button--variant-secondary.button--outline.button--white {
775
- --bg-resting: var(--color-surface-alpha-alpha-black-ghost, rgba(0, 0, 0, 0.1));
776
- --bg-hover: var(--color-surface-alpha-alpha-black-ghost, rgba(0, 0, 0, 0.1));
777
- --bg-active: var(--color-surface-alpha-alpha-black-ghost, rgba(0, 0, 0, 0.1));
778
- --bg-focused: var(--color-surface-alpha-alpha-black-ghost, rgba(0, 0, 0, 0.1));
779
- --color-resting: var(--color-text-text-white, #ffffff);
780
- --color-hover: var(--color-text-text-white, #ffffff);
781
- --color-active: var(--color-text-text-white, #ffffff);
782
- --color-focused: var(--color-text-text-white, #ffffff);
783
- --ring-resting: none;
784
- --ring-hover: 0px 0px 0px 1px var(--color-border-border-white, rgba(255, 255, 255, 0.5));
785
- --ring-active: none;
786
- }
787
-
788
- .button--theme-glass.button--variant-secondary.button--outline.button--black {
789
- --bg-resting: var(--color-surface-alpha-alpha-white-ghost, rgba(255, 255, 255, 0.1));
790
- --bg-hover: var(--color-surface-alpha-alpha-white-ghost, rgba(255, 255, 255, 0.1));
791
- --bg-active: var(--color-surface-alpha-alpha-white-ghost, rgba(255, 255, 255, 0.1));
792
- --bg-focused: var(--color-surface-alpha-alpha-white-ghost, rgba(255, 255, 255, 0.1));
793
- --color-resting: var(--color-text-text-black, #000000);
794
- --color-hover: var(--color-text-text-black, #000000);
795
- --color-active: var(--color-text-text-black, #000000);
796
- --color-focused: var(--color-text-text-black, #000000);
797
- --ring-resting: none;
798
- --ring-hover: 0px 0px 0px 1px var(--color-border-border-black, rgba(0, 0, 0, 0.5));
799
- --ring-active: none;
800
- }
801
-
802
- /* Theme: Error */
803
- .button--theme-error {
804
- --backdrop-filter-blur-resting: 8px;
805
- --backdrop-filter-blur-hover: 8px;
806
- --backdrop-filter-blur-active: 0px;
807
- --backdrop-filter-blur-focused: 8px;
808
- --bg-resting: var(--color-surface-buttons-primary-bg-error-resting, #ef4444);
809
- --bg-hover: var(--color-surface-buttons-primary-bg-error-hover, #b91c1c);
810
- --bg-active: var(--color-surface-buttons-primary-bg-error-resting, #ef4444);
811
- --bg-focused: var(--color-surface-buttons-primary-bg-error-resting, #ef4444);
812
- --color-resting: var(--color-text-text-default, #111827);
813
- --color-hover: var(--color-text-text-default, #111827);
814
- --color-active: var(--color-text-text-default, #111827);
815
- --color-focused: var(--color-text-text-default, #111827);
816
- --ring-resting: none;
817
- --ring-hover: none;
818
- --ring-active: none;
819
- }
820
- `;var a=class extends P{constructor(){super(...arguments);this.theme="brand";this.variant="primary";this.size="md";this.align="center";this.loading=!1;this.disabled=!1;this.current=!1;this.outline=!1;this.collapsed=!1;this.highlight=!1;this.rounded=!1;this.white=!1;this.black=!1;this.loaderTheme="reversed";this.loaderVariant="spinner";this.type="button"}get buttonClasses(){return{button:!0,"button--loading":this.loading,"button--disabled":this.disabled,"button--current":this.current,"button--outline":this.outline,"button--collapsed":this.collapsed,"button--highlight":this.highlight,"button--rounded":this.rounded,[`button--theme-${this.theme}`]:!0,[`button--variant-${this.variant}`]:!0,[`button--size-${this.size}`]:!0,[`button--align-${this.align}`]:!0}}render(){let t=E.html`
821
- <span part="loader" class="button__loader">
822
- <div class="button__loader-spinner"></div>
823
- </span>
824
-
825
- <slot name="leading" part="leading" class="button__leading"></slot>
826
-
827
- <span part="label" class="button__label">
828
- <slot></slot>
829
- </span>
830
-
831
- <slot name="trailing" part="trailing" class="button__trailing"></slot>
832
- `;return this.href?E.html`
833
- <a
834
- part="base"
835
- class=${(0,O.classMap)(this.buttonClasses)}
836
- ?disabled=${this.disabled||this.loading}
837
- href=${this.href}
838
- aria-busy=${this.loading?"true":"false"}
839
- >
840
- ${t}
841
- </a>
842
- `:E.html`
843
- <button
844
- part="base"
845
- class=${(0,O.classMap)(this.buttonClasses)}
846
- ?disabled=${this.disabled||this.loading}
847
- type=${this.type}
848
- aria-busy=${this.loading?"true":"false"}
849
- >
850
- ${t}
851
- </button>
852
- `}};a.styles=[o(a,a,"styles"),u0],p([(0,c.property)({type:String,reflect:!0})],a.prototype,"theme",2),p([(0,c.property)({type:String,reflect:!0})],a.prototype,"variant",2),p([(0,c.property)({type:String,reflect:!0})],a.prototype,"size",2),p([(0,c.property)({type:String,reflect:!0})],a.prototype,"align",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"loading",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"disabled",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"current",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"outline",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"collapsed",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"highlight",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"rounded",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"white",2),p([(0,c.property)({type:Boolean,reflect:!0})],a.prototype,"black",2),p([(0,c.property)({type:String})],a.prototype,"loaderTheme",2),p([(0,c.property)({type:String})],a.prototype,"loaderVariant",2),p([(0,c.property)({type:String})],a.prototype,"type",2),p([(0,c.property)({type:String})],a.prototype,"href",2),a=p([(0,c.customElement)("pop-button")],a);var C0=require("lit"),q=require("lit/decorators.js");var b0=require("lit"),m0=b0.css`
853
- :host {
854
- display: inline-block;
855
- }
856
-
857
- .code-input-field {
858
- align-items: center;
859
- background: var(--color-surface-bg-default);
860
- border-radius: 8px;
861
- border: 1px solid var(--color-border-border-disabled);
862
- box-sizing: border-box;
863
- color: var(--color-text-text-default);
864
- display: flex;
865
- flex-direction: column;
866
- font-size: var(--text-display-xs);
867
- font-style: normal;
868
- font-weight: var(--font-weight-medium);
869
- height: 40px;
870
- justify-content: center;
871
- line-height: 36px;
872
- padding: 2px 8px;
873
- text-align: center;
874
- width: 40px;
875
- }
876
-
877
- .code-input-field:focus {
878
- outline: none;
879
- }
880
-
881
- .code-input-field:focus-visible {
882
- border-color: var(--color-text-text-default);
883
- box-shadow: 0px 0px 0px 3px #155eef;
884
- }
885
-
886
- .code-input-field::placeholder {
887
- color: var(--color-text-text-disabled);
888
- }
889
-
890
- .code-input-field:disabled {
891
- background: rgb(var(--color-gray-neutral-50));
892
- border-color: var(--color-border-border-edge-strong);
893
- }
894
- `;var d=class extends P{constructor(){super(...arguments);this.disabled=!1;this.name="";this.value=""}render(){return C0.html`
895
- <input
896
- autocomplete=${"one-time-code"}
897
- class="code-input-field"
898
- maxlength="1"
899
- part="base"
900
- pattern="^d$"
901
- title="Please enter a single digit (0-9)"
902
- type="text"
903
- .name=${this.name}
904
- .value=${this.value}
905
- .disabled=${this.disabled}
906
- @input=${this.onInput}
907
- />
908
- `}onInput(t){this.value=t.target.value}focus(){this.input.focus()}select(){this.input.select()}};d.styles=[o(d,d,"styles"),m0],p([(0,q.property)({type:Boolean})],d.prototype,"disabled",2),p([(0,q.property)()],d.prototype,"name",2),p([(0,q.property)()],d.prototype,"value",2),p([(0,q.query)(".code-input-field")],d.prototype,"input",2),d=p([(0,q.customElement)("pop-code-input-field")],d);var G0=d;var F0=require("lit"),W=require("lit/decorators.js"),$0=require("lit/directives/class-map.js"),q0=require("lit/directives/style-map.js");var _=["#DDD0BE","#E9DCBB","#E9DCBB","#C7D1B0","#C6D0CB","#E9DCBB","#C7D1B0","#E9DCBB","#DFC2C0","#CFD4C6","#D7E3E8","#CFD4C6","#D6B3B3","#E9DCBB","#CFCBDC","#BFD6D7","#E3D2C6","#D1E2E7","#D6B3B3","#BFD6D7","#E9DCBB","#C7D1B0","#DFC2C0","#D1E2E7","#CFD4C6","#E9DCBB","#D7E3E8","#CFD4C6","#C6D0CB","#E9DCBB","#C7D1B0","#E9DCBB","#CFCBDC","#E3D2C6","#E9DCBB"],p0=()=>_[Math.floor(Math.random()*_.length)];var w0=require("lit"),L=w0.css`
909
- .mask {
910
- mask-size: contain;
911
- mask-repeat: no-repeat;
912
- mask-position: center;
913
- }
914
-
915
- .mask--squircle {
916
- mask-image: url("data:image/svg+xml,%3csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M 0 80 C 0 14.12 14.12 0 80 0 C 145.88 0 160 14.12 160 80 C 160 145.88 145.88 160 80 160 C 14.12 160 0 145.88 0 80 Z'/%3e%3c/svg%3e");
917
- }
918
- `;var A0=require("lit"),y0=A0.css`
919
- :host {
920
- display: block;
921
-
922
- --comment-avatar-border-size: 1px;
923
- --comment-avatar-border-color: var(--color-border-singular-border-avatar);
924
- --comment-avatar-size: 32px;
925
- }
926
-
927
- .comment-avatar {
928
- align-items: center;
929
- display: flex;
930
- flex-shrink: 0;
931
- isolation: isolate;
932
- justify-content: center;
933
- position: relative;
934
- }
935
-
936
- .comment-avatar--size-xs {
937
- --comment-avatar-size: 32px;
938
- }
939
-
940
- .comment-avatar--size-sm {
941
- --comment-avatar-size: 56px;
942
- }
943
-
944
- .comment-avatar--size-md {
945
- --comment-avatar-size: 80px;
946
- }
947
-
948
- .comment-avatar--size-lg {
949
- --comment-avatar-size: 120px;
950
- }
951
-
952
- .comment-avatar--size-xl {
953
- --comment-avatar-size: 140px;
954
- }
955
-
956
- .comment-avatar__background {
957
- background-color: var(--comment-avatar-border-color);
958
- position: absolute;
959
- top: calc(var(--comment-avatar-border-size) * -1);
960
- left: calc(var(--comment-avatar-border-size) * -1);
961
- z-index: 10;
962
- width: calc(100% + calc(var(--comment-avatar-border-size) * 2));
963
- height: calc(100% + calc(var(--comment-avatar-border-size) * 2));
964
- }
965
-
966
- /**
967
- * Content
968
- */
969
-
970
- .comment-avatar__content {
971
- align-items: center;
972
- background-color: var(--color-surface-bg-default);
973
- display: flex;
974
- justify-content: center;
975
- overflow: hidden;
976
- position: relative;
977
- height: var(--comment-avatar-size);
978
- width: var(--comment-avatar-size);
979
- z-index: 20;
980
- }
981
-
982
- .comment-avatar__content::slotted(img) {
983
- -webkit-user-drag: none;
984
- align-self: stretch;
985
- flex: 1 0 0;
986
- height: var(--comment-avatar-size);
987
- object-fit: cover;
988
- pointer-events: none;
989
- position: absolute;
990
- user-select: none;
991
- width: var(--comment-avatar-size);
992
- }
993
- `;var g=class extends P{constructor(){super(...arguments);this.size="md";this.backgroundColor=p0()}render(){return F0.html`
994
- <div
995
- class=${(0,$0.classMap)({"comment-avatar":!0,[`comment-avatar--size-${this.size}`]:!0})}
996
- part="base"
997
- >
998
- <div class="comment-avatar__background mask mask--squircle" part="background"></div>
999
- <slot
1000
- class="comment-avatar__content mask mask--squircle"
1001
- part="content"
1002
- style=${(0,q0.styleMap)({backgroundColor:this.backgroundColor})}
1003
- ></slot>
1004
- </div>
1005
- `}};g.styles=[o(g,g,"styles"),L,y0],p([(0,W.property)({type:String,reflect:!0})],g.prototype,"size",2),p([(0,W.state)()],g.prototype,"backgroundColor",2),g=p([(0,W.customElement)("pop-comment-avatar")],g);var L0=g;var C=require("lit"),F=require("lit/decorators.js"),W0=require("lit/directives/class-map.js"),V0=require("lit/directives/if-defined.js"),k0=require("lit/directives/when.js");var I0=require("lit"),D0=I0.css`
1006
- :host {
1007
- display: block;
1008
-
1009
- --comment-icon-scale: 1;
1010
- --comment-icon-scale-hover: 1.1875;
1011
- --comment-icon-scale-active: 0.9375;
1012
- --comment-icon-size: 32px;
1013
- --comment-icon-color: var(--color-text-text-black);
1014
- --comment-icon-color-hover: var(--color-text-text-black);
1015
- --comment-icon-color-active: var(--color-text-text-black);
1016
- --comment-icon-color-focused: var(--color-text-text-black);
1017
- --comment-icon-background: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1018
- --comment-icon-background-hover: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1019
- --comment-icon-background-active: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1020
- --comment-icon-background-focused: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1021
- }
1022
-
1023
- .comment-icon {
1024
- align-items: center;
1025
- background: transparent;
1026
- border: none;
1027
- display: inline-flex;
1028
- height: 32px;
1029
- justify-content: center;
1030
- padding: 0;
1031
- position: relative;
1032
- transform-origin: center;
1033
- width: 32px;
1034
- }
1035
-
1036
- .comment-icon__focus-indicator {
1037
- display: none;
1038
- height: calc(100% + 3px);
1039
- inset: -1.5px;
1040
- transform-origin: center;
1041
- transform: scale(var(--comment-icon-scale));
1042
- transition: all 200ms ease-out;
1043
- width: calc(100% + 3px);
1044
- }
1045
-
1046
- .comment-icon:focus-visible .comment-icon__focus-indicator {
1047
- display: flex;
1048
- }
1049
-
1050
- .comment-icon:focus-visible {
1051
- outline: none;
1052
- }
1053
-
1054
- .comment-icon__inner {
1055
- align-items: center;
1056
- background: var(--comment-icon-background);
1057
- color: var(--comment-icon-color);
1058
- display: flex;
1059
- flex-direction: column;
1060
- flex-shrink: 0;
1061
- height: var(--comment-icon-size);
1062
- justify-content: center;
1063
- position: absolute;
1064
- transform-origin: center;
1065
- transition: all 200ms ease-out;
1066
- transform: scale(var(--comment-icon-scale));
1067
- width: var(--comment-icon-size);
1068
- }
1069
-
1070
- .comment-icon__icon-container {
1071
- align-items: center;
1072
- display: flex;
1073
- height: 100%;
1074
- justify-content: center;
1075
- transition: transform ease-out 150ms;
1076
- width: 100%;
1077
- }
1078
-
1079
- .comment-icon__icon-image {
1080
- display: flex;
1081
- width: 32px;
1082
- height: 32px;
1083
- }
1084
-
1085
- .comment-icon__icon {
1086
- display: hidden;
1087
- }
1088
-
1089
- @media (hover: hover) and (pointer: fine) {
1090
- .comment-icon:hover .comment-icon__inner {
1091
- background: var(--comment-icon-background-hover);
1092
- color: var(--comment-icon-color-hover);
1093
- transform: scale(var(--comment-icon-scale-hover));
1094
- }
1095
-
1096
- .comment-icon:hover .comment-icon__icon-image {
1097
- display: none;
1098
- }
1099
-
1100
- .comment-icon:hover .comment-icon__icon-image + .comment-icon__icon-icon {
1101
- display: flex;
1102
- }
1103
- }
1104
-
1105
- .comment-icon:active .comment-icon__inner {
1106
- background: var(--comment-icon-background-active);
1107
- color: var(--comment-icon-color-active);
1108
- transform: scale(var(--comment-icon-scale-active));
1109
- transition-duration: 100ms;
1110
- }
1111
-
1112
- .comment-icon:is(:focus-visible) .comment-icon__inner {
1113
- background: var(--comment-icon-background-focused);
1114
- color: var(--comment-icon-color-focused);
1115
- }
1116
-
1117
- /* Brand / Add */
1118
- .comment-icon--theme-brand.comment-icon--variant-add {
1119
- --comment-icon-color: var(--color-text-text-black);
1120
- --comment-icon-color-hover: var(--color-text-text-black);
1121
- --comment-icon-color-active: var(--color-text-text-black);
1122
- --comment-icon-color-focused: var(--color-text-text-black);
1123
- --comment-icon-background: transparent;
1124
- --comment-icon-background-hover: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1125
- --comment-icon-background-active: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1126
- --comment-icon-background-focused: transparent;
1127
- }
1128
-
1129
- /* Brand / Close */
1130
- .comment-icon--theme-brand.comment-icon--variant-close {
1131
- --comment-icon-color: var(--color-text-text-white);
1132
- --comment-icon-color-hover: var(--color-text-text-white);
1133
- --comment-icon-color-active: var(--color-text-text-white);
1134
- --comment-icon-color-focused: var(--color-text-text-white);
1135
- --comment-icon-background: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1136
- --comment-icon-background-hover: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1137
- --comment-icon-background-active: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1138
- --comment-icon-background-focused: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1139
- }
1140
-
1141
- /* Neutral / Add */
1142
- .comment-icon--theme-neutral.comment-icon--variant-add {
1143
- --comment-icon-color: var(--color-text-text-white);
1144
- --comment-icon-color-hover: var(--color-text-text-black);
1145
- --comment-icon-color-active: var(--color-text-text-black);
1146
- --comment-icon-color-focused: var(--color-text-text-white);
1147
- --comment-icon-background: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1148
- --comment-icon-background-hover: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1149
- --comment-icon-background-active: var(--color-surface-buttons-singular-bg-launch-icon-hover);
1150
- --comment-icon-background-focused: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1151
- }
1152
-
1153
- /* Neutral / Close */
1154
- .comment-icon--theme-neutral.comment-icon--variant-close {
1155
- --comment-icon-color: var(--color-text-text-white);
1156
- --comment-icon-color-hover: var(--color-text-text-white);
1157
- --comment-icon-color-active: var(--color-text-text-white);
1158
- --comment-icon-color-focused: var(--color-text-text-white);
1159
- --comment-icon-background: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1160
- --comment-icon-background-hover: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1161
- --comment-icon-background-active: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1162
- --comment-icon-background-focused: var(--color-surface-buttons-singular-bg-launch-icon-resting);
1163
- }
1164
-
1165
- /* Neutral / Send */
1166
- .comment-icon--theme-neutral.comment-icon--variant-send {
1167
- --comment-icon-color: var(--color-text-text-reversed);
1168
- --comment-icon-color-hover: var(--color-text-text-reversed);
1169
- --comment-icon-color-active: var(--color-text-text-reversed);
1170
- --comment-icon-color-focused: var(--color-text-text-reversed);
1171
- --comment-icon-background: var(--color-surface-bg-reversed);
1172
- --comment-icon-background-hover: var(--color-surface-bg-reversed);
1173
- --comment-icon-background-active: var(--color-surface-bg-reversed);
1174
- --comment-icon-background-focused: var(--color-surface-bg-reversed);
1175
- }
1176
-
1177
- /* Neutral / More */
1178
- .comment-icon--theme-neutral.comment-icon--variant-more {
1179
- --comment-icon-color: var(--color-text-text-default);
1180
- --comment-icon-color-hover: var(--color-text-text-reversed);
1181
- --comment-icon-color-active: var(--color-text-text-default);
1182
- --comment-icon-color-focused: var(--color-text-text-default);
1183
- --comment-icon-background: var(--color-surface-buttons-secondary-bg-blank-resting);
1184
- --comment-icon-background-hover: var(--color-surface-bg-reversed);
1185
- --comment-icon-background-active: var(--color-surface-buttons-secondary-bg-blank-resting);
1186
- --comment-icon-background-focused: var(--color-surface-buttons-secondary-bg-blank-resting);
1187
- }
1188
-
1189
- /* Neutral / Cancel */
1190
- .comment-icon--theme-neutral.comment-icon--variant-cancel {
1191
- --comment-icon-color: var(--color-text-text-default);
1192
- --comment-icon-color-hover: var(--color-text-text-default);
1193
- --comment-icon-color-active: var(--color-text-text-reversed);
1194
- --comment-icon-color-focused: var(--color-text-text-default);
1195
- --comment-icon-background: var(--color-surface-buttons-secondary-bg-blank-resting);
1196
- --comment-icon-background-hover: var(--color-surface-buttons-secondary-bg-blank-resting);
1197
- --comment-icon-background-active: var(--color-surface-bg-reversed);
1198
- --comment-icon-background-focused: var(--color-surface-buttons-secondary-bg-blank-resting);
1199
- }
1200
- `;var H=class extends P{constructor(){super(...arguments);this.counter=0;this.size="sm";this.theme="brand";this.variant="add";this.type="button";this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation()),this.dispatchEvent(new CustomEvent("pop-click",{bubbles:!0,composed:!0}))}get icon(){let t=C.html``;return this.theme==="brand"?this.variant==="add"?t=C.html`
1201
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
1202
- <path
1203
- d="M11 4.58325V17.4166M4.58333 10.9999H17.4167"
1204
- stroke="currentColor"
1205
- stroke-width="1.5"
1206
- stroke-linecap="round"
1207
- stroke-linejoin="round"
1208
- />
1209
- </svg>
1210
- `:this.variant==="close"&&(t=C.html`
1211
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
1212
- <path
1213
- d="M16.5 5.5L5.5 16.5M5.5 5.5L16.5 16.5"
1214
- stroke="currentColor"
1215
- stroke-width="1.5"
1216
- stroke-linecap="round"
1217
- stroke-linejoin="round"
1218
- />
1219
- </svg>
1220
- `):this.theme==="neutral"&&(this.variant==="add"?t=C.html`
1221
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
1222
- <path
1223
- d="M11.0002 4.58301V17.4163M4.5835 10.9997H17.4168"
1224
- stroke="currentColor"
1225
- stroke-width="1.5"
1226
- stroke-linecap="round"
1227
- stroke-linejoin="round"
1228
- />
1229
- </svg>
1230
- `:this.variant==="close"?t=C.html`
1231
- <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
1232
- <path
1233
- d="M11.4628 11.4627L20.5373 20.5373M11.4628 20.5373L20.5373 11.4627"
1234
- stroke="currentColor"
1235
- stroke-width="1.5"
1236
- stroke-linecap="round"
1237
- stroke-linejoin="round"
1238
- />
1239
- </svg>
1240
- `:this.variant==="more"?t=C.html`
1241
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
1242
- <path
1243
- d="M12.8335 16.5L7.3335 11L12.8335 5.5"
1244
- stroke="currentColor"
1245
- stroke-width="1.5"
1246
- stroke-linecap="round"
1247
- stroke-linejoin="round"
1248
- />
1249
- </svg>
1250
- `:this.variant==="send"?t=C.html`
1251
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
1252
- <path
1253
- d="M18.0394 3.68048C18.2139 3.61601 18.3837 3.78583 18.3193 3.96036L12.3858 20.0241C12.314 20.2185 12.0369 20.2123 11.9739 20.0149L9.89172 13.4908C9.86908 13.4199 9.88424 13.3423 9.93191 13.2851L14.4838 7.82287C14.6536 7.61906 14.3807 7.34616 14.1769 7.516L8.71467 12.0678C8.65746 12.1155 8.57987 12.1307 8.50893 12.108L1.98489 10.0259C1.78743 9.96287 1.78121 9.68575 1.97565 9.61393L18.0394 3.68048Z"
1254
- fill="currentColor"
1255
- />
1256
- </svg>
1257
- `:this.variant==="cancel"&&(t=C.html`
1258
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
1259
- <path
1260
- d="M16.5 5.5L5.5 16.5M5.5 5.5L16.5 16.5"
1261
- stroke="currentColor"
1262
- stroke-width="1.5"
1263
- stroke-linecap="round"
1264
- stroke-linejoin="round"
1265
- />
1266
- </svg>
1267
- `)),t}render(){return C.html`
1268
- <button
1269
- class=${(0,W0.classMap)({"comment-icon":!0,[`comment-icon--size-${this.size}`]:this.size,[`comment-icon--theme-${this.theme}`]:this.theme,[`comment-icon--variant-${this.variant}`]:this.variant})}
1270
- part="base"
1271
- type="${this.type}"
1272
- ?disabled="${this.disabled}"
1273
- @click="${this.handleClick}"
1274
- >
1275
- <pop-focus-indicator class="comment-icon__focus-indicator"></pop-focus-indicator>
1276
- <div class="comment-icon__inner mask mask--squircle">
1277
- <div class="comment-icon__icon-container" part="icon">
1278
- ${(0,k0.when)(this.iconUrl,()=>C.html`
1279
- <img src="${(0,V0.ifDefined)(this.iconUrl)}" alt="" class="comment-icon__icon-image" />
1280
- <slot class="comment-icon__icon" name="icon">${this.icon}</slot>
1281
- `,()=>C.html` <slot class="comment-icon__icon" name="icon">${this.icon}</slot> `)}
1282
- </div>
1283
- </div>
1284
- </button>
1285
- `}};H.styles=[o(H,H,"styles"),L,D0],p([(0,F.property)({type:Number})],H.prototype,"counter",2),p([(0,F.property)({type:String,attribute:"icon-url"})],H.prototype,"iconUrl",2),p([(0,F.property)({type:String})],H.prototype,"size",2),p([(0,F.property)({type:String})],H.prototype,"theme",2),p([(0,F.property)({type:String})],H.prototype,"variant",2),p([(0,F.property)({type:String})],H.prototype,"type",2),p([(0,F.property)({type:Boolean,reflect:!0})],H.prototype,"disabled",2),H=p([(0,F.customElement)("pop-comment-icon")],H);var Y0=H;var z0=P;var J0=require("lit"),Z0=require("lit/decorators.js");var Q0=require("lit"),B0=Q0.css`
1286
- :host {
1287
- position: absolute;
1288
- inset: -3px;
1289
- z-index: 1;
1290
- }
1291
- `;var A=class extends P{render(){return J0.html`
1292
- <svg part="base" viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">
1293
- <path
1294
- d="M27 1.5C22.0248 1.5 17.9244 1.76463 14.5866 2.50641C11.2319 3.25198 8.55629 4.4994 6.52784 6.52784C4.4994 8.55629 3.25198 11.2319 2.50641 14.5866C1.76463 17.9244 1.5 22.0248 1.5 27C1.5 31.9752 1.76463 36.0756 2.50641 39.4134C3.25198 42.7681 4.4994 45.4437 6.52784 47.4722C8.55629 49.5006 11.2319 50.748 14.5866 51.4936C17.9244 52.2354 22.0248 52.5 27 52.5C31.9752 52.5 36.0756 52.2354 39.4134 51.4936C42.7681 50.748 45.4437 49.5006 47.4722 47.4722C49.5006 45.4437 50.748 42.7681 51.4936 39.4134C52.2354 36.0756 52.5 31.9752 52.5 27C52.5 22.0248 52.2354 17.9244 51.4936 14.5866C50.748 11.2319 49.5006 8.55629 47.4722 6.52784C45.4437 4.4994 42.7681 3.25198 39.4134 2.50641C36.0756 1.76463 31.9752 1.5 27 1.5Z"
1295
- stroke="#155EEF"
1296
- stroke-width="3"
1297
- />
1298
- </svg>
1299
- `}};A.styles=[o(A,A,"styles"),B0],A=p([(0,Z0.customElement)("pop-focus-indicator")],A);var K0=A;var V=require("lit"),l=require("lit/decorators.js"),t0=require("lit/directives/class-map.js"),y=require("lit/directives/if-defined.js");var E0=require("lit"),N0=E0.css`
1300
- :host {
1301
- display: block;
1302
- width: 100%;
1303
-
1304
- --form-input-border-radius: 6px;
1305
- --form-input-padding: 8px 10px;
1306
- --form-input-font-size: var(--text-base);
1307
- --form-input-color: var(--color-text-text-default);
1308
- --form-input-placeholder-color: var(--color-text-text-placeholder);
1309
- --form-input-bg-color: var(--color-surface-bg-default);
1310
- --form-input-border-color: var(--color-border-border-edge);
1311
- --form-input-border-color-focus: var(--color-border-border-focused);
1312
- --form-input-border-color-error: var(--color-border-conditional-border-error);
1313
- --form-input-bg-color-error: var(--color-surface-alpha-alpha-error);
1314
- --form-input-hint-font-size: var(--text-sm);
1315
- --form-input-hint-line-height: var(--text-sm--line-height);
1316
- --form-input-hint-color: var(--color-text-text-default);
1317
- --form-input-error-color: var(--color-text-conditional-text-error);
1318
- --form-input-error-font-size: var(--text-sm);
1319
- --form-input-error-line-height: var(--text-sm--line-height);
1320
- --form-input-border-radius: var(--radius-sm);
1321
- }
1322
-
1323
- .form-input-container {
1324
- display: flex;
1325
- flex-direction: column;
1326
- gap: 6px;
1327
- }
1328
-
1329
- .form-input-wrapper {
1330
- display: flex;
1331
- align-items: center;
1332
- background-color: var(--form-input-bg-color);
1333
- border: 1px solid var(--form-input-border-color);
1334
- border-radius: var(--form-input-border-radius);
1335
- padding: var(--form-input-padding);
1336
- gap: 8px;
1337
- }
1338
-
1339
- .form-input-wrapper.has-focus {
1340
- border-color: var(--form-input-border-color-focus);
1341
- outline: none;
1342
- }
1343
-
1344
- .form-input-wrapper.form-input-wrapper--has-error {
1345
- border-color: var(--form-input-border-color-error);
1346
- background-color: var(--form-input-bg-color-error);
1347
- }
1348
-
1349
- .form-input-wrapper.is-disabled {
1350
- opacity: 0.5;
1351
- cursor: not-allowed;
1352
- border-color: #697586;
1353
- }
1354
-
1355
- .form-input {
1356
- flex: 1;
1357
- background: none;
1358
- border: none;
1359
- color: var(--form-input-color);
1360
- font-family: "Inter", sans-serif;
1361
- font-size: var(--form-input-font-size);
1362
- line-height: 1.5;
1363
- outline: none;
1364
- padding: 0;
1365
- width: 100%;
1366
- }
1367
-
1368
- .form-input::placeholder {
1369
- color: var(--form-input-placeholder-color);
1370
- }
1371
-
1372
- .form-input:disabled {
1373
- cursor: not-allowed;
1374
- color: var(--colors-text-text-disabled);
1375
- }
1376
- .form-input:disabled::placeholder {
1377
- color: var(--colors-text-text-disabled);
1378
- }
1379
- .form-input:disabled .form-input__hint {
1380
- color: var(--colors-text-text-disabled);
1381
- }
1382
-
1383
- .form-input__hint {
1384
- font-size: var(--form-input-hint-font-size);
1385
- line-height: var(--form-input-hint-line-height);
1386
- color: var(--form-input-hint-color);
1387
- }
1388
-
1389
- .form-input__error {
1390
- color: var(--form-input-error-color);
1391
- font-size: var(--form-input-error-font-size);
1392
- line-height: var(--form-input-error-line-height);
1393
- }
1394
-
1395
- .icon {
1396
- width: 20px;
1397
- height: 20px;
1398
- background-size: contain;
1399
- background-repeat: no-repeat;
1400
- background-position: center;
1401
- }
1402
-
1403
- .icon svg {
1404
- width: 100%;
1405
- height: 100%;
1406
- }
1407
-
1408
- .error-icon {
1409
- color: var(--color-text-conditional-text-error);
1410
- }
1411
-
1412
- .success-icon {
1413
- color: var(--color-text-conditional-text-success);
1414
- }
1415
- `;var r=class extends P{constructor(){super(...arguments);this.value="";this.type="text";this.disabled=!1;this.error=!1;this.required=!1;this.readonly=!1;this._hasFocus=!1;this._hasBlurred=!1;this._hasBeenValidated=!1;this._showValidationMessage=!1;this._validationMessage=""}checkValidity(){if(!this.input)return!0;let t=this.input.checkValidity();return!t&&!this.error?(this._validationMessage=this.input.validationMessage,this.error=!0,this.errorMessage=this._validationMessage):t&&this.error&&(this.error=!1,this._validationMessage="",this.errorMessage=void 0),this.emit("pop-invalid",{valid:t,validationMessage:this._validationMessage,validity:this.input.validity}),t}handleInput(t){let i=t.target;this.value=i.value,this.emit("pop-input",{value:this.value})}handleFocus(){this._hasFocus=!0,this._showValidationMessage=!1,this.emit("pop-focus")}handleBlur(){this._hasFocus=!1,this._hasBlurred=!0,this._hasBeenValidated=!0,this._showValidationMessage=!0,this.checkValidity(),this.emit("pop-blur")}render(){let t=!!(this._showValidationMessage&&this.errorMessage);return V.html`
1416
- <div
1417
- class=${(0,t0.classMap)({"form-input-container":!0})}
1418
- >
1419
- <div
1420
- class=${(0,t0.classMap)({"form-input-wrapper":!0,"has-focus":this._hasFocus,"is-disabled":this.disabled,"form-input-wrapper--has-error":t&&this.error})}
1421
- part="base"
1422
- >
1423
- <slot name="prefix"></slot>
1424
-
1425
- <input
1426
- aria-invalid=${this.error?"true":"false"}
1427
- class="form-input"
1428
- type=${this.type}
1429
- placeholder=${(0,y.ifDefined)(this.placeholder)}
1430
- name=${(0,y.ifDefined)(this.name)}
1431
- autocomplete=${(0,y.ifDefined)(this.autocomplete)}
1432
- minlength=${(0,y.ifDefined)(this.minlength)}
1433
- maxlength=${(0,y.ifDefined)(this.maxlength)}
1434
- pattern=${(0,y.ifDefined)(this.pattern)}
1435
- min=${(0,y.ifDefined)(this.min)}
1436
- max=${(0,y.ifDefined)(this.max)}
1437
- step=${(0,y.ifDefined)(this.step)}
1438
- inputmode=${(0,y.ifDefined)(this.inputmode)}
1439
- .value=${this.value}
1440
- ?disabled=${this.disabled}
1441
- ?required=${this.required}
1442
- ?readonly=${this.readonly}
1443
- @input=${this.handleInput}
1444
- @focus=${this.handleFocus}
1445
- @blur=${this.handleBlur}
1446
- part="input"
1447
- />
1448
-
1449
- <slot name="suffix"></slot>
1450
-
1451
- ${t?this.error?V.html` <pop-icon class="error-icon" name="slash-circle-01" size="20"></pop-icon> `:this.value?V.html` <pop-icon class="success-icon" name="check-circle" size="20"></pop-icon> `:"":""}
1452
- </div>
1453
-
1454
- <slot class="form-input__hint" name="hint"></slot>
1455
-
1456
- ${t?V.html` <div class="form-input__error" part="error">${this.errorMessage}</div> `:V.html`<slot name="hint"></slot>`}
1457
- </div>
1458
- `}};r.styles=[o(r,r,"styles"),N0],p([(0,l.property)()],r.prototype,"value",2),p([(0,l.property)()],r.prototype,"placeholder",2),p([(0,l.property)()],r.prototype,"type",2),p([(0,l.property)()],r.prototype,"name",2),p([(0,l.property)()],r.prototype,"autocomplete",2),p([(0,l.property)({type:Boolean,reflect:!0})],r.prototype,"disabled",2),p([(0,l.property)({type:Boolean,reflect:!0})],r.prototype,"error",2),p([(0,l.property)()],r.prototype,"errorMessage",2),p([(0,l.property)({type:Boolean})],r.prototype,"required",2),p([(0,l.property)({type:Boolean})],r.prototype,"readonly",2),p([(0,l.property)({type:Number})],r.prototype,"minlength",2),p([(0,l.property)({type:Number})],r.prototype,"maxlength",2),p([(0,l.property)()],r.prototype,"pattern",2),p([(0,l.property)({type:Number})],r.prototype,"min",2),p([(0,l.property)({type:Number})],r.prototype,"max",2),p([(0,l.property)({type:Number})],r.prototype,"step",2),p([(0,l.property)()],r.prototype,"inputmode",2),p([(0,l.state)()],r.prototype,"_hasFocus",2),p([(0,l.state)()],r.prototype,"_hasBlurred",2),p([(0,l.state)()],r.prototype,"_hasBeenValidated",2),p([(0,l.state)()],r.prototype,"_showValidationMessage",2),p([(0,l.state)()],r.prototype,"_validationMessage",2),p([(0,l.query)(".form-input")],r.prototype,"input",2),r=p([(0,l.customElement)("pop-form-input-simple")],r);var T0=r;var S0=require("lit"),I=require("lit/decorators.js"),U0=require("lit/directives/class-map.js"),O0=require("lit/directives/style-map.js"),_0=require("lit/directives/unsafe-svg.js");var e0=new Map,Y={};function j0(n,e){e0.set(n,{name:n,resolver:e})}function r0(n,e){if(Y[n]?.[e])return Y[n][e];let t=e0.get(n);if(t){let i=t.resolver(e);if(i)return Y[n]=Y[n]||{},Y[n][e]=i,i}if(n!=="default"&&e0.has("default"))return r0("default",e)}var M0=require("lit"),R0=M0.css`
1459
- :host {
1460
- display: inline-block;
1461
- line-height: 0;
1462
-
1463
- --icon-color: currentColor;
1464
- }
1465
-
1466
- .icon {
1467
- color: var(--icon-color);
1468
- display: inline-flex;
1469
- align-items: center;
1470
- justify-content: center;
1471
- }
1472
-
1473
- .icon__inner {
1474
- display: inline-flex;
1475
- width: 100%;
1476
- height: 100%;
1477
- }
1478
-
1479
- /* SVG inherits color from parent */
1480
- .icon__inner svg {
1481
- fill: currentColor;
1482
- width: 100%;
1483
- height: 100%;
1484
- }
1485
-
1486
- /* Stroke-based icons should use stroke instead of fill */
1487
- .icon__inner svg path[stroke] {
1488
- fill: none;
1489
- }
1490
-
1491
- /* Icon not found */
1492
- .icon--not-found::after {
1493
- content: "?";
1494
- font-family: sans-serif;
1495
- font-size: 14px;
1496
- display: flex;
1497
- align-items: center;
1498
- justify-content: center;
1499
- width: 100%;
1500
- height: 100%;
1501
- }
1502
- `;var Dp={"check-circle":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg>',"slash-circle-01":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.93 4.93L19.07 19.07M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg>'};j0("default",n=>Dp[n]);var f=class extends P{constructor(){super(...arguments);this.name="";this.library="default";this.size=24;this.color=""}render(){let t={color:this.color||"inherit",width:`${this.size}px`,height:`${this.size}px`},i=r0(this.library,this.name);return S0.html`
1503
- <div
1504
- class=${(0,U0.classMap)({icon:!0,"icon--not-found":!i})}
1505
- part="base"
1506
- style=${(0,O0.styleMap)(t)}
1507
- >
1508
- <div class="icon__inner" part="icon">${i?(0,_0.unsafeSVG)(i):""}</div>
1509
- </div>
1510
- `}};f.styles=[o(f,f,"styles"),R0],p([(0,I.property)()],f.prototype,"name",2),p([(0,I.property)()],f.prototype,"library",2),p([(0,I.property)({type:Number})],f.prototype,"size",2),p([(0,I.property)()],f.prototype,"color",2),f=p([(0,I.customElement)("pop-icon")],f);var pp=f;var N=require("lit"),z=require("lit/decorators.js"),rp=require("lit/directives/class-map.js"),P0=require("lit/directives/when.js");var tp=require("lit"),ep=tp.css`
1511
- :host {
1512
- display: block;
1513
- }
1514
-
1515
- .loader {
1516
- display: flex;
1517
- justify-content: center;
1518
- align-items: center;
1519
- flex-shrink: 0;
1520
- }
1521
-
1522
- .loader--theme-default {
1523
- --foreground: var(--color-brand-midnight-900);
1524
- --background: var(--color-grayscale-200);
1525
- }
1526
-
1527
- .loader--theme-reversed {
1528
- --foreground: var(--color-grayscale-100);
1529
- --background: var(--color-brand-midnight-900);
1530
- }
1531
-
1532
- .loader--theme-black {
1533
- --foreground: var(--color-base-black);
1534
- --background: var(--color-grayscale-300);
1535
- }
1536
-
1537
- .loader--theme-white {
1538
- --foreground: var(--color-base-white);
1539
- --background: var(--color-grayscale-300);
1540
- }
1541
-
1542
- .loader--variant-spinner {
1543
- animation: spin 1s linear infinite;
1544
- width: 20px;
1545
- height: 20px;
1546
- }
1547
-
1548
- .loader--variant-spinner {
1549
- height: 8px;
1550
- width: 36px;
1551
- }
1552
-
1553
- .loader__foreground {
1554
- fill: var(--foreground);
1555
- }
1556
-
1557
- .loader__background {
1558
- fill: var(--background);
1559
- }
1560
-
1561
- .loader--variant-loader {
1562
- display: flex;
1563
- position: relative;
1564
- width: 23px;
1565
- height: 13px;
1566
- }
1567
-
1568
- .loader--variant-loader div {
1569
- position: absolute;
1570
- top: 0px;
1571
- width: 3px;
1572
- height: 3px;
1573
- border-radius: 50%;
1574
- background: var(--color-grayscale-200);
1575
- animation: wave alternate 0.75s infinite;
1576
- animation-timing-function: cubic-bezier(0.56, -0.01, 0.48, 1);
1577
- }
1578
-
1579
- @media (prefers-color-scheme: dark) {
1580
- .loader--variant-loader div {
1581
- background: var(--color-grayscale-700);
1582
- }
1583
- }
1584
-
1585
- .loader--variant-loader div:nth-child(1) {
1586
- animation-delay: 0s;
1587
- left: 0px;
1588
- }
1589
- .loader--variant-loader div:nth-child(2) {
1590
- animation-delay: 0.04s;
1591
- left: 1px;
1592
- }
1593
- .loader--variant-loader div:nth-child(3) {
1594
- animation-delay: 0.07s;
1595
- left: 2px;
1596
- }
1597
- .loader--variant-loader div:nth-child(4) {
1598
- animation-delay: 0.11s;
1599
- left: 3px;
1600
- }
1601
- .loader--variant-loader div:nth-child(5) {
1602
- animation-delay: 0.14s;
1603
- left: 4px;
1604
- }
1605
- .loader--variant-loader div:nth-child(6) {
1606
- animation-delay: 0.18s;
1607
- left: 5px;
1608
- }
1609
- .loader--variant-loader div:nth-child(7) {
1610
- animation-delay: 0.21s;
1611
- left: 6px;
1612
- }
1613
- .loader--variant-loader div:nth-child(8) {
1614
- animation-delay: 0.25s;
1615
- left: 7px;
1616
- }
1617
- .loader--variant-loader div:nth-child(9) {
1618
- animation-delay: 0.29s;
1619
- left: 8px;
1620
- }
1621
- .loader--variant-loader div:nth-child(10) {
1622
- animation-delay: 0.32s;
1623
- left: 9px;
1624
- }
1625
- .loader--variant-loader div:nth-child(11) {
1626
- animation-delay: 0.36s;
1627
- left: 10px;
1628
- }
1629
- .loader--variant-loader div:nth-child(12) {
1630
- animation-delay: 0.39s;
1631
- left: 11px;
1632
- }
1633
- .loader--variant-loader div:nth-child(13) {
1634
- animation-delay: 0.43s;
1635
- left: 12px;
1636
- }
1637
- .loader--variant-loader div:nth-child(14) {
1638
- animation-delay: 0.46s;
1639
- left: 13px;
1640
- }
1641
- .loader--variant-loader div:nth-child(15) {
1642
- animation-delay: 0.5s;
1643
- left: 14px;
1644
- }
1645
- .loader--variant-loader div:nth-child(16) {
1646
- animation-delay: 0.54s;
1647
- left: 15px;
1648
- }
1649
- .loader--variant-loader div:nth-child(17) {
1650
- animation-delay: 0.57s;
1651
- left: 16px;
1652
- }
1653
- .loader--variant-loader div:nth-child(18) {
1654
- animation-delay: 0.61s;
1655
- left: 17px;
1656
- }
1657
- .loader--variant-loader div:nth-child(19) {
1658
- animation-delay: 0.64s;
1659
- left: 18px;
1660
- }
1661
- .loader--variant-loader div:nth-child(20) {
1662
- animation-delay: 0.68s;
1663
- left: 19px;
1664
- }
1665
- .loader--variant-loader div:nth-child(21) {
1666
- animation-delay: 0.71s;
1667
- left: 20px;
1668
- }
1669
-
1670
- @keyframes spin {
1671
- from {
1672
- transform: rotate(0deg);
1673
- }
1674
- to {
1675
- transform: rotate(360deg);
1676
- }
1677
- }
1678
-
1679
- @keyframes wave {
1680
- 0%,
1681
- 100% {
1682
- transform: translatey(0px);
1683
- }
1684
- 50% {
1685
- transform: translatey(12px);
1686
- }
1687
- }
1688
- `;var X=class extends P{constructor(){super(...arguments);this.theme="default";this.variant="spinner"}render(){return N.html`
1689
- <div
1690
- class=${(0,rp.classMap)({loader:!0,[`loader--theme-${this.theme}`]:!0,[`loader--variant-${this.variant}`]:!0})}
1691
- part="base"
1692
- >
1693
- ${(0,P0.when)(this.variant==="spinner",()=>N.html`
1694
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
1695
- <g clip-path="url(#pop_loader_clip_path)">
1696
- <path
1697
- class="loader__foreground"
1698
- d="M20 10C20 15.5137 15.5137 20 10 20C4.48627 20 -1.96101e-07 15.5137 -4.37114e-07 10C-6.78127e-07 4.48627 4.48627 -1.96101e-07 10 -4.37114e-07C15.5137 -6.78127e-07 20 4.48627 20 10ZM2.35294 10C2.35294 14.2196 5.78039 17.6471 10 17.6471C14.2196 17.6471 17.6471 14.2196 17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294C5.78039 2.35294 2.35294 5.78039 2.35294 10Z"
1699
- />
1700
- <path
1701
- class="loader__background"
1702
- d="M20 10L17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294L10 0C15.5137 -2.41013e-07 20 4.48627 20 10Z"
1703
- />
1704
- </g>
1705
- <defs>
1706
- <clipPath id="pop_loader_clip_path">
1707
- <rect width="20" height="20" fill="white" transform="translate(0 20) rotate(-90)" />
1708
- </clipPath>
1709
- </defs>
1710
- </svg>
1711
- `)}
1712
- ${(0,P0.when)(this.variant==="loader",()=>N.html`
1713
- <div></div>
1714
- <div></div>
1715
- <div></div>
1716
- <div></div>
1717
- <div></div>
1718
- <div></div>
1719
- <div></div>
1720
- <div></div>
1721
- <div></div>
1722
- <div></div>
1723
- <div></div>
1724
- <div></div>
1725
- <div></div>
1726
- <div></div>
1727
- <div></div>
1728
- <div></div>
1729
- <div></div>
1730
- <div></div>
1731
- <div></div>
1732
- <div></div>
1733
- <div></div>
1734
- `)}
1735
- </div>
1736
- `}};X.styles=[o(X,X,"styles"),ep],p([(0,z.property)({type:String})],X.prototype,"theme",2),p([(0,z.property)({type:String})],X.prototype,"variant",2),X=p([(0,z.customElement)("pop-loader")],X);var Pp=X;var $=require("lit"),D=require("lit/decorators.js"),a0=require("lit/directives/class-map.js"),np=require("lit/directives/when.js");var ap="./popgrids-logomark-letter-2GC4ZJAT.png";var ip="./squircle-L5LSRL2K.gif";var op=require("lit"),lp=op.css`
1737
- :host {
1738
- display: block;
1739
-
1740
- --logo-color: var(--color-text-text-default);
1741
- }
1742
-
1743
- svg {
1744
- pointer-events: none;
1745
- width: 100%;
1746
- height: 100%;
1747
- color: var(--logo-color);
1748
- }
1749
-
1750
- .logo {
1751
- color: var(--logo-color);
1752
- }
1753
-
1754
- .logo--variant-logo.logo--theme-reversed {
1755
- color: var(--color-text-text-reversed);
1756
- }
1757
-
1758
- .logo--variant-logo.logo--theme-white {
1759
- color: var(--color-text-text-white);
1760
- }
1761
-
1762
- .logo--variant-logo.logo--theme-black {
1763
- color: var(--color-text-text-black);
1764
- }
1765
-
1766
- .logo--variant-icon {
1767
- display: grid;
1768
- place-items: center;
1769
- position: relative;
1770
- width: 100%;
1771
- height: 100%;
1772
- }
1773
-
1774
- .logo--variant-icon__background {
1775
- position: absolute;
1776
- top: 0;
1777
- left: 0;
1778
- width: 100%;
1779
- height: 100%;
1780
- }
1781
-
1782
- .logo--variant-icon .logo--variant-icon__background {
1783
- width: 100%;
1784
- height: 100%;
1785
- position: absolute;
1786
- }
1787
-
1788
- .logo--variant-icon.logo--theme-default .logo--variant-icon__background {
1789
- background: var(--color-surface-buttons-primary-bg-brand-resting);
1790
- }
1791
-
1792
- .logo--variant-icon.logo--theme-reversed .logo--variant-icon__background {
1793
- background: var(--color-brand-pumpkin-500);
1794
- }
1795
-
1796
- .logo--variant-icon.logo--theme-black .logo--variant-icon__background {
1797
- background: var(--color-border-border-black);
1798
- }
1799
-
1800
- .squircle-image {
1801
- width: 100%;
1802
- height: 100%;
1803
- position: absolute;
1804
- inset: 0;
1805
- }
1806
-
1807
- .logomark-letter-image {
1808
- width: 100%;
1809
- height: auto;
1810
- position: absolute;
1811
- transform: scale(0.67);
1812
- }
1813
- `;var kp=ap,Yp=ip,v=class extends P{constructor(){super(...arguments);this.variant="logo";this.theme="default";this.outline=!1;this.mini=!1}render(){if(this.variant==="logo"&&this.outline)return $.html`
1814
- <div
1815
- class=${(0,a0.classMap)({logo:!0,"logo--variant-logo":!0,[`logo--theme-${this.theme}`]:!0})}
1816
- >
1817
- <!-- prettier-ignore -->
1818
- <svg class="pointer-events-none w-full h-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 163 28" fill="none">
1819
- <path d="M12.8208 21.1012C12.8208 24.6215 10.4206 26.8916 6.97043 26.8916C4.50028 26.8916 1.81011 25.6115 1.25008 22.6813C1.05007 21.7313 1.09007 20.7712 0.990064 19.8212C0.76005 17.521 0.500034 15.2209 0.500034 12.8907C0.490033 6.50035 2.69017 0.75 10.5507 0.75C16.041 0.75 20.8113 3.51017 20.8113 9.86056C20.8113 13.9708 18.2511 18.8011 13.1808 18.8011C12.8808 18.8011 12.6208 18.7711 12.3608 18.7011C12.6908 19.3611 12.8208 20.1512 12.8208 21.1012ZM10.0606 17.021C10.8507 17.021 12.1007 17.811 13.1808 17.811C17.4511 17.811 19.8212 13.7008 19.8212 9.86056C19.8212 4.27022 15.711 1.74006 10.5507 1.74006C3.55022 1.74006 1.48009 6.67036 1.48009 12.8807C1.48009 15.1809 1.71011 17.451 1.97012 19.7212C2.07013 20.6112 2.04013 21.5913 2.20014 22.4813C2.63016 24.8115 4.8303 25.9015 6.97043 25.9015C9.90061 25.9015 11.8307 24.0614 11.8307 21.1012C11.8307 19.3911 11.2707 18.2711 9.6606 17.621C9.56059 17.591 9.46058 17.551 9.46058 17.421C9.46058 17.191 9.82061 17.031 10.0506 17.031L10.0606 17.021ZM10.3506 6.70036C10.1906 6.50035 9.96061 6.40035 9.96061 6.14033C9.96061 5.88031 10.2206 5.6503 10.4906 5.6503C11.6107 5.6503 12.1707 8.9405 12.1707 9.79055C12.1707 10.7106 11.8707 13.8308 10.5306 13.8308C10.2706 13.8308 10.0406 13.6008 10.0406 13.3408C10.0406 12.9807 10.5306 12.7207 10.7007 12.4207C11.0607 11.7607 11.1607 10.6406 11.1607 9.89056C11.1607 9.00051 10.9307 7.3604 10.3706 6.70036H10.3506Z" fill="currentColor"/>
1820
- <path d="M44.7828 14.0008C44.7828 21.1712 40.2125 26.6916 32.682 26.6916C25.1516 26.6916 20.5513 21.2313 20.5513 14.0008C20.5513 6.77037 25.1216 1.31003 32.682 1.31003C40.2425 1.31003 44.7828 6.83037 44.7828 14.0008ZM32.682 25.7015C39.5824 25.7015 43.7927 20.7012 43.7927 14.0008C43.7927 7.3004 39.5824 2.30009 32.682 2.30009C25.7816 2.30009 21.5413 7.23039 21.5413 14.0008C21.5413 20.7712 25.7216 25.7015 32.682 25.7015ZM31.732 8.77049C31.4719 8.44047 30.6419 7.82043 30.6419 7.46041C30.6419 7.20039 30.8719 6.97038 31.1319 6.97038C31.3619 6.97038 31.592 7.17039 31.752 7.3004C33.8521 9.04051 34.4821 13.0207 34.4821 15.6209C34.4821 17.661 34.2821 20.7112 32.972 22.3613C32.842 22.5613 32.642 22.7513 32.382 22.7513C32.122 22.7513 31.852 22.5213 31.852 22.2613C31.852 22.1613 32.712 20.8812 32.842 20.4912C33.3721 18.9411 33.4621 17.271 33.4621 15.6209C33.4621 13.4208 33.072 10.5906 31.722 8.78049L31.732 8.77049Z" fill="currentColor"/>
1821
- <path d="M57.2835 21.1013C57.2835 24.6215 54.8834 26.8916 51.4331 26.8916C48.963 26.8916 46.2728 25.6115 45.7128 22.6814C45.5128 21.7313 45.5528 20.7712 45.4528 19.8212C45.2228 17.521 44.9627 15.2209 44.9627 12.8908C44.9627 6.51036 47.1629 0.76001 55.0234 0.76001C60.5137 0.76001 65.284 3.52018 65.284 9.87057C65.284 13.9808 62.7238 18.8111 57.6535 18.8111C57.3535 18.8111 57.0935 18.7811 56.8335 18.7111C57.1635 19.3711 57.2935 20.1612 57.2935 21.1113L57.2835 21.1013ZM54.5233 17.021C55.3134 17.021 56.5635 17.8111 57.6435 17.8111C61.9138 17.8111 64.2839 13.7008 64.2839 9.86057C64.2839 4.27022 60.1737 1.74007 55.0134 1.74007C48.0129 1.74007 45.9428 6.67037 45.9428 12.8808C45.9428 15.1809 46.1728 17.451 46.4328 19.7212C46.5328 20.6112 46.5028 21.5913 46.6628 22.4813C47.0929 24.8115 49.293 25.9016 51.4331 25.9016C54.3633 25.9016 56.2934 24.0614 56.2934 21.1013C56.2934 19.3912 55.7334 18.2711 54.1233 17.621C54.0233 17.591 53.9233 17.551 53.9233 17.421C53.9233 17.191 54.2833 17.031 54.5133 17.031L54.5233 17.021ZM54.8234 6.70037C54.6633 6.50036 54.4333 6.40036 54.4333 6.14034C54.4333 5.88032 54.6933 5.65031 54.9634 5.65031C56.0834 5.65031 56.6435 8.94051 56.6435 9.79056C56.6435 10.7106 56.3434 13.8308 55.0034 13.8308C54.7433 13.8308 54.5133 13.6008 54.5133 13.3408C54.5133 12.9808 55.0034 12.7207 55.1734 12.4207C55.5334 11.7607 55.6334 10.6406 55.6334 9.89057C55.6334 9.00051 55.4034 7.36041 54.8433 6.70037H54.8234Z" fill="currentColor"/>
1822
- <path d="M87.9054 18.7011C87.9054 25.1115 81.855 27.2516 77.0247 27.2516C69.0742 27.2516 65.054 22.1613 65.054 14.6309C65.054 6.48037 69.9843 0.890023 78.3648 0.890023C81.885 0.890023 86.6853 2.04009 86.6853 6.45036C86.6853 8.42048 85.6053 10.4006 83.7952 11.2807C86.4253 12.6907 87.9054 15.6809 87.9054 18.7111V18.7011ZM80.3749 18.6311C80.3749 19.5812 78.5348 20.0112 77.8148 20.0112C75.2846 20.0112 73.9346 17.8411 73.9346 15.5409C73.9346 12.7107 76.5947 10.5406 79.2949 10.5406C80.0849 10.5406 80.905 10.7706 81.695 10.7706C84.0252 10.7706 85.7053 8.6705 85.7053 6.43036C85.7053 2.72014 81.305 1.86008 78.3748 1.86008C70.5843 1.86008 66.0441 6.92039 66.0441 14.6109C66.0441 21.7113 69.7243 26.2516 77.0247 26.2516C81.755 26.2516 86.9153 24.2115 86.9153 18.6911C86.9153 14.9109 84.4452 11.4607 80.435 11.4607C78.0648 11.4607 74.7846 12.5507 74.7846 15.3709C74.7846 16.981 75.9647 19.3812 77.8448 19.3812C79.0249 19.3812 79.7849 18.4611 80.1749 18.4611C80.2749 18.4611 80.3749 18.5311 80.3749 18.6211V18.6311Z" fill="currentColor"/>
1823
- <path d="M93.4058 27.0116C90.1856 27.0116 88.1754 24.4814 88.1754 21.5213V17.541C88.1754 16.1609 88.1454 14.7508 88.1754 13.4008C88.2755 8.83048 89.3555 4.79023 93.6958 2.39008C95.3059 1.50003 97.146 0.979995 99.0161 0.979995C104.106 0.979995 109.037 4.3302 109.037 10.0506C109.037 12.7507 107.787 14.9809 105.647 16.3909C107.847 17.111 109.657 19.0511 109.657 21.6213C109.657 24.7815 107.097 26.8816 104.166 26.8816C101.466 26.8816 99.5661 25.1115 98.3161 22.9013C97.826 25.1015 96.2159 27.0116 93.3858 27.0116H93.4058ZM97.616 19.4511C97.716 19.4511 97.816 19.5211 97.876 19.5511C99.0261 22.3413 100.606 25.8915 104.186 25.8915C106.657 25.8915 108.687 24.1514 108.687 21.6213C108.687 19.0911 106.317 17.051 103.826 17.051C103.236 17.051 102.736 17.281 102.246 17.281C102.146 17.281 102.116 17.181 102.116 17.121C102.116 16.891 102.216 16.791 102.376 16.731C102.936 16.5309 103.526 16.4009 104.086 16.1409C106.587 14.9609 108.067 12.8507 108.067 10.0606C108.067 5.03024 103.756 1.97006 99.0261 1.97006C97.316 1.97006 95.6359 2.46009 94.1958 3.25013C90.2556 5.39026 89.4955 8.44045 89.2655 12.6207C89.1655 14.2608 89.1655 15.9109 89.1655 17.551V21.5313C89.1655 24.0314 90.8056 26.0315 93.4058 26.0315C95.2759 26.0315 96.956 24.6814 97.386 22.9113C97.616 21.8613 97.486 20.6112 97.486 19.5911C97.486 19.4911 97.516 19.4611 97.616 19.4611V19.4511ZM98.3061 6.70035C98.1461 6.50033 97.946 6.40033 97.946 6.14031C97.946 5.88029 98.1761 5.65028 98.4361 5.65028C99.5561 5.65028 100.116 8.94048 100.116 9.79053C100.116 10.7106 99.8562 13.8308 98.4761 13.8308C98.2161 13.8308 97.986 13.6008 97.986 13.3408C97.986 12.9807 98.4761 12.7207 98.6461 12.4207C99.0061 11.7607 99.1061 10.6406 99.1061 9.89054C99.1061 9.00049 98.8761 7.36039 98.3161 6.70035H98.3061Z" fill="currentColor"/>
1824
- <path d="M110.177 19.1611C110.177 15.0209 110.277 10.9106 110.277 6.80036C110.277 3.97019 112.087 1.24002 115.367 1.24002C116.457 1.24002 117.797 1.50004 118.787 2.22008C120.927 3.70017 120.957 5.7703 120.957 7.64041V12.7707C120.957 14.4808 120.927 16.1909 120.927 17.901C120.927 18.5911 120.957 19.6712 120.927 20.7612C120.897 21.8113 120.827 23.0314 120.467 23.9214C119.677 25.9215 117.407 27.1716 115.407 27.1716C112.647 27.1716 110.177 24.9715 110.177 22.0813V19.1511V19.1611ZM115.407 26.1915C117.087 26.1915 118.927 25.1415 119.547 23.5614C119.907 22.6713 119.937 21.4213 119.937 20.4712V17.911L119.967 12.7807V7.65041C119.967 5.7403 119.937 4.2302 118.227 3.02013C117.437 2.4901 116.317 2.23008 115.367 2.23008C113.297 2.23008 111.527 3.87018 111.287 5.91031C111.217 6.50034 111.257 7.06038 111.257 7.69042V13.2808L111.157 19.1611V22.0913C111.157 24.3914 113.127 26.2016 115.397 26.2016L115.407 26.1915Z" fill="currentColor"/>
1825
- <path d="M122.058 7.00037C122.058 3.09013 124.198 1.05001 128.078 1.05001C137.608 1.05001 142.539 5.62029 142.539 15.3209C142.539 23.5414 137.148 26.8616 129.748 26.8616C124.658 26.8616 121.827 24.1614 121.827 19.0411C121.827 17.791 121.988 16.541 122.058 15.2909C122.188 12.5607 122.058 9.77054 122.058 7.01037V7.00037ZM129.748 25.8615C136.788 25.8615 141.549 22.8413 141.549 15.3109C141.549 6.24032 137.178 2.03007 128.068 2.03007C124.718 2.03007 123.038 3.61016 123.038 6.99037V8.34045L123.068 11.0006V12.3507C123.068 13.3708 123.068 14.3208 123.038 15.3409C122.968 16.561 122.808 17.771 122.808 19.0211C122.808 23.6214 125.178 25.8615 129.738 25.8615H129.748ZM130.798 9.53053C130.638 9.27051 130.308 9.0705 130.308 8.74048C130.308 8.48046 130.538 8.25045 130.798 8.25045C131.288 8.25045 131.978 9.50052 132.178 9.93055C132.798 11.3806 132.898 12.9507 132.898 14.5008C132.898 15.4509 132.408 20.2212 131.218 20.2212C130.958 20.2212 130.728 19.9912 130.728 19.7312C130.728 19.6311 130.758 19.5711 130.828 19.4711C131.678 18.061 131.908 16.0809 131.908 14.4708C131.908 12.9607 131.748 10.7206 130.788 9.54053L130.798 9.53053Z" fill="currentColor"/>
1826
- <path d="M144.059 14.7508C143.009 13.7608 142.779 11.8907 142.779 10.5106C142.779 4.79023 147.019 1.11001 152.539 1.11001C155.86 1.11001 162.5 2.79011 162.5 8.01043C162.5 10.2106 161.19 11.9607 159.38 12.8807C161.75 13.5708 162.5 16.0009 162.5 17.941C162.5 23.9214 156.22 27.1116 151.389 27.1116C147.219 27.1116 142.709 24.5514 142.709 19.5511C142.709 18.071 143.139 16.1309 144.419 15.0109C144.289 14.9409 144.189 14.8509 144.059 14.7508ZM151.849 16.891C151.949 17.051 152.049 17.321 152.049 17.511C152.049 17.581 152.049 17.671 151.979 17.641C151.779 17.571 151.619 17.411 151.489 17.281C150.339 16.1609 148.759 15.0509 147.089 15.0509C144.589 15.0509 143.699 17.451 143.699 19.5511C143.699 23.7914 147.509 26.1215 151.389 26.1215C155.99 26.1215 161.52 23.1014 161.52 17.941C161.52 16.0309 160.7 13.9008 158.56 13.7008C156.65 13.5408 153.929 12.8807 152.449 11.6307C152.249 11.4706 151.919 11.2406 151.919 10.9406C151.919 10.8406 151.949 10.6806 152.079 10.6806C152.439 10.6806 154.74 12.5207 156.71 12.5207C159.21 12.5207 161.51 10.5806 161.51 8.02043C161.51 3.81017 155.92 2.10007 152.539 2.10007C147.509 2.10007 143.759 5.35027 143.759 10.5206C143.759 11.6407 143.919 13.1807 144.749 14.0408C145.139 14.4708 145.799 14.4708 146.329 14.4708C148.299 14.4708 150.799 15.0909 151.849 16.901V16.891Z" fill="currentColor"/>
1827
- </svg>
1828
- </div>
1829
- `;if(this.variant==="logo"&&!this.outline&&!this.mini)return $.html`
1830
- <!-- prettier-ignore -->
1831
- <svg width="185" height="32" viewBox="0 0 185 32" fill="none" xmlns="http://www.w3.org/2000/svg">
1832
- <path d="M11.3056 0.708572C2.58086 0.708572 0 6.85714 0 14.6057C0 17.4743 0.285494 20.2971 0.616667 23.1314C0.742284 24.24 0.696605 25.4629 0.902161 26.5714C1.43889 29.4857 4.17963 30.8343 6.84043 30.8343C10.4833 30.8343 12.9043 28.5371 12.9043 24.8571C12.9043 22.7314 12.2077 21.3371 10.1978 20.5143C10.0722 20.4686 9.9466 20.4343 9.9466 20.2629C9.9466 19.9771 10.4034 19.7714 10.6889 19.7714C11.671 19.7714 13.2241 20.7543 14.583 20.7543C19.9046 20.7543 22.8509 15.6343 22.8509 10.8343C22.8509 3.86286 17.7235 0.708572 11.3056 0.708572ZM11.2599 15.7829C10.9287 15.7829 10.6432 15.4971 10.6432 15.1657C10.6432 14.72 11.2599 14.3886 11.4654 14.0229C11.9108 13.2 12.0364 11.8057 12.0364 10.8686C12.0364 9.76 11.7509 7.71429 11.0543 6.89143C10.8488 6.65143 10.5633 6.52572 10.5633 6.19429C10.5633 5.86286 10.8944 5.57714 11.2142 5.57714C12.6074 5.57714 13.304 9.68 13.304 10.7429C13.304 11.8857 12.9386 15.7829 11.2599 15.7829Z" fill="currentColor"/>
1833
- <path d="M36.8173 1.4057C28.1383 1.4057 22.9309 7.55427 22.9309 15.9886C22.9309 24.4228 28.1269 30.5714 36.8173 30.5714C45.5077 30.5714 50.658 24.3428 50.658 15.9886C50.658 7.63427 45.4164 1.4057 36.8173 1.4057ZM37.1942 26.4C37.0571 26.5714 36.783 26.8914 36.4519 26.8914C36.1207 26.8914 35.8009 26.6057 35.8009 26.2743C35.8009 26.1486 36.863 24.5486 37.0343 24.0571C37.6852 22.1257 37.8108 20.0343 37.8108 17.9886C37.8108 15.2457 37.3198 11.7143 35.6411 9.46284C35.3099 9.05141 34.2935 8.27427 34.2935 7.82856C34.2935 7.49713 34.579 7.21141 34.9102 7.21141C35.1957 7.21141 35.4812 7.46284 35.6867 7.62284C38.3019 9.79427 39.0898 14.7543 39.0898 17.9886C39.0898 20.5257 38.9871 24.2286 37.2056 26.3886L37.1942 26.4Z" fill="currentColor"/>
1834
- <path d="M62.5916 0.708572C53.8669 0.708572 51.2861 6.85714 51.2861 14.6057C51.2861 17.4743 51.5716 20.2971 51.9027 23.1314C52.0284 24.24 51.9827 25.4629 52.1882 26.5714C52.725 29.4857 55.4657 30.8343 58.1265 30.8343C61.7694 30.8343 64.1904 28.5371 64.1904 24.8571C64.1904 22.7314 63.4938 21.3371 61.4839 20.5143C61.3583 20.4686 61.2327 20.4343 61.2327 20.2629C61.2327 19.9771 61.6895 19.7714 61.975 19.7714C62.9571 19.7714 64.5102 20.7543 65.8691 20.7543C71.1907 20.7543 74.137 15.6343 74.137 10.8343C74.137 3.86286 69.021 0.708572 62.5916 0.708572ZM62.5574 15.7829C62.2262 15.7829 61.9407 15.4971 61.9407 15.1657C61.9407 14.72 62.5574 14.3886 62.7629 14.0229C63.2083 13.2 63.3339 11.8057 63.3339 10.8686C63.3339 9.76 63.0484 7.71429 62.3518 6.89143C62.1463 6.65143 61.8608 6.52572 61.8608 6.19429C61.8608 5.86286 62.1919 5.57714 62.5117 5.57714C63.9049 5.57714 64.6015 9.68 64.6015 10.7429C64.6015 11.8857 64.2361 15.7829 62.5574 15.7829Z" fill="currentColor"/>
1835
- <path d="M92.2145 12.8343C89.2682 12.8343 85.1686 14.1829 85.1686 17.7143C85.1686 19.7257 86.6417 22.7086 88.9827 22.7086C90.4559 22.7086 91.4037 21.5657 91.8948 21.5657C92.0204 21.5657 92.1346 21.6457 92.1346 21.7715C92.1346 22.96 89.8392 23.4972 88.9371 23.4972C85.7852 23.4972 84.1065 20.7886 84.1065 17.92C84.1065 14.4 87.4182 11.6915 90.7757 11.6915C91.7577 11.6915 92.7855 11.9772 93.7676 11.9772C96.6797 11.9772 98.7581 9.36003 98.7581 6.57146C98.7581 1.94289 93.2766 0.880029 89.6223 0.880029C79.9155 0.880029 74.2627 7.1886 74.2627 16.7772C74.2627 25.6343 78.8534 31.28 87.9436 31.28C93.8361 31.28 100.265 28.7429 100.265 21.8515C100.265 17.1429 97.1935 12.8343 92.2031 12.8343H92.2145Z" fill="currentColor"/>
1836
- <path d="M119.291 19.8057C118.548 19.8057 117.943 20.0914 117.326 20.0914C117.201 20.0914 117.167 19.9657 117.167 19.8857C117.167 19.6 117.292 19.4743 117.498 19.3943C118.194 19.1543 118.937 18.9829 119.622 18.6514C122.739 17.1771 124.578 14.5486 124.578 11.0743C124.578 4.8 119.211 0.994287 113.318 0.994287C111.183 0.994287 109.104 1.61143 107.3 2.59429C102.389 5.25714 101.442 9.07429 101.156 14.2743C101.031 16.32 101.031 18.3771 101.031 20.4229V25.3829C101.031 28.4914 103.075 30.9943 106.306 30.9943C108.636 30.9943 110.726 29.3143 111.263 27.0971C111.548 25.7829 111.388 24.2286 111.388 22.96C111.388 22.8343 111.434 22.8 111.548 22.8C111.662 22.8 111.799 22.88 111.879 22.9257C113.318 26.4114 115.282 30.8343 119.736 30.8343C122.808 30.8343 125.343 28.6629 125.343 25.5086C125.343 22.3543 122.397 19.8171 119.279 19.8171L119.291 19.8057ZM112.622 15.7829C112.29 15.7829 112.005 15.4971 112.005 15.1657C112.005 14.72 112.622 14.3886 112.827 14.0229C113.272 13.2 113.398 11.8057 113.398 10.8686C113.398 9.76 113.113 7.71429 112.416 6.89143C112.21 6.65143 111.971 6.52572 111.971 6.19429C111.971 5.86286 112.256 5.57714 112.587 5.57714C113.981 5.57714 114.677 9.68 114.677 10.7429C114.677 11.8857 114.346 15.7829 112.633 15.7829H112.622Z" fill="currentColor"/>
1837
- <path d="M135.187 2.30855C134.205 1.65712 132.812 1.32569 131.624 1.32569C129.043 1.32569 126.828 3.3714 126.542 5.91998C126.462 6.66283 126.497 7.35998 126.497 8.13712V15.0971L126.371 22.4343V26.08C126.371 28.9485 128.826 31.2 131.658 31.2C133.748 31.2 136.044 29.8857 136.82 27.92C137.265 26.8114 137.311 25.2571 137.311 24.0685V20.8685L137.357 14.48V8.0914C137.357 5.71426 137.311 3.82855 135.187 2.30855Z" fill="currentColor"/>
1838
- <path d="M145.396 1.07428C141.217 1.07428 139.127 3.04 139.127 7.25714V8.93714L139.173 12.2514V13.9314C139.173 15.2 139.173 16.3886 139.127 17.6571C139.047 19.1771 138.841 20.6857 138.841 22.2514C138.841 27.9886 141.788 30.7771 147.486 30.7771C156.245 30.7771 162.183 27.0057 162.183 17.6229C162.183 6.30857 156.736 1.06286 145.396 1.06286V1.07428ZM149.325 23.7371C148.994 23.7371 148.708 23.4514 148.708 23.12C148.708 22.9943 148.754 22.9143 148.834 22.7886C149.896 21.0286 150.181 18.5714 150.181 16.56C150.181 14.6743 149.976 11.8857 148.788 10.4114C148.582 10.08 148.171 9.84 148.171 9.42857C148.171 9.09714 148.457 8.81143 148.788 8.81143C149.405 8.81143 150.261 10.3657 150.512 10.9029C151.289 12.7086 151.415 14.6743 151.415 16.5943C151.415 17.7829 150.798 23.7257 149.325 23.7257V23.7371Z" fill="currentColor"/>
1839
- <path d="M181.311 15.6229C178.936 15.4172 175.533 14.5943 173.694 13.04C173.455 12.8343 173.044 12.5486 173.044 12.1829C173.044 12.0572 173.089 11.8515 173.249 11.8515C173.694 11.8515 176.561 14.1486 179.027 14.1486C182.145 14.1486 185 11.7257 185 8.53717C185 3.29146 178.045 1.16574 173.82 1.16574C167.551 1.16574 162.891 5.22289 162.891 11.6572C162.891 13.0515 163.097 14.9715 164.125 16.0457C164.616 16.5829 165.438 16.5829 166.089 16.5829C168.544 16.5829 171.662 17.36 172.964 19.6115C173.089 19.8172 173.203 20.1486 173.203 20.3886C173.203 20.4686 173.203 20.5943 173.123 20.5486C172.884 20.4686 172.678 20.2629 172.507 20.1029C171.068 18.7086 169.104 17.3143 167.025 17.3143C163.908 17.3143 162.811 20.3086 162.811 22.9257C162.811 28.2057 167.562 31.12 172.393 31.12C178.125 31.12 185 27.3486 185 20.9143C185 18.5372 183.972 15.8743 181.311 15.6343V15.6229Z" fill="currentColor"/>
1840
- </svg>
1841
- `;if(this.variant==="logo"&&!this.outline&&this.mini){if(this.theme==="default")return $.html`
1842
- <!-- prettier-ignore -->
1843
- <svg width="97" height="32" viewBox="0 0 97 32" fill="none" xmlns="http://www.w3.org/2000/svg">
1844
- <path d="M11.3056 0.708496C2.58086 0.708496 0 6.85707 0 14.6056C0 17.4742 0.285494 20.2971 0.616667 23.1314C0.742284 24.2399 0.696605 25.4628 0.902161 26.5714C1.43889 29.4856 4.17963 30.8342 6.84043 30.8342C10.4833 30.8342 12.9043 28.5371 12.9043 24.8571C12.9043 22.7314 12.2077 21.3371 10.1978 20.5142C10.0722 20.4685 9.9466 20.4342 9.9466 20.2628C9.9466 19.9771 10.4034 19.7714 10.6889 19.7714C11.671 19.7714 13.2241 20.7542 14.583 20.7542C19.9046 20.7542 22.8509 15.6342 22.8509 10.8342C22.8509 3.86278 17.7235 0.708496 11.3056 0.708496ZM11.2599 15.7828C10.9287 15.7828 10.6432 15.4971 10.6432 15.1656C10.6432 14.7199 11.2599 14.3885 11.4654 14.0228C11.9108 13.1999 12.0364 11.8056 12.0364 10.8685C12.0364 9.75992 11.7509 7.71421 11.0543 6.89135C10.8488 6.65135 10.5633 6.52564 10.5633 6.19421C10.5633 5.86278 10.8944 5.57707 11.2142 5.57707C12.6074 5.57707 13.304 9.67992 13.304 10.7428C13.304 11.8856 12.9386 15.7828 11.2599 15.7828Z" fill="black"/>
1845
- <path d="M36.8173 1.40562C28.1383 1.40562 22.9309 7.55419 22.9309 15.9885C22.9309 24.4228 28.1269 30.5713 36.8173 30.5713C45.5077 30.5713 50.658 24.3428 50.658 15.9885C50.658 7.63419 45.4164 1.40562 36.8173 1.40562ZM37.1942 26.3999C37.0571 26.5713 36.783 26.8913 36.4519 26.8913C36.1207 26.8913 35.8009 26.6056 35.8009 26.2742C35.8009 26.1485 36.863 24.5485 37.0343 24.057C37.6852 22.1256 37.8108 20.0342 37.8108 17.9885C37.8108 15.2456 37.3198 11.7142 35.6411 9.46276C35.3099 9.05134 34.2935 8.27419 34.2935 7.82848C34.2935 7.49705 34.579 7.21134 34.9102 7.21134C35.1957 7.21134 35.4812 7.46277 35.6867 7.62277C38.3019 9.79419 39.0898 14.7542 39.0898 17.9885C39.0898 20.5256 38.9871 24.2285 37.2056 26.3885L37.1942 26.3999Z" fill="black"/>
1846
- <path d="M62.5916 0.708496C53.8669 0.708496 51.2861 6.85707 51.2861 14.6056C51.2861 17.4742 51.5716 20.2971 51.9027 23.1314C52.0284 24.2399 51.9827 25.4628 52.1882 26.5714C52.725 29.4856 55.4657 30.8342 58.1265 30.8342C61.7694 30.8342 64.1904 28.5371 64.1904 24.8571C64.1904 22.7314 63.4938 21.3371 61.4839 20.5142C61.3583 20.4685 61.2327 20.4342 61.2327 20.2628C61.2327 19.9771 61.6895 19.7714 61.975 19.7714C62.9571 19.7714 64.5102 20.7542 65.8691 20.7542C71.1907 20.7542 74.137 15.6342 74.137 10.8342C74.137 3.86278 69.021 0.708496 62.5916 0.708496ZM62.5574 15.7828C62.2262 15.7828 61.9407 15.4971 61.9407 15.1656C61.9407 14.7199 62.5574 14.3885 62.7629 14.0228C63.2083 13.1999 63.3339 11.8056 63.3339 10.8685C63.3339 9.75992 63.0484 7.71421 62.3518 6.89135C62.1463 6.65135 61.8608 6.52564 61.8608 6.19421C61.8608 5.86278 62.1919 5.57707 62.5117 5.57707C63.9049 5.57707 64.6015 9.67992 64.6015 10.7428C64.6015 11.8856 64.2361 15.7828 62.5574 15.7828Z" fill="black"/>
1847
- <path d="M93 15.6228C90.6247 15.4171 87.2216 14.5942 85.383 13.04C85.1432 12.8342 84.7321 12.5485 84.7321 12.1828C84.7321 12.0571 84.7778 11.8514 84.9377 11.8514C85.383 11.8514 88.2494 14.1485 90.716 14.1485C93.8336 14.1485 96.6886 11.7257 96.6886 8.5371C96.6886 3.29138 89.7339 1.16567 85.5086 1.16567C79.2392 1.16567 74.5799 5.22281 74.5799 11.6571C74.5799 13.0514 74.7855 14.9714 75.8133 16.0457C76.3043 16.5828 77.1265 16.5828 77.7775 16.5828C80.2327 16.5828 83.3503 17.36 84.6521 19.6114C84.7778 19.8171 84.892 20.1485 84.892 20.3885C84.892 20.4685 84.892 20.5942 84.812 20.5485C84.5722 20.4685 84.3667 20.2628 84.1954 20.1028C82.7565 18.7085 80.7923 17.3142 78.7139 17.3142C75.5963 17.3142 74.5 20.3085 74.5 22.9257C74.5 28.2057 79.2506 31.12 84.0812 31.12C89.8139 31.12 96.6886 27.3485 96.6886 20.9142C96.6886 18.5371 95.6608 15.8742 93 15.6342V15.6228Z" fill="black"/>
1848
- </svg>
1849
- `;if(this.theme==="reversed")return $.html`
1850
- <!-- prettier-ignore -->
1851
- <svg viewBox="0 0 97 28" fill="none" xmlns="http://www.w3.org/2000/svg">
1852
- <path d="M11.3056 0.619987C2.58086 0.619987 0 5.99999 0 12.78C0 15.29 0.285494 17.76 0.616667 20.24C0.742284 21.21 0.696605 22.28 0.902161 23.25C1.43889 25.8 4.17963 26.98 6.84043 26.98C10.4833 26.98 12.9043 24.97 12.9043 21.75C12.9043 19.89 12.2077 18.67 10.1978 17.95C10.0722 17.91 9.9466 17.88 9.9466 17.73C9.9466 17.48 10.4034 17.3 10.6889 17.3C11.671 17.3 13.2241 18.16 14.583 18.16C19.9046 18.16 22.8509 13.68 22.8509 9.47999C22.8509 3.37999 17.7235 0.619987 11.3056 0.619987ZM11.2599 13.81C10.9287 13.81 10.6432 13.56 10.6432 13.27C10.6432 12.88 11.2599 12.59 11.4654 12.27C11.9108 11.55 12.0364 10.33 12.0364 9.50999C12.0364 8.53999 11.7509 6.74999 11.0543 6.02999C10.8488 5.81999 10.5633 5.71 9.75 5.42C9.75 5.13 10.04 4.88 10.32 4.88C11.54 4.88 12.15 8.47 12.15 9.39999C12.15 10.4 11.83 13.81 11.2599 13.81Z" fill="currentColor"/>
1853
- <path d="M36.8173 1.22997C28.1383 1.22997 22.9309 6.60997 22.9309 13.99C22.9309 21.37 28.1269 26.75 36.8173 26.75C45.5077 26.75 50.658 21.3 50.658 13.99C50.658 6.67997 45.4164 1.22997 36.8173 1.22997ZM37.1942 23.1C37.0571 23.25 36.783 23.53 36.4519 23.53C36.1207 23.53 35.8009 23.28 35.8009 22.99C35.8009 22.88 36.863 21.48 37.0343 21.05C37.6852 19.36 37.8108 17.53 37.8108 15.74C37.8108 13.34 37.3198 10.25 35.6411 8.27997C35.3099 7.91997 34.2935 7.23997 34.2935 6.84997C34.2935 6.55997 34.579 6.30997 34.9102 6.30997C35.1957 6.30997 35.4812 6.52997 35.6867 6.66997C38.3019 8.56997 39.0898 12.91 39.0898 15.74C39.0898 17.96 38.9871 21.2 37.2056 23.09L37.1942 23.1Z" fill="currentColor"/>
1854
- <path d="M62.5916 0.619987C53.8669 0.619987 51.2861 5.99999 51.2861 12.78C51.2861 15.29 51.5716 17.76 51.9027 20.24C52.0284 21.21 51.9827 22.28 52.1882 23.25C52.725 25.8 55.4657 26.98 58.1265 26.98C61.7694 26.98 64.1904 24.97 64.1904 21.75C64.1904 19.89 63.4938 18.67 61.4839 17.95C61.3583 17.91 61.2327 17.88 61.2327 17.73C61.2327 17.48 61.6895 17.3 61.975 17.3C62.9571 17.3 64.5102 18.16 65.8691 18.16C71.1907 18.16 74.137 13.68 74.137 9.47999C74.137 3.37999 69.021 0.619987 62.5916 0.619987ZM62.5574 13.81C62.2262 13.81 61.9407 13.56 61.9407 13.27C61.9407 12.88 62.5574 12.59 62.7629 12.27C63.2083 11.55 63.3339 10.33 63.3339 9.50999C63.3339 8.53999 63.0484 6.74999 62.3518 6.02999C62.1463 5.81999 61.8608 5.71 9.75 5.42C9.75 5.13 10.04 4.88 10.32 4.88C11.54 4.88 12.15 8.47 12.15 9.39999C12.15 10.4 11.83 13.81 11.2599 13.81Z" fill="currentColor"/>
1855
- <path d="M93 13.67C90.6247 13.49 87.2216 12.77 85.383 11.41C85.1432 11.23 84.7321 10.98 84.7321 10.66C84.7321 10.55 84.7778 10.37 84.9377 10.37C85.383 10.37 88.2494 12.38 90.716 12.38C93.8336 12.38 96.6886 10.26 96.6886 7.47001C96.6886 2.88001 89.7339 1.02001 85.5086 1.02001C79.2392 1.02001 74.5799 4.57001 74.5799 10.2C74.5799 11.42 74.7855 13.1 75.8133 14.04C76.3043 14.51 77.1265 14.51 77.7775 14.51C80.2327 14.51 83.3503 15.19 84.6521 17.16C84.7778 17.34 84.892 17.63 84.892 17.84C84.892 17.91 84.892 18.02 84.812 17.98C84.5722 17.91 84.3667 17.73 84.1954 17.59C82.7565 16.37 80.7923 15.15 78.7139 15.15C75.5963 15.15 74.5 17.77 74.5 20.06C74.5 24.68 79.2506 27.23 84.0812 27.23C89.8139 27.23 96.6886 23.93 96.6886 18.3C96.6886 16.22 95.6608 13.89 93 13.68V13.67Z" fill="currentColor"/>
1856
- </svg>
1857
- `}if(this.variant==="logo"&&!this.outline&&this.mini)return $.html`
1858
- <!-- prettier-ignore -->
1859
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 163 28" fill="none">
1860
- <path d="M10.4 0.619995C2.76 0.619995 0.5 5.99999 0.5 12.78C0.5 15.29 0.75 17.76 1.04 20.24C1.15 21.21 1.11 22.28 1.29 23.25C1.76 25.8 4.16 26.98 6.49 26.98C9.68 26.98 11.8 24.97 11.8 21.75C11.8 19.89 11.19 18.67 9.43 17.95C9.32 17.91 9.21 17.88 9.21 17.73C9.21 17.48 9.61 17.3 9.86 17.3C10.72 17.3 12.08 18.16 13.27 18.16C17.93 18.16 20.51 13.68 20.51 9.47999C20.51 3.37999 16.02 0.619995 10.4 0.619995ZM10.36 13.81C10.07 13.81 9.82 13.56 9.82 13.27C9.82 12.88 10.36 12.59 10.54 12.27C10.93 11.55 11.04 10.33 11.04 9.51C11.04 8.54 10.79 6.75 10.18 6.02999C10 5.81999 9.75 5.71 9.75 5.42C9.75 5.13 10.04 4.88 10.32 4.88C11.54 4.88 12.15 8.47 12.15 9.39999C12.15 10.4 11.83 13.81 11.2599 13.81Z" fill="currentColor"/>
1861
- <path d="M32.74 1.22998C25.14 1.22998 20.58 6.60998 20.58 13.99C20.58 21.37 25.13 26.75 32.74 26.75C40.35 26.75 44.86 21.3 44.86 13.99C44.86 6.67998 40.27 1.22998 32.74 1.22998ZM33.07 23.1C32.95 23.25 32.71 23.53 32.42 23.53C32.13 23.53 31.85 23.28 31.85 22.99C31.85 22.88 32.78 21.48 32.93 21.05C33.5 19.36 33.61 17.53 33.61 15.74C33.61 13.34 33.18 10.25 31.71 8.27998C31.42 7.91998 30.53 7.23998 30.53 6.84998C30.53 6.55998 30.78 6.30998 31.07 6.30998C31.32 6.30998 31.57 6.52998 31.75 6.66998C34.04 8.56998 34.73 12.91 34.73 15.74C34.73 17.96 34.64 21.2 33.08 23.09L33.07 23.1Z" fill="currentColor"/>
1862
- <path d="M55.31 0.619995C47.67 0.619995 45.41 5.99999 45.41 12.78C45.41 15.29 45.66 17.76 45.95 20.24C46.06 21.21 46.02 22.28 46.2 23.25C46.67 25.8 49.07 26.98 51.4 26.98C54.59 26.98 56.71 24.97 56.71 21.75C56.71 19.89 56.1 18.67 54.34 17.95C54.23 17.91 54.12 17.88 54.12 17.73C54.12 17.48 54.52 17.3 54.77 17.3C55.63 17.3 56.99 18.16 58.18 18.16C62.84 18.16 65.42 13.68 65.42 9.47999C65.42 3.37999 60.94 0.619995 55.31 0.619995ZM55.28 13.81C54.99 13.81 54.74 13.56 54.74 13.27C54.74 12.88 55.28 12.59 55.46 12.27C55.85 11.55 55.96 10.33 55.96 9.51C55.96 8.54 55.71 6.75 55.1 6.02999C54.92 5.81999 54.67 5.71 54.67 5.42C54.67 5.13 54.96 4.88 55.24 4.88C56.46 4.88 57.07 8.47 57.07 9.39999C57.07 10.4 56.75 13.81 55.28 13.81Z" fill="currentColor"/>
1863
- <path d="M81.25 11.23C78.67 11.23 75.08 12.41 75.08 15.5C75.08 17.26 76.37 19.87 78.42 19.87C79.71 19.87 80.54 18.87 80.97 18.87C81.08 18.87 81.18 18.94 81.18 19.05C81.18 20.09 79.17 20.56 78.38 20.56C75.62 20.56 74.15 18.19 74.15 15.68C74.15 12.6 77.05 10.23 79.99 10.23C80.85 10.23 81.75 10.48 82.61 10.48C85.16 10.48 86.98 8.19002 86.98 5.75002C86.98 1.70002 82.18 0.77002 78.98 0.77002C70.48 0.77002 65.53 6.29002 65.53 14.68C65.53 22.43 69.55 27.37 77.51 27.37C82.67 27.37 88.3 25.15 88.3 19.12C88.3 15 85.61 11.23 81.24 11.23H81.25Z" fill="currentColor"/>
1864
- <path d="M104.96 17.33C104.31 17.33 103.78 17.58 103.24 17.58C103.13 17.58 103.1 17.47 103.1 17.4C103.1 17.15 103.21 17.04 103.39 16.97C104 16.76 104.65 16.61 105.25 16.32C107.98 15.03 109.59 12.73 109.59 9.68999C109.59 4.2 104.89 0.869995 99.73 0.869995C97.86 0.869995 96.04 1.41 94.46 2.27C90.16 4.6 89.33 7.93999 89.08 12.49C88.97 14.28 88.97 16.08 88.97 17.87V22.21C88.97 24.93 90.76 27.12 93.59 27.12C95.63 27.12 97.46 25.65 97.93 23.71C98.18 22.56 98.04 21.2 98.04 20.09C98.04 19.98 98.08 19.95 98.18 19.95C98.28 19.95 98.4 20.02 98.47 20.06C99.73 23.11 101.45 26.98 105.35 26.98C108.04 26.98 110.26 25.08 110.26 22.32C110.26 19.56 107.68 17.34 104.95 17.34L104.96 17.33ZM99.12 13.81C98.83 13.81 98.58 13.56 98.58 13.27C98.58 12.88 99.12 12.59 99.3 12.27C99.69 11.55 99.8 10.33 99.8 9.51C99.8 8.54 99.55 6.75 98.94 6.02999C98.76 5.81999 98.55 5.71 98.55 5.42C98.55 5.13 98.8 4.88 99.09 4.88C100.31 4.88 100.92 8.47 100.92 9.39999C100.92 10.4 100.63 13.81 99.13 13.81H99.12Z" fill="currentColor"/>
1865
- <path d="M118.88 2.01997C118.02 1.44997 116.8 1.15997 115.76 1.15997C113.5 1.15997 111.56 2.94997 111.31 5.17997C111.24 5.82997 111.27 6.43997 111.27 7.11997V13.21L111.16 19.63V22.82C111.16 25.33 113.31 27.3 115.79 27.3C117.62 27.3 119.63 26.15 120.31 24.43C120.7 23.46 120.74 22.1 120.74 21.06V18.26L120.78 12.67V7.07997C120.78 4.99997 120.74 3.34997 118.88 2.01997Z" fill="currentColor"/>
1866
- <path d="M127.82 0.939993C124.16 0.939993 122.33 2.65999 122.33 6.34999V7.81999L122.37 10.72V12.19C122.37 13.3 122.37 14.34 122.33 15.45C122.26 16.78 122.08 18.1 122.08 19.47C122.08 24.49 124.66 26.93 129.65 26.93C137.32 26.93 142.52 23.63 142.52 15.42C142.52 5.51999 137.75 0.929993 127.82 0.929993V0.939993ZM131.26 20.77C130.97 20.77 130.72 20.52 130.72 20.23C130.72 20.12 130.76 20.05 130.83 19.94C131.76 18.4 132.01 16.25 132.01 14.49C132.01 12.84 131.83 10.4 130.79 9.10999C130.61 8.81999 130.25 8.60999 130.25 8.24999C130.25 7.95999 130.5 7.70999 130.79 7.70999C131.33 7.70999 132.08 9.06999 132.3 9.53999C132.98 11.12 133.09 12.84 133.09 14.52C133.09 15.56 132.55 20.76 131.26 20.76V20.77Z" fill="currentColor"/>
1867
- <path d="M159.27 13.67C157.19 13.49 154.21 12.77 152.6 11.41C152.39 11.23 152.03 10.98 152.03 10.66C152.03 10.55 152.07 10.37 152.21 10.37C152.6 10.37 155.11 12.38 157.27 12.38C160 12.38 162.5 10.26 162.5 7.47002C162.5 2.88002 156.41 1.02002 152.71 1.02002C147.22 1.02002 143.14 4.57002 143.14 10.2C143.14 11.42 143.32 13.1 144.22 14.04C144.65 14.51 145.37 14.51 145.94 14.51C148.09 14.51 150.82 15.19 151.96 17.16C152.07 17.34 152.17 17.63 152.17 17.84C152.17 17.91 152.17 18.02 152.1 17.98C151.89 17.91 151.71 17.73 151.56 17.59C150.3 16.37 148.58 15.15 146.76 15.15C144.03 15.15 143.07 17.77 143.07 20.06C143.07 24.68 147.23 27.23 151.46 27.23C156.48 27.23 162.5 23.93 162.5 18.3C162.5 16.22 161.6 13.89 159.27 13.68V13.67Z" fill="currentColor"/>
1868
- </svg>
1869
- `;if(this.variant==="icon")return $.html`
1870
- <div
1871
- class=${(0,a0.classMap)({logo:!0,"logo--variant-icon":!0,[`logo--theme-${this.theme}`]:!0,"mask mask--squircle":!0})}
1872
- >
1873
- ${(0,np.when)(this.theme==="white"||this.theme==="black",()=>$.html`
1874
- <img
1875
- src=${Yp}
1876
- class="squircle-image"
1877
- alt="An animated background image of rotating lights and shapes"
1878
- />
1879
- `,()=>$.html` <div class="logo--variant-icon__background"></div> `)}
1880
- <img src=${kp} class="logomark-letter-image" alt="The letter P" />
1881
- </div>
1882
- `}};v.styles=[o(v,v,"styles"),L,lp],p([(0,D.property)({type:String,reflect:!0})],v.prototype,"variant",2),p([(0,D.property)({type:String,reflect:!0})],v.prototype,"theme",2),p([(0,D.property)({type:Boolean,reflect:!0})],v.prototype,"outline",2),p([(0,D.property)({type:Boolean,reflect:!0})],v.prototype,"mini",2),v=p([(0,D.customElement)("pop-logo")],v);var hp=v;var cp=require("lit"),T=require("lit/decorators.js"),Hp=require("lit/directives/class-map.js");var sp=require("lit"),xp=sp.css`
1883
- :host {
1884
- display: block;
1885
-
1886
- --sum-background: var(--color-surface-bg-default);
1887
- --sum-border-color: var(--color-border-border-reversed);
1888
- --sum-color: var(--color-text-text-default);
1889
- }
1890
-
1891
- .sum {
1892
- align-items: center;
1893
- background-color: var(--sum-border-color);
1894
- display: flex;
1895
- flex-shrink: 0;
1896
- height: 32px;
1897
- justify-content: center;
1898
- padding: 0.5px;
1899
- width: 32px;
1900
- }
1901
-
1902
- /**
1903
- * Content
1904
- */
1905
-
1906
- .sum__content {
1907
- align-items: center;
1908
- background: var(--sum-background);
1909
- display: flex;
1910
- justify-content: center;
1911
- overflow: hidden;
1912
- height: 31px;
1913
- width: 31px;
1914
- }
1915
-
1916
- .sum__label {
1917
- color: var(--sum-color);
1918
- font-size: var(--font-size-md);
1919
- font-style: normal;
1920
- font-weight: var(--font-weight-medium);
1921
- letter-spacing: -0.96px;
1922
- line-height: 28px;
1923
- text-align: center;
1924
- user-select: none;
1925
- }
1926
- `;var G=class extends P{constructor(){super(...arguments);this.id=""}render(){return cp.html`
1927
- <div
1928
- class=${(0,Hp.classMap)({sum:!0,"mask mask--squircle":!0})}
1929
- part="base"
1930
- >
1931
- <div class="sum__content mask mask--squircle">
1932
- <slot class="sum__label">0</slot>
1933
- </div>
1934
- </div>
1935
- `}};G.styles=[o(G,G,"styles"),L,xp],p([(0,T.property)({type:String})],G.prototype,"id",2),G=p([(0,T.customElement)("pop-sum")],G);var dp=G;var gp=require("lit"),Q=require("lit/decorators.js"),Xp=require("lit/directives/class-map.js");var fp=require("lit"),vp=fp.css`
1936
- :host {
1937
- display: inline-block;
1938
- }
1939
-
1940
- .timestamp-countdown {
1941
- display: inline-flex;
1942
- align-items: center;
1943
- justify-content: center;
1944
- font-variant-numeric: tabular-nums;
1945
- font-weight: 500;
1946
- }
1947
- `;var u=class extends P{constructor(){super(...arguments);this.expires="";this.displayText="00:00"}get datetimeContent(){return this.textContent?.trim()||""}connectedCallback(){super.connectedCallback(),new MutationObserver(()=>this.tick()).observe(this,{childList:!0,characterData:!0,subtree:!0}),this.tick(),this.interval=window.setInterval(()=>this.tick(),1e3)}disconnectedCallback(){this.interval&&window.clearInterval(this.interval),super.disconnectedCallback()}formatTime(t){let i=Math.floor(t/1e3),h=Math.floor(i/60),k=i%60;return`${String(h).padStart(2,"0")}:${String(k).padStart(2,"0")}`}getTargetTimestamp(){let t=this.expires||this.textContent?.trim()||"";return new Date(t)}tick(){let t=new Date,i=this.getTargetTimestamp();if(Number.isNaN(i.getTime()))return;let h=i.getTime()-t.getTime();if(h<=0){this.displayText="00:00",this.interval&&(window.clearInterval(this.interval),this.interval=void 0),this.emit("pop-expired",{}),this.requestUpdate();return}this.displayText=this.formatTime(h),this.requestUpdate()}render(){return gp.html`
1948
- <div
1949
- class=${(0,Xp.classMap)({"timestamp-countdown":!0})}
1950
- part="base"
1951
- >
1952
- <slot style="display: none;"></slot>
1953
- ${this.displayText}
1954
- </div>
1955
- `}};u.styles=[o(u,u,"styles"),vp],p([(0,Q.property)({type:String,attribute:"expires-at",reflect:!0})],u.prototype,"expires",2),p([(0,Q.property)()],u.prototype,"datetimeContent",1),u=p([(0,Q.customElement)("pop-timestamp-countdown")],u);var up=u;var Cp=require("lit"),j=require("lit/decorators.js"),Gp=require("lit/directives/class-map.js");var bp=require("lit"),mp=bp.css`
1956
- :host {
1957
- display: block;
1958
- --toast-color: var(--color-text-text-default, #000);
1959
- }
1960
-
1961
- .toast {
1962
- display: flex;
1963
- padding: var(--spacing-lg, 12px) var(--spacing-xl, 16px);
1964
- justify-content: center;
1965
- align-items: center;
1966
- color: var(--toast-color);
1967
- gap: var(--spacing-lg, 12px);
1968
- border-radius: var(--radius-xl, 12px);
1969
- font-size: var(--text-sm);
1970
- line-height: var(--text-sm--line-height);
1971
- font-weight: 500;
1972
- }
1973
-
1974
- .toast--theme-transparent {
1975
- background: var(--color-black-alpha-500, rgba(0, 0, 32, 0.5));
1976
- backdrop-filter: blur(20px);
1977
- --toast-color: var(--color-text-text-white, #fff);
1978
- }
1979
-
1980
- .toast--theme-default {
1981
- background-color: var(--color-text-text-default, #fff);
1982
- backdrop-filter: blur(12px);
1983
- --toast-color: var(--color-text-text-reversed, #fff);
1984
- }
1985
-
1986
- .toast--theme-reversed {
1987
- background-color: var(--color-text-text-reversed, #000);
1988
- --toast-color: var(--color-text-text-default, #000);
1989
- backdrop-filter: blur(12px);
1990
- }
1991
-
1992
- .toast__close {
1993
- color: var(--toast-color);
1994
- }
1995
- `;var w=class extends P{constructor(){super(...arguments);this.theme="default"}close(){this.emit("pop-close")}render(){return Cp.html`
1996
- <div
1997
- class=${(0,Gp.classMap)({toast:!0,[`toast--theme-${this.theme}`]:!0})}
1998
- part="base"
1999
- >
2000
- <slot name="icon"></slot>
2001
- <slot></slot>
2002
- <button part="close" aria-label="Close" class="toast__close" type="button" @click=${this.close}>
2003
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2004
- <path
2005
- d="M13.5 4.5L4.5 13.5M4.5 4.5L13.5 13.5"
2006
- stroke="currentColor"
2007
- stroke-width="1.5"
2008
- stroke-linecap="round"
2009
- stroke-linejoin="round"
2010
- />
2011
- </svg>
2012
- </button>
2013
- </div>
2014
- `}};w.styles=[o(w,w,"styles"),mp],p([(0,j.property)({type:String,reflect:!0})],w.prototype,"theme",2),w=p([(0,j.customElement)("pop-toast")],w);var wp=w;0&&(module.exports={PopButton,PopButtonLink,PopButtonVertical,PopCodeInputField,PopCommentAvatar,PopCommentIcon,PopElement,PopFocusIndicator,PopFormInputSimple,PopIcon,PopLoader,PopLogo,PopSum,PopTimestampCountdown,PopToast,colors,sampleColor});
1
+ 'use strict';var button=require('@base-ui/react/button'),classVarianceAuthority=require('class-variance-authority'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function a(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var n=classVarianceAuthority.cva("inline-flex relative items-center gap-1.5 whitespace-nowrap font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 text-foreground bg-background group/button outline-none",{variants:{align:{left:"justify-start",center:"justify-center",right:"justify-end"},collapsed:{false:null,true:"min-w-10 max-w-10 justify-center"},outline:{false:null,true:""},leading:{false:null},theme:{base:"[--background:var(--color-brand-midnight-900)] [--foreground:var(--color-text-text-reversed)]",brand:"[--background:var(--color-foreground)] [--foreground:var(--color-background)]",error:""},trailing:{false:null},variant:{default:"hover:bg-background/90",outline:"backdrop-blur-lg ",primary:"bg-primary-foreground/0 backdrop-blur-lg text-primary",secondary:"bg-secondary-foreground/0 backdrop-blur-lg text-secondary",tertiary:"bg-background/0 backdrop-blur-lg [--foreground:var(--color-text-text-default)]"},pill:{false:"rounded-xs",true:"rounded-full"},size:{default:"h-10 min-h-10 px-3 py-2 text-sm [&_svg:not([class*='size-'])]:size-[18px]",lg:"h-12 min-h-12 text-base [&_svg:not([class*='size-'])]:size-[20px]"}},defaultVariants:{align:"center",pill:false,size:"default",theme:"brand",variant:"default"},compoundVariants:[{pill:true,size:"default",class:"min-w-10 min-h-10 px-4"},{pill:true,collapsed:true,class:"max-w-10"},{pill:true,size:"lg",class:"min-w-12 min-h-12 px-4"},{pill:true,size:"lg",collapsed:true,class:"max-w-[54px] max-h-12"},{collapsed:false,size:"default",align:"left",pill:false,class:"pr-3 pl-2"},{align:"center",collapsed:false,size:"default",pill:false,class:"px-3"},{leading:true,pill:false,align:"left",size:"default",class:"pr-3 pl-2"},{collapsed:false,size:"default",pill:true,class:"px-4"},{size:"lg",pill:true,collapsed:false,class:"px-4"},{variant:"primary",outline:true,class:"ring ring-background bg-background/0 text-background hover:ring-2 active:ring active:bg-background/1 disabled:outline-none disabled:bg-background/0 focus-visible:ring focus-visible:outline-background focus-visible:bg-background/1"},{variant:"secondary",outline:true,class:"bg-background/0 ring ring-foreground/0 hover:ring-foreground active:ring-foreground/0 disabled:ring-foreground/0 backdrop-blur-lg focus-visible:backdrop-blur-md"},{variant:"primary",theme:"error",class:"[--background:var(--color-error-100)] [--foreground:var(--color-text-text-default)]"},{variant:"tertiary",theme:"error",class:"[--background:transparent] [--foreground:var(--color-error-700)]"}]}),z=classVarianceAuthority.cva("absolute inset-0 transition-all group-focus-visible/button:border-ring-3 group-focus-visible/button:ring-ring/60 group-focus-visible/button:ring-[3px] group-aria-invalid/button:ring-destructive/20 dark:group-aria-invalid/button:ring-destructive/40 group-aria-invalid/button:border-destructive rounded-[inherit]",{variants:{outline:{false:null},variant:{default:"",outline:"",primary:"bg-tint-700-reversed/0 hover:bg-tint-700-reversed hover:bg-tint-700-reversed active:bg-tint-700-reversed/0 disabled:bg-tint-700-reversed disabled:bg-tint-900-default focus-visible:bg-tint-700-reversed/0",secondary:"bg-tint-900-default hover:bg-tint-800-default active:bg-tint-900-default disabled:bg-tint-900-default focus-visible:bg-tint-800-default",tertiary:"bg-tint-950-reversed hover:bg-tint-900-default active:bg-tint-950-reversed disabled:bg-tint-950-reversed focus-visible:bg-tint-950-reversed"}},defaultVariants:{outline:false,variant:"default"},compoundVariants:[{outline:true,variant:"primary",class:"bg-tint-950-reversed hover:bg-tint-950-reversed active:bg-tint-950-reversed disabled:bg-tint-900-default focus-visible:bg-tint-950-reversed"},{outline:true,variant:"secondary",class:"bg-tint-950-reversed hover:bg-tint-950-reversed active:bg-tint-950-reversed disabled:bg-tint-900-default focus-visible:bg-tint-950-reversed"}]});function d({className:e,children:g,collapsed:b=false,variant:l="default",size:c="default",align:f="center",outline:o=false,pill:v=false,theme:p="brand",leadingElement:r,trailingElement:t,...m}){let x={variant:l,size:c,align:f,outline:o,collapsed:b,pill:v,leading:r!=null,theme:p,trailing:t!=null};return jsxRuntime.jsxs(button.Button,{"data-slot":"button",className:a(n(x),e),...m,children:[jsxRuntime.jsx("div",{className:a(z({variant:l,outline:o??false}))}),r&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:r}),g,t&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:t})]})}exports.Button=d;exports.buttonVariants=n;//# sourceMappingURL=index.cjs.map
2015
2
  //# sourceMappingURL=index.cjs.map