loseta 0.12.0 → 0.13.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 (54) hide show
  1. package/package.json +1 -1
  2. package/registry/examples/sidebar.html +1 -1
  3. package/registry/registry.json +302 -8
  4. package/registry/styles/luma/context-menu.css +19 -0
  5. package/registry/styles/luma/drawer.css +60 -0
  6. package/registry/styles/luma/hover-card.css +22 -0
  7. package/registry/styles/luma/menubar.css +48 -0
  8. package/registry/styles/luma/navigation-menu.css +79 -0
  9. package/registry/styles/luma/sheet.css +54 -0
  10. package/registry/styles/luma/toast.css +62 -0
  11. package/registry/styles/lyra/context-menu.css +19 -0
  12. package/registry/styles/lyra/drawer.css +60 -0
  13. package/registry/styles/lyra/hover-card.css +22 -0
  14. package/registry/styles/lyra/menubar.css +48 -0
  15. package/registry/styles/lyra/navigation-menu.css +79 -0
  16. package/registry/styles/lyra/sheet.css +54 -0
  17. package/registry/styles/lyra/toast.css +62 -0
  18. package/registry/styles/maia/context-menu.css +19 -0
  19. package/registry/styles/maia/drawer.css +60 -0
  20. package/registry/styles/maia/hover-card.css +22 -0
  21. package/registry/styles/maia/menubar.css +48 -0
  22. package/registry/styles/maia/navigation-menu.css +79 -0
  23. package/registry/styles/maia/sheet.css +54 -0
  24. package/registry/styles/maia/toast.css +62 -0
  25. package/registry/styles/mira/context-menu.css +19 -0
  26. package/registry/styles/mira/drawer.css +60 -0
  27. package/registry/styles/mira/hover-card.css +22 -0
  28. package/registry/styles/mira/menubar.css +48 -0
  29. package/registry/styles/mira/navigation-menu.css +79 -0
  30. package/registry/styles/mira/sheet.css +54 -0
  31. package/registry/styles/mira/toast.css +62 -0
  32. package/registry/styles/nova/drawer.css +2 -2
  33. package/registry/styles/nova/sheet.css +2 -2
  34. package/registry/styles/rhea/context-menu.css +19 -0
  35. package/registry/styles/rhea/drawer.css +60 -0
  36. package/registry/styles/rhea/hover-card.css +22 -0
  37. package/registry/styles/rhea/menubar.css +48 -0
  38. package/registry/styles/rhea/navigation-menu.css +79 -0
  39. package/registry/styles/rhea/sheet.css +54 -0
  40. package/registry/styles/rhea/toast.css +62 -0
  41. package/registry/styles/sera/context-menu.css +19 -0
  42. package/registry/styles/sera/drawer.css +62 -0
  43. package/registry/styles/sera/hover-card.css +22 -0
  44. package/registry/styles/sera/menubar.css +48 -0
  45. package/registry/styles/sera/navigation-menu.css +79 -0
  46. package/registry/styles/sera/sheet.css +56 -0
  47. package/registry/styles/sera/toast.css +64 -0
  48. package/registry/styles/vega/context-menu.css +19 -0
  49. package/registry/styles/vega/drawer.css +60 -0
  50. package/registry/styles/vega/hover-card.css +22 -0
  51. package/registry/styles/vega/menubar.css +48 -0
  52. package/registry/styles/vega/navigation-menu.css +79 -0
  53. package/registry/styles/vega/sheet.css +54 -0
  54. package/registry/styles/vega/toast.css +62 -0
@@ -0,0 +1,79 @@
1
+ /* Navigation Menu */
2
+ @layer loseta.style {
3
+ .navigation-menu {
4
+ > ul {
5
+ gap: 0.25rem;
6
+ }
7
+
8
+ > ul > li > :is(a, button) {
9
+ height: 2.25rem;
10
+ gap: 0.25rem;
11
+ border-radius: var(--radius-md);
12
+ padding-inline: 0.5rem;
13
+ font-size: var(--text-sm);
14
+ line-height: var(--text-sm--line-height);
15
+ font-weight: 500;
16
+
17
+ &:hover,
18
+ &[aria-expanded='true'] {
19
+ background-color: var(--accent);
20
+ color: var(--accent-foreground);
21
+ }
22
+
23
+ &:focus-visible {
24
+ background-color: var(--accent);
25
+ color: var(--accent-foreground);
26
+ }
27
+
28
+ & svg {
29
+ width: 0.875rem;
30
+ height: 0.875rem;
31
+ }
32
+ }
33
+
34
+ > ul > li > [data-popover] {
35
+ width: 20rem;
36
+ max-width: calc(100vw - 2rem);
37
+ gap: 0.25rem;
38
+ padding: 0.75rem;
39
+ }
40
+
41
+ [data-popover] ul {
42
+ margin: 0;
43
+ display: grid;
44
+ list-style-type: none;
45
+ gap: 0.25rem;
46
+ padding: 0;
47
+ }
48
+
49
+ [data-popover] a {
50
+ display: grid;
51
+ gap: 0.125rem;
52
+ border-radius: var(--radius-md);
53
+ padding: 0.5rem;
54
+
55
+ &:hover,
56
+ &:focus-visible {
57
+ background-color: var(--accent);
58
+ color: var(--accent-foreground);
59
+ }
60
+ }
61
+
62
+ [data-slot='title'] {
63
+ font-size: var(--text-sm);
64
+ line-height: var(--text-sm--line-height);
65
+ font-weight: 500;
66
+ }
67
+
68
+ [data-slot='description'] {
69
+ font-size: var(--text-xs);
70
+ line-height: var(--text-xs--line-height);
71
+ color: var(--muted-foreground);
72
+ }
73
+
74
+ [data-popover] a:hover [data-slot='description'],
75
+ [data-popover] a:focus-visible [data-slot='description'] {
76
+ color: inherit;
77
+ }
78
+ }
79
+ }
@@ -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: 1.5rem;
16
+ background-color: var(--background);
17
+ padding: 1.5rem;
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: var(--radius-md);
8
+ background-color: var(--popover);
9
+ padding: 1rem 1.25rem;
10
+ color: var(--popover-foreground);
11
+ box-shadow: var(--shadow-lg);
12
+ font-size: var(--text-sm);
13
+ line-height: var(--text-sm--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: min(var(--radius-md), 10px);
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
+ }