loseta 0.12.0 → 0.14.0

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.
Files changed (111) hide show
  1. package/package.json +1 -1
  2. package/registry/examples/sidebar.html +1 -1
  3. package/registry/registry.json +646 -16
  4. package/registry/styles/luma/calendar.css +78 -0
  5. package/registry/styles/luma/carousel.css +63 -0
  6. package/registry/styles/luma/chart.css +51 -0
  7. package/registry/styles/luma/combobox.css +59 -0
  8. package/registry/styles/luma/command.css +21 -0
  9. package/registry/styles/luma/context-menu.css +19 -0
  10. package/registry/styles/luma/drawer.css +60 -0
  11. package/registry/styles/luma/hover-card.css +22 -0
  12. package/registry/styles/luma/menubar.css +48 -0
  13. package/registry/styles/luma/navigation-menu.css +79 -0
  14. package/registry/styles/luma/primitives/listbox.css +71 -0
  15. package/registry/styles/luma/resizable.css +34 -0
  16. package/registry/styles/luma/select.css +75 -0
  17. package/registry/styles/luma/sheet.css +54 -0
  18. package/registry/styles/luma/toast.css +62 -0
  19. package/registry/styles/lyra/calendar.css +78 -0
  20. package/registry/styles/lyra/carousel.css +63 -0
  21. package/registry/styles/lyra/chart.css +51 -0
  22. package/registry/styles/lyra/combobox.css +59 -0
  23. package/registry/styles/lyra/command.css +21 -0
  24. package/registry/styles/lyra/context-menu.css +19 -0
  25. package/registry/styles/lyra/drawer.css +60 -0
  26. package/registry/styles/lyra/hover-card.css +22 -0
  27. package/registry/styles/lyra/menubar.css +48 -0
  28. package/registry/styles/lyra/navigation-menu.css +79 -0
  29. package/registry/styles/lyra/primitives/listbox.css +71 -0
  30. package/registry/styles/lyra/resizable.css +34 -0
  31. package/registry/styles/lyra/select.css +75 -0
  32. package/registry/styles/lyra/sheet.css +54 -0
  33. package/registry/styles/lyra/toast.css +62 -0
  34. package/registry/styles/maia/calendar.css +78 -0
  35. package/registry/styles/maia/carousel.css +63 -0
  36. package/registry/styles/maia/chart.css +51 -0
  37. package/registry/styles/maia/combobox.css +59 -0
  38. package/registry/styles/maia/command.css +21 -0
  39. package/registry/styles/maia/context-menu.css +19 -0
  40. package/registry/styles/maia/drawer.css +60 -0
  41. package/registry/styles/maia/hover-card.css +22 -0
  42. package/registry/styles/maia/menubar.css +48 -0
  43. package/registry/styles/maia/navigation-menu.css +79 -0
  44. package/registry/styles/maia/primitives/listbox.css +71 -0
  45. package/registry/styles/maia/resizable.css +34 -0
  46. package/registry/styles/maia/select.css +75 -0
  47. package/registry/styles/maia/sheet.css +54 -0
  48. package/registry/styles/maia/toast.css +62 -0
  49. package/registry/styles/mira/calendar.css +78 -0
  50. package/registry/styles/mira/carousel.css +63 -0
  51. package/registry/styles/mira/chart.css +51 -0
  52. package/registry/styles/mira/combobox.css +59 -0
  53. package/registry/styles/mira/command.css +21 -0
  54. package/registry/styles/mira/context-menu.css +19 -0
  55. package/registry/styles/mira/drawer.css +60 -0
  56. package/registry/styles/mira/hover-card.css +22 -0
  57. package/registry/styles/mira/menubar.css +48 -0
  58. package/registry/styles/mira/navigation-menu.css +79 -0
  59. package/registry/styles/mira/primitives/listbox.css +71 -0
  60. package/registry/styles/mira/resizable.css +34 -0
  61. package/registry/styles/mira/select.css +75 -0
  62. package/registry/styles/mira/sheet.css +54 -0
  63. package/registry/styles/mira/toast.css +62 -0
  64. package/registry/styles/nova/drawer.css +2 -2
  65. package/registry/styles/nova/select.css +4 -0
  66. package/registry/styles/nova/sheet.css +2 -2
  67. package/registry/styles/rhea/calendar.css +78 -0
  68. package/registry/styles/rhea/carousel.css +63 -0
  69. package/registry/styles/rhea/chart.css +51 -0
  70. package/registry/styles/rhea/combobox.css +59 -0
  71. package/registry/styles/rhea/command.css +21 -0
  72. package/registry/styles/rhea/context-menu.css +19 -0
  73. package/registry/styles/rhea/drawer.css +60 -0
  74. package/registry/styles/rhea/hover-card.css +22 -0
  75. package/registry/styles/rhea/menubar.css +48 -0
  76. package/registry/styles/rhea/navigation-menu.css +79 -0
  77. package/registry/styles/rhea/primitives/listbox.css +71 -0
  78. package/registry/styles/rhea/resizable.css +34 -0
  79. package/registry/styles/rhea/select.css +75 -0
  80. package/registry/styles/rhea/sheet.css +54 -0
  81. package/registry/styles/rhea/toast.css +62 -0
  82. package/registry/styles/sera/calendar.css +82 -0
  83. package/registry/styles/sera/carousel.css +63 -0
  84. package/registry/styles/sera/chart.css +51 -0
  85. package/registry/styles/sera/combobox.css +60 -0
  86. package/registry/styles/sera/command.css +21 -0
  87. package/registry/styles/sera/context-menu.css +19 -0
  88. package/registry/styles/sera/drawer.css +62 -0
  89. package/registry/styles/sera/hover-card.css +22 -0
  90. package/registry/styles/sera/menubar.css +48 -0
  91. package/registry/styles/sera/navigation-menu.css +79 -0
  92. package/registry/styles/sera/primitives/listbox.css +71 -0
  93. package/registry/styles/sera/resizable.css +34 -0
  94. package/registry/styles/sera/select.css +76 -0
  95. package/registry/styles/sera/sheet.css +56 -0
  96. package/registry/styles/sera/toast.css +64 -0
  97. package/registry/styles/vega/calendar.css +78 -0
  98. package/registry/styles/vega/carousel.css +63 -0
  99. package/registry/styles/vega/chart.css +51 -0
  100. package/registry/styles/vega/combobox.css +59 -0
  101. package/registry/styles/vega/command.css +21 -0
  102. package/registry/styles/vega/context-menu.css +19 -0
  103. package/registry/styles/vega/drawer.css +60 -0
  104. package/registry/styles/vega/hover-card.css +22 -0
  105. package/registry/styles/vega/menubar.css +48 -0
  106. package/registry/styles/vega/navigation-menu.css +79 -0
  107. package/registry/styles/vega/primitives/listbox.css +71 -0
  108. package/registry/styles/vega/resizable.css +34 -0
  109. package/registry/styles/vega/select.css +75 -0
  110. package/registry/styles/vega/sheet.css +54 -0
  111. package/registry/styles/vega/toast.css +62 -0
@@ -0,0 +1,34 @@
1
+ /* Resizable */
2
+ @layer loseta.style {
3
+ .resizable {
4
+ border-style: solid;
5
+ border-width: 1px;
6
+ border-color: var(--border);
7
+ border-radius: 0;
8
+ background-color: var(--background);
9
+
10
+ > .resizable-panel {
11
+ padding: 0.75rem;
12
+ font-size: var(--text-xs);
13
+ line-height: var(--text-xs--line-height);
14
+ }
15
+
16
+ > [data-slot='handle'] {
17
+ flex-basis: 0.375rem;
18
+ background-color: var(--background);
19
+
20
+ &::before {
21
+ background-color: var(--border);
22
+ }
23
+
24
+ &:hover::before,
25
+ &:focus-visible::before {
26
+ background-color: var(--ring);
27
+ }
28
+
29
+ &:focus-visible {
30
+ box-shadow: inset 0 0 0 1px var(--ring);
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,75 @@
1
+ /* Select */
2
+ @layer loseta.style {
3
+ .select {
4
+ > button {
5
+ height: 2rem;
6
+ border-style: solid;
7
+ border-width: 1px;
8
+ border-color: var(--input);
9
+ border-radius: 0;
10
+ background-color: light-dark(
11
+ transparent,
12
+ color-mix(in oklab, var(--input) 30%, transparent)
13
+ );
14
+ padding-inline: 0.625rem;
15
+ font-size: var(--text-xs);
16
+ line-height: var(--text-xs--line-height);
17
+ font-weight: 400;
18
+ text-align: start;
19
+ transition-property: color, background-color, border-color, box-shadow;
20
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
21
+ transition-duration: 150ms;
22
+
23
+ &:hover {
24
+ background-color: light-dark(
25
+ var(--muted),
26
+ color-mix(in oklab, var(--input) 50%, transparent)
27
+ );
28
+ }
29
+
30
+ &:focus-visible {
31
+ border-color: var(--ring);
32
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
33
+ }
34
+
35
+ &[aria-invalid='true'] {
36
+ border-color: light-dark(
37
+ var(--destructive),
38
+ color-mix(in oklab, var(--destructive) 50%, transparent)
39
+ );
40
+ box-shadow: 0 0 0 3px light-dark(
41
+ color-mix(in oklab, var(--destructive) 20%, transparent),
42
+ color-mix(in oklab, var(--destructive) 40%, transparent)
43
+ );
44
+ }
45
+
46
+ > svg {
47
+ width: 1rem;
48
+ height: 1rem;
49
+ color: var(--muted-foreground);
50
+ }
51
+ }
52
+
53
+ &[data-size='sm'] > button {
54
+ height: 1.75rem;
55
+ font-size: var(--text-xs);
56
+ line-height: var(--text-xs--line-height);
57
+ }
58
+
59
+ [data-slot='value'] {
60
+ flex: 1 1 auto;
61
+ overflow: hidden;
62
+ text-align: start;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ }
66
+
67
+ [data-slot='value'][data-placeholder] {
68
+ color: var(--muted-foreground);
69
+ }
70
+
71
+ &:is(:hover, :focus-visible, [aria-expanded='true']) [data-slot='value'][data-placeholder] {
72
+ color: var(--foreground);
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,54 @@
1
+ /* Sheet */
2
+ @layer loseta.style {
3
+ .sheet {
4
+ --sheet-width: 24rem;
5
+
6
+ &[data-size='sm'] {
7
+ --sheet-width: 20rem;
8
+ }
9
+
10
+ &[data-size='lg'] {
11
+ --sheet-width: 28rem;
12
+ }
13
+
14
+ > * {
15
+ gap: 1rem;
16
+ background-color: var(--background);
17
+ padding: 1rem;
18
+ color: var(--foreground);
19
+ box-shadow: var(--shadow-lg);
20
+ }
21
+
22
+ &[data-side='inline-start'] > * {
23
+ border-inline-end-style: solid;
24
+ border-inline-end-width: 1px;
25
+ border-inline-end-color: var(--border);
26
+ }
27
+
28
+ &[data-side='inline-end'] > * {
29
+ border-inline-start-style: solid;
30
+ border-inline-start-width: 1px;
31
+ border-inline-start-color: var(--border);
32
+ }
33
+
34
+ > * > header {
35
+ gap: 0.5rem;
36
+ }
37
+
38
+ > * > header > [data-slot='title'] {
39
+ font-size: var(--text-base);
40
+ line-height: 1;
41
+ font-weight: 500;
42
+ }
43
+
44
+ > * > header > [data-slot='description'] {
45
+ font-size: var(--text-sm);
46
+ line-height: var(--text-sm--line-height);
47
+ color: var(--muted-foreground);
48
+ }
49
+
50
+ > * > footer {
51
+ gap: 0.5rem;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,62 @@
1
+ /* Toast */
2
+ @layer loseta.style {
3
+ .toast {
4
+ border-style: solid;
5
+ border-width: 1px;
6
+ border-color: var(--border);
7
+ border-radius: 0;
8
+ background-color: var(--popover);
9
+ padding: 0.75rem 1rem;
10
+ color: var(--popover-foreground);
11
+ box-shadow: var(--shadow-lg);
12
+ font-size: var(--text-xs);
13
+ line-height: var(--text-xs--line-height);
14
+
15
+ [data-slot='title'] {
16
+ font-weight: 500;
17
+ }
18
+
19
+ [data-slot='description'] {
20
+ color: var(--muted-foreground);
21
+ }
22
+
23
+ [data-slot='close'] {
24
+ width: 1.5rem;
25
+ height: 1.5rem;
26
+ border-radius: 0;
27
+ color: var(--muted-foreground);
28
+
29
+ &:hover {
30
+ background-color: var(--muted);
31
+ color: var(--foreground);
32
+ }
33
+
34
+ &:focus-visible {
35
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
36
+ }
37
+ }
38
+
39
+ &[data-variant='destructive'] {
40
+ border-color: light-dark(
41
+ color-mix(in oklab, var(--destructive) 40%, transparent),
42
+ color-mix(in oklab, var(--destructive) 50%, transparent)
43
+ );
44
+ background-color: light-dark(
45
+ color-mix(in oklab, var(--destructive) 10%, transparent),
46
+ color-mix(in oklab, var(--destructive) 20%, transparent)
47
+ );
48
+ color: var(--destructive);
49
+
50
+ [data-slot='description'] {
51
+ color: light-dark(
52
+ color-mix(in oklab, var(--destructive) 80%, var(--foreground)),
53
+ var(--destructive)
54
+ );
55
+ }
56
+
57
+ [data-slot='close'] {
58
+ color: var(--destructive);
59
+ }
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,78 @@
1
+ /* Calendar */
2
+ @layer loseta.style {
3
+ .calendar {
4
+ width: 18rem;
5
+ gap: 0.75rem;
6
+
7
+ > header {
8
+ gap: 0.75rem;
9
+ }
10
+
11
+ > header > button {
12
+ width: 2rem;
13
+ height: 2rem;
14
+ border-radius: var(--radius-full);
15
+ color: var(--muted-foreground);
16
+
17
+ &:hover {
18
+ background-color: var(--muted);
19
+ color: var(--foreground);
20
+ }
21
+
22
+ &:focus-visible {
23
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
24
+ }
25
+
26
+ > svg {
27
+ width: 1rem;
28
+ height: 1rem;
29
+ }
30
+ }
31
+
32
+ [data-slot='title'] {
33
+ font-size: var(--text-sm);
34
+ line-height: var(--text-sm--line-height);
35
+ font-weight: 500;
36
+ }
37
+
38
+ th {
39
+ padding-block: 0.25rem;
40
+ font-size: var(--text-xs);
41
+ line-height: var(--text-xs--line-height);
42
+ color: var(--muted-foreground);
43
+ }
44
+
45
+ td > button {
46
+ width: 2.25rem;
47
+ height: 2.25rem;
48
+ border-radius: var(--radius-full);
49
+ font-size: var(--text-sm);
50
+ line-height: var(--text-sm--line-height);
51
+ transition-property: color, background-color, box-shadow;
52
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
53
+ transition-duration: 150ms;
54
+
55
+ &:hover {
56
+ background-color: var(--muted);
57
+ }
58
+
59
+ &:focus-visible {
60
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
61
+ }
62
+
63
+ &[aria-disabled='true'] {
64
+ opacity: 50%;
65
+ color: var(--muted-foreground);
66
+ }
67
+ }
68
+
69
+ td[aria-selected='true'] > button {
70
+ background-color: var(--primary);
71
+ color: var(--primary-foreground);
72
+ }
73
+
74
+ td > button[aria-current='date'] {
75
+ box-shadow: inset 0 0 0 1px var(--ring);
76
+ }
77
+ }
78
+ }
@@ -0,0 +1,63 @@
1
+ /* Carousel */
2
+ @layer loseta.style {
3
+ .carousel {
4
+ gap: 1rem;
5
+
6
+ .carousel-viewport {
7
+ border-radius: var(--radius-2xl);
8
+ }
9
+
10
+ .carousel-button {
11
+ width: 2.25rem;
12
+ height: 2.25rem;
13
+ border-style: solid;
14
+ border-width: 1px;
15
+ border-color: var(--border);
16
+ border-radius: var(--radius-full);
17
+ color: var(--muted-foreground);
18
+ transition-property: color, background-color, border-color, box-shadow;
19
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
20
+ transition-duration: 150ms;
21
+
22
+ &:hover {
23
+ background-color: var(--muted);
24
+ color: var(--foreground);
25
+ }
26
+
27
+ &:focus-visible {
28
+ border-color: var(--ring);
29
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
30
+ }
31
+
32
+ > svg {
33
+ width: 1rem;
34
+ height: 1rem;
35
+ }
36
+ }
37
+
38
+ .carousel-indicator {
39
+ color: var(--muted-foreground);
40
+ transition-property: color;
41
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
42
+ transition-duration: 150ms;
43
+
44
+ &::before {
45
+ width: 0.625rem;
46
+ height: 0.625rem;
47
+ border-radius: var(--radius-full);
48
+ }
49
+
50
+ &:hover {
51
+ color: var(--foreground);
52
+ }
53
+
54
+ &:focus-visible {
55
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
56
+ }
57
+
58
+ &[aria-current='true'] {
59
+ color: var(--primary);
60
+ }
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,51 @@
1
+ /* Chart */
2
+ @layer loseta.style {
3
+ .chart {
4
+ gap: 1rem;
5
+
6
+ > [data-slot='plot'] {
7
+ aspect-ratio: 16 / 9;
8
+ }
9
+
10
+ > [data-slot='legend'] {
11
+ gap: 1rem;
12
+ font-size: var(--text-xs);
13
+ line-height: var(--text-xs--line-height);
14
+ color: var(--muted-foreground);
15
+ }
16
+
17
+ [data-slot='legend-item'] {
18
+ color: var(--muted-foreground);
19
+ }
20
+
21
+ [data-slot='swatch'] {
22
+ width: 0.625rem;
23
+ height: 0.625rem;
24
+ border-radius: var(--radius-full);
25
+ }
26
+
27
+ [data-slot='tooltip'] {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 0.125rem;
31
+ border-style: solid;
32
+ border-width: 1px;
33
+ border-color: var(--border);
34
+ border-radius: var(--radius-xl);
35
+ background-color: var(--popover);
36
+ padding: 0.5rem 0.75rem;
37
+ color: var(--popover-foreground);
38
+ box-shadow: var(--shadow-2xl);
39
+ font-size: var(--text-xs);
40
+ line-height: var(--text-xs--line-height);
41
+
42
+ [data-slot='title'] {
43
+ font-weight: 500;
44
+ }
45
+
46
+ [data-slot='description'] {
47
+ color: var(--muted-foreground);
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,59 @@
1
+ /* Combobox */
2
+ @layer loseta.style {
3
+ .combobox {
4
+ > input {
5
+ height: 2.25rem;
6
+ border-style: solid;
7
+ border-width: 1px;
8
+ border-color: var(--input);
9
+ border-radius: var(--radius-full);
10
+ background-color: light-dark(
11
+ transparent,
12
+ color-mix(in oklab, var(--input) 30%, transparent)
13
+ );
14
+ padding-inline: 0.75rem;
15
+ font-size: var(--text-base);
16
+ line-height: 1.5;
17
+ transition-property: color, background-color, border-color, box-shadow;
18
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
19
+ transition-duration: 150ms;
20
+
21
+ &:focus-visible {
22
+ border-color: var(--ring);
23
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
24
+ }
25
+
26
+ &[aria-invalid='true'] {
27
+ border-color: light-dark(
28
+ var(--destructive),
29
+ color-mix(in oklab, var(--destructive) 50%, transparent)
30
+ );
31
+ box-shadow: 0 0 0 3px light-dark(
32
+ color-mix(in oklab, var(--destructive) 20%, transparent),
33
+ color-mix(in oklab, var(--destructive) 40%, transparent)
34
+ );
35
+ }
36
+
37
+ @media (width >= 48rem) {
38
+ font-size: var(--text-sm);
39
+ line-height: var(--text-sm--line-height);
40
+ }
41
+ }
42
+
43
+ &:has(> [data-slot='clear']) > input {
44
+ padding-inline-end: 2rem;
45
+ }
46
+
47
+ > [data-slot='clear'] {
48
+ width: 1.75rem;
49
+ height: 1.75rem;
50
+ border-radius: var(--radius-full);
51
+ color: var(--muted-foreground);
52
+
53
+ &:hover {
54
+ background-color: var(--muted);
55
+ color: var(--foreground);
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,21 @@
1
+ /* Command */
2
+ @layer loseta.style {
3
+ .command {
4
+ gap: 0.625rem;
5
+
6
+ [data-slot='shortcut'] {
7
+ font-size: var(--text-xs);
8
+ line-height: var(--text-xs--line-height);
9
+ letter-spacing: 0.1em;
10
+ color: var(--muted-foreground);
11
+ }
12
+
13
+ [role='listbox'] [role='option'] {
14
+ padding-inline-end: 0.75rem;
15
+ }
16
+
17
+ [role='listbox'] [role='option']:is(:hover, [data-highlighted]) [data-slot='shortcut'] {
18
+ color: var(--accent-foreground);
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,19 @@
1
+ /* Context Menu */
2
+ @layer loseta.style {
3
+ .context-menu {
4
+ min-width: 8rem;
5
+ max-width: 20rem;
6
+ border-radius: var(--radius-2xl);
7
+ background-color: var(--popover);
8
+ padding: 0.25rem;
9
+ color: var(--popover-foreground);
10
+ box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent), var(--shadow-2xl);
11
+ transition-property: opacity;
12
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
13
+ transition-duration: 150ms;
14
+
15
+ :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
16
+ white-space: nowrap;
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,60 @@
1
+ /* Drawer */
2
+ @layer loseta.style {
3
+ .drawer {
4
+ --drawer-height: 80vh;
5
+
6
+ &[data-size='sm'] {
7
+ --drawer-height: 50vh;
8
+ }
9
+
10
+ &[data-size='lg'] {
11
+ --drawer-height: 90vh;
12
+ }
13
+
14
+ > * {
15
+ gap: 1.5rem;
16
+ border-start-start-radius: var(--radius-4xl);
17
+ border-start-end-radius: var(--radius-4xl);
18
+ background-color: var(--background);
19
+ padding: 1.5rem;
20
+ color: var(--foreground);
21
+ box-shadow: var(--shadow-2xl);
22
+ }
23
+
24
+ &[data-side='block-start'] > * {
25
+ border-start-start-radius: 0;
26
+ border-start-end-radius: 0;
27
+ border-end-start-radius: var(--radius-4xl);
28
+ border-end-end-radius: var(--radius-4xl);
29
+ }
30
+
31
+ > * > [data-slot='handle'] {
32
+ width: 2.5rem;
33
+ height: 0.25rem;
34
+ margin-inline: auto;
35
+ border-radius: var(--radius-full);
36
+ background-color: var(--muted);
37
+ cursor: grab;
38
+ }
39
+
40
+ > * > header {
41
+ gap: 0.5rem;
42
+ }
43
+
44
+ > * > header > [data-slot='title'] {
45
+ font-size: var(--text-base);
46
+ line-height: 1;
47
+ font-weight: 500;
48
+ }
49
+
50
+ > * > header > [data-slot='description'] {
51
+ font-size: var(--text-sm);
52
+ line-height: var(--text-sm--line-height);
53
+ color: var(--muted-foreground);
54
+ }
55
+
56
+ > * > footer {
57
+ gap: 0.5rem;
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,22 @@
1
+ /* Hover Card */
2
+ @layer loseta.style {
3
+ .hover-card > [data-popover] {
4
+ width: 18rem;
5
+ gap: 0.5rem;
6
+ transition-delay: 0s;
7
+ }
8
+
9
+ .hover-card:hover > [data-popover],
10
+ .hover-card:focus-within > [data-popover] {
11
+ transition-delay: 300ms;
12
+ }
13
+
14
+ @media (prefers-reduced-motion: reduce) {
15
+ .hover-card > [data-popover],
16
+ .hover-card:hover > [data-popover],
17
+ .hover-card:focus-within > [data-popover] {
18
+ transition-delay: 0s;
19
+ transition-duration: 0s;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,48 @@
1
+ /* Menubar */
2
+ @layer loseta.style {
3
+ .menubar {
4
+ gap: 0.375rem;
5
+ border-style: solid;
6
+ border-width: 1px;
7
+ border-color: var(--border);
8
+ border-radius: var(--radius-2xl);
9
+ background-color: var(--background);
10
+ padding: 0.375rem;
11
+ box-shadow: var(--shadow-sm);
12
+
13
+ [role='menuitem'] {
14
+ height: 2rem;
15
+ gap: 0.375rem;
16
+ border-radius: var(--radius-full);
17
+ padding-inline: 0.75rem;
18
+ font-size: var(--text-sm);
19
+ line-height: var(--text-sm--line-height);
20
+ font-weight: 500;
21
+
22
+ &:hover,
23
+ &[aria-expanded='true'] {
24
+ background-color: var(--accent);
25
+ color: var(--accent-foreground);
26
+ }
27
+
28
+ &:focus-visible {
29
+ background-color: var(--accent);
30
+ color: var(--accent-foreground);
31
+ }
32
+
33
+ & svg {
34
+ width: 1rem;
35
+ height: 1rem;
36
+ }
37
+ }
38
+
39
+ [data-popover] {
40
+ min-width: 8rem;
41
+ max-width: 20rem;
42
+ }
43
+
44
+ [role='menu'] :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
45
+ white-space: nowrap;
46
+ }
47
+ }
48
+ }