loseta 0.15.0 → 0.16.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 (298) hide show
  1. package/package.json +1 -1
  2. package/registry/components/alert-dialog.css +7 -0
  3. package/registry/components/alert.css +2 -0
  4. package/registry/components/avatar.css +11 -2
  5. package/registry/components/button-group.css +33 -18
  6. package/registry/components/button.css +6 -0
  7. package/registry/components/checkbox.css +17 -2
  8. package/registry/components/command.css +7 -0
  9. package/registry/components/context-menu.css +8 -0
  10. package/registry/components/dialog.css +24 -1
  11. package/registry/components/drawer.css +4 -0
  12. package/registry/components/empty.css +2 -0
  13. package/registry/components/field.css +8 -3
  14. package/registry/components/input-group.css +12 -1
  15. package/registry/components/input-otp.css +6 -0
  16. package/registry/components/input.css +5 -0
  17. package/registry/components/navigation-menu.css +18 -1
  18. package/registry/components/radio.css +19 -4
  19. package/registry/components/sheet.css +10 -0
  20. package/registry/components/sidebar.css +68 -0
  21. package/registry/components/slider.css +1 -1
  22. package/registry/components/switch.css +14 -0
  23. package/registry/components/table.css +4 -4
  24. package/registry/components/textarea.css +6 -0
  25. package/registry/components/toggle-group.css +8 -0
  26. package/registry/components/tooltip.css +106 -78
  27. package/registry/examples/alert-dialog.html +133 -7
  28. package/registry/examples/alert.html +50 -3
  29. package/registry/examples/aspect-ratio.html +5 -0
  30. package/registry/examples/attachment.html +12 -0
  31. package/registry/examples/avatar.html +49 -4
  32. package/registry/examples/badge.html +3 -0
  33. package/registry/examples/bubble.html +5 -0
  34. package/registry/examples/button-group.html +140 -12
  35. package/registry/examples/button.html +60 -15
  36. package/registry/examples/checkbox.html +107 -4
  37. package/registry/examples/code-block.html +5 -0
  38. package/registry/examples/combobox.html +13 -0
  39. package/registry/examples/command.html +322 -1
  40. package/registry/examples/context-menu.html +170 -1
  41. package/registry/examples/dialog.html +166 -5
  42. package/registry/examples/drawer.html +198 -10
  43. package/registry/examples/dropdown-menu.html +259 -2
  44. package/registry/examples/empty.html +107 -1
  45. package/registry/examples/field.html +232 -0
  46. package/registry/examples/input-group.html +101 -5
  47. package/registry/examples/input-otp.html +74 -2
  48. package/registry/examples/input.html +75 -4
  49. package/registry/examples/item.html +12 -0
  50. package/registry/examples/marker.html +6 -0
  51. package/registry/examples/menubar.html +338 -9
  52. package/registry/examples/message.html +16 -0
  53. package/registry/examples/navigation-menu.html +166 -17
  54. package/registry/examples/popover.html +153 -6
  55. package/registry/examples/progress.html +66 -3
  56. package/registry/examples/questionnaire.html +33 -0
  57. package/registry/examples/radio.html +121 -9
  58. package/registry/examples/resizable.html +11 -0
  59. package/registry/examples/scroll-area.html +9 -0
  60. package/registry/examples/separator.html +3 -0
  61. package/registry/examples/sheet.html +205 -7
  62. package/registry/examples/sidebar.html +377 -1
  63. package/registry/examples/slider.html +52 -5
  64. package/registry/examples/spinner.html +3 -0
  65. package/registry/examples/switch.html +68 -0
  66. package/registry/examples/table.html +192 -8
  67. package/registry/examples/textarea.html +33 -3
  68. package/registry/examples/toggle-group.html +72 -12
  69. package/registry/examples/toggle.html +34 -7
  70. package/registry/examples/tooltip.html +99 -2
  71. package/registry/examples/trace.html +13 -1
  72. package/registry/primitives/menu.css +10 -0
  73. package/registry/primitives/popover.css +38 -6
  74. package/registry/registry.json +116 -32
  75. package/registry/styles/luma/accordion.css +1 -1
  76. package/registry/styles/luma/alert-dialog.css +8 -0
  77. package/registry/styles/luma/alert.css +1 -17
  78. package/registry/styles/luma/avatar.css +44 -1
  79. package/registry/styles/luma/button-group.css +5 -17
  80. package/registry/styles/luma/button.css +8 -8
  81. package/registry/styles/luma/checkbox.css +6 -0
  82. package/registry/styles/luma/collapsible.css +1 -1
  83. package/registry/styles/luma/command.css +6 -0
  84. package/registry/styles/luma/drawer.css +8 -0
  85. package/registry/styles/luma/empty.css +2 -4
  86. package/registry/styles/luma/field.css +1 -1
  87. package/registry/styles/luma/input-group.css +14 -2
  88. package/registry/styles/luma/input-otp.css +8 -0
  89. package/registry/styles/luma/input.css +5 -0
  90. package/registry/styles/luma/kbd.css +1 -1
  91. package/registry/styles/luma/label.css +4 -0
  92. package/registry/styles/luma/menubar.css +1 -1
  93. package/registry/styles/luma/navigation-menu.css +11 -0
  94. package/registry/styles/luma/primitives/menu.css +8 -4
  95. package/registry/styles/luma/progress.css +26 -1
  96. package/registry/styles/luma/radio.css +3 -1
  97. package/registry/styles/luma/sheet.css +20 -0
  98. package/registry/styles/luma/sidebar.css +114 -1
  99. package/registry/styles/luma/switch.css +39 -10
  100. package/registry/styles/luma/table.css +6 -2
  101. package/registry/styles/luma/textarea.css +5 -0
  102. package/registry/styles/luma/toggle-group.css +11 -0
  103. package/registry/styles/lyra/accordion.css +1 -1
  104. package/registry/styles/lyra/alert-dialog.css +8 -0
  105. package/registry/styles/lyra/alert.css +1 -17
  106. package/registry/styles/lyra/avatar.css +44 -1
  107. package/registry/styles/lyra/button-group.css +5 -17
  108. package/registry/styles/lyra/button.css +8 -8
  109. package/registry/styles/lyra/checkbox.css +6 -0
  110. package/registry/styles/lyra/collapsible.css +1 -1
  111. package/registry/styles/lyra/command.css +6 -0
  112. package/registry/styles/lyra/drawer.css +8 -0
  113. package/registry/styles/lyra/empty.css +2 -4
  114. package/registry/styles/lyra/field.css +1 -1
  115. package/registry/styles/lyra/input-group.css +15 -3
  116. package/registry/styles/lyra/input-otp.css +8 -0
  117. package/registry/styles/lyra/input.css +5 -0
  118. package/registry/styles/lyra/kbd.css +1 -1
  119. package/registry/styles/lyra/label.css +4 -0
  120. package/registry/styles/lyra/menubar.css +1 -1
  121. package/registry/styles/lyra/navigation-menu.css +11 -0
  122. package/registry/styles/lyra/primitives/menu.css +8 -4
  123. package/registry/styles/lyra/progress.css +26 -1
  124. package/registry/styles/lyra/radio.css +3 -1
  125. package/registry/styles/lyra/sheet.css +20 -0
  126. package/registry/styles/lyra/sidebar.css +114 -1
  127. package/registry/styles/lyra/switch.css +37 -8
  128. package/registry/styles/lyra/table.css +6 -2
  129. package/registry/styles/lyra/textarea.css +5 -1
  130. package/registry/styles/maia/accordion.css +1 -1
  131. package/registry/styles/maia/alert-dialog.css +8 -0
  132. package/registry/styles/maia/alert.css +1 -17
  133. package/registry/styles/maia/avatar.css +44 -1
  134. package/registry/styles/maia/button-group.css +5 -17
  135. package/registry/styles/maia/button.css +8 -8
  136. package/registry/styles/maia/checkbox.css +6 -0
  137. package/registry/styles/maia/collapsible.css +1 -1
  138. package/registry/styles/maia/command.css +6 -0
  139. package/registry/styles/maia/drawer.css +8 -0
  140. package/registry/styles/maia/empty.css +2 -4
  141. package/registry/styles/maia/field.css +1 -1
  142. package/registry/styles/maia/input-group.css +14 -2
  143. package/registry/styles/maia/input-otp.css +8 -0
  144. package/registry/styles/maia/input.css +5 -0
  145. package/registry/styles/maia/kbd.css +1 -1
  146. package/registry/styles/maia/label.css +4 -0
  147. package/registry/styles/maia/menubar.css +1 -1
  148. package/registry/styles/maia/navigation-menu.css +11 -0
  149. package/registry/styles/maia/primitives/menu.css +8 -4
  150. package/registry/styles/maia/progress.css +26 -1
  151. package/registry/styles/maia/radio.css +3 -1
  152. package/registry/styles/maia/sheet.css +20 -0
  153. package/registry/styles/maia/sidebar.css +114 -1
  154. package/registry/styles/maia/switch.css +37 -8
  155. package/registry/styles/maia/table.css +6 -2
  156. package/registry/styles/maia/textarea.css +5 -0
  157. package/registry/styles/maia/toggle-group.css +11 -0
  158. package/registry/styles/mira/accordion.css +1 -1
  159. package/registry/styles/mira/alert-dialog.css +8 -0
  160. package/registry/styles/mira/alert.css +1 -17
  161. package/registry/styles/mira/avatar.css +44 -1
  162. package/registry/styles/mira/button-group.css +5 -17
  163. package/registry/styles/mira/button.css +8 -8
  164. package/registry/styles/mira/checkbox.css +6 -0
  165. package/registry/styles/mira/collapsible.css +1 -1
  166. package/registry/styles/mira/command.css +6 -0
  167. package/registry/styles/mira/drawer.css +8 -0
  168. package/registry/styles/mira/empty.css +2 -4
  169. package/registry/styles/mira/field.css +1 -1
  170. package/registry/styles/mira/input-group.css +14 -2
  171. package/registry/styles/mira/input-otp.css +8 -0
  172. package/registry/styles/mira/input.css +7 -2
  173. package/registry/styles/mira/kbd.css +1 -1
  174. package/registry/styles/mira/label.css +4 -0
  175. package/registry/styles/mira/menubar.css +1 -1
  176. package/registry/styles/mira/navigation-menu.css +11 -0
  177. package/registry/styles/mira/primitives/menu.css +8 -4
  178. package/registry/styles/mira/progress.css +26 -1
  179. package/registry/styles/mira/radio.css +3 -1
  180. package/registry/styles/mira/sheet.css +20 -0
  181. package/registry/styles/mira/sidebar.css +113 -0
  182. package/registry/styles/mira/switch.css +39 -10
  183. package/registry/styles/mira/table.css +7 -3
  184. package/registry/styles/mira/textarea.css +6 -2
  185. package/registry/styles/mira/toggle-group.css +11 -0
  186. package/registry/styles/nova/accordion.css +1 -1
  187. package/registry/styles/nova/alert-dialog.css +8 -0
  188. package/registry/styles/nova/alert.css +1 -17
  189. package/registry/styles/nova/avatar.css +44 -1
  190. package/registry/styles/nova/button-group.css +5 -17
  191. package/registry/styles/nova/button.css +8 -8
  192. package/registry/styles/nova/checkbox.css +6 -0
  193. package/registry/styles/nova/collapsible.css +1 -1
  194. package/registry/styles/nova/command.css +8 -0
  195. package/registry/styles/nova/drawer.css +8 -0
  196. package/registry/styles/nova/empty.css +2 -4
  197. package/registry/styles/nova/field.css +1 -1
  198. package/registry/styles/nova/input-group.css +15 -3
  199. package/registry/styles/nova/input-otp.css +8 -0
  200. package/registry/styles/nova/input.css +5 -0
  201. package/registry/styles/nova/kbd.css +1 -1
  202. package/registry/styles/nova/label.css +4 -0
  203. package/registry/styles/nova/menubar.css +1 -1
  204. package/registry/styles/nova/navigation-menu.css +11 -0
  205. package/registry/styles/nova/primitives/menu.css +8 -4
  206. package/registry/styles/nova/progress.css +26 -1
  207. package/registry/styles/nova/radio.css +3 -1
  208. package/registry/styles/nova/sheet.css +20 -0
  209. package/registry/styles/nova/sidebar.css +114 -1
  210. package/registry/styles/nova/switch.css +37 -8
  211. package/registry/styles/nova/table.css +6 -2
  212. package/registry/styles/nova/textarea.css +5 -0
  213. package/registry/styles/nova/toggle.css +2 -0
  214. package/registry/styles/rhea/accordion.css +1 -1
  215. package/registry/styles/rhea/alert-dialog.css +8 -0
  216. package/registry/styles/rhea/alert.css +1 -17
  217. package/registry/styles/rhea/avatar.css +44 -1
  218. package/registry/styles/rhea/button-group.css +5 -17
  219. package/registry/styles/rhea/button.css +8 -8
  220. package/registry/styles/rhea/checkbox.css +6 -0
  221. package/registry/styles/rhea/collapsible.css +1 -1
  222. package/registry/styles/rhea/command.css +6 -0
  223. package/registry/styles/rhea/drawer.css +8 -0
  224. package/registry/styles/rhea/empty.css +2 -4
  225. package/registry/styles/rhea/field.css +1 -1
  226. package/registry/styles/rhea/input-group.css +15 -3
  227. package/registry/styles/rhea/input-otp.css +8 -0
  228. package/registry/styles/rhea/input.css +5 -0
  229. package/registry/styles/rhea/kbd.css +1 -1
  230. package/registry/styles/rhea/label.css +4 -0
  231. package/registry/styles/rhea/menubar.css +1 -1
  232. package/registry/styles/rhea/navigation-menu.css +11 -0
  233. package/registry/styles/rhea/primitives/menu.css +8 -4
  234. package/registry/styles/rhea/primitives/popover.css +1 -1
  235. package/registry/styles/rhea/progress.css +25 -0
  236. package/registry/styles/rhea/radio.css +3 -1
  237. package/registry/styles/rhea/sheet.css +20 -0
  238. package/registry/styles/rhea/sidebar.css +114 -1
  239. package/registry/styles/rhea/switch.css +39 -10
  240. package/registry/styles/rhea/table.css +6 -2
  241. package/registry/styles/rhea/textarea.css +5 -0
  242. package/registry/styles/rhea/toggle-group.css +11 -0
  243. package/registry/styles/sera/accordion.css +1 -1
  244. package/registry/styles/sera/alert-dialog.css +8 -0
  245. package/registry/styles/sera/alert.css +1 -17
  246. package/registry/styles/sera/avatar.css +44 -1
  247. package/registry/styles/sera/button-group.css +5 -17
  248. package/registry/styles/sera/button.css +8 -8
  249. package/registry/styles/sera/checkbox.css +6 -0
  250. package/registry/styles/sera/collapsible.css +1 -1
  251. package/registry/styles/sera/command.css +6 -0
  252. package/registry/styles/sera/drawer.css +8 -0
  253. package/registry/styles/sera/empty.css +2 -4
  254. package/registry/styles/sera/field.css +1 -1
  255. package/registry/styles/sera/input-group.css +14 -2
  256. package/registry/styles/sera/input-otp.css +8 -0
  257. package/registry/styles/sera/input.css +5 -0
  258. package/registry/styles/sera/kbd.css +1 -1
  259. package/registry/styles/sera/label.css +4 -0
  260. package/registry/styles/sera/menubar.css +1 -1
  261. package/registry/styles/sera/navigation-menu.css +11 -0
  262. package/registry/styles/sera/primitives/menu.css +8 -4
  263. package/registry/styles/sera/progress.css +26 -1
  264. package/registry/styles/sera/radio.css +3 -1
  265. package/registry/styles/sera/sheet.css +20 -0
  266. package/registry/styles/sera/sidebar.css +117 -0
  267. package/registry/styles/sera/switch.css +37 -8
  268. package/registry/styles/sera/table.css +6 -2
  269. package/registry/styles/sera/textarea.css +5 -0
  270. package/registry/styles/sera/toggle-group.css +10 -0
  271. package/registry/styles/vega/accordion.css +1 -1
  272. package/registry/styles/vega/alert-dialog.css +8 -0
  273. package/registry/styles/vega/alert.css +1 -17
  274. package/registry/styles/vega/avatar.css +44 -1
  275. package/registry/styles/vega/button-group.css +5 -17
  276. package/registry/styles/vega/button.css +8 -8
  277. package/registry/styles/vega/checkbox.css +6 -0
  278. package/registry/styles/vega/collapsible.css +1 -1
  279. package/registry/styles/vega/command.css +6 -0
  280. package/registry/styles/vega/drawer.css +8 -0
  281. package/registry/styles/vega/empty.css +2 -4
  282. package/registry/styles/vega/field.css +1 -1
  283. package/registry/styles/vega/input-group.css +14 -2
  284. package/registry/styles/vega/input-otp.css +8 -0
  285. package/registry/styles/vega/input.css +5 -0
  286. package/registry/styles/vega/kbd.css +1 -1
  287. package/registry/styles/vega/label.css +4 -0
  288. package/registry/styles/vega/menubar.css +1 -1
  289. package/registry/styles/vega/navigation-menu.css +11 -0
  290. package/registry/styles/vega/primitives/menu.css +8 -4
  291. package/registry/styles/vega/progress.css +26 -1
  292. package/registry/styles/vega/radio.css +3 -1
  293. package/registry/styles/vega/sheet.css +20 -0
  294. package/registry/styles/vega/sidebar.css +114 -1
  295. package/registry/styles/vega/switch.css +37 -8
  296. package/registry/styles/vega/table.css +6 -2
  297. package/registry/styles/vega/textarea.css +5 -0
  298. package/registry/styles/vega/toggle-group.css +11 -0
@@ -42,11 +42,11 @@
42
42
  padding-inline: 1.5rem;
43
43
 
44
44
  &:has(*:is([data-icon='inline-end'])) {
45
- padding-right: 0.5rem;
45
+ padding-inline-end: 0.5rem;
46
46
  }
47
47
 
48
48
  &:has(*:is([data-icon='inline-start'])) {
49
- padding-left: 0.5rem;
49
+ padding-inline-start: 0.5rem;
50
50
  }
51
51
  }
52
52
 
@@ -61,11 +61,11 @@
61
61
  line-height: var(--text-xs--line-height);
62
62
 
63
63
  &:has(*:is([data-icon='inline-end'])) {
64
- padding-right: 0.375rem;
64
+ padding-inline-end: 0.375rem;
65
65
  }
66
66
 
67
67
  &:has(*:is([data-icon='inline-start'])) {
68
- padding-left: 0.375rem;
68
+ padding-inline-start: 0.375rem;
69
69
  }
70
70
  }
71
71
 
@@ -80,11 +80,11 @@
80
80
  line-height: var(--text-xs--line-height);
81
81
 
82
82
  &:has(*:is([data-icon='inline-end'])) {
83
- padding-right: 0.375rem;
83
+ padding-inline-end: 0.375rem;
84
84
  }
85
85
 
86
86
  &:has(*:is([data-icon='inline-start'])) {
87
- padding-left: 0.375rem;
87
+ padding-inline-start: 0.375rem;
88
88
  }
89
89
  }
90
90
 
@@ -94,11 +94,11 @@
94
94
  padding-inline: 2rem;
95
95
 
96
96
  &:has(*:is([data-icon='inline-end'])) {
97
- padding-right: 0.5rem;
97
+ padding-inline-end: 0.5rem;
98
98
  }
99
99
 
100
100
  &:has(*:is([data-icon='inline-start'])) {
101
- padding-left: 0.5rem;
101
+ padding-inline-start: 0.5rem;
102
102
  }
103
103
  }
104
104
 
@@ -49,4 +49,10 @@
49
49
  width: 0.875rem;
50
50
  height: 0.875rem;
51
51
  }
52
+
53
+ .checkbox:not([role='switch']):indeterminate::after {
54
+ width: 0.5rem;
55
+ height: 2px;
56
+ border-radius: var(--radius-full);
57
+ }
52
58
  }
@@ -37,7 +37,7 @@
37
37
 
38
38
  &::details-content {
39
39
  opacity: 0%;
40
- transition-property: block-size, opacity;
40
+ transition-property: block-size, content-visibility, opacity;
41
41
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
42
42
  transition-duration: 150ms;
43
43
  transition-behavior: allow-discrete;
@@ -10,6 +10,12 @@
10
10
  color: var(--muted-foreground);
11
11
  }
12
12
 
13
+ [role='listbox'] [role='separator'] {
14
+ block-size: 1px;
15
+ margin-block: 0.25rem;
16
+ background-color: var(--border);
17
+ }
18
+
13
19
  [role='listbox'] [role='option'] {
14
20
  padding-inline-end: 0.5rem;
15
21
  }
@@ -5,10 +5,18 @@
5
5
 
6
6
  &[data-size='sm'] {
7
7
  --drawer-height: 50vh;
8
+
9
+ > * {
10
+ block-size: var(--drawer-height);
11
+ }
8
12
  }
9
13
 
10
14
  &[data-size='lg'] {
11
15
  --drawer-height: 90vh;
16
+
17
+ > * {
18
+ block-size: var(--drawer-height);
19
+ }
12
20
  }
13
21
 
14
22
  > * {
@@ -5,20 +5,18 @@
5
5
  border-radius: 0;
6
6
  border-style: dashed;
7
7
  border-color: var(--border);
8
+ border-width: 1px;
8
9
  padding: 3rem;
9
10
 
10
11
  > header {
11
12
  gap: 0.5rem;
12
13
  }
13
14
 
14
- figure {
15
- margin-bottom: 0.5rem;
16
- }
17
-
18
15
  figure:has(> svg:only-child) {
19
16
  display: flex;
20
17
  width: 2rem;
21
18
  height: 2rem;
19
+ margin-block-end: 0.5rem;
22
20
  flex-shrink: 0;
23
21
  align-items: center;
24
22
  justify-content: center;
@@ -102,7 +102,7 @@
102
102
  margin-bottom: -0.5rem;
103
103
  }
104
104
 
105
- > hr[role='separator'] {
105
+ > hr {
106
106
  border-color: var(--border);
107
107
  }
108
108
  }
@@ -17,11 +17,22 @@
17
17
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
18
18
  transition-duration: 150ms;
19
19
 
20
- &:focus-within {
20
+ &:has(> :is(input, textarea, [data-slot='input-group-control']):focus-visible) {
21
21
  border-color: var(--ring);
22
22
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
23
23
  }
24
24
 
25
+ &:has(> :is(input, textarea, [data-slot='input-group-control']):disabled) {
26
+ background-color: light-dark(
27
+ color-mix(in oklab, var(--input) 50%, transparent),
28
+ color-mix(in oklab, var(--input) 80%, transparent)
29
+ );
30
+
31
+ > [data-slot='addon'] {
32
+ opacity: 50%;
33
+ }
34
+ }
35
+
25
36
  &:has([aria-invalid='true']) {
26
37
  border-color: light-dark(
27
38
  var(--destructive),
@@ -38,7 +49,8 @@
38
49
  padding-block: 0.5rem;
39
50
  }
40
51
 
41
- > :is(input, textarea) {
52
+ > :is(input, textarea, [data-slot='input-group-control']) {
53
+ height: auto;
42
54
  border-width: 0;
43
55
  border-radius: 0;
44
56
  background-color: transparent;
@@ -15,10 +15,16 @@
15
15
  font-size: var(--text-xl);
16
16
  line-height: var(--text-xl--line-height);
17
17
  letter-spacing: 0.6em;
18
+ text-indent: 0.6em;
18
19
  transition-property: color, background-color, border-color, box-shadow;
19
20
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
20
21
  transition-duration: 150ms;
21
22
 
23
+ &::selection {
24
+ background-color: var(--primary);
25
+ color: var(--primary-foreground);
26
+ }
27
+
22
28
  &:focus-visible {
23
29
  border-color: var(--ring);
24
30
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
@@ -40,6 +46,7 @@
40
46
  font-size: var(--text-lg);
41
47
  line-height: var(--text-lg--line-height);
42
48
  letter-spacing: 0.45em;
49
+ text-indent: 0.45em;
43
50
  }
44
51
 
45
52
  &[data-size='lg'] {
@@ -47,6 +54,7 @@
47
54
  font-size: var(--text-2xl);
48
55
  line-height: var(--text-2xl--line-height);
49
56
  letter-spacing: 0.7em;
57
+ text-indent: 0.7em;
50
58
  }
51
59
  }
52
60
  }
@@ -19,6 +19,11 @@
19
19
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
20
20
  transition-duration: 150ms;
21
21
 
22
+ &::selection {
23
+ background-color: var(--primary);
24
+ color: var(--primary-foreground);
25
+ }
26
+
22
27
  &::file-selector-button {
23
28
  height: 1.75rem;
24
29
  font-size: var(--text-sm);
@@ -12,7 +12,7 @@
12
12
  font-size: var(--text-xs);
13
13
  line-height: var(--text-xs--line-height);
14
14
  font-weight: 500;
15
- color: var(--muted-foreground);
15
+ color: var(--foreground);
16
16
 
17
17
  & svg {
18
18
  width: var(--icon-size, 0.75rem);
@@ -36,6 +36,10 @@
36
36
  color-mix(in oklab, var(--primary) 5%, transparent),
37
37
  color-mix(in oklab, var(--primary) 10%, transparent)
38
38
  );
39
+
40
+ p:not([role='alert']) {
41
+ color: var(--foreground);
42
+ }
39
43
  }
40
44
 
41
45
  &:has(:focus-visible) {
@@ -10,7 +10,7 @@
10
10
  padding: 0.25rem;
11
11
  box-shadow: var(--shadow-sm);
12
12
 
13
- [role='menuitem'] {
13
+ > .menubar-item > [role='menuitem'] {
14
14
  height: 2.25rem;
15
15
  gap: 0.375rem;
16
16
  border-radius: 0;
@@ -59,6 +59,17 @@
59
59
  }
60
60
  }
61
61
 
62
+ [data-popover] a:has(> [data-slot='icon']) {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: 0.5rem;
66
+ }
67
+
68
+ [data-popover] [data-slot='icon'] > svg {
69
+ width: 1rem;
70
+ height: 1rem;
71
+ }
72
+
62
73
  [data-slot='title'] {
63
74
  font-size: var(--text-sm);
64
75
  line-height: var(--text-sm--line-height);
@@ -13,6 +13,10 @@
13
13
  transition-duration: 100ms;
14
14
  }
15
15
 
16
+ [data-popover]:has(> [role='menu']):has([role='none'] > [data-popover]) {
17
+ overflow: visible;
18
+ }
19
+
16
20
  [role='menu'] {
17
21
  & :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
18
22
  gap: 0.625rem;
@@ -22,7 +26,7 @@
22
26
  font-size: var(--text-sm);
23
27
  line-height: var(--text-sm--line-height);
24
28
 
25
- &:focus-visible {
29
+ &:is(:focus-visible, [aria-expanded='true']) {
26
30
  background-color: var(--accent);
27
31
  color: var(--accent-foreground);
28
32
  }
@@ -33,7 +37,7 @@
33
37
  }
34
38
  }
35
39
 
36
- & :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-highlighted] {
40
+ & :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is([data-highlighted], [aria-expanded='true']) {
37
41
  background-color: var(--accent);
38
42
  color: var(--accent-foreground);
39
43
  }
@@ -42,7 +46,7 @@
42
46
  color: var(--destructive);
43
47
  }
44
48
 
45
- & :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-variant='destructive']:is(:focus-visible, [data-highlighted]) {
49
+ & :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-variant='destructive']:is(:focus-visible, [data-highlighted], [aria-expanded='true']) {
46
50
  background-color: light-dark(
47
51
  color-mix(in oklab, var(--destructive) 10%, transparent),
48
52
  color-mix(in oklab, var(--destructive) 20%, transparent)
@@ -97,7 +101,7 @@
97
101
  color: var(--muted-foreground);
98
102
  }
99
103
 
100
- & :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, [data-highlighted]) :is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
104
+ & :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, [data-highlighted], [aria-expanded='true']) :is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
101
105
  color: var(--accent-foreground);
102
106
  }
103
107
  }
@@ -1,7 +1,7 @@
1
1
  /* Progress */
2
2
  @layer loseta.style {
3
3
  .progress {
4
- block-size: 0.625rem;
4
+ block-size: 0.125rem;
5
5
  border-radius: 0;
6
6
  background-color: color-mix(in oklab, var(--primary) 20%, transparent);
7
7
 
@@ -48,11 +48,36 @@
48
48
  }
49
49
  }
50
50
 
51
+ &:dir(rtl):indeterminate {
52
+ animation-direction: reverse;
53
+ }
54
+
51
55
  @media (prefers-reduced-motion: reduce) {
52
56
  &:indeterminate {
53
57
  animation-duration: 3s;
54
58
  }
55
59
  }
60
+
61
+ /* Keep the system-color track and sweep visible in forced-colors mode. */
62
+ @media (forced-colors: active) {
63
+ forced-color-adjust: none;
64
+ outline: 1px solid CanvasText;
65
+ background-color: Canvas;
66
+
67
+ &::-webkit-progress-value,
68
+ &::-moz-progress-bar {
69
+ background-color: Highlight;
70
+ }
71
+
72
+ &:indeterminate {
73
+ background-image: linear-gradient(
74
+ 90deg,
75
+ transparent,
76
+ Highlight,
77
+ transparent
78
+ );
79
+ }
80
+ }
56
81
  }
57
82
 
58
83
  @keyframes loseta-progress-indeterminate {
@@ -10,6 +10,9 @@
10
10
  transparent,
11
11
  color-mix(in oklab, var(--input) 30%, transparent)
12
12
  );
13
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
14
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
15
+ transition-duration: 150ms;
13
16
 
14
17
  &:checked {
15
18
  border-color: var(--primary);
@@ -41,6 +44,5 @@
41
44
  .radio:checked::before {
42
45
  width: 0.5rem;
43
46
  height: 0.5rem;
44
- background-color: var(--primary-foreground);
45
47
  }
46
48
  }
@@ -2,13 +2,16 @@
2
2
  @layer loseta.style {
3
3
  .sheet {
4
4
  --sheet-width: 24rem;
5
+ --sheet-height: 80vh;
5
6
 
6
7
  &[data-size='sm'] {
7
8
  --sheet-width: 20rem;
9
+ --sheet-height: 50vh;
8
10
  }
9
11
 
10
12
  &[data-size='lg'] {
11
13
  --sheet-width: 28rem;
14
+ --sheet-height: 90vh;
12
15
  }
13
16
 
14
17
  > * {
@@ -31,6 +34,23 @@
31
34
  border-inline-start-color: var(--border);
32
35
  }
33
36
 
37
+ &[data-side='block-start'] > *,
38
+ &[data-side='block-end'] > * {
39
+ max-height: var(--sheet-height);
40
+ }
41
+
42
+ &[data-side='block-start'] > * {
43
+ border-block-end-style: solid;
44
+ border-block-end-width: 1px;
45
+ border-block-end-color: var(--border);
46
+ }
47
+
48
+ &[data-side='block-end'] > * {
49
+ border-block-start-style: solid;
50
+ border-block-start-width: 1px;
51
+ border-block-start-color: var(--border);
52
+ }
53
+
34
54
  > * > header {
35
55
  gap: 0.5rem;
36
56
  }
@@ -29,15 +29,63 @@
29
29
  }
30
30
 
31
31
  > section {
32
+ gap: 1.25rem;
32
33
  padding: 1rem;
33
34
  }
34
35
 
35
36
  [data-slot='brand'] {
37
+ color: var(--sidebar-foreground);
36
38
  font-size: var(--text-sm);
37
39
  line-height: var(--text-sm--line-height);
38
40
  font-weight: 600;
39
41
  text-transform: uppercase;
40
42
  letter-spacing: 0.05em;
43
+
44
+ > svg {
45
+ width: 1rem;
46
+ height: 1rem;
47
+ }
48
+ }
49
+
50
+ nav > header {
51
+ min-height: 2.5rem;
52
+ padding-inline: 0.75rem;
53
+ color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent);
54
+
55
+ > :is(h2, h3, h4, h5, h6, [data-slot='group-label']) {
56
+ margin: 0;
57
+ font-size: var(--text-xs);
58
+ line-height: var(--text-xs--line-height);
59
+ font-weight: 500;
60
+ text-transform: uppercase;
61
+ letter-spacing: 0.05em;
62
+ }
63
+ }
64
+
65
+ [data-slot='group-action'] {
66
+ width: 1.5rem;
67
+ height: 1.5rem;
68
+ margin-inline-start: auto;
69
+ border-radius: var(--radius-sm);
70
+ background-color: transparent;
71
+ color: inherit;
72
+ transition-property: color, background-color, box-shadow;
73
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
74
+ transition-duration: 150ms;
75
+
76
+ > svg {
77
+ width: 1rem;
78
+ height: 1rem;
79
+ }
80
+
81
+ &:hover {
82
+ background-color: var(--sidebar-accent);
83
+ color: var(--sidebar-accent-foreground);
84
+ }
85
+
86
+ &:focus-visible {
87
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--sidebar-ring) 50%, transparent);
88
+ }
41
89
  }
42
90
 
43
91
  nav a {
@@ -50,6 +98,11 @@
50
98
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
51
99
  transition-duration: 150ms;
52
100
 
101
+ > svg {
102
+ width: 1rem;
103
+ height: 1rem;
104
+ }
105
+
53
106
  &:hover {
54
107
  background-color: var(--sidebar-accent);
55
108
  color: var(--sidebar-accent-foreground);
@@ -66,6 +119,48 @@
66
119
  }
67
120
  }
68
121
 
122
+ nav li:has(> [data-slot='menu-action'], > [data-slot='menu-badge']) > a {
123
+ padding-inline-end: 2rem;
124
+ }
125
+
126
+ [data-slot='menu-action'] {
127
+ inset-inline-end: 0.375rem;
128
+ width: 1.5rem;
129
+ height: 1.5rem;
130
+ border-radius: var(--radius-sm);
131
+ background-color: transparent;
132
+ color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent);
133
+ transition-property: color, background-color, box-shadow;
134
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
135
+ transition-duration: 150ms;
136
+
137
+ > svg {
138
+ width: 1rem;
139
+ height: 1rem;
140
+ }
141
+
142
+ &:hover {
143
+ background-color: var(--sidebar-accent);
144
+ color: var(--sidebar-accent-foreground);
145
+ }
146
+
147
+ &:focus-visible {
148
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--sidebar-ring) 50%, transparent);
149
+ }
150
+ }
151
+
152
+ [data-slot='menu-badge'] {
153
+ inset-inline-end: 0.75rem;
154
+ min-width: 1.25rem;
155
+ height: 1.25rem;
156
+ padding-inline: 0.25rem;
157
+ border-radius: var(--radius-sm);
158
+ color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent);
159
+ font-size: var(--text-xs);
160
+ line-height: 1;
161
+ font-variant-numeric: tabular-nums;
162
+ }
163
+
69
164
  .collapsible > summary {
70
165
  height: 2.5rem;
71
166
  border-width: 0;
@@ -75,6 +170,14 @@
75
170
  font-size: var(--text-sm);
76
171
  line-height: var(--text-sm--line-height);
77
172
 
173
+ &[data-slot='group-label'] {
174
+ font-size: var(--text-xs);
175
+ line-height: var(--text-xs--line-height);
176
+ color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent);
177
+ text-transform: uppercase;
178
+ letter-spacing: 0.05em;
179
+ }
180
+
78
181
  &:hover {
79
182
  background-color: var(--sidebar-accent);
80
183
  color: var(--sidebar-accent-foreground);
@@ -94,7 +197,21 @@
94
197
  }
95
198
 
96
199
  nav ul ul {
200
+ margin-inline-start: 0.75rem;
201
+ border-inline-start-style: solid;
202
+ border-inline-start-width: 1px;
203
+ border-inline-start-color: var(--sidebar-border);
97
204
  padding-inline-start: 1rem;
98
205
  }
206
+
207
+ nav ul ul a {
208
+ height: 2.25rem;
209
+ padding-inline: 0.75rem;
210
+ color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent);
211
+
212
+ &:hover {
213
+ color: var(--sidebar-accent-foreground);
214
+ }
215
+ }
99
216
  }
100
217
  }
@@ -44,39 +44,68 @@
44
44
  width: 1.5625rem;
45
45
  }
46
46
 
47
- &:before {
47
+ &::before {
48
48
  border-radius: 0;
49
49
  background-color: light-dark(var(--background), var(--foreground));
50
50
  }
51
51
 
52
- &:checked:before {
52
+ &:checked::before {
53
53
  background-color: light-dark(var(--background), var(--primary-foreground));
54
54
  }
55
55
 
56
- &:not([data-size='sm']):before {
56
+ &:not([data-size='sm'])::before {
57
57
  width: 0.875rem;
58
58
  height: 0.875rem;
59
59
  }
60
60
 
61
- &[data-size='sm']:before {
61
+ &[data-size='sm']::before {
62
62
  width: 0.625rem;
63
63
  height: 0.625rem;
64
64
  }
65
65
 
66
- &:checked:not([data-size='sm']):before {
66
+ &:checked:not([data-size='sm'])::before {
67
67
  translate: calc(100% - 2px);
68
68
  }
69
69
 
70
- &:checked[data-size='sm']:before {
70
+ &:checked[data-size='sm']::before {
71
71
  translate: calc(100% - 2px);
72
72
  }
73
73
 
74
- &:dir(rtl):checked:not([data-size='sm']):before {
74
+ &:dir(rtl):checked:not([data-size='sm'])::before {
75
75
  translate: calc(calc(100% - 2px) * -1);
76
76
  }
77
77
 
78
- &:dir(rtl):checked[data-size='sm']:before {
78
+ &:dir(rtl):checked[data-size='sm']::before {
79
79
  translate: calc(calc(100% - 2px) * -1);
80
80
  }
81
+
82
+ @media (forced-colors: active) {
83
+ border-color: ButtonText;
84
+
85
+ &:not(:checked) {
86
+ background-color: ButtonFace;
87
+ }
88
+
89
+ &::before {
90
+ background-color: ButtonText;
91
+ }
92
+
93
+ &:checked {
94
+ border-color: Highlight;
95
+ background-color: Highlight;
96
+ }
97
+
98
+ &:checked::before {
99
+ background-color: HighlightText;
100
+ }
101
+
102
+ &:disabled {
103
+ border-color: GrayText;
104
+
105
+ &::before {
106
+ background-color: GrayText;
107
+ }
108
+ }
109
+ }
81
110
  }
82
111
  }
@@ -48,6 +48,10 @@
48
48
  background-color: color-mix(in oklab, var(--muted) 50%, transparent);
49
49
  }
50
50
 
51
+ &:has([aria-expanded='true']) {
52
+ background-color: color-mix(in oklab, var(--muted) 50%, transparent);
53
+ }
54
+
51
55
  &[aria-selected='true'] {
52
56
  background-color: var(--muted);
53
57
  }
@@ -63,7 +67,7 @@
63
67
  font-size: var(--text-xs);
64
68
  color: var(--muted-foreground);
65
69
 
66
- &:has([role='checkbox']) {
70
+ &:has(:is([role='checkbox'], input[type='checkbox'])) {
67
71
  padding-inline-end: 0;
68
72
  }
69
73
  }
@@ -73,7 +77,7 @@
73
77
  vertical-align: middle;
74
78
  white-space: nowrap;
75
79
 
76
- &:has([role='checkbox']) {
80
+ &:has(:is([role='checkbox'], input[type='checkbox'])) {
77
81
  padding-inline-end: 0;
78
82
  }
79
83
  }