@x33025/sveltely 0.0.4 → 0.0.6
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.
|
@@ -70,15 +70,20 @@
|
|
|
70
70
|
{#if isOpen}
|
|
71
71
|
<div
|
|
72
72
|
use:portal
|
|
73
|
-
class="dropdown-menu fixed z-50
|
|
73
|
+
class="dropdown-menu fixed z-50 border border-gray-200 focus:outline-none"
|
|
74
74
|
style="top: {menuCoords.top}px; {align === 'left'
|
|
75
75
|
? `left: ${menuCoords.left}px;`
|
|
76
|
-
: `right: ${window.innerWidth - menuCoords.left}px;`}"
|
|
76
|
+
: `right: ${window.innerWidth - menuCoords.left}px;`}; border-radius: var(--dropdown-border-radius); background: var(--dropdown-background); box-shadow: var(--dropdown-shadow);"
|
|
77
77
|
role="menu"
|
|
78
78
|
aria-orientation="vertical"
|
|
79
79
|
tabindex="-1"
|
|
80
80
|
>
|
|
81
|
-
<div
|
|
81
|
+
<div
|
|
82
|
+
class="overflow-auto"
|
|
83
|
+
style="padding: var(--dropdown-content-padding);"
|
|
84
|
+
role="none"
|
|
85
|
+
onclick={handleSelect}
|
|
86
|
+
>
|
|
82
87
|
{@render children()}
|
|
83
88
|
</div>
|
|
84
89
|
</div>
|
package/dist/style/index.css
CHANGED
|
@@ -12,20 +12,16 @@
|
|
|
12
12
|
@apply flex size-full min-h-0 flex-col;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.page {
|
|
16
|
-
@apply flex min-h-0 w-full flex-1 flex-col;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
15
|
.center {
|
|
20
16
|
@apply items-center justify-center;
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
.vstack {
|
|
24
|
-
@apply flex min-h-0 flex-
|
|
20
|
+
@apply flex h-full min-h-0 flex-col;
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
.hstack {
|
|
28
|
-
@apply flex min-w-0 flex-
|
|
24
|
+
@apply flex w-full min-w-0 flex-row;
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
.spacer {
|
|
@@ -56,5 +52,11 @@
|
|
|
56
52
|
--sheet-overlay: color-mix(in oklab, var(--color-black) 20%, transparent);
|
|
57
53
|
--sheet-blur: var(--blur-sm);
|
|
58
54
|
--sheet-shadow: var(--shadow-md);
|
|
55
|
+
|
|
56
|
+
--dropdown-border-radius: var(--radius-md);
|
|
57
|
+
--dropdown-content-padding: calc(var(--spacing));
|
|
58
|
+
|
|
59
|
+
--dropdown-background: var(--color-white);
|
|
60
|
+
--dropdown-shadow: var(--shadow-md);
|
|
59
61
|
}
|
|
60
62
|
}
|
package/dist/style.css
CHANGED
|
@@ -301,9 +301,6 @@
|
|
|
301
301
|
.rounded-full {
|
|
302
302
|
border-radius: calc(infinity * 1px);
|
|
303
303
|
}
|
|
304
|
-
.rounded-md {
|
|
305
|
-
border-radius: var(--radius-md);
|
|
306
|
-
}
|
|
307
304
|
.border {
|
|
308
305
|
border-style: var(--tw-border-style);
|
|
309
306
|
border-width: 1px;
|
|
@@ -345,9 +342,6 @@
|
|
|
345
342
|
.bg-white {
|
|
346
343
|
background-color: var(--color-white);
|
|
347
344
|
}
|
|
348
|
-
.p-1 {
|
|
349
|
-
padding: calc(var(--spacing) * 1);
|
|
350
|
-
}
|
|
351
345
|
.p-1\.5 {
|
|
352
346
|
padding: calc(var(--spacing) * 1.5);
|
|
353
347
|
}
|
|
@@ -417,10 +411,6 @@
|
|
|
417
411
|
--tw-numeric-spacing: tabular-nums;
|
|
418
412
|
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
419
413
|
}
|
|
420
|
-
.shadow-lg {
|
|
421
|
-
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
422
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
423
|
-
}
|
|
424
414
|
.ring-1 {
|
|
425
415
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
426
416
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -516,27 +506,20 @@
|
|
|
516
506
|
min-height: calc(var(--spacing) * 0);
|
|
517
507
|
flex-direction: column;
|
|
518
508
|
}
|
|
519
|
-
.page {
|
|
520
|
-
display: flex;
|
|
521
|
-
min-height: calc(var(--spacing) * 0);
|
|
522
|
-
width: 100%;
|
|
523
|
-
flex: 1;
|
|
524
|
-
flex-direction: column;
|
|
525
|
-
}
|
|
526
509
|
.center {
|
|
527
510
|
align-items: center;
|
|
528
511
|
justify-content: center;
|
|
529
512
|
}
|
|
530
513
|
.vstack {
|
|
531
514
|
display: flex;
|
|
515
|
+
height: 100%;
|
|
532
516
|
min-height: calc(var(--spacing) * 0);
|
|
533
|
-
flex: 1;
|
|
534
517
|
flex-direction: column;
|
|
535
518
|
}
|
|
536
519
|
.hstack {
|
|
537
520
|
display: flex;
|
|
521
|
+
width: 100%;
|
|
538
522
|
min-width: calc(var(--spacing) * 0);
|
|
539
|
-
flex: 1;
|
|
540
523
|
flex-direction: row;
|
|
541
524
|
}
|
|
542
525
|
.spacer {
|
|
@@ -568,6 +551,10 @@
|
|
|
568
551
|
}
|
|
569
552
|
--sheet-blur: var(--blur-sm);
|
|
570
553
|
--sheet-shadow: var(--shadow-md);
|
|
554
|
+
--dropdown-border-radius: var(--radius-md);
|
|
555
|
+
--dropdown-content-padding: calc(var(--spacing));
|
|
556
|
+
--dropdown-background: var(--color-white);
|
|
557
|
+
--dropdown-shadow: var(--shadow-md);
|
|
571
558
|
}
|
|
572
559
|
}
|
|
573
560
|
@property --tw-space-y-reverse {
|