sherick-ui 2.8.0 → 2.10.1

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 (284) hide show
  1. package/README.md +32 -0
  2. package/dist/cjs/components/Accordion.cjs +14 -26
  3. package/dist/cjs/components/Accordion.cjs.map +1 -1
  4. package/dist/cjs/components/Alert.cjs +64 -19
  5. package/dist/cjs/components/Alert.cjs.map +1 -1
  6. package/dist/cjs/components/AlertDialog.cjs +5 -3
  7. package/dist/cjs/components/AlertDialog.cjs.map +1 -1
  8. package/dist/cjs/components/Avatar.cjs +12 -3
  9. package/dist/cjs/components/Avatar.cjs.map +1 -1
  10. package/dist/cjs/components/Badge.cjs +5 -3
  11. package/dist/cjs/components/Badge.cjs.map +1 -1
  12. package/dist/cjs/components/Breadcrumb.cjs +8 -4
  13. package/dist/cjs/components/Breadcrumb.cjs.map +1 -1
  14. package/dist/cjs/components/Button.cjs +11 -4
  15. package/dist/cjs/components/Button.cjs.map +1 -1
  16. package/dist/cjs/components/Calendar.cjs +39 -4
  17. package/dist/cjs/components/Calendar.cjs.map +1 -1
  18. package/dist/cjs/components/Card.cjs +16 -4
  19. package/dist/cjs/components/Card.cjs.map +1 -1
  20. package/dist/cjs/components/Checkbox.cjs +15 -3
  21. package/dist/cjs/components/Checkbox.cjs.map +1 -1
  22. package/dist/cjs/components/CheckboxGroup.cjs +3 -2
  23. package/dist/cjs/components/CheckboxGroup.cjs.map +1 -1
  24. package/dist/cjs/components/Chip.cjs +53 -43
  25. package/dist/cjs/components/Chip.cjs.map +1 -1
  26. package/dist/cjs/components/ChipGroup.cjs +17 -0
  27. package/dist/cjs/components/ChipGroup.cjs.map +1 -1
  28. package/dist/cjs/components/Collapsible.cjs +1 -1
  29. package/dist/cjs/components/Collapsible.cjs.map +1 -1
  30. package/dist/cjs/components/Combobox.cjs +59 -15
  31. package/dist/cjs/components/Combobox.cjs.map +1 -1
  32. package/dist/cjs/components/Command.cjs +11 -5
  33. package/dist/cjs/components/Command.cjs.map +1 -1
  34. package/dist/cjs/components/CommandPalette.cjs +5 -2
  35. package/dist/cjs/components/CommandPalette.cjs.map +1 -1
  36. package/dist/cjs/components/DatePicker.cjs +6 -3
  37. package/dist/cjs/components/DatePicker.cjs.map +1 -1
  38. package/dist/cjs/components/DateRangePicker.cjs +3 -2
  39. package/dist/cjs/components/DateRangePicker.cjs.map +1 -1
  40. package/dist/cjs/components/DateTimePicker.cjs +1 -1
  41. package/dist/cjs/components/DateTimePicker.cjs.map +1 -1
  42. package/dist/cjs/components/Dialog.cjs +10 -3
  43. package/dist/cjs/components/Dialog.cjs.map +1 -1
  44. package/dist/cjs/components/DialogContent.cjs +5 -3
  45. package/dist/cjs/components/DialogContent.cjs.map +1 -1
  46. package/dist/cjs/components/DialogDescription.cjs +5 -3
  47. package/dist/cjs/components/DialogDescription.cjs.map +1 -1
  48. package/dist/cjs/components/DialogFooter.cjs +3 -3
  49. package/dist/cjs/components/DialogFooter.cjs.map +1 -1
  50. package/dist/cjs/components/DialogHeader.cjs +5 -3
  51. package/dist/cjs/components/DialogHeader.cjs.map +1 -1
  52. package/dist/cjs/components/DialogSurface.cjs +37 -15
  53. package/dist/cjs/components/DialogSurface.cjs.map +1 -1
  54. package/dist/cjs/components/DismissButton.cjs +24 -0
  55. package/dist/cjs/components/DismissButton.cjs.map +1 -0
  56. package/dist/cjs/components/Divider.cjs +3 -1
  57. package/dist/cjs/components/Divider.cjs.map +1 -1
  58. package/dist/cjs/components/Drawer.cjs +28 -15
  59. package/dist/cjs/components/Drawer.cjs.map +1 -1
  60. package/dist/cjs/components/Field.cjs +47 -2
  61. package/dist/cjs/components/Field.cjs.map +1 -1
  62. package/dist/cjs/components/FieldLabel.cjs +20 -0
  63. package/dist/cjs/components/FieldLabel.cjs.map +1 -0
  64. package/dist/cjs/components/FileUpload.cjs +19 -9
  65. package/dist/cjs/components/FileUpload.cjs.map +1 -1
  66. package/dist/cjs/components/IconButton.cjs +28 -3
  67. package/dist/cjs/components/IconButton.cjs.map +1 -1
  68. package/dist/cjs/components/Input.cjs +14 -5
  69. package/dist/cjs/components/Input.cjs.map +1 -1
  70. package/dist/cjs/components/Menu.cjs +18 -4
  71. package/dist/cjs/components/Menu.cjs.map +1 -1
  72. package/dist/cjs/components/NavGroup.cjs +7 -1
  73. package/dist/cjs/components/NavGroup.cjs.map +1 -1
  74. package/dist/cjs/components/NavItem.cjs +28 -3
  75. package/dist/cjs/components/NavItem.cjs.map +1 -1
  76. package/dist/cjs/components/NumberField.cjs +7 -6
  77. package/dist/cjs/components/NumberField.cjs.map +1 -1
  78. package/dist/cjs/components/Pagination.cjs +45 -10
  79. package/dist/cjs/components/Pagination.cjs.map +1 -1
  80. package/dist/cjs/components/Popover.cjs +17 -3
  81. package/dist/cjs/components/Popover.cjs.map +1 -1
  82. package/dist/cjs/components/Progress.cjs +5 -3
  83. package/dist/cjs/components/Progress.cjs.map +1 -1
  84. package/dist/cjs/components/RadioGroup.cjs +3 -2
  85. package/dist/cjs/components/RadioGroup.cjs.map +1 -1
  86. package/dist/cjs/components/Search.cjs +35 -14
  87. package/dist/cjs/components/Search.cjs.map +1 -1
  88. package/dist/cjs/components/SegmentedControl.cjs +2 -1
  89. package/dist/cjs/components/SegmentedControl.cjs.map +1 -1
  90. package/dist/cjs/components/Select.cjs +14 -4
  91. package/dist/cjs/components/Select.cjs.map +1 -1
  92. package/dist/cjs/components/Skeleton.cjs +5 -3
  93. package/dist/cjs/components/Skeleton.cjs.map +1 -1
  94. package/dist/cjs/components/Slider.cjs +1 -1
  95. package/dist/cjs/components/Slider.cjs.map +1 -1
  96. package/dist/cjs/components/Spinner.cjs +25 -14
  97. package/dist/cjs/components/Spinner.cjs.map +1 -1
  98. package/dist/cjs/components/StatusMark.cjs +43 -0
  99. package/dist/cjs/components/StatusMark.cjs.map +1 -0
  100. package/dist/cjs/components/Stepper.cjs +9 -6
  101. package/dist/cjs/components/Stepper.cjs.map +1 -1
  102. package/dist/cjs/components/Switch.cjs +20 -1
  103. package/dist/cjs/components/Switch.cjs.map +1 -1
  104. package/dist/cjs/components/Table.cjs +15 -7
  105. package/dist/cjs/components/Table.cjs.map +1 -1
  106. package/dist/cjs/components/Tabs.cjs +10 -3
  107. package/dist/cjs/components/Tabs.cjs.map +1 -1
  108. package/dist/cjs/components/Textarea.cjs +8 -4
  109. package/dist/cjs/components/Textarea.cjs.map +1 -1
  110. package/dist/cjs/components/Toast.cjs +47 -34
  111. package/dist/cjs/components/Toast.cjs.map +1 -1
  112. package/dist/cjs/components/ToggleGroup.cjs +14 -3
  113. package/dist/cjs/components/ToggleGroup.cjs.map +1 -1
  114. package/dist/cjs/components/Tooltip.cjs +16 -2
  115. package/dist/cjs/components/Tooltip.cjs.map +1 -1
  116. package/dist/cjs/components/TreeView.cjs +8 -4
  117. package/dist/cjs/components/TreeView.cjs.map +1 -1
  118. package/dist/cjs/components/choice-row.cjs +1 -1
  119. package/dist/cjs/components/choice-row.cjs.map +1 -1
  120. package/dist/cjs/components/date-family.cjs +16 -2
  121. package/dist/cjs/components/date-family.cjs.map +1 -1
  122. package/dist/cjs/components/date-field.cjs +5 -3
  123. package/dist/cjs/components/date-field.cjs.map +1 -1
  124. package/dist/cjs/components/edge-fade.cjs +80 -0
  125. package/dist/cjs/components/edge-fade.cjs.map +1 -0
  126. package/dist/cjs/components/scroll-region.cjs +56 -0
  127. package/dist/cjs/components/scroll-region.cjs.map +1 -0
  128. package/dist/cjs/components/time-panel.cjs +2 -2
  129. package/dist/cjs/components/time-panel.cjs.map +1 -1
  130. package/dist/cjs/components/ui.common.cjs +179 -71
  131. package/dist/cjs/components/ui.common.cjs.map +1 -1
  132. package/dist/cjs/components/ui.motion.cjs +46 -15
  133. package/dist/cjs/components/ui.motion.cjs.map +1 -1
  134. package/dist/cjs/dev.cjs +9 -0
  135. package/dist/cjs/dev.cjs.map +1 -1
  136. package/dist/cjs/index.cjs +1 -0
  137. package/dist/cjs/index.cjs.map +1 -1
  138. package/dist/esm/components/Accordion.js +16 -28
  139. package/dist/esm/components/Accordion.js.map +1 -1
  140. package/dist/esm/components/Alert.js +66 -22
  141. package/dist/esm/components/Alert.js.map +1 -1
  142. package/dist/esm/components/AlertDialog.js +6 -4
  143. package/dist/esm/components/AlertDialog.js.map +1 -1
  144. package/dist/esm/components/Avatar.js +14 -5
  145. package/dist/esm/components/Avatar.js.map +1 -1
  146. package/dist/esm/components/Badge.js +6 -4
  147. package/dist/esm/components/Badge.js.map +1 -1
  148. package/dist/esm/components/Breadcrumb.js +9 -5
  149. package/dist/esm/components/Breadcrumb.js.map +1 -1
  150. package/dist/esm/components/Button.js +11 -4
  151. package/dist/esm/components/Button.js.map +1 -1
  152. package/dist/esm/components/Calendar.js +43 -8
  153. package/dist/esm/components/Calendar.js.map +1 -1
  154. package/dist/esm/components/Card.js +17 -5
  155. package/dist/esm/components/Card.js.map +1 -1
  156. package/dist/esm/components/Checkbox.js +17 -5
  157. package/dist/esm/components/Checkbox.js.map +1 -1
  158. package/dist/esm/components/CheckboxGroup.js +4 -3
  159. package/dist/esm/components/CheckboxGroup.js.map +1 -1
  160. package/dist/esm/components/Chip.js +56 -46
  161. package/dist/esm/components/Chip.js.map +1 -1
  162. package/dist/esm/components/ChipGroup.js +18 -1
  163. package/dist/esm/components/ChipGroup.js.map +1 -1
  164. package/dist/esm/components/CodeBlock.js +58 -28
  165. package/dist/esm/components/CodeBlock.js.map +1 -1
  166. package/dist/esm/components/Collapsible.js +2 -2
  167. package/dist/esm/components/Collapsible.js.map +1 -1
  168. package/dist/esm/components/Combobox.js +63 -19
  169. package/dist/esm/components/Combobox.js.map +1 -1
  170. package/dist/esm/components/Command.js +12 -6
  171. package/dist/esm/components/Command.js.map +1 -1
  172. package/dist/esm/components/CommandPalette.js +7 -4
  173. package/dist/esm/components/CommandPalette.js.map +1 -1
  174. package/dist/esm/components/DatePicker.js +7 -4
  175. package/dist/esm/components/DatePicker.js.map +1 -1
  176. package/dist/esm/components/DateRangePicker.js +4 -3
  177. package/dist/esm/components/DateRangePicker.js.map +1 -1
  178. package/dist/esm/components/DateTimePicker.js +2 -2
  179. package/dist/esm/components/DateTimePicker.js.map +1 -1
  180. package/dist/esm/components/Dialog.js +12 -6
  181. package/dist/esm/components/Dialog.js.map +1 -1
  182. package/dist/esm/components/DialogContent.js +6 -4
  183. package/dist/esm/components/DialogContent.js.map +1 -1
  184. package/dist/esm/components/DialogDescription.js +6 -4
  185. package/dist/esm/components/DialogDescription.js.map +1 -1
  186. package/dist/esm/components/DialogFooter.js +3 -3
  187. package/dist/esm/components/DialogFooter.js.map +1 -1
  188. package/dist/esm/components/DialogHeader.js +5 -3
  189. package/dist/esm/components/DialogHeader.js.map +1 -1
  190. package/dist/esm/components/DialogSurface.js +38 -17
  191. package/dist/esm/components/DialogSurface.js.map +1 -1
  192. package/dist/esm/components/DismissButton.js +20 -0
  193. package/dist/esm/components/DismissButton.js.map +1 -0
  194. package/dist/esm/components/Divider.js +3 -1
  195. package/dist/esm/components/Divider.js.map +1 -1
  196. package/dist/esm/components/Drawer.js +31 -18
  197. package/dist/esm/components/Drawer.js.map +1 -1
  198. package/dist/esm/components/Field.js +49 -6
  199. package/dist/esm/components/Field.js.map +1 -1
  200. package/dist/esm/components/FieldLabel.js +15 -0
  201. package/dist/esm/components/FieldLabel.js.map +1 -0
  202. package/dist/esm/components/FileUpload.js +23 -13
  203. package/dist/esm/components/FileUpload.js.map +1 -1
  204. package/dist/esm/components/IconButton.js +31 -6
  205. package/dist/esm/components/IconButton.js.map +1 -1
  206. package/dist/esm/components/Input.js +15 -6
  207. package/dist/esm/components/Input.js.map +1 -1
  208. package/dist/esm/components/Markdown.js +10 -7
  209. package/dist/esm/components/Markdown.js.map +1 -1
  210. package/dist/esm/components/Menu.js +20 -6
  211. package/dist/esm/components/Menu.js.map +1 -1
  212. package/dist/esm/components/NavGroup.js +9 -3
  213. package/dist/esm/components/NavGroup.js.map +1 -1
  214. package/dist/esm/components/NavItem.js +30 -6
  215. package/dist/esm/components/NavItem.js.map +1 -1
  216. package/dist/esm/components/NumberField.js +8 -7
  217. package/dist/esm/components/NumberField.js.map +1 -1
  218. package/dist/esm/components/Pagination.js +47 -12
  219. package/dist/esm/components/Pagination.js.map +1 -1
  220. package/dist/esm/components/Popover.js +18 -4
  221. package/dist/esm/components/Popover.js.map +1 -1
  222. package/dist/esm/components/Progress.js +6 -4
  223. package/dist/esm/components/Progress.js.map +1 -1
  224. package/dist/esm/components/RadioGroup.js +4 -3
  225. package/dist/esm/components/RadioGroup.js.map +1 -1
  226. package/dist/esm/components/Search.js +36 -15
  227. package/dist/esm/components/Search.js.map +1 -1
  228. package/dist/esm/components/SegmentedControl.js +2 -1
  229. package/dist/esm/components/SegmentedControl.js.map +1 -1
  230. package/dist/esm/components/Select.js +16 -6
  231. package/dist/esm/components/Select.js.map +1 -1
  232. package/dist/esm/components/Skeleton.js +5 -3
  233. package/dist/esm/components/Skeleton.js.map +1 -1
  234. package/dist/esm/components/Slider.js +2 -2
  235. package/dist/esm/components/Slider.js.map +1 -1
  236. package/dist/esm/components/Spinner.js +25 -14
  237. package/dist/esm/components/Spinner.js.map +1 -1
  238. package/dist/esm/components/StatusMark.js +38 -0
  239. package/dist/esm/components/StatusMark.js.map +1 -0
  240. package/dist/esm/components/Stepper.js +10 -7
  241. package/dist/esm/components/Stepper.js.map +1 -1
  242. package/dist/esm/components/Switch.js +21 -2
  243. package/dist/esm/components/Switch.js.map +1 -1
  244. package/dist/esm/components/Table.js +16 -8
  245. package/dist/esm/components/Table.js.map +1 -1
  246. package/dist/esm/components/Tabs.js +11 -4
  247. package/dist/esm/components/Tabs.js.map +1 -1
  248. package/dist/esm/components/Textarea.js +9 -5
  249. package/dist/esm/components/Textarea.js.map +1 -1
  250. package/dist/esm/components/Toast.js +49 -36
  251. package/dist/esm/components/Toast.js.map +1 -1
  252. package/dist/esm/components/ToggleGroup.js +16 -5
  253. package/dist/esm/components/ToggleGroup.js.map +1 -1
  254. package/dist/esm/components/Tooltip.js +17 -4
  255. package/dist/esm/components/Tooltip.js.map +1 -1
  256. package/dist/esm/components/TreeView.js +9 -5
  257. package/dist/esm/components/TreeView.js.map +1 -1
  258. package/dist/esm/components/choice-row.js +1 -1
  259. package/dist/esm/components/choice-row.js.map +1 -1
  260. package/dist/esm/components/date-family.js +15 -3
  261. package/dist/esm/components/date-family.js.map +1 -1
  262. package/dist/esm/components/date-field.js +6 -4
  263. package/dist/esm/components/date-field.js.map +1 -1
  264. package/dist/esm/components/edge-fade.js +77 -0
  265. package/dist/esm/components/edge-fade.js.map +1 -0
  266. package/dist/esm/components/scroll-region.js +52 -0
  267. package/dist/esm/components/scroll-region.js.map +1 -0
  268. package/dist/esm/components/time-panel.js +2 -2
  269. package/dist/esm/components/time-panel.js.map +1 -1
  270. package/dist/esm/components/ui.common.js +175 -73
  271. package/dist/esm/components/ui.common.js.map +1 -1
  272. package/dist/esm/components/ui.motion.js +44 -16
  273. package/dist/esm/components/ui.motion.js.map +1 -1
  274. package/dist/esm/content.js +1 -1
  275. package/dist/esm/dev.js +2 -2
  276. package/dist/esm/index.js +1 -1
  277. package/dist/styles.css +341 -209
  278. package/dist/theme.css +15 -12
  279. package/dist/types/content.d.ts +13 -3
  280. package/dist/types/dev.d.cts +79 -29
  281. package/dist/types/dev.d.ts +79 -29
  282. package/dist/types/index.d.cts +512 -154
  283. package/dist/types/index.d.ts +512 -154
  284. package/package.json +1 -1
@@ -11,16 +11,18 @@ var ui_motion = require('./ui.motion.cjs');
11
11
 
12
12
  material what a surface is made of (canvas, matte, control, acrylic)
13
13
  elevation how far it sits off the page (flat, raised, floating, control, recessed)
14
- shape its corner role (control, prominent, surface, expressive, pill, circle)
14
+ shape its corner role (mark, row, control, prominent, surface, sheet, expressive, pill, circle)
15
15
  edge the hairline between stacked parts (row, header, rule)
16
16
  state how it responds (rest, hover, pressed, selected, disabled, focus)
17
- stateLayer the composited hover/press overlay (quiet, tonal, filled, track, activeRow)
17
+ stateLayer the composited hover/press overlay (quiet, tonal, filled, track, mark, activeRow, fieldPart)
18
18
  disclosure one expandable region and its row (trigger, panel)
19
19
  tone its color role (text, soft, tonal, selected, strong)
20
20
  text the readable emphasis ladder (high, medium)
21
- density how tightly it is packed (compact, normal, prominent, target)
21
+ type the recurring kinds of copy (control, label, body, supporting, caption, title, heading, numeric)
22
+ density how tightly it is packed (compact, normal, prominent, target, part)
23
+ iconStroke the one rendered stroke of a glyph (glyph, mark)
22
24
  overlay floating shells (menu, tooltip, popup, toast, sheet, dialog)
23
- focusRing the one focus language (focusRing, focusRingInset, focusRingHeld, focusRingWithin, groupFocusRing)
25
+ focusRing the one focus language (focusRing, focusRingInset, focusRingHeld, focusRingWithin, groupFocusRing)
24
26
 
25
27
  Temporal behavior is deliberately not here: `ui.motion.ts` owns every transition,
26
28
  duration, curve and reduced-motion rule, and a recipe below names one of its recipes
@@ -66,8 +68,10 @@ var ui_motion = require('./ui.motion.cjs');
66
68
  trigger and an editable combobox field end up identical in every state: neither looks ringed at
67
69
  rest, both look ringed the moment either is used, and both lose it together. `groupFocusRing`
68
70
  draws it from the wrapping control instead of the track it contains. */
69
- const focusRing = "focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-sherick-focus focus-visible:outline-offset-[3px]";
70
- const focusRingInset = "focus:outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sherick-focus";
71
+ const focusRing = "focus:[outline-style:none] focus-visible:outline focus-visible:outline-2 focus-visible:outline-sherick-focus focus-visible:outline-offset-[3px]";
72
+ /* The inset ring is a box shadow, and forced colors removes every box shadow, so the same 2px ring
73
+ is drawn there as an inset outline instead, which the platform paints in a system colour. */
74
+ const focusRingInset = "focus:[outline-style:none] focus-visible:[outline-style:none] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-sherick-focus forced-colors:focus-visible:outline forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-offset-[-2px]";
71
75
  /* A focus owner that also contains a subtree paints the inset ring on its direct row only. */
72
76
  const parentFocusRingInset = "[:focus-visible>&]:ring-2 [:focus-visible>&]:ring-inset [:focus-visible>&]:ring-sherick-focus";
73
77
  /* The ring of a value control that is itself the focusable element: it wears it whenever it
@@ -75,7 +79,7 @@ const parentFocusRingInset = "[:focus-visible>&]:ring-2 [:focus-visible>&]:ring-
75
79
  hands the DOM focus to its list while that list is open, so the ring follows the control's
76
80
  engagement rather than the focus — which is exactly what a native `select` shows, and the only
77
81
  focus indication the field has left once the list has taken over. */
78
- const focusRingHeld = "focus:outline-none focus:outline focus:outline-2 focus:outline-sherick-focus focus:outline-offset-[3px] data-[popup-open]:outline data-[popup-open]:outline-2 data-[popup-open]:outline-sherick-focus data-[popup-open]:outline-offset-[3px]";
82
+ const focusRingHeld = "focus:outline focus:outline-2 focus:outline-sherick-focus focus:outline-offset-[3px] data-[popup-open]:outline data-[popup-open]:outline-2 data-[popup-open]:outline-sherick-focus data-[popup-open]:outline-offset-[3px]";
79
83
  /* The same ring for a value control whose focus lives in a borderless input inside it. It follows
80
84
  **visible** focus rather than any focus, which is what makes a field and a slider differ for
81
85
  the platform's reasons instead of by local say-so: a text field is `:focus-visible` whenever it
@@ -105,10 +109,16 @@ const groupFocusRing = "group-focus-visible:outline group-focus-visible:outline-
105
109
  A passive surface is flat unless its anatomy is sunk by design: a well, a groove and
106
110
  a code well are `recessed` while they sit there, and `flat` is the default for
107
111
  everything else passive. A flat control never gains depth by being pressed. */
112
+ /* Forced colors removes shadows and tones, so a shell that separates from the page by depth alone
113
+ loses its boundary. Every shell that carries elevation draws its own system-coloured outline
114
+ there: `outline` is drawn in CanvasText by the platform and `outline-offset` pulls it onto the
115
+ border box, so it traces the object's own corner. The outline has no width in normal colors, so
116
+ it costs nothing on screen; `forced-colors:` is the only place it appears. */
117
+ const forcedBoundary = "forced-colors:outline forced-colors:outline-1 forced-colors:outline-offset-[-1px]";
108
118
  const elevation = {
109
119
  flat: "shadow-sherick-flat",
110
- raised: "shadow-sherick-raised",
111
- floating: "shadow-sherick-floating",
120
+ raised: /* @__PURE__ */ utils.cx("shadow-sherick-raised", forcedBoundary),
121
+ floating: /* @__PURE__ */ utils.cx("shadow-sherick-floating", forcedBoundary),
112
122
  control: "shadow-sherick-control",
113
123
  recessed: "shadow-sherick-recessed",
114
124
  /* One rung further down: the depth a small selection mark sinks to while it is held. A mark
@@ -127,8 +137,8 @@ const recessedTop = "shadow-sherick-recessed-top";
127
137
  an almost-button beside a real one. Nested roles stay concentric: an inner corner is the outer
128
138
  corner minus the inset between them (a 16px track around a 12px indicator at 4px, a 20px list
129
139
  sheet around 12px options at 8px).
130
- - control: ordinary controls and dense data regions — fields, rows, options,
131
- chips, tables.
140
+ - control: ordinary containers and dense data regions — fields, alerts, tables, segment
141
+ tracks and full-width option rows. Chips and badges are capsules (`pill`).
132
142
  - mark: a compact square selection mark — a 20px checkbox box. `control` is a role
133
143
  for objects the size of a field; its radius exceeds the half-extent of a
134
144
  20px square, so a mark needs a step of its own — a corner under a third of
@@ -212,7 +222,7 @@ const edge = {
212
222
  directional border class at the call site (`border-t`, `border-l`). */
213
223
  rule: edgeTone.rule,
214
224
  };
215
- const effectiveDisabled = "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 disabled:cursor-not-allowed disabled:opacity-45";
225
+ const effectiveDisabled = "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 aria-disabled:cursor-not-allowed aria-disabled:opacity-45 disabled:cursor-not-allowed disabled:opacity-45";
216
226
  /* Interaction states:
217
227
  rest the material, at whatever elevation its anatomy calls for
218
228
  hover one tonality step, never a change in depth or a new border
@@ -229,19 +239,26 @@ const state = {
229
239
  it belongs with the tactile intent in `ui.motion.ts`. */
230
240
  recess: "active:shadow-sherick-recessed",
231
241
  /* The disabled step for a control whose disabled state is a Sherick prop. */
232
- disabled: "cursor-not-allowed opacity-45",
242
+ disabled: "cursor-not-allowed opacity-45 aria-disabled:cursor-not-allowed aria-disabled:opacity-45",
243
+ /* A control that is busy is still working for the reader, so it is not dimmed: it keeps its full
244
+ strength and its cursor says work is happening. It stays focusable, and it takes no hover layer
245
+ and no press (`motionTactile` and the state layers withhold both on `aria-busy`). A busy
246
+ control is marked with `aria-busy="true"`, which is what Button and IconButton already carry. */
247
+ busy: "aria-busy:cursor-progress aria-busy:opacity-100",
233
248
  /* The same step, keyed on the primitive's own markers rather than on a Sherick prop: Base marks
234
249
  an effectively disabled control — including one disabled by the field around it — with
235
- `data-disabled`, and a part that disables itself at a bound carries `disabled` as well. */
250
+ `data-disabled`, and a part that disables itself at a bound carries `disabled` as well. A
251
+ control that stays focusable while disabled sets `aria-disabled="true"` instead, and it dims
252
+ exactly once, on the same step. */
236
253
  effectiveDisabled,
237
254
  /* A row whose control is disabled by any means — its own option, its group, or the field around
238
255
  it — dims from the control's own marker rather than from a Sherick prop. */
239
- disabledRow: "has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-45",
256
+ disabledRow: "has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-45 has-[[aria-disabled=true]]:cursor-not-allowed has-[[aria-disabled=true]]:opacity-45",
240
257
  /* A control nested inside a disabled composite. The composite already applied the opacity step,
241
258
  and a second one would dim the field unevenly; this carries only the disabled cursor. */
242
259
  disabledDescendant: "cursor-not-allowed",
243
260
  /* A part dims independently at a bound, but never a second time inside a disabled field. */
244
- disabledPart: /* @__PURE__ */ utils.cx(effectiveDisabled, "group-data-[disabled]/field:opacity-100"),
261
+ disabledPart: /* @__PURE__ */ utils.cx(effectiveDisabled, "group-data-[disabled]/field:opacity-100 group-data-[disabled]/field:aria-disabled:opacity-100"),
245
262
  /* A part the pointer is engaging — the handle of a value control. It sits matte and settled at
246
263
  rest and takes its accent, a little larger, while the pointer is on it. Drag covers the case
247
264
  where the pointer has been captured and left the control. */
@@ -250,13 +267,17 @@ const state = {
250
267
  enabled: "cursor-pointer",
251
268
  /* A text field: the normal text cursor, never a pointer. */
252
269
  text: "cursor-text",
270
+ /* A muted label that is also a quiet target: it rests at `text.medium` and rises to `text.high` on
271
+ hover and on keyboard focus, with no state layer. A dismiss glyph or a secondary link takes it,
272
+ so the response is the ink itself rather than a tint behind it. Hover is a pointer response
273
+ (§11), so a touch screen only ever sees the focus step. */
274
+ quietInk: "text-sherick-ink-muted hover:text-sherick-ink focus-visible:text-sherick-ink",
253
275
  /* Quiet scan feedback for non-interactive data rows: tonality only. */
254
276
  rowHover: "hover:bg-sherick-ink/[0.05]",
255
- /* The matte field family — one tonality ladder, four triggers, no rims. A field
256
- steps its surface up once on hover and once more while it is engaged; a
257
- composite field focuses its outer surface while the input inside stays
258
- borderless; an expanded control holds the engaged step while its popup is
259
- open. Tonality carries the state, so no border appears and disappears. */
277
+ /* The field family — one tray, one deeper step, no visible rims. Hover and engagement share the
278
+ deep step; a composite field engages its outer surface while the input inside stays borderless;
279
+ an expanded control holds the engaged step while its popup is open. Tonality and the focus ring
280
+ carry the state, so no border appears and disappears. */
260
281
  /* A field is a tray in the `surface-high` tone, so it reads as a quiet recess in light and a
261
282
  quiet step up in dark. It draws no line: its label and content identify it (see `rim`), so the
262
283
  tray is laid at full strength to say "something goes here" on a card and on the page alike.
@@ -314,29 +335,29 @@ const stateLayerBase = /* @__PURE__ */ utils.cx("before:pointer-events-none befo
314
335
  a suffix, because the stylesheet compiler reads class names as literal text: a name that only
315
336
  exists once the recipe is evaluated compiles to no rule at all, and the step silently disappears.
316
337
  Interpolating one of these consts is safe — the name is still written here in full. */
317
- const hoverQuiet = "[&:not([data-disabled]):not(:disabled)]:hover:before:opacity-[0.05]";
318
- const hoverTonal = "[&:not([data-disabled]):not(:disabled)]:hover:before:opacity-[0.09]";
319
- const hoverFilled = "[&:not([data-disabled]):not(:disabled)]:hover:before:opacity-[0.18]";
320
- const hoverTrack = "group-[:not([data-disabled]):not(:disabled)]:hover:before:opacity-[0.18]";
321
- const pressQuiet = "[&:not([data-disabled]):not(:disabled)]:active:before:opacity-[0.09]";
322
- const pressTonal = "[&:not([data-disabled]):not(:disabled)]:active:before:opacity-[0.15]";
338
+ const hoverQuiet = "[&:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:hover:before:opacity-[0.05]";
339
+ const hoverTonal = "[&:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:hover:before:opacity-[0.09]";
340
+ const hoverFilled = "[&:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:hover:before:opacity-[0.18]";
341
+ const hoverTrack = "group-[:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:hover:before:opacity-[0.18]";
342
+ const pressQuiet = "[&:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:active:before:opacity-[0.09]";
343
+ const pressTonal = "[&:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:active:before:opacity-[0.15]";
323
344
  /* A neutral fill's label is ink, so a 15% ink veil turns the whole control a flat grey while it is
324
345
  held — and the recess and the compression already say "pressed". The neutral press is lighter;
325
346
  coloured fills keep the stronger step their labels were measured through. */
326
- const pressTonalNeutral = "[&:not([data-disabled]):not(:disabled)]:active:before:opacity-[0.12]";
327
- const pressFilled = "[&:not([data-disabled]):not(:disabled)]:active:before:opacity-[0.26]";
328
- const pressTrack = "group-[:not([data-disabled]):not(:disabled)]:active:before:opacity-[0.26]";
347
+ const pressTonalNeutral = "[&:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:active:before:opacity-[0.12]";
348
+ const pressFilled = "[&:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:active:before:opacity-[0.26]";
349
+ const pressTrack = "group-[:not([data-disabled]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled)]:active:before:opacity-[0.26]";
329
350
  /* A selection mark answers hover with the light tonal step: it is a 20px glyph beside its own
330
351
  label, and the track's step would turn an empty well into a grey disc. Its press is depth, not
331
352
  a heavier veil — `selectable.markSurface` sinks the well — so the layer only holds its hover
332
353
  step while the pointer is down. A read-only mark accepts no change and advertises none.
333
354
  The pseudo-class sits *inside* the group selector: written after it, as `…]:hover:`, it would
334
355
  match the mark's own 20px box rather than the control and the row around it. */
335
- const hoverMark = "group-[:not([data-disabled]):not([data-readonly]):not(:disabled):hover]:before:opacity-[0.09]";
356
+ const hoverMark = "[@media(hover:hover)_and_(pointer:fine)]:group-[:not([data-disabled]):not([data-readonly]):not([aria-disabled=true]):not(:disabled):hover]:before:opacity-[0.09]";
336
357
  /* A labelled control surface paints its state on a row that owns the pointer area while the
337
358
  actual disabled marker belongs to a descendant control. Gate the same quiet response on that
338
359
  descendant so a disabled or read-only choice does not advertise a press it cannot accept. */
339
- const stateLayerQuietComposite = /* @__PURE__ */ utils.cx("relative", stateLayerBase, "before:rounded-[inherit] before:bg-current", "[&:not([data-disabled]):not([data-readonly]):not(:disabled):not(:has([data-disabled])):not(:has([data-readonly]))]:hover:before:opacity-[0.05]", "[&:not([data-disabled]):not([data-readonly]):not(:disabled):not(:has([data-disabled])):not(:has([data-readonly]))]:active:before:opacity-[0.09]");
360
+ const stateLayerQuietComposite = /* @__PURE__ */ utils.cx("relative", stateLayerBase, "before:rounded-[inherit] before:bg-current", "[&:not([data-disabled]):not([data-readonly]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled):not(:has([data-disabled])):not(:has([data-readonly]))]:hover:before:opacity-[0.05]", "[&:not([data-disabled]):not([data-readonly]):not([aria-disabled=true]):not([aria-busy=true]):not(:disabled):not(:has([data-disabled])):not(:has([data-readonly]))]:active:before:opacity-[0.09]");
340
361
  const stateLayer = {
341
362
  /* Quiet surfaces — ghost controls, navigation rows, menu options. */
342
363
  quiet: /* @__PURE__ */ utils.cx("relative", stateLayerBase, "before:rounded-[inherit] before:bg-current", hoverQuiet, pressQuiet),
@@ -397,8 +418,8 @@ const hitArea = "relative after:pointer-events-auto after:absolute after:inset-[
397
418
  takes the mid-emphasis tone, which inverts with the theme and separates in
398
419
  both.
399
420
  - acrylic: a translucent sheet lit from above, for surfaces that float above
400
- the application. The gradient, fill, blur and saturation are part of
401
- the material. A gradient arrives as a typed image arbitrary value
421
+ the application. The gradient and fill are part of the material; it carries
422
+ no backdrop filter (see `acrylic` below). A gradient arrives as a typed image arbitrary value
402
423
  rather than through the colour scale, because `tailwind-merge`
403
424
  collapses two background utilities into one and would silently drop
404
425
  either the fill or the gradient. Each one is written out literally, so
@@ -412,13 +433,13 @@ const hitArea = "relative after:pointer-events-auto after:absolute after:inset-[
412
433
  - acrylicHero: the large-overlay sheet, for a surface that owns the viewport. It is
413
434
  markedly more opaque and calmer than the smaller sheets: it has to
414
435
  read first as a physical surface and only secondarily as glass, so the
415
- scrim behind it does the separating, the blur only defocuses, and the
436
+ scrim behind it does the separating, and the
416
437
  gradient is a restrained top-to-bottom light rather than a frosted
417
438
  haze. Its tone is a subtle step above the canvas in every theme —
418
439
  in dark mode a small step above the canvas rather than a light grey
419
440
  sheet — which is how it separates without leaning on its shadow, and
420
441
  `--sui-overlay-fill` tunes how much of the sheet is its own tone rather
421
- than the defocused page — a large overlay leans on that, not on blur. */
442
+ than the page behind it — a large overlay leans on that, not on blur. */
422
443
  const material = {
423
444
  canvas: "bg-sherick-canvas text-sherick-ink",
424
445
  matteQuiet: "bg-sherick-surface/[0.42] text-sherick-ink",
@@ -434,9 +455,13 @@ const material = {
434
455
  already — so the error form is the same rule, in the tone the field is in. */
435
456
  controlError: "bg-sherick-danger-soft text-sherick-ink placeholder:text-sherick-danger",
436
457
  handle: "bg-sherick-ink-muted text-sherick-canvas",
437
- acrylic: "bg-sherick-surface-float/[var(--sui-glass-fill)] bg-[image:var(--sui-glass-gradient)] text-sherick-ink backdrop-blur-[var(--sui-glass-blur)] backdrop-saturate-[var(--sui-glass-saturation)] backdrop-brightness-[var(--sui-glass-brightness)]",
438
- acrylicDense: "bg-sherick-surface-float/[var(--sui-glass-dense-fill)] bg-[image:var(--sui-glass-gradient-dense)] text-sherick-ink backdrop-blur-[var(--sui-glass-dense-blur)] backdrop-saturate-[var(--sui-glass-dense-saturation)] backdrop-brightness-[var(--sui-glass-dense-brightness)]",
439
- acrylicHero: "bg-sherick-surface-overlay/[var(--sui-overlay-fill)] bg-[image:var(--sui-glass-hero-gradient)] text-sherick-ink backdrop-blur-[var(--sui-glass-hero-blur)] backdrop-saturate-[var(--sui-glass-hero-saturation)] backdrop-brightness-[var(--sui-glass-hero-brightness)]",
458
+ /* The glass carries no backdrop filter. Every presence recipe animates the popup node itself, and a
459
+ backdrop filter on an animated node re-blurs the page on each frame (DL §12). The fill is 0.98 to
460
+ 0.99 opaque, so the blur showed only one or two percent of what lay behind; the plane's scrim keeps
461
+ the blur where it is static. */
462
+ acrylic: "bg-sherick-surface-float/[var(--sui-glass-fill)] bg-[image:var(--sui-glass-gradient)] text-sherick-ink",
463
+ acrylicDense: "bg-sherick-surface-float/[var(--sui-glass-dense-fill)] bg-[image:var(--sui-glass-gradient-dense)] text-sherick-ink",
464
+ acrylicHero: "bg-sherick-surface-overlay/[var(--sui-overlay-fill)] bg-[image:var(--sui-glass-hero-gradient)] text-sherick-ink",
440
465
  };
441
466
  /* Dark neutral behind native video, including poster loading and letterboxing. */
442
467
  const mediaCanvas = "bg-sherick-media";
@@ -446,9 +471,17 @@ const matteInset = "bg-sherick-surface-high/[0.35] text-sherick-ink";
446
471
  where the role owns it, one weight. A component still owns copy that only it renders; these are
447
472
  the roles that recur across families and have to agree wherever they appear:
448
473
  - control: the type step of a control, owned through `density` below.
474
+ - label: the name above a control — a field's label, a progress label, a column header. It is
475
+ the medium weight of the compact step, so a label leads the value beneath it without
476
+ being as large as it.
477
+ - body: a sentence or a paragraph set inside a component — an alert, a toast's description, a
478
+ dialog's description and content, an open disclosure panel. Long-form Markdown keeps
479
+ its own reading rhythm; this is the rhythm of copy *in* an interface.
449
480
  - supporting: a field's description, hint and error, and the secondary line under a row's label.
450
481
  - caption: compact labels — a badge, a tooltip, a group label, a calendar weekday.
451
- - title: the heading of a compact surface — a popover, a toast, a command palette.
482
+ - title: the heading of a compact surface — a card, a popover, a toast, a command palette. It
483
+ is one step above the 15px control text it usually sits over, so a heading reads as a
484
+ heading by size and not by weight alone.
452
485
  - heading: the title of a surface that owns the viewport — a dialog, an alert dialog, a drawer.
453
486
  - numeric: figures that are compared down a column or updated in place.
454
487
  Every size lands on a whole-pixel line box, so stacked rows keep one rhythm. */
@@ -458,11 +491,18 @@ const type = {
458
491
  normal: "text-[0.9375rem] leading-[1.375rem]",
459
492
  prominent: "text-lg",
460
493
  },
461
- supporting: "text-[0.8125rem] leading-5",
462
- caption: "text-xs leading-4",
463
- title: "text-[0.9375rem] leading-[1.375rem] font-semibold tracking-[-0.011em]",
464
- heading: "text-xl leading-7 font-semibold tracking-[-0.02em]",
465
- numeric: "tabular-nums",
494
+ label: "text-sm leading-5 font-medium",
495
+ /* Wrapping copy keeps its line breaks even: `text-pretty` stops a sentence ending on one word,
496
+ and a heading balances its own lines (`text-balance`). Both are CSS `text-wrap`, so no line is
497
+ forced and a short string is unchanged. */
498
+ body: "text-sm leading-6 text-pretty",
499
+ supporting: "text-[0.8125rem] leading-5 text-pretty",
500
+ caption: "text-xs leading-4 text-pretty",
501
+ title: "text-base leading-6 font-semibold tracking-[-0.011em] text-balance",
502
+ heading: "text-xl leading-7 font-semibold tracking-[-0.02em] text-balance",
503
+ /* Figures carry their own size: a table cell, a stepper value or a time reading is 14px tabular
504
+ copy wherever it sits, so a site composes this role and does not write its own `text-sm`. */
505
+ numeric: "text-sm leading-5 tabular-nums",
466
506
  };
467
507
  /* Density — three control steps plus the accessible hit target.
468
508
  Density owns height and the type step, so controls of one density share a
@@ -499,6 +539,19 @@ const iconSlot = {
499
539
  normal: "inline-flex size-5 shrink-0 items-center justify-center [&>svg]:size-5",
500
540
  prominent: "inline-flex size-6 shrink-0 items-center justify-center [&>svg]:size-6",
501
541
  };
542
+ /* Icon stroke — the one rendered weight of a library glyph. The artwork is drawn on a 24-unit grid,
543
+ so a stroke written in the artwork's own units renders thinner at 16px and thicker at 24px: the
544
+ same set read 1.0px in a dismiss and 1.75px in a tick. A glyph the library draws holds its stroke
545
+ in screen pixels instead, so a 14px chevron and a 20px close mark have one weight, close to the
546
+ stem of the medium label beside them. A selection mark — the tick or minus inside a filled
547
+ checkbox — is the one deliberately heavier glyph: it sits on the strong accent and has to read as
548
+ the mark itself, not as a hairline drawn on it.
549
+ Apply it to the `svg` a component renders. It is not applied to artwork a consumer hands into a
550
+ slot: that artwork's weight is the consumer's choice. */
551
+ const iconStroke = {
552
+ glyph: "[&_*]:[vector-effect:non-scaling-stroke] [&_*]:[stroke-width:1.5px]",
553
+ mark: "[&_*]:[vector-effect:non-scaling-stroke] [&_*]:[stroke-width:1.75px]",
554
+ };
502
555
  /* Stacking level — where anything that floats sits relative to the application.
503
556
 
504
557
  One interaction level, deliberately. Base UI nests a popup's portal *inside* the portal of the surface it
@@ -525,7 +578,10 @@ const stacking = {
525
578
  alert dialog separate from the page identically. */
526
579
  const overlay = {
527
580
  /* The plane behind a surface that owns the viewport. */
528
- scrim: /* @__PURE__ */ utils.cx("fixed inset-0", stacking.float, "bg-sherick-scrim/[0.30] backdrop-blur-[var(--sui-scrim-blur)]"),
581
+ scrim: /* @__PURE__ */ utils.cx("fixed inset-0", stacking.float, "backdrop-blur-[var(--sui-scrim-blur)] [@media(pointer:coarse)]:[backdrop-filter:none]",
582
+ /* The tint is the plane's `::before`, so `motionPresenceScrim` can fade it without animating the
583
+ node that carries the blur. */
584
+ "before:absolute before:inset-0 before:content-[''] before:bg-sherick-scrim/[0.30]"),
529
585
  /* An anchored surface with room to breathe: a selection list (Select, Combobox) or
530
586
  structured content (Popover). It grows out of its trigger and carries the softer
531
587
  surface corner, because what it holds is read rather than scanned.
@@ -581,6 +637,14 @@ const detail = {
581
637
  /** The same tone as a block, for a gutter or a rail with thickness. */
582
638
  fill: "bg-sherick-detail",
583
639
  };
640
+ /* The gap between a heading and the supporting line beneath it. It is applied to the supporting
641
+ line, never to the heading, and it is the only such gap: a header takes no paired padding on its
642
+ own edges. A title-role surface (a card, a popover, a toast, a command palette) takes 4px; a
643
+ dialog or drawer heading, which is the larger `heading` role, takes 8px. */
644
+ const headingRhythm = {
645
+ title: "mt-1",
646
+ heading: "mt-2",
647
+ };
584
648
  /* A list surface — the sheet a collection of rows sits in, and the two row densities it can
585
649
  hold. Select, Combobox and Menu all compose these, so an option and a command are the same
586
650
  object at two densities instead of three independent designs.
@@ -603,6 +667,9 @@ const detail = {
603
667
  performed", never "cannot be found". */
604
668
  const list = {
605
669
  sheet: "max-w-[var(--available-width)] max-h-[var(--available-height)] overflow-y-auto",
670
+ /* The leading mark of a command row: the 14px command text takes the compact slot, so the mark is
671
+ 16px and sits in the same box every command's icon does. */
672
+ commandIcon: iconSlot.compact,
606
673
  /* A row in a selection list: one line, read one at a time and chosen.
607
674
  The row carries two separate things that both have to be visible. Its *navigation highlight*
608
675
  is the state layer — one tone shared with the pointer, because a row under the pointer and a
@@ -614,19 +681,22 @@ const list = {
614
681
  both, a selected row keeps its selection tint under the ring, and a disabled-but-navigable
615
682
  row still shows where the navigation is while saying it cannot be used. The ring is inset
616
683
  because the row lives inside the sheet it belongs to, as a segment does in its track. */
617
- option: /* @__PURE__ */ utils.cx("flex w-full items-center justify-between gap-4 px-4 py-3 text-start outline-none", type.control.normal, shape.control, ui_motion.motionFeedback, focusRingInset, text.high, stateLayer.quiet, stateLayer.activeRow, ui_motion.motionRowLayer, state.effectiveDisabled),
684
+ /* The option's start inset is the field's: a sheet's 8px inset plus the row's 12px puts every
685
+ option label on the same 20px edge as the value in the trigger that opened it, so the list
686
+ reads as the field opening rather than a second surface beside it. */
687
+ option: /* @__PURE__ */ utils.cx("flex w-full items-center justify-between gap-4 px-3 py-3 text-start [outline-style:none]", type.control.normal, shape.control, ui_motion.motionFeedback, focusRingInset, text.high, stateLayer.quiet, stateLayer.activeRow, ui_motion.motionRowLayer, state.effectiveDisabled),
618
688
  /* The heading of a group of options — a category above the channels filed under it. It is a
619
689
  caption, not a row: it takes no state layer, no highlight and no focus, because the reader never
620
690
  lands on it; the primitive names the group from it, so a screen reader hears the category as it
621
691
  enters the group. Its inline padding is the option's, so a heading and the labels beneath it
622
692
  share one start edge, and the space above it is what separates one group from the last: a
623
693
  group inside a sheet is grouped by spacing and a type role, never by a rule or a nested card. */
624
- groupLabel: /* @__PURE__ */ utils.cx("px-4 pb-1 pt-3 font-medium", type.caption, text.medium),
694
+ groupLabel: /* @__PURE__ */ utils.cx("px-3 pb-1 pt-3 font-medium", type.caption, text.medium),
625
695
  /* The same object at the density a list of short actions wants, where the row is scanned
626
696
  rather than read and the list is a control rather than a page. `shape.row` keeps the
627
697
  command's corner proportional to its own height, so its highlight nests in the tighter
628
698
  sheet the menu is. */
629
- command: /* @__PURE__ */ utils.cx("flex w-full items-center gap-3 px-3 py-2 text-start outline-none", type.control.compact, shape.row, ui_motion.motionFeedback, focusRingInset, text.high, stateLayer.quiet, stateLayer.activeRow, ui_motion.motionRowLayer, state.effectiveDisabled),
699
+ command: /* @__PURE__ */ utils.cx("flex w-full items-center gap-3 px-3 py-2 text-start [outline-style:none]", type.control.compact, shape.row, ui_motion.motionFeedback, focusRingInset, text.high, stateLayer.quiet, stateLayer.activeRow, ui_motion.motionRowLayer, state.effectiveDisabled),
630
700
  };
631
701
  /* A disclosure — one row that opens the region beneath it. An item in an `Accordion` and a
632
702
  standalone `Collapsible` are the same object: a stacked row, and the in-flow panel its
@@ -635,13 +705,22 @@ const list = {
635
705
  component maps its own primitive's panel variable onto, because the measured geometry is
636
706
  anatomy and only the interpolation is temporal. */
637
707
  const disclosure = {
638
- /* The row: a full-width row in a stacked group, activated like a selectable row. Its own focus
708
+ /* The chevron of a disclosure row. The row's label is 15px, so the mark takes the normal slot
709
+ (20px); the row owns the affordance, so the chevron follows the whole row rather than the first
710
+ line of a wrapping label (§17). */
711
+ chevron: iconSlot.normal,
712
+ /* The row: a full-width row in a stacked group, activated like a selectable row. It hangs its 16px
713
+ inset past both edges of its column (§17), so its label and chevron share the edges of the content
714
+ beside it and only the fill reaches into the surface's padding. The panel hangs by the same amount,
715
+ so the label still shares an edge with the panel copy beneath it. Its own focus
639
716
  indicator is the shared inset ring, because an offset one drawn outside the row would land on
640
717
  the divider or the panel beside it rather than around the row it belongs to — which is the same
641
718
  reason a segment inside a track takes the inset form. The chevron the component puts in the
642
719
  row is the disclosure's own affordance and turns in place under `motionOrient`. */
643
- trigger: /* @__PURE__ */ utils.cx("group [overflow-wrap:anywhere]", list.option, state.enabled),
644
- panel: /* @__PURE__ */ utils.cx("h-[var(--sui-disclose-height)] overflow-hidden text-sm leading-7 [overflow-wrap:anywhere]", text.medium, ui_motion.motionDisclose),
720
+ trigger: /* @__PURE__ */ utils.cx("group -mx-4 flex w-[calc(100%+2rem)] items-center justify-between gap-4 px-4 py-3 text-start [outline-style:none] [overflow-wrap:anywhere]", type.control.normal, shape.control, ui_motion.motionFeedback, focusRingInset, text.high, stateLayer.quiet, stateLayer.activeRow, ui_motion.motionRowLayer, state.effectiveDisabled, state.enabled),
721
+ /* The panel hangs with the row and pads its copy back in, so its clip leaves the 16px a field's
722
+ focus ring inside it needs. */
723
+ panel: /* @__PURE__ */ utils.cx("-mx-4 h-[var(--sui-disclose-height)] overflow-hidden [overflow-wrap:anywhere]", type.body, text.medium, ui_motion.motionDisclose),
645
724
  };
646
725
  /* Tone hierarchy — the color roles a surface can take, in rising strength:
647
726
  text foreground only, for quiet rows and links.
@@ -704,11 +783,17 @@ const tone = {
704
783
  success: "group-data-[checked]:bg-sherick-success group-data-[checked]:text-sherick-on-success",
705
784
  },
706
785
  };
707
- /* Current location — where the reader is, as opposed to a value they chose. A navigation row, the
708
- current page of a pagination and any other `aria-current` destination hold the role's soft
709
- container, full ink and a touch of weight, and stay flat: depth and the stronger selected step
710
- belong to held values (`tone.selected` with `elevation.control`). */
711
- const currentDestination = "bg-sherick-primary-soft text-sherick-ink font-medium";
786
+ /* Current location — where the reader is, as opposed to a value they chose. Both forms stay flat:
787
+ depth belongs to held values (`tone.selected` with `elevation.control`).
788
+ - row: a navigation row on a sheet — the role's soft container, full ink and a touch of weight.
789
+ - inTrack: a destination inside a recessed track, or the mark of a track's current stage — a
790
+ pagination's current page, a Stepper's current step. The soft step is the groove's own
791
+ lightness (1.00:1 in light), so there the fill steps up to `selected` and the label
792
+ takes the accent: the label, not the fill, says "you are here". */
793
+ const currentDestination = {
794
+ row: "bg-sherick-primary-soft text-sherick-ink font-medium",
795
+ inTrack: "bg-sherick-primary-selected text-sherick-primary font-semibold",
796
+ };
712
797
  /* Selectable surface — the recessed surface of a control that fills once it is selected: a
713
798
  switch track, a checkbox box, a radio circle, a slider groove. Selection is keyed on the
714
799
  primitive's own `data-checked` / `data-indeterminate`, so an uncontrolled control is styled
@@ -727,15 +812,12 @@ const puck = "bg-sherick-puck";
727
812
  /* A choice row — an opt-in `surface` row in a RadioGroup or CheckboxGroup — rests on the
728
813
  `matteHigh` tray, so every choice in the group reads as a target before any is chosen; it stays
729
814
  light enough that the empty mark's rim still clears 3:1 against it. The row that holds the
730
- selection takes the role's *soft* surface and the accent **selection rim**, and stays flat. The
731
- soft surface is lighter than the resting tray, so the tint alone would make the chosen row the
732
- quieter of the two; the rim is what says "this one". It is the row's selection mark, not an
733
- outline drawn to separate a surface, and it belongs to the selected state only. Like an empty
734
- mark's rim it is an overlay rather than a border, so the fill and the hover layer reach the row's
735
- real edge, and it is transparent rather than absent at rest, so forced colors keeps every row's
736
- outline. The selected step and a lift turned a whole card into an accent block, which outshouted
737
- the priority action on the same view. */
738
- const selectableRowSurface = /* @__PURE__ */ utils.cx("has-[[data-checked]]:bg-sherick-primary-soft has-[[data-checked]]:text-sherick-ink", "after:pointer-events-none after:absolute after:inset-0 after:box-border after:rounded-[inherit] after:border-[1.5px] after:border-transparent after:content-['']", "has-[[data-checked]]:after:border-sherick-primary", ui_motion.motionRim);
815
+ selection takes the role's *soft* surface and stays flat. The mark it houses is what says "this
816
+ one": an accent rim around the row repeated it and made the chosen row the loudest object on a
817
+ quiet form, and the selected step and a lift turned a whole card into an accent block. The
818
+ transparent overlay stays, so forced colors keeps every row's outline, and the fill and the hover
819
+ layer still reach the row's real edge. */
820
+ const selectableRowSurface = /* @__PURE__ */ utils.cx("has-[[data-checked]]:bg-sherick-primary-soft has-[[data-checked]]:text-sherick-ink", "after:pointer-events-none after:absolute after:inset-0 after:box-border after:rounded-[inherit] after:border-[1.5px] after:border-transparent after:content-['']");
739
821
  /* Supporting copy inside such a row — a choice's description. `text.medium` clears 4.5:1 on the
740
822
  soft step at rest (5.7:1 light, 6.2:1 dark), but the row's press layer composites toward the label
741
823
  and takes that margin away, so while the row holds the selection its supporting line takes full
@@ -751,7 +833,7 @@ const selectable = {
751
833
  does. While the wrapping control is held it sinks to the `well`: the floor darkens and the
752
834
  boundary stays exactly where it was, which is how a mark that must not move under the pointer
753
835
  answers a press. */
754
- markSurface: /* @__PURE__ */ utils.cx("relative", elevation.recessed, "group-[:not([data-disabled]):not([data-readonly]):not(:disabled):active]:shadow-sherick-well", ui_motion.motionFeedback),
836
+ markSurface: /* @__PURE__ */ utils.cx("relative", elevation.recessed, "group-[:not([data-disabled]):not([data-readonly]):not([aria-disabled=true]):not(:disabled):active]:shadow-sherick-well", ui_motion.motionFeedback),
755
837
  /* The resting fill a *groove* holds — a segmented control's track, a tab list — and nothing more.
756
838
  A groove that holds labelled segments is identified by those segments, exactly as a tab list is
757
839
  identified by its labels, so it takes no boundary of its own. */
@@ -767,7 +849,7 @@ const selectable = {
767
849
  recess all reach the mark's real edge: a border would leave a 1.5px frame of untinted fill
768
850
  around a hovered selected box. Hover steps the rim to the mid-emphasis tone — darker in light
769
851
  mode, lighter in dark — which is a visible answer on a 20px mark where a tint alone is not. */
770
- mark: /* @__PURE__ */ utils.cx(markWellFill, text.medium, "after:pointer-events-none after:absolute after:inset-0 after:box-border after:rounded-[inherit] after:border-[1.5px] after:content-['']", "after:border-sherick-rim", "group-[:not([data-disabled]):not([data-readonly]):not(:disabled):hover]:after:border-sherick-ink-muted", ui_motion.motionRim),
852
+ mark: /* @__PURE__ */ utils.cx(markWellFill, text.medium, "after:pointer-events-none after:absolute after:inset-0 after:box-border after:rounded-[inherit] after:border-[1.5px] after:content-['']", "after:border-sherick-rim", "[@media(hover:hover)_and_(pointer:fine)]:group-[:not([data-disabled]):not([data-readonly]):not(:disabled):hover]:after:border-sherick-ink-muted", ui_motion.motionRim),
771
853
  /* A selected mark is the strong accent, edge to edge, and it settles flat: it is identified by
772
854
  its fill and its glyph, and the rim fades out as the fill arrives. The rim fades by opacity
773
855
  rather than by colour, so forced colors cannot repaint a transparent rim as a visible one. */
@@ -815,6 +897,11 @@ const recipeAlphas = {
815
897
  neutralSoft: fillAlpha(tone.soft.secondary, "tint.neutralSoft"),
816
898
  neutralRest: fillAlpha(tone.tonal.secondary, "tint.neutralRest"),
817
899
  },
900
+ /* The code well is the `matteHigh` step over the card that holds it, so the contract reads its
901
+ alpha from the same recipe the CodeBlock renders. */
902
+ code: {
903
+ well: fillAlpha(material.matteHigh, "code.well"),
904
+ },
818
905
  field: {
819
906
  quiet: fillAlpha(material.matteQuiet, "field.quiet"),
820
907
  card: fillAlpha(material.matte, "field.card"),
@@ -828,14 +915,30 @@ const recipeAlphas = {
828
915
  };
829
916
  /* A labelled field is a shrinkable column. Its explanatory copy wraps, including identifiers;
830
917
  the input itself keeps its native single-line scrolling behavior. */
831
- const fieldLayout = "flex min-w-0 w-full flex-col [overflow-wrap:anywhere]";
918
+ const fieldLayout = "flex min-w-0 w-full flex-col gap-2 [overflow-wrap:anywhere] [&>label+p]:-mt-1";
832
919
  /* The messages under a field: its description or hint, and its error. One role for every field in
833
920
  the family, so a hint reads the same under a text field, a date range and a file chooser. */
921
+ /* The label above a field: the `label` role at full ink, with the one gap every field family keeps
922
+ between its name and its control. */
923
+ const fieldLabel = /* @__PURE__ */ utils.cx(type.label, text.high);
924
+ /* The field column owns the gap between its parts (`fieldLayout`), so a label, a control and a
925
+ message are each eight pixels from the next, and a label that is followed straight by its
926
+ description takes four through the layout's sibling rule. No part carries its own margin. */
834
927
  const fieldMessage = {
835
- description: /* @__PURE__ */ utils.cx("mt-2", type.supporting, text.medium),
836
- error: /* @__PURE__ */ utils.cx("mt-2", type.supporting, tone.text.danger),
928
+ description: /* @__PURE__ */ utils.cx(type.supporting, text.medium),
929
+ error: /* @__PURE__ */ utils.cx(type.supporting, tone.text.danger),
930
+ };
931
+ /* The code well — the quiet recess a code block's lines sit in. It is the canvas showing through the
932
+ block's own matte shell, so a well reads as sunk into the block on a card and on the page alike. */
933
+ const codeWell = material.matteHigh;
934
+ /* Rich-text accents — content-level emphasis in rendered prose, not structural edges: a quote's rule
935
+ on its start edge, and a link's underline at rest and under the pointer. */
936
+ const richText = {
937
+ quoteRule: "border-sherick-primary/[0.45]",
938
+ linkUnderline: "decoration-sherick-primary/[0.35] hover:decoration-sherick-primary",
837
939
  };
838
940
 
941
+ exports.codeWell = codeWell;
839
942
  exports.currentDestination = currentDestination;
840
943
  exports.density = density;
841
944
  exports.detail = detail;
@@ -843,6 +946,7 @@ exports.disclosure = disclosure;
843
946
  exports.edge = edge;
844
947
  exports.edgeTone = edgeTone;
845
948
  exports.elevation = elevation;
949
+ exports.fieldLabel = fieldLabel;
846
950
  exports.fieldLayout = fieldLayout;
847
951
  exports.fieldMessage = fieldMessage;
848
952
  exports.focusRing = focusRing;
@@ -850,9 +954,12 @@ exports.focusRingDrag = focusRingDrag;
850
954
  exports.focusRingHeld = focusRingHeld;
851
955
  exports.focusRingInset = focusRingInset;
852
956
  exports.focusRingWithin = focusRingWithin;
957
+ exports.forcedBoundary = forcedBoundary;
853
958
  exports.groupFocusRing = groupFocusRing;
959
+ exports.headingRhythm = headingRhythm;
854
960
  exports.hitArea = hitArea;
855
961
  exports.iconSlot = iconSlot;
962
+ exports.iconStroke = iconStroke;
856
963
  exports.list = list;
857
964
  exports.material = material;
858
965
  exports.matteInset = matteInset;
@@ -862,6 +969,7 @@ exports.parentFocusRingInset = parentFocusRingInset;
862
969
  exports.puck = puck;
863
970
  exports.recessedTop = recessedTop;
864
971
  exports.recipeAlphas = recipeAlphas;
972
+ exports.richText = richText;
865
973
  exports.rim = rim;
866
974
  exports.selectable = selectable;
867
975
  exports.selectableRowSupporting = selectableRowSupporting;