loseta 0.13.0 → 0.15.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 (115) hide show
  1. package/README.md +2 -1
  2. package/dist/commands/add.js +4 -2
  3. package/dist/commands/add.js.map +1 -1
  4. package/dist/commands/list.js +7 -2
  5. package/dist/commands/list.js.map +1 -1
  6. package/package.json +1 -1
  7. package/registry/examples/message-scroller.html +1 -1
  8. package/registry/examples/sidebar.html +1 -1
  9. package/registry/registry.json +646 -16
  10. package/registry/styles/luma/attachment.css +176 -0
  11. package/registry/styles/luma/bubble.css +147 -0
  12. package/registry/styles/luma/calendar.css +78 -0
  13. package/registry/styles/luma/carousel.css +63 -0
  14. package/registry/styles/luma/chart.css +51 -0
  15. package/registry/styles/luma/combobox.css +59 -0
  16. package/registry/styles/luma/command.css +21 -0
  17. package/registry/styles/luma/marker.css +35 -0
  18. package/registry/styles/luma/message-scroller.css +47 -0
  19. package/registry/styles/luma/message.css +39 -0
  20. package/registry/styles/luma/primitives/listbox.css +71 -0
  21. package/registry/styles/luma/questionnaire.css +141 -0
  22. package/registry/styles/luma/resizable.css +34 -0
  23. package/registry/styles/luma/select.css +75 -0
  24. package/registry/styles/luma/trace.css +85 -0
  25. package/registry/styles/lyra/attachment.css +176 -0
  26. package/registry/styles/lyra/bubble.css +147 -0
  27. package/registry/styles/lyra/calendar.css +78 -0
  28. package/registry/styles/lyra/carousel.css +63 -0
  29. package/registry/styles/lyra/chart.css +51 -0
  30. package/registry/styles/lyra/combobox.css +59 -0
  31. package/registry/styles/lyra/command.css +21 -0
  32. package/registry/styles/lyra/marker.css +35 -0
  33. package/registry/styles/lyra/message-scroller.css +47 -0
  34. package/registry/styles/lyra/message.css +39 -0
  35. package/registry/styles/lyra/primitives/listbox.css +71 -0
  36. package/registry/styles/lyra/questionnaire.css +141 -0
  37. package/registry/styles/lyra/resizable.css +34 -0
  38. package/registry/styles/lyra/select.css +75 -0
  39. package/registry/styles/lyra/trace.css +85 -0
  40. package/registry/styles/maia/attachment.css +176 -0
  41. package/registry/styles/maia/bubble.css +147 -0
  42. package/registry/styles/maia/calendar.css +78 -0
  43. package/registry/styles/maia/carousel.css +63 -0
  44. package/registry/styles/maia/chart.css +51 -0
  45. package/registry/styles/maia/combobox.css +59 -0
  46. package/registry/styles/maia/command.css +21 -0
  47. package/registry/styles/maia/marker.css +35 -0
  48. package/registry/styles/maia/message-scroller.css +47 -0
  49. package/registry/styles/maia/message.css +39 -0
  50. package/registry/styles/maia/primitives/listbox.css +71 -0
  51. package/registry/styles/maia/questionnaire.css +141 -0
  52. package/registry/styles/maia/resizable.css +34 -0
  53. package/registry/styles/maia/select.css +75 -0
  54. package/registry/styles/maia/trace.css +85 -0
  55. package/registry/styles/mira/attachment.css +176 -0
  56. package/registry/styles/mira/bubble.css +147 -0
  57. package/registry/styles/mira/calendar.css +78 -0
  58. package/registry/styles/mira/carousel.css +63 -0
  59. package/registry/styles/mira/chart.css +51 -0
  60. package/registry/styles/mira/combobox.css +59 -0
  61. package/registry/styles/mira/command.css +21 -0
  62. package/registry/styles/mira/marker.css +35 -0
  63. package/registry/styles/mira/message-scroller.css +47 -0
  64. package/registry/styles/mira/message.css +39 -0
  65. package/registry/styles/mira/primitives/listbox.css +71 -0
  66. package/registry/styles/mira/questionnaire.css +141 -0
  67. package/registry/styles/mira/resizable.css +34 -0
  68. package/registry/styles/mira/select.css +75 -0
  69. package/registry/styles/mira/trace.css +85 -0
  70. package/registry/styles/nova/select.css +4 -0
  71. package/registry/styles/rhea/attachment.css +176 -0
  72. package/registry/styles/rhea/bubble.css +147 -0
  73. package/registry/styles/rhea/calendar.css +78 -0
  74. package/registry/styles/rhea/carousel.css +63 -0
  75. package/registry/styles/rhea/chart.css +51 -0
  76. package/registry/styles/rhea/combobox.css +59 -0
  77. package/registry/styles/rhea/command.css +21 -0
  78. package/registry/styles/rhea/marker.css +35 -0
  79. package/registry/styles/rhea/message-scroller.css +47 -0
  80. package/registry/styles/rhea/message.css +39 -0
  81. package/registry/styles/rhea/primitives/listbox.css +71 -0
  82. package/registry/styles/rhea/questionnaire.css +141 -0
  83. package/registry/styles/rhea/resizable.css +34 -0
  84. package/registry/styles/rhea/select.css +75 -0
  85. package/registry/styles/rhea/trace.css +85 -0
  86. package/registry/styles/sera/attachment.css +176 -0
  87. package/registry/styles/sera/bubble.css +147 -0
  88. package/registry/styles/sera/calendar.css +82 -0
  89. package/registry/styles/sera/carousel.css +63 -0
  90. package/registry/styles/sera/chart.css +51 -0
  91. package/registry/styles/sera/combobox.css +60 -0
  92. package/registry/styles/sera/command.css +21 -0
  93. package/registry/styles/sera/marker.css +35 -0
  94. package/registry/styles/sera/message-scroller.css +47 -0
  95. package/registry/styles/sera/message.css +39 -0
  96. package/registry/styles/sera/primitives/listbox.css +71 -0
  97. package/registry/styles/sera/questionnaire.css +147 -0
  98. package/registry/styles/sera/resizable.css +34 -0
  99. package/registry/styles/sera/select.css +76 -0
  100. package/registry/styles/sera/trace.css +87 -0
  101. package/registry/styles/vega/attachment.css +176 -0
  102. package/registry/styles/vega/bubble.css +147 -0
  103. package/registry/styles/vega/calendar.css +78 -0
  104. package/registry/styles/vega/carousel.css +63 -0
  105. package/registry/styles/vega/chart.css +51 -0
  106. package/registry/styles/vega/combobox.css +59 -0
  107. package/registry/styles/vega/command.css +21 -0
  108. package/registry/styles/vega/marker.css +35 -0
  109. package/registry/styles/vega/message-scroller.css +47 -0
  110. package/registry/styles/vega/message.css +39 -0
  111. package/registry/styles/vega/primitives/listbox.css +71 -0
  112. package/registry/styles/vega/questionnaire.css +141 -0
  113. package/registry/styles/vega/resizable.css +34 -0
  114. package/registry/styles/vega/select.css +75 -0
  115. package/registry/styles/vega/trace.css +85 -0
@@ -0,0 +1,75 @@
1
+ /* Select */
2
+ @layer loseta.style {
3
+ .select {
4
+ > button {
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-sm);
16
+ line-height: var(--text-sm--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: 2rem;
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,85 @@
1
+ /* Trace */
2
+ @layer loseta.style {
3
+ .trace {
4
+ border-block-end-style: solid;
5
+ border-block-end-width: 1px;
6
+ border-block-end-color: var(--border);
7
+
8
+ > summary {
9
+ padding-block: 0.625rem;
10
+ color: var(--muted-foreground);
11
+ font-size: var(--text-sm);
12
+ line-height: var(--text-sm--line-height);
13
+ transition-property: color;
14
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
15
+ transition-duration: 150ms;
16
+
17
+ &:hover {
18
+ color: var(--foreground);
19
+ }
20
+
21
+ &:focus-visible {
22
+ border-radius: var(--radius-full);
23
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
24
+ }
25
+
26
+ &::after {
27
+ border-color: currentColor;
28
+ }
29
+
30
+ > [data-slot='icon'] > svg {
31
+ width: 1rem;
32
+ height: 1rem;
33
+ }
34
+
35
+ > [data-slot='title'] {
36
+ color: var(--foreground);
37
+ }
38
+
39
+ > [data-slot='status'] {
40
+ border-radius: var(--radius-full);
41
+ background-color: var(--muted);
42
+ padding-inline: 0.5rem;
43
+ padding-block: 0.25rem;
44
+ color: var(--foreground);
45
+ font-size: var(--text-xs);
46
+ line-height: var(--text-xs--line-height);
47
+ }
48
+
49
+ > [data-slot='status'][data-variant='error'] {
50
+ background-color: light-dark(
51
+ color-mix(in oklab, var(--destructive) 10%, transparent),
52
+ color-mix(in oklab, var(--destructive) 20%, transparent)
53
+ );
54
+ color: var(--destructive);
55
+ }
56
+
57
+ > [data-slot='status'][data-variant='success'] {
58
+ background-color: color-mix(in oklab, var(--primary) 10%, transparent);
59
+ color: var(--foreground);
60
+ }
61
+ }
62
+
63
+ > [data-slot='body'] {
64
+ padding-block-end: 0.5rem;
65
+ padding-inline-start: 1.75rem;
66
+ color: var(--muted-foreground);
67
+ font-size: var(--text-sm);
68
+ line-height: var(--text-sm--line-height);
69
+ }
70
+
71
+ [data-slot='source'] {
72
+ color: var(--foreground);
73
+ text-decoration-line: underline;
74
+ text-underline-offset: 3px;
75
+ }
76
+
77
+ [data-slot='source']:hover {
78
+ color: var(--primary);
79
+ }
80
+
81
+ .trace {
82
+ border-block-end-color: color-mix(in oklab, var(--border) 70%, transparent);
83
+ }
84
+ }
85
+ }
@@ -0,0 +1,176 @@
1
+ /* Attachment */
2
+ @layer loseta.style {
3
+ .attachment {
4
+ border-color: var(--border);
5
+ border-radius: var(--radius-lg);
6
+ background-color: var(--card);
7
+ color: var(--card-foreground);
8
+ transition-property: color, background-color, border-color, box-shadow;
9
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
10
+ transition-duration: 150ms;
11
+
12
+ &:has(> :is(a, button, [data-slot='trigger'])):hover {
13
+ background-color: color-mix(in oklab, var(--muted) 50%, var(--card));
14
+ }
15
+
16
+ &:focus-within {
17
+ box-shadow: 0 0 0 1px color-mix(in oklab, var(--ring) 50%, transparent);
18
+ }
19
+
20
+ &:has([role='alert']) {
21
+ border-color: light-dark(
22
+ color-mix(in oklab, var(--destructive) 30%, transparent),
23
+ color-mix(in oklab, var(--destructive) 40%, transparent)
24
+ );
25
+ }
26
+
27
+ &[aria-busy='true'] > [data-slot='media'] {
28
+ opacity: 60%;
29
+ }
30
+
31
+ > [data-slot='media'] {
32
+ border-radius: var(--radius-md);
33
+ background-color: var(--muted);
34
+ color: var(--foreground);
35
+
36
+ > svg {
37
+ width: 1rem;
38
+ height: 1rem;
39
+ }
40
+ }
41
+
42
+ > [data-slot='content'] {
43
+ line-height: 1.25;
44
+
45
+ > [data-slot='title'] {
46
+ font-weight: 500;
47
+ }
48
+
49
+ > [data-slot='description'] {
50
+ margin-block-start: 0.125rem;
51
+ color: var(--muted-foreground);
52
+ font-size: var(--text-xs);
53
+ line-height: var(--text-xs--line-height);
54
+ }
55
+
56
+ > [role='alert'] {
57
+ color: var(--destructive);
58
+ }
59
+ }
60
+
61
+ &:not([data-size]),
62
+ &[data-size='default'] {
63
+ gap: 0.5rem;
64
+ font-size: var(--text-sm);
65
+ line-height: var(--text-sm--line-height);
66
+
67
+ &:has(> [data-slot='content']) {
68
+ padding-inline: 0.5rem;
69
+ padding-block: 0.375rem;
70
+ }
71
+
72
+ &:has(> [data-slot='media']) {
73
+ padding: 0.375rem;
74
+ }
75
+
76
+ > [data-slot='media'] {
77
+ width: 2.25rem;
78
+ }
79
+
80
+ &[data-orientation='vertical'] > [data-slot='media'] {
81
+ width: 100%;
82
+ }
83
+ }
84
+
85
+ &[data-size='sm'] {
86
+ gap: 0.625rem;
87
+ font-size: var(--text-xs);
88
+ line-height: var(--text-xs--line-height);
89
+
90
+ &:has(> [data-slot='content']) {
91
+ padding-inline: 0.5rem;
92
+ padding-block: 0.375rem;
93
+ }
94
+
95
+ &:has(> [data-slot='media']) {
96
+ padding: 0.375rem;
97
+ }
98
+
99
+ > [data-slot='media'] {
100
+ width: 1.75rem;
101
+ }
102
+
103
+ &[data-orientation='vertical'] > [data-slot='media'] {
104
+ width: 100%;
105
+ }
106
+
107
+ > [data-slot='content'] > [data-slot='description'] {
108
+ font-size: var(--text-xs);
109
+ line-height: var(--text-xs--line-height);
110
+ }
111
+ }
112
+
113
+ &[data-size='xs'] {
114
+ gap: 0.375rem;
115
+ border-radius: var(--radius-md);
116
+ font-size: var(--text-xs);
117
+ line-height: var(--text-xs--line-height);
118
+
119
+ &:has(> [data-slot='content']) {
120
+ padding-inline: 0.375rem;
121
+ padding-block: 0.25rem;
122
+ }
123
+
124
+ &:has(> [data-slot='media']) {
125
+ padding: 0.25rem;
126
+ }
127
+
128
+ > [data-slot='media'] {
129
+ width: 1.5rem;
130
+ border-radius: var(--radius-sm);
131
+ }
132
+
133
+ &[data-orientation='vertical'] > [data-slot='media'] {
134
+ width: 100%;
135
+ }
136
+
137
+ > [data-slot='content'] > [data-slot='description'] {
138
+ font-size: var(--text-xs);
139
+ line-height: var(--text-xs--line-height);
140
+ }
141
+ }
142
+
143
+ &:not([data-orientation]),
144
+ &[data-orientation='horizontal'] {
145
+ min-width: 10rem;
146
+ align-items: center;
147
+ }
148
+
149
+ &[data-orientation='vertical'] {
150
+ > [data-slot='media'] {
151
+ width: 100%;
152
+ border-radius: var(--radius-md);
153
+ }
154
+
155
+ > [data-slot='content'] {
156
+ padding-inline: 0.25rem;
157
+ }
158
+
159
+ > [data-slot='actions'] {
160
+ gap: 0.25rem;
161
+ }
162
+ }
163
+
164
+ &[aria-busy='true'] > [data-slot='content'] > [data-slot='title'] {
165
+ color: var(--muted-foreground);
166
+ }
167
+
168
+ &:has([role='alert']) > [data-slot='media'] {
169
+ background-color: light-dark(
170
+ color-mix(in oklab, var(--destructive) 10%, transparent),
171
+ color-mix(in oklab, var(--destructive) 20%, transparent)
172
+ );
173
+ color: var(--destructive);
174
+ }
175
+ }
176
+ }
@@ -0,0 +1,147 @@
1
+ /* Bubble */
2
+ @layer loseta.style {
3
+ .bubble {
4
+ > [data-slot='content'] {
5
+ border-radius: var(--radius-lg);
6
+ padding-inline: 0.5rem;
7
+ padding-block: 0.375rem;
8
+ font-size: var(--text-sm);
9
+ line-height: 1.5;
10
+ transition-property: color, background-color, border-color, box-shadow;
11
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
12
+ transition-duration: 150ms;
13
+
14
+ &:is(a, button) {
15
+ cursor: pointer;
16
+ }
17
+
18
+ &:is(a, button):focus-visible {
19
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
20
+ }
21
+ }
22
+
23
+ &:not([data-variant]),
24
+ &[data-variant='default'] {
25
+ > [data-slot='content'] {
26
+ background-color: var(--primary);
27
+ color: var(--primary-foreground);
28
+ }
29
+
30
+ > [data-slot='content']:is(a, button):hover {
31
+ background-color: color-mix(in oklab, var(--primary) 85%, var(--background));
32
+ }
33
+ }
34
+
35
+ &[data-variant='secondary'] {
36
+ > [data-slot='content'] {
37
+ background-color: var(--secondary);
38
+ color: var(--secondary-foreground);
39
+ }
40
+
41
+ > [data-slot='content']:is(a, button):hover {
42
+ background-color: color-mix(in oklab, var(--secondary) 95%, var(--foreground));
43
+ }
44
+ }
45
+
46
+ &[data-variant='muted'] {
47
+ > [data-slot='content'] {
48
+ background-color: var(--muted);
49
+ color: var(--foreground);
50
+ }
51
+
52
+ > [data-slot='content']:is(a, button):hover {
53
+ background-color: color-mix(in oklab, var(--muted) 95%, var(--foreground));
54
+ }
55
+ }
56
+
57
+ &[data-variant='tinted'] {
58
+ > [data-slot='content'] {
59
+ background-color: light-dark(
60
+ color-mix(in oklab, var(--primary) 8%, var(--background)),
61
+ color-mix(in oklab, var(--primary) 18%, var(--background))
62
+ );
63
+ color: var(--foreground);
64
+ }
65
+
66
+ > [data-slot='content']:is(a, button):hover {
67
+ background-color: light-dark(
68
+ color-mix(in oklab, var(--primary) 12%, var(--background)),
69
+ color-mix(in oklab, var(--primary) 24%, var(--background))
70
+ );
71
+ }
72
+ }
73
+
74
+ &[data-variant='outline'] {
75
+ > [data-slot='content'] {
76
+ border-color: var(--border);
77
+ background-color: var(--background);
78
+ color: var(--foreground);
79
+ }
80
+
81
+ > [data-slot='content']:is(a, button):hover {
82
+ background-color: var(--muted);
83
+ }
84
+ }
85
+
86
+ &[data-variant='ghost'] {
87
+ > [data-slot='content'] {
88
+ border-radius: 0;
89
+ background-color: transparent;
90
+ padding: 0;
91
+ color: var(--foreground);
92
+ }
93
+
94
+ > [data-slot='content']:is(a, button):hover {
95
+ background-color: var(--muted);
96
+ }
97
+ }
98
+
99
+ &[data-variant='destructive'] {
100
+ > [data-slot='content'] {
101
+ background-color: light-dark(
102
+ color-mix(in oklab, var(--destructive) 10%, transparent),
103
+ color-mix(in oklab, var(--destructive) 20%, transparent)
104
+ );
105
+ color: var(--destructive);
106
+ }
107
+
108
+ > [data-slot='content']:is(a, button):hover {
109
+ background-color: light-dark(
110
+ color-mix(in oklab, var(--destructive) 20%, transparent),
111
+ color-mix(in oklab, var(--destructive) 30%, transparent)
112
+ );
113
+ }
114
+ }
115
+
116
+ > [data-slot='reactions'] {
117
+ border-radius: var(--radius-full);
118
+ background-color: var(--muted);
119
+ padding-inline: 0.375rem;
120
+ padding-block: 0.125rem;
121
+ color: var(--foreground);
122
+ box-shadow: 0 0 0 3px var(--background);
123
+ font-size: var(--text-xs);
124
+ line-height: var(--text-xs--line-height);
125
+ }
126
+
127
+ [data-slot='reaction'] {
128
+ padding-inline: 0.25rem;
129
+ padding-block: 0.125rem;
130
+ background-color: transparent;
131
+ color: inherit;
132
+
133
+ &:hover {
134
+ background-color: color-mix(in oklab, var(--foreground) 8%, transparent);
135
+ }
136
+
137
+ &[aria-pressed='true'] {
138
+ background-color: color-mix(in oklab, var(--primary) 15%, transparent);
139
+ color: var(--primary);
140
+ }
141
+
142
+ &:focus-visible {
143
+ box-shadow: 0 0 0 2px var(--ring);
144
+ }
145
+ }
146
+ }
147
+ }
@@ -0,0 +1,78 @@
1
+ /* Calendar */
2
+ @layer loseta.style {
3
+ .calendar {
4
+ width: 18rem;
5
+ gap: 0.375rem;
6
+
7
+ > header {
8
+ gap: 0.375rem;
9
+ }
10
+
11
+ > header > button {
12
+ width: 1.5rem;
13
+ height: 1.5rem;
14
+ border-radius: var(--radius-md);
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: 1.75rem;
47
+ height: 1.75rem;
48
+ border-radius: var(--radius-md);
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: 0.5rem;
5
+
6
+ .carousel-viewport {
7
+ border-radius: var(--radius-lg);
8
+ }
9
+
10
+ .carousel-button {
11
+ width: 1.75rem;
12
+ height: 1.75rem;
13
+ border-style: solid;
14
+ border-width: 1px;
15
+ border-color: var(--border);
16
+ border-radius: var(--radius-md);
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.375rem;
46
+ height: 0.375rem;
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: 0.5rem;
5
+
6
+ > [data-slot='plot'] {
7
+ aspect-ratio: 16 / 9;
8
+ }
9
+
10
+ > [data-slot='legend'] {
11
+ gap: 0.5rem;
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.375rem;
23
+ height: 0.375rem;
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-md);
35
+ background-color: var(--popover);
36
+ padding: 0.375rem 0.5rem;
37
+ color: var(--popover-foreground);
38
+ box-shadow: var(--shadow-md);
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
+ }