@ctrl-ui/react 0.8.7 → 0.8.8

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 (351) hide show
  1. package/dist/action-bar.d.ts +15 -7
  2. package/dist/action-bar.js +40 -20
  3. package/dist/activity.js +8 -16
  4. package/dist/audio-recorder.d.ts +14 -4
  5. package/dist/audio-recorder.js +82 -29
  6. package/dist/audio-visualizer.js +1 -1
  7. package/dist/blocks/coding-agent.js +39 -39
  8. package/dist/blocks/design-canvas-inspector.js +2 -2
  9. package/dist/blocks/design-canvas.d.ts +5 -1
  10. package/dist/blocks/design-canvas.js +200 -94
  11. package/dist/blocks/discussion.d.ts +28 -0
  12. package/dist/blocks/discussion.js +67 -0
  13. package/dist/blocks/file-explorer-data.d.ts +1 -0
  14. package/dist/blocks/file-explorer-data.js +4 -1
  15. package/dist/blocks/file-explorer.d.ts +9 -1
  16. package/dist/blocks/file-explorer.js +461 -192
  17. package/dist/blocks/settings.d.ts +2 -1
  18. package/dist/blocks/settings.js +102 -80
  19. package/dist/blocks/team-chat.d.ts +12 -0
  20. package/dist/blocks/team-chat.js +26 -0
  21. package/dist/blocks/theme-toggle.js +23 -31
  22. package/dist/chat-composer-attachment.d.ts +4 -1
  23. package/dist/chat-composer-attachment.js +35 -10
  24. package/dist/chat-composer-editor/extensions/mention.d.ts +5 -1
  25. package/dist/chat-composer-editor/extensions/mention.js +58 -27
  26. package/dist/chat-composer-editor/ghost.js +2 -4
  27. package/dist/chat-composer-editor/types.d.ts +5 -0
  28. package/dist/chat-composer-editor.d.ts +1 -1
  29. package/dist/chat-composer-editor.js +57 -30
  30. package/dist/chat-composer.d.ts +13 -32
  31. package/dist/chat-composer.js +53 -13
  32. package/dist/chat-layout.d.ts +19 -0
  33. package/dist/chat-layout.js +91 -40
  34. package/dist/chat-message/social.d.ts +26 -0
  35. package/dist/chat-message/social.js +122 -0
  36. package/dist/chat-message.d.ts +28 -29
  37. package/dist/chat-message.js +106 -25
  38. package/dist/context.d.ts +2 -2
  39. package/dist/context.js +39 -24
  40. package/dist/dynamic-notification-canvas-loop.d.ts +24 -0
  41. package/dist/dynamic-notification-canvas-loop.js +113 -0
  42. package/dist/dynamic-notification-glass.js +23 -114
  43. package/dist/dynamic-notification-liquid.js +14 -118
  44. package/dist/dynamic-notification.d.ts +16 -8
  45. package/dist/dynamic-notification.js +86 -23
  46. package/dist/email/email-brand.d.ts +7 -4
  47. package/dist/email/email-brand.js +9 -6
  48. package/dist/email/email-code.d.ts +3 -2
  49. package/dist/email/email-code.js +11 -9
  50. package/dist/email/email-footer.d.ts +5 -3
  51. package/dist/email/email-footer.js +11 -5
  52. package/dist/email/email.d.ts +31 -9
  53. package/dist/email/email.js +50 -26
  54. package/dist/email/templates.d.ts +10 -9
  55. package/dist/email/templates.js +102 -38
  56. package/dist/email/theme.js +1 -1
  57. package/dist/environment-variables.d.ts +4 -2
  58. package/dist/environment-variables.js +52 -32
  59. package/dist/filter-bar/editor.js +20 -8
  60. package/dist/filter-bar/model.d.ts +1 -0
  61. package/dist/filter-bar/model.js +10 -1
  62. package/dist/filter-bar/motion.js +4 -4
  63. package/dist/filter-bar/parts.js +20 -9
  64. package/dist/filter-bar/types.d.ts +1 -0
  65. package/dist/filter-bar.js +20 -14
  66. package/dist/hooks/use-audio-recorder.js +12 -6
  67. package/dist/hooks/use-chat-composer.d.ts +19 -7
  68. package/dist/hooks/use-chat-composer.js +32 -5
  69. package/dist/hooks/use-chat-message.d.ts +28 -2
  70. package/dist/hooks/use-chat-message.js +41 -10
  71. package/dist/hooks/use-chat-thread-scroll.js +43 -7
  72. package/dist/hooks/use-color-area.d.ts +3 -3
  73. package/dist/hooks/use-color-area.js +13 -12
  74. package/dist/hooks/use-copy-to-clipboard.d.ts +2 -1
  75. package/dist/hooks/use-copy-to-clipboard.js +20 -20
  76. package/dist/hooks/use-dynamic-notification.d.ts +6 -2
  77. package/dist/hooks/use-dynamic-notification.js +26 -10
  78. package/dist/hooks/use-mobile.d.ts +3 -2
  79. package/dist/hooks/use-mobile.js +8 -4
  80. package/dist/hooks/use-textarea-trigger-menu.js +2 -1
  81. package/dist/hooks/use-trigger-menu.d.ts +54 -0
  82. package/dist/hooks/use-trigger-menu.js +102 -47
  83. package/dist/hooks/use-user-ask.d.ts +2 -0
  84. package/dist/hooks/use-user-ask.js +35 -41
  85. package/dist/inline-attachment.d.ts +6 -2
  86. package/dist/inline-attachment.js +36 -15
  87. package/dist/inline-citation.d.ts +12 -5
  88. package/dist/inline-citation.js +26 -17
  89. package/dist/knob-contracts/audio-recorder-knobs.d.ts +1 -1
  90. package/dist/knob-contracts/audio-recorder-knobs.js +2 -1
  91. package/dist/knob-contracts/audio-visualizer-knobs.d.ts +1 -1
  92. package/dist/knob-contracts/audio-visualizer-knobs.js +2 -1
  93. package/dist/knob-contracts/avatar-knobs.d.ts +1 -1
  94. package/dist/knob-contracts/avatar-knobs.js +6 -1
  95. package/dist/knob-contracts/badge-knobs.d.ts +1 -1
  96. package/dist/knob-contracts/badge-knobs.js +2 -1
  97. package/dist/knob-contracts/breadcrumb-knobs.d.ts +4 -0
  98. package/dist/knob-contracts/breadcrumb-knobs.js +8 -0
  99. package/dist/knob-contracts/button-knobs.d.ts +1 -1
  100. package/dist/knob-contracts/button-knobs.js +1 -0
  101. package/dist/knob-contracts/chat-message-knobs.d.ts +1 -1
  102. package/dist/knob-contracts/chat-message-knobs.js +8 -1
  103. package/dist/knob-contracts/code-diff-knobs.d.ts +1 -1
  104. package/dist/knob-contracts/code-diff-knobs.js +2 -0
  105. package/dist/knob-contracts/code-knobs.d.ts +1 -1
  106. package/dist/knob-contracts/code-knobs.js +2 -1
  107. package/dist/knob-contracts/dynamic-notification-knobs.d.ts +1 -1
  108. package/dist/knob-contracts/dynamic-notification-knobs.js +2 -0
  109. package/dist/knob-contracts/emoji-picker-knobs.d.ts +4 -0
  110. package/dist/knob-contracts/emoji-picker-knobs.js +10 -0
  111. package/dist/knob-contracts/field-knobs.d.ts +1 -1
  112. package/dist/knob-contracts/field-knobs.js +5 -1
  113. package/dist/knob-contracts/filter-bar-knobs.d.ts +1 -1
  114. package/dist/knob-contracts/filter-bar-knobs.js +1 -2
  115. package/dist/knob-contracts/markdown-knobs.d.ts +1 -1
  116. package/dist/knob-contracts/markdown-knobs.js +3 -1
  117. package/dist/knob-contracts/page-layout-knobs.d.ts +1 -1
  118. package/dist/knob-contracts/page-layout-knobs.js +2 -1
  119. package/dist/knob-contracts/popup-knobs.d.ts +1 -1
  120. package/dist/knob-contracts/popup-knobs.js +27 -0
  121. package/dist/knob-contracts/range-knobs.d.ts +1 -1
  122. package/dist/knob-contracts/range-knobs.js +1 -0
  123. package/dist/knob-contracts/rich-tooltip-knobs.d.ts +1 -1
  124. package/dist/knob-contracts/rich-tooltip-knobs.js +2 -1
  125. package/dist/knob-contracts/sidebar-knobs.d.ts +1 -1
  126. package/dist/knob-contracts/sidebar-knobs.js +27 -2
  127. package/dist/knob-contracts/spinner-knobs.d.ts +1 -1
  128. package/dist/knob-contracts/spinner-knobs.js +1 -1
  129. package/dist/knob-contracts/stepper-knobs.d.ts +1 -1
  130. package/dist/knob-contracts/stepper-knobs.js +4 -1
  131. package/dist/knob-contracts/switch-knobs.d.ts +1 -1
  132. package/dist/knob-contracts/switch-knobs.js +5 -0
  133. package/dist/knob-contracts/table-of-contents-knobs.d.ts +1 -1
  134. package/dist/knob-contracts/table-of-contents-knobs.js +2 -1
  135. package/dist/knob-contracts/tabs-knobs.d.ts +1 -1
  136. package/dist/knob-contracts/tabs-knobs.js +1 -0
  137. package/dist/knob-contracts/tree-knobs.d.ts +1 -1
  138. package/dist/knob-contracts/tree-knobs.js +2 -1
  139. package/dist/lib/cn.js +0 -4
  140. package/dist/lib/contrast.d.ts +1 -0
  141. package/dist/lib/contrast.js +17 -5
  142. package/dist/lib/dropzone-validation.js +41 -28
  143. package/dist/lib/env-file.d.ts +1 -1
  144. package/dist/lib/env-file.js +5 -5
  145. package/dist/lib/motion.d.ts +4 -0
  146. package/dist/lib/motion.js +15 -0
  147. package/dist/lib/phone-input-format.js +1 -1
  148. package/dist/lib/trigger-detect.js +6 -8
  149. package/dist/markdown-block.js +2 -1
  150. package/dist/popup-parts.d.ts +8 -0
  151. package/dist/popup-parts.js +43 -0
  152. package/dist/source-badge.js +3 -1
  153. package/dist/styles/code.css +0 -2
  154. package/dist/styles/effects.css +6 -32
  155. package/dist/styles/index.css +10 -5
  156. package/dist/styles/recipes/accordion.css +9 -6
  157. package/dist/styles/recipes/action-bar.css +0 -15
  158. package/dist/styles/recipes/activity.css +5 -11
  159. package/dist/styles/recipes/alert.css +4 -4
  160. package/dist/styles/recipes/audio-recorder.css +15 -3
  161. package/dist/styles/recipes/audio-visualizer.css +13 -2
  162. package/dist/styles/recipes/avatar.css +78 -1
  163. package/dist/styles/recipes/badge.css +14 -4
  164. package/dist/styles/recipes/breadcrumb.css +77 -0
  165. package/dist/styles/recipes/button-group.css +5 -7
  166. package/dist/styles/recipes/button-states.css +66 -0
  167. package/dist/styles/recipes/button.css +24 -83
  168. package/dist/styles/recipes/calendar.css +17 -23
  169. package/dist/styles/recipes/card.css +2 -2
  170. package/dist/styles/recipes/chat-composer-attachment.css +9 -3
  171. package/dist/styles/recipes/chat-composer.css +7 -10
  172. package/dist/styles/recipes/chat-layout.css +35 -0
  173. package/dist/styles/recipes/chat-message-social.css +123 -0
  174. package/dist/styles/recipes/chat-message.css +157 -37
  175. package/dist/styles/recipes/choice.css +18 -21
  176. package/dist/styles/recipes/code-diff.css +46 -33
  177. package/dist/styles/recipes/code.css +36 -16
  178. package/dist/styles/recipes/collapsible.css +7 -2
  179. package/dist/styles/recipes/color-picker-details.css +3 -4
  180. package/dist/styles/recipes/color-picker-values.css +9 -8
  181. package/dist/styles/recipes/color-picker.css +11 -2
  182. package/dist/styles/recipes/context.css +3 -3
  183. package/dist/styles/recipes/dockable-panel.css +7 -4
  184. package/dist/styles/recipes/dropzone.css +7 -8
  185. package/dist/styles/recipes/dynamic-notification-input.css +8 -5
  186. package/dist/styles/recipes/dynamic-notification-motion.css +12 -21
  187. package/dist/styles/recipes/dynamic-notification.css +40 -26
  188. package/dist/styles/recipes/emoji-picker.css +132 -0
  189. package/dist/styles/recipes/empty.css +5 -4
  190. package/dist/styles/recipes/environment-variables.css +4 -15
  191. package/dist/styles/recipes/field-parts.css +30 -24
  192. package/dist/styles/recipes/field.css +61 -26
  193. package/dist/styles/recipes/filter-bar.css +18 -31
  194. package/dist/styles/recipes/gradient-editor.css +18 -7
  195. package/dist/styles/recipes/infinite-canvas.css +0 -1
  196. package/dist/styles/recipes/inline-attachment.css +3 -3
  197. package/dist/styles/recipes/inline-citation.css +10 -4
  198. package/dist/styles/recipes/item.css +23 -9
  199. package/dist/styles/recipes/markdown-block.css +5 -4
  200. package/dist/styles/recipes/markdown.css +68 -26
  201. package/dist/styles/recipes/morphing-panel.css +8 -8
  202. package/dist/styles/recipes/page-layout.css +20 -12
  203. package/dist/styles/recipes/pagination.css +4 -5
  204. package/dist/styles/recipes/phone-input.css +12 -8
  205. package/dist/styles/recipes/popup-controls.css +166 -33
  206. package/dist/styles/recipes/popup-drawer.css +3 -14
  207. package/dist/styles/recipes/popup-lists.css +128 -27
  208. package/dist/styles/recipes/popup-motion.css +4 -45
  209. package/dist/styles/recipes/popup-toast.css +55 -26
  210. package/dist/styles/recipes/popup.css +139 -141
  211. package/dist/styles/recipes/range.css +54 -18
  212. package/dist/styles/recipes/resizable.css +2 -7
  213. package/dist/styles/recipes/rich-tooltip.css +24 -34
  214. package/dist/styles/recipes/scroll-area.css +8 -1
  215. package/dist/styles/recipes/sidebar-menu.css +149 -34
  216. package/dist/styles/recipes/sidebar-parts.css +154 -0
  217. package/dist/styles/recipes/sidebar.css +187 -128
  218. package/dist/styles/recipes/source-badge.css +1 -1
  219. package/dist/styles/recipes/spinner.css +8 -1
  220. package/dist/styles/recipes/stepper.css +31 -13
  221. package/dist/styles/recipes/switch.css +68 -23
  222. package/dist/styles/recipes/table-of-contents.css +9 -1
  223. package/dist/styles/recipes/table.css +14 -10
  224. package/dist/styles/recipes/tabs.css +17 -12
  225. package/dist/styles/recipes/task-list.css +7 -14
  226. package/dist/styles/recipes/thread-rail.css +42 -19
  227. package/dist/styles/recipes/timeline.css +2 -0
  228. package/dist/styles/recipes/toolbar.css +27 -25
  229. package/dist/styles/recipes/track-highlight.css +10 -7
  230. package/dist/styles/recipes/tree.css +31 -4
  231. package/dist/styles/recipes/user-ask-details.css +0 -1
  232. package/dist/styles/recipes/user-ask.css +4 -4
  233. package/dist/styles/theme.css +37 -16
  234. package/dist/task-list.d.ts +4 -1
  235. package/dist/task-list.js +24 -8
  236. package/dist/thread-rail.d.ts +1 -1
  237. package/dist/thread-rail.js +61 -19
  238. package/dist/transcript-divider.js +2 -1
  239. package/dist/ui/alert-dialog.js +1 -1
  240. package/dist/ui/alert.d.ts +3 -1
  241. package/dist/ui/alert.js +14 -8
  242. package/dist/ui/autocomplete.js +4 -2
  243. package/dist/ui/avatar.d.ts +8 -0
  244. package/dist/ui/avatar.js +23 -3
  245. package/dist/ui/badge.js +1 -1
  246. package/dist/ui/breadcrumb.d.ts +27 -0
  247. package/dist/ui/breadcrumb.js +88 -0
  248. package/dist/ui/button.d.ts +2 -1
  249. package/dist/ui/button.js +3 -3
  250. package/dist/ui/calendar.js +2 -2
  251. package/dist/ui/card.d.ts +3 -1
  252. package/dist/ui/card.js +12 -7
  253. package/dist/ui/checkbox.d.ts +2 -0
  254. package/dist/ui/code-diff.d.ts +1 -1
  255. package/dist/ui/code-diff.js +72 -28
  256. package/dist/ui/code.d.ts +5 -3
  257. package/dist/ui/code.js +28 -29
  258. package/dist/ui/collapsible.js +1 -1
  259. package/dist/ui/color-picker.d.ts +5 -2
  260. package/dist/ui/color-picker.js +85 -37
  261. package/dist/ui/combobox-disabled-selection.d.ts +1 -2
  262. package/dist/ui/combobox-disabled-selection.js +7 -9
  263. package/dist/ui/combobox.js +14 -6
  264. package/dist/ui/command.d.ts +8 -2
  265. package/dist/ui/command.js +30 -14
  266. package/dist/ui/context-menu.js +4 -1
  267. package/dist/ui/dialog.d.ts +2 -1
  268. package/dist/ui/dialog.js +4 -23
  269. package/dist/ui/dockable-panel-geometry.d.ts +1 -0
  270. package/dist/ui/dockable-panel-geometry.js +7 -1
  271. package/dist/ui/dockable-panel.d.ts +9 -6
  272. package/dist/ui/dockable-panel.js +63 -23
  273. package/dist/ui/drawer.js +1 -1
  274. package/dist/ui/dropdown-menu.js +5 -4
  275. package/dist/ui/dropzone.d.ts +2 -2
  276. package/dist/ui/dropzone.js +75 -16
  277. package/dist/ui/emoji-picker.d.ts +18 -0
  278. package/dist/ui/emoji-picker.js +136 -0
  279. package/dist/ui/empty.d.ts +3 -1
  280. package/dist/ui/empty.js +12 -7
  281. package/dist/ui/gradient-editor.d.ts +1 -1
  282. package/dist/ui/gradient-editor.js +37 -21
  283. package/dist/ui/hover-card.js +1 -1
  284. package/dist/ui/infinite-canvas.d.ts +3 -2
  285. package/dist/ui/infinite-canvas.js +63 -19
  286. package/dist/ui/input-group.d.ts +0 -3
  287. package/dist/ui/input-group.js +4 -14
  288. package/dist/ui/input-otp.d.ts +1 -1
  289. package/dist/ui/input-otp.js +32 -15
  290. package/dist/ui/input.js +4 -4
  291. package/dist/ui/item.d.ts +2 -1
  292. package/dist/ui/item.js +12 -8
  293. package/dist/ui/live-status.d.ts +7 -0
  294. package/dist/ui/live-status.js +17 -0
  295. package/dist/ui/markdown-elements.d.ts +6 -0
  296. package/dist/ui/markdown-elements.js +31 -1
  297. package/dist/ui/menubar.js +3 -3
  298. package/dist/ui/morphing-panel.js +3 -2
  299. package/dist/ui/native-select.d.ts +1 -1
  300. package/dist/ui/native-select.js +24 -11
  301. package/dist/ui/navigation-menu.js +1 -1
  302. package/dist/ui/page-layout.d.ts +2 -2
  303. package/dist/ui/page-layout.js +2 -4
  304. package/dist/ui/pagination.d.ts +7 -5
  305. package/dist/ui/pagination.js +19 -13
  306. package/dist/ui/phone-input.d.ts +1 -0
  307. package/dist/ui/phone-input.js +58 -60
  308. package/dist/ui/popover.js +1 -1
  309. package/dist/ui/radio-group.d.ts +2 -0
  310. package/dist/ui/resizable.d.ts +3 -2
  311. package/dist/ui/resizable.js +5 -3
  312. package/dist/ui/responsive-dialog.d.ts +1 -1
  313. package/dist/ui/responsive-dialog.js +4 -21
  314. package/dist/ui/rich-tooltip.d.ts +10 -4
  315. package/dist/ui/rich-tooltip.js +82 -34
  316. package/dist/ui/scroll-area.d.ts +1 -1
  317. package/dist/ui/scroll-area.js +43 -28
  318. package/dist/ui/select.js +1 -1
  319. package/dist/ui/sheet.js +1 -1
  320. package/dist/ui/sidebar-menu.d.ts +5 -1
  321. package/dist/ui/sidebar-menu.js +32 -34
  322. package/dist/ui/sidebar-provider.d.ts +10 -1
  323. package/dist/ui/sidebar-provider.js +39 -14
  324. package/dist/ui/sidebar-resize-rail.js +8 -4
  325. package/dist/ui/sidebar.d.ts +11 -6
  326. package/dist/ui/sidebar.js +47 -24
  327. package/dist/ui/slider.js +31 -22
  328. package/dist/ui/spinner.d.ts +3 -2
  329. package/dist/ui/spinner.js +3 -2
  330. package/dist/ui/stepper.d.ts +8 -1
  331. package/dist/ui/stepper.js +74 -25
  332. package/dist/ui/switch.d.ts +1 -0
  333. package/dist/ui/table-of-contents.d.ts +2 -2
  334. package/dist/ui/table-of-contents.js +20 -8
  335. package/dist/ui/table.js +4 -2
  336. package/dist/ui/textarea.d.ts +1 -1
  337. package/dist/ui/textarea.js +20 -9
  338. package/dist/ui/timeline.d.ts +3 -1
  339. package/dist/ui/timeline.js +17 -9
  340. package/dist/ui/toast.d.ts +11 -5
  341. package/dist/ui/toast.js +101 -55
  342. package/dist/ui/toolbar.d.ts +3 -2
  343. package/dist/ui/toolbar.js +4 -2
  344. package/dist/ui/tooltip.js +4 -21
  345. package/dist/ui/tree.js +121 -81
  346. package/dist/ui/trigger-menu.js +2 -1
  347. package/dist/user-ask.d.ts +10 -5
  348. package/dist/user-ask.js +32 -12
  349. package/package.json +5 -1
  350. package/dist/hooks/use-keyboard-navigation.d.ts +0 -3
  351. package/dist/hooks/use-keyboard-navigation.js +0 -22
@@ -5,10 +5,43 @@
5
5
  --cui-sidebar-inset-background: var(--background);
6
6
  --cui-sidebar-inset-background-image: none;
7
7
  --cui-sidebar-inset-shadow: var(--shadow-sm);
8
+ --cui-sidebar-inset-border-color: var(--sidebar-border);
9
+ --cui-sidebar-inset-border-width: 0px;
10
+ --cui-sidebar-inset-radius: var(--radius-xl);
11
+ --cui-sidebar-inset-inset: calc(var(--spacing) * 2);
12
+ --cui-sidebar-skip-link-background: var(--background);
13
+ --cui-sidebar-skip-link-foreground: var(--foreground);
14
+ --cui-sidebar-skip-link-radius: var(--radius-control);
15
+ --cui-sidebar-skip-link-shadow: var(--shadow-md);
8
16
  background-color: var(--cui-sidebar-wrapper-background);
9
17
  background-image: var(--cui-sidebar-wrapper-background-image);
10
18
  }
11
19
 
20
+ :where([data-control-family="sidebar"][data-slot="skip-link"]) {
21
+ position: absolute;
22
+ inset-block-start: calc(var(--spacing) * 3);
23
+ inset-inline-start: calc(var(--spacing) * 3);
24
+ z-index: var(--z-popup);
25
+ padding-block: calc(var(--spacing) * 1.5);
26
+ padding-inline: calc(var(--spacing) * 3);
27
+ border-radius: var(--cui-sidebar-skip-link-radius);
28
+ background-color: var(--cui-sidebar-skip-link-background);
29
+ color: var(--cui-sidebar-skip-link-foreground);
30
+ box-shadow: var(--cui-sidebar-skip-link-shadow);
31
+ font-size: var(--text-body);
32
+ font-weight: var(--font-weight-medium);
33
+ text-decoration: none;
34
+ }
35
+
36
+ :where([data-control-family="sidebar"][data-slot="skip-link"]:not(:focus)) {
37
+ overflow: hidden;
38
+ inline-size: 1px;
39
+ block-size: 1px;
40
+ padding: 0;
41
+ white-space: nowrap;
42
+ clip-path: inset(50%);
43
+ }
44
+
12
45
  :where([data-control-family="sidebar"][data-slot="wrapper"]:has([data-control-family="sidebar"][data-variant="inset"][data-state])) {
13
46
  --cui-sidebar-wrapper-background: var(--sidebar);
14
47
  }
@@ -25,16 +58,33 @@
25
58
  --cui-sidebar-inner-border-width: 0px;
26
59
  --cui-sidebar-inner-radius: 0px;
27
60
  --cui-sidebar-inner-shadow: none;
61
+ --cui-sidebar-header-background: transparent;
62
+ --cui-sidebar-header-shadow: 0 0 transparent;
28
63
  --cui-sidebar-rail-divider-background: transparent;
29
64
  --cui-sidebar-group-label-foreground: oklch(from var(--sidebar-foreground) l c h / 0.7);
65
+ --cui-sidebar-group-label-font-size: var(--text-caption);
66
+ --cui-sidebar-group-label-font-weight: 500;
67
+ --cui-sidebar-group-label-letter-spacing: 0em;
68
+ --cui-sidebar-group-label-text-transform: none;
69
+ --cui-sidebar-group-label-padding: 0px calc(var(--spacing) * 2);
70
+ --cui-sidebar-menu-button-height: var(--control-h-md);
71
+ --cui-sidebar-menu-button-padding-block: 0px;
72
+ --cui-sidebar-menu-button-padding-inline: var(--padding-x);
73
+ --cui-sidebar-menu-button-font-size: var(--text-body);
74
+ --cui-sidebar-menu-button-font-weight: 400;
75
+ --cui-sidebar-menu-button-active-font-weight: 500;
30
76
  --cui-sidebar-menu-button-radius: var(--radius-popup-item);
31
77
  --cui-sidebar-menu-button-foreground: var(--sidebar-foreground);
78
+ --cui-sidebar-menu-badge-height: calc(var(--spacing) * 5);
79
+ --cui-sidebar-menu-badge-background: oklch(from var(--sidebar-foreground) l c h / 0.08);
80
+ --cui-sidebar-menu-badge-foreground: var(--sidebar-foreground);
32
81
  --cui-sidebar-menu-button-hover-background: var(--hover-fill);
33
82
  --cui-sidebar-menu-button-hover-foreground: var(--foreground);
34
83
  --cui-sidebar-menu-button-hover-shadow: 0 0 transparent;
35
84
  --cui-sidebar-menu-button-active-background: var(--active-fill);
36
85
  --cui-sidebar-menu-button-active-shadow: 0 0 transparent;
37
86
  --cui-sidebar-menu-button-active-foreground: var(--foreground);
87
+ --cui-sidebar-menu-button-track-active-foreground: var(--foreground);
38
88
  background-color: var(--sidebar);
39
89
  color: var(--sidebar-foreground);
40
90
  }
@@ -79,132 +129,11 @@
79
129
  }
80
130
 
81
131
  :where([data-control-family="sidebar"][data-slot="root"][data-variant="floating"][data-state]) {
82
- --cui-sidebar-inner-border-width: 1px;
132
+ --cui-sidebar-inner-border-width: var(--control-rim-width);
83
133
  --cui-sidebar-inner-radius: var(--radius-panel);
84
134
  --cui-sidebar-inner-shadow: var(--shadow-md);
85
135
  }
86
136
 
87
- :where([data-control-family="sidebar"][data-slot="rail"]) {
88
- inline-size: calc(var(--spacing) * 4);
89
- background-image: linear-gradient(var(--cui-sidebar-rail-divider-background), var(--cui-sidebar-rail-divider-background));
90
- background-position: center;
91
- background-repeat: no-repeat;
92
- background-size: 2px 100%;
93
- }
94
-
95
- :where([data-control-family="sidebar"][data-collapsible="offcanvas"] [data-slot="rail"]) {
96
- background-position: right;
97
- }
98
-
99
- @media (hover: hover) {
100
- :where([data-control-family="sidebar"][data-slot="rail"]:hover) {
101
- --cui-sidebar-rail-divider-background: var(--sidebar-border);
102
- }
103
-
104
- :where([data-control-family="sidebar"][data-collapsible="offcanvas"] [data-slot="rail"]:not([data-resizable]):hover) {
105
- background-color: var(--sidebar);
106
- }
107
- }
108
-
109
- :where([data-control-family="sidebar"][data-slot="rail"][data-resizable]) {
110
- inline-size: calc(var(--spacing) * 2);
111
- background: none;
112
- }
113
-
114
- :where([data-control-family="sidebar"][data-slot="rail"][data-resizable])::after {
115
- content: "";
116
- position: absolute;
117
- inset-block: 12.5%;
118
- inset-inline-start: 50%;
119
- inline-size: 1px;
120
- background-image: linear-gradient(transparent, var(--cui-sidebar-rail-divider-background), transparent);
121
- }
122
-
123
- :where([data-control-family="sidebar"][data-slot="rail"]:is(:focus-visible, [data-resizing="true"])) {
124
- --cui-sidebar-rail-divider-background: var(--ring);
125
- outline: none;
126
- }
127
-
128
- :where([data-control-family="sidebar"][data-slot="inset"]) {
129
- background-color: var(--cui-sidebar-inset-background);
130
- background-image: var(--cui-sidebar-inset-background-image);
131
- }
132
-
133
- @media (width >= 64rem) {
134
- :where(
135
- [data-control-family="sidebar"][data-slot="root"][data-variant="inset"][data-state]
136
- ~ [data-control-family="sidebar"][data-slot="inset"]
137
- ) {
138
- margin: calc(var(--spacing) * 2);
139
- margin-inline-start: 0;
140
- border-radius: var(--radius-xl);
141
- box-shadow: var(--cui-sidebar-inset-shadow);
142
- }
143
-
144
- :where(
145
- [data-control-family="sidebar"][data-slot="root"][data-variant="inset"][data-state="collapsed"]
146
- ~ [data-control-family="sidebar"][data-slot="inset"]
147
- ) {
148
- margin-inline-start: calc(var(--spacing) * 2);
149
- }
150
- }
151
-
152
- :where([data-control-family="sidebar"][data-slot="header"]),
153
- :where([data-control-family="sidebar"][data-slot="footer"]) {
154
- gap: calc(var(--spacing) * 2);
155
- padding: calc(var(--spacing) * 2);
156
- }
157
-
158
- :where([data-control-family="sidebar"][data-slot="content-stack"]) {
159
- gap: calc(var(--spacing) * 2);
160
- }
161
-
162
- :where([data-control-family="sidebar"][data-slot="group"]) {
163
- padding: calc(var(--spacing) * 2);
164
- }
165
-
166
- :where([data-control-family="sidebar"][data-slot="menu"]) {
167
- gap: calc(var(--spacing) * 1);
168
- }
169
-
170
- :where([data-control-family="sidebar"][data-slot="menu"][data-submenu]) {
171
- margin-block: calc(var(--spacing) * 1);
172
- margin-inline-start: calc(var(--spacing) * 3);
173
- padding-inline-start: calc(var(--spacing) * 2);
174
- border-inline-start: 1px solid var(--sidebar-border);
175
- width: auto;
176
- }
177
-
178
- :where([data-control-family="sidebar"]:is([data-slot="group-label"], [data-slot="menu-button"])[aria-expanded] > [data-slot="chevron"]) {
179
- margin-inline-start: auto;
180
- transition: rotate var(--duration-base) var(--ease-standard);
181
- }
182
-
183
- :where([data-control-family="sidebar"][aria-expanded="true"] > [data-slot="chevron"]) {
184
- rotate: 90deg;
185
- }
186
-
187
- :where([data-control-family="sidebar"][data-slot="group-label"][aria-expanded]) {
188
- cursor: pointer;
189
- width: 100%;
190
- text-align: start;
191
- }
192
-
193
- @media (pointer: coarse) {
194
- :where([data-control-family="sidebar"]:is([data-slot="menu-button"], [data-slot="group-label"][aria-expanded])) {
195
- min-block-size: 44px;
196
- }
197
-
198
- :where([data-control-family="button"][data-sidebar-trigger]) {
199
- min-inline-size: 44px;
200
- min-block-size: 44px;
201
- }
202
- }
203
-
204
- :where([data-control-family="sidebar"][data-slot="menu"]:is([data-indicator="hover"], [data-indicator="slide"])) {
205
- gap: 0;
206
- }
207
-
208
137
  :where([data-control-family="sidebar"][data-slot="menu-track"] > [data-control-family="track-highlight"]) {
209
138
  --cui-track-highlight-radius: var(--cui-sidebar-menu-button-radius);
210
139
  }
@@ -231,12 +160,6 @@
231
160
  inherits: true;
232
161
  }
233
162
 
234
- @property --cui-sidebar-menu-button-radius {
235
- syntax: "<length-percentage>";
236
- inherits: true;
237
- initial-value: 0px;
238
- }
239
-
240
163
  @property --cui-sidebar-inner-background {
241
164
  syntax: "<color>";
242
165
  inherits: true;
@@ -277,6 +200,17 @@
277
200
  inherits: true;
278
201
  }
279
202
 
203
+ @property --cui-sidebar-header-background {
204
+ syntax: "<color>";
205
+ inherits: true;
206
+ initial-value: transparent;
207
+ }
208
+
209
+ @property --cui-sidebar-header-shadow {
210
+ syntax: "*";
211
+ inherits: true;
212
+ }
213
+
280
214
  @property --cui-sidebar-inset-background {
281
215
  syntax: "<color>";
282
216
  inherits: true;
@@ -293,6 +227,36 @@
293
227
  inherits: true;
294
228
  }
295
229
 
230
+ @property --cui-sidebar-inset-border-color {
231
+ syntax: "<color>";
232
+ inherits: true;
233
+ initial-value: transparent;
234
+ }
235
+
236
+ @property --cui-sidebar-inset-border-width {
237
+ syntax: "<length>";
238
+ inherits: true;
239
+ initial-value: 0px;
240
+ }
241
+
242
+ @property --cui-sidebar-inset-radius {
243
+ syntax: "<length-percentage>";
244
+ inherits: true;
245
+ initial-value: 0px;
246
+ }
247
+
248
+ @property --cui-sidebar-inset-inset {
249
+ syntax: "<length-percentage>";
250
+ inherits: true;
251
+ initial-value: 0px;
252
+ }
253
+
254
+ @property --cui-sidebar-menu-button-radius {
255
+ syntax: "<length-percentage>";
256
+ inherits: true;
257
+ initial-value: 0px;
258
+ }
259
+
296
260
  @property --cui-sidebar-group-label-foreground {
297
261
  syntax: "<color>";
298
262
  inherits: true;
@@ -338,3 +302,98 @@
338
302
  syntax: "*";
339
303
  inherits: true;
340
304
  }
305
+
306
+ @property --cui-sidebar-menu-button-track-active-foreground {
307
+ syntax: "<color>";
308
+ inherits: true;
309
+ initial-value: transparent;
310
+ }
311
+
312
+ @property --cui-sidebar-menu-button-height {
313
+ syntax: "<length-percentage>";
314
+ inherits: true;
315
+ initial-value: 0px;
316
+ }
317
+
318
+ @property --cui-sidebar-menu-button-padding-block {
319
+ syntax: "<length-percentage>";
320
+ inherits: true;
321
+ initial-value: 0px;
322
+ }
323
+
324
+ @property --cui-sidebar-menu-button-padding-inline {
325
+ syntax: "<length-percentage>";
326
+ inherits: true;
327
+ initial-value: 0px;
328
+ }
329
+
330
+ @property --cui-sidebar-menu-button-font-size {
331
+ syntax: "<length-percentage>";
332
+ inherits: true;
333
+ initial-value: 1rem;
334
+ }
335
+
336
+ @property --cui-sidebar-menu-button-font-weight {
337
+ syntax: "<number>";
338
+ inherits: true;
339
+ initial-value: 400;
340
+ }
341
+
342
+ @property --cui-sidebar-menu-button-active-font-weight {
343
+ syntax: "<number>";
344
+ inherits: true;
345
+ initial-value: 500;
346
+ }
347
+
348
+ @property --cui-sidebar-group-label-font-size {
349
+ syntax: "<length-percentage>";
350
+ inherits: true;
351
+ initial-value: 1rem;
352
+ }
353
+
354
+ @property --cui-sidebar-group-label-font-weight {
355
+ syntax: "<number>";
356
+ inherits: true;
357
+ initial-value: 500;
358
+ }
359
+
360
+ @property --cui-sidebar-group-label-letter-spacing {
361
+ syntax: "<length>";
362
+ inherits: true;
363
+ initial-value: 0em;
364
+ }
365
+
366
+ @property --cui-sidebar-group-label-text-transform {
367
+ syntax: "none | uppercase | lowercase | capitalize";
368
+ inherits: true;
369
+ initial-value: none;
370
+ }
371
+
372
+ @property --cui-sidebar-group-label-padding {
373
+ syntax: "<length-percentage>+";
374
+ inherits: true;
375
+ initial-value: 0px;
376
+ }
377
+
378
+ @property --cui-sidebar-skip-link-background {
379
+ syntax: "<color>";
380
+ inherits: true;
381
+ initial-value: transparent;
382
+ }
383
+
384
+ @property --cui-sidebar-skip-link-foreground {
385
+ syntax: "<color>";
386
+ inherits: true;
387
+ initial-value: transparent;
388
+ }
389
+
390
+ @property --cui-sidebar-skip-link-radius {
391
+ syntax: "<length-percentage>";
392
+ inherits: true;
393
+ initial-value: 0px;
394
+ }
395
+
396
+ @property --cui-sidebar-skip-link-shadow {
397
+ syntax: "*";
398
+ inherits: true;
399
+ }
@@ -38,7 +38,7 @@
38
38
  inset: 50% 50%;
39
39
  translate: -50% -50%;
40
40
  inline-size: 100%;
41
- block-size: max(100%, 44px);
41
+ block-size: max(100%, var(--touch-target));
42
42
  }
43
43
  }
44
44
 
@@ -1,6 +1,7 @@
1
1
  @layer components {
2
2
  :where([data-control-family="spinner"][data-slot="root"]) {
3
3
  --cui-spinner-foreground: var(--muted-foreground);
4
+ --cui-spinner-animation-duration: var(--duration-loop);
4
5
  color: var(--cui-spinner-foreground);
5
6
  }
6
7
 
@@ -11,7 +12,7 @@
11
12
  :where([data-control-family="spinner"][data-slot="indicator"]) {
12
13
  inline-size: calc(var(--spacing) * 4);
13
14
  block-size: calc(var(--spacing) * 4);
14
- animation: spin calc(var(--duration-slow) * 3.333) linear infinite;
15
+ animation: cui-spin var(--cui-spinner-animation-duration) linear infinite;
15
16
  }
16
17
 
17
18
  :where([data-control-family="spinner"][data-slot="indicator"][data-size="xs"]) {
@@ -35,3 +36,9 @@
35
36
  inherits: true;
36
37
  initial-value: transparent;
37
38
  }
39
+
40
+ @property --cui-spinner-animation-duration {
41
+ syntax: "<time>";
42
+ inherits: true;
43
+ initial-value: 0s;
44
+ }
@@ -1,28 +1,29 @@
1
1
  @layer components {
2
2
  :where([data-control-family="stepper"][data-slot="root"]) {
3
+ --cui-stepper-indicator-size: calc(var(--spacing) * 8);
3
4
  --cui-stepper-indicator-radius: 9999px;
4
5
  --cui-stepper-indicator-background: var(--background);
5
6
  --cui-stepper-indicator-foreground: var(--muted-foreground);
6
7
  --cui-stepper-indicator-border-color: var(--border);
7
- --cui-stepper-indicator-border-width: 1px;
8
+ --cui-stepper-indicator-border-width: var(--control-rim-width);
9
+ --cui-stepper-indicator-current-border-width: 2px;
8
10
  --cui-stepper-separator-background: var(--border);
9
11
  --cui-stepper-title-foreground: var(--foreground);
12
+ --cui-stepper-title-current-font-weight: var(--font-weight-semibold);
10
13
  }
11
14
  :where([data-control-family="stepper"][data-slot="trigger"]) {
12
15
  border-radius: var(--radius-control);
13
- outline: none;
14
16
  transition: color var(--duration-fast) var(--ease-standard);
15
- --_stepper-trigger-text-align: left;
16
- text-align: var(--_stepper-trigger-text-align);
17
+ text-align: start;
17
18
  }
18
19
 
19
20
  :where([data-control-family="stepper"][data-slot="trigger"]:disabled) {
20
- opacity: 0.5;
21
+ opacity: var(--disabled-opacity);
21
22
  }
22
23
 
23
24
  :where([data-control-family="stepper"][data-slot="indicator"]) {
24
- inline-size: calc(var(--spacing) * 8);
25
- block-size: calc(var(--spacing) * 8);
25
+ inline-size: var(--cui-stepper-indicator-size);
26
+ block-size: var(--cui-stepper-indicator-size);
26
27
  --_stepper-indicator-shadow: 0 0 transparent;
27
28
  border: var(--cui-stepper-indicator-border-width) solid var(--cui-stepper-indicator-border-color);
28
29
  border-radius: var(--cui-stepper-indicator-radius);
@@ -46,6 +47,7 @@
46
47
  :where([data-control-family="stepper"][data-slot="indicator"][data-state="current"]:not([data-invalid])) {
47
48
  --cui-stepper-indicator-foreground: var(--primary-text);
48
49
  --cui-stepper-indicator-border-color: var(--primary);
50
+ --cui-stepper-indicator-border-width: var(--cui-stepper-indicator-current-border-width);
49
51
  --_stepper-indicator-shadow: 0 0 0 4px oklch(from var(--primary) l c h / 0.1);
50
52
  }
51
53
 
@@ -73,6 +75,10 @@
73
75
  line-height: var(--leading-tight);
74
76
  }
75
77
 
78
+ :where([data-control-family="stepper"][data-slot="item"][aria-current="step"] [data-slot="title"]) {
79
+ font-weight: var(--cui-stepper-title-current-font-weight);
80
+ }
81
+
76
82
  :where([data-control-family="stepper"][data-slot="description"]) {
77
83
  color: var(--muted-foreground);
78
84
  font-size: var(--text-body);
@@ -81,7 +87,6 @@
81
87
 
82
88
  :where([data-control-family="stepper"][data-slot="content"]) {
83
89
  margin-block-start: calc(var(--spacing) * 6);
84
- outline: none;
85
90
  }
86
91
 
87
92
  :where([data-control-family="stepper"][data-slot="root"][data-orientation="vertical"] [data-slot="item"]) {
@@ -115,11 +120,6 @@
115
120
  }
116
121
 
117
122
  @container stepper (width < 28rem) {
118
- :where([data-control-family="stepper"][data-slot="trigger"]) {
119
- --_stepper-trigger-text-align: left;
120
- text-align: var(--_stepper-trigger-text-align);
121
- }
122
-
123
123
  :where([data-control-family="stepper"][data-slot="root"][data-orientation="horizontal"] [data-slot="item"]) {
124
124
  padding-block-end: calc(var(--spacing) * 6);
125
125
  }
@@ -183,3 +183,21 @@
183
183
  inherits: true;
184
184
  initial-value: transparent;
185
185
  }
186
+
187
+ @property --cui-stepper-indicator-size {
188
+ syntax: "<length>";
189
+ inherits: true;
190
+ initial-value: 0px;
191
+ }
192
+
193
+ @property --cui-stepper-indicator-current-border-width {
194
+ syntax: "<length>";
195
+ inherits: true;
196
+ initial-value: 0px;
197
+ }
198
+
199
+ @property --cui-stepper-title-current-font-weight {
200
+ syntax: "<number>";
201
+ inherits: true;
202
+ initial-value: 400;
203
+ }
@@ -16,49 +16,63 @@
16
16
  user-select: none;
17
17
  --cui-switch-background: oklch(from var(--foreground) l c h / 0.14);
18
18
  --cui-switch-hover-background: oklch(from var(--foreground) l c h / 0.2);
19
+ --cui-switch-border-color: var(--control-boundary);
20
+ --cui-switch-border-width: var(--control-rim-width);
19
21
  --cui-switch-checked-background: var(--primary);
20
- --cui-switch-checked-hover-background: oklch(from var(--primary) l c h / 0.9);
22
+ --cui-switch-checked-hover-background: color-mix(in oklch, var(--primary) 90%, var(--foreground));
23
+ --cui-switch-checked-border-color: transparent;
24
+ --cui-switch-radius: 9999px;
25
+ --cui-switch-shadow: 0 0 transparent;
21
26
  --cui-switch-thumb-radius: 9999px;
22
27
  --cui-switch-thumb-background: var(--background);
23
28
  --cui-switch-thumb-shadow: var(--shadow-sm);
24
- border-radius: calc(infinity * 1px);
25
- background: var(--cui-switch-background);
26
- outline: none;
27
- }
28
-
29
- :where([data-control-family="switch"][data-slot="root"]:hover) {
30
- background: var(--cui-switch-hover-background);
31
- }
32
-
33
- :where([data-control-family="switch"][data-slot="root"]:active) {
34
- --cui-switch-background: oklch(from var(--foreground) l c h / 0.25);
29
+ --_switch-border-color: var(--cui-switch-border-color);
30
+ border-radius: var(--cui-switch-radius);
35
31
  background: var(--cui-switch-background);
32
+ box-shadow:
33
+ inset 0 0 0 var(--cui-switch-border-width) var(--_switch-border-color),
34
+ var(--cui-switch-shadow);
36
35
  }
37
36
 
38
37
  :where([data-control-family="switch"][data-slot="root"][data-checked]) {
39
38
  --_switch-progress: 1;
39
+ --_switch-border-color: var(--cui-switch-checked-border-color);
40
40
  background: var(--cui-switch-checked-background);
41
41
  }
42
42
 
43
- :where([data-control-family="switch"][data-slot="root"][data-checked]:hover) {
44
- background: var(--cui-switch-checked-hover-background);
43
+ @media (hover: hover) {
44
+ :where([data-control-family="switch"][data-slot="root"]:hover:not([data-checked], [data-disabled], [data-readonly])) {
45
+ background: var(--cui-switch-hover-background);
46
+ }
47
+
48
+ :where([data-control-family="switch"][data-slot="root"][data-checked]:hover:not([data-disabled], [data-readonly])) {
49
+ background: var(--cui-switch-checked-hover-background);
50
+ }
45
51
  }
46
52
 
47
- :where([data-control-family="switch"][data-slot="root"][data-checked]:active) {
48
- --cui-switch-checked-background: oklch(from var(--primary) l c h / 0.8);
49
- background: var(--cui-switch-checked-background);
53
+ :where([data-control-family="switch"][data-slot="root"]:active:not([data-checked], [data-disabled], [data-readonly])) {
54
+ --cui-switch-background: oklch(from var(--foreground) l c h / 0.25);
55
+ background: var(--cui-switch-background);
50
56
  }
51
57
 
52
- :where([data-control-family="switch"][data-slot="root"][data-disabled]) {
53
- opacity: 0.5;
58
+ :where([data-control-family="switch"][data-slot="root"][data-checked]:active:not([data-disabled], [data-readonly])) {
59
+ --cui-switch-checked-background: color-mix(in oklch, var(--primary) 80%, var(--foreground));
60
+ background: var(--cui-switch-checked-background);
54
61
  }
55
62
 
56
- :where([data-control-family="switch"][data-slot="root"][data-disabled]:hover) {
57
- background: var(--cui-switch-background);
63
+ :where([data-control-family="switch"][data-slot="root"][data-disabled]) {
64
+ opacity: var(--disabled-opacity);
58
65
  }
59
66
 
60
- :where([data-control-family="switch"][data-slot="root"][data-disabled][data-checked]:hover) {
61
- background: var(--cui-switch-checked-background);
67
+ @media (pointer: coarse) {
68
+ :where([data-control-family="switch"][data-slot="root"])::after {
69
+ content: "";
70
+ position: absolute;
71
+ inset: 50%;
72
+ translate: -50% -50%;
73
+ inline-size: max(100%, var(--touch-target));
74
+ block-size: max(100%, var(--touch-target));
75
+ }
62
76
  }
63
77
 
64
78
  :where([data-control-family="switch"][data-slot="thumb"]) {
@@ -133,10 +147,12 @@
133
147
  }
134
148
 
135
149
  :where([data-control-family="switch"][data-slot="root"][data-drag-checked="false"]) {
150
+ --_switch-border-color: var(--cui-switch-border-color);
136
151
  background: var(--cui-switch-background);
137
152
  }
138
153
 
139
154
  :where([data-control-family="switch"][data-slot="root"][data-drag-checked="true"]) {
155
+ --_switch-border-color: var(--cui-switch-checked-border-color);
140
156
  background: var(--cui-switch-checked-background);
141
157
  }
142
158
 
@@ -150,12 +166,41 @@
150
166
  inherits: true;
151
167
  }
152
168
 
169
+ @property --cui-switch-radius {
170
+ syntax: "<length-percentage>";
171
+ inherits: true;
172
+ initial-value: 0px;
173
+ }
174
+
175
+ @property --cui-switch-shadow {
176
+ syntax: "*";
177
+ inherits: true;
178
+ }
179
+
153
180
  @property --cui-switch-background {
154
181
  syntax: "<color>";
155
182
  inherits: true;
156
183
  initial-value: transparent;
157
184
  }
158
185
 
186
+ @property --cui-switch-border-color {
187
+ syntax: "<color>";
188
+ inherits: true;
189
+ initial-value: transparent;
190
+ }
191
+
192
+ @property --cui-switch-border-width {
193
+ syntax: "<length>";
194
+ inherits: true;
195
+ initial-value: 0px;
196
+ }
197
+
198
+ @property --cui-switch-checked-border-color {
199
+ syntax: "<color>";
200
+ inherits: true;
201
+ initial-value: transparent;
202
+ }
203
+
159
204
  @property --cui-switch-hover-background {
160
205
  syntax: "<color>";
161
206
  inherits: true;
@@ -2,7 +2,7 @@
2
2
  :where([data-control-family="table-of-contents"][data-slot="root"]) {
3
3
  --cui-table-of-contents-background: var(--card);
4
4
  --cui-table-of-contents-border-color: var(--border);
5
- --cui-table-of-contents-border-width: 1px;
5
+ --cui-table-of-contents-border-width: var(--control-rim-width);
6
6
  --cui-table-of-contents-radius: var(--radius-panel);
7
7
  --cui-table-of-contents-shadow: var(--shadow-sm);
8
8
  --cui-table-of-contents-backdrop-filter: none;
@@ -26,6 +26,7 @@
26
26
  --cui-table-of-contents-trail-stroke: var(--primary-text);
27
27
  --cui-table-of-contents-trail-size: 2px;
28
28
  --cui-table-of-contents-indicator-foreground: var(--cui-table-of-contents-trail-stroke);
29
+ --cui-table-of-contents-scroll-inset: calc(var(--spacing) * 20);
29
30
  border: var(--cui-table-of-contents-border-width) solid var(--cui-table-of-contents-border-color);
30
31
  border-radius: var(--cui-table-of-contents-radius);
31
32
  background-color: var(--cui-table-of-contents-background);
@@ -35,6 +36,7 @@
35
36
  padding: var(--cui-table-of-contents-padding);
36
37
  font-size: var(--cui-table-of-contents-item-font-size);
37
38
  line-height: var(--cui-table-of-contents-item-line-height);
39
+ scroll-margin-block-start: var(--cui-table-of-contents-scroll-inset);
38
40
  }
39
41
 
40
42
  :where([data-control-family="table-of-contents"][data-slot="label"]) {
@@ -271,3 +273,9 @@
271
273
  inherits: true;
272
274
  initial-value: transparent;
273
275
  }
276
+
277
+ @property --cui-table-of-contents-scroll-inset {
278
+ syntax: "<length>";
279
+ inherits: true;
280
+ initial-value: 0px;
281
+ }